@synergenius/flow-weaver 0.21.4 → 0.21.6
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/README.md +3 -3
- package/dist/cli/flow-weaver.mjs +140 -342
- package/dist/generated-version.d.ts +1 -1
- package/dist/generated-version.js +1 -1
- package/docs/reference/cli-reference.md +1 -1
- package/docs/reference/deployment.md +6 -6
- package/docs/reference/marketplace.md +18 -18
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -250,9 +250,9 @@ The scope's output ports become callback parameters, and input ports become retu
|
|
|
250
250
|
Same workflow source, multiple deployment targets. Export targets are provided by marketplace packs — install the ones you need:
|
|
251
251
|
|
|
252
252
|
```bash
|
|
253
|
-
npm install @synergenius/
|
|
254
|
-
@synergenius/
|
|
255
|
-
@synergenius/
|
|
253
|
+
npm install @synergenius/flow-weaver-pack-lambda @synergenius/flow-weaver-pack-vercel \
|
|
254
|
+
@synergenius/flow-weaver-pack-cloudflare @synergenius/flow-weaver-pack-inngest \
|
|
255
|
+
@synergenius/flow-weaver-pack-github-actions @synergenius/flow-weaver-pack-gitlab-ci
|
|
256
256
|
```
|
|
257
257
|
|
|
258
258
|
```bash
|
package/dist/cli/flow-weaver.mjs
CHANGED
|
@@ -3127,39 +3127,13 @@ var init_unescape = __esm({
|
|
|
3127
3127
|
});
|
|
3128
3128
|
|
|
3129
3129
|
// node_modules/minimatch/dist/esm/ast.js
|
|
3130
|
-
var
|
|
3130
|
+
var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
|
|
3131
3131
|
var init_ast = __esm({
|
|
3132
3132
|
"node_modules/minimatch/dist/esm/ast.js"() {
|
|
3133
3133
|
init_brace_expressions();
|
|
3134
3134
|
init_unescape();
|
|
3135
3135
|
types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
|
|
3136
3136
|
isExtglobType = (c) => types.has(c);
|
|
3137
|
-
isExtglobAST = (c) => isExtglobType(c.type);
|
|
3138
|
-
adoptionMap = /* @__PURE__ */ new Map([
|
|
3139
|
-
["!", ["@"]],
|
|
3140
|
-
["?", ["?", "@"]],
|
|
3141
|
-
["@", ["@"]],
|
|
3142
|
-
["*", ["*", "+", "?", "@"]],
|
|
3143
|
-
["+", ["+", "@"]]
|
|
3144
|
-
]);
|
|
3145
|
-
adoptionWithSpaceMap = /* @__PURE__ */ new Map([
|
|
3146
|
-
["!", ["?"]],
|
|
3147
|
-
["@", ["?"]],
|
|
3148
|
-
["+", ["?", "*"]]
|
|
3149
|
-
]);
|
|
3150
|
-
adoptionAnyMap = /* @__PURE__ */ new Map([
|
|
3151
|
-
["!", ["?", "@"]],
|
|
3152
|
-
["?", ["?", "@"]],
|
|
3153
|
-
["@", ["?", "@"]],
|
|
3154
|
-
["*", ["*", "+", "?", "@"]],
|
|
3155
|
-
["+", ["+", "@", "?", "*"]]
|
|
3156
|
-
]);
|
|
3157
|
-
usurpMap = /* @__PURE__ */ new Map([
|
|
3158
|
-
["!", /* @__PURE__ */ new Map([["!", "@"]])],
|
|
3159
|
-
["?", /* @__PURE__ */ new Map([["*", "*"], ["+", "*"]])],
|
|
3160
|
-
["@", /* @__PURE__ */ new Map([["!", "!"], ["?", "?"], ["@", "@"], ["*", "*"], ["+", "+"]])],
|
|
3161
|
-
["+", /* @__PURE__ */ new Map([["?", "*"], ["*", "*"]])]
|
|
3162
|
-
]);
|
|
3163
3137
|
startNoTraversal = "(?!(?:^|/)\\.\\.?(?:$|/))";
|
|
3164
3138
|
startNoDot = "(?!\\.)";
|
|
3165
3139
|
addPatternStart = /* @__PURE__ */ new Set(["[", "."]);
|
|
@@ -3169,7 +3143,7 @@ var init_ast = __esm({
|
|
|
3169
3143
|
qmark = "[^/]";
|
|
3170
3144
|
star = qmark + "*?";
|
|
3171
3145
|
starNoEmpty = qmark + "+?";
|
|
3172
|
-
AST = class {
|
|
3146
|
+
AST = class _AST {
|
|
3173
3147
|
type;
|
|
3174
3148
|
#root;
|
|
3175
3149
|
#hasMagic;
|
|
@@ -3249,7 +3223,7 @@ var init_ast = __esm({
|
|
|
3249
3223
|
for (const p of parts) {
|
|
3250
3224
|
if (p === "")
|
|
3251
3225
|
continue;
|
|
3252
|
-
if (typeof p !== "string" && !(p instanceof
|
|
3226
|
+
if (typeof p !== "string" && !(p instanceof _AST && p.#parent === this)) {
|
|
3253
3227
|
throw new Error("invalid part: " + p);
|
|
3254
3228
|
}
|
|
3255
3229
|
this.#parts.push(p);
|
|
@@ -3274,7 +3248,7 @@ var init_ast = __esm({
|
|
|
3274
3248
|
const p = this.#parent;
|
|
3275
3249
|
for (let i = 0; i < this.#parentIndex; i++) {
|
|
3276
3250
|
const pp = p.#parts[i];
|
|
3277
|
-
if (!(pp instanceof
|
|
3251
|
+
if (!(pp instanceof _AST && pp.type === "!")) {
|
|
3278
3252
|
return false;
|
|
3279
3253
|
}
|
|
3280
3254
|
}
|
|
@@ -3299,14 +3273,13 @@ var init_ast = __esm({
|
|
|
3299
3273
|
this.push(part.clone(this));
|
|
3300
3274
|
}
|
|
3301
3275
|
clone(parent) {
|
|
3302
|
-
const c = new
|
|
3276
|
+
const c = new _AST(this.type, parent);
|
|
3303
3277
|
for (const p of this.#parts) {
|
|
3304
3278
|
c.copyIn(p);
|
|
3305
3279
|
}
|
|
3306
3280
|
return c;
|
|
3307
3281
|
}
|
|
3308
|
-
static #parseAST(str2, ast, pos, opt
|
|
3309
|
-
const maxDepth = opt.maxExtglobRecursion ?? 2;
|
|
3282
|
+
static #parseAST(str2, ast, pos, opt) {
|
|
3310
3283
|
let escaping = false;
|
|
3311
3284
|
let inBrace = false;
|
|
3312
3285
|
let braceStart = -1;
|
|
@@ -3338,12 +3311,11 @@ var init_ast = __esm({
|
|
|
3338
3311
|
acc2 += c;
|
|
3339
3312
|
continue;
|
|
3340
3313
|
}
|
|
3341
|
-
|
|
3342
|
-
if (doRecurse) {
|
|
3314
|
+
if (!opt.noext && isExtglobType(c) && str2.charAt(i2) === "(") {
|
|
3343
3315
|
ast.push(acc2);
|
|
3344
3316
|
acc2 = "";
|
|
3345
|
-
const ext2 = new
|
|
3346
|
-
i2 =
|
|
3317
|
+
const ext2 = new _AST(c, ast);
|
|
3318
|
+
i2 = _AST.#parseAST(str2, ext2, i2, opt);
|
|
3347
3319
|
ast.push(ext2);
|
|
3348
3320
|
continue;
|
|
3349
3321
|
}
|
|
@@ -3353,7 +3325,7 @@ var init_ast = __esm({
|
|
|
3353
3325
|
return i2;
|
|
3354
3326
|
}
|
|
3355
3327
|
let i = pos + 1;
|
|
3356
|
-
let part = new
|
|
3328
|
+
let part = new _AST(null, ast);
|
|
3357
3329
|
const parts = [];
|
|
3358
3330
|
let acc = "";
|
|
3359
3331
|
while (i < str2.length) {
|
|
@@ -3380,22 +3352,19 @@ var init_ast = __esm({
|
|
|
3380
3352
|
acc += c;
|
|
3381
3353
|
continue;
|
|
3382
3354
|
}
|
|
3383
|
-
|
|
3384
|
-
(extDepth <= maxDepth || ast && ast.#canAdoptType(c));
|
|
3385
|
-
if (doRecurse) {
|
|
3386
|
-
const depthAdd = ast && ast.#canAdoptType(c) ? 0 : 1;
|
|
3355
|
+
if (isExtglobType(c) && str2.charAt(i) === "(") {
|
|
3387
3356
|
part.push(acc);
|
|
3388
3357
|
acc = "";
|
|
3389
|
-
const ext2 = new
|
|
3358
|
+
const ext2 = new _AST(c, part);
|
|
3390
3359
|
part.push(ext2);
|
|
3391
|
-
i =
|
|
3360
|
+
i = _AST.#parseAST(str2, ext2, i, opt);
|
|
3392
3361
|
continue;
|
|
3393
3362
|
}
|
|
3394
3363
|
if (c === "|") {
|
|
3395
3364
|
part.push(acc);
|
|
3396
3365
|
acc = "";
|
|
3397
3366
|
parts.push(part);
|
|
3398
|
-
part = new
|
|
3367
|
+
part = new _AST(null, ast);
|
|
3399
3368
|
continue;
|
|
3400
3369
|
}
|
|
3401
3370
|
if (c === ")") {
|
|
@@ -3414,101 +3383,9 @@ var init_ast = __esm({
|
|
|
3414
3383
|
ast.#parts = [str2.substring(pos - 1)];
|
|
3415
3384
|
return i;
|
|
3416
3385
|
}
|
|
3417
|
-
#canAdoptWithSpace(child) {
|
|
3418
|
-
return this.#canAdopt(child, adoptionWithSpaceMap);
|
|
3419
|
-
}
|
|
3420
|
-
#canAdopt(child, map3 = adoptionMap) {
|
|
3421
|
-
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null) {
|
|
3422
|
-
return false;
|
|
3423
|
-
}
|
|
3424
|
-
const gc = child.#parts[0];
|
|
3425
|
-
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
3426
|
-
return false;
|
|
3427
|
-
}
|
|
3428
|
-
return this.#canAdoptType(gc.type, map3);
|
|
3429
|
-
}
|
|
3430
|
-
#canAdoptType(c, map3 = adoptionAnyMap) {
|
|
3431
|
-
return !!map3.get(this.type)?.includes(c);
|
|
3432
|
-
}
|
|
3433
|
-
#adoptWithSpace(child, index) {
|
|
3434
|
-
const gc = child.#parts[0];
|
|
3435
|
-
const blank = new _a(null, gc, this.options);
|
|
3436
|
-
blank.#parts.push("");
|
|
3437
|
-
gc.push(blank);
|
|
3438
|
-
this.#adopt(child, index);
|
|
3439
|
-
}
|
|
3440
|
-
#adopt(child, index) {
|
|
3441
|
-
const gc = child.#parts[0];
|
|
3442
|
-
this.#parts.splice(index, 1, ...gc.#parts);
|
|
3443
|
-
for (const p of gc.#parts) {
|
|
3444
|
-
if (typeof p === "object")
|
|
3445
|
-
p.#parent = this;
|
|
3446
|
-
}
|
|
3447
|
-
this.#toString = void 0;
|
|
3448
|
-
}
|
|
3449
|
-
#canUsurpType(c) {
|
|
3450
|
-
const m = usurpMap.get(this.type);
|
|
3451
|
-
return !!m?.has(c);
|
|
3452
|
-
}
|
|
3453
|
-
#canUsurp(child) {
|
|
3454
|
-
if (!child || typeof child !== "object" || child.type !== null || child.#parts.length !== 1 || this.type === null || this.#parts.length !== 1) {
|
|
3455
|
-
return false;
|
|
3456
|
-
}
|
|
3457
|
-
const gc = child.#parts[0];
|
|
3458
|
-
if (!gc || typeof gc !== "object" || gc.type === null) {
|
|
3459
|
-
return false;
|
|
3460
|
-
}
|
|
3461
|
-
return this.#canUsurpType(gc.type);
|
|
3462
|
-
}
|
|
3463
|
-
#usurp(child) {
|
|
3464
|
-
const m = usurpMap.get(this.type);
|
|
3465
|
-
const gc = child.#parts[0];
|
|
3466
|
-
const nt = m?.get(gc.type);
|
|
3467
|
-
if (!nt)
|
|
3468
|
-
return false;
|
|
3469
|
-
this.#parts = gc.#parts;
|
|
3470
|
-
for (const p of this.#parts) {
|
|
3471
|
-
if (typeof p === "object")
|
|
3472
|
-
p.#parent = this;
|
|
3473
|
-
}
|
|
3474
|
-
this.type = nt;
|
|
3475
|
-
this.#toString = void 0;
|
|
3476
|
-
this.#emptyExt = false;
|
|
3477
|
-
}
|
|
3478
|
-
#flatten() {
|
|
3479
|
-
if (!isExtglobAST(this)) {
|
|
3480
|
-
for (const p of this.#parts) {
|
|
3481
|
-
if (typeof p === "object")
|
|
3482
|
-
p.#flatten();
|
|
3483
|
-
}
|
|
3484
|
-
} else {
|
|
3485
|
-
let iterations = 0;
|
|
3486
|
-
let done = false;
|
|
3487
|
-
do {
|
|
3488
|
-
done = true;
|
|
3489
|
-
for (let i = 0; i < this.#parts.length; i++) {
|
|
3490
|
-
const c = this.#parts[i];
|
|
3491
|
-
if (typeof c === "object") {
|
|
3492
|
-
c.#flatten();
|
|
3493
|
-
if (this.#canAdopt(c)) {
|
|
3494
|
-
done = false;
|
|
3495
|
-
this.#adopt(c, i);
|
|
3496
|
-
} else if (this.#canAdoptWithSpace(c)) {
|
|
3497
|
-
done = false;
|
|
3498
|
-
this.#adoptWithSpace(c, i);
|
|
3499
|
-
} else if (this.#canUsurp(c)) {
|
|
3500
|
-
done = false;
|
|
3501
|
-
this.#usurp(c);
|
|
3502
|
-
}
|
|
3503
|
-
}
|
|
3504
|
-
}
|
|
3505
|
-
} while (!done && ++iterations < 10);
|
|
3506
|
-
}
|
|
3507
|
-
this.#toString = void 0;
|
|
3508
|
-
}
|
|
3509
3386
|
static fromGlob(pattern, options = {}) {
|
|
3510
|
-
const ast = new
|
|
3511
|
-
|
|
3387
|
+
const ast = new _AST(null, void 0, options);
|
|
3388
|
+
_AST.#parseAST(pattern, ast, 0, options);
|
|
3512
3389
|
return ast;
|
|
3513
3390
|
}
|
|
3514
3391
|
// returns the regular expression if there's magic, or the unescaped
|
|
@@ -3602,14 +3479,12 @@ var init_ast = __esm({
|
|
|
3602
3479
|
// or start or whatever) and prepend ^ or / at the Regexp construction.
|
|
3603
3480
|
toRegExpSource(allowDot) {
|
|
3604
3481
|
const dot = allowDot ?? !!this.#options.dot;
|
|
3605
|
-
if (this.#root === this)
|
|
3606
|
-
this.#flatten();
|
|
3482
|
+
if (this.#root === this)
|
|
3607
3483
|
this.#fillNegs();
|
|
3608
|
-
|
|
3609
|
-
if (!isExtglobAST(this)) {
|
|
3484
|
+
if (!this.type) {
|
|
3610
3485
|
const noEmpty = this.isStart() && this.isEnd();
|
|
3611
3486
|
const src = this.#parts.map((p) => {
|
|
3612
|
-
const [re, _, hasMagic2, uflag] = typeof p === "string" ?
|
|
3487
|
+
const [re, _, hasMagic2, uflag] = typeof p === "string" ? _AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
|
|
3613
3488
|
this.#hasMagic = this.#hasMagic || hasMagic2;
|
|
3614
3489
|
this.#uflag = this.#uflag || uflag;
|
|
3615
3490
|
return re;
|
|
@@ -3648,10 +3523,9 @@ var init_ast = __esm({
|
|
|
3648
3523
|
let body = this.#partsToRegExp(dot);
|
|
3649
3524
|
if (this.isStart() && this.isEnd() && !body && this.type !== "!") {
|
|
3650
3525
|
const s = this.toString();
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
me.#hasMagic = void 0;
|
|
3526
|
+
this.#parts = [s];
|
|
3527
|
+
this.type = null;
|
|
3528
|
+
this.#hasMagic = void 0;
|
|
3655
3529
|
return [s, unescape2(this.toString()), false, false];
|
|
3656
3530
|
}
|
|
3657
3531
|
let bodyDotAllowed = !repeated || allowDot || dot || !startNoDot ? "" : this.#partsToRegExp(true);
|
|
@@ -3692,13 +3566,11 @@ var init_ast = __esm({
|
|
|
3692
3566
|
let escaping = false;
|
|
3693
3567
|
let re = "";
|
|
3694
3568
|
let uflag = false;
|
|
3695
|
-
let inStar = false;
|
|
3696
3569
|
for (let i = 0; i < glob2.length; i++) {
|
|
3697
3570
|
const c = glob2.charAt(i);
|
|
3698
3571
|
if (escaping) {
|
|
3699
3572
|
escaping = false;
|
|
3700
3573
|
re += (reSpecials.has(c) ? "\\" : "") + c;
|
|
3701
|
-
inStar = false;
|
|
3702
3574
|
continue;
|
|
3703
3575
|
}
|
|
3704
3576
|
if (c === "\\") {
|
|
@@ -3716,19 +3588,16 @@ var init_ast = __esm({
|
|
|
3716
3588
|
uflag = uflag || needUflag;
|
|
3717
3589
|
i += consumed - 1;
|
|
3718
3590
|
hasMagic2 = hasMagic2 || magic;
|
|
3719
|
-
inStar = false;
|
|
3720
3591
|
continue;
|
|
3721
3592
|
}
|
|
3722
3593
|
}
|
|
3723
3594
|
if (c === "*") {
|
|
3724
|
-
if (
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3595
|
+
if (noEmpty && glob2 === "*")
|
|
3596
|
+
re += starNoEmpty;
|
|
3597
|
+
else
|
|
3598
|
+
re += star;
|
|
3728
3599
|
hasMagic2 = true;
|
|
3729
3600
|
continue;
|
|
3730
|
-
} else {
|
|
3731
|
-
inStar = false;
|
|
3732
3601
|
}
|
|
3733
3602
|
if (c === "?") {
|
|
3734
3603
|
re += qmark;
|
|
@@ -3740,7 +3609,6 @@ var init_ast = __esm({
|
|
|
3740
3609
|
return [re, unescape2(glob2), !!hasMagic2, uflag];
|
|
3741
3610
|
}
|
|
3742
3611
|
};
|
|
3743
|
-
_a = AST;
|
|
3744
3612
|
}
|
|
3745
3613
|
});
|
|
3746
3614
|
|
|
@@ -3914,13 +3782,11 @@ var init_esm = __esm({
|
|
|
3914
3782
|
isWindows;
|
|
3915
3783
|
platform;
|
|
3916
3784
|
windowsNoMagicRoot;
|
|
3917
|
-
maxGlobstarRecursion;
|
|
3918
3785
|
regexp;
|
|
3919
3786
|
constructor(pattern, options = {}) {
|
|
3920
3787
|
assertValidPattern(pattern);
|
|
3921
3788
|
options = options || {};
|
|
3922
3789
|
this.options = options;
|
|
3923
|
-
this.maxGlobstarRecursion = options.maxGlobstarRecursion ?? 200;
|
|
3924
3790
|
this.pattern = pattern;
|
|
3925
3791
|
this.platform = options.platform || defaultPlatform;
|
|
3926
3792
|
this.isWindows = this.platform === "win32";
|
|
@@ -4253,8 +4119,7 @@ var init_esm = __esm({
|
|
|
4253
4119
|
// out of pattern, then that's fine, as long as all
|
|
4254
4120
|
// the parts match.
|
|
4255
4121
|
matchOne(file, pattern, partial2 = false) {
|
|
4256
|
-
|
|
4257
|
-
let patternStartIndex = 0;
|
|
4122
|
+
const options = this.options;
|
|
4258
4123
|
if (this.isWindows) {
|
|
4259
4124
|
const fileDrive = typeof file[0] === "string" && /^[a-z]:$/i.test(file[0]);
|
|
4260
4125
|
const fileUNC = !fileDrive && file[0] === "" && file[1] === "" && file[2] === "?" && /^[a-z]:$/i.test(file[3]);
|
|
@@ -4263,14 +4128,14 @@ var init_esm = __esm({
|
|
|
4263
4128
|
const fdi = fileUNC ? 3 : fileDrive ? 0 : void 0;
|
|
4264
4129
|
const pdi = patternUNC ? 3 : patternDrive ? 0 : void 0;
|
|
4265
4130
|
if (typeof fdi === "number" && typeof pdi === "number") {
|
|
4266
|
-
const [fd, pd] = [
|
|
4267
|
-
file[fdi],
|
|
4268
|
-
pattern[pdi]
|
|
4269
|
-
];
|
|
4131
|
+
const [fd, pd] = [file[fdi], pattern[pdi]];
|
|
4270
4132
|
if (fd.toLowerCase() === pd.toLowerCase()) {
|
|
4271
4133
|
pattern[pdi] = fd;
|
|
4272
|
-
|
|
4273
|
-
|
|
4134
|
+
if (pdi > fdi) {
|
|
4135
|
+
pattern = pattern.slice(pdi);
|
|
4136
|
+
} else if (fdi > pdi) {
|
|
4137
|
+
file = file.slice(fdi);
|
|
4138
|
+
}
|
|
4274
4139
|
}
|
|
4275
4140
|
}
|
|
4276
4141
|
}
|
|
@@ -4278,118 +4143,51 @@ var init_esm = __esm({
|
|
|
4278
4143
|
if (optimizationLevel >= 2) {
|
|
4279
4144
|
file = this.levelTwoFileOptimize(file);
|
|
4280
4145
|
}
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
const [head2, body, tail] = partial2 ? [
|
|
4290
|
-
pattern.slice(patternIndex, firstgs),
|
|
4291
|
-
pattern.slice(firstgs + 1),
|
|
4292
|
-
[]
|
|
4293
|
-
] : [
|
|
4294
|
-
pattern.slice(patternIndex, firstgs),
|
|
4295
|
-
pattern.slice(firstgs + 1, lastgs),
|
|
4296
|
-
pattern.slice(lastgs + 1)
|
|
4297
|
-
];
|
|
4298
|
-
if (head2.length) {
|
|
4299
|
-
const fileHead = file.slice(fileIndex, fileIndex + head2.length);
|
|
4300
|
-
if (!this.#matchOne(fileHead, head2, partial2, 0, 0))
|
|
4301
|
-
return false;
|
|
4302
|
-
fileIndex += head2.length;
|
|
4303
|
-
}
|
|
4304
|
-
let fileTailMatch = 0;
|
|
4305
|
-
if (tail.length) {
|
|
4306
|
-
if (tail.length + fileIndex > file.length)
|
|
4146
|
+
this.debug("matchOne", this, { file, pattern });
|
|
4147
|
+
this.debug("matchOne", file.length, pattern.length);
|
|
4148
|
+
for (var fi = 0, pi = 0, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
4149
|
+
this.debug("matchOne loop");
|
|
4150
|
+
var p = pattern[pi];
|
|
4151
|
+
var f = file[fi];
|
|
4152
|
+
this.debug(pattern, p, f);
|
|
4153
|
+
if (p === false) {
|
|
4307
4154
|
return false;
|
|
4308
|
-
let tailStart = file.length - tail.length;
|
|
4309
|
-
if (this.#matchOne(file, tail, partial2, tailStart, 0)) {
|
|
4310
|
-
fileTailMatch = tail.length;
|
|
4311
|
-
} else {
|
|
4312
|
-
if (file[file.length - 1] !== "" || fileIndex + tail.length === file.length) {
|
|
4313
|
-
return false;
|
|
4314
|
-
}
|
|
4315
|
-
tailStart--;
|
|
4316
|
-
if (!this.#matchOne(file, tail, partial2, tailStart, 0))
|
|
4317
|
-
return false;
|
|
4318
|
-
fileTailMatch = tail.length + 1;
|
|
4319
4155
|
}
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4156
|
+
if (p === GLOBSTAR) {
|
|
4157
|
+
this.debug("GLOBSTAR", [pattern, p, f]);
|
|
4158
|
+
var fr = fi;
|
|
4159
|
+
var pr = pi + 1;
|
|
4160
|
+
if (pr === pl) {
|
|
4161
|
+
this.debug("** at the end");
|
|
4162
|
+
for (; fi < fl; fi++) {
|
|
4163
|
+
if (file[fi] === "." || file[fi] === ".." || !options.dot && file[fi].charAt(0) === ".")
|
|
4164
|
+
return false;
|
|
4165
|
+
}
|
|
4166
|
+
return true;
|
|
4328
4167
|
}
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
b[1] = fileLength - (nonGsPartsSums[i--] + b[0].length);
|
|
4350
|
-
}
|
|
4351
|
-
return !!this.#matchGlobStarBodySections(file, bodySegments, fileIndex, 0, partial2, 0, !!fileTailMatch);
|
|
4352
|
-
}
|
|
4353
|
-
#matchGlobStarBodySections(file, bodySegments, fileIndex, bodyIndex, partial2, globStarDepth, sawTail) {
|
|
4354
|
-
const bs = bodySegments[bodyIndex];
|
|
4355
|
-
if (!bs) {
|
|
4356
|
-
for (let i = fileIndex; i < file.length; i++) {
|
|
4357
|
-
sawTail = true;
|
|
4358
|
-
const f = file[i];
|
|
4359
|
-
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
4360
|
-
return false;
|
|
4168
|
+
while (fr < fl) {
|
|
4169
|
+
var swallowee = file[fr];
|
|
4170
|
+
this.debug("\nglobstar while", file, fr, pattern, pr, swallowee);
|
|
4171
|
+
if (this.matchOne(file.slice(fr), pattern.slice(pr), partial2)) {
|
|
4172
|
+
this.debug("globstar found match!", fr, fl, swallowee);
|
|
4173
|
+
return true;
|
|
4174
|
+
} else {
|
|
4175
|
+
if (swallowee === "." || swallowee === ".." || !options.dot && swallowee.charAt(0) === ".") {
|
|
4176
|
+
this.debug("dot detected!", file, fr, pattern, pr);
|
|
4177
|
+
break;
|
|
4178
|
+
}
|
|
4179
|
+
this.debug("globstar swallow a segment, and continue");
|
|
4180
|
+
fr++;
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
if (partial2) {
|
|
4184
|
+
this.debug("\n>>> no match, partial?", file, fr, pattern, pr);
|
|
4185
|
+
if (fr === fl) {
|
|
4186
|
+
return true;
|
|
4187
|
+
}
|
|
4361
4188
|
}
|
|
4362
|
-
}
|
|
4363
|
-
return sawTail;
|
|
4364
|
-
}
|
|
4365
|
-
const [body, after] = bs;
|
|
4366
|
-
while (fileIndex <= after) {
|
|
4367
|
-
const m = this.#matchOne(file.slice(0, fileIndex + body.length), body, partial2, fileIndex, 0);
|
|
4368
|
-
if (m && globStarDepth < this.maxGlobstarRecursion) {
|
|
4369
|
-
const sub = this.#matchGlobStarBodySections(file, bodySegments, fileIndex + body.length, bodyIndex + 1, partial2, globStarDepth + 1, sawTail);
|
|
4370
|
-
if (sub !== false)
|
|
4371
|
-
return sub;
|
|
4372
|
-
}
|
|
4373
|
-
const f = file[fileIndex];
|
|
4374
|
-
if (f === "." || f === ".." || !this.options.dot && f.startsWith(".")) {
|
|
4375
4189
|
return false;
|
|
4376
4190
|
}
|
|
4377
|
-
fileIndex++;
|
|
4378
|
-
}
|
|
4379
|
-
return partial2 || null;
|
|
4380
|
-
}
|
|
4381
|
-
#matchOne(file, pattern, partial2, fileIndex, patternIndex) {
|
|
4382
|
-
let fi;
|
|
4383
|
-
let pi;
|
|
4384
|
-
let pl;
|
|
4385
|
-
let fl;
|
|
4386
|
-
for (fi = fileIndex, pi = patternIndex, fl = file.length, pl = pattern.length; fi < fl && pi < pl; fi++, pi++) {
|
|
4387
|
-
this.debug("matchOne loop");
|
|
4388
|
-
let p = pattern[pi];
|
|
4389
|
-
let f = file[fi];
|
|
4390
|
-
this.debug(pattern, p, f);
|
|
4391
|
-
if (p === false || p === GLOBSTAR)
|
|
4392
|
-
return false;
|
|
4393
4191
|
let hit;
|
|
4394
4192
|
if (typeof p === "string") {
|
|
4395
4193
|
hit = f === p;
|
|
@@ -9671,7 +9469,7 @@ var VERSION;
|
|
|
9671
9469
|
var init_generated_version = __esm({
|
|
9672
9470
|
"src/generated-version.ts"() {
|
|
9673
9471
|
"use strict";
|
|
9674
|
-
VERSION = "0.21.
|
|
9472
|
+
VERSION = "0.21.6";
|
|
9675
9473
|
}
|
|
9676
9474
|
});
|
|
9677
9475
|
|
|
@@ -15103,7 +14901,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
15103
14901
|
if (keepNames) flags.push(`--keep-names`);
|
|
15104
14902
|
}
|
|
15105
14903
|
function flagsForBuildOptions(callName, options, isTTY22, logLevelDefault, writeDefault) {
|
|
15106
|
-
var
|
|
14904
|
+
var _a2;
|
|
15107
14905
|
let flags = [];
|
|
15108
14906
|
let entries = [];
|
|
15109
14907
|
let keys2 = /* @__PURE__ */ Object.create(null);
|
|
@@ -15139,7 +14937,7 @@ is not a problem with esbuild. You need to fix your environment instead.
|
|
|
15139
14937
|
let entryPoints = getFlag(options, keys2, "entryPoints", mustBeEntryPoints);
|
|
15140
14938
|
let absWorkingDir = getFlag(options, keys2, "absWorkingDir", mustBeString);
|
|
15141
14939
|
let stdin = getFlag(options, keys2, "stdin", mustBeObject);
|
|
15142
|
-
let write = (
|
|
14940
|
+
let write = (_a2 = getFlag(options, keys2, "write", mustBeBoolean)) != null ? _a2 : writeDefault;
|
|
15143
14941
|
let allowOverwrite = getFlag(options, keys2, "allowOverwrite", mustBeBoolean);
|
|
15144
14942
|
let mangleCache = getFlag(options, keys2, "mangleCache", mustBeObject);
|
|
15145
14943
|
keys2.plugins = true;
|
|
@@ -16515,8 +16313,8 @@ for your current platform.`);
|
|
|
16515
16313
|
worker_threads = void 0;
|
|
16516
16314
|
}
|
|
16517
16315
|
}
|
|
16518
|
-
var
|
|
16519
|
-
var isInternalWorkerThread = ((
|
|
16316
|
+
var _a;
|
|
16317
|
+
var isInternalWorkerThread = ((_a = worker_threads == null ? void 0 : worker_threads.workerData) == null ? void 0 : _a.esbuildVersion) === "0.27.3";
|
|
16520
16318
|
var esbuildCommandAndArgs = () => {
|
|
16521
16319
|
if ((!ESBUILD_BINARY_PATH || false) && (path210.basename(__filename) !== "main.js" || path210.basename(__dirname) !== "lib")) {
|
|
16522
16320
|
throw new Error(
|
|
@@ -29400,8 +29198,8 @@ var init_llk_lookahead = __esm({
|
|
|
29400
29198
|
init_lookahead();
|
|
29401
29199
|
LLkLookaheadStrategy = class {
|
|
29402
29200
|
constructor(options) {
|
|
29403
|
-
var
|
|
29404
|
-
this.maxLookahead = (
|
|
29201
|
+
var _a;
|
|
29202
|
+
this.maxLookahead = (_a = options === null || options === void 0 ? void 0 : options.maxLookahead) !== null && _a !== void 0 ? _a : DEFAULT_PARSER_CONFIG.maxLookahead;
|
|
29405
29203
|
}
|
|
29406
29204
|
validate(options) {
|
|
29407
29205
|
const leftRecursionErrors = this.validateNoLeftRecursion(options.rules);
|
|
@@ -31270,8 +31068,8 @@ var init_parser = __esm({
|
|
|
31270
31068
|
});
|
|
31271
31069
|
}
|
|
31272
31070
|
this.TRACE_INIT("ComputeLookaheadFunctions", () => {
|
|
31273
|
-
var
|
|
31274
|
-
(_b = (
|
|
31071
|
+
var _a, _b;
|
|
31072
|
+
(_b = (_a = this.lookaheadStrategy).initialize) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
31275
31073
|
rules: values_default(this.gastProductionsCache)
|
|
31276
31074
|
});
|
|
31277
31075
|
this.preComputeLookaheadFunctions(values_default(this.gastProductionsCache));
|
|
@@ -61186,12 +60984,12 @@ var require_code = __commonJS({
|
|
|
61186
60984
|
return item === "" || item === '""';
|
|
61187
60985
|
}
|
|
61188
60986
|
get str() {
|
|
61189
|
-
var
|
|
61190
|
-
return (
|
|
60987
|
+
var _a;
|
|
60988
|
+
return (_a = this._str) !== null && _a !== void 0 ? _a : this._str = this._items.reduce((s, c) => `${s}${c}`, "");
|
|
61191
60989
|
}
|
|
61192
60990
|
get names() {
|
|
61193
|
-
var
|
|
61194
|
-
return (
|
|
60991
|
+
var _a;
|
|
60992
|
+
return (_a = this._names) !== null && _a !== void 0 ? _a : this._names = this._items.reduce((names, c) => {
|
|
61195
60993
|
if (c instanceof Name)
|
|
61196
60994
|
names[c.str] = (names[c.str] || 0) + 1;
|
|
61197
60995
|
return names;
|
|
@@ -61337,8 +61135,8 @@ var require_scope = __commonJS({
|
|
|
61337
61135
|
return `${prefix}${ng.index++}`;
|
|
61338
61136
|
}
|
|
61339
61137
|
_nameGroup(prefix) {
|
|
61340
|
-
var
|
|
61341
|
-
if (((_b = (
|
|
61138
|
+
var _a, _b;
|
|
61139
|
+
if (((_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a._prefixes) === null || _b === void 0 ? void 0 : _b.has(prefix)) || this._prefixes && !this._prefixes.has(prefix)) {
|
|
61342
61140
|
throw new Error(`CodeGen: prefix "${prefix}" is not allowed in this scope`);
|
|
61343
61141
|
}
|
|
61344
61142
|
return this._names[prefix] = { prefix, index: 0 };
|
|
@@ -61371,12 +61169,12 @@ var require_scope = __commonJS({
|
|
|
61371
61169
|
return new ValueScopeName(prefix, this._newName(prefix));
|
|
61372
61170
|
}
|
|
61373
61171
|
value(nameOrPrefix, value) {
|
|
61374
|
-
var
|
|
61172
|
+
var _a;
|
|
61375
61173
|
if (value.ref === void 0)
|
|
61376
61174
|
throw new Error("CodeGen: ref must be passed in value");
|
|
61377
61175
|
const name = this.toName(nameOrPrefix);
|
|
61378
61176
|
const { prefix } = name;
|
|
61379
|
-
const valueKey = (
|
|
61177
|
+
const valueKey = (_a = value.key) !== null && _a !== void 0 ? _a : value.ref;
|
|
61380
61178
|
let vs = this._values[prefix];
|
|
61381
61179
|
if (vs) {
|
|
61382
61180
|
const _name = vs.get(valueKey);
|
|
@@ -61694,8 +61492,8 @@ var require_codegen = __commonJS({
|
|
|
61694
61492
|
return this;
|
|
61695
61493
|
}
|
|
61696
61494
|
optimizeNames(names, constants) {
|
|
61697
|
-
var
|
|
61698
|
-
this.else = (
|
|
61495
|
+
var _a;
|
|
61496
|
+
this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants);
|
|
61699
61497
|
if (!(super.optimizeNames(names, constants) || this.else))
|
|
61700
61498
|
return;
|
|
61701
61499
|
this.condition = optimizeExpr(this.condition, names, constants);
|
|
@@ -61799,16 +61597,16 @@ var require_codegen = __commonJS({
|
|
|
61799
61597
|
return code;
|
|
61800
61598
|
}
|
|
61801
61599
|
optimizeNodes() {
|
|
61802
|
-
var
|
|
61600
|
+
var _a, _b;
|
|
61803
61601
|
super.optimizeNodes();
|
|
61804
|
-
(
|
|
61602
|
+
(_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNodes();
|
|
61805
61603
|
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes();
|
|
61806
61604
|
return this;
|
|
61807
61605
|
}
|
|
61808
61606
|
optimizeNames(names, constants) {
|
|
61809
|
-
var
|
|
61607
|
+
var _a, _b;
|
|
61810
61608
|
super.optimizeNames(names, constants);
|
|
61811
|
-
(
|
|
61609
|
+
(_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants);
|
|
61812
61610
|
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants);
|
|
61813
61611
|
return this;
|
|
61814
61612
|
}
|
|
@@ -62588,8 +62386,8 @@ var require_applicability = __commonJS({
|
|
|
62588
62386
|
}
|
|
62589
62387
|
exports2.shouldUseGroup = shouldUseGroup;
|
|
62590
62388
|
function shouldUseRule(schema2, rule) {
|
|
62591
|
-
var
|
|
62592
|
-
return schema2[rule.keyword] !== void 0 || ((
|
|
62389
|
+
var _a;
|
|
62390
|
+
return schema2[rule.keyword] !== void 0 || ((_a = rule.definition.implements) === null || _a === void 0 ? void 0 : _a.some((kwd) => schema2[kwd] !== void 0));
|
|
62593
62391
|
}
|
|
62594
62392
|
exports2.shouldUseRule = shouldUseRule;
|
|
62595
62393
|
}
|
|
@@ -62977,14 +62775,14 @@ var require_keyword = __commonJS({
|
|
|
62977
62775
|
}
|
|
62978
62776
|
exports2.macroKeywordCode = macroKeywordCode;
|
|
62979
62777
|
function funcKeywordCode(cxt, def) {
|
|
62980
|
-
var
|
|
62778
|
+
var _a;
|
|
62981
62779
|
const { gen, keyword, schema: schema2, parentSchema, $data, it } = cxt;
|
|
62982
62780
|
checkAsyncKeyword(it, def);
|
|
62983
62781
|
const validate = !$data && def.compile ? def.compile.call(it.self, schema2, parentSchema, it) : def.validate;
|
|
62984
62782
|
const validateRef = useKeyword(gen, keyword, validate);
|
|
62985
62783
|
const valid = gen.let("valid");
|
|
62986
62784
|
cxt.block$data(valid, validateKeyword);
|
|
62987
|
-
cxt.ok((
|
|
62785
|
+
cxt.ok((_a = def.valid) !== null && _a !== void 0 ? _a : valid);
|
|
62988
62786
|
function validateKeyword() {
|
|
62989
62787
|
if (def.errors === false) {
|
|
62990
62788
|
assignValid();
|
|
@@ -63015,8 +62813,8 @@ var require_keyword = __commonJS({
|
|
|
63015
62813
|
gen.assign(valid, (0, codegen_1._)`${_await}${(0, code_1.callValidateCode)(cxt, validateRef, passCxt, passSchema)}`, def.modifying);
|
|
63016
62814
|
}
|
|
63017
62815
|
function reportErrs(errors2) {
|
|
63018
|
-
var
|
|
63019
|
-
gen.if((0, codegen_1.not)((
|
|
62816
|
+
var _a2;
|
|
62817
|
+
gen.if((0, codegen_1.not)((_a2 = def.valid) !== null && _a2 !== void 0 ? _a2 : valid), errors2);
|
|
63020
62818
|
}
|
|
63021
62819
|
}
|
|
63022
62820
|
exports2.funcKeywordCode = funcKeywordCode;
|
|
@@ -63984,7 +63782,7 @@ var require_compile = __commonJS({
|
|
|
63984
63782
|
var validate_1 = require_validate();
|
|
63985
63783
|
var SchemaEnv = class {
|
|
63986
63784
|
constructor(env) {
|
|
63987
|
-
var
|
|
63785
|
+
var _a;
|
|
63988
63786
|
this.refs = {};
|
|
63989
63787
|
this.dynamicAnchors = {};
|
|
63990
63788
|
let schema2;
|
|
@@ -63993,7 +63791,7 @@ var require_compile = __commonJS({
|
|
|
63993
63791
|
this.schema = env.schema;
|
|
63994
63792
|
this.schemaId = env.schemaId;
|
|
63995
63793
|
this.root = env.root || this;
|
|
63996
|
-
this.baseId = (
|
|
63794
|
+
this.baseId = (_a = env.baseId) !== null && _a !== void 0 ? _a : (0, resolve_1.normalizeId)(schema2 === null || schema2 === void 0 ? void 0 : schema2[env.schemaId || "$id"]);
|
|
63997
63795
|
this.schemaPath = env.schemaPath;
|
|
63998
63796
|
this.localRefs = env.localRefs;
|
|
63999
63797
|
this.meta = env.meta;
|
|
@@ -64089,14 +63887,14 @@ var require_compile = __commonJS({
|
|
|
64089
63887
|
}
|
|
64090
63888
|
exports2.compileSchema = compileSchema;
|
|
64091
63889
|
function resolveRef(root2, baseId, ref) {
|
|
64092
|
-
var
|
|
63890
|
+
var _a;
|
|
64093
63891
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
64094
63892
|
const schOrFunc = root2.refs[ref];
|
|
64095
63893
|
if (schOrFunc)
|
|
64096
63894
|
return schOrFunc;
|
|
64097
63895
|
let _sch = resolve35.call(this, root2, ref);
|
|
64098
63896
|
if (_sch === void 0) {
|
|
64099
|
-
const schema2 = (
|
|
63897
|
+
const schema2 = (_a = root2.localRefs) === null || _a === void 0 ? void 0 : _a[ref];
|
|
64100
63898
|
const { schemaId } = this.opts;
|
|
64101
63899
|
if (schema2)
|
|
64102
63900
|
_sch = new SchemaEnv({ schema: schema2, schemaId, root: root2, baseId });
|
|
@@ -64165,8 +63963,8 @@ var require_compile = __commonJS({
|
|
|
64165
63963
|
"definitions"
|
|
64166
63964
|
]);
|
|
64167
63965
|
function getJsonPointer(parsedRef, { baseId, schema: schema2, root: root2 }) {
|
|
64168
|
-
var
|
|
64169
|
-
if (((
|
|
63966
|
+
var _a;
|
|
63967
|
+
if (((_a = parsedRef.fragment) === null || _a === void 0 ? void 0 : _a[0]) !== "/")
|
|
64170
63968
|
return;
|
|
64171
63969
|
for (const part of parsedRef.fragment.slice(1).split("/")) {
|
|
64172
63970
|
if (typeof schema2 === "boolean")
|
|
@@ -65027,9 +64825,9 @@ var require_core = __commonJS({
|
|
|
65027
64825
|
};
|
|
65028
64826
|
var MAX_EXPRESSION = 200;
|
|
65029
64827
|
function requiredOptions(o) {
|
|
65030
|
-
var
|
|
64828
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
65031
64829
|
const s = o.strict;
|
|
65032
|
-
const _optz = (
|
|
64830
|
+
const _optz = (_a = o.code) === null || _a === void 0 ? void 0 : _a.optimize;
|
|
65033
64831
|
const optimize = _optz === true || _optz === void 0 ? 1 : _optz || 0;
|
|
65034
64832
|
const regExp = (_c = (_b = o.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;
|
|
65035
64833
|
const uriResolver = (_d = o.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;
|
|
@@ -65503,7 +65301,7 @@ var require_core = __commonJS({
|
|
|
65503
65301
|
}
|
|
65504
65302
|
}
|
|
65505
65303
|
function addRule(keyword, definition, dataType) {
|
|
65506
|
-
var
|
|
65304
|
+
var _a;
|
|
65507
65305
|
const post = definition === null || definition === void 0 ? void 0 : definition.post;
|
|
65508
65306
|
if (dataType && post)
|
|
65509
65307
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
@@ -65529,7 +65327,7 @@ var require_core = __commonJS({
|
|
|
65529
65327
|
else
|
|
65530
65328
|
ruleGroup.rules.push(rule);
|
|
65531
65329
|
RULES.all[keyword] = rule;
|
|
65532
|
-
(
|
|
65330
|
+
(_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
|
|
65533
65331
|
}
|
|
65534
65332
|
function addBeforeRule(ruleGroup, rule, before) {
|
|
65535
65333
|
const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
|
|
@@ -65663,10 +65461,10 @@ var require_ref = __commonJS({
|
|
|
65663
65461
|
gen.assign(names_1.default.errors, (0, codegen_1._)`${names_1.default.vErrors}.length`);
|
|
65664
65462
|
}
|
|
65665
65463
|
function addEvaluatedFrom(source) {
|
|
65666
|
-
var
|
|
65464
|
+
var _a;
|
|
65667
65465
|
if (!it.opts.unevaluated)
|
|
65668
65466
|
return;
|
|
65669
|
-
const schEvaluated = (
|
|
65467
|
+
const schEvaluated = (_a = sch === null || sch === void 0 ? void 0 : sch.validate) === null || _a === void 0 ? void 0 : _a.evaluated;
|
|
65670
65468
|
if (it.props !== true) {
|
|
65671
65469
|
if (schEvaluated && !schEvaluated.dynamicProps) {
|
|
65672
65470
|
if (schEvaluated.props !== void 0) {
|
|
@@ -67317,7 +67115,7 @@ var require_discriminator = __commonJS({
|
|
|
67317
67115
|
return _valid;
|
|
67318
67116
|
}
|
|
67319
67117
|
function getMapping() {
|
|
67320
|
-
var
|
|
67118
|
+
var _a;
|
|
67321
67119
|
const oneOfMapping = {};
|
|
67322
67120
|
const topRequired = hasRequired(parentSchema);
|
|
67323
67121
|
let tagRequired = true;
|
|
@@ -67331,7 +67129,7 @@ var require_discriminator = __commonJS({
|
|
|
67331
67129
|
if (sch === void 0)
|
|
67332
67130
|
throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
|
|
67333
67131
|
}
|
|
67334
|
-
const propSch = (
|
|
67132
|
+
const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
|
|
67335
67133
|
if (typeof propSch != "object") {
|
|
67336
67134
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
|
|
67337
67135
|
}
|
|
@@ -67900,9 +67698,9 @@ var require_dist = __commonJS({
|
|
|
67900
67698
|
return f;
|
|
67901
67699
|
};
|
|
67902
67700
|
function addFormats(ajv, list, fs47, exportName) {
|
|
67903
|
-
var
|
|
67701
|
+
var _a;
|
|
67904
67702
|
var _b;
|
|
67905
|
-
(
|
|
67703
|
+
(_a = (_b = ajv.opts.code).formats) !== null && _a !== void 0 ? _a : _b.formats = (0, codegen_1._)`require("ajv-formats/dist/formats").${exportName}`;
|
|
67906
67704
|
for (const f of list)
|
|
67907
67705
|
ajv.addFormat(f, fs47[f]);
|
|
67908
67706
|
}
|
|
@@ -76699,12 +76497,12 @@ var NEVER2 = Object.freeze({
|
|
|
76699
76497
|
// @__NO_SIDE_EFFECTS__
|
|
76700
76498
|
function $constructor(name, initializer3, params) {
|
|
76701
76499
|
function init(inst, def) {
|
|
76702
|
-
var
|
|
76500
|
+
var _a;
|
|
76703
76501
|
Object.defineProperty(inst, "_zod", {
|
|
76704
76502
|
value: inst._zod ?? {},
|
|
76705
76503
|
enumerable: false
|
|
76706
76504
|
});
|
|
76707
|
-
(
|
|
76505
|
+
(_a = inst._zod).traits ?? (_a.traits = /* @__PURE__ */ new Set());
|
|
76708
76506
|
inst._zod.traits.add(name);
|
|
76709
76507
|
initializer3(inst, def);
|
|
76710
76508
|
for (const k in _.prototype) {
|
|
@@ -76719,10 +76517,10 @@ function $constructor(name, initializer3, params) {
|
|
|
76719
76517
|
}
|
|
76720
76518
|
Object.defineProperty(Definition, "name", { value: name });
|
|
76721
76519
|
function _(def) {
|
|
76722
|
-
var
|
|
76520
|
+
var _a;
|
|
76723
76521
|
const inst = params?.Parent ? new Definition() : this;
|
|
76724
76522
|
init(inst, def);
|
|
76725
|
-
(
|
|
76523
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
76726
76524
|
for (const fn of inst._zod.deferred) {
|
|
76727
76525
|
fn();
|
|
76728
76526
|
}
|
|
@@ -77212,8 +77010,8 @@ function aborted(x, startIndex = 0) {
|
|
|
77212
77010
|
}
|
|
77213
77011
|
function prefixIssues(path50, issues) {
|
|
77214
77012
|
return issues.map((iss) => {
|
|
77215
|
-
var
|
|
77216
|
-
(
|
|
77013
|
+
var _a;
|
|
77014
|
+
(_a = iss).path ?? (_a.path = []);
|
|
77217
77015
|
iss.path.unshift(path50);
|
|
77218
77016
|
return iss;
|
|
77219
77017
|
});
|
|
@@ -77459,10 +77257,10 @@ var uppercase = /^[^a-z]*$/;
|
|
|
77459
77257
|
|
|
77460
77258
|
// node_modules/zod/v4/core/checks.js
|
|
77461
77259
|
var $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
77462
|
-
var
|
|
77260
|
+
var _a;
|
|
77463
77261
|
inst._zod ?? (inst._zod = {});
|
|
77464
77262
|
inst._zod.def = def;
|
|
77465
|
-
(
|
|
77263
|
+
(_a = inst._zod).onattach ?? (_a.onattach = []);
|
|
77466
77264
|
});
|
|
77467
77265
|
var numericOriginMap = {
|
|
77468
77266
|
number: "number",
|
|
@@ -77528,8 +77326,8 @@ var $ZodCheckGreaterThan = /* @__PURE__ */ $constructor("$ZodCheckGreaterThan",
|
|
|
77528
77326
|
var $ZodCheckMultipleOf = /* @__PURE__ */ $constructor("$ZodCheckMultipleOf", (inst, def) => {
|
|
77529
77327
|
$ZodCheck.init(inst, def);
|
|
77530
77328
|
inst._zod.onattach.push((inst2) => {
|
|
77531
|
-
var
|
|
77532
|
-
(
|
|
77329
|
+
var _a;
|
|
77330
|
+
(_a = inst2._zod.bag).multipleOf ?? (_a.multipleOf = def.value);
|
|
77533
77331
|
});
|
|
77534
77332
|
inst._zod.check = (payload) => {
|
|
77535
77333
|
if (typeof payload.value !== typeof def.value)
|
|
@@ -77622,9 +77420,9 @@ var $ZodCheckNumberFormat = /* @__PURE__ */ $constructor("$ZodCheckNumberFormat"
|
|
|
77622
77420
|
};
|
|
77623
77421
|
});
|
|
77624
77422
|
var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (inst, def) => {
|
|
77625
|
-
var
|
|
77423
|
+
var _a;
|
|
77626
77424
|
$ZodCheck.init(inst, def);
|
|
77627
|
-
(
|
|
77425
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
77628
77426
|
const val = payload.value;
|
|
77629
77427
|
return !nullish(val) && val.length !== void 0;
|
|
77630
77428
|
});
|
|
@@ -77651,9 +77449,9 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
77651
77449
|
};
|
|
77652
77450
|
});
|
|
77653
77451
|
var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (inst, def) => {
|
|
77654
|
-
var
|
|
77452
|
+
var _a;
|
|
77655
77453
|
$ZodCheck.init(inst, def);
|
|
77656
|
-
(
|
|
77454
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
77657
77455
|
const val = payload.value;
|
|
77658
77456
|
return !nullish(val) && val.length !== void 0;
|
|
77659
77457
|
});
|
|
@@ -77680,9 +77478,9 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
77680
77478
|
};
|
|
77681
77479
|
});
|
|
77682
77480
|
var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals", (inst, def) => {
|
|
77683
|
-
var
|
|
77481
|
+
var _a;
|
|
77684
77482
|
$ZodCheck.init(inst, def);
|
|
77685
|
-
(
|
|
77483
|
+
(_a = inst._zod.def).when ?? (_a.when = (payload) => {
|
|
77686
77484
|
const val = payload.value;
|
|
77687
77485
|
return !nullish(val) && val.length !== void 0;
|
|
77688
77486
|
});
|
|
@@ -77711,7 +77509,7 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
77711
77509
|
};
|
|
77712
77510
|
});
|
|
77713
77511
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
77714
|
-
var
|
|
77512
|
+
var _a, _b;
|
|
77715
77513
|
$ZodCheck.init(inst, def);
|
|
77716
77514
|
inst._zod.onattach.push((inst2) => {
|
|
77717
77515
|
const bag = inst2._zod.bag;
|
|
@@ -77722,7 +77520,7 @@ var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat"
|
|
|
77722
77520
|
}
|
|
77723
77521
|
});
|
|
77724
77522
|
if (def.pattern)
|
|
77725
|
-
(
|
|
77523
|
+
(_a = inst._zod).check ?? (_a.check = (payload) => {
|
|
77726
77524
|
def.pattern.lastIndex = 0;
|
|
77727
77525
|
if (def.pattern.test(payload.value))
|
|
77728
77526
|
return;
|
|
@@ -77887,7 +77685,7 @@ var version = {
|
|
|
77887
77685
|
|
|
77888
77686
|
// node_modules/zod/v4/core/schemas.js
|
|
77889
77687
|
var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
77890
|
-
var
|
|
77688
|
+
var _a;
|
|
77891
77689
|
inst ?? (inst = {});
|
|
77892
77690
|
inst._zod.def = def;
|
|
77893
77691
|
inst._zod.bag = inst._zod.bag || {};
|
|
@@ -77902,7 +77700,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
77902
77700
|
}
|
|
77903
77701
|
}
|
|
77904
77702
|
if (checks.length === 0) {
|
|
77905
|
-
(
|
|
77703
|
+
(_a = inst._zod).deferred ?? (_a.deferred = []);
|
|
77906
77704
|
inst._zod.deferred?.push(() => {
|
|
77907
77705
|
inst._zod.run = inst._zod.parse;
|
|
77908
77706
|
});
|
|
@@ -79741,7 +79539,7 @@ var JSONSchemaGenerator = class {
|
|
|
79741
79539
|
this.seen = /* @__PURE__ */ new Map();
|
|
79742
79540
|
}
|
|
79743
79541
|
process(schema2, _params = { path: [], schemaPath: [] }) {
|
|
79744
|
-
var
|
|
79542
|
+
var _a;
|
|
79745
79543
|
const def = schema2._zod.def;
|
|
79746
79544
|
const formatMap = {
|
|
79747
79545
|
guid: "uuid",
|
|
@@ -80203,7 +80001,7 @@ var JSONSchemaGenerator = class {
|
|
|
80203
80001
|
delete result.schema.default;
|
|
80204
80002
|
}
|
|
80205
80003
|
if (this.io === "input" && result.schema._prefault)
|
|
80206
|
-
(
|
|
80004
|
+
(_a = result.schema).default ?? (_a.default = result.schema._prefault);
|
|
80207
80005
|
delete result.schema._prefault;
|
|
80208
80006
|
const _result = this.seen.get(schema2);
|
|
80209
80007
|
return _result.schema;
|
|
@@ -92836,7 +92634,7 @@ function displayInstalledPackage(pkg) {
|
|
|
92836
92634
|
// src/cli/index.ts
|
|
92837
92635
|
init_logger();
|
|
92838
92636
|
init_error_utils();
|
|
92839
|
-
var version2 = true ? "0.21.
|
|
92637
|
+
var version2 = true ? "0.21.6" : "0.0.0-dev";
|
|
92840
92638
|
var program2 = new Command();
|
|
92841
92639
|
program2.name("flow-weaver").description("Flow Weaver Annotations - Compile and validate workflow files").option("-v, --version", "Output the current version").option("--no-color", "Disable colors").option("--color", "Force colors").on("option:version", () => {
|
|
92842
92640
|
logger.banner(version2);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.21.
|
|
1
|
+
export declare const VERSION = "0.21.6";
|
|
2
2
|
//# sourceMappingURL=generated-version.d.ts.map
|
|
@@ -696,7 +696,7 @@ flow-weaver export workflow.ts --target inngest --output dist/ --durable-steps
|
|
|
696
696
|
flow-weaver export workflow.ts --target cloudflare --output worker/
|
|
697
697
|
```
|
|
698
698
|
|
|
699
|
-
> Available targets depend on installed `
|
|
699
|
+
> Available targets depend on installed `flow-weaver-pack-*` packages. See [Deployment](deployment) for installation instructions and target-specific details.
|
|
700
700
|
|
|
701
701
|
---
|
|
702
702
|
|
|
@@ -14,14 +14,14 @@ Export targets are provided by marketplace packs. Install the ones you need:
|
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
# Serverless targets
|
|
17
|
-
npm install @synergenius/
|
|
18
|
-
npm install @synergenius/
|
|
19
|
-
npm install @synergenius/
|
|
20
|
-
npm install @synergenius/
|
|
17
|
+
npm install @synergenius/flow-weaver-pack-lambda
|
|
18
|
+
npm install @synergenius/flow-weaver-pack-vercel
|
|
19
|
+
npm install @synergenius/flow-weaver-pack-cloudflare
|
|
20
|
+
npm install @synergenius/flow-weaver-pack-inngest
|
|
21
21
|
|
|
22
22
|
# CI/CD targets
|
|
23
|
-
npm install @synergenius/
|
|
24
|
-
npm install @synergenius/
|
|
23
|
+
npm install @synergenius/flow-weaver-pack-github-actions
|
|
24
|
+
npm install @synergenius/flow-weaver-pack-gitlab-ci
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
The `export` command automatically discovers installed packs — no configuration needed.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Marketplace
|
|
3
3
|
description: Create, publish, install, and manage Flow Weaver marketplace packages and external plugins
|
|
4
|
-
keywords: [marketplace, market, package, publish, install, search, npm,
|
|
4
|
+
keywords: [marketplace, market, package, publish, install, search, npm, flow-weaver-pack, plugin, init, manifest, node types, patterns, workflows, component, area, sandbox]
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Marketplace
|
|
8
8
|
|
|
9
|
-
The Flow Weaver marketplace is an npm-based ecosystem for sharing reusable node types, workflows, and patterns. Packages follow the `
|
|
9
|
+
The Flow Weaver marketplace is an npm-based ecosystem for sharing reusable node types, workflows, and patterns. Packages follow the `flow-weaver-pack-*` naming convention and are discoverable via npm search.
|
|
10
10
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
@@ -25,17 +25,17 @@ Flow Weaver provides 6 official export target packs:
|
|
|
25
25
|
|
|
26
26
|
| Package | Target name | Description |
|
|
27
27
|
|---------|-------------|-------------|
|
|
28
|
-
| `@synergenius/
|
|
29
|
-
| `@synergenius/
|
|
30
|
-
| `@synergenius/
|
|
31
|
-
| `@synergenius/
|
|
32
|
-
| `@synergenius/
|
|
33
|
-
| `@synergenius/
|
|
28
|
+
| `@synergenius/flow-weaver-pack-lambda` | `lambda` | AWS Lambda + API Gateway |
|
|
29
|
+
| `@synergenius/flow-weaver-pack-vercel` | `vercel` | Vercel serverless functions |
|
|
30
|
+
| `@synergenius/flow-weaver-pack-cloudflare` | `cloudflare` | Cloudflare Workers |
|
|
31
|
+
| `@synergenius/flow-weaver-pack-inngest` | `inngest` | Inngest durable functions |
|
|
32
|
+
| `@synergenius/flow-weaver-pack-github-actions` | `github-actions` | GitHub Actions CI/CD pipelines |
|
|
33
|
+
| `@synergenius/flow-weaver-pack-gitlab-ci` | `gitlab-ci` | GitLab CI/CD pipelines |
|
|
34
34
|
|
|
35
35
|
Install with:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
npm install @synergenius/
|
|
38
|
+
npm install @synergenius/flow-weaver-pack-lambda
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
See [Deployment](deployment) for target-specific usage details.
|
|
@@ -65,8 +65,8 @@ flow-weaver market search openai --registry https://npm.internal.com
|
|
|
65
65
|
Install a package:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
|
-
flow-weaver market install
|
|
69
|
-
flow-weaver market install
|
|
68
|
+
flow-weaver market install flow-weaver-pack-openai
|
|
69
|
+
flow-weaver market install flow-weaver-pack-openai@1.0.0
|
|
70
70
|
```
|
|
71
71
|
|
|
72
72
|
After installation, the package's node types, workflows, and patterns are available for use in your workflows via `@fwImport`.
|
|
@@ -77,7 +77,7 @@ After installation, the package's node types, workflows, and patterns are availa
|
|
|
77
77
|
flow-weaver market list
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
Shows all installed `
|
|
80
|
+
Shows all installed `flow-weaver-pack-*` packages with their available node types, workflows, and patterns.
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
@@ -91,8 +91,8 @@ Create a new marketplace package:
|
|
|
91
91
|
flow-weaver market init openai
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
This creates a `
|
|
95
|
-
- `package.json` — Configured with `flowweaver-pack` keyword
|
|
94
|
+
This creates a `flow-weaver-pack-openai/` directory with:
|
|
95
|
+
- `package.json` — Configured with `flowweaver-marketplace-pack` keyword
|
|
96
96
|
- `src/` — Source directory for node types, workflows, and patterns
|
|
97
97
|
- `tsconfig.json` — TypeScript configuration
|
|
98
98
|
|
|
@@ -106,7 +106,7 @@ flow-weaver market init openai -y # Skip prompts
|
|
|
106
106
|
### Package Structure
|
|
107
107
|
|
|
108
108
|
```
|
|
109
|
-
|
|
109
|
+
flow-weaver-pack-openai/
|
|
110
110
|
src/
|
|
111
111
|
nodes/
|
|
112
112
|
chat-completion.ts # @flowWeaver nodeType functions
|
|
@@ -149,8 +149,8 @@ flow-weaver market publish --tag beta # Publish with dist-tag
|
|
|
149
149
|
|
|
150
150
|
The `market pack` command validates packages against additional rules beyond standard workflow validation:
|
|
151
151
|
|
|
152
|
-
- Package name must start with `
|
|
153
|
-
- Must include `flowweaver-pack` keyword in `package.json`
|
|
152
|
+
- Package name must start with `flow-weaver-pack-`
|
|
153
|
+
- Must include `flowweaver-marketplace-pack` keyword in `package.json`
|
|
154
154
|
- All exported node types must have proper annotations
|
|
155
155
|
- All exported workflows must validate successfully
|
|
156
156
|
- No conflicting node type names
|
|
@@ -163,7 +163,7 @@ The `market pack` command validates packages against additional rules beyond sta
|
|
|
163
163
|
|
|
164
164
|
Tag handlers let packs extend the parser with custom JSDoc annotations. When the parser encounters a tag it doesn't recognize natively, it delegates to registered pack handlers before emitting "Unknown annotation" warnings.
|
|
165
165
|
|
|
166
|
-
The CI/CD pack (`
|
|
166
|
+
The CI/CD pack (`flow-weaver-pack-cicd`) is the primary example: it registers handlers for `@secret`, `@runner`, `@cache`, `@artifact`, and other CI/CD tags.
|
|
167
167
|
|
|
168
168
|
### Writing a handler
|
|
169
169
|
|
package/package.json
CHANGED