@pipelab/cli 2.0.0-beta.11 → 2.0.0-beta.14

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.
@@ -18,7 +18,7 @@ const finalVersion = () => {
18
18
  throw new Error("Unable to go up on the final version!");
19
19
  };
20
20
  //#endregion
21
- //#region ../../node_modules/semver/internal/constants.js
21
+ //#region ../../packages/migration/node_modules/semver/internal/constants.js
22
22
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
23
23
  const SEMVER_SPEC_VERSION = "2.0.0";
24
24
  const MAX_LENGTH = 256;
@@ -43,12 +43,12 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
43
43
  };
44
44
  }));
45
45
  //#endregion
46
- //#region ../../node_modules/semver/internal/debug.js
46
+ //#region ../../packages/migration/node_modules/semver/internal/debug.js
47
47
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
48
48
  module.exports = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {};
49
49
  }));
50
50
  //#endregion
51
- //#region ../../node_modules/semver/internal/re.js
51
+ //#region ../../packages/migration/node_modules/semver/internal/re.js
52
52
  var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53
53
  const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants();
54
54
  const debug = require_debug();
@@ -127,7 +127,7 @@ var require_re = /* @__PURE__ */ __commonJSMin(((exports, module) => {
127
127
  createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
128
128
  }));
129
129
  //#endregion
130
- //#region ../../node_modules/semver/internal/parse-options.js
130
+ //#region ../../packages/migration/node_modules/semver/internal/parse-options.js
131
131
  var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
132
132
  const looseOption = Object.freeze({ loose: true });
133
133
  const emptyOpts = Object.freeze({});
@@ -139,7 +139,7 @@ var require_parse_options = /* @__PURE__ */ __commonJSMin(((exports, module) =>
139
139
  module.exports = parseOptions;
140
140
  }));
141
141
  //#endregion
142
- //#region ../../node_modules/semver/internal/identifiers.js
142
+ //#region ../../packages/migration/node_modules/semver/internal/identifiers.js
143
143
  var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
144
144
  const numeric = /^[0-9]+$/;
145
145
  const compareIdentifiers = (a, b) => {
@@ -159,7 +159,7 @@ var require_identifiers = /* @__PURE__ */ __commonJSMin(((exports, module) => {
159
159
  };
160
160
  }));
161
161
  //#endregion
162
- //#region ../../node_modules/semver/classes/semver.js
162
+ //#region ../../packages/migration/node_modules/semver/classes/semver.js
163
163
  var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
164
164
  const debug = require_debug();
165
165
  const { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants();
@@ -337,7 +337,7 @@ var require_semver$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
337
337
  };
338
338
  }));
339
339
  //#endregion
340
- //#region ../../node_modules/semver/functions/parse.js
340
+ //#region ../../packages/migration/node_modules/semver/functions/parse.js
341
341
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
342
342
  const SemVer = require_semver$1();
343
343
  const parse = (version, options, throwErrors = false) => {
@@ -352,7 +352,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
352
352
  module.exports = parse;
353
353
  }));
354
354
  //#endregion
355
- //#region ../../node_modules/semver/functions/valid.js
355
+ //#region ../../packages/migration/node_modules/semver/functions/valid.js
356
356
  var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
357
357
  const parse = require_parse();
358
358
  const valid = (version, options) => {
@@ -362,7 +362,7 @@ var require_valid$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
362
362
  module.exports = valid;
363
363
  }));
364
364
  //#endregion
365
- //#region ../../node_modules/semver/functions/clean.js
365
+ //#region ../../packages/migration/node_modules/semver/functions/clean.js
366
366
  var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
367
367
  const parse = require_parse();
368
368
  const clean = (version, options) => {
@@ -372,7 +372,7 @@ var require_clean = /* @__PURE__ */ __commonJSMin(((exports, module) => {
372
372
  module.exports = clean;
373
373
  }));
374
374
  //#endregion
375
- //#region ../../node_modules/semver/functions/inc.js
375
+ //#region ../../packages/migration/node_modules/semver/functions/inc.js
376
376
  var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
377
377
  const SemVer = require_semver$1();
378
378
  const inc = (version, release, options, identifier, identifierBase) => {
@@ -390,7 +390,7 @@ var require_inc = /* @__PURE__ */ __commonJSMin(((exports, module) => {
390
390
  module.exports = inc;
391
391
  }));
392
392
  //#endregion
393
- //#region ../../node_modules/semver/functions/diff.js
393
+ //#region ../../packages/migration/node_modules/semver/functions/diff.js
394
394
  var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
395
395
  const parse = require_parse();
396
396
  const diff = (version1, version2) => {
@@ -418,28 +418,28 @@ var require_diff = /* @__PURE__ */ __commonJSMin(((exports, module) => {
418
418
  module.exports = diff;
419
419
  }));
420
420
  //#endregion
421
- //#region ../../node_modules/semver/functions/major.js
421
+ //#region ../../packages/migration/node_modules/semver/functions/major.js
422
422
  var require_major = /* @__PURE__ */ __commonJSMin(((exports, module) => {
423
423
  const SemVer = require_semver$1();
424
424
  const major = (a, loose) => new SemVer(a, loose).major;
425
425
  module.exports = major;
426
426
  }));
427
427
  //#endregion
428
- //#region ../../node_modules/semver/functions/minor.js
428
+ //#region ../../packages/migration/node_modules/semver/functions/minor.js
429
429
  var require_minor = /* @__PURE__ */ __commonJSMin(((exports, module) => {
430
430
  const SemVer = require_semver$1();
431
431
  const minor = (a, loose) => new SemVer(a, loose).minor;
432
432
  module.exports = minor;
433
433
  }));
434
434
  //#endregion
435
- //#region ../../node_modules/semver/functions/patch.js
435
+ //#region ../../packages/migration/node_modules/semver/functions/patch.js
436
436
  var require_patch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
437
437
  const SemVer = require_semver$1();
438
438
  const patch = (a, loose) => new SemVer(a, loose).patch;
439
439
  module.exports = patch;
440
440
  }));
441
441
  //#endregion
442
- //#region ../../node_modules/semver/functions/prerelease.js
442
+ //#region ../../packages/migration/node_modules/semver/functions/prerelease.js
443
443
  var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
444
444
  const parse = require_parse();
445
445
  const prerelease = (version, options) => {
@@ -449,28 +449,28 @@ var require_prerelease = /* @__PURE__ */ __commonJSMin(((exports, module) => {
449
449
  module.exports = prerelease;
450
450
  }));
451
451
  //#endregion
452
- //#region ../../node_modules/semver/functions/compare.js
452
+ //#region ../../packages/migration/node_modules/semver/functions/compare.js
453
453
  var require_compare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
454
454
  const SemVer = require_semver$1();
455
455
  const compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
456
456
  module.exports = compare;
457
457
  }));
458
458
  //#endregion
459
- //#region ../../node_modules/semver/functions/rcompare.js
459
+ //#region ../../packages/migration/node_modules/semver/functions/rcompare.js
460
460
  var require_rcompare = /* @__PURE__ */ __commonJSMin(((exports, module) => {
461
461
  const compare = require_compare();
462
462
  const rcompare = (a, b, loose) => compare(b, a, loose);
463
463
  module.exports = rcompare;
464
464
  }));
465
465
  //#endregion
466
- //#region ../../node_modules/semver/functions/compare-loose.js
466
+ //#region ../../packages/migration/node_modules/semver/functions/compare-loose.js
467
467
  var require_compare_loose = /* @__PURE__ */ __commonJSMin(((exports, module) => {
468
468
  const compare = require_compare();
469
469
  const compareLoose = (a, b) => compare(a, b, true);
470
470
  module.exports = compareLoose;
471
471
  }));
472
472
  //#endregion
473
- //#region ../../node_modules/semver/functions/compare-build.js
473
+ //#region ../../packages/migration/node_modules/semver/functions/compare-build.js
474
474
  var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
475
475
  const SemVer = require_semver$1();
476
476
  const compareBuild = (a, b, loose) => {
@@ -481,63 +481,63 @@ var require_compare_build = /* @__PURE__ */ __commonJSMin(((exports, module) =>
481
481
  module.exports = compareBuild;
482
482
  }));
483
483
  //#endregion
484
- //#region ../../node_modules/semver/functions/sort.js
484
+ //#region ../../packages/migration/node_modules/semver/functions/sort.js
485
485
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
486
486
  const compareBuild = require_compare_build();
487
487
  const sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
488
488
  module.exports = sort;
489
489
  }));
490
490
  //#endregion
491
- //#region ../../node_modules/semver/functions/rsort.js
491
+ //#region ../../packages/migration/node_modules/semver/functions/rsort.js
492
492
  var require_rsort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
493
493
  const compareBuild = require_compare_build();
494
494
  const rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
495
495
  module.exports = rsort;
496
496
  }));
497
497
  //#endregion
498
- //#region ../../node_modules/semver/functions/gt.js
498
+ //#region ../../packages/migration/node_modules/semver/functions/gt.js
499
499
  var require_gt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
500
500
  const compare = require_compare();
501
501
  const gt = (a, b, loose) => compare(a, b, loose) > 0;
502
502
  module.exports = gt;
503
503
  }));
504
504
  //#endregion
505
- //#region ../../node_modules/semver/functions/lt.js
505
+ //#region ../../packages/migration/node_modules/semver/functions/lt.js
506
506
  var require_lt = /* @__PURE__ */ __commonJSMin(((exports, module) => {
507
507
  const compare = require_compare();
508
508
  const lt = (a, b, loose) => compare(a, b, loose) < 0;
509
509
  module.exports = lt;
510
510
  }));
511
511
  //#endregion
512
- //#region ../../node_modules/semver/functions/eq.js
512
+ //#region ../../packages/migration/node_modules/semver/functions/eq.js
513
513
  var require_eq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
514
514
  const compare = require_compare();
515
515
  const eq = (a, b, loose) => compare(a, b, loose) === 0;
516
516
  module.exports = eq;
517
517
  }));
518
518
  //#endregion
519
- //#region ../../node_modules/semver/functions/neq.js
519
+ //#region ../../packages/migration/node_modules/semver/functions/neq.js
520
520
  var require_neq = /* @__PURE__ */ __commonJSMin(((exports, module) => {
521
521
  const compare = require_compare();
522
522
  const neq = (a, b, loose) => compare(a, b, loose) !== 0;
523
523
  module.exports = neq;
524
524
  }));
525
525
  //#endregion
526
- //#region ../../node_modules/semver/functions/gte.js
526
+ //#region ../../packages/migration/node_modules/semver/functions/gte.js
527
527
  var require_gte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
528
528
  const compare = require_compare();
529
529
  const gte = (a, b, loose) => compare(a, b, loose) >= 0;
530
530
  module.exports = gte;
531
531
  }));
532
532
  //#endregion
533
- //#region ../../node_modules/semver/functions/lte.js
533
+ //#region ../../packages/migration/node_modules/semver/functions/lte.js
534
534
  var require_lte = /* @__PURE__ */ __commonJSMin(((exports, module) => {
535
535
  const compare = require_compare();
536
536
  const lte = (a, b, loose) => compare(a, b, loose) <= 0;
537
537
  module.exports = lte;
538
538
  }));
539
539
  //#endregion
540
- //#region ../../node_modules/semver/functions/cmp.js
540
+ //#region ../../packages/migration/node_modules/semver/functions/cmp.js
541
541
  var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
542
542
  const eq = require_eq();
543
543
  const neq = require_neq();
@@ -569,7 +569,7 @@ var require_cmp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
569
569
  module.exports = cmp;
570
570
  }));
571
571
  //#endregion
572
- //#region ../../node_modules/semver/functions/coerce.js
572
+ //#region ../../packages/migration/node_modules/semver/functions/coerce.js
573
573
  var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
574
574
  const SemVer = require_semver$1();
575
575
  const parse = require_parse();
@@ -597,7 +597,7 @@ var require_coerce = /* @__PURE__ */ __commonJSMin(((exports, module) => {
597
597
  module.exports = coerce;
598
598
  }));
599
599
  //#endregion
600
- //#region ../../node_modules/semver/internal/lrucache.js
600
+ //#region ../../packages/migration/node_modules/semver/internal/lrucache.js
601
601
  var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
602
602
  var LRUCache = class {
603
603
  constructor() {
@@ -630,7 +630,7 @@ var require_lrucache = /* @__PURE__ */ __commonJSMin(((exports, module) => {
630
630
  module.exports = LRUCache;
631
631
  }));
632
632
  //#endregion
633
- //#region ../../node_modules/semver/classes/range.js
633
+ //#region ../../packages/migration/node_modules/semver/classes/range.js
634
634
  var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
635
635
  const SPACE_CHARACTERS = /\s+/g;
636
636
  module.exports = class Range {
@@ -902,7 +902,7 @@ var require_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
902
902
  };
903
903
  }));
904
904
  //#endregion
905
- //#region ../../node_modules/semver/classes/comparator.js
905
+ //#region ../../packages/migration/node_modules/semver/classes/comparator.js
906
906
  var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
907
907
  const ANY = Symbol("SemVer ANY");
908
908
  module.exports = class Comparator {
@@ -972,7 +972,7 @@ var require_comparator = /* @__PURE__ */ __commonJSMin(((exports, module) => {
972
972
  const Range = require_range();
973
973
  }));
974
974
  //#endregion
975
- //#region ../../node_modules/semver/functions/satisfies.js
975
+ //#region ../../packages/migration/node_modules/semver/functions/satisfies.js
976
976
  var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
977
977
  const Range = require_range();
978
978
  const satisfies = (version, range, options) => {
@@ -986,14 +986,14 @@ var require_satisfies = /* @__PURE__ */ __commonJSMin(((exports, module) => {
986
986
  module.exports = satisfies;
987
987
  }));
988
988
  //#endregion
989
- //#region ../../node_modules/semver/ranges/to-comparators.js
989
+ //#region ../../packages/migration/node_modules/semver/ranges/to-comparators.js
990
990
  var require_to_comparators = /* @__PURE__ */ __commonJSMin(((exports, module) => {
991
991
  const Range = require_range();
992
992
  const toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
993
993
  module.exports = toComparators;
994
994
  }));
995
995
  //#endregion
996
- //#region ../../node_modules/semver/ranges/max-satisfying.js
996
+ //#region ../../packages/migration/node_modules/semver/ranges/max-satisfying.js
997
997
  var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
998
998
  const SemVer = require_semver$1();
999
999
  const Range = require_range();
@@ -1019,7 +1019,7 @@ var require_max_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1019
1019
  module.exports = maxSatisfying;
1020
1020
  }));
1021
1021
  //#endregion
1022
- //#region ../../node_modules/semver/ranges/min-satisfying.js
1022
+ //#region ../../packages/migration/node_modules/semver/ranges/min-satisfying.js
1023
1023
  var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1024
1024
  const SemVer = require_semver$1();
1025
1025
  const Range = require_range();
@@ -1045,7 +1045,7 @@ var require_min_satisfying = /* @__PURE__ */ __commonJSMin(((exports, module) =>
1045
1045
  module.exports = minSatisfying;
1046
1046
  }));
1047
1047
  //#endregion
1048
- //#region ../../node_modules/semver/ranges/min-version.js
1048
+ //#region ../../packages/migration/node_modules/semver/ranges/min-version.js
1049
1049
  var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1050
1050
  const SemVer = require_semver$1();
1051
1051
  const Range = require_range();
@@ -1084,7 +1084,7 @@ var require_min_version = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1084
1084
  module.exports = minVersion;
1085
1085
  }));
1086
1086
  //#endregion
1087
- //#region ../../node_modules/semver/ranges/valid.js
1087
+ //#region ../../packages/migration/node_modules/semver/ranges/valid.js
1088
1088
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1089
1089
  const Range = require_range();
1090
1090
  const validRange = (range, options) => {
@@ -1097,7 +1097,7 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1097
1097
  module.exports = validRange;
1098
1098
  }));
1099
1099
  //#endregion
1100
- //#region ../../node_modules/semver/ranges/outside.js
1100
+ //#region ../../packages/migration/node_modules/semver/ranges/outside.js
1101
1101
  var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1102
1102
  const SemVer = require_semver$1();
1103
1103
  const Comparator = require_comparator();
@@ -1150,21 +1150,21 @@ var require_outside = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1150
1150
  module.exports = outside;
1151
1151
  }));
1152
1152
  //#endregion
1153
- //#region ../../node_modules/semver/ranges/gtr.js
1153
+ //#region ../../packages/migration/node_modules/semver/ranges/gtr.js
1154
1154
  var require_gtr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1155
1155
  const outside = require_outside();
1156
1156
  const gtr = (version, range, options) => outside(version, range, ">", options);
1157
1157
  module.exports = gtr;
1158
1158
  }));
1159
1159
  //#endregion
1160
- //#region ../../node_modules/semver/ranges/ltr.js
1160
+ //#region ../../packages/migration/node_modules/semver/ranges/ltr.js
1161
1161
  var require_ltr = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1162
1162
  const outside = require_outside();
1163
1163
  const ltr = (version, range, options) => outside(version, range, "<", options);
1164
1164
  module.exports = ltr;
1165
1165
  }));
1166
1166
  //#endregion
1167
- //#region ../../node_modules/semver/ranges/intersects.js
1167
+ //#region ../../packages/migration/node_modules/semver/ranges/intersects.js
1168
1168
  var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1169
1169
  const Range = require_range();
1170
1170
  const intersects = (r1, r2, options) => {
@@ -1175,7 +1175,7 @@ var require_intersects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1175
1175
  module.exports = intersects;
1176
1176
  }));
1177
1177
  //#endregion
1178
- //#region ../../node_modules/semver/ranges/simplify.js
1178
+ //#region ../../packages/migration/node_modules/semver/ranges/simplify.js
1179
1179
  var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1180
1180
  const satisfies = require_satisfies();
1181
1181
  const compare = require_compare();
@@ -1205,7 +1205,7 @@ var require_simplify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1205
1205
  };
1206
1206
  }));
1207
1207
  //#endregion
1208
- //#region ../../node_modules/semver/ranges/subset.js
1208
+ //#region ../../packages/migration/node_modules/semver/ranges/subset.js
1209
1209
  var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1210
1210
  const Range = require_range();
1211
1211
  const Comparator = require_comparator();
@@ -1300,7 +1300,7 @@ var require_subset = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1300
1300
  module.exports = subset;
1301
1301
  }));
1302
1302
  //#endregion
1303
- //#region ../../node_modules/semver/index.js
1303
+ //#region ../../packages/migration/node_modules/semver/index.js
1304
1304
  var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1305
1305
  const internalRe = require_re();
1306
1306
  const constants = require_constants();
@@ -1564,19 +1564,6 @@ function custom(check2, message) {
1564
1564
  }
1565
1565
  };
1566
1566
  }
1567
- function lazy(getter) {
1568
- return {
1569
- kind: "schema",
1570
- type: "lazy",
1571
- reference: lazy,
1572
- expects: "unknown",
1573
- async: false,
1574
- getter,
1575
- _run(dataset, config2) {
1576
- return this.getter(dataset.value)._run(dataset, config2);
1577
- }
1578
- };
1579
- }
1580
1567
  function literal(literal_, message) {
1581
1568
  return {
1582
1569
  kind: "schema",
@@ -1593,6 +1580,56 @@ function literal(literal_, message) {
1593
1580
  }
1594
1581
  };
1595
1582
  }
1583
+ function looseObject(entries, message) {
1584
+ return {
1585
+ kind: "schema",
1586
+ type: "loose_object",
1587
+ reference: looseObject,
1588
+ expects: "Object",
1589
+ async: false,
1590
+ entries,
1591
+ message,
1592
+ _run(dataset, config2) {
1593
+ const input = dataset.value;
1594
+ if (input && typeof input === "object") {
1595
+ dataset.typed = true;
1596
+ dataset.value = {};
1597
+ for (const key in this.entries) {
1598
+ const value2 = input[key];
1599
+ const valueDataset = this.entries[key]._run({
1600
+ typed: false,
1601
+ value: value2
1602
+ }, config2);
1603
+ if (valueDataset.issues) {
1604
+ const pathItem = {
1605
+ type: "object",
1606
+ origin: "value",
1607
+ input,
1608
+ key,
1609
+ value: value2
1610
+ };
1611
+ for (const issue of valueDataset.issues) {
1612
+ if (issue.path) issue.path.unshift(pathItem);
1613
+ else issue.path = [pathItem];
1614
+ dataset.issues?.push(issue);
1615
+ }
1616
+ if (!dataset.issues) dataset.issues = valueDataset.issues;
1617
+ if (config2.abortEarly) {
1618
+ dataset.typed = false;
1619
+ break;
1620
+ }
1621
+ }
1622
+ if (!valueDataset.typed) dataset.typed = false;
1623
+ if (valueDataset.value !== void 0 || key in input) dataset.value[key] = valueDataset.value;
1624
+ }
1625
+ if (!dataset.issues || !config2.abortEarly) {
1626
+ for (const key in input) if (_isValidObjectKey(input, key) && !(key in this.entries)) dataset.value[key] = input[key];
1627
+ }
1628
+ } else _addIssue(this, "type", dataset, config2);
1629
+ return dataset;
1630
+ }
1631
+ };
1632
+ }
1596
1633
  function number(message) {
1597
1634
  return {
1598
1635
  kind: "schema",
@@ -1976,12 +2013,74 @@ const createMigrator = () => {
1976
2013
  };
1977
2014
  //#endregion
1978
2015
  //#region ../../packages/shared/src/config/migrators.ts
2016
+ const DEFAULT_PLUGINS = [
2017
+ {
2018
+ name: "@pipelab/plugin-construct",
2019
+ enabled: true,
2020
+ description: "Construct 3 export & packaging"
2021
+ },
2022
+ {
2023
+ name: "@pipelab/plugin-filesystem",
2024
+ enabled: true,
2025
+ description: "Filesystem utilities"
2026
+ },
2027
+ {
2028
+ name: "@pipelab/plugin-system",
2029
+ enabled: true,
2030
+ description: "System & shell commands"
2031
+ },
2032
+ {
2033
+ name: "@pipelab/plugin-steam",
2034
+ enabled: true,
2035
+ description: "Steam publishing"
2036
+ },
2037
+ {
2038
+ name: "@pipelab/plugin-itch",
2039
+ enabled: true,
2040
+ description: "Itch.io publishing"
2041
+ },
2042
+ {
2043
+ name: "@pipelab/plugin-electron",
2044
+ enabled: true,
2045
+ description: "Electron packaging"
2046
+ },
2047
+ {
2048
+ name: "@pipelab/plugin-discord",
2049
+ enabled: true,
2050
+ description: "Discord Rich Presence"
2051
+ },
2052
+ {
2053
+ name: "@pipelab/plugin-poki",
2054
+ enabled: true,
2055
+ description: "Poki publishing"
2056
+ },
2057
+ {
2058
+ name: "@pipelab/plugin-nvpatch",
2059
+ enabled: true,
2060
+ description: "NW.js patching"
2061
+ },
2062
+ {
2063
+ name: "@pipelab/plugin-tauri",
2064
+ enabled: true,
2065
+ description: "Tauri packaging"
2066
+ },
2067
+ {
2068
+ name: "@pipelab/plugin-minify",
2069
+ enabled: true,
2070
+ description: "Asset minification"
2071
+ },
2072
+ {
2073
+ name: "@pipelab/plugin-netlify",
2074
+ enabled: true,
2075
+ description: "Netlify deployment"
2076
+ }
2077
+ ];
1979
2078
  const createMigration = (config) => createMigration$1(config);
1980
2079
  const settingsMigratorInternal = createMigrator();
1981
2080
  const defaultAppSettings = settingsMigratorInternal.createDefault({
1982
2081
  locale: "en-US",
1983
2082
  theme: "light",
1984
- version: "7.0.0",
2083
+ version: "8.0.0",
1985
2084
  autosave: true,
1986
2085
  agents: [],
1987
2086
  tours: {
@@ -1998,9 +2097,11 @@ const defaultAppSettings = settingsMigratorInternal.createDefault({
1998
2097
  enabled: false,
1999
2098
  maxEntries: 50,
2000
2099
  maxAge: 30
2001
- } }
2100
+ } },
2101
+ plugins: DEFAULT_PLUGINS,
2102
+ isInternalMigrationBannerClosed: false
2002
2103
  });
2003
- const appSettingsMigrator$1 = settingsMigratorInternal.createMigrations({
2104
+ const appSettingsMigrator = settingsMigratorInternal.createMigrations({
2004
2105
  defaultValue: defaultAppSettings,
2005
2106
  migrations: [
2006
2107
  createMigration({
@@ -2049,23 +2150,38 @@ const appSettingsMigrator$1 = settingsMigratorInternal.createMigrations({
2049
2150
  createMigration({
2050
2151
  version: "6.0.0",
2051
2152
  up: (state) => {
2153
+ const { cacheFolder: _, clearTemporaryFoldersOnPipelineEnd: __, ...rest } = state;
2052
2154
  return {
2053
- ...state,
2155
+ ...rest,
2054
2156
  agents: [],
2055
2157
  buildHistory: { retentionPolicy: {
2056
2158
  enabled: false,
2057
2159
  maxEntries: 50,
2058
2160
  maxAge: 30
2059
- } }
2161
+ } },
2162
+ plugins: DEFAULT_PLUGINS,
2163
+ isInternalMigrationBannerClosed: false
2060
2164
  };
2061
2165
  }
2062
2166
  }),
2063
2167
  createMigration({
2064
- version: "7.0.0",
2168
+ version: "8.0.0",
2065
2169
  up: finalVersion
2066
2170
  })
2067
2171
  ]
2068
2172
  });
2173
+ const connectionsMigratorInternal = createMigrator();
2174
+ const defaultConnections = connectionsMigratorInternal.createDefault({
2175
+ version: "1.0.0",
2176
+ connections: []
2177
+ });
2178
+ const connectionsMigrator = connectionsMigratorInternal.createMigrations({
2179
+ defaultValue: defaultConnections,
2180
+ migrations: [createMigration({
2181
+ version: "1.0.0",
2182
+ up: finalVersion
2183
+ })]
2184
+ });
2069
2185
  const fileRepoMigratorInternal = createMigrator();
2070
2186
  const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2071
2187
  version: "2.0.0",
@@ -2076,7 +2192,7 @@ const defaultFileRepo = fileRepoMigratorInternal.createDefault({
2076
2192
  }],
2077
2193
  pipelines: []
2078
2194
  });
2079
- const fileRepoMigrations$1 = fileRepoMigratorInternal.createMigrations({
2195
+ const fileRepoMigrations = fileRepoMigratorInternal.createMigrations({
2080
2196
  defaultValue: defaultFileRepo,
2081
2197
  migrations: [createMigration({
2082
2198
  version: "1.0.0",
@@ -2112,8 +2228,7 @@ const savedFileDefaultValue = savedFileMigratorInternal.createDefault({
2112
2228
  description: "",
2113
2229
  name: "",
2114
2230
  variables: [],
2115
- type: "default",
2116
- version: "4.0.0"
2231
+ version: "5.0.0"
2117
2232
  });
2118
2233
  const savedFileMigrator$1 = savedFileMigratorInternal.createMigrations({
2119
2234
  defaultValue: savedFileDefaultValue,
@@ -2176,15 +2291,137 @@ const savedFileMigrator$1 = savedFileMigratorInternal.createMigrations({
2176
2291
  }),
2177
2292
  createMigration({
2178
2293
  version: "4.0.0",
2294
+ up: (_state) => {
2295
+ const state = _state;
2296
+ if (state.type === "simple") return {
2297
+ name: state.name,
2298
+ description: state.description,
2299
+ canvas: {
2300
+ blocks: [],
2301
+ triggers: []
2302
+ },
2303
+ variables: []
2304
+ };
2305
+ const migrateBlock = (block, pluginsMap) => {
2306
+ if (!block) return;
2307
+ if (block.origin?.pluginId) {
2308
+ block.origin.pluginId = getStrictPluginId(block.origin.pluginId);
2309
+ block.origin.version = pluginsMap[block.origin.pluginId] ?? "latest";
2310
+ }
2311
+ };
2312
+ const normalizedPlugins = {};
2313
+ if (state.plugins) for (const [key, val] of Object.entries(state.plugins)) normalizedPlugins[getStrictPluginId(key)] = val;
2314
+ if (state.canvas) {
2315
+ for (const block of state.canvas.blocks ?? []) migrateBlock(block, normalizedPlugins);
2316
+ for (const trigger of state.canvas.triggers ?? []) migrateBlock(trigger, normalizedPlugins);
2317
+ }
2318
+ const { plugins: _dropped, type: _type, ...rest } = state;
2319
+ return rest;
2320
+ }
2321
+ }),
2322
+ createMigration({
2323
+ version: "5.0.0",
2179
2324
  up: finalVersion
2180
2325
  })
2181
2326
  ]
2182
2327
  });
2328
+ const LEGACY_ID_MAP = {
2329
+ construct: "@pipelab/plugin-construct",
2330
+ filesystem: "@pipelab/plugin-filesystem",
2331
+ system: "@pipelab/plugin-system",
2332
+ steam: "@pipelab/plugin-steam",
2333
+ itch: "@pipelab/plugin-itch",
2334
+ electron: "@pipelab/plugin-electron",
2335
+ discord: "@pipelab/plugin-discord",
2336
+ dicord: "@pipelab/plugin-discord",
2337
+ "@pipelab/plugin-dicord": "@pipelab/plugin-discord",
2338
+ poki: "@pipelab/plugin-poki",
2339
+ nvpatch: "@pipelab/plugin-nvpatch",
2340
+ tauri: "@pipelab/plugin-tauri",
2341
+ minify: "@pipelab/plugin-minify",
2342
+ netlify: "@pipelab/plugin-netlify"
2343
+ };
2344
+ const getStrictPluginId = (pluginId) => {
2345
+ if (!pluginId) return pluginId;
2346
+ return LEGACY_ID_MAP[pluginId] || pluginId;
2347
+ };
2348
+ const normalizeBlockPluginId = (block) => {
2349
+ if (!block) return false;
2350
+ let changed = false;
2351
+ if (block.origin?.pluginId) {
2352
+ const strictId = getStrictPluginId(block.origin.pluginId);
2353
+ if (block.origin.pluginId !== strictId) {
2354
+ block.origin.pluginId = strictId;
2355
+ changed = true;
2356
+ }
2357
+ }
2358
+ return changed;
2359
+ };
2360
+ const normalizePipelineConfig$1 = (state) => {
2361
+ if (!state) return false;
2362
+ let changed = false;
2363
+ if (state.type === "default" && state.canvas) {
2364
+ if (Array.isArray(state.canvas.blocks)) {
2365
+ for (const block of state.canvas.blocks) if (normalizeBlockPluginId(block)) changed = true;
2366
+ }
2367
+ if (Array.isArray(state.canvas.triggers)) {
2368
+ for (const trigger of state.canvas.triggers) if (normalizeBlockPluginId(trigger)) changed = true;
2369
+ }
2370
+ }
2371
+ return changed;
2372
+ };
2183
2373
  const configRegistry$1 = {
2184
- settings: appSettingsMigrator$1,
2185
- projects: fileRepoMigrations$1,
2186
- pipeline: savedFileMigrator$1
2374
+ settings: appSettingsMigrator,
2375
+ projects: fileRepoMigrations,
2376
+ pipeline: savedFileMigrator$1,
2377
+ connections: connectionsMigrator
2187
2378
  };
2379
+ //#endregion
2380
+ //#region ../../packages/shared/src/save-location.ts
2381
+ const SaveLocationInternalValidator = object({
2382
+ id: string(),
2383
+ project: string(),
2384
+ lastModified: string(),
2385
+ type: literal("internal"),
2386
+ configName: string()
2387
+ });
2388
+ /** @deprecated External pipeline files are deprecated and will be removed in future versions. */
2389
+ const SaveLocationExternalValidator = object({
2390
+ id: string(),
2391
+ project: string(),
2392
+ path: string(),
2393
+ lastModified: string(),
2394
+ type: literal("external"),
2395
+ summary: object({
2396
+ plugins: array(string()),
2397
+ name: string(),
2398
+ description: string()
2399
+ })
2400
+ });
2401
+ const SaveLocationPipelabCloudValidator = object({
2402
+ id: string(),
2403
+ project: string(),
2404
+ type: literal("pipelab-cloud")
2405
+ });
2406
+ const SaveLocationValidator = union([
2407
+ SaveLocationExternalValidator,
2408
+ SaveLocationInternalValidator,
2409
+ SaveLocationPipelabCloudValidator
2410
+ ]);
2411
+ object({
2412
+ version: literal("1.0.0"),
2413
+ data: optional(record(string(), SaveLocationValidator), {})
2414
+ });
2415
+ const FileRepoProjectValidatorV2$1 = object({
2416
+ id: string(),
2417
+ name: string(),
2418
+ description: string()
2419
+ });
2420
+ object({
2421
+ version: literal("2.0.0"),
2422
+ projects: array(FileRepoProjectValidatorV2$1),
2423
+ pipelines: optional(array(SaveLocationValidator), [])
2424
+ });
2188
2425
  object({
2189
2426
  cacheFolder: string(),
2190
2427
  theme: union([literal("light"), literal("dark")]),
@@ -2297,6 +2534,56 @@ object({
2297
2534
  maxAge: number()
2298
2535
  }) })
2299
2536
  });
2537
+ object({
2538
+ theme: union([literal("light"), literal("dark")]),
2539
+ version: literal("8.0.0"),
2540
+ locale: union([
2541
+ literal("en-US"),
2542
+ literal("fr-FR"),
2543
+ literal("pt-BR"),
2544
+ literal("zh-CN"),
2545
+ literal("es-ES"),
2546
+ literal("de-DE")
2547
+ ]),
2548
+ tours: object({
2549
+ dashboard: object({
2550
+ step: number(),
2551
+ completed: boolean()
2552
+ }),
2553
+ editor: object({
2554
+ step: number(),
2555
+ completed: boolean()
2556
+ })
2557
+ }),
2558
+ autosave: boolean(),
2559
+ agents: array(object({
2560
+ id: string(),
2561
+ name: string(),
2562
+ url: string()
2563
+ })),
2564
+ buildHistory: object({ retentionPolicy: object({
2565
+ enabled: boolean(),
2566
+ maxEntries: number(),
2567
+ maxAge: number()
2568
+ }) }),
2569
+ plugins: array(object({
2570
+ name: string(),
2571
+ enabled: boolean(),
2572
+ description: string()
2573
+ })),
2574
+ isInternalMigrationBannerClosed: optional(boolean(), false)
2575
+ });
2576
+ const ConnectionValidator = looseObject({
2577
+ id: string(),
2578
+ pluginName: string(),
2579
+ name: string(),
2580
+ createdAt: string(),
2581
+ isDefault: boolean()
2582
+ });
2583
+ object({
2584
+ version: literal("1.0.0"),
2585
+ connections: array(ConnectionValidator)
2586
+ });
2300
2587
  //#endregion
2301
2588
  //#region ../../node_modules/tslog/dist/esm/prettyLogStyles.js
2302
2589
  const prettyLogStyles = {
@@ -2818,7 +3105,7 @@ async function newQuickJSWASMModuleFromVariant(variantOrPromise) {
2818
3105
  let variant = smartUnwrap(await variantOrPromise), [wasmModuleLoader, QuickJSFFI, { QuickJSWASMModule: QuickJSWASMModule2 }] = await Promise.all([
2819
3106
  variant.importModuleLoader().then(smartUnwrap),
2820
3107
  variant.importFFI(),
2821
- import("./module-6F3E5H7Y-BhC3bDbd.mjs").then(smartUnwrap)
3108
+ import("./module-6F3E5H7Y-DS2ftHS3.mjs").then(smartUnwrap)
2822
3109
  ]), wasmModule = await wasmModuleLoader();
2823
3110
  wasmModule.type = "sync";
2824
3111
  return new QuickJSWASMModule2(wasmModule, new QuickJSFFI(wasmModule));
@@ -3732,8 +4019,8 @@ const fmt = { param: (value, variant, ifEmpty = "") => {
3732
4019
  //#region ../../node_modules/@jitl/quickjs-singlefile-mjs-release-sync/dist/index.mjs
3733
4020
  var src_default = {
3734
4021
  type: "sync",
3735
- importFFI: () => import("./ffi-H2UhpTE6.mjs").then((mod) => mod.QuickJSFFI),
3736
- importModuleLoader: () => import("./emscripten-module-VHMWRAJ2-C6K1oxel.mjs").then((mod) => mod.default)
4022
+ importFFI: () => import("./ffi-DpuJHCem.mjs").then((mod) => mod.QuickJSFFI),
4023
+ importModuleLoader: () => import("./emscripten-module-VHMWRAJ2-Jdkq656T.mjs").then((mod) => mod.default)
3737
4024
  };
3738
4025
  //#endregion
3739
4026
  //#region ../../packages/shared/src/quickjs.ts
@@ -3894,9 +4181,6 @@ const processGraph = async (options) => {
3894
4181
  options.steps[rawNode.uid].outputs = result.result.outputs;
3895
4182
  }
3896
4183
  options.onNodeExit(rawNode);
3897
- } else if (rawNode.type === "loop") {
3898
- options.onNodeEnter(rawNode);
3899
- options.onNodeExit(rawNode);
3900
4184
  } else if (rawNode.type === "comment") {} else if (rawNode.type === "event") {
3901
4185
  options.onNodeEnter(rawNode);
3902
4186
  options.onNodeExit(rawNode);
@@ -3909,7 +4193,8 @@ const processGraph = async (options) => {
3909
4193
  //#region ../../packages/shared/src/model.ts
3910
4194
  const OriginValidator = object({
3911
4195
  pluginId: string(),
3912
- nodeId: string()
4196
+ nodeId: string(),
4197
+ version: optional(pipe(string(), description("Pinned version of the plugin for this block. Falls back to \"latest\" when absent.")))
3913
4198
  });
3914
4199
  const BlockActionValidatorV1 = object({
3915
4200
  type: literal("action"),
@@ -3922,7 +4207,7 @@ const EditorParamValidatorV3 = union([literal("simple"), literal("editor")]);
3922
4207
  const BlockActionValidatorV3 = object({
3923
4208
  type: literal("action"),
3924
4209
  uid: string(),
3925
- name: pipe(optional(string()), description("A custom name provided by the user")),
4210
+ name: optional(pipe(string(), description("A custom name provided by the user"))),
3926
4211
  disabled: optional(boolean()),
3927
4212
  params: record(string(), object({
3928
4213
  editor: EditorParamValidatorV3,
@@ -3930,21 +4215,6 @@ const BlockActionValidatorV3 = object({
3930
4215
  })),
3931
4216
  origin: OriginValidator
3932
4217
  });
3933
- object({
3934
- type: literal("condition"),
3935
- uid: string(),
3936
- origin: OriginValidator,
3937
- params: record(string(), any()),
3938
- branchTrue: lazy(() => array(BlockValidator)),
3939
- branchFalse: lazy(() => array(BlockValidator))
3940
- });
3941
- object({
3942
- type: literal("loop"),
3943
- uid: string(),
3944
- origin: OriginValidator,
3945
- params: record(string(), any()),
3946
- children: lazy(() => array(BlockValidator))
3947
- });
3948
4218
  const BlockEventValidator = object({
3949
4219
  type: literal("event"),
3950
4220
  uid: string(),
@@ -3960,7 +4230,6 @@ object({
3960
4230
  const BlockValidatorV1 = variant("type", [BlockActionValidatorV1, BlockEventValidator]);
3961
4231
  const BlockValidatorV2 = variant("type", [BlockActionValidatorV1]);
3962
4232
  const BlockValidatorV3 = variant("type", [BlockActionValidatorV3]);
3963
- const BlockValidator = BlockValidatorV3;
3964
4233
  const CanvasValidatorV1 = object({ blocks: array(BlockValidatorV1) });
3965
4234
  const CanvasValidatorV2 = object({
3966
4235
  blocks: array(BlockValidatorV2),
@@ -3992,19 +4261,59 @@ object({
3992
4261
  canvas: CanvasValidatorV3,
3993
4262
  variables: array(VariableValidatorV1)
3994
4263
  });
3995
- const SavedFileDefaultValidator = object({
4264
+ const SavedFileDefaultValidatorV4 = object({
3996
4265
  version: literal("4.0.0"),
3997
4266
  type: literal("default"),
3998
4267
  name: string(),
3999
4268
  description: string(),
4269
+ plugins: optional(record(string(), string())),
4000
4270
  canvas: CanvasValidatorV3,
4001
4271
  variables: array(VariableValidatorV1)
4002
4272
  });
4003
- const SavedFileSimpleValidator = object({
4273
+ const SavedFileSimpleValidatorV4 = object({
4004
4274
  version: literal("4.0.0"),
4005
4275
  type: literal("simple"),
4006
4276
  name: string(),
4007
4277
  description: string(),
4278
+ plugins: optional(record(string(), string())),
4279
+ source: object({
4280
+ type: union([
4281
+ literal("c3-html"),
4282
+ literal("c3-nwjs"),
4283
+ literal("godot"),
4284
+ literal("html")
4285
+ ]),
4286
+ path: string()
4287
+ }),
4288
+ packaging: object({ enabled: boolean() }),
4289
+ publishing: object({
4290
+ steam: object({
4291
+ enabled: boolean(),
4292
+ appId: optional(string())
4293
+ }),
4294
+ itch: object({
4295
+ enabled: boolean(),
4296
+ project: optional(string())
4297
+ }),
4298
+ poki: object({
4299
+ enabled: boolean(),
4300
+ gameId: optional(string())
4301
+ })
4302
+ })
4303
+ });
4304
+ object({
4305
+ version: literal("5.0.0"),
4306
+ name: string(),
4307
+ description: string(),
4308
+ canvas: CanvasValidatorV3,
4309
+ variables: array(VariableValidatorV1)
4310
+ });
4311
+ object({
4312
+ version: literal("5.0.0"),
4313
+ type: literal("simple"),
4314
+ name: string(),
4315
+ description: string(),
4316
+ plugins: record(string(), string()),
4008
4317
  source: object({
4009
4318
  type: union([
4010
4319
  literal("c3-html"),
@@ -4030,7 +4339,7 @@ const SavedFileSimpleValidator = object({
4030
4339
  })
4031
4340
  })
4032
4341
  });
4033
- union([SavedFileDefaultValidator, SavedFileSimpleValidator]);
4342
+ union([SavedFileDefaultValidatorV4, SavedFileSimpleValidatorV4]);
4034
4343
  //#endregion
4035
4344
  //#region ../../node_modules/vue/node_modules/@vue/shared/dist/shared.cjs.prod.js
4036
4345
  /**
@@ -32034,7 +32343,13 @@ const plugins = (0, vue_exports.shallowRef)([]);
32034
32343
  const usePlugins = () => {
32035
32344
  const load = () => {};
32036
32345
  const registerPlugins = (newPlugins) => {
32037
- plugins.value.push(...newPlugins);
32346
+ const current = [...plugins.value];
32347
+ for (const np of newPlugins) {
32348
+ const idx = current.findIndex((p) => p.id === np.id);
32349
+ if (idx !== -1) current[idx] = np;
32350
+ else current.push(np);
32351
+ }
32352
+ plugins.value = current;
32038
32353
  };
32039
32354
  return {
32040
32355
  load,
@@ -32043,38 +32358,6 @@ const usePlugins = () => {
32043
32358
  };
32044
32359
  };
32045
32360
  //#endregion
32046
- //#region ../../packages/shared/src/save-location.ts
32047
- const SaveLocationInternalValidator = object({
32048
- id: string(),
32049
- project: string(),
32050
- lastModified: string(),
32051
- type: literal("internal"),
32052
- configName: string()
32053
- });
32054
- /** @deprecated External pipeline files are deprecated and will be removed in future versions. */
32055
- const SaveLocationExternalValidator = object({
32056
- id: string(),
32057
- project: string(),
32058
- path: string(),
32059
- lastModified: string(),
32060
- type: literal("external"),
32061
- summary: object({
32062
- plugins: array(string()),
32063
- name: string(),
32064
- description: string()
32065
- })
32066
- });
32067
- const SaveLocationPipelabCloudValidator = object({
32068
- id: string(),
32069
- project: string(),
32070
- type: literal("pipelab-cloud")
32071
- });
32072
- const SaveLocationValidator = union([
32073
- SaveLocationExternalValidator,
32074
- SaveLocationInternalValidator,
32075
- SaveLocationPipelabCloudValidator
32076
- ]);
32077
- //#endregion
32078
32361
  //#region ../../packages/shared/src/subscription-errors.ts
32079
32362
  var SubscriptionRequiredError = class extends Error {
32080
32363
  code = "SUBSCRIPTION_REQUIRED";
@@ -32108,6 +32391,26 @@ const supabase = (options) => {
32108
32391
  return createClient(url, anonKey, options);
32109
32392
  };
32110
32393
  //#endregion
32394
+ //#region ../../packages/shared/src/utils.ts
32395
+ const transformUrl = (url) => {
32396
+ if (url && typeof url === "string") {
32397
+ const getHost = () => {
32398
+ if (typeof window !== "undefined") if (window.location.port === "5173") return `http://${window.location.hostname}:33753`;
32399
+ else return `${window.location.protocol}//${window.location.host}`;
32400
+ return "http://localhost:33753";
32401
+ };
32402
+ if (url.startsWith("file://")) {
32403
+ const filePath = url.substring(7);
32404
+ return `${getHost()}/media-file/${encodeURIComponent(filePath)}`;
32405
+ }
32406
+ if (url.startsWith("media://")) {
32407
+ const filePath = url.replace(/^media:\/\/+/, "/");
32408
+ return `${getHost()}/media-file/${encodeURIComponent(filePath)}`;
32409
+ }
32410
+ }
32411
+ return url || "";
32412
+ };
32413
+ //#endregion
32111
32414
  //#region ../../packages/shared/src/validation.ts
32112
32415
  const isRequired = (param) => {
32113
32416
  return param.required === true;
@@ -32129,20 +32432,6 @@ object({
32129
32432
  version: literal("1.0.0"),
32130
32433
  data: optional(record(string(), SaveLocationValidator), {})
32131
32434
  });
32132
- const FileRepoProjectValidatorV2$1 = object({
32133
- id: string(),
32134
- name: string(),
32135
- description: string()
32136
- });
32137
- object({
32138
- version: literal("2.0.0"),
32139
- projects: array(FileRepoProjectValidatorV2$1),
32140
- pipelines: optional(array(SaveLocationValidator), [])
32141
- });
32142
- object({
32143
- version: literal("1.0.0"),
32144
- data: optional(record(string(), SaveLocationValidator), {})
32145
- });
32146
32435
  const FileRepoProjectValidatorV2 = object({
32147
32436
  id: string(),
32148
32437
  name: string(),
@@ -32155,9 +32444,8 @@ object({
32155
32444
  });
32156
32445
  //#endregion
32157
32446
  //#region ../../packages/shared/src/index.ts
32158
- const appSettingsMigrator = appSettingsMigrator$1;
32159
- const fileRepoMigrations = fileRepoMigrations$1;
32160
32447
  const savedFileMigrator = savedFileMigrator$1;
32161
32448
  const configRegistry = configRegistry$1;
32449
+ const normalizePipelineConfig = normalizePipelineConfig$1;
32162
32450
  //#endregion
32163
- export { require_valid as A, variableToFormattedVariable as C, fmt as D, createQuickJsFromVariant as E, require_clean as M, require_valid$1 as N, useLogger as O, processGraph as S, createQuickJs as T, EditorParamValidatorV3 as _, FileRepoProjectValidatorV2$1 as a, SavedFileSimpleValidator as b, isRequired as c, SubscriptionRequiredError as d, SaveLocationExternalValidator as f, usePlugins as g, SaveLocationValidator as h, savedFileMigrator as i, require_satisfies as j, require_semver as k, isSupabaseAvailable as l, SaveLocationPipelabCloudValidator as m, configRegistry as n, WebSocketError as o, SaveLocationInternalValidator as p, fileRepoMigrations as r, isWebSocketRequestMessage as s, appSettingsMigrator as t, supabase as u, OriginValidator as v, makeResolvedParams as w, VariableValidatorV1 as x, SavedFileDefaultValidator as y };
32451
+ export { useLogger as C, SaveLocationInternalValidator as D, SaveLocationExternalValidator as E, SaveLocationPipelabCloudValidator as O, fmt as S, FileRepoProjectValidatorV2$1 as T, processGraph as _, isWebSocketRequestMessage as a, createQuickJs as b, isSupabaseAvailable as c, usePlugins as d, EditorParamValidatorV3 as f, VariableValidatorV1 as g, SavedFileSimpleValidatorV4 as h, WebSocketError as i, SaveLocationValidator as k, supabase as l, SavedFileDefaultValidatorV4 as m, normalizePipelineConfig as n, isRequired as o, OriginValidator as p, savedFileMigrator as r, transformUrl as s, configRegistry as t, SubscriptionRequiredError as u, variableToFormattedVariable as v, ConnectionValidator as w, createQuickJsFromVariant as x, makeResolvedParams as y };