@contentful/experience-design-system-cli 2.37.1-dev-build-a3cb19fa.0 → 2.37.1-dev-build-9da0d812.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.js +1983 -159
- package/dist/index.js +4218 -259
- package/dist/package.json +5 -2
- package/dist/src/tui/import/spawn-v1-import.d.ts +2 -1
- package/dist/src/tui/import/steps/03-path-validation/helpers/scan-files.d.ts +10 -0
- package/dist/src/tui/import/steps/03-path-validation/logic.d.ts +2 -1
- package/dist/src/tui/import/steps/03-path-validation/screen.d.ts +4 -1
- package/legacy/package.json +5 -2
- package/package.json +5 -2
- package/dist/src/tui/import/steps/03-path-validation/loader.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -356,8 +356,8 @@ function WelcomeScreen({ onContinue, onQuit, initialPath = "" }) {
|
|
|
356
356
|
const [projectPath, setProjectPath] = useState3(initialPath);
|
|
357
357
|
useWelcomeControls(onQuit);
|
|
358
358
|
const submit = (value) => {
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
359
|
+
const path5 = toProjectPath(value);
|
|
360
|
+
if (path5) onContinue(path5);
|
|
361
361
|
};
|
|
362
362
|
return /* @__PURE__ */ jsxs3(Box3, { flexDirection: "column", gap: 1, paddingX: 2, paddingY: 1, children: [
|
|
363
363
|
/* @__PURE__ */ jsx4(Text4, { bold: true, color: PALETTE.success, children: "\u{1F44B} Hey! Let's import your design system into Contentful." }),
|
|
@@ -459,24 +459,24 @@ var init_resolve_user_path = __esm({
|
|
|
459
459
|
// packages/experience-design-system-cli/src/tui/import/steps/02-token-input/validate-path.ts
|
|
460
460
|
import { statSync } from "node:fs";
|
|
461
461
|
function validateTokenPath(rawPath) {
|
|
462
|
-
const
|
|
462
|
+
const path5 = resolveUserPath(rawPath);
|
|
463
463
|
let stats;
|
|
464
464
|
try {
|
|
465
|
-
stats = statSync(
|
|
465
|
+
stats = statSync(path5);
|
|
466
466
|
} catch {
|
|
467
|
-
return { ok: false, error: `Path not found: ${
|
|
467
|
+
return { ok: false, error: `Path not found: ${path5}`, resolvedPath: path5 };
|
|
468
468
|
}
|
|
469
469
|
if (stats.isDirectory()) {
|
|
470
470
|
return {
|
|
471
471
|
ok: false,
|
|
472
472
|
error: "That's a directory \u2014 provide a path to a token file (e.g. tokens.json), not a folder.",
|
|
473
|
-
resolvedPath:
|
|
473
|
+
resolvedPath: path5
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
476
|
if (!stats.isFile()) {
|
|
477
|
-
return { ok: false, error: `Not a regular file: ${
|
|
477
|
+
return { ok: false, error: `Not a regular file: ${path5}`, resolvedPath: path5 };
|
|
478
478
|
}
|
|
479
|
-
return { ok: true, path };
|
|
479
|
+
return { ok: true, path: path5 };
|
|
480
480
|
}
|
|
481
481
|
var init_validate_path = __esm({
|
|
482
482
|
"packages/experience-design-system-cli/src/tui/import/steps/02-token-input/validate-path.ts"() {
|
|
@@ -547,38 +547,7 @@ var init_screen2 = __esm({
|
|
|
547
547
|
});
|
|
548
548
|
|
|
549
549
|
// packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/logic.ts
|
|
550
|
-
function
|
|
551
|
-
if (fileName.endsWith(".d.ts")) return "other";
|
|
552
|
-
const dot = fileName.lastIndexOf(".");
|
|
553
|
-
const extension = dot === -1 ? "" : fileName.slice(dot + 1);
|
|
554
|
-
return CATEGORY_BY_EXTENSION.get(extension) ?? "other";
|
|
555
|
-
}
|
|
556
|
-
function emptyCounts() {
|
|
557
|
-
return { tsx: 0, ts: 0, vue: 0, astro: 0, jsx: 0, js: 0, json: 0, other: 0, total: 0 };
|
|
558
|
-
}
|
|
559
|
-
function addFile(counts, fileName) {
|
|
560
|
-
const category = categorize(fileName);
|
|
561
|
-
return { ...counts, [category]: counts[category] + 1, total: counts.total + 1 };
|
|
562
|
-
}
|
|
563
|
-
function mergeCounts(a, b) {
|
|
564
|
-
return {
|
|
565
|
-
tsx: a.tsx + b.tsx,
|
|
566
|
-
ts: a.ts + b.ts,
|
|
567
|
-
vue: a.vue + b.vue,
|
|
568
|
-
astro: a.astro + b.astro,
|
|
569
|
-
jsx: a.jsx + b.jsx,
|
|
570
|
-
js: a.js + b.js,
|
|
571
|
-
json: a.json + b.json,
|
|
572
|
-
other: a.other + b.other,
|
|
573
|
-
total: a.total + b.total
|
|
574
|
-
};
|
|
575
|
-
}
|
|
576
|
-
function failureFromErrorCode(code) {
|
|
577
|
-
if (code === "ENOENT") return "not-found";
|
|
578
|
-
if (code === "EACCES") return "permission-denied";
|
|
579
|
-
return "unreadable";
|
|
580
|
-
}
|
|
581
|
-
function describeFailure(failure, path) {
|
|
550
|
+
function describeFailure(failure, path5) {
|
|
582
551
|
switch (failure) {
|
|
583
552
|
case "is-file":
|
|
584
553
|
return {
|
|
@@ -590,163 +559,4154 @@ function describeFailure(failure, path) {
|
|
|
590
559
|
};
|
|
591
560
|
case "not-found":
|
|
592
561
|
return {
|
|
593
|
-
headline: `Directory not found: ${
|
|
562
|
+
headline: `Directory not found: ${path5}`,
|
|
594
563
|
hints: ["Double-check the path and try again. Tip: you can use ~, relative, or absolute paths."]
|
|
595
564
|
};
|
|
596
565
|
case "permission-denied":
|
|
597
566
|
return {
|
|
598
|
-
headline: `Permission denied: ${
|
|
567
|
+
headline: `Permission denied: ${path5}`,
|
|
599
568
|
hints: ["You don't have read access to this directory."]
|
|
600
569
|
};
|
|
601
570
|
case "not-directory":
|
|
602
|
-
return { headline: `Not a directory: ${
|
|
571
|
+
return { headline: `Not a directory: ${path5}`, hints: [] };
|
|
603
572
|
case "unreadable":
|
|
604
|
-
return { headline: `Cannot access: ${
|
|
573
|
+
return { headline: `Cannot access: ${path5}`, hints: [] };
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
function summarize(counts) {
|
|
577
|
+
const rows = ROW_ORDER.filter((category) => counts[category] > 0).map((category) => {
|
|
578
|
+
const tone = category === "json" ? "accent" : category === "other" ? "muted" : "default";
|
|
579
|
+
return { label: ROW_LABELS[category], count: counts[category], tone };
|
|
580
|
+
});
|
|
581
|
+
const componentFiles = COMPONENT_CATEGORIES.reduce((sum, category) => sum + counts[category], 0);
|
|
582
|
+
if (componentFiles > 0) return { total: counts.total, rows };
|
|
583
|
+
if (counts.json > 0) {
|
|
584
|
+
return { total: counts.total, rows, warning: "No component files found \u2014 only token files detected." };
|
|
585
|
+
}
|
|
586
|
+
return {
|
|
587
|
+
total: counts.total,
|
|
588
|
+
rows,
|
|
589
|
+
warning: "No component or token files found. Try a different path."
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
function phaseOf(scan) {
|
|
593
|
+
if (scan === void 0) return "scanning";
|
|
594
|
+
return scan.ok ? "ready" : "failed";
|
|
595
|
+
}
|
|
596
|
+
function keyAction(phase, input, key) {
|
|
597
|
+
if (key.escape) return "back";
|
|
598
|
+
if (phase === "ready") {
|
|
599
|
+
if (key.return) return "confirm";
|
|
600
|
+
if (input === "e") return "change-path";
|
|
601
|
+
}
|
|
602
|
+
if (phase === "failed" && (key.return || input === "e")) return "change-path";
|
|
603
|
+
return void 0;
|
|
604
|
+
}
|
|
605
|
+
var COMPONENT_CATEGORIES, ROW_LABELS, ROW_ORDER;
|
|
606
|
+
var init_logic3 = __esm({
|
|
607
|
+
"packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/logic.ts"() {
|
|
608
|
+
"use strict";
|
|
609
|
+
COMPONENT_CATEGORIES = ["tsx", "ts", "vue", "astro", "jsx", "js"];
|
|
610
|
+
ROW_LABELS = {
|
|
611
|
+
tsx: ".tsx files",
|
|
612
|
+
ts: ".ts files",
|
|
613
|
+
vue: ".vue files",
|
|
614
|
+
astro: ".astro files",
|
|
615
|
+
jsx: ".jsx files",
|
|
616
|
+
js: ".js files",
|
|
617
|
+
json: ".json files (design tokens)",
|
|
618
|
+
other: "other (ignored)"
|
|
619
|
+
};
|
|
620
|
+
ROW_ORDER = ["tsx", "ts", "vue", "astro", "jsx", "js", "json", "other"];
|
|
621
|
+
}
|
|
622
|
+
});
|
|
623
|
+
|
|
624
|
+
// packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/controls.ts
|
|
625
|
+
import { useInput as useInput5 } from "ink";
|
|
626
|
+
function controlsFor(phase) {
|
|
627
|
+
return CONTROLS[phase];
|
|
628
|
+
}
|
|
629
|
+
function usePathValidationControls(phase, handlers) {
|
|
630
|
+
useInput5((input, key) => {
|
|
631
|
+
const action = keyAction(phase, input, key);
|
|
632
|
+
if (action === "confirm") handlers.onConfirm();
|
|
633
|
+
else if (action === "change-path") handlers.onChangePath();
|
|
634
|
+
else if (action === "back") handlers.onBack();
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
var CONTROLS;
|
|
638
|
+
var init_controls3 = __esm({
|
|
639
|
+
"packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/controls.ts"() {
|
|
640
|
+
"use strict";
|
|
641
|
+
init_logic3();
|
|
642
|
+
CONTROLS = {
|
|
643
|
+
scanning: [{ keys: "Esc", label: "Back" }],
|
|
644
|
+
ready: [
|
|
645
|
+
{ keys: "Enter", label: "Yes, continue" },
|
|
646
|
+
{ keys: "e", label: "Change path" },
|
|
647
|
+
{ keys: "Esc", label: "Back" }
|
|
648
|
+
],
|
|
649
|
+
failed: [
|
|
650
|
+
{ keys: "Enter/e", label: "Try a different path" },
|
|
651
|
+
{ keys: "Esc", label: "Back" }
|
|
652
|
+
]
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
|
|
657
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/config-root.js
|
|
658
|
+
var init_config_root = __esm({
|
|
659
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/config-root.js"() {
|
|
660
|
+
"use strict";
|
|
661
|
+
}
|
|
662
|
+
});
|
|
663
|
+
|
|
664
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/source-excerpt.js
|
|
665
|
+
var init_source_excerpt = __esm({
|
|
666
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/source-excerpt.js"() {
|
|
667
|
+
"use strict";
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
|
|
671
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/derive-component-id.js
|
|
672
|
+
var init_derive_component_id = __esm({
|
|
673
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/derive-component-id.js"() {
|
|
674
|
+
"use strict";
|
|
675
|
+
}
|
|
676
|
+
});
|
|
677
|
+
|
|
678
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cdf/cdf-mappers.js
|
|
679
|
+
var init_cdf_mappers = __esm({
|
|
680
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cdf/cdf-mappers.js"() {
|
|
681
|
+
"use strict";
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
|
|
685
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/shared/index-rows-by-key.js
|
|
686
|
+
var init_index_rows_by_key = __esm({
|
|
687
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/shared/index-rows-by-key.js"() {
|
|
688
|
+
"use strict";
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
|
|
692
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/read.js
|
|
693
|
+
var init_read = __esm({
|
|
694
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/read.js"() {
|
|
695
|
+
"use strict";
|
|
696
|
+
}
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/write.js
|
|
700
|
+
var init_write = __esm({
|
|
701
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/write.js"() {
|
|
702
|
+
"use strict";
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/read.js
|
|
707
|
+
var init_read2 = __esm({
|
|
708
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/read.js"() {
|
|
709
|
+
"use strict";
|
|
710
|
+
}
|
|
711
|
+
});
|
|
712
|
+
|
|
713
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/write.js
|
|
714
|
+
var init_write2 = __esm({
|
|
715
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/write.js"() {
|
|
716
|
+
"use strict";
|
|
717
|
+
}
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/session-id.js
|
|
721
|
+
var init_session_id = __esm({
|
|
722
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/session-id.js"() {
|
|
723
|
+
"use strict";
|
|
724
|
+
}
|
|
725
|
+
});
|
|
726
|
+
|
|
727
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/session-resolver.js
|
|
728
|
+
var init_session_resolver = __esm({
|
|
729
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/session-resolver.js"() {
|
|
730
|
+
"use strict";
|
|
731
|
+
init_session_id();
|
|
732
|
+
init_read();
|
|
733
|
+
init_write();
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
|
|
737
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-groups.js
|
|
738
|
+
var init_build_dtcg_groups = __esm({
|
|
739
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-groups.js"() {
|
|
740
|
+
"use strict";
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
|
|
744
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-tokens.js
|
|
745
|
+
var init_build_dtcg_tokens = __esm({
|
|
746
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-tokens.js"() {
|
|
747
|
+
"use strict";
|
|
748
|
+
}
|
|
749
|
+
});
|
|
750
|
+
|
|
751
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/read.js
|
|
752
|
+
var init_read3 = __esm({
|
|
753
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/read.js"() {
|
|
754
|
+
"use strict";
|
|
755
|
+
init_build_dtcg_groups();
|
|
756
|
+
init_build_dtcg_tokens();
|
|
757
|
+
}
|
|
758
|
+
});
|
|
759
|
+
|
|
760
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/hash-component-shape.js
|
|
761
|
+
var init_hash_component_shape = __esm({
|
|
762
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/hash-component-shape.js"() {
|
|
763
|
+
"use strict";
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
|
|
767
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/hash-token-content.js
|
|
768
|
+
var init_hash_token_content = __esm({
|
|
769
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/hash-token-content.js"() {
|
|
770
|
+
"use strict";
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
|
|
774
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/write.js
|
|
775
|
+
var init_write3 = __esm({
|
|
776
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/write.js"() {
|
|
777
|
+
"use strict";
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
|
|
781
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/shared/with-transaction.js
|
|
782
|
+
var init_with_transaction = __esm({
|
|
783
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/shared/with-transaction.js"() {
|
|
784
|
+
"use strict";
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
|
|
788
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/store-dtcg-tokens.js
|
|
789
|
+
var init_store_dtcg_tokens = __esm({
|
|
790
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/store-dtcg-tokens.js"() {
|
|
791
|
+
"use strict";
|
|
792
|
+
init_write();
|
|
793
|
+
init_write3();
|
|
794
|
+
init_with_transaction();
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
|
|
798
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/apply-tool-calls.js
|
|
799
|
+
var init_apply_tool_calls = __esm({
|
|
800
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/apply-tool-calls.js"() {
|
|
801
|
+
"use strict";
|
|
802
|
+
init_write();
|
|
803
|
+
init_write3();
|
|
804
|
+
init_with_transaction();
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-token-name-paths.js
|
|
809
|
+
var init_replace_raw_token_name_paths = __esm({
|
|
810
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-token-name-paths.js"() {
|
|
811
|
+
"use strict";
|
|
812
|
+
init_write3();
|
|
813
|
+
init_write();
|
|
814
|
+
init_with_transaction();
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-prop-token-paths.js
|
|
819
|
+
var init_replace_raw_prop_token_paths = __esm({
|
|
820
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-prop-token-paths.js"() {
|
|
821
|
+
"use strict";
|
|
822
|
+
init_write3();
|
|
823
|
+
init_write();
|
|
824
|
+
init_with_transaction();
|
|
825
|
+
}
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/db.js
|
|
829
|
+
import { DatabaseSync } from "node:sqlite";
|
|
830
|
+
var init_db = __esm({
|
|
831
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/db.js"() {
|
|
832
|
+
"use strict";
|
|
833
|
+
init_config_root();
|
|
834
|
+
init_source_excerpt();
|
|
835
|
+
init_derive_component_id();
|
|
836
|
+
init_cdf_mappers();
|
|
837
|
+
init_index_rows_by_key();
|
|
838
|
+
init_read();
|
|
839
|
+
init_write();
|
|
840
|
+
init_read2();
|
|
841
|
+
init_write2();
|
|
842
|
+
init_session_resolver();
|
|
843
|
+
init_read3();
|
|
844
|
+
init_hash_component_shape();
|
|
845
|
+
init_hash_token_content();
|
|
846
|
+
init_read3();
|
|
847
|
+
init_store_dtcg_tokens();
|
|
848
|
+
init_apply_tool_calls();
|
|
849
|
+
init_replace_raw_token_name_paths();
|
|
850
|
+
init_replace_raw_prop_token_paths();
|
|
851
|
+
}
|
|
852
|
+
});
|
|
853
|
+
|
|
854
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/vocabularies.js
|
|
855
|
+
var CDF_PROPERTY_TYPES, CDF_PROPERTY_CATEGORIES;
|
|
856
|
+
var init_vocabularies = __esm({
|
|
857
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/vocabularies.js"() {
|
|
858
|
+
"use strict";
|
|
859
|
+
CDF_PROPERTY_TYPES = [
|
|
860
|
+
"string",
|
|
861
|
+
"richtext",
|
|
862
|
+
"number",
|
|
863
|
+
"media",
|
|
864
|
+
"link",
|
|
865
|
+
"enum",
|
|
866
|
+
"token",
|
|
867
|
+
"boolean"
|
|
868
|
+
];
|
|
869
|
+
CDF_PROPERTY_CATEGORIES = ["content", "design", "state", "unattached"];
|
|
870
|
+
}
|
|
871
|
+
});
|
|
872
|
+
|
|
873
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/token-types.js
|
|
874
|
+
var DESIGN_TOKEN_TYPES;
|
|
875
|
+
var init_token_types = __esm({
|
|
876
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/token-types.js"() {
|
|
877
|
+
"use strict";
|
|
878
|
+
DESIGN_TOKEN_TYPES = [
|
|
879
|
+
"color",
|
|
880
|
+
"dimension",
|
|
881
|
+
"fontFamily",
|
|
882
|
+
"fontWeight",
|
|
883
|
+
"duration",
|
|
884
|
+
"cubicBezier",
|
|
885
|
+
"number",
|
|
886
|
+
"strokeStyle",
|
|
887
|
+
"border",
|
|
888
|
+
"transition",
|
|
889
|
+
"shadow",
|
|
890
|
+
"gradient",
|
|
891
|
+
"typography"
|
|
892
|
+
];
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
|
|
896
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/schema.js
|
|
897
|
+
var CDF_SCHEMA_URL, cdfJsonSchema;
|
|
898
|
+
var init_schema = __esm({
|
|
899
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/schema.js"() {
|
|
900
|
+
"use strict";
|
|
901
|
+
init_vocabularies();
|
|
902
|
+
init_token_types();
|
|
903
|
+
CDF_SCHEMA_URL = "https://contentful.com/schemas/cdf";
|
|
904
|
+
cdfJsonSchema = {
|
|
905
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
906
|
+
$id: CDF_SCHEMA_URL,
|
|
907
|
+
title: "CDF Component + Design Token Definition Format",
|
|
908
|
+
type: "object",
|
|
909
|
+
required: ["$schema"],
|
|
910
|
+
properties: {
|
|
911
|
+
$schema: { type: "string", const: CDF_SCHEMA_URL }
|
|
912
|
+
},
|
|
913
|
+
additionalProperties: { $ref: "#/definitions/groupOrEntry" },
|
|
914
|
+
definitions: {
|
|
915
|
+
groupOrEntry: {
|
|
916
|
+
oneOf: [{ $ref: "#/definitions/component" }, { $ref: "#/definitions/token" }, { $ref: "#/definitions/group" }]
|
|
917
|
+
},
|
|
918
|
+
component: {
|
|
919
|
+
type: "object",
|
|
920
|
+
required: ["$type", "$properties"],
|
|
921
|
+
properties: {
|
|
922
|
+
$type: { type: "string", const: "component" },
|
|
923
|
+
$description: { type: "string" },
|
|
924
|
+
$properties: {
|
|
925
|
+
type: "object",
|
|
926
|
+
additionalProperties: { $ref: "#/definitions/property" }
|
|
927
|
+
},
|
|
928
|
+
$slots: {
|
|
929
|
+
type: "object",
|
|
930
|
+
additionalProperties: { $ref: "#/definitions/slot" }
|
|
931
|
+
}
|
|
932
|
+
},
|
|
933
|
+
additionalProperties: false
|
|
934
|
+
},
|
|
935
|
+
property: {
|
|
936
|
+
type: "object",
|
|
937
|
+
required: ["$type", "$category"],
|
|
938
|
+
properties: {
|
|
939
|
+
$type: { type: "string", enum: [...CDF_PROPERTY_TYPES] },
|
|
940
|
+
$category: { type: "string", enum: [...CDF_PROPERTY_CATEGORIES] },
|
|
941
|
+
$description: { type: "string" },
|
|
942
|
+
$required: { type: "boolean" },
|
|
943
|
+
$default: {},
|
|
944
|
+
$values: { type: "array", items: { type: "string" } },
|
|
945
|
+
"$token.kind": { type: "string" },
|
|
946
|
+
"$token.allowed": { type: "array", items: { type: "string" } }
|
|
947
|
+
},
|
|
948
|
+
additionalProperties: false
|
|
949
|
+
},
|
|
950
|
+
slot: {
|
|
951
|
+
type: "object",
|
|
952
|
+
properties: {
|
|
953
|
+
$description: { type: "string" },
|
|
954
|
+
$required: { type: "boolean" },
|
|
955
|
+
$allowedComponents: { type: "array", items: { type: "string" } }
|
|
956
|
+
},
|
|
957
|
+
additionalProperties: false
|
|
958
|
+
},
|
|
959
|
+
token: {
|
|
960
|
+
type: "object",
|
|
961
|
+
required: ["$type", "$value"],
|
|
962
|
+
properties: {
|
|
963
|
+
$type: { type: "string", enum: [...DESIGN_TOKEN_TYPES] },
|
|
964
|
+
$value: {},
|
|
965
|
+
$description: { type: "string" }
|
|
966
|
+
},
|
|
967
|
+
additionalProperties: false
|
|
968
|
+
},
|
|
969
|
+
group: {
|
|
970
|
+
type: "object",
|
|
971
|
+
properties: { $description: { type: "string" } },
|
|
972
|
+
additionalProperties: { $ref: "#/definitions/groupOrEntry" }
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
|
|
979
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-cdf-document.js
|
|
980
|
+
var init_export_cdf_document = __esm({
|
|
981
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-cdf-document.js"() {
|
|
982
|
+
"use strict";
|
|
983
|
+
init_db();
|
|
984
|
+
init_schema();
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/rebuild-dtcg-tree.js
|
|
989
|
+
var init_rebuild_dtcg_tree = __esm({
|
|
990
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/rebuild-dtcg-tree.js"() {
|
|
991
|
+
"use strict";
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
|
|
995
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-dtcg-tree.js
|
|
996
|
+
var init_export_dtcg_tree = __esm({
|
|
997
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-dtcg-tree.js"() {
|
|
998
|
+
"use strict";
|
|
999
|
+
init_db();
|
|
1000
|
+
init_rebuild_dtcg_tree();
|
|
1001
|
+
}
|
|
1002
|
+
});
|
|
1003
|
+
|
|
1004
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/validate.js
|
|
1005
|
+
import { Ajv } from "ajv";
|
|
1006
|
+
var ajv, validate, TOKEN_TYPE_SET;
|
|
1007
|
+
var init_validate = __esm({
|
|
1008
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/validate.js"() {
|
|
1009
|
+
"use strict";
|
|
1010
|
+
init_schema();
|
|
1011
|
+
init_token_types();
|
|
1012
|
+
ajv = new Ajv({ allErrors: true });
|
|
1013
|
+
validate = ajv.compile(cdfJsonSchema);
|
|
1014
|
+
TOKEN_TYPE_SET = new Set(DESIGN_TOKEN_TYPES);
|
|
1015
|
+
}
|
|
1016
|
+
});
|
|
1017
|
+
|
|
1018
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/infer-params-shape.js
|
|
1019
|
+
var init_infer_params_shape = __esm({
|
|
1020
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/infer-params-shape.js"() {
|
|
1021
|
+
"use strict";
|
|
1022
|
+
}
|
|
1023
|
+
});
|
|
1024
|
+
|
|
1025
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/read-json-file.js
|
|
1026
|
+
var init_read_json_file = __esm({
|
|
1027
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/read-json-file.js"() {
|
|
1028
|
+
"use strict";
|
|
1029
|
+
}
|
|
1030
|
+
});
|
|
1031
|
+
|
|
1032
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/extract-value.js
|
|
1033
|
+
var init_extract_value = __esm({
|
|
1034
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/extract-value.js"() {
|
|
1035
|
+
"use strict";
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
|
|
1039
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/rewrite-diagnostic.js
|
|
1040
|
+
var init_rewrite_diagnostic = __esm({
|
|
1041
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/rewrite-diagnostic.js"() {
|
|
1042
|
+
"use strict";
|
|
1043
|
+
init_extract_value();
|
|
1044
|
+
init_infer_params_shape();
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
|
|
1048
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/validate-cdf-file.js
|
|
1049
|
+
var init_validate_cdf_file = __esm({
|
|
1050
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/validate-cdf-file.js"() {
|
|
1051
|
+
"use strict";
|
|
1052
|
+
init_validate();
|
|
1053
|
+
init_infer_params_shape();
|
|
1054
|
+
init_read_json_file();
|
|
1055
|
+
init_rewrite_diagnostic();
|
|
1056
|
+
}
|
|
1057
|
+
});
|
|
1058
|
+
|
|
1059
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/helpers/walk-dtcg.js
|
|
1060
|
+
var init_walk_dtcg = __esm({
|
|
1061
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/helpers/walk-dtcg.js"() {
|
|
1062
|
+
"use strict";
|
|
1063
|
+
init_token_types();
|
|
1064
|
+
}
|
|
1065
|
+
});
|
|
1066
|
+
|
|
1067
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/validate-dtcg-token-file.js
|
|
1068
|
+
var init_validate_dtcg_token_file = __esm({
|
|
1069
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/validate-dtcg-token-file.js"() {
|
|
1070
|
+
"use strict";
|
|
1071
|
+
init_read_json_file();
|
|
1072
|
+
init_walk_dtcg();
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/format-diagnostics.js
|
|
1077
|
+
var init_format_diagnostics = __esm({
|
|
1078
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/format-diagnostics.js"() {
|
|
1079
|
+
"use strict";
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
|
|
1083
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/extract-tsx-components.js
|
|
1084
|
+
import { Node, Project, SyntaxKind } from "ts-morph";
|
|
1085
|
+
import ts from "typescript";
|
|
1086
|
+
var init_extract_tsx_components = __esm({
|
|
1087
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/extract-tsx-components.js"() {
|
|
1088
|
+
"use strict";
|
|
1089
|
+
}
|
|
1090
|
+
});
|
|
1091
|
+
|
|
1092
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/file-extraction-workers.js
|
|
1093
|
+
var init_file_extraction_workers = __esm({
|
|
1094
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/file-extraction-workers.js"() {
|
|
1095
|
+
"use strict";
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
|
|
1099
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/stencil/extract-stencil-components.js
|
|
1100
|
+
import { Project as Project2, Node as Node2, SyntaxKind as SyntaxKind2 } from "ts-morph";
|
|
1101
|
+
var init_extract_stencil_components = __esm({
|
|
1102
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/stencil/extract-stencil-components.js"() {
|
|
1103
|
+
"use strict";
|
|
1104
|
+
init_extract_tsx_components();
|
|
1105
|
+
init_file_extraction_workers();
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
|
|
1109
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/slot-detection.js
|
|
1110
|
+
var init_slot_detection = __esm({
|
|
1111
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/slot-detection.js"() {
|
|
1112
|
+
"use strict";
|
|
1113
|
+
}
|
|
1114
|
+
});
|
|
1115
|
+
|
|
1116
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/allowed-components-context.js
|
|
1117
|
+
var init_allowed_components_context = __esm({
|
|
1118
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/allowed-components-context.js"() {
|
|
1119
|
+
"use strict";
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
|
|
1123
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/slot-allowed-components.js
|
|
1124
|
+
var init_slot_allowed_components = __esm({
|
|
1125
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/slot-allowed-components.js"() {
|
|
1126
|
+
"use strict";
|
|
1127
|
+
init_allowed_components_context();
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
|
|
1131
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/source-line-metadata.js
|
|
1132
|
+
var init_source_line_metadata = __esm({
|
|
1133
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/source-line-metadata.js"() {
|
|
1134
|
+
"use strict";
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
|
|
1138
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/structural-slot-evidence.js
|
|
1139
|
+
import { Node as Node3, SyntaxKind as SyntaxKind3 } from "ts-morph";
|
|
1140
|
+
var init_structural_slot_evidence = __esm({
|
|
1141
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/structural-slot-evidence.js"() {
|
|
1142
|
+
"use strict";
|
|
1143
|
+
init_slot_allowed_components();
|
|
1144
|
+
init_extract_tsx_components();
|
|
1145
|
+
}
|
|
1146
|
+
});
|
|
1147
|
+
|
|
1148
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/extract-react-components.js
|
|
1149
|
+
import { Node as Node4, SyntaxKind as SyntaxKind4 } from "ts-morph";
|
|
1150
|
+
function createTextControlSurface(onChangeType, specificProps) {
|
|
1151
|
+
return [
|
|
1152
|
+
{ name: "autoComplete", type: "string", required: false },
|
|
1153
|
+
...specificProps,
|
|
1154
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1155
|
+
{ name: "name", type: "string", required: false },
|
|
1156
|
+
{ name: "onChange", type: onChangeType, required: false },
|
|
1157
|
+
{ name: "placeholder", type: "string", required: false },
|
|
1158
|
+
{ name: "readOnly", type: "boolean", required: false },
|
|
1159
|
+
{ name: "required", type: "boolean", required: false },
|
|
1160
|
+
{
|
|
1161
|
+
name: "value",
|
|
1162
|
+
type: "string | number | readonly string[]",
|
|
1163
|
+
required: false
|
|
1164
|
+
}
|
|
1165
|
+
];
|
|
1166
|
+
}
|
|
1167
|
+
var DOM_ATTRIBUTE_PROP_SURFACES;
|
|
1168
|
+
var init_extract_react_components = __esm({
|
|
1169
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/extract-react-components.js"() {
|
|
1170
|
+
"use strict";
|
|
1171
|
+
init_extract_tsx_components();
|
|
1172
|
+
init_slot_detection();
|
|
1173
|
+
init_slot_allowed_components();
|
|
1174
|
+
init_source_line_metadata();
|
|
1175
|
+
init_structural_slot_evidence();
|
|
1176
|
+
DOM_ATTRIBUTE_PROP_SURFACES = {
|
|
1177
|
+
HTMLProps: [],
|
|
1178
|
+
HTMLAttributes: [
|
|
1179
|
+
{ name: "className", type: "string", required: false },
|
|
1180
|
+
{ name: "hidden", type: "boolean", required: false },
|
|
1181
|
+
{ name: "id", type: "string", required: false },
|
|
1182
|
+
{
|
|
1183
|
+
name: "onClick",
|
|
1184
|
+
type: "MouseEventHandler<HTMLElement>",
|
|
1185
|
+
required: false
|
|
1186
|
+
},
|
|
1187
|
+
{ name: "style", type: "CSSProperties", required: false },
|
|
1188
|
+
{ name: "tabIndex", type: "number", required: false },
|
|
1189
|
+
{ name: "title", type: "string", required: false }
|
|
1190
|
+
],
|
|
1191
|
+
ImgHTMLAttributes: [
|
|
1192
|
+
{ name: "alt", type: "string", required: false },
|
|
1193
|
+
{ name: "crossOrigin", type: "string", required: false },
|
|
1194
|
+
{ name: "height", type: "number | string", required: false },
|
|
1195
|
+
{
|
|
1196
|
+
name: "loading",
|
|
1197
|
+
type: "string",
|
|
1198
|
+
required: false,
|
|
1199
|
+
allowedValues: ["eager", "lazy"]
|
|
1200
|
+
},
|
|
1201
|
+
{ name: "sizes", type: "string", required: false },
|
|
1202
|
+
{ name: "src", type: "string", required: false },
|
|
1203
|
+
{ name: "srcSet", type: "string", required: false },
|
|
1204
|
+
{ name: "width", type: "number | string", required: false }
|
|
1205
|
+
],
|
|
1206
|
+
LiHTMLAttributes: [],
|
|
1207
|
+
AnchorHTMLAttributes: [
|
|
1208
|
+
{ name: "download", type: "boolean | string", required: false },
|
|
1209
|
+
{ name: "href", type: "string", required: false },
|
|
1210
|
+
{ name: "hrefLang", type: "string", required: false },
|
|
1211
|
+
{ name: "referrerPolicy", type: "string", required: false },
|
|
1212
|
+
{ name: "rel", type: "string", required: false },
|
|
1213
|
+
{
|
|
1214
|
+
name: "target",
|
|
1215
|
+
type: "string",
|
|
1216
|
+
required: false,
|
|
1217
|
+
allowedValues: ["_blank", "_parent", "_self", "_top"]
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
1220
|
+
ButtonHTMLAttributes: [
|
|
1221
|
+
{ name: "autoFocus", type: "boolean", required: false },
|
|
1222
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1223
|
+
{ name: "form", type: "string", required: false },
|
|
1224
|
+
{ name: "formAction", type: "string", required: false },
|
|
1225
|
+
{ name: "formMethod", type: "string", required: false },
|
|
1226
|
+
{ name: "formNoValidate", type: "boolean", required: false },
|
|
1227
|
+
{ name: "formTarget", type: "string", required: false },
|
|
1228
|
+
{ name: "name", type: "string", required: false },
|
|
1229
|
+
{
|
|
1230
|
+
name: "type",
|
|
1231
|
+
type: "string",
|
|
1232
|
+
required: false,
|
|
1233
|
+
allowedValues: ["button", "reset", "submit"]
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
name: "value",
|
|
1237
|
+
type: "string | number | readonly string[]",
|
|
1238
|
+
required: false
|
|
1239
|
+
}
|
|
1240
|
+
],
|
|
1241
|
+
InputHTMLAttributes: createTextControlSurface("ChangeEventHandler<HTMLInputElement>", [
|
|
1242
|
+
{ name: "checked", type: "boolean", required: false },
|
|
1243
|
+
{ name: "max", type: "number | string", required: false },
|
|
1244
|
+
{ name: "maxLength", type: "number", required: false },
|
|
1245
|
+
{ name: "min", type: "number | string", required: false },
|
|
1246
|
+
{ name: "minLength", type: "number", required: false },
|
|
1247
|
+
{ name: "type", type: "string", required: false }
|
|
1248
|
+
]),
|
|
1249
|
+
FieldsetHTMLAttributes: [
|
|
1250
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1251
|
+
{ name: "form", type: "string", required: false },
|
|
1252
|
+
{ name: "name", type: "string", required: false }
|
|
1253
|
+
],
|
|
1254
|
+
LabelHTMLAttributes: [
|
|
1255
|
+
{ name: "form", type: "string", required: false },
|
|
1256
|
+
{ name: "htmlFor", type: "string", required: false }
|
|
1257
|
+
],
|
|
1258
|
+
SelectHTMLAttributes: [
|
|
1259
|
+
{ name: "autoComplete", type: "string", required: false },
|
|
1260
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1261
|
+
{ name: "form", type: "string", required: false },
|
|
1262
|
+
{ name: "multiple", type: "boolean", required: false },
|
|
1263
|
+
{ name: "name", type: "string", required: false },
|
|
1264
|
+
{
|
|
1265
|
+
name: "onChange",
|
|
1266
|
+
type: "ChangeEventHandler<HTMLSelectElement>",
|
|
1267
|
+
required: false
|
|
1268
|
+
},
|
|
1269
|
+
{ name: "required", type: "boolean", required: false },
|
|
1270
|
+
{ name: "size", type: "number", required: false },
|
|
1271
|
+
{
|
|
1272
|
+
name: "value",
|
|
1273
|
+
type: "string | number | readonly string[]",
|
|
1274
|
+
required: false
|
|
1275
|
+
}
|
|
1276
|
+
],
|
|
1277
|
+
SVGAttributes: [
|
|
1278
|
+
{
|
|
1279
|
+
name: "focusable",
|
|
1280
|
+
type: 'boolean | "auto"',
|
|
1281
|
+
required: false,
|
|
1282
|
+
allowedValues: ["auto"]
|
|
1283
|
+
},
|
|
1284
|
+
{ name: "height", type: "number | string", required: false },
|
|
1285
|
+
{ name: "viewBox", type: "string", required: false },
|
|
1286
|
+
{ name: "width", type: "number | string", required: false }
|
|
1287
|
+
],
|
|
1288
|
+
SVGProps: [],
|
|
1289
|
+
TextareaHTMLAttributes: createTextControlSurface("ChangeEventHandler<HTMLTextAreaElement>", [
|
|
1290
|
+
{ name: "cols", type: "number", required: false },
|
|
1291
|
+
{ name: "rows", type: "number", required: false },
|
|
1292
|
+
{ name: "wrap", type: "string", required: false }
|
|
1293
|
+
]),
|
|
1294
|
+
TdHTMLAttributes: [
|
|
1295
|
+
{
|
|
1296
|
+
name: "align",
|
|
1297
|
+
type: "string",
|
|
1298
|
+
required: false,
|
|
1299
|
+
allowedValues: ["center", "char", "justify", "left", "right"]
|
|
1300
|
+
},
|
|
1301
|
+
{ name: "colSpan", type: "number", required: false },
|
|
1302
|
+
{ name: "headers", type: "string", required: false },
|
|
1303
|
+
{ name: "rowSpan", type: "number", required: false },
|
|
1304
|
+
{ name: "scope", type: "string", required: false }
|
|
1305
|
+
]
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
});
|
|
1309
|
+
|
|
1310
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue-tsx/extract-vue-tsx-components.js
|
|
1311
|
+
import { Node as Node5, SyntaxKind as SyntaxKind5 } from "ts-morph";
|
|
1312
|
+
var init_extract_vue_tsx_components = __esm({
|
|
1313
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue-tsx/extract-vue-tsx-components.js"() {
|
|
1314
|
+
"use strict";
|
|
1315
|
+
init_extract_tsx_components();
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1318
|
+
|
|
1319
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-local-module.js
|
|
1320
|
+
var init_resolve_local_module = __esm({
|
|
1321
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-local-module.js"() {
|
|
1322
|
+
"use strict";
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
|
|
1326
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-type-property.js
|
|
1327
|
+
var init_resolve_type_property = __esm({
|
|
1328
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-type-property.js"() {
|
|
1329
|
+
"use strict";
|
|
1330
|
+
}
|
|
1331
|
+
});
|
|
1332
|
+
|
|
1333
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue/extract-vue-components.js
|
|
1334
|
+
import { parse as parseSFC } from "@vue/compiler-sfc";
|
|
1335
|
+
import { Project as Project3, Node as Node6 } from "ts-morph";
|
|
1336
|
+
var init_extract_vue_components = __esm({
|
|
1337
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue/extract-vue-components.js"() {
|
|
1338
|
+
"use strict";
|
|
1339
|
+
init_file_extraction_workers();
|
|
1340
|
+
init_resolve_local_module();
|
|
1341
|
+
init_resolve_type_property();
|
|
1342
|
+
}
|
|
1343
|
+
});
|
|
1344
|
+
|
|
1345
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/astro/extract-astro-components.js
|
|
1346
|
+
import { Project as Project4, Node as Node7 } from "ts-morph";
|
|
1347
|
+
var init_extract_astro_components = __esm({
|
|
1348
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/astro/extract-astro-components.js"() {
|
|
1349
|
+
"use strict";
|
|
1350
|
+
init_file_extraction_workers();
|
|
1351
|
+
init_resolve_type_property();
|
|
1352
|
+
init_source_line_metadata();
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
|
|
1356
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/web-components/extract-web-components.js
|
|
1357
|
+
import { Project as Project5, Node as Node8, SyntaxKind as SyntaxKind6 } from "ts-morph";
|
|
1358
|
+
var init_extract_web_components = __esm({
|
|
1359
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/web-components/extract-web-components.js"() {
|
|
1360
|
+
"use strict";
|
|
1361
|
+
init_file_extraction_workers();
|
|
1362
|
+
init_extract_tsx_components();
|
|
1363
|
+
}
|
|
1364
|
+
});
|
|
1365
|
+
|
|
1366
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/scoring.js
|
|
1367
|
+
var init_scoring = __esm({
|
|
1368
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/scoring.js"() {
|
|
1369
|
+
"use strict";
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
|
|
1373
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/svelte/extract-svelte-components.js
|
|
1374
|
+
import { parse as parseSvelte } from "svelte/compiler";
|
|
1375
|
+
import { Project as Project6, Node as Node9, ScriptTarget, ModuleKind, ts as ts2 } from "ts-morph";
|
|
1376
|
+
var init_extract_svelte_components = __esm({
|
|
1377
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/svelte/extract-svelte-components.js"() {
|
|
1378
|
+
"use strict";
|
|
1379
|
+
init_scoring();
|
|
1380
|
+
init_slot_allowed_components();
|
|
1381
|
+
init_file_extraction_workers();
|
|
1382
|
+
init_resolve_local_module();
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
|
|
1386
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/services/run-extraction-service.js
|
|
1387
|
+
var init_run_extraction_service = __esm({
|
|
1388
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/services/run-extraction-service.js"() {
|
|
1389
|
+
"use strict";
|
|
1390
|
+
init_extract_stencil_components();
|
|
1391
|
+
init_extract_react_components();
|
|
1392
|
+
init_extract_vue_tsx_components();
|
|
1393
|
+
init_extract_vue_components();
|
|
1394
|
+
init_extract_astro_components();
|
|
1395
|
+
init_extract_web_components();
|
|
1396
|
+
init_extract_svelte_components();
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
|
|
1400
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/controller/extract-components-endpoint.js
|
|
1401
|
+
var init_extract_components_endpoint = __esm({
|
|
1402
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/controller/extract-components-endpoint.js"() {
|
|
1403
|
+
"use strict";
|
|
1404
|
+
init_run_extraction_service();
|
|
1405
|
+
}
|
|
1406
|
+
});
|
|
1407
|
+
|
|
1408
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-name.js
|
|
1409
|
+
var init_agent_name = __esm({
|
|
1410
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-name.js"() {
|
|
1411
|
+
"use strict";
|
|
1412
|
+
}
|
|
1413
|
+
});
|
|
1414
|
+
|
|
1415
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-run.js
|
|
1416
|
+
var init_agent_run = __esm({
|
|
1417
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-run.js"() {
|
|
1418
|
+
"use strict";
|
|
1419
|
+
}
|
|
1420
|
+
});
|
|
1421
|
+
|
|
1422
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/invoker.js
|
|
1423
|
+
var init_invoker = __esm({
|
|
1424
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/invoker.js"() {
|
|
1425
|
+
"use strict";
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
|
|
1429
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/prompts.js
|
|
1430
|
+
var init_prompts = __esm({
|
|
1431
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/prompts.js"() {
|
|
1432
|
+
"use strict";
|
|
1433
|
+
}
|
|
1434
|
+
});
|
|
1435
|
+
|
|
1436
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/tool-calls.js
|
|
1437
|
+
var init_tool_calls = __esm({
|
|
1438
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/tool-calls.js"() {
|
|
1439
|
+
"use strict";
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
|
|
1443
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/index.js
|
|
1444
|
+
var init_types = __esm({
|
|
1445
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/index.js"() {
|
|
1446
|
+
"use strict";
|
|
1447
|
+
init_agent_name();
|
|
1448
|
+
init_agent_run();
|
|
1449
|
+
init_invoker();
|
|
1450
|
+
init_prompts();
|
|
1451
|
+
init_tool_calls();
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
|
|
1455
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/models.js
|
|
1456
|
+
var init_models = __esm({
|
|
1457
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/models.js"() {
|
|
1458
|
+
"use strict";
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
|
|
1462
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/is-agent-name.js
|
|
1463
|
+
var init_is_agent_name = __esm({
|
|
1464
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/is-agent-name.js"() {
|
|
1465
|
+
"use strict";
|
|
1466
|
+
init_agent_name();
|
|
1467
|
+
}
|
|
1468
|
+
});
|
|
1469
|
+
|
|
1470
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/binaries.js
|
|
1471
|
+
var init_binaries = __esm({
|
|
1472
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/binaries.js"() {
|
|
1473
|
+
"use strict";
|
|
1474
|
+
}
|
|
1475
|
+
});
|
|
1476
|
+
|
|
1477
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-binary.js
|
|
1478
|
+
var init_resolve_binary = __esm({
|
|
1479
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-binary.js"() {
|
|
1480
|
+
"use strict";
|
|
1481
|
+
init_binaries();
|
|
1482
|
+
}
|
|
1483
|
+
});
|
|
1484
|
+
|
|
1485
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/bedrock.js
|
|
1486
|
+
var init_bedrock = __esm({
|
|
1487
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/bedrock.js"() {
|
|
1488
|
+
"use strict";
|
|
1489
|
+
}
|
|
1490
|
+
});
|
|
1491
|
+
|
|
1492
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/with-bedrock-provider-prefix.js
|
|
1493
|
+
var init_with_bedrock_provider_prefix = __esm({
|
|
1494
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/with-bedrock-provider-prefix.js"() {
|
|
1495
|
+
"use strict";
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1498
|
+
|
|
1499
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent-model.js
|
|
1500
|
+
var init_resolve_agent_model = __esm({
|
|
1501
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent-model.js"() {
|
|
1502
|
+
"use strict";
|
|
1503
|
+
init_bedrock();
|
|
1504
|
+
init_models();
|
|
1505
|
+
init_with_bedrock_provider_prefix();
|
|
1506
|
+
}
|
|
1507
|
+
});
|
|
1508
|
+
|
|
1509
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/agent-supports-bedrock.js
|
|
1510
|
+
var init_agent_supports_bedrock = __esm({
|
|
1511
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/agent-supports-bedrock.js"() {
|
|
1512
|
+
"use strict";
|
|
1513
|
+
init_bedrock();
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
|
|
1517
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-claude-args.js
|
|
1518
|
+
var init_build_claude_args = __esm({
|
|
1519
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-claude-args.js"() {
|
|
1520
|
+
"use strict";
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
|
|
1524
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/codex-bedrock-config-args.js
|
|
1525
|
+
var init_codex_bedrock_config_args = __esm({
|
|
1526
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/codex-bedrock-config-args.js"() {
|
|
1527
|
+
"use strict";
|
|
1528
|
+
init_bedrock();
|
|
1529
|
+
}
|
|
1530
|
+
});
|
|
1531
|
+
|
|
1532
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-codex-args.js
|
|
1533
|
+
var init_build_codex_args = __esm({
|
|
1534
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-codex-args.js"() {
|
|
1535
|
+
"use strict";
|
|
1536
|
+
init_codex_bedrock_config_args();
|
|
1537
|
+
}
|
|
1538
|
+
});
|
|
1539
|
+
|
|
1540
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-copilot-args.js
|
|
1541
|
+
var init_build_copilot_args = __esm({
|
|
1542
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-copilot-args.js"() {
|
|
1543
|
+
"use strict";
|
|
1544
|
+
init_resolve_agent_model();
|
|
1545
|
+
}
|
|
1546
|
+
});
|
|
1547
|
+
|
|
1548
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-cursor-args.js
|
|
1549
|
+
var init_build_cursor_args = __esm({
|
|
1550
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-cursor-args.js"() {
|
|
1551
|
+
"use strict";
|
|
1552
|
+
}
|
|
1553
|
+
});
|
|
1554
|
+
|
|
1555
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-opencode-args.js
|
|
1556
|
+
var init_build_opencode_args = __esm({
|
|
1557
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-opencode-args.js"() {
|
|
1558
|
+
"use strict";
|
|
1559
|
+
}
|
|
1560
|
+
});
|
|
1561
|
+
|
|
1562
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-agent-args.js
|
|
1563
|
+
var init_build_agent_args = __esm({
|
|
1564
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-agent-args.js"() {
|
|
1565
|
+
"use strict";
|
|
1566
|
+
init_build_claude_args();
|
|
1567
|
+
init_build_codex_args();
|
|
1568
|
+
init_build_copilot_args();
|
|
1569
|
+
init_build_cursor_args();
|
|
1570
|
+
init_build_opencode_args();
|
|
1571
|
+
init_resolve_agent_model();
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
|
|
1575
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/describe-agent-failure.js
|
|
1576
|
+
var init_describe_agent_failure = __esm({
|
|
1577
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/describe-agent-failure.js"() {
|
|
1578
|
+
"use strict";
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
|
|
1582
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/extract-sentinel-output.js
|
|
1583
|
+
var init_extract_sentinel_output = __esm({
|
|
1584
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/extract-sentinel-output.js"() {
|
|
1585
|
+
"use strict";
|
|
1586
|
+
}
|
|
1587
|
+
});
|
|
1588
|
+
|
|
1589
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/format-generate-progress-line.js
|
|
1590
|
+
var init_format_generate_progress_line = __esm({
|
|
1591
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/format-generate-progress-line.js"() {
|
|
1592
|
+
"use strict";
|
|
1593
|
+
}
|
|
1594
|
+
});
|
|
1595
|
+
|
|
1596
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/parse-agent-model.js
|
|
1597
|
+
var init_parse_agent_model = __esm({
|
|
1598
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/parse-agent-model.js"() {
|
|
1599
|
+
"use strict";
|
|
1600
|
+
}
|
|
1601
|
+
});
|
|
1602
|
+
|
|
1603
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent.js
|
|
1604
|
+
var init_resolve_agent = __esm({
|
|
1605
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent.js"() {
|
|
1606
|
+
"use strict";
|
|
1607
|
+
}
|
|
1608
|
+
});
|
|
1609
|
+
|
|
1610
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-model.js
|
|
1611
|
+
var init_resolve_model = __esm({
|
|
1612
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-model.js"() {
|
|
1613
|
+
"use strict";
|
|
1614
|
+
}
|
|
1615
|
+
});
|
|
1616
|
+
|
|
1617
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/looks-like-path.js
|
|
1618
|
+
var init_looks_like_path = __esm({
|
|
1619
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/looks-like-path.js"() {
|
|
1620
|
+
"use strict";
|
|
1621
|
+
}
|
|
1622
|
+
});
|
|
1623
|
+
|
|
1624
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/parse-prompt-overrides.js
|
|
1625
|
+
var init_parse_prompt_overrides = __esm({
|
|
1626
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/parse-prompt-overrides.js"() {
|
|
1627
|
+
"use strict";
|
|
1628
|
+
init_looks_like_path();
|
|
1629
|
+
}
|
|
1630
|
+
});
|
|
1631
|
+
|
|
1632
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/resolve-prompt-override.js
|
|
1633
|
+
var init_resolve_prompt_override = __esm({
|
|
1634
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/resolve-prompt-override.js"() {
|
|
1635
|
+
"use strict";
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
|
|
1639
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/build-user-agent.js
|
|
1640
|
+
var init_build_user_agent = __esm({
|
|
1641
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/build-user-agent.js"() {
|
|
1642
|
+
"use strict";
|
|
1643
|
+
}
|
|
1644
|
+
});
|
|
1645
|
+
|
|
1646
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/tool-names.js
|
|
1647
|
+
var init_tool_names = __esm({
|
|
1648
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/tool-names.js"() {
|
|
1649
|
+
"use strict";
|
|
1650
|
+
}
|
|
1651
|
+
});
|
|
1652
|
+
|
|
1653
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/find-json-object-end.js
|
|
1654
|
+
var init_find_json_object_end = __esm({
|
|
1655
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/find-json-object-end.js"() {
|
|
1656
|
+
"use strict";
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
|
|
1660
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/read-tool-call-objects.js
|
|
1661
|
+
var init_read_tool_call_objects = __esm({
|
|
1662
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/read-tool-call-objects.js"() {
|
|
1663
|
+
"use strict";
|
|
1664
|
+
init_find_json_object_end();
|
|
1665
|
+
}
|
|
1666
|
+
});
|
|
1667
|
+
|
|
1668
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-select-tool-calls.js
|
|
1669
|
+
var init_parse_select_tool_calls = __esm({
|
|
1670
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-select-tool-calls.js"() {
|
|
1671
|
+
"use strict";
|
|
1672
|
+
init_tool_names();
|
|
1673
|
+
init_read_tool_call_objects();
|
|
1674
|
+
}
|
|
1675
|
+
});
|
|
1676
|
+
|
|
1677
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-tool-calls.js
|
|
1678
|
+
var init_parse_tool_calls = __esm({
|
|
1679
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-tool-calls.js"() {
|
|
1680
|
+
"use strict";
|
|
1681
|
+
init_tool_names();
|
|
1682
|
+
init_read_tool_call_objects();
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
|
|
1686
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-token-tool-calls.js
|
|
1687
|
+
var init_parse_token_tool_calls = __esm({
|
|
1688
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-token-tool-calls.js"() {
|
|
1689
|
+
"use strict";
|
|
1690
|
+
init_tool_names();
|
|
1691
|
+
init_read_tool_call_objects();
|
|
1692
|
+
}
|
|
1693
|
+
});
|
|
1694
|
+
|
|
1695
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/is-string-array.js
|
|
1696
|
+
var init_is_string_array = __esm({
|
|
1697
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/is-string-array.js"() {
|
|
1698
|
+
"use strict";
|
|
1699
|
+
}
|
|
1700
|
+
});
|
|
1701
|
+
|
|
1702
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-map-token-prop-tool-calls.js
|
|
1703
|
+
var init_parse_map_token_prop_tool_calls = __esm({
|
|
1704
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-map-token-prop-tool-calls.js"() {
|
|
1705
|
+
"use strict";
|
|
1706
|
+
init_is_string_array();
|
|
1707
|
+
init_read_tool_call_objects();
|
|
1708
|
+
}
|
|
1709
|
+
});
|
|
1710
|
+
|
|
1711
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/services/run-agent.js
|
|
1712
|
+
var init_run_agent = __esm({
|
|
1713
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/services/run-agent.js"() {
|
|
1714
|
+
"use strict";
|
|
1715
|
+
init_bedrock();
|
|
1716
|
+
init_build_agent_args();
|
|
1717
|
+
init_resolve_binary();
|
|
1718
|
+
}
|
|
1719
|
+
});
|
|
1720
|
+
|
|
1721
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/services/check-agent-auth.js
|
|
1722
|
+
var init_check_agent_auth = __esm({
|
|
1723
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/services/check-agent-auth.js"() {
|
|
1724
|
+
"use strict";
|
|
1725
|
+
init_resolve_binary();
|
|
1726
|
+
}
|
|
1727
|
+
});
|
|
1728
|
+
|
|
1729
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/colors.js
|
|
1730
|
+
function detectColorSupport() {
|
|
1731
|
+
if (process.env["NO_COLOR"] !== void 0)
|
|
1732
|
+
return false;
|
|
1733
|
+
if (process.env["FORCE_COLOR"] !== void 0)
|
|
1734
|
+
return true;
|
|
1735
|
+
return process.stderr.isTTY === true;
|
|
1736
|
+
}
|
|
1737
|
+
var colorsEnabled, wrap, ansi;
|
|
1738
|
+
var init_colors = __esm({
|
|
1739
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/colors.js"() {
|
|
1740
|
+
"use strict";
|
|
1741
|
+
colorsEnabled = detectColorSupport();
|
|
1742
|
+
wrap = (code) => (text) => colorsEnabled ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
1743
|
+
ansi = {
|
|
1744
|
+
green: wrap(32),
|
|
1745
|
+
red: wrap(31),
|
|
1746
|
+
cyan: wrap(36),
|
|
1747
|
+
yellow: wrap(33),
|
|
1748
|
+
dim: wrap(2),
|
|
1749
|
+
bold: wrap(1)
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
});
|
|
1753
|
+
|
|
1754
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/format-tool-call.js
|
|
1755
|
+
var init_format_tool_call = __esm({
|
|
1756
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/format-tool-call.js"() {
|
|
1757
|
+
"use strict";
|
|
1758
|
+
init_colors();
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
|
|
1762
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/output-formatter.js
|
|
1763
|
+
var init_output_formatter = __esm({
|
|
1764
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/output-formatter.js"() {
|
|
1765
|
+
"use strict";
|
|
1766
|
+
init_colors();
|
|
1767
|
+
init_format_tool_call();
|
|
1768
|
+
}
|
|
1769
|
+
});
|
|
1770
|
+
|
|
1771
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/index.js
|
|
1772
|
+
var init_output_formatter2 = __esm({
|
|
1773
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/index.js"() {
|
|
1774
|
+
"use strict";
|
|
1775
|
+
init_output_formatter();
|
|
1776
|
+
init_colors();
|
|
1777
|
+
init_format_tool_call();
|
|
1778
|
+
}
|
|
1779
|
+
});
|
|
1780
|
+
|
|
1781
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/services/invoke-agent-with-output.js
|
|
1782
|
+
var init_invoke_agent_with_output = __esm({
|
|
1783
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/services/invoke-agent-with-output.js"() {
|
|
1784
|
+
"use strict";
|
|
1785
|
+
init_output_formatter2();
|
|
1786
|
+
}
|
|
1787
|
+
});
|
|
1788
|
+
|
|
1789
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/invoker/create-local-cli-agent-invoker.js
|
|
1790
|
+
var init_create_local_cli_agent_invoker = __esm({
|
|
1791
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/invoker/create-local-cli-agent-invoker.js"() {
|
|
1792
|
+
"use strict";
|
|
1793
|
+
init_check_agent_auth();
|
|
1794
|
+
init_run_agent();
|
|
1795
|
+
}
|
|
1796
|
+
});
|
|
1797
|
+
|
|
1798
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/candidate-file.js
|
|
1799
|
+
var init_candidate_file = __esm({
|
|
1800
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/candidate-file.js"() {
|
|
1801
|
+
"use strict";
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
|
|
1805
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/types.js
|
|
1806
|
+
import * as z from "zod/mini";
|
|
1807
|
+
var CDFPropertySchema, CDFSlotSchema, CDFComponentSchema, CDFTokenSchema;
|
|
1808
|
+
var init_types2 = __esm({
|
|
1809
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/types.js"() {
|
|
1810
|
+
"use strict";
|
|
1811
|
+
init_vocabularies();
|
|
1812
|
+
init_token_types();
|
|
1813
|
+
CDFPropertySchema = z.strictObject({
|
|
1814
|
+
$type: z.enum(CDF_PROPERTY_TYPES),
|
|
1815
|
+
$category: z.enum(CDF_PROPERTY_CATEGORIES),
|
|
1816
|
+
$description: z.optional(z.string()),
|
|
1817
|
+
$required: z.optional(z.boolean()),
|
|
1818
|
+
$default: z.optional(z.any()),
|
|
1819
|
+
$values: z.optional(z.array(z.string())),
|
|
1820
|
+
"$token.kind": z.optional(z.string()),
|
|
1821
|
+
"$token.allowed": z.optional(z.array(z.string()))
|
|
1822
|
+
});
|
|
1823
|
+
CDFSlotSchema = z.strictObject({
|
|
1824
|
+
$description: z.optional(z.string()),
|
|
1825
|
+
$allowedComponents: z.optional(z.array(z.string())),
|
|
1826
|
+
$required: z.optional(z.boolean())
|
|
1827
|
+
});
|
|
1828
|
+
CDFComponentSchema = z.strictObject({
|
|
1829
|
+
$type: z.literal("component"),
|
|
1830
|
+
$description: z.optional(z.string()),
|
|
1831
|
+
$properties: z.record(z.string(), CDFPropertySchema),
|
|
1832
|
+
$slots: z.optional(z.record(z.string(), CDFSlotSchema))
|
|
1833
|
+
});
|
|
1834
|
+
CDFTokenSchema = z.strictObject({
|
|
1835
|
+
$type: z.enum(DESIGN_TOKEN_TYPES),
|
|
1836
|
+
$value: z.unknown(),
|
|
1837
|
+
$description: z.optional(z.string())
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1840
|
+
});
|
|
1841
|
+
|
|
1842
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/index.js
|
|
1843
|
+
var init_types3 = __esm({
|
|
1844
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/index.js"() {
|
|
1845
|
+
"use strict";
|
|
1846
|
+
init_types2();
|
|
1847
|
+
}
|
|
1848
|
+
});
|
|
1849
|
+
|
|
1850
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/index.js
|
|
1851
|
+
var init_constants = __esm({
|
|
1852
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/index.js"() {
|
|
1853
|
+
"use strict";
|
|
1854
|
+
init_schema();
|
|
1855
|
+
init_vocabularies();
|
|
1856
|
+
}
|
|
1857
|
+
});
|
|
1858
|
+
|
|
1859
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/build.js
|
|
1860
|
+
var init_build = __esm({
|
|
1861
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/build.js"() {
|
|
1862
|
+
"use strict";
|
|
1863
|
+
init_schema();
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
|
|
1867
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/index.js
|
|
1868
|
+
var init_helpers = __esm({
|
|
1869
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/index.js"() {
|
|
1870
|
+
"use strict";
|
|
1871
|
+
init_build();
|
|
1872
|
+
init_validate();
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
|
|
1876
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/index.js
|
|
1877
|
+
var init_cdf = __esm({
|
|
1878
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/index.js"() {
|
|
1879
|
+
"use strict";
|
|
1880
|
+
init_types3();
|
|
1881
|
+
init_constants();
|
|
1882
|
+
init_helpers();
|
|
1883
|
+
}
|
|
1884
|
+
});
|
|
1885
|
+
|
|
1886
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/types.js
|
|
1887
|
+
import * as z2 from "zod/mini";
|
|
1888
|
+
var DTCGTokenSchema;
|
|
1889
|
+
var init_types4 = __esm({
|
|
1890
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/types.js"() {
|
|
1891
|
+
"use strict";
|
|
1892
|
+
init_token_types();
|
|
1893
|
+
DTCGTokenSchema = z2.strictObject({
|
|
1894
|
+
path: z2.string(),
|
|
1895
|
+
$type: z2.enum(DESIGN_TOKEN_TYPES),
|
|
1896
|
+
$value: z2.unknown(),
|
|
1897
|
+
$description: z2.optional(z2.string())
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1901
|
+
|
|
1902
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/index.js
|
|
1903
|
+
var init_types5 = __esm({
|
|
1904
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/index.js"() {
|
|
1905
|
+
"use strict";
|
|
1906
|
+
init_types4();
|
|
1907
|
+
}
|
|
1908
|
+
});
|
|
1909
|
+
|
|
1910
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/index.js
|
|
1911
|
+
var init_constants2 = __esm({
|
|
1912
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/index.js"() {
|
|
1913
|
+
"use strict";
|
|
1914
|
+
init_token_types();
|
|
1915
|
+
}
|
|
1916
|
+
});
|
|
1917
|
+
|
|
1918
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/flatten.js
|
|
1919
|
+
var init_flatten = __esm({
|
|
1920
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/flatten.js"() {
|
|
1921
|
+
"use strict";
|
|
1922
|
+
}
|
|
1923
|
+
});
|
|
1924
|
+
|
|
1925
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/validate.js
|
|
1926
|
+
var TOKEN_TYPE_SET2;
|
|
1927
|
+
var init_validate2 = __esm({
|
|
1928
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/validate.js"() {
|
|
1929
|
+
"use strict";
|
|
1930
|
+
init_token_types();
|
|
1931
|
+
init_flatten();
|
|
1932
|
+
TOKEN_TYPE_SET2 = new Set(DESIGN_TOKEN_TYPES);
|
|
1933
|
+
}
|
|
1934
|
+
});
|
|
1935
|
+
|
|
1936
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/index.js
|
|
1937
|
+
var init_helpers2 = __esm({
|
|
1938
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/index.js"() {
|
|
1939
|
+
"use strict";
|
|
1940
|
+
init_flatten();
|
|
1941
|
+
init_validate2();
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
|
|
1945
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/index.js
|
|
1946
|
+
var init_dtcg = __esm({
|
|
1947
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/index.js"() {
|
|
1948
|
+
"use strict";
|
|
1949
|
+
init_types5();
|
|
1950
|
+
init_constants2();
|
|
1951
|
+
init_helpers2();
|
|
1952
|
+
}
|
|
1953
|
+
});
|
|
1954
|
+
|
|
1955
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/apply.js
|
|
1956
|
+
var init_apply = __esm({
|
|
1957
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/apply.js"() {
|
|
1958
|
+
"use strict";
|
|
1959
|
+
}
|
|
1960
|
+
});
|
|
1961
|
+
|
|
1962
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/preview.js
|
|
1963
|
+
var init_preview = __esm({
|
|
1964
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/preview.js"() {
|
|
1965
|
+
"use strict";
|
|
1966
|
+
}
|
|
1967
|
+
});
|
|
1968
|
+
|
|
1969
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/index.js
|
|
1970
|
+
var init_types6 = __esm({
|
|
1971
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/index.js"() {
|
|
1972
|
+
"use strict";
|
|
1973
|
+
init_apply();
|
|
1974
|
+
init_preview();
|
|
1975
|
+
}
|
|
1976
|
+
});
|
|
1977
|
+
|
|
1978
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/index.js
|
|
1979
|
+
var init_sources_api = __esm({
|
|
1980
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/index.js"() {
|
|
1981
|
+
"use strict";
|
|
1982
|
+
init_types6();
|
|
1983
|
+
}
|
|
1984
|
+
});
|
|
1985
|
+
|
|
1986
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/index.js
|
|
1987
|
+
var init_shared = __esm({
|
|
1988
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/index.js"() {
|
|
1989
|
+
"use strict";
|
|
1990
|
+
init_candidate_file();
|
|
1991
|
+
init_cdf();
|
|
1992
|
+
init_dtcg();
|
|
1993
|
+
init_sources_api();
|
|
1994
|
+
}
|
|
1995
|
+
});
|
|
1996
|
+
|
|
1997
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/filter-design-token-props.js
|
|
1998
|
+
var init_filter_design_token_props = __esm({
|
|
1999
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/filter-design-token-props.js"() {
|
|
2000
|
+
"use strict";
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
|
|
2004
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/format-token-candidates.js
|
|
2005
|
+
var init_format_token_candidates = __esm({
|
|
2006
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/format-token-candidates.js"() {
|
|
2007
|
+
"use strict";
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
|
|
2011
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/infer-fence-lang.js
|
|
2012
|
+
var init_infer_fence_lang = __esm({
|
|
2013
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/infer-fence-lang.js"() {
|
|
2014
|
+
"use strict";
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
|
|
2018
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/build-input-sections.js
|
|
2019
|
+
var init_build_input_sections = __esm({
|
|
2020
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/build-input-sections.js"() {
|
|
2021
|
+
"use strict";
|
|
2022
|
+
init_shared();
|
|
2023
|
+
init_filter_design_token_props();
|
|
2024
|
+
init_format_token_candidates();
|
|
2025
|
+
init_infer_fence_lang();
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
|
|
2029
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/skill-files.js
|
|
2030
|
+
var init_skill_files = __esm({
|
|
2031
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/skill-files.js"() {
|
|
2032
|
+
"use strict";
|
|
2033
|
+
}
|
|
2034
|
+
});
|
|
2035
|
+
|
|
2036
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/resolve-skill-path.js
|
|
2037
|
+
var init_resolve_skill_path = __esm({
|
|
2038
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/resolve-skill-path.js"() {
|
|
2039
|
+
"use strict";
|
|
2040
|
+
init_skill_files();
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
|
|
2044
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/read-skill-file.js
|
|
2045
|
+
var init_read_skill_file = __esm({
|
|
2046
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/read-skill-file.js"() {
|
|
2047
|
+
"use strict";
|
|
2048
|
+
init_resolve_skill_path();
|
|
2049
|
+
}
|
|
2050
|
+
});
|
|
2051
|
+
|
|
2052
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-components-preamble.js
|
|
2053
|
+
var init_build_components_preamble = __esm({
|
|
2054
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-components-preamble.js"() {
|
|
2055
|
+
"use strict";
|
|
2056
|
+
}
|
|
2057
|
+
});
|
|
2058
|
+
|
|
2059
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-map-tokens-preamble.js
|
|
2060
|
+
var init_build_map_tokens_preamble = __esm({
|
|
2061
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-map-tokens-preamble.js"() {
|
|
2062
|
+
"use strict";
|
|
2063
|
+
}
|
|
2064
|
+
});
|
|
2065
|
+
|
|
2066
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-select-preamble.js
|
|
2067
|
+
var init_build_select_preamble = __esm({
|
|
2068
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-select-preamble.js"() {
|
|
2069
|
+
"use strict";
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
|
|
2073
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-tokens-preamble.js
|
|
2074
|
+
var init_build_tokens_preamble = __esm({
|
|
2075
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-tokens-preamble.js"() {
|
|
2076
|
+
"use strict";
|
|
2077
|
+
}
|
|
2078
|
+
});
|
|
2079
|
+
|
|
2080
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/build-prompt.js
|
|
2081
|
+
var init_build_prompt = __esm({
|
|
2082
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/build-prompt.js"() {
|
|
2083
|
+
"use strict";
|
|
2084
|
+
init_build_input_sections();
|
|
2085
|
+
init_read_skill_file();
|
|
2086
|
+
init_build_components_preamble();
|
|
2087
|
+
init_build_map_tokens_preamble();
|
|
2088
|
+
init_build_select_preamble();
|
|
2089
|
+
init_build_tokens_preamble();
|
|
2090
|
+
}
|
|
2091
|
+
});
|
|
2092
|
+
|
|
2093
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/format-custom-prompt-banner.js
|
|
2094
|
+
var init_format_custom_prompt_banner = __esm({
|
|
2095
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/format-custom-prompt-banner.js"() {
|
|
2096
|
+
"use strict";
|
|
2097
|
+
}
|
|
2098
|
+
});
|
|
2099
|
+
|
|
2100
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/index.js
|
|
2101
|
+
var init_agents = __esm({
|
|
2102
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/index.js"() {
|
|
2103
|
+
"use strict";
|
|
2104
|
+
init_types();
|
|
2105
|
+
init_models();
|
|
2106
|
+
init_is_agent_name();
|
|
2107
|
+
init_resolve_binary();
|
|
2108
|
+
init_resolve_agent_model();
|
|
2109
|
+
init_agent_supports_bedrock();
|
|
2110
|
+
init_build_agent_args();
|
|
2111
|
+
init_describe_agent_failure();
|
|
2112
|
+
init_extract_sentinel_output();
|
|
2113
|
+
init_format_generate_progress_line();
|
|
2114
|
+
init_parse_agent_model();
|
|
2115
|
+
init_resolve_agent();
|
|
2116
|
+
init_resolve_model();
|
|
2117
|
+
init_looks_like_path();
|
|
2118
|
+
init_parse_prompt_overrides();
|
|
2119
|
+
init_resolve_prompt_override();
|
|
2120
|
+
init_build_user_agent();
|
|
2121
|
+
init_parse_select_tool_calls();
|
|
2122
|
+
init_parse_tool_calls();
|
|
2123
|
+
init_parse_token_tool_calls();
|
|
2124
|
+
init_parse_map_token_prop_tool_calls();
|
|
2125
|
+
init_parse_map_token_prop_tool_calls();
|
|
2126
|
+
init_run_agent();
|
|
2127
|
+
init_check_agent_auth();
|
|
2128
|
+
init_invoke_agent_with_output();
|
|
2129
|
+
init_output_formatter2();
|
|
2130
|
+
init_create_local_cli_agent_invoker();
|
|
2131
|
+
init_build_prompt();
|
|
2132
|
+
init_resolve_skill_path();
|
|
2133
|
+
init_format_custom_prompt_banner();
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
|
|
2137
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/agent.js
|
|
2138
|
+
var init_agent = __esm({
|
|
2139
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/agent.js"() {
|
|
2140
|
+
"use strict";
|
|
2141
|
+
}
|
|
2142
|
+
});
|
|
2143
|
+
|
|
2144
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/index.js
|
|
2145
|
+
var init_constants3 = __esm({
|
|
2146
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/index.js"() {
|
|
2147
|
+
"use strict";
|
|
2148
|
+
init_agent();
|
|
2149
|
+
}
|
|
2150
|
+
});
|
|
2151
|
+
|
|
2152
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/merge-edges.js
|
|
2153
|
+
var init_merge_edges = __esm({
|
|
2154
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/merge-edges.js"() {
|
|
2155
|
+
"use strict";
|
|
2156
|
+
}
|
|
2157
|
+
});
|
|
2158
|
+
|
|
2159
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/parse-map-edges.js
|
|
2160
|
+
var init_parse_map_edges = __esm({
|
|
2161
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/parse-map-edges.js"() {
|
|
2162
|
+
"use strict";
|
|
2163
|
+
}
|
|
2164
|
+
});
|
|
2165
|
+
|
|
2166
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/apply-mapping.js
|
|
2167
|
+
var init_apply_mapping = __esm({
|
|
2168
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/apply-mapping.js"() {
|
|
2169
|
+
"use strict";
|
|
2170
|
+
}
|
|
2171
|
+
});
|
|
2172
|
+
|
|
2173
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/prompt/prompt-loader.js
|
|
2174
|
+
var init_prompt_loader = __esm({
|
|
2175
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/prompt/prompt-loader.js"() {
|
|
2176
|
+
"use strict";
|
|
2177
|
+
}
|
|
2178
|
+
});
|
|
2179
|
+
|
|
2180
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-mapping.js
|
|
2181
|
+
var init_resolve_mapping = __esm({
|
|
2182
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-mapping.js"() {
|
|
2183
|
+
"use strict";
|
|
2184
|
+
init_merge_edges();
|
|
2185
|
+
init_parse_map_edges();
|
|
2186
|
+
init_apply_mapping();
|
|
2187
|
+
init_prompt_loader();
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
|
|
2191
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/candidate-files.js
|
|
2192
|
+
var init_candidate_files = __esm({
|
|
2193
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/candidate-files.js"() {
|
|
2194
|
+
"use strict";
|
|
2195
|
+
}
|
|
2196
|
+
});
|
|
2197
|
+
|
|
2198
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/index.js
|
|
2199
|
+
var init_constants4 = __esm({
|
|
2200
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/index.js"() {
|
|
2201
|
+
"use strict";
|
|
2202
|
+
init_candidate_files();
|
|
2203
|
+
}
|
|
2204
|
+
});
|
|
2205
|
+
|
|
2206
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/candidate-files.js
|
|
2207
|
+
var init_candidate_files2 = __esm({
|
|
2208
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/candidate-files.js"() {
|
|
2209
|
+
"use strict";
|
|
2210
|
+
init_constants4();
|
|
2211
|
+
}
|
|
2212
|
+
});
|
|
2213
|
+
|
|
2214
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/composition-cache-key.js
|
|
2215
|
+
var init_composition_cache_key = __esm({
|
|
2216
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/composition-cache-key.js"() {
|
|
2217
|
+
"use strict";
|
|
2218
|
+
}
|
|
2219
|
+
});
|
|
2220
|
+
|
|
2221
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/manifest-doc-evidence.js
|
|
2222
|
+
var init_manifest_doc_evidence = __esm({
|
|
2223
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/manifest-doc-evidence.js"() {
|
|
2224
|
+
"use strict";
|
|
2225
|
+
}
|
|
2226
|
+
});
|
|
2227
|
+
|
|
2228
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/services/run-composition-service.js
|
|
2229
|
+
var init_run_composition_service = __esm({
|
|
2230
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/services/run-composition-service.js"() {
|
|
2231
|
+
"use strict";
|
|
2232
|
+
init_agents();
|
|
2233
|
+
init_resolve_mapping();
|
|
2234
|
+
init_candidate_files2();
|
|
2235
|
+
init_composition_cache_key();
|
|
2236
|
+
init_manifest_doc_evidence();
|
|
2237
|
+
}
|
|
2238
|
+
});
|
|
2239
|
+
|
|
2240
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/endpoint/compose-components-endpoint.js
|
|
2241
|
+
var init_compose_components_endpoint = __esm({
|
|
2242
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/endpoint/compose-components-endpoint.js"() {
|
|
2243
|
+
"use strict";
|
|
2244
|
+
init_agents();
|
|
2245
|
+
init_constants3();
|
|
2246
|
+
init_run_composition_service();
|
|
2247
|
+
}
|
|
2248
|
+
});
|
|
2249
|
+
|
|
2250
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-composition-sources.js
|
|
2251
|
+
var init_resolve_composition_sources = __esm({
|
|
2252
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-composition-sources.js"() {
|
|
2253
|
+
"use strict";
|
|
2254
|
+
}
|
|
2255
|
+
});
|
|
2256
|
+
|
|
2257
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-component-graph.js
|
|
2258
|
+
var init_build_component_graph = __esm({
|
|
2259
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-component-graph.js"() {
|
|
2260
|
+
"use strict";
|
|
2261
|
+
}
|
|
2262
|
+
});
|
|
2263
|
+
|
|
2264
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/build-component-graph.js
|
|
2265
|
+
var init_build_component_graph2 = __esm({
|
|
2266
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/build-component-graph.js"() {
|
|
2267
|
+
"use strict";
|
|
2268
|
+
init_build_component_graph();
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
|
|
2272
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-adjacency.js
|
|
2273
|
+
var init_build_adjacency = __esm({
|
|
2274
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-adjacency.js"() {
|
|
2275
|
+
"use strict";
|
|
2276
|
+
}
|
|
2277
|
+
});
|
|
2278
|
+
|
|
2279
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/collect-self-loops.js
|
|
2280
|
+
var init_collect_self_loops = __esm({
|
|
2281
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/collect-self-loops.js"() {
|
|
2282
|
+
"use strict";
|
|
2283
|
+
}
|
|
2284
|
+
});
|
|
2285
|
+
|
|
2286
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-elementary-circuits.js
|
|
2287
|
+
var init_find_elementary_circuits = __esm({
|
|
2288
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-elementary-circuits.js"() {
|
|
2289
|
+
"use strict";
|
|
2290
|
+
}
|
|
2291
|
+
});
|
|
2292
|
+
|
|
2293
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/strongly-connected-components.js
|
|
2294
|
+
var init_strongly_connected_components = __esm({
|
|
2295
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/strongly-connected-components.js"() {
|
|
2296
|
+
"use strict";
|
|
2297
|
+
}
|
|
2298
|
+
});
|
|
2299
|
+
|
|
2300
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-slot-cycles.js
|
|
2301
|
+
var init_find_slot_cycles = __esm({
|
|
2302
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-slot-cycles.js"() {
|
|
2303
|
+
"use strict";
|
|
2304
|
+
init_build_adjacency();
|
|
2305
|
+
init_collect_self_loops();
|
|
2306
|
+
init_find_elementary_circuits();
|
|
2307
|
+
init_strongly_connected_components();
|
|
2308
|
+
}
|
|
2309
|
+
});
|
|
2310
|
+
|
|
2311
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/find-slot-cycles.js
|
|
2312
|
+
var init_find_slot_cycles2 = __esm({
|
|
2313
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/find-slot-cycles.js"() {
|
|
2314
|
+
"use strict";
|
|
2315
|
+
init_find_slot_cycles();
|
|
2316
|
+
}
|
|
2317
|
+
});
|
|
2318
|
+
|
|
2319
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/group-nodes-by-cycle-membership.js
|
|
2320
|
+
var init_group_nodes_by_cycle_membership = __esm({
|
|
2321
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/group-nodes-by-cycle-membership.js"() {
|
|
2322
|
+
"use strict";
|
|
2323
|
+
}
|
|
2324
|
+
});
|
|
2325
|
+
|
|
2326
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/group-nodes-by-cycle-membership.js
|
|
2327
|
+
var init_group_nodes_by_cycle_membership2 = __esm({
|
|
2328
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/group-nodes-by-cycle-membership.js"() {
|
|
2329
|
+
"use strict";
|
|
2330
|
+
init_group_nodes_by_cycle_membership();
|
|
2331
|
+
}
|
|
2332
|
+
});
|
|
2333
|
+
|
|
2334
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/slot-targets-of.js
|
|
2335
|
+
var init_slot_targets_of = __esm({
|
|
2336
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/slot-targets-of.js"() {
|
|
2337
|
+
"use strict";
|
|
2338
|
+
}
|
|
2339
|
+
});
|
|
2340
|
+
|
|
2341
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/expand-seeds-to-include-cycle-groups.js
|
|
2342
|
+
var init_expand_seeds_to_include_cycle_groups = __esm({
|
|
2343
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/expand-seeds-to-include-cycle-groups.js"() {
|
|
2344
|
+
"use strict";
|
|
2345
|
+
init_slot_targets_of();
|
|
2346
|
+
}
|
|
2347
|
+
});
|
|
2348
|
+
|
|
2349
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/expand-seeds-to-include-cycle-groups.js
|
|
2350
|
+
var init_expand_seeds_to_include_cycle_groups2 = __esm({
|
|
2351
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/expand-seeds-to-include-cycle-groups.js"() {
|
|
2352
|
+
"use strict";
|
|
2353
|
+
init_expand_seeds_to_include_cycle_groups();
|
|
2354
|
+
}
|
|
2355
|
+
});
|
|
2356
|
+
|
|
2357
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-descendants-respecting-cycles.js
|
|
2358
|
+
var init_select_descendants_respecting_cycles = __esm({
|
|
2359
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-descendants-respecting-cycles.js"() {
|
|
2360
|
+
"use strict";
|
|
2361
|
+
init_slot_targets_of();
|
|
2362
|
+
}
|
|
2363
|
+
});
|
|
2364
|
+
|
|
2365
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-descendants-respecting-cycles.js
|
|
2366
|
+
var init_select_descendants_respecting_cycles2 = __esm({
|
|
2367
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-descendants-respecting-cycles.js"() {
|
|
2368
|
+
"use strict";
|
|
2369
|
+
init_select_descendants_respecting_cycles();
|
|
2370
|
+
}
|
|
2371
|
+
});
|
|
2372
|
+
|
|
2373
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-direct-parents.js
|
|
2374
|
+
var init_find_direct_parents = __esm({
|
|
2375
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-direct-parents.js"() {
|
|
2376
|
+
"use strict";
|
|
2377
|
+
}
|
|
2378
|
+
});
|
|
2379
|
+
|
|
2380
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-ancestors-respecting-cycles.js
|
|
2381
|
+
var init_reject_ancestors_respecting_cycles = __esm({
|
|
2382
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-ancestors-respecting-cycles.js"() {
|
|
2383
|
+
"use strict";
|
|
2384
|
+
init_find_direct_parents();
|
|
2385
|
+
init_select_descendants_respecting_cycles();
|
|
2386
|
+
}
|
|
2387
|
+
});
|
|
2388
|
+
|
|
2389
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-ancestors-respecting-cycles.js
|
|
2390
|
+
var init_reject_ancestors_respecting_cycles2 = __esm({
|
|
2391
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-ancestors-respecting-cycles.js"() {
|
|
2392
|
+
"use strict";
|
|
2393
|
+
init_reject_ancestors_respecting_cycles();
|
|
2394
|
+
}
|
|
2395
|
+
});
|
|
2396
|
+
|
|
2397
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/edges-from-node.js
|
|
2398
|
+
var init_edges_from_node = __esm({
|
|
2399
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/edges-from-node.js"() {
|
|
2400
|
+
"use strict";
|
|
2401
|
+
}
|
|
2402
|
+
});
|
|
2403
|
+
|
|
2404
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/walk-reachable.js
|
|
2405
|
+
var init_walk_reachable = __esm({
|
|
2406
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/walk-reachable.js"() {
|
|
2407
|
+
"use strict";
|
|
2408
|
+
init_edges_from_node();
|
|
2409
|
+
}
|
|
2410
|
+
});
|
|
2411
|
+
|
|
2412
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-all-descendants.js
|
|
2413
|
+
var init_select_all_descendants = __esm({
|
|
2414
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-all-descendants.js"() {
|
|
2415
|
+
"use strict";
|
|
2416
|
+
init_walk_reachable();
|
|
2417
|
+
}
|
|
2418
|
+
});
|
|
2419
|
+
|
|
2420
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-all-descendants.js
|
|
2421
|
+
var init_select_all_descendants2 = __esm({
|
|
2422
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-all-descendants.js"() {
|
|
2423
|
+
"use strict";
|
|
2424
|
+
init_select_all_descendants();
|
|
2425
|
+
}
|
|
2426
|
+
});
|
|
2427
|
+
|
|
2428
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-all-parents.js
|
|
2429
|
+
var init_find_all_parents = __esm({
|
|
2430
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-all-parents.js"() {
|
|
2431
|
+
"use strict";
|
|
2432
|
+
init_find_direct_parents();
|
|
2433
|
+
}
|
|
2434
|
+
});
|
|
2435
|
+
|
|
2436
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-all-ancestors.js
|
|
2437
|
+
var init_reject_all_ancestors = __esm({
|
|
2438
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-all-ancestors.js"() {
|
|
2439
|
+
"use strict";
|
|
2440
|
+
init_find_all_parents();
|
|
2441
|
+
}
|
|
2442
|
+
});
|
|
2443
|
+
|
|
2444
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-all-ancestors.js
|
|
2445
|
+
var init_reject_all_ancestors2 = __esm({
|
|
2446
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-all-ancestors.js"() {
|
|
2447
|
+
"use strict";
|
|
2448
|
+
init_reject_all_ancestors();
|
|
2449
|
+
}
|
|
2450
|
+
});
|
|
2451
|
+
|
|
2452
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/expand-matches-by-one-hop.js
|
|
2453
|
+
var init_expand_matches_by_one_hop = __esm({
|
|
2454
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/expand-matches-by-one-hop.js"() {
|
|
2455
|
+
"use strict";
|
|
2456
|
+
}
|
|
2457
|
+
});
|
|
2458
|
+
|
|
2459
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/expand-matches-by-one-hop.js
|
|
2460
|
+
var init_expand_matches_by_one_hop2 = __esm({
|
|
2461
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/expand-matches-by-one-hop.js"() {
|
|
2462
|
+
"use strict";
|
|
2463
|
+
init_expand_matches_by_one_hop();
|
|
2464
|
+
}
|
|
2465
|
+
});
|
|
2466
|
+
|
|
2467
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/find-all-parents.js
|
|
2468
|
+
var init_find_all_parents2 = __esm({
|
|
2469
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/find-all-parents.js"() {
|
|
2470
|
+
"use strict";
|
|
2471
|
+
init_find_all_parents();
|
|
2472
|
+
}
|
|
2473
|
+
});
|
|
2474
|
+
|
|
2475
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/propagate-descendant-issues-to-ancestors.js
|
|
2476
|
+
var init_propagate_descendant_issues_to_ancestors = __esm({
|
|
2477
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/propagate-descendant-issues-to-ancestors.js"() {
|
|
2478
|
+
"use strict";
|
|
2479
|
+
}
|
|
2480
|
+
});
|
|
2481
|
+
|
|
2482
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/propagate-descendant-issues-to-ancestors.js
|
|
2483
|
+
var init_propagate_descendant_issues_to_ancestors2 = __esm({
|
|
2484
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/propagate-descendant-issues-to-ancestors.js"() {
|
|
2485
|
+
"use strict";
|
|
2486
|
+
init_propagate_descendant_issues_to_ancestors();
|
|
2487
|
+
}
|
|
2488
|
+
});
|
|
2489
|
+
|
|
2490
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/find-worst-issued-descendant.js
|
|
2491
|
+
var init_find_worst_issued_descendant = __esm({
|
|
2492
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/find-worst-issued-descendant.js"() {
|
|
2493
|
+
"use strict";
|
|
2494
|
+
}
|
|
2495
|
+
});
|
|
2496
|
+
|
|
2497
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/find-worst-issued-descendant.js
|
|
2498
|
+
var init_find_worst_issued_descendant2 = __esm({
|
|
2499
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/find-worst-issued-descendant.js"() {
|
|
2500
|
+
"use strict";
|
|
2501
|
+
init_find_worst_issued_descendant();
|
|
2502
|
+
}
|
|
2503
|
+
});
|
|
2504
|
+
|
|
2505
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/suggest-cycle-break-edge.js
|
|
2506
|
+
var init_suggest_cycle_break_edge = __esm({
|
|
2507
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/suggest-cycle-break-edge.js"() {
|
|
2508
|
+
"use strict";
|
|
2509
|
+
}
|
|
2510
|
+
});
|
|
2511
|
+
|
|
2512
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path.js
|
|
2513
|
+
var init_format_cycle_path = __esm({
|
|
2514
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path.js"() {
|
|
2515
|
+
"use strict";
|
|
2516
|
+
}
|
|
2517
|
+
});
|
|
2518
|
+
|
|
2519
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path-segments.js
|
|
2520
|
+
var init_format_cycle_path_segments = __esm({
|
|
2521
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path-segments.js"() {
|
|
2522
|
+
"use strict";
|
|
2523
|
+
}
|
|
2524
|
+
});
|
|
2525
|
+
|
|
2526
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/services/run-selection-service.js
|
|
2527
|
+
var DEFAULT_TIMEOUT_MS;
|
|
2528
|
+
var init_run_selection_service = __esm({
|
|
2529
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/services/run-selection-service.js"() {
|
|
2530
|
+
"use strict";
|
|
2531
|
+
init_agents();
|
|
2532
|
+
DEFAULT_TIMEOUT_MS = Number(process.env.EDS_AGENT_TIMEOUT_MS ?? 5 * 60 * 1e3);
|
|
2533
|
+
}
|
|
2534
|
+
});
|
|
2535
|
+
|
|
2536
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/select-components-endpoint.js
|
|
2537
|
+
var init_select_components_endpoint = __esm({
|
|
2538
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/select-components-endpoint.js"() {
|
|
2539
|
+
"use strict";
|
|
2540
|
+
init_agents();
|
|
2541
|
+
init_constants3();
|
|
2542
|
+
init_run_selection_service();
|
|
2543
|
+
}
|
|
2544
|
+
});
|
|
2545
|
+
|
|
2546
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/validate.js
|
|
2547
|
+
var init_validate3 = __esm({
|
|
2548
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/validate.js"() {
|
|
2549
|
+
"use strict";
|
|
2550
|
+
}
|
|
2551
|
+
});
|
|
2552
|
+
|
|
2553
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-component-id.js
|
|
2554
|
+
var init_create_component_id = __esm({
|
|
2555
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-component-id.js"() {
|
|
2556
|
+
"use strict";
|
|
2557
|
+
}
|
|
2558
|
+
});
|
|
2559
|
+
|
|
2560
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/resolve-component-source-path.js
|
|
2561
|
+
var init_resolve_component_source_path = __esm({
|
|
2562
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/resolve-component-source-path.js"() {
|
|
2563
|
+
"use strict";
|
|
2564
|
+
}
|
|
2565
|
+
});
|
|
2566
|
+
|
|
2567
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/load-review-input.js
|
|
2568
|
+
var init_load_review_input = __esm({
|
|
2569
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/load-review-input.js"() {
|
|
2570
|
+
"use strict";
|
|
2571
|
+
init_create_component_id();
|
|
2572
|
+
init_resolve_component_source_path();
|
|
2573
|
+
}
|
|
2574
|
+
});
|
|
2575
|
+
|
|
2576
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/load-and-validate-for-review.js
|
|
2577
|
+
var init_load_and_validate_for_review = __esm({
|
|
2578
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/load-and-validate-for-review.js"() {
|
|
2579
|
+
"use strict";
|
|
2580
|
+
init_validate3();
|
|
2581
|
+
init_db();
|
|
2582
|
+
init_db();
|
|
2583
|
+
init_load_review_input();
|
|
2584
|
+
}
|
|
2585
|
+
});
|
|
2586
|
+
|
|
2587
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-session-paths.js
|
|
2588
|
+
var init_review_session_paths = __esm({
|
|
2589
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-session-paths.js"() {
|
|
2590
|
+
"use strict";
|
|
2591
|
+
}
|
|
2592
|
+
});
|
|
2593
|
+
|
|
2594
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/ensure-review-session.js
|
|
2595
|
+
var init_ensure_review_session = __esm({
|
|
2596
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/ensure-review-session.js"() {
|
|
2597
|
+
"use strict";
|
|
2598
|
+
init_review_session_paths();
|
|
2599
|
+
}
|
|
2600
|
+
});
|
|
2601
|
+
|
|
2602
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-artifacts-root.js
|
|
2603
|
+
var init_review_artifacts_root = __esm({
|
|
2604
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-artifacts-root.js"() {
|
|
2605
|
+
"use strict";
|
|
2606
|
+
init_config_root();
|
|
2607
|
+
}
|
|
2608
|
+
});
|
|
2609
|
+
|
|
2610
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/save-review-state.js
|
|
2611
|
+
var init_save_review_state = __esm({
|
|
2612
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/save-review-state.js"() {
|
|
2613
|
+
"use strict";
|
|
2614
|
+
}
|
|
2615
|
+
});
|
|
2616
|
+
|
|
2617
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/merge-preview-validation-errors-into-review-session.js
|
|
2618
|
+
var init_merge_preview_validation_errors_into_review_session = __esm({
|
|
2619
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/merge-preview-validation-errors-into-review-session.js"() {
|
|
2620
|
+
"use strict";
|
|
2621
|
+
init_ensure_review_session();
|
|
2622
|
+
init_review_artifacts_root();
|
|
2623
|
+
init_review_session_paths();
|
|
2624
|
+
init_save_review_state();
|
|
2625
|
+
init_load_and_validate_for_review();
|
|
2626
|
+
}
|
|
2627
|
+
});
|
|
2628
|
+
|
|
2629
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/reject-components-by-name.js
|
|
2630
|
+
var init_reject_components_by_name = __esm({
|
|
2631
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/reject-components-by-name.js"() {
|
|
2632
|
+
"use strict";
|
|
2633
|
+
init_db();
|
|
2634
|
+
init_review_artifacts_root();
|
|
2635
|
+
init_review_session_paths();
|
|
2636
|
+
init_save_review_state();
|
|
2637
|
+
}
|
|
2638
|
+
});
|
|
2639
|
+
|
|
2640
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/build-scan-warnings.js
|
|
2641
|
+
function buildScanWarnings(counts) {
|
|
2642
|
+
const warnings = [];
|
|
2643
|
+
if (counts.total === 0) {
|
|
2644
|
+
warnings.push("No source files found. Double-check the path points at your component code.");
|
|
2645
|
+
return warnings;
|
|
2646
|
+
}
|
|
2647
|
+
const frameworkFiles = counts.tsx + counts.ts + counts.jsx + counts.js + counts.vue + counts.astro + counts.svelte;
|
|
2648
|
+
if (frameworkFiles === 0) {
|
|
2649
|
+
warnings.push("No framework source files found (.tsx, .ts, .vue, .svelte, .astro, .jsx, .js).");
|
|
2650
|
+
}
|
|
2651
|
+
return warnings;
|
|
2652
|
+
}
|
|
2653
|
+
var init_build_scan_warnings = __esm({
|
|
2654
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/build-scan-warnings.js"() {
|
|
2655
|
+
"use strict";
|
|
2656
|
+
}
|
|
2657
|
+
});
|
|
2658
|
+
|
|
2659
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/classify-stat-error.js
|
|
2660
|
+
function classifyStatError(code) {
|
|
2661
|
+
switch (code) {
|
|
2662
|
+
case "ENOENT":
|
|
2663
|
+
return "not-found";
|
|
2664
|
+
case "EACCES":
|
|
2665
|
+
case "EPERM":
|
|
2666
|
+
return "permission-denied";
|
|
2667
|
+
default:
|
|
2668
|
+
return "unreadable";
|
|
2669
|
+
}
|
|
2670
|
+
}
|
|
2671
|
+
var init_classify_stat_error = __esm({
|
|
2672
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/classify-stat-error.js"() {
|
|
2673
|
+
"use strict";
|
|
2674
|
+
}
|
|
2675
|
+
});
|
|
2676
|
+
|
|
2677
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/empty-file-counts.js
|
|
2678
|
+
function emptyFileCounts() {
|
|
2679
|
+
return { tsx: 0, ts: 0, vue: 0, astro: 0, svelte: 0, jsx: 0, js: 0, json: 0, md: 0, other: 0, total: 0 };
|
|
2680
|
+
}
|
|
2681
|
+
var init_empty_file_counts = __esm({
|
|
2682
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/empty-file-counts.js"() {
|
|
2683
|
+
"use strict";
|
|
2684
|
+
}
|
|
2685
|
+
});
|
|
2686
|
+
|
|
2687
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-patterns.js
|
|
2688
|
+
var INCLUDED_EXTENSIONS, DENYLIST_GATED_EXTENSIONS, EXCLUDED_SUFFIXES, IGNORED_DIRS, DENYLISTED_EXACT_FILE_NAMES, DENYLISTED_FILE_NAME_PATTERNS;
|
|
2689
|
+
var init_file_patterns = __esm({
|
|
2690
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-patterns.js"() {
|
|
2691
|
+
"use strict";
|
|
2692
|
+
INCLUDED_EXTENSIONS = /* @__PURE__ */ new Set([".astro", ".js", ".jsx", ".svelte", ".ts", ".tsx", ".vue"]);
|
|
2693
|
+
DENYLIST_GATED_EXTENSIONS = /* @__PURE__ */ new Set([".json", ".md"]);
|
|
2694
|
+
EXCLUDED_SUFFIXES = [
|
|
2695
|
+
".d.ts",
|
|
2696
|
+
".stories.ts",
|
|
2697
|
+
".stories.tsx",
|
|
2698
|
+
".stories.js",
|
|
2699
|
+
".stories.jsx",
|
|
2700
|
+
".story.ts",
|
|
2701
|
+
".story.tsx",
|
|
2702
|
+
".story.js",
|
|
2703
|
+
".story.jsx",
|
|
2704
|
+
".spec.ts",
|
|
2705
|
+
".spec.tsx",
|
|
2706
|
+
".test.ts",
|
|
2707
|
+
".test.tsx"
|
|
2708
|
+
];
|
|
2709
|
+
IGNORED_DIRS = /* @__PURE__ */ new Set([
|
|
2710
|
+
".changeset",
|
|
2711
|
+
".git",
|
|
2712
|
+
".github",
|
|
2713
|
+
".idea",
|
|
2714
|
+
".next",
|
|
2715
|
+
".nuxt",
|
|
2716
|
+
".nx",
|
|
2717
|
+
".vscode",
|
|
2718
|
+
"build",
|
|
2719
|
+
"coverage",
|
|
2720
|
+
"demo",
|
|
2721
|
+
"demos",
|
|
2722
|
+
"dist",
|
|
2723
|
+
"example",
|
|
2724
|
+
"examples",
|
|
2725
|
+
"node_modules",
|
|
2726
|
+
"out",
|
|
2727
|
+
"storybook-static"
|
|
2728
|
+
]);
|
|
2729
|
+
DENYLISTED_EXACT_FILE_NAMES = /* @__PURE__ */ new Set([
|
|
2730
|
+
"package.json",
|
|
2731
|
+
"package-lock.json",
|
|
2732
|
+
"npm-shrinkwrap.json",
|
|
2733
|
+
"nx.json",
|
|
2734
|
+
"project.json",
|
|
2735
|
+
"turbo.json",
|
|
2736
|
+
"lerna.json",
|
|
2737
|
+
"jsconfig.json"
|
|
2738
|
+
]);
|
|
2739
|
+
DENYLISTED_FILE_NAME_PATTERNS = [
|
|
2740
|
+
/^tsconfig(\..+)?\.json$/,
|
|
2741
|
+
/^\.?eslintrc(\..+)?\.json$/,
|
|
2742
|
+
/^\.?prettierrc(\..+)?\.json$/,
|
|
2743
|
+
/^(readme|changelog|contributing|code_of_conduct|license|security)(\..+)?\.md$/i
|
|
2744
|
+
];
|
|
2745
|
+
}
|
|
2746
|
+
});
|
|
2747
|
+
|
|
2748
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-categories.js
|
|
2749
|
+
var CATEGORY_BY_EXTENSION;
|
|
2750
|
+
var init_file_categories = __esm({
|
|
2751
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-categories.js"() {
|
|
2752
|
+
"use strict";
|
|
2753
|
+
CATEGORY_BY_EXTENSION = {
|
|
2754
|
+
".tsx": "tsx",
|
|
2755
|
+
".ts": "ts",
|
|
2756
|
+
".vue": "vue",
|
|
2757
|
+
".astro": "astro",
|
|
2758
|
+
".svelte": "svelte",
|
|
2759
|
+
".jsx": "jsx",
|
|
2760
|
+
".js": "js",
|
|
2761
|
+
".json": "json",
|
|
2762
|
+
".md": "md"
|
|
2763
|
+
};
|
|
2764
|
+
}
|
|
2765
|
+
});
|
|
2766
|
+
|
|
2767
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/categorize-file.js
|
|
2768
|
+
import path from "node:path";
|
|
2769
|
+
function categorizeFile(name) {
|
|
2770
|
+
if (name.endsWith(".d.ts"))
|
|
2771
|
+
return "other";
|
|
2772
|
+
const ext = path.extname(name);
|
|
2773
|
+
return CATEGORY_BY_EXTENSION[ext] ?? "other";
|
|
2774
|
+
}
|
|
2775
|
+
var init_categorize_file = __esm({
|
|
2776
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/categorize-file.js"() {
|
|
2777
|
+
"use strict";
|
|
2778
|
+
init_file_categories();
|
|
2779
|
+
}
|
|
2780
|
+
});
|
|
2781
|
+
|
|
2782
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-noise-config-file.js
|
|
2783
|
+
function isNoiseConfigFile(name) {
|
|
2784
|
+
return DENYLISTED_EXACT_FILE_NAMES.has(name) || DENYLISTED_FILE_NAME_PATTERNS.some((pattern) => pattern.test(name));
|
|
2785
|
+
}
|
|
2786
|
+
var init_is_noise_config_file = __esm({
|
|
2787
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-noise-config-file.js"() {
|
|
2788
|
+
"use strict";
|
|
2789
|
+
init_file_patterns();
|
|
2790
|
+
}
|
|
2791
|
+
});
|
|
2792
|
+
|
|
2793
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-source-file.js
|
|
2794
|
+
import path2 from "node:path";
|
|
2795
|
+
function isSourceFile(name) {
|
|
2796
|
+
if (name.endsWith(".d.ts"))
|
|
2797
|
+
return false;
|
|
2798
|
+
if (EXCLUDED_SUFFIXES.some((suffix) => name.endsWith(suffix)))
|
|
2799
|
+
return false;
|
|
2800
|
+
const ext = path2.extname(name);
|
|
2801
|
+
if (INCLUDED_EXTENSIONS.has(ext))
|
|
2802
|
+
return true;
|
|
2803
|
+
if (DENYLIST_GATED_EXTENSIONS.has(ext) && !isNoiseConfigFile(name))
|
|
2804
|
+
return true;
|
|
2805
|
+
return false;
|
|
2806
|
+
}
|
|
2807
|
+
var init_is_source_file = __esm({
|
|
2808
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-source-file.js"() {
|
|
2809
|
+
"use strict";
|
|
2810
|
+
init_file_patterns();
|
|
2811
|
+
init_is_noise_config_file();
|
|
2812
|
+
}
|
|
2813
|
+
});
|
|
2814
|
+
|
|
2815
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/read-dir-safely.js
|
|
2816
|
+
import { readdirSync } from "node:fs";
|
|
2817
|
+
function readDirSafely(dir) {
|
|
2818
|
+
try {
|
|
2819
|
+
return readdirSync(dir, { withFileTypes: true });
|
|
2820
|
+
} catch {
|
|
2821
|
+
return "unreadable";
|
|
2822
|
+
}
|
|
2823
|
+
}
|
|
2824
|
+
var init_read_dir_safely = __esm({
|
|
2825
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/read-dir-safely.js"() {
|
|
2826
|
+
"use strict";
|
|
2827
|
+
}
|
|
2828
|
+
});
|
|
2829
|
+
|
|
2830
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/walk-project-tree.js
|
|
2831
|
+
import { readFileSync as readFileSync3 } from "node:fs";
|
|
2832
|
+
import path3 from "node:path";
|
|
2833
|
+
function walkProjectTree(dir, result, includeContent) {
|
|
2834
|
+
const entries = readDirSafely(dir);
|
|
2835
|
+
if (entries === "unreadable") {
|
|
2836
|
+
result.warnings.push(`Could not read directory: ${dir}`);
|
|
2837
|
+
return;
|
|
2838
|
+
}
|
|
2839
|
+
for (const entry of entries) {
|
|
2840
|
+
const full = path3.join(dir, entry.name);
|
|
2841
|
+
if (entry.isDirectory()) {
|
|
2842
|
+
if (!IGNORED_DIRS.has(entry.name))
|
|
2843
|
+
walkProjectTree(full, result, includeContent);
|
|
2844
|
+
continue;
|
|
2845
|
+
}
|
|
2846
|
+
if (!entry.isFile())
|
|
2847
|
+
continue;
|
|
2848
|
+
if (!isSourceFile(entry.name))
|
|
2849
|
+
continue;
|
|
2850
|
+
const category = categorizeFile(entry.name);
|
|
2851
|
+
result.counts[category] += 1;
|
|
2852
|
+
result.counts.total += 1;
|
|
2853
|
+
result.filePaths.push(full);
|
|
2854
|
+
if (includeContent) {
|
|
2855
|
+
try {
|
|
2856
|
+
const content = readFileSync3(full, "utf8");
|
|
2857
|
+
(result.candidateFiles ??= []).push({ path: full, content });
|
|
2858
|
+
} catch {
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
var init_walk_project_tree = __esm({
|
|
2864
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/walk-project-tree.js"() {
|
|
2865
|
+
"use strict";
|
|
2866
|
+
init_file_patterns();
|
|
2867
|
+
init_categorize_file();
|
|
2868
|
+
init_is_source_file();
|
|
2869
|
+
init_read_dir_safely();
|
|
2870
|
+
}
|
|
2871
|
+
});
|
|
2872
|
+
|
|
2873
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/collect-files.js
|
|
2874
|
+
import { statSync as statSync2 } from "node:fs";
|
|
2875
|
+
import path4 from "node:path";
|
|
2876
|
+
function collectFiles(root, options = {}) {
|
|
2877
|
+
const resolved = path4.resolve(root);
|
|
2878
|
+
let stat;
|
|
2879
|
+
try {
|
|
2880
|
+
stat = statSync2(resolved);
|
|
2881
|
+
} catch (err) {
|
|
2882
|
+
return { ok: false, failure: classifyStatError(err.code), rootPath: resolved };
|
|
2883
|
+
}
|
|
2884
|
+
if (stat.isFile())
|
|
2885
|
+
return { ok: false, failure: "is-file", rootPath: resolved };
|
|
2886
|
+
if (!stat.isDirectory())
|
|
2887
|
+
return { ok: false, failure: "not-directory", rootPath: resolved };
|
|
2888
|
+
const result = {
|
|
2889
|
+
filePaths: [],
|
|
2890
|
+
counts: emptyFileCounts(),
|
|
2891
|
+
warnings: [],
|
|
2892
|
+
rootPath: resolved
|
|
2893
|
+
};
|
|
2894
|
+
if (options.includeContent)
|
|
2895
|
+
result.candidateFiles = [];
|
|
2896
|
+
walkProjectTree(resolved, result, options.includeContent === true);
|
|
2897
|
+
result.filePaths.sort();
|
|
2898
|
+
if (result.candidateFiles)
|
|
2899
|
+
result.candidateFiles.sort((a, b) => a.path.localeCompare(b.path));
|
|
2900
|
+
result.warnings.push(...buildScanWarnings(result.counts));
|
|
2901
|
+
return { ok: true, result };
|
|
2902
|
+
}
|
|
2903
|
+
var init_collect_files = __esm({
|
|
2904
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/collect-files.js"() {
|
|
2905
|
+
"use strict";
|
|
2906
|
+
init_build_scan_warnings();
|
|
2907
|
+
init_classify_stat_error();
|
|
2908
|
+
init_empty_file_counts();
|
|
2909
|
+
init_walk_project_tree();
|
|
2910
|
+
}
|
|
2911
|
+
});
|
|
2912
|
+
|
|
2913
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/index.js
|
|
2914
|
+
var init_collect_files2 = __esm({
|
|
2915
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/index.js"() {
|
|
2916
|
+
"use strict";
|
|
2917
|
+
init_collect_files();
|
|
2918
|
+
}
|
|
2919
|
+
});
|
|
2920
|
+
|
|
2921
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/generate-ulid.js
|
|
2922
|
+
var init_generate_ulid = __esm({
|
|
2923
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/generate-ulid.js"() {
|
|
2924
|
+
"use strict";
|
|
2925
|
+
}
|
|
2926
|
+
});
|
|
2927
|
+
|
|
2928
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/migrate-record.js
|
|
2929
|
+
var init_migrate_record = __esm({
|
|
2930
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/migrate-record.js"() {
|
|
2931
|
+
"use strict";
|
|
2932
|
+
}
|
|
2933
|
+
});
|
|
2934
|
+
|
|
2935
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/types/run-record.js
|
|
2936
|
+
var init_run_record = __esm({
|
|
2937
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/types/run-record.js"() {
|
|
2938
|
+
"use strict";
|
|
2939
|
+
}
|
|
2940
|
+
});
|
|
2941
|
+
|
|
2942
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/read-runs-file.js
|
|
2943
|
+
var init_read_runs_file = __esm({
|
|
2944
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/read-runs-file.js"() {
|
|
2945
|
+
"use strict";
|
|
2946
|
+
init_config_root();
|
|
2947
|
+
init_migrate_record();
|
|
2948
|
+
init_run_record();
|
|
2949
|
+
}
|
|
2950
|
+
});
|
|
2951
|
+
|
|
2952
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/write-runs-file.js
|
|
2953
|
+
var init_write_runs_file = __esm({
|
|
2954
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/write-runs-file.js"() {
|
|
2955
|
+
"use strict";
|
|
2956
|
+
init_config_root();
|
|
2957
|
+
}
|
|
2958
|
+
});
|
|
2959
|
+
|
|
2960
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/append-run.js
|
|
2961
|
+
var init_append_run = __esm({
|
|
2962
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/append-run.js"() {
|
|
2963
|
+
"use strict";
|
|
2964
|
+
init_generate_ulid();
|
|
2965
|
+
init_read_runs_file();
|
|
2966
|
+
init_write_runs_file();
|
|
2967
|
+
init_run_record();
|
|
2968
|
+
}
|
|
2969
|
+
});
|
|
2970
|
+
|
|
2971
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/list-runs.js
|
|
2972
|
+
var init_list_runs = __esm({
|
|
2973
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/list-runs.js"() {
|
|
2974
|
+
"use strict";
|
|
2975
|
+
init_read_runs_file();
|
|
2976
|
+
}
|
|
2977
|
+
});
|
|
2978
|
+
|
|
2979
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/get-run.js
|
|
2980
|
+
var init_get_run = __esm({
|
|
2981
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/get-run.js"() {
|
|
2982
|
+
"use strict";
|
|
2983
|
+
init_config_root();
|
|
2984
|
+
init_read_runs_file();
|
|
2985
|
+
}
|
|
2986
|
+
});
|
|
2987
|
+
|
|
2988
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/update-run.js
|
|
2989
|
+
var init_update_run = __esm({
|
|
2990
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/update-run.js"() {
|
|
2991
|
+
"use strict";
|
|
2992
|
+
init_config_root();
|
|
2993
|
+
init_read_runs_file();
|
|
2994
|
+
init_write_runs_file();
|
|
2995
|
+
init_run_record();
|
|
2996
|
+
}
|
|
2997
|
+
});
|
|
2998
|
+
|
|
2999
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/sha256-hex.js
|
|
3000
|
+
var init_sha256_hex = __esm({
|
|
3001
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/sha256-hex.js"() {
|
|
3002
|
+
"use strict";
|
|
3003
|
+
}
|
|
3004
|
+
});
|
|
3005
|
+
|
|
3006
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/build-source-fingerprint.js
|
|
3007
|
+
var init_build_source_fingerprint = __esm({
|
|
3008
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/build-source-fingerprint.js"() {
|
|
3009
|
+
"use strict";
|
|
3010
|
+
init_sha256_hex();
|
|
3011
|
+
}
|
|
3012
|
+
});
|
|
3013
|
+
|
|
3014
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/save-files.js
|
|
3015
|
+
var init_save_files = __esm({
|
|
3016
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/save-files.js"() {
|
|
3017
|
+
"use strict";
|
|
3018
|
+
}
|
|
3019
|
+
});
|
|
3020
|
+
|
|
3021
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/list-conflicting-files.js
|
|
3022
|
+
var init_list_conflicting_files = __esm({
|
|
3023
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/list-conflicting-files.js"() {
|
|
3024
|
+
"use strict";
|
|
3025
|
+
init_save_files();
|
|
3026
|
+
}
|
|
3027
|
+
});
|
|
3028
|
+
|
|
3029
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/detect-save-conflict.js
|
|
3030
|
+
var init_detect_save_conflict = __esm({
|
|
3031
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/detect-save-conflict.js"() {
|
|
3032
|
+
"use strict";
|
|
3033
|
+
init_list_conflicting_files();
|
|
3034
|
+
}
|
|
3035
|
+
});
|
|
3036
|
+
|
|
3037
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/build-timestamped-subdir.js
|
|
3038
|
+
var init_build_timestamped_subdir = __esm({
|
|
3039
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/build-timestamped-subdir.js"() {
|
|
3040
|
+
"use strict";
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
|
|
3044
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/index.js
|
|
3045
|
+
var init_runs = __esm({
|
|
3046
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/index.js"() {
|
|
3047
|
+
"use strict";
|
|
3048
|
+
init_append_run();
|
|
3049
|
+
init_list_runs();
|
|
3050
|
+
init_get_run();
|
|
3051
|
+
init_update_run();
|
|
3052
|
+
init_build_source_fingerprint();
|
|
3053
|
+
init_detect_save_conflict();
|
|
3054
|
+
init_build_timestamped_subdir();
|
|
3055
|
+
init_sha256_hex();
|
|
3056
|
+
init_generate_ulid();
|
|
3057
|
+
init_run_record();
|
|
3058
|
+
init_config_root();
|
|
3059
|
+
}
|
|
3060
|
+
});
|
|
3061
|
+
|
|
3062
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/append-review-event.js
|
|
3063
|
+
var init_append_review_event = __esm({
|
|
3064
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/append-review-event.js"() {
|
|
3065
|
+
"use strict";
|
|
3066
|
+
}
|
|
3067
|
+
});
|
|
3068
|
+
|
|
3069
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/count-validation-issues.js
|
|
3070
|
+
var init_count_validation_issues = __esm({
|
|
3071
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/count-validation-issues.js"() {
|
|
3072
|
+
"use strict";
|
|
3073
|
+
}
|
|
3074
|
+
});
|
|
3075
|
+
|
|
3076
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-summary.js
|
|
3077
|
+
var init_create_review_session_summary = __esm({
|
|
3078
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-summary.js"() {
|
|
3079
|
+
"use strict";
|
|
3080
|
+
init_count_validation_issues();
|
|
3081
|
+
}
|
|
3082
|
+
});
|
|
3083
|
+
|
|
3084
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-detail.js
|
|
3085
|
+
var init_create_review_session_detail = __esm({
|
|
3086
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-detail.js"() {
|
|
3087
|
+
"use strict";
|
|
3088
|
+
}
|
|
3089
|
+
});
|
|
3090
|
+
|
|
3091
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/services/write-scope-decisions-snapshot.js
|
|
3092
|
+
var init_write_scope_decisions_snapshot = __esm({
|
|
3093
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/services/write-scope-decisions-snapshot.js"() {
|
|
3094
|
+
"use strict";
|
|
3095
|
+
init_db();
|
|
3096
|
+
init_review_artifacts_root();
|
|
3097
|
+
init_review_session_paths();
|
|
3098
|
+
init_save_review_state();
|
|
3099
|
+
}
|
|
3100
|
+
});
|
|
3101
|
+
|
|
3102
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/load-accepted-names.js
|
|
3103
|
+
var init_load_accepted_names = __esm({
|
|
3104
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/load-accepted-names.js"() {
|
|
3105
|
+
"use strict";
|
|
3106
|
+
init_review_artifacts_root();
|
|
3107
|
+
init_review_session_paths();
|
|
3108
|
+
}
|
|
3109
|
+
});
|
|
3110
|
+
|
|
3111
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/parse-precomputed-cached-names.js
|
|
3112
|
+
var init_parse_precomputed_cached_names = __esm({
|
|
3113
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/parse-precomputed-cached-names.js"() {
|
|
3114
|
+
"use strict";
|
|
3115
|
+
}
|
|
3116
|
+
});
|
|
3117
|
+
|
|
3118
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/index.js
|
|
3119
|
+
var init_review_session = __esm({
|
|
3120
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/index.js"() {
|
|
3121
|
+
"use strict";
|
|
3122
|
+
init_review_artifacts_root();
|
|
3123
|
+
init_review_session_paths();
|
|
3124
|
+
init_save_review_state();
|
|
3125
|
+
init_append_review_event();
|
|
3126
|
+
init_ensure_review_session();
|
|
3127
|
+
init_load_review_input();
|
|
3128
|
+
init_create_review_session_summary();
|
|
3129
|
+
init_create_review_session_detail();
|
|
3130
|
+
init_count_validation_issues();
|
|
3131
|
+
init_write_scope_decisions_snapshot();
|
|
3132
|
+
init_load_accepted_names();
|
|
3133
|
+
init_parse_precomputed_cached_names();
|
|
3134
|
+
}
|
|
3135
|
+
});
|
|
3136
|
+
|
|
3137
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/composition.js
|
|
3138
|
+
var init_composition = __esm({
|
|
3139
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/composition.js"() {
|
|
3140
|
+
"use strict";
|
|
3141
|
+
}
|
|
3142
|
+
});
|
|
3143
|
+
|
|
3144
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/generation.js
|
|
3145
|
+
var init_generation = __esm({
|
|
3146
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/generation.js"() {
|
|
3147
|
+
"use strict";
|
|
3148
|
+
}
|
|
3149
|
+
});
|
|
3150
|
+
|
|
3151
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/selection.js
|
|
3152
|
+
var init_selection = __esm({
|
|
3153
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/selection.js"() {
|
|
3154
|
+
"use strict";
|
|
3155
|
+
}
|
|
3156
|
+
});
|
|
3157
|
+
|
|
3158
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/create-tables.js
|
|
3159
|
+
var init_create_tables = __esm({
|
|
3160
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/create-tables.js"() {
|
|
3161
|
+
"use strict";
|
|
3162
|
+
}
|
|
3163
|
+
});
|
|
3164
|
+
|
|
3165
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/generate-session-id.js
|
|
3166
|
+
var init_generate_session_id = __esm({
|
|
3167
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/generate-session-id.js"() {
|
|
3168
|
+
"use strict";
|
|
3169
|
+
}
|
|
3170
|
+
});
|
|
3171
|
+
|
|
3172
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/index.js
|
|
3173
|
+
import { DatabaseSync as DatabaseSync2 } from "node:sqlite";
|
|
3174
|
+
var init_session = __esm({
|
|
3175
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/index.js"() {
|
|
3176
|
+
"use strict";
|
|
3177
|
+
init_composition();
|
|
3178
|
+
init_generation();
|
|
3179
|
+
init_selection();
|
|
3180
|
+
init_create_tables();
|
|
3181
|
+
init_generate_session_id();
|
|
3182
|
+
init_generate_session_id();
|
|
3183
|
+
}
|
|
3184
|
+
});
|
|
3185
|
+
|
|
3186
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/migration.js
|
|
3187
|
+
import { DatabaseSync as DatabaseSync3 } from "node:sqlite";
|
|
3188
|
+
var init_migration = __esm({
|
|
3189
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/migration.js"() {
|
|
3190
|
+
"use strict";
|
|
3191
|
+
init_config_root();
|
|
3192
|
+
init_session_id();
|
|
3193
|
+
}
|
|
3194
|
+
});
|
|
3195
|
+
|
|
3196
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/resolve-session-id.js
|
|
3197
|
+
var init_resolve_session_id = __esm({
|
|
3198
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/resolve-session-id.js"() {
|
|
3199
|
+
"use strict";
|
|
3200
|
+
init_db();
|
|
3201
|
+
}
|
|
3202
|
+
});
|
|
3203
|
+
|
|
3204
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/host-utils.js
|
|
3205
|
+
var init_host_utils = __esm({
|
|
3206
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/host-utils.js"() {
|
|
3207
|
+
"use strict";
|
|
3208
|
+
}
|
|
3209
|
+
});
|
|
3210
|
+
|
|
3211
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/read-credentials.js
|
|
3212
|
+
var init_read_credentials = __esm({
|
|
3213
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/read-credentials.js"() {
|
|
3214
|
+
"use strict";
|
|
3215
|
+
init_config_root();
|
|
3216
|
+
init_host_utils();
|
|
3217
|
+
}
|
|
3218
|
+
});
|
|
3219
|
+
|
|
3220
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/owned-keys.js
|
|
3221
|
+
var init_owned_keys = __esm({
|
|
3222
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/owned-keys.js"() {
|
|
3223
|
+
"use strict";
|
|
3224
|
+
}
|
|
3225
|
+
});
|
|
3226
|
+
|
|
3227
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/write-credentials.js
|
|
3228
|
+
var init_write_credentials = __esm({
|
|
3229
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/write-credentials.js"() {
|
|
3230
|
+
"use strict";
|
|
3231
|
+
init_config_root();
|
|
3232
|
+
init_host_utils();
|
|
3233
|
+
init_owned_keys();
|
|
3234
|
+
}
|
|
3235
|
+
});
|
|
3236
|
+
|
|
3237
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/credentials-path.js
|
|
3238
|
+
var init_credentials_path = __esm({
|
|
3239
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/credentials-path.js"() {
|
|
3240
|
+
"use strict";
|
|
3241
|
+
init_config_root();
|
|
3242
|
+
}
|
|
3243
|
+
});
|
|
3244
|
+
|
|
3245
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/index.js
|
|
3246
|
+
var init_credentials = __esm({
|
|
3247
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/index.js"() {
|
|
3248
|
+
"use strict";
|
|
3249
|
+
init_read_credentials();
|
|
3250
|
+
init_write_credentials();
|
|
3251
|
+
init_credentials_path();
|
|
3252
|
+
init_host_utils();
|
|
3253
|
+
}
|
|
3254
|
+
});
|
|
3255
|
+
|
|
3256
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cache-keys.js
|
|
3257
|
+
var init_cache_keys = __esm({
|
|
3258
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cache-keys.js"() {
|
|
3259
|
+
"use strict";
|
|
3260
|
+
init_agents();
|
|
3261
|
+
}
|
|
3262
|
+
});
|
|
3263
|
+
|
|
3264
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/index.js
|
|
3265
|
+
var init_src = __esm({
|
|
3266
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/index.js"() {
|
|
3267
|
+
"use strict";
|
|
3268
|
+
init_collect_files2();
|
|
3269
|
+
init_runs();
|
|
3270
|
+
init_review_session();
|
|
3271
|
+
init_session();
|
|
3272
|
+
init_db();
|
|
3273
|
+
init_migration();
|
|
3274
|
+
init_config_root();
|
|
3275
|
+
init_resolve_session_id();
|
|
3276
|
+
init_credentials();
|
|
3277
|
+
init_db();
|
|
3278
|
+
init_db();
|
|
3279
|
+
init_db();
|
|
3280
|
+
init_db();
|
|
3281
|
+
init_db();
|
|
3282
|
+
init_db();
|
|
3283
|
+
init_db();
|
|
3284
|
+
init_cache_keys();
|
|
3285
|
+
init_db();
|
|
3286
|
+
init_source_excerpt();
|
|
3287
|
+
init_db();
|
|
3288
|
+
init_db();
|
|
3289
|
+
init_store_dtcg_tokens();
|
|
3290
|
+
init_apply_tool_calls();
|
|
3291
|
+
init_replace_raw_token_name_paths();
|
|
3292
|
+
init_replace_raw_prop_token_paths();
|
|
3293
|
+
init_derive_component_id();
|
|
3294
|
+
init_hash_component_shape();
|
|
3295
|
+
init_hash_token_content();
|
|
3296
|
+
init_build_dtcg_groups();
|
|
3297
|
+
init_build_dtcg_tokens();
|
|
3298
|
+
}
|
|
3299
|
+
});
|
|
3300
|
+
|
|
3301
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/services/run-cdf-generation-service.js
|
|
3302
|
+
var init_run_cdf_generation_service = __esm({
|
|
3303
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/services/run-cdf-generation-service.js"() {
|
|
3304
|
+
"use strict";
|
|
3305
|
+
init_agents();
|
|
3306
|
+
}
|
|
3307
|
+
});
|
|
3308
|
+
|
|
3309
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/generate-cdf-components-endpoint.js
|
|
3310
|
+
var init_generate_cdf_components_endpoint = __esm({
|
|
3311
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/generate-cdf-components-endpoint.js"() {
|
|
3312
|
+
"use strict";
|
|
3313
|
+
init_agents();
|
|
3314
|
+
init_constants3();
|
|
3315
|
+
init_run_cdf_generation_service();
|
|
3316
|
+
}
|
|
3317
|
+
});
|
|
3318
|
+
|
|
3319
|
+
// packages/experience-design-system-client/dist/src/generated/types.gen.js
|
|
3320
|
+
var init_types_gen = __esm({
|
|
3321
|
+
"packages/experience-design-system-client/dist/src/generated/types.gen.js"() {
|
|
3322
|
+
"use strict";
|
|
3323
|
+
}
|
|
3324
|
+
});
|
|
3325
|
+
|
|
3326
|
+
// packages/experience-design-system-client/dist/src/generated/core/bodySerializer.gen.js
|
|
3327
|
+
var jsonBodySerializer;
|
|
3328
|
+
var init_bodySerializer_gen = __esm({
|
|
3329
|
+
"packages/experience-design-system-client/dist/src/generated/core/bodySerializer.gen.js"() {
|
|
3330
|
+
"use strict";
|
|
3331
|
+
jsonBodySerializer = {
|
|
3332
|
+
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
});
|
|
3336
|
+
|
|
3337
|
+
// packages/experience-design-system-client/dist/src/generated/core/params.gen.js
|
|
3338
|
+
var extraPrefixesMap, extraPrefixes;
|
|
3339
|
+
var init_params_gen = __esm({
|
|
3340
|
+
"packages/experience-design-system-client/dist/src/generated/core/params.gen.js"() {
|
|
3341
|
+
"use strict";
|
|
3342
|
+
extraPrefixesMap = {
|
|
3343
|
+
$body_: "body",
|
|
3344
|
+
$headers_: "headers",
|
|
3345
|
+
$path_: "path",
|
|
3346
|
+
$query_: "query"
|
|
3347
|
+
};
|
|
3348
|
+
extraPrefixes = Object.entries(extraPrefixesMap);
|
|
3349
|
+
}
|
|
3350
|
+
});
|
|
3351
|
+
|
|
3352
|
+
// packages/experience-design-system-client/dist/src/generated/core/auth.gen.js
|
|
3353
|
+
var getAuthToken;
|
|
3354
|
+
var init_auth_gen = __esm({
|
|
3355
|
+
"packages/experience-design-system-client/dist/src/generated/core/auth.gen.js"() {
|
|
3356
|
+
"use strict";
|
|
3357
|
+
getAuthToken = async (auth, callback) => {
|
|
3358
|
+
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
3359
|
+
if (!token) {
|
|
3360
|
+
return;
|
|
3361
|
+
}
|
|
3362
|
+
if (auth.scheme === "bearer") {
|
|
3363
|
+
return `Bearer ${token}`;
|
|
3364
|
+
}
|
|
3365
|
+
if (auth.scheme === "basic") {
|
|
3366
|
+
return `Basic ${btoa(token)}`;
|
|
3367
|
+
}
|
|
3368
|
+
return token;
|
|
3369
|
+
};
|
|
3370
|
+
}
|
|
3371
|
+
});
|
|
3372
|
+
|
|
3373
|
+
// packages/experience-design-system-client/dist/src/generated/core/pathSerializer.gen.js
|
|
3374
|
+
var separatorArrayExplode, separatorArrayNoExplode, separatorObjectExplode, serializeArrayParam, serializePrimitiveParam, serializeObjectParam;
|
|
3375
|
+
var init_pathSerializer_gen = __esm({
|
|
3376
|
+
"packages/experience-design-system-client/dist/src/generated/core/pathSerializer.gen.js"() {
|
|
3377
|
+
"use strict";
|
|
3378
|
+
separatorArrayExplode = (style) => {
|
|
3379
|
+
switch (style) {
|
|
3380
|
+
case "label":
|
|
3381
|
+
return ".";
|
|
3382
|
+
case "matrix":
|
|
3383
|
+
return ";";
|
|
3384
|
+
case "simple":
|
|
3385
|
+
return ",";
|
|
3386
|
+
default:
|
|
3387
|
+
return "&";
|
|
3388
|
+
}
|
|
3389
|
+
};
|
|
3390
|
+
separatorArrayNoExplode = (style) => {
|
|
3391
|
+
switch (style) {
|
|
3392
|
+
case "form":
|
|
3393
|
+
return ",";
|
|
3394
|
+
case "pipeDelimited":
|
|
3395
|
+
return "|";
|
|
3396
|
+
case "spaceDelimited":
|
|
3397
|
+
return "%20";
|
|
3398
|
+
default:
|
|
3399
|
+
return ",";
|
|
3400
|
+
}
|
|
3401
|
+
};
|
|
3402
|
+
separatorObjectExplode = (style) => {
|
|
3403
|
+
switch (style) {
|
|
3404
|
+
case "label":
|
|
3405
|
+
return ".";
|
|
3406
|
+
case "matrix":
|
|
3407
|
+
return ";";
|
|
3408
|
+
case "simple":
|
|
3409
|
+
return ",";
|
|
3410
|
+
default:
|
|
3411
|
+
return "&";
|
|
3412
|
+
}
|
|
3413
|
+
};
|
|
3414
|
+
serializeArrayParam = ({ allowReserved, explode, name, style, value }) => {
|
|
3415
|
+
if (!explode) {
|
|
3416
|
+
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
3417
|
+
switch (style) {
|
|
3418
|
+
case "label":
|
|
3419
|
+
return `.${joinedValues2}`;
|
|
3420
|
+
case "matrix":
|
|
3421
|
+
return `;${name}=${joinedValues2}`;
|
|
3422
|
+
case "simple":
|
|
3423
|
+
return joinedValues2;
|
|
3424
|
+
default:
|
|
3425
|
+
return `${name}=${joinedValues2}`;
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
const separator = separatorArrayExplode(style);
|
|
3429
|
+
const joinedValues = value.map((v) => {
|
|
3430
|
+
if (style === "label" || style === "simple") {
|
|
3431
|
+
return allowReserved ? v : encodeURIComponent(v);
|
|
3432
|
+
}
|
|
3433
|
+
return serializePrimitiveParam({
|
|
3434
|
+
allowReserved,
|
|
3435
|
+
name,
|
|
3436
|
+
value: v
|
|
3437
|
+
});
|
|
3438
|
+
}).join(separator);
|
|
3439
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
3440
|
+
};
|
|
3441
|
+
serializePrimitiveParam = ({ allowReserved, name, value }) => {
|
|
3442
|
+
if (value === void 0 || value === null) {
|
|
3443
|
+
return "";
|
|
3444
|
+
}
|
|
3445
|
+
if (typeof value === "object") {
|
|
3446
|
+
throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");
|
|
3447
|
+
}
|
|
3448
|
+
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
3449
|
+
};
|
|
3450
|
+
serializeObjectParam = ({ allowReserved, explode, name, style, value, valueOnly }) => {
|
|
3451
|
+
if (value instanceof Date) {
|
|
3452
|
+
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
3453
|
+
}
|
|
3454
|
+
if (style !== "deepObject" && !explode) {
|
|
3455
|
+
let values = [];
|
|
3456
|
+
Object.entries(value).forEach(([key, v]) => {
|
|
3457
|
+
values = [
|
|
3458
|
+
...values,
|
|
3459
|
+
key,
|
|
3460
|
+
allowReserved ? v : encodeURIComponent(v)
|
|
3461
|
+
];
|
|
3462
|
+
});
|
|
3463
|
+
const joinedValues2 = values.join(",");
|
|
3464
|
+
switch (style) {
|
|
3465
|
+
case "form":
|
|
3466
|
+
return `${name}=${joinedValues2}`;
|
|
3467
|
+
case "label":
|
|
3468
|
+
return `.${joinedValues2}`;
|
|
3469
|
+
case "matrix":
|
|
3470
|
+
return `;${name}=${joinedValues2}`;
|
|
3471
|
+
default:
|
|
3472
|
+
return joinedValues2;
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
const separator = separatorObjectExplode(style);
|
|
3476
|
+
const joinedValues = Object.entries(value).map(([key, v]) => serializePrimitiveParam({
|
|
3477
|
+
allowReserved,
|
|
3478
|
+
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
3479
|
+
value: v
|
|
3480
|
+
})).join(separator);
|
|
3481
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
3482
|
+
};
|
|
3483
|
+
}
|
|
3484
|
+
});
|
|
3485
|
+
|
|
3486
|
+
// packages/experience-design-system-client/dist/src/generated/client/utils.gen.js
|
|
3487
|
+
var PATH_PARAM_RE, defaultPathSerializer, createQuerySerializer, getParseAs, checkForExistence, setAuthParams, buildUrl, getUrl, mergeConfigs, mergeHeaders, Interceptors, createInterceptors, defaultQuerySerializer, defaultHeaders, createConfig;
|
|
3488
|
+
var init_utils_gen = __esm({
|
|
3489
|
+
"packages/experience-design-system-client/dist/src/generated/client/utils.gen.js"() {
|
|
3490
|
+
"use strict";
|
|
3491
|
+
init_auth_gen();
|
|
3492
|
+
init_bodySerializer_gen();
|
|
3493
|
+
init_pathSerializer_gen();
|
|
3494
|
+
PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
3495
|
+
defaultPathSerializer = ({ path: path5, url: _url }) => {
|
|
3496
|
+
let url = _url;
|
|
3497
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
3498
|
+
if (matches) {
|
|
3499
|
+
for (const match of matches) {
|
|
3500
|
+
let explode = false;
|
|
3501
|
+
let name = match.substring(1, match.length - 1);
|
|
3502
|
+
let style = "simple";
|
|
3503
|
+
if (name.endsWith("*")) {
|
|
3504
|
+
explode = true;
|
|
3505
|
+
name = name.substring(0, name.length - 1);
|
|
3506
|
+
}
|
|
3507
|
+
if (name.startsWith(".")) {
|
|
3508
|
+
name = name.substring(1);
|
|
3509
|
+
style = "label";
|
|
3510
|
+
} else if (name.startsWith(";")) {
|
|
3511
|
+
name = name.substring(1);
|
|
3512
|
+
style = "matrix";
|
|
3513
|
+
}
|
|
3514
|
+
const value = path5[name];
|
|
3515
|
+
if (value === void 0 || value === null) {
|
|
3516
|
+
continue;
|
|
3517
|
+
}
|
|
3518
|
+
if (Array.isArray(value)) {
|
|
3519
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
3520
|
+
continue;
|
|
3521
|
+
}
|
|
3522
|
+
if (typeof value === "object") {
|
|
3523
|
+
url = url.replace(match, serializeObjectParam({
|
|
3524
|
+
explode,
|
|
3525
|
+
name,
|
|
3526
|
+
style,
|
|
3527
|
+
value,
|
|
3528
|
+
valueOnly: true
|
|
3529
|
+
}));
|
|
3530
|
+
continue;
|
|
3531
|
+
}
|
|
3532
|
+
if (style === "matrix") {
|
|
3533
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
3534
|
+
name,
|
|
3535
|
+
value
|
|
3536
|
+
})}`);
|
|
3537
|
+
continue;
|
|
3538
|
+
}
|
|
3539
|
+
const replaceValue = encodeURIComponent(style === "label" ? `.${value}` : value);
|
|
3540
|
+
url = url.replace(match, replaceValue);
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
return url;
|
|
3544
|
+
};
|
|
3545
|
+
createQuerySerializer = ({ allowReserved, array: array2, object } = {}) => {
|
|
3546
|
+
const querySerializer = (queryParams) => {
|
|
3547
|
+
const search = [];
|
|
3548
|
+
if (queryParams && typeof queryParams === "object") {
|
|
3549
|
+
for (const name in queryParams) {
|
|
3550
|
+
const value = queryParams[name];
|
|
3551
|
+
if (value === void 0 || value === null) {
|
|
3552
|
+
continue;
|
|
3553
|
+
}
|
|
3554
|
+
if (Array.isArray(value)) {
|
|
3555
|
+
const serializedArray = serializeArrayParam({
|
|
3556
|
+
allowReserved,
|
|
3557
|
+
explode: true,
|
|
3558
|
+
name,
|
|
3559
|
+
style: "form",
|
|
3560
|
+
value,
|
|
3561
|
+
...array2
|
|
3562
|
+
});
|
|
3563
|
+
if (serializedArray)
|
|
3564
|
+
search.push(serializedArray);
|
|
3565
|
+
} else if (typeof value === "object") {
|
|
3566
|
+
const serializedObject = serializeObjectParam({
|
|
3567
|
+
allowReserved,
|
|
3568
|
+
explode: true,
|
|
3569
|
+
name,
|
|
3570
|
+
style: "deepObject",
|
|
3571
|
+
value,
|
|
3572
|
+
...object
|
|
3573
|
+
});
|
|
3574
|
+
if (serializedObject)
|
|
3575
|
+
search.push(serializedObject);
|
|
3576
|
+
} else {
|
|
3577
|
+
const serializedPrimitive = serializePrimitiveParam({
|
|
3578
|
+
allowReserved,
|
|
3579
|
+
name,
|
|
3580
|
+
value
|
|
3581
|
+
});
|
|
3582
|
+
if (serializedPrimitive)
|
|
3583
|
+
search.push(serializedPrimitive);
|
|
3584
|
+
}
|
|
3585
|
+
}
|
|
3586
|
+
}
|
|
3587
|
+
return search.join("&");
|
|
3588
|
+
};
|
|
3589
|
+
return querySerializer;
|
|
3590
|
+
};
|
|
3591
|
+
getParseAs = (contentType) => {
|
|
3592
|
+
if (!contentType) {
|
|
3593
|
+
return "stream";
|
|
3594
|
+
}
|
|
3595
|
+
const cleanContent = contentType.split(";")[0]?.trim();
|
|
3596
|
+
if (!cleanContent) {
|
|
3597
|
+
return;
|
|
3598
|
+
}
|
|
3599
|
+
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
3600
|
+
return "json";
|
|
3601
|
+
}
|
|
3602
|
+
if (cleanContent === "multipart/form-data") {
|
|
3603
|
+
return "formData";
|
|
3604
|
+
}
|
|
3605
|
+
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
3606
|
+
return "blob";
|
|
3607
|
+
}
|
|
3608
|
+
if (cleanContent.startsWith("text/")) {
|
|
3609
|
+
return "text";
|
|
3610
|
+
}
|
|
3611
|
+
return;
|
|
3612
|
+
};
|
|
3613
|
+
checkForExistence = (options, name) => {
|
|
3614
|
+
if (!name) {
|
|
3615
|
+
return false;
|
|
3616
|
+
}
|
|
3617
|
+
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
3618
|
+
return true;
|
|
3619
|
+
}
|
|
3620
|
+
return false;
|
|
3621
|
+
};
|
|
3622
|
+
setAuthParams = async ({ security, ...options }) => {
|
|
3623
|
+
for (const auth of security) {
|
|
3624
|
+
if (checkForExistence(options, auth.name)) {
|
|
3625
|
+
continue;
|
|
3626
|
+
}
|
|
3627
|
+
const token = await getAuthToken(auth, options.auth);
|
|
3628
|
+
if (!token) {
|
|
3629
|
+
continue;
|
|
3630
|
+
}
|
|
3631
|
+
const name = auth.name ?? "Authorization";
|
|
3632
|
+
switch (auth.in) {
|
|
3633
|
+
case "query":
|
|
3634
|
+
if (!options.query) {
|
|
3635
|
+
options.query = {};
|
|
3636
|
+
}
|
|
3637
|
+
options.query[name] = token;
|
|
3638
|
+
break;
|
|
3639
|
+
case "cookie":
|
|
3640
|
+
options.headers.append("Cookie", `${name}=${token}`);
|
|
3641
|
+
break;
|
|
3642
|
+
case "header":
|
|
3643
|
+
default:
|
|
3644
|
+
options.headers.set(name, token);
|
|
3645
|
+
break;
|
|
3646
|
+
}
|
|
3647
|
+
}
|
|
3648
|
+
};
|
|
3649
|
+
buildUrl = (options) => {
|
|
3650
|
+
const url = getUrl({
|
|
3651
|
+
baseUrl: options.baseUrl,
|
|
3652
|
+
path: options.path,
|
|
3653
|
+
query: options.query,
|
|
3654
|
+
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
3655
|
+
url: options.url
|
|
3656
|
+
});
|
|
3657
|
+
return url;
|
|
3658
|
+
};
|
|
3659
|
+
getUrl = ({ baseUrl, path: path5, query, querySerializer, url: _url }) => {
|
|
3660
|
+
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
3661
|
+
let url = (baseUrl ?? "") + pathUrl;
|
|
3662
|
+
if (path5) {
|
|
3663
|
+
url = defaultPathSerializer({ path: path5, url });
|
|
3664
|
+
}
|
|
3665
|
+
let search = query ? querySerializer(query) : "";
|
|
3666
|
+
if (search.startsWith("?")) {
|
|
3667
|
+
search = search.substring(1);
|
|
3668
|
+
}
|
|
3669
|
+
if (search) {
|
|
3670
|
+
url += `?${search}`;
|
|
3671
|
+
}
|
|
3672
|
+
return url;
|
|
3673
|
+
};
|
|
3674
|
+
mergeConfigs = (a, b) => {
|
|
3675
|
+
const config = { ...a, ...b };
|
|
3676
|
+
if (config.baseUrl?.endsWith("/")) {
|
|
3677
|
+
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
3678
|
+
}
|
|
3679
|
+
config.headers = mergeHeaders(a.headers, b.headers);
|
|
3680
|
+
return config;
|
|
3681
|
+
};
|
|
3682
|
+
mergeHeaders = (...headers2) => {
|
|
3683
|
+
const mergedHeaders = new Headers();
|
|
3684
|
+
for (const header of headers2) {
|
|
3685
|
+
if (!header || typeof header !== "object") {
|
|
3686
|
+
continue;
|
|
3687
|
+
}
|
|
3688
|
+
const iterator = header instanceof Headers ? header.entries() : Object.entries(header);
|
|
3689
|
+
for (const [key, value] of iterator) {
|
|
3690
|
+
if (value === null) {
|
|
3691
|
+
mergedHeaders.delete(key);
|
|
3692
|
+
} else if (Array.isArray(value)) {
|
|
3693
|
+
for (const v of value) {
|
|
3694
|
+
mergedHeaders.append(key, v);
|
|
3695
|
+
}
|
|
3696
|
+
} else if (value !== void 0) {
|
|
3697
|
+
mergedHeaders.set(key, typeof value === "object" ? JSON.stringify(value) : value);
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
}
|
|
3701
|
+
return mergedHeaders;
|
|
3702
|
+
};
|
|
3703
|
+
Interceptors = class {
|
|
3704
|
+
_fns;
|
|
3705
|
+
constructor() {
|
|
3706
|
+
this._fns = [];
|
|
3707
|
+
}
|
|
3708
|
+
clear() {
|
|
3709
|
+
this._fns = [];
|
|
3710
|
+
}
|
|
3711
|
+
getInterceptorIndex(id) {
|
|
3712
|
+
if (typeof id === "number") {
|
|
3713
|
+
return this._fns[id] ? id : -1;
|
|
3714
|
+
} else {
|
|
3715
|
+
return this._fns.indexOf(id);
|
|
3716
|
+
}
|
|
3717
|
+
}
|
|
3718
|
+
exists(id) {
|
|
3719
|
+
const index = this.getInterceptorIndex(id);
|
|
3720
|
+
return !!this._fns[index];
|
|
3721
|
+
}
|
|
3722
|
+
eject(id) {
|
|
3723
|
+
const index = this.getInterceptorIndex(id);
|
|
3724
|
+
if (this._fns[index]) {
|
|
3725
|
+
this._fns[index] = null;
|
|
3726
|
+
}
|
|
3727
|
+
}
|
|
3728
|
+
update(id, fn) {
|
|
3729
|
+
const index = this.getInterceptorIndex(id);
|
|
3730
|
+
if (this._fns[index]) {
|
|
3731
|
+
this._fns[index] = fn;
|
|
3732
|
+
return id;
|
|
3733
|
+
} else {
|
|
3734
|
+
return false;
|
|
3735
|
+
}
|
|
3736
|
+
}
|
|
3737
|
+
use(fn) {
|
|
3738
|
+
this._fns = [...this._fns, fn];
|
|
3739
|
+
return this._fns.length - 1;
|
|
3740
|
+
}
|
|
3741
|
+
};
|
|
3742
|
+
createInterceptors = () => ({
|
|
3743
|
+
error: new Interceptors(),
|
|
3744
|
+
request: new Interceptors(),
|
|
3745
|
+
response: new Interceptors()
|
|
3746
|
+
});
|
|
3747
|
+
defaultQuerySerializer = createQuerySerializer({
|
|
3748
|
+
allowReserved: false,
|
|
3749
|
+
array: {
|
|
3750
|
+
explode: true,
|
|
3751
|
+
style: "form"
|
|
3752
|
+
},
|
|
3753
|
+
object: {
|
|
3754
|
+
explode: true,
|
|
3755
|
+
style: "deepObject"
|
|
3756
|
+
}
|
|
3757
|
+
});
|
|
3758
|
+
defaultHeaders = {
|
|
3759
|
+
"Content-Type": "application/json"
|
|
3760
|
+
};
|
|
3761
|
+
createConfig = (override = {}) => ({
|
|
3762
|
+
...jsonBodySerializer,
|
|
3763
|
+
headers: defaultHeaders,
|
|
3764
|
+
parseAs: "auto",
|
|
3765
|
+
querySerializer: defaultQuerySerializer,
|
|
3766
|
+
...override
|
|
3767
|
+
});
|
|
3768
|
+
}
|
|
3769
|
+
});
|
|
3770
|
+
|
|
3771
|
+
// packages/experience-design-system-client/dist/src/generated/client/client.gen.js
|
|
3772
|
+
var createClient;
|
|
3773
|
+
var init_client_gen = __esm({
|
|
3774
|
+
"packages/experience-design-system-client/dist/src/generated/client/client.gen.js"() {
|
|
3775
|
+
"use strict";
|
|
3776
|
+
init_utils_gen();
|
|
3777
|
+
createClient = (config = {}) => {
|
|
3778
|
+
let _config = mergeConfigs(createConfig(), config);
|
|
3779
|
+
const getConfig = () => ({ ..._config });
|
|
3780
|
+
const setConfig = (config2) => {
|
|
3781
|
+
_config = mergeConfigs(_config, config2);
|
|
3782
|
+
return getConfig();
|
|
3783
|
+
};
|
|
3784
|
+
const interceptors = createInterceptors();
|
|
3785
|
+
const request = async (options) => {
|
|
3786
|
+
const opts = {
|
|
3787
|
+
..._config,
|
|
3788
|
+
...options,
|
|
3789
|
+
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
3790
|
+
headers: mergeHeaders(_config.headers, options.headers),
|
|
3791
|
+
serializedBody: void 0
|
|
3792
|
+
};
|
|
3793
|
+
if (opts.security) {
|
|
3794
|
+
await setAuthParams({
|
|
3795
|
+
...opts,
|
|
3796
|
+
security: opts.security
|
|
3797
|
+
});
|
|
3798
|
+
}
|
|
3799
|
+
if (opts.requestValidator) {
|
|
3800
|
+
await opts.requestValidator(opts);
|
|
3801
|
+
}
|
|
3802
|
+
if (opts.body && opts.bodySerializer) {
|
|
3803
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
3804
|
+
}
|
|
3805
|
+
if (opts.serializedBody === void 0 || opts.serializedBody === "") {
|
|
3806
|
+
opts.headers.delete("Content-Type");
|
|
3807
|
+
}
|
|
3808
|
+
const url = buildUrl(opts);
|
|
3809
|
+
const requestInit = {
|
|
3810
|
+
redirect: "follow",
|
|
3811
|
+
...opts,
|
|
3812
|
+
body: opts.serializedBody
|
|
3813
|
+
};
|
|
3814
|
+
let request2 = new Request(url, requestInit);
|
|
3815
|
+
for (const fn of interceptors.request._fns) {
|
|
3816
|
+
if (fn) {
|
|
3817
|
+
request2 = await fn(request2, opts);
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3820
|
+
const _fetch = opts.fetch;
|
|
3821
|
+
let response = await _fetch(request2);
|
|
3822
|
+
for (const fn of interceptors.response._fns) {
|
|
3823
|
+
if (fn) {
|
|
3824
|
+
response = await fn(response, request2, opts);
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3827
|
+
const result = {
|
|
3828
|
+
request: request2,
|
|
3829
|
+
response
|
|
3830
|
+
};
|
|
3831
|
+
if (response.ok) {
|
|
3832
|
+
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
3833
|
+
return opts.responseStyle === "data" ? {} : {
|
|
3834
|
+
data: {},
|
|
3835
|
+
...result
|
|
3836
|
+
};
|
|
3837
|
+
}
|
|
3838
|
+
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
3839
|
+
let data;
|
|
3840
|
+
switch (parseAs) {
|
|
3841
|
+
case "arrayBuffer":
|
|
3842
|
+
case "blob":
|
|
3843
|
+
case "formData":
|
|
3844
|
+
case "json":
|
|
3845
|
+
case "text":
|
|
3846
|
+
data = await response[parseAs]();
|
|
3847
|
+
break;
|
|
3848
|
+
case "stream":
|
|
3849
|
+
return opts.responseStyle === "data" ? response.body : {
|
|
3850
|
+
data: response.body,
|
|
3851
|
+
...result
|
|
3852
|
+
};
|
|
3853
|
+
}
|
|
3854
|
+
if (parseAs === "json") {
|
|
3855
|
+
if (opts.responseValidator) {
|
|
3856
|
+
await opts.responseValidator(data);
|
|
3857
|
+
}
|
|
3858
|
+
if (opts.responseTransformer) {
|
|
3859
|
+
data = await opts.responseTransformer(data);
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
return opts.responseStyle === "data" ? data : {
|
|
3863
|
+
data,
|
|
3864
|
+
...result
|
|
3865
|
+
};
|
|
3866
|
+
}
|
|
3867
|
+
const textError = await response.text();
|
|
3868
|
+
let jsonError;
|
|
3869
|
+
try {
|
|
3870
|
+
jsonError = JSON.parse(textError);
|
|
3871
|
+
} catch {
|
|
3872
|
+
}
|
|
3873
|
+
const error = jsonError ?? textError;
|
|
3874
|
+
let finalError = error;
|
|
3875
|
+
for (const fn of interceptors.error._fns) {
|
|
3876
|
+
if (fn) {
|
|
3877
|
+
finalError = await fn(error, response, request2, opts);
|
|
3878
|
+
}
|
|
3879
|
+
}
|
|
3880
|
+
finalError = finalError || {};
|
|
3881
|
+
if (opts.throwOnError) {
|
|
3882
|
+
throw finalError;
|
|
3883
|
+
}
|
|
3884
|
+
return opts.responseStyle === "data" ? void 0 : {
|
|
3885
|
+
error: finalError,
|
|
3886
|
+
...result
|
|
3887
|
+
};
|
|
3888
|
+
};
|
|
3889
|
+
return {
|
|
3890
|
+
buildUrl,
|
|
3891
|
+
connect: (options) => request({ ...options, method: "CONNECT" }),
|
|
3892
|
+
delete: (options) => request({ ...options, method: "DELETE" }),
|
|
3893
|
+
get: (options) => request({ ...options, method: "GET" }),
|
|
3894
|
+
getConfig,
|
|
3895
|
+
head: (options) => request({ ...options, method: "HEAD" }),
|
|
3896
|
+
interceptors,
|
|
3897
|
+
options: (options) => request({ ...options, method: "OPTIONS" }),
|
|
3898
|
+
patch: (options) => request({ ...options, method: "PATCH" }),
|
|
3899
|
+
post: (options) => request({ ...options, method: "POST" }),
|
|
3900
|
+
put: (options) => request({ ...options, method: "PUT" }),
|
|
3901
|
+
request,
|
|
3902
|
+
setConfig,
|
|
3903
|
+
trace: (options) => request({ ...options, method: "TRACE" })
|
|
3904
|
+
};
|
|
3905
|
+
};
|
|
3906
|
+
}
|
|
3907
|
+
});
|
|
3908
|
+
|
|
3909
|
+
// packages/experience-design-system-client/dist/src/generated/client/index.js
|
|
3910
|
+
var init_client = __esm({
|
|
3911
|
+
"packages/experience-design-system-client/dist/src/generated/client/index.js"() {
|
|
3912
|
+
"use strict";
|
|
3913
|
+
init_bodySerializer_gen();
|
|
3914
|
+
init_params_gen();
|
|
3915
|
+
init_client_gen();
|
|
3916
|
+
init_utils_gen();
|
|
3917
|
+
}
|
|
3918
|
+
});
|
|
3919
|
+
|
|
3920
|
+
// packages/experience-design-system-client/dist/src/generated/client.gen.js
|
|
3921
|
+
var client;
|
|
3922
|
+
var init_client_gen2 = __esm({
|
|
3923
|
+
"packages/experience-design-system-client/dist/src/generated/client.gen.js"() {
|
|
3924
|
+
"use strict";
|
|
3925
|
+
init_client();
|
|
3926
|
+
client = createClient(createConfig());
|
|
3927
|
+
}
|
|
3928
|
+
});
|
|
3929
|
+
|
|
3930
|
+
// packages/experience-design-system-client/dist/src/generated/sdk.gen.js
|
|
3931
|
+
var init_sdk_gen = __esm({
|
|
3932
|
+
"packages/experience-design-system-client/dist/src/generated/sdk.gen.js"() {
|
|
3933
|
+
"use strict";
|
|
3934
|
+
init_client_gen2();
|
|
3935
|
+
}
|
|
3936
|
+
});
|
|
3937
|
+
|
|
3938
|
+
// packages/experience-design-system-client/dist/src/generated/index.js
|
|
3939
|
+
var init_generated = __esm({
|
|
3940
|
+
"packages/experience-design-system-client/dist/src/generated/index.js"() {
|
|
3941
|
+
"use strict";
|
|
3942
|
+
init_types_gen();
|
|
3943
|
+
init_sdk_gen();
|
|
3944
|
+
}
|
|
3945
|
+
});
|
|
3946
|
+
|
|
3947
|
+
// packages/experience-design-system-client/dist/src/index.js
|
|
3948
|
+
var init_src2 = __esm({
|
|
3949
|
+
"packages/experience-design-system-client/dist/src/index.js"() {
|
|
3950
|
+
"use strict";
|
|
3951
|
+
init_generated();
|
|
3952
|
+
init_client();
|
|
3953
|
+
}
|
|
3954
|
+
});
|
|
3955
|
+
|
|
3956
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/api.js
|
|
3957
|
+
var init_api = __esm({
|
|
3958
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/api.js"() {
|
|
3959
|
+
"use strict";
|
|
3960
|
+
}
|
|
3961
|
+
});
|
|
3962
|
+
|
|
3963
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/index.js
|
|
3964
|
+
var init_constants5 = __esm({
|
|
3965
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/index.js"() {
|
|
3966
|
+
"use strict";
|
|
3967
|
+
init_api();
|
|
3968
|
+
}
|
|
3969
|
+
});
|
|
3970
|
+
|
|
3971
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/http-utils.js
|
|
3972
|
+
var init_http_utils = __esm({
|
|
3973
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/http-utils.js"() {
|
|
3974
|
+
"use strict";
|
|
3975
|
+
}
|
|
3976
|
+
});
|
|
3977
|
+
|
|
3978
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/sanitize-preview.js
|
|
3979
|
+
var init_sanitize_preview = __esm({
|
|
3980
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/sanitize-preview.js"() {
|
|
3981
|
+
"use strict";
|
|
3982
|
+
}
|
|
3983
|
+
});
|
|
3984
|
+
|
|
3985
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/host-utils.js
|
|
3986
|
+
var init_host_utils2 = __esm({
|
|
3987
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/host-utils.js"() {
|
|
3988
|
+
"use strict";
|
|
3989
|
+
}
|
|
3990
|
+
});
|
|
3991
|
+
|
|
3992
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/types/api-error.js
|
|
3993
|
+
var init_api_error = __esm({
|
|
3994
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/types/api-error.js"() {
|
|
3995
|
+
"use strict";
|
|
3996
|
+
}
|
|
3997
|
+
});
|
|
3998
|
+
|
|
3999
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/api-client/api-client.js
|
|
4000
|
+
var init_api_client = __esm({
|
|
4001
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/api-client/api-client.js"() {
|
|
4002
|
+
"use strict";
|
|
4003
|
+
init_src2();
|
|
4004
|
+
init_constants5();
|
|
4005
|
+
init_http_utils();
|
|
4006
|
+
init_sanitize_preview();
|
|
4007
|
+
init_host_utils2();
|
|
4008
|
+
init_api_error();
|
|
4009
|
+
}
|
|
4010
|
+
});
|
|
4011
|
+
|
|
4012
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/clients.js
|
|
4013
|
+
var init_clients = __esm({
|
|
4014
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/clients.js"() {
|
|
4015
|
+
"use strict";
|
|
4016
|
+
init_api_client();
|
|
4017
|
+
}
|
|
4018
|
+
});
|
|
4019
|
+
|
|
4020
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/has-breaking-changes.js
|
|
4021
|
+
var init_has_breaking_changes = __esm({
|
|
4022
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/has-breaking-changes.js"() {
|
|
4023
|
+
"use strict";
|
|
4024
|
+
}
|
|
4025
|
+
});
|
|
4026
|
+
|
|
4027
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/is-empty-preview.js
|
|
4028
|
+
var init_is_empty_preview = __esm({
|
|
4029
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/is-empty-preview.js"() {
|
|
4030
|
+
"use strict";
|
|
4031
|
+
}
|
|
4032
|
+
});
|
|
4033
|
+
|
|
4034
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-write-result.js
|
|
4035
|
+
var init_parse_write_result = __esm({
|
|
4036
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-write-result.js"() {
|
|
4037
|
+
"use strict";
|
|
4038
|
+
}
|
|
4039
|
+
});
|
|
4040
|
+
|
|
4041
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/token-utils.js
|
|
4042
|
+
var init_token_utils = __esm({
|
|
4043
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/token-utils.js"() {
|
|
4044
|
+
"use strict";
|
|
4045
|
+
}
|
|
4046
|
+
});
|
|
4047
|
+
|
|
4048
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/services/run-apply-service.js
|
|
4049
|
+
var init_run_apply_service = __esm({
|
|
4050
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/services/run-apply-service.js"() {
|
|
4051
|
+
"use strict";
|
|
4052
|
+
init_shared();
|
|
4053
|
+
init_clients();
|
|
4054
|
+
init_has_breaking_changes();
|
|
4055
|
+
init_is_empty_preview();
|
|
4056
|
+
init_parse_write_result();
|
|
4057
|
+
init_token_utils();
|
|
4058
|
+
init_api_error();
|
|
4059
|
+
}
|
|
4060
|
+
});
|
|
4061
|
+
|
|
4062
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/apply-components-endpoint.js
|
|
4063
|
+
var init_apply_components_endpoint = __esm({
|
|
4064
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/apply-components-endpoint.js"() {
|
|
4065
|
+
"use strict";
|
|
4066
|
+
init_run_apply_service();
|
|
4067
|
+
}
|
|
4068
|
+
});
|
|
4069
|
+
|
|
4070
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/contentful-urls.js
|
|
4071
|
+
var init_contentful_urls = __esm({
|
|
4072
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/contentful-urls.js"() {
|
|
4073
|
+
"use strict";
|
|
4074
|
+
}
|
|
4075
|
+
});
|
|
4076
|
+
|
|
4077
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-preview-errors.js
|
|
4078
|
+
var init_parse_preview_errors = __esm({
|
|
4079
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-preview-errors.js"() {
|
|
4080
|
+
"use strict";
|
|
4081
|
+
}
|
|
4082
|
+
});
|
|
4083
|
+
|
|
4084
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/detect-slot-cycles.js
|
|
4085
|
+
var init_detect_slot_cycles = __esm({
|
|
4086
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/detect-slot-cycles.js"() {
|
|
4087
|
+
"use strict";
|
|
4088
|
+
init_find_slot_cycles();
|
|
4089
|
+
}
|
|
4090
|
+
});
|
|
4091
|
+
|
|
4092
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/detect-slot-cycles.js
|
|
4093
|
+
var init_detect_slot_cycles2 = __esm({
|
|
4094
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/detect-slot-cycles.js"() {
|
|
4095
|
+
"use strict";
|
|
4096
|
+
init_detect_slot_cycles();
|
|
4097
|
+
}
|
|
4098
|
+
});
|
|
4099
|
+
|
|
4100
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-slot-cycle-report.js
|
|
4101
|
+
var init_format_slot_cycle_report = __esm({
|
|
4102
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-slot-cycle-report.js"() {
|
|
4103
|
+
"use strict";
|
|
4104
|
+
init_format_cycle_path();
|
|
4105
|
+
init_suggest_cycle_break_edge();
|
|
4106
|
+
}
|
|
4107
|
+
});
|
|
4108
|
+
|
|
4109
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-slot-cycles.js
|
|
4110
|
+
var init_assert_no_slot_cycles = __esm({
|
|
4111
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-slot-cycles.js"() {
|
|
4112
|
+
"use strict";
|
|
4113
|
+
init_detect_slot_cycles();
|
|
4114
|
+
init_format_slot_cycle_report();
|
|
4115
|
+
}
|
|
4116
|
+
});
|
|
4117
|
+
|
|
4118
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-unresolved-slot-references.js
|
|
4119
|
+
var init_format_unresolved_slot_references = __esm({
|
|
4120
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-unresolved-slot-references.js"() {
|
|
4121
|
+
"use strict";
|
|
4122
|
+
}
|
|
4123
|
+
});
|
|
4124
|
+
|
|
4125
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-unresolved-slot-references.js
|
|
4126
|
+
var init_assert_no_unresolved_slot_references = __esm({
|
|
4127
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-unresolved-slot-references.js"() {
|
|
4128
|
+
"use strict";
|
|
4129
|
+
init_shared();
|
|
4130
|
+
init_format_unresolved_slot_references();
|
|
4131
|
+
}
|
|
4132
|
+
});
|
|
4133
|
+
|
|
4134
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-slot-cycle-report.js
|
|
4135
|
+
var init_format_slot_cycle_report2 = __esm({
|
|
4136
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-slot-cycle-report.js"() {
|
|
4137
|
+
"use strict";
|
|
4138
|
+
init_format_slot_cycle_report();
|
|
4139
|
+
}
|
|
4140
|
+
});
|
|
4141
|
+
|
|
4142
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-unresolved-slot-references.js
|
|
4143
|
+
var init_format_unresolved_slot_references2 = __esm({
|
|
4144
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-unresolved-slot-references.js"() {
|
|
4145
|
+
"use strict";
|
|
4146
|
+
init_format_unresolved_slot_references();
|
|
4147
|
+
}
|
|
4148
|
+
});
|
|
4149
|
+
|
|
4150
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-component-patch.js
|
|
4151
|
+
var init_apply_component_patch = __esm({
|
|
4152
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-component-patch.js"() {
|
|
4153
|
+
"use strict";
|
|
4154
|
+
}
|
|
4155
|
+
});
|
|
4156
|
+
|
|
4157
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-cdf-component.js
|
|
4158
|
+
var init_mutate_cdf_component = __esm({
|
|
4159
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-cdf-component.js"() {
|
|
4160
|
+
"use strict";
|
|
4161
|
+
init_apply_component_patch();
|
|
4162
|
+
}
|
|
4163
|
+
});
|
|
4164
|
+
|
|
4165
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-dot-path.js
|
|
4166
|
+
var init_apply_dot_path = __esm({
|
|
4167
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-dot-path.js"() {
|
|
4168
|
+
"use strict";
|
|
4169
|
+
}
|
|
4170
|
+
});
|
|
4171
|
+
|
|
4172
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-dot-path.js
|
|
4173
|
+
var init_mutate_dot_path = __esm({
|
|
4174
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-dot-path.js"() {
|
|
4175
|
+
"use strict";
|
|
4176
|
+
init_apply_dot_path();
|
|
4177
|
+
}
|
|
4178
|
+
});
|
|
4179
|
+
|
|
4180
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/warn-on-unknown-patch-components.js
|
|
4181
|
+
var init_warn_on_unknown_patch_components = __esm({
|
|
4182
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/warn-on-unknown-patch-components.js"() {
|
|
4183
|
+
"use strict";
|
|
4184
|
+
}
|
|
4185
|
+
});
|
|
4186
|
+
|
|
4187
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/warn-on-unknown-patch-components.js
|
|
4188
|
+
var init_warn_on_unknown_patch_components2 = __esm({
|
|
4189
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/warn-on-unknown-patch-components.js"() {
|
|
4190
|
+
"use strict";
|
|
4191
|
+
init_warn_on_unknown_patch_components();
|
|
4192
|
+
}
|
|
4193
|
+
});
|
|
4194
|
+
|
|
4195
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/annotate-preview.js
|
|
4196
|
+
var init_annotate_preview = __esm({
|
|
4197
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/annotate-preview.js"() {
|
|
4198
|
+
"use strict";
|
|
4199
|
+
}
|
|
4200
|
+
});
|
|
4201
|
+
|
|
4202
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/preview/annotate-preview.js
|
|
4203
|
+
var init_annotate_preview2 = __esm({
|
|
4204
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/preview/annotate-preview.js"() {
|
|
4205
|
+
"use strict";
|
|
4206
|
+
init_annotate_preview();
|
|
4207
|
+
}
|
|
4208
|
+
});
|
|
4209
|
+
|
|
4210
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-binding-diagnostics.js
|
|
4211
|
+
var init_parse_binding_diagnostics = __esm({
|
|
4212
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-binding-diagnostics.js"() {
|
|
4213
|
+
"use strict";
|
|
4214
|
+
}
|
|
4215
|
+
});
|
|
4216
|
+
|
|
4217
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/helpers.js
|
|
4218
|
+
var init_helpers3 = __esm({
|
|
4219
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/helpers.js"() {
|
|
4220
|
+
"use strict";
|
|
4221
|
+
}
|
|
4222
|
+
});
|
|
4223
|
+
|
|
4224
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-json-body.js
|
|
4225
|
+
var init_parse_json_body = __esm({
|
|
4226
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-json-body.js"() {
|
|
4227
|
+
"use strict";
|
|
4228
|
+
init_helpers3();
|
|
4229
|
+
}
|
|
4230
|
+
});
|
|
4231
|
+
|
|
4232
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/strip-lambda-log-prefix.js
|
|
4233
|
+
var init_strip_lambda_log_prefix = __esm({
|
|
4234
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/strip-lambda-log-prefix.js"() {
|
|
4235
|
+
"use strict";
|
|
4236
|
+
}
|
|
4237
|
+
});
|
|
4238
|
+
|
|
4239
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-edsi-error.js
|
|
4240
|
+
var init_parse_edsi_error = __esm({
|
|
4241
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-edsi-error.js"() {
|
|
4242
|
+
"use strict";
|
|
4243
|
+
init_parse_binding_diagnostics();
|
|
4244
|
+
init_parse_json_body();
|
|
4245
|
+
init_helpers3();
|
|
4246
|
+
init_strip_lambda_log_prefix();
|
|
605
4247
|
}
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
const componentFiles = COMPONENT_CATEGORIES.reduce((sum, category) => sum + counts[category], 0);
|
|
613
|
-
if (componentFiles > 0) return { total: counts.total, rows };
|
|
614
|
-
if (counts.json > 0) {
|
|
615
|
-
return { total: counts.total, rows, warning: "No component files found \u2014 only token files detected." };
|
|
4248
|
+
});
|
|
4249
|
+
|
|
4250
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-parsed-edsi-error.js
|
|
4251
|
+
var init_format_parsed_edsi_error = __esm({
|
|
4252
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-parsed-edsi-error.js"() {
|
|
4253
|
+
"use strict";
|
|
616
4254
|
}
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
function keyAction(phase, input, key) {
|
|
628
|
-
if (key.escape) return "back";
|
|
629
|
-
if (phase === "ready") {
|
|
630
|
-
if (key.return) return "confirm";
|
|
631
|
-
if (input === "e") return "change-path";
|
|
4255
|
+
});
|
|
4256
|
+
|
|
4257
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-edsi-error.js
|
|
4258
|
+
var init_format_edsi_error = __esm({
|
|
4259
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-edsi-error.js"() {
|
|
4260
|
+
"use strict";
|
|
4261
|
+
init_helpers3();
|
|
4262
|
+
init_format_parsed_edsi_error();
|
|
4263
|
+
init_parse_edsi_error();
|
|
632
4264
|
}
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
var
|
|
637
|
-
|
|
638
|
-
"packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/logic.ts"() {
|
|
4265
|
+
});
|
|
4266
|
+
|
|
4267
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-api-error.js
|
|
4268
|
+
var init_format_api_error = __esm({
|
|
4269
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-api-error.js"() {
|
|
639
4270
|
"use strict";
|
|
640
|
-
|
|
641
|
-
"node_modules",
|
|
642
|
-
"dist",
|
|
643
|
-
"build",
|
|
644
|
-
".next",
|
|
645
|
-
".nuxt",
|
|
646
|
-
"coverage",
|
|
647
|
-
"storybook-static",
|
|
648
|
-
"out",
|
|
649
|
-
".git"
|
|
650
|
-
]);
|
|
651
|
-
CATEGORY_BY_EXTENSION = /* @__PURE__ */ new Map([
|
|
652
|
-
["tsx", "tsx"],
|
|
653
|
-
["ts", "ts"],
|
|
654
|
-
["vue", "vue"],
|
|
655
|
-
["astro", "astro"],
|
|
656
|
-
["jsx", "jsx"],
|
|
657
|
-
["js", "js"],
|
|
658
|
-
["json", "json"]
|
|
659
|
-
]);
|
|
660
|
-
COMPONENT_CATEGORIES = ["tsx", "ts", "vue", "astro", "jsx", "js"];
|
|
661
|
-
ROW_LABELS = {
|
|
662
|
-
tsx: ".tsx files",
|
|
663
|
-
ts: ".ts files",
|
|
664
|
-
vue: ".vue files",
|
|
665
|
-
astro: ".astro files",
|
|
666
|
-
jsx: ".jsx files",
|
|
667
|
-
js: ".js files",
|
|
668
|
-
json: ".json files (design tokens)",
|
|
669
|
-
other: "other (ignored)"
|
|
670
|
-
};
|
|
671
|
-
ROW_ORDER = ["tsx", "ts", "vue", "astro", "jsx", "js", "json", "other"];
|
|
4271
|
+
init_format_edsi_error();
|
|
672
4272
|
}
|
|
673
4273
|
});
|
|
674
4274
|
|
|
675
|
-
// packages/experience-design-system-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
return CONTROLS[phase];
|
|
679
|
-
}
|
|
680
|
-
function usePathValidationControls(phase, handlers) {
|
|
681
|
-
useInput5((input, key) => {
|
|
682
|
-
const action = keyAction(phase, input, key);
|
|
683
|
-
if (action === "confirm") handlers.onConfirm();
|
|
684
|
-
else if (action === "change-path") handlers.onChangePath();
|
|
685
|
-
else if (action === "back") handlers.onBack();
|
|
686
|
-
});
|
|
687
|
-
}
|
|
688
|
-
var CONTROLS;
|
|
689
|
-
var init_controls3 = __esm({
|
|
690
|
-
"packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/controls.ts"() {
|
|
4275
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/index.js
|
|
4276
|
+
var init_edsi_errors = __esm({
|
|
4277
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/index.js"() {
|
|
691
4278
|
"use strict";
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
{ keys: "e", label: "Change path" },
|
|
698
|
-
{ keys: "Esc", label: "Back" }
|
|
699
|
-
],
|
|
700
|
-
failed: [
|
|
701
|
-
{ keys: "Enter/e", label: "Try a different path" },
|
|
702
|
-
{ keys: "Esc", label: "Back" }
|
|
703
|
-
]
|
|
704
|
-
};
|
|
4279
|
+
init_parse_edsi_error();
|
|
4280
|
+
init_format_edsi_error();
|
|
4281
|
+
init_format_parsed_edsi_error();
|
|
4282
|
+
init_format_api_error();
|
|
4283
|
+
init_strip_lambda_log_prefix();
|
|
705
4284
|
}
|
|
706
4285
|
});
|
|
707
4286
|
|
|
708
|
-
// packages/experience-design-system-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
return (await stat(path)).isFile();
|
|
714
|
-
} catch {
|
|
715
|
-
return false;
|
|
4287
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/parse-edsi-error.js
|
|
4288
|
+
var init_parse_edsi_error2 = __esm({
|
|
4289
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/parse-edsi-error.js"() {
|
|
4290
|
+
"use strict";
|
|
4291
|
+
init_edsi_errors();
|
|
716
4292
|
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
async function countFiles(directory) {
|
|
725
|
-
let entries;
|
|
726
|
-
try {
|
|
727
|
-
entries = await readdir(directory, { withFileTypes: true });
|
|
728
|
-
} catch {
|
|
729
|
-
return emptyCounts();
|
|
4293
|
+
});
|
|
4294
|
+
|
|
4295
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-edsi-error.js
|
|
4296
|
+
var init_format_edsi_error2 = __esm({
|
|
4297
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-edsi-error.js"() {
|
|
4298
|
+
"use strict";
|
|
4299
|
+
init_edsi_errors();
|
|
730
4300
|
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
4301
|
+
});
|
|
4302
|
+
|
|
4303
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-api-error.js
|
|
4304
|
+
var init_format_api_error2 = __esm({
|
|
4305
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-api-error.js"() {
|
|
4306
|
+
"use strict";
|
|
4307
|
+
init_edsi_errors();
|
|
4308
|
+
}
|
|
4309
|
+
});
|
|
4310
|
+
|
|
4311
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/collect-json-files.js
|
|
4312
|
+
var init_collect_json_files = __esm({
|
|
4313
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/collect-json-files.js"() {
|
|
4314
|
+
"use strict";
|
|
4315
|
+
}
|
|
4316
|
+
});
|
|
4317
|
+
|
|
4318
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/read-tokens-from-path.js
|
|
4319
|
+
var init_read_tokens_from_path = __esm({
|
|
4320
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/read-tokens-from-path.js"() {
|
|
4321
|
+
"use strict";
|
|
4322
|
+
init_shared();
|
|
4323
|
+
init_collect_json_files();
|
|
4324
|
+
}
|
|
4325
|
+
});
|
|
4326
|
+
|
|
4327
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/tokens/read-tokens-from-path.js
|
|
4328
|
+
var init_read_tokens_from_path2 = __esm({
|
|
4329
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/tokens/read-tokens-from-path.js"() {
|
|
4330
|
+
"use strict";
|
|
4331
|
+
init_read_tokens_from_path();
|
|
4332
|
+
}
|
|
4333
|
+
});
|
|
4334
|
+
|
|
4335
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/client/build-contentful-management-client.js
|
|
4336
|
+
import { createClient as createClient2 } from "contentful-management";
|
|
4337
|
+
var init_build_contentful_management_client = __esm({
|
|
4338
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/client/build-contentful-management-client.js"() {
|
|
4339
|
+
"use strict";
|
|
4340
|
+
init_host_utils2();
|
|
4341
|
+
}
|
|
4342
|
+
});
|
|
4343
|
+
|
|
4344
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/fetch-from-contentful.js
|
|
4345
|
+
import { fetchAll } from "contentful-management";
|
|
4346
|
+
var init_fetch_from_contentful = __esm({
|
|
4347
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/fetch-from-contentful.js"() {
|
|
4348
|
+
"use strict";
|
|
4349
|
+
}
|
|
4350
|
+
});
|
|
4351
|
+
|
|
4352
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/fetch-and-persist.js
|
|
4353
|
+
var init_fetch_and_persist = __esm({
|
|
4354
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/fetch-and-persist.js"() {
|
|
4355
|
+
"use strict";
|
|
4356
|
+
init_build_contentful_management_client();
|
|
4357
|
+
init_fetch_from_contentful();
|
|
4358
|
+
}
|
|
4359
|
+
});
|
|
4360
|
+
|
|
4361
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/read-from-session.js
|
|
4362
|
+
var init_read_from_session = __esm({
|
|
4363
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/read-from-session.js"() {
|
|
4364
|
+
"use strict";
|
|
4365
|
+
}
|
|
4366
|
+
});
|
|
4367
|
+
|
|
4368
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/summarizers/summarize-tokens.js
|
|
4369
|
+
var init_summarize_tokens = __esm({
|
|
4370
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/summarizers/summarize-tokens.js"() {
|
|
4371
|
+
"use strict";
|
|
4372
|
+
}
|
|
4373
|
+
});
|
|
4374
|
+
|
|
4375
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-select.js
|
|
4376
|
+
var init_summarize_for_select = __esm({
|
|
4377
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-select.js"() {
|
|
4378
|
+
"use strict";
|
|
4379
|
+
init_summarize_tokens();
|
|
4380
|
+
}
|
|
4381
|
+
});
|
|
4382
|
+
|
|
4383
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/count-character-edits.js
|
|
4384
|
+
var init_count_character_edits = __esm({
|
|
4385
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/count-character-edits.js"() {
|
|
4386
|
+
"use strict";
|
|
4387
|
+
}
|
|
4388
|
+
});
|
|
4389
|
+
|
|
4390
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/simplify-name-for-comparison.js
|
|
4391
|
+
var init_simplify_name_for_comparison = __esm({
|
|
4392
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/simplify-name-for-comparison.js"() {
|
|
4393
|
+
"use strict";
|
|
4394
|
+
}
|
|
4395
|
+
});
|
|
4396
|
+
|
|
4397
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/find-nearly-matching-component.js
|
|
4398
|
+
var init_find_nearly_matching_component = __esm({
|
|
4399
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/find-nearly-matching-component.js"() {
|
|
4400
|
+
"use strict";
|
|
4401
|
+
init_count_character_edits();
|
|
4402
|
+
init_simplify_name_for_comparison();
|
|
4403
|
+
}
|
|
4404
|
+
});
|
|
4405
|
+
|
|
4406
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-generate.js
|
|
4407
|
+
var init_summarize_for_generate = __esm({
|
|
4408
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-generate.js"() {
|
|
4409
|
+
"use strict";
|
|
4410
|
+
init_find_nearly_matching_component();
|
|
4411
|
+
init_summarize_tokens();
|
|
4412
|
+
}
|
|
4413
|
+
});
|
|
4414
|
+
|
|
4415
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-map-tokens.js
|
|
4416
|
+
var init_summarize_for_map_tokens = __esm({
|
|
4417
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-map-tokens.js"() {
|
|
4418
|
+
"use strict";
|
|
4419
|
+
}
|
|
4420
|
+
});
|
|
4421
|
+
|
|
4422
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/normalize-token-key.js
|
|
4423
|
+
var init_normalize_token_key = __esm({
|
|
4424
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/normalize-token-key.js"() {
|
|
4425
|
+
"use strict";
|
|
4426
|
+
}
|
|
4427
|
+
});
|
|
4428
|
+
|
|
4429
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/terminal-member.js
|
|
4430
|
+
var init_terminal_member = __esm({
|
|
4431
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/terminal-member.js"() {
|
|
4432
|
+
"use strict";
|
|
4433
|
+
}
|
|
4434
|
+
});
|
|
4435
|
+
|
|
4436
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/resolve-token-defaults.js
|
|
4437
|
+
var init_resolve_token_defaults = __esm({
|
|
4438
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/resolve-token-defaults.js"() {
|
|
4439
|
+
"use strict";
|
|
4440
|
+
init_normalize_token_key();
|
|
4441
|
+
init_terminal_member();
|
|
4442
|
+
}
|
|
4443
|
+
});
|
|
4444
|
+
|
|
4445
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/token-defaults/resolve-token-defaults.js
|
|
4446
|
+
var init_resolve_token_defaults2 = __esm({
|
|
4447
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/token-defaults/resolve-token-defaults.js"() {
|
|
4448
|
+
"use strict";
|
|
4449
|
+
init_resolve_token_defaults();
|
|
4450
|
+
}
|
|
4451
|
+
});
|
|
4452
|
+
|
|
4453
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/normalize-component-for-cache.js
|
|
4454
|
+
var init_normalize_component_for_cache = __esm({
|
|
4455
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/normalize-component-for-cache.js"() {
|
|
4456
|
+
"use strict";
|
|
4457
|
+
}
|
|
4458
|
+
});
|
|
4459
|
+
|
|
4460
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/lookup-component-cache.js
|
|
4461
|
+
var init_lookup_component_cache = __esm({
|
|
4462
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/lookup-component-cache.js"() {
|
|
4463
|
+
"use strict";
|
|
4464
|
+
init_db();
|
|
4465
|
+
init_normalize_component_for_cache();
|
|
4466
|
+
}
|
|
4467
|
+
});
|
|
4468
|
+
|
|
4469
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/resolve-component-cache.js
|
|
4470
|
+
var init_resolve_component_cache = __esm({
|
|
4471
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/resolve-component-cache.js"() {
|
|
4472
|
+
"use strict";
|
|
4473
|
+
init_db();
|
|
4474
|
+
init_lookup_component_cache();
|
|
4475
|
+
}
|
|
4476
|
+
});
|
|
4477
|
+
|
|
4478
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/resolve-shared-inputs.js
|
|
4479
|
+
var init_resolve_shared_inputs = __esm({
|
|
4480
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/resolve-shared-inputs.js"() {
|
|
4481
|
+
"use strict";
|
|
4482
|
+
init_read_credentials();
|
|
4483
|
+
init_validate();
|
|
4484
|
+
init_api_client();
|
|
4485
|
+
}
|
|
4486
|
+
});
|
|
4487
|
+
|
|
4488
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/filter-allowed-paths.js
|
|
4489
|
+
var init_filter_allowed_paths = __esm({
|
|
4490
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/filter-allowed-paths.js"() {
|
|
4491
|
+
"use strict";
|
|
4492
|
+
}
|
|
4493
|
+
});
|
|
4494
|
+
|
|
4495
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/is-prop-reviewed.js
|
|
4496
|
+
var init_is_prop_reviewed = __esm({
|
|
4497
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/is-prop-reviewed.js"() {
|
|
4498
|
+
"use strict";
|
|
4499
|
+
}
|
|
4500
|
+
});
|
|
4501
|
+
|
|
4502
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-type-by-path.js
|
|
4503
|
+
var init_load_token_type_by_path = __esm({
|
|
4504
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-type-by-path.js"() {
|
|
4505
|
+
"use strict";
|
|
4506
|
+
}
|
|
4507
|
+
});
|
|
4508
|
+
|
|
4509
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/apply-map-token-prop-calls.js
|
|
4510
|
+
var init_apply_map_token_prop_calls = __esm({
|
|
4511
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/apply-map-token-prop-calls.js"() {
|
|
4512
|
+
"use strict";
|
|
4513
|
+
init_replace_raw_prop_token_paths();
|
|
4514
|
+
init_filter_allowed_paths();
|
|
4515
|
+
init_is_prop_reviewed();
|
|
4516
|
+
init_load_token_type_by_path();
|
|
4517
|
+
}
|
|
4518
|
+
});
|
|
4519
|
+
|
|
4520
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/binary-exists.js
|
|
4521
|
+
import { execFile } from "node:child_process";
|
|
4522
|
+
import { promisify } from "node:util";
|
|
4523
|
+
var execFileAsync;
|
|
4524
|
+
var init_binary_exists = __esm({
|
|
4525
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/binary-exists.js"() {
|
|
4526
|
+
"use strict";
|
|
4527
|
+
execFileAsync = promisify(execFile);
|
|
4528
|
+
}
|
|
4529
|
+
});
|
|
4530
|
+
|
|
4531
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/count-mappable-props.js
|
|
4532
|
+
var init_count_mappable_props = __esm({
|
|
4533
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/count-mappable-props.js"() {
|
|
4534
|
+
"use strict";
|
|
4535
|
+
}
|
|
4536
|
+
});
|
|
4537
|
+
|
|
4538
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-raw-defaults.js
|
|
4539
|
+
var init_load_raw_defaults = __esm({
|
|
4540
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-raw-defaults.js"() {
|
|
4541
|
+
"use strict";
|
|
743
4542
|
}
|
|
744
|
-
|
|
4543
|
+
});
|
|
4544
|
+
|
|
4545
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-leaves.js
|
|
4546
|
+
var init_load_token_leaves = __esm({
|
|
4547
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-leaves.js"() {
|
|
4548
|
+
"use strict";
|
|
4549
|
+
}
|
|
4550
|
+
});
|
|
4551
|
+
|
|
4552
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/run-map-tokens.js
|
|
4553
|
+
var DEFAULT_TIMEOUT_MS2;
|
|
4554
|
+
var init_run_map_tokens = __esm({
|
|
4555
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/run-map-tokens.js"() {
|
|
4556
|
+
"use strict";
|
|
4557
|
+
init_build_prompt();
|
|
4558
|
+
init_create_local_cli_agent_invoker();
|
|
4559
|
+
init_describe_agent_failure();
|
|
4560
|
+
init_resolve_binary();
|
|
4561
|
+
init_resolve_skill_path();
|
|
4562
|
+
init_parse_map_token_prop_tool_calls();
|
|
4563
|
+
init_db();
|
|
4564
|
+
init_cache_keys();
|
|
4565
|
+
init_binary_exists();
|
|
4566
|
+
init_apply_map_token_prop_calls();
|
|
4567
|
+
init_count_mappable_props();
|
|
4568
|
+
init_load_raw_defaults();
|
|
4569
|
+
init_load_token_leaves();
|
|
4570
|
+
init_rebuild_dtcg_tree();
|
|
4571
|
+
init_resolve_token_defaults();
|
|
4572
|
+
DEFAULT_TIMEOUT_MS2 = 5 * 60 * 1e3;
|
|
4573
|
+
}
|
|
4574
|
+
});
|
|
4575
|
+
|
|
4576
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/types/component.js
|
|
4577
|
+
var init_component = __esm({
|
|
4578
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/types/component.js"() {
|
|
4579
|
+
"use strict";
|
|
4580
|
+
}
|
|
4581
|
+
});
|
|
4582
|
+
|
|
4583
|
+
// packages/experience-design-system-backend-pipeline/dist/src/index.js
|
|
4584
|
+
var init_src3 = __esm({
|
|
4585
|
+
"packages/experience-design-system-backend-pipeline/dist/src/index.js"() {
|
|
4586
|
+
"use strict";
|
|
4587
|
+
init_export_cdf_document();
|
|
4588
|
+
init_export_dtcg_tree();
|
|
4589
|
+
init_validate_cdf_file();
|
|
4590
|
+
init_validate_dtcg_token_file();
|
|
4591
|
+
init_format_diagnostics();
|
|
4592
|
+
init_read_json_file();
|
|
4593
|
+
init_rebuild_dtcg_tree();
|
|
4594
|
+
init_extract_components_endpoint();
|
|
4595
|
+
init_compose_components_endpoint();
|
|
4596
|
+
init_candidate_files2();
|
|
4597
|
+
init_manifest_doc_evidence();
|
|
4598
|
+
init_merge_edges();
|
|
4599
|
+
init_parse_map_edges();
|
|
4600
|
+
init_apply_mapping();
|
|
4601
|
+
init_resolve_mapping();
|
|
4602
|
+
init_prompt_loader();
|
|
4603
|
+
init_composition_cache_key();
|
|
4604
|
+
init_resolve_composition_sources();
|
|
4605
|
+
init_build_component_graph2();
|
|
4606
|
+
init_find_slot_cycles2();
|
|
4607
|
+
init_group_nodes_by_cycle_membership2();
|
|
4608
|
+
init_expand_seeds_to_include_cycle_groups2();
|
|
4609
|
+
init_select_descendants_respecting_cycles2();
|
|
4610
|
+
init_reject_ancestors_respecting_cycles2();
|
|
4611
|
+
init_select_all_descendants2();
|
|
4612
|
+
init_reject_all_ancestors2();
|
|
4613
|
+
init_expand_matches_by_one_hop2();
|
|
4614
|
+
init_find_all_parents2();
|
|
4615
|
+
init_propagate_descendant_issues_to_ancestors2();
|
|
4616
|
+
init_find_worst_issued_descendant2();
|
|
4617
|
+
init_suggest_cycle_break_edge();
|
|
4618
|
+
init_format_cycle_path();
|
|
4619
|
+
init_format_cycle_path_segments();
|
|
4620
|
+
init_select_components_endpoint();
|
|
4621
|
+
init_load_and_validate_for_review();
|
|
4622
|
+
init_merge_preview_validation_errors_into_review_session();
|
|
4623
|
+
init_merge_preview_validation_errors_into_review_session();
|
|
4624
|
+
init_reject_components_by_name();
|
|
4625
|
+
init_src();
|
|
4626
|
+
init_generate_cdf_components_endpoint();
|
|
4627
|
+
init_apply_components_endpoint();
|
|
4628
|
+
init_has_breaking_changes();
|
|
4629
|
+
init_token_utils();
|
|
4630
|
+
init_is_empty_preview();
|
|
4631
|
+
init_contentful_urls();
|
|
4632
|
+
init_api_error();
|
|
4633
|
+
init_api_client();
|
|
4634
|
+
init_api_client();
|
|
4635
|
+
init_parse_preview_errors();
|
|
4636
|
+
init_host_utils2();
|
|
4637
|
+
init_detect_slot_cycles2();
|
|
4638
|
+
init_assert_no_slot_cycles();
|
|
4639
|
+
init_assert_no_unresolved_slot_references();
|
|
4640
|
+
init_format_slot_cycle_report2();
|
|
4641
|
+
init_format_unresolved_slot_references2();
|
|
4642
|
+
init_mutate_cdf_component();
|
|
4643
|
+
init_mutate_dot_path();
|
|
4644
|
+
init_warn_on_unknown_patch_components2();
|
|
4645
|
+
init_annotate_preview2();
|
|
4646
|
+
init_annotate_preview();
|
|
4647
|
+
init_parse_edsi_error2();
|
|
4648
|
+
init_format_edsi_error2();
|
|
4649
|
+
init_format_api_error2();
|
|
4650
|
+
init_strip_lambda_log_prefix();
|
|
4651
|
+
init_read_tokens_from_path2();
|
|
4652
|
+
init_agents();
|
|
4653
|
+
init_build_contentful_management_client();
|
|
4654
|
+
init_fetch_and_persist();
|
|
4655
|
+
init_read_from_session();
|
|
4656
|
+
init_fetch_from_contentful();
|
|
4657
|
+
init_summarize_for_select();
|
|
4658
|
+
init_summarize_for_generate();
|
|
4659
|
+
init_summarize_for_map_tokens();
|
|
4660
|
+
init_resolve_token_defaults2();
|
|
4661
|
+
init_find_nearly_matching_component();
|
|
4662
|
+
init_normalize_component_for_cache();
|
|
4663
|
+
init_lookup_component_cache();
|
|
4664
|
+
init_resolve_component_cache();
|
|
4665
|
+
init_resolve_shared_inputs();
|
|
4666
|
+
init_apply_map_token_prop_calls();
|
|
4667
|
+
init_run_map_tokens();
|
|
4668
|
+
init_src();
|
|
4669
|
+
init_src();
|
|
4670
|
+
init_src();
|
|
4671
|
+
init_src();
|
|
4672
|
+
init_src();
|
|
4673
|
+
init_src();
|
|
4674
|
+
init_src();
|
|
4675
|
+
init_src();
|
|
4676
|
+
init_src();
|
|
4677
|
+
init_src();
|
|
4678
|
+
init_src();
|
|
4679
|
+
init_src();
|
|
4680
|
+
init_src();
|
|
4681
|
+
init_src();
|
|
4682
|
+
init_src();
|
|
4683
|
+
init_src();
|
|
4684
|
+
init_src();
|
|
4685
|
+
init_component();
|
|
4686
|
+
}
|
|
4687
|
+
});
|
|
4688
|
+
|
|
4689
|
+
// packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/helpers/scan-files.ts
|
|
4690
|
+
function scanFiles(directory) {
|
|
4691
|
+
return toScanResult(collectFiles(directory));
|
|
4692
|
+
}
|
|
4693
|
+
function toScanResult(outcome) {
|
|
4694
|
+
if (!outcome.ok) return { ok: false, failure: outcome.failure };
|
|
4695
|
+
return {
|
|
4696
|
+
ok: true,
|
|
4697
|
+
counts: foldSvelteAndMdIntoOther(outcome.result.counts),
|
|
4698
|
+
filePaths: outcome.result.filePaths,
|
|
4699
|
+
warnings: outcome.result.warnings
|
|
4700
|
+
};
|
|
4701
|
+
}
|
|
4702
|
+
function foldSvelteAndMdIntoOther(counts) {
|
|
4703
|
+
const { svelte, md, ...rest } = counts;
|
|
4704
|
+
return { ...rest, other: rest.other + svelte + md };
|
|
745
4705
|
}
|
|
746
|
-
var
|
|
747
|
-
"packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/
|
|
4706
|
+
var init_scan_files = __esm({
|
|
4707
|
+
"packages/experience-design-system-cli/src/tui/import/steps/03-path-validation/helpers/scan-files.ts"() {
|
|
748
4708
|
"use strict";
|
|
749
|
-
|
|
4709
|
+
init_src3();
|
|
750
4710
|
}
|
|
751
4711
|
});
|
|
752
4712
|
|
|
@@ -762,8 +4722,8 @@ function Row({ row }) {
|
|
|
762
4722
|
row.label
|
|
763
4723
|
] });
|
|
764
4724
|
}
|
|
765
|
-
function Failure({ scan, path }) {
|
|
766
|
-
const { headline, hints } = describeFailure(scan.failure,
|
|
4725
|
+
function Failure({ scan, path: path5 }) {
|
|
4726
|
+
const { headline, hints } = describeFailure(scan.failure, path5);
|
|
767
4727
|
return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
|
|
768
4728
|
/* @__PURE__ */ jsxs5(Text6, { color: PALETTE.error, children: [
|
|
769
4729
|
"\u2717 ",
|
|
@@ -772,12 +4732,12 @@ function Failure({ scan, path }) {
|
|
|
772
4732
|
hints.map((hint) => /* @__PURE__ */ jsx6(Text6, { dimColor: true, children: hint }, hint))
|
|
773
4733
|
] });
|
|
774
4734
|
}
|
|
775
|
-
function Summary({ scan, path }) {
|
|
4735
|
+
function Summary({ scan, path: path5 }) {
|
|
776
4736
|
const { total, rows, warning } = summarize(scan.counts);
|
|
777
4737
|
return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", gap: 1, children: [
|
|
778
4738
|
/* @__PURE__ */ jsxs5(Text6, { children: [
|
|
779
4739
|
"Scanned ",
|
|
780
|
-
/* @__PURE__ */ jsx6(Text6, { bold: true, children:
|
|
4740
|
+
/* @__PURE__ */ jsx6(Text6, { bold: true, children: path5 })
|
|
781
4741
|
] }),
|
|
782
4742
|
/* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", children: [
|
|
783
4743
|
/* @__PURE__ */ jsxs5(Text6, { color: PALETTE.success, children: [
|
|
@@ -803,17 +4763,16 @@ function PathValidationScreen({
|
|
|
803
4763
|
const resolvedPath = useMemo(() => resolveUserPath(projectPath), [projectPath]);
|
|
804
4764
|
const [scan, setScan] = useState5();
|
|
805
4765
|
useEffect3(() => {
|
|
806
|
-
|
|
807
|
-
setScan(void 0);
|
|
808
|
-
void scanProject(resolvedPath).then((result) => {
|
|
809
|
-
if (!cancelled) setScan(result);
|
|
810
|
-
});
|
|
811
|
-
return () => {
|
|
812
|
-
cancelled = true;
|
|
813
|
-
};
|
|
4766
|
+
setScan(scanFiles(resolvedPath));
|
|
814
4767
|
}, [resolvedPath]);
|
|
815
4768
|
const phase = phaseOf(scan);
|
|
816
|
-
usePathValidationControls(phase, {
|
|
4769
|
+
usePathValidationControls(phase, {
|
|
4770
|
+
onConfirm: () => {
|
|
4771
|
+
if (scan?.ok) onConfirm({ projectPath: resolvedPath, filePaths: scan.filePaths });
|
|
4772
|
+
},
|
|
4773
|
+
onChangePath,
|
|
4774
|
+
onBack
|
|
4775
|
+
});
|
|
817
4776
|
return /* @__PURE__ */ jsxs5(Box5, { flexDirection: "column", gap: 1, paddingX: 2, paddingY: 1, children: [
|
|
818
4777
|
scan === void 0 && /* @__PURE__ */ jsxs5(Text6, { dimColor: true, children: [
|
|
819
4778
|
"Scanning ",
|
|
@@ -836,7 +4795,7 @@ var init_screen3 = __esm({
|
|
|
836
4795
|
init_home_theme();
|
|
837
4796
|
init_resolve_user_path();
|
|
838
4797
|
init_controls3();
|
|
839
|
-
|
|
4798
|
+
init_scan_files();
|
|
840
4799
|
init_logic3();
|
|
841
4800
|
}
|
|
842
4801
|
});
|
|
@@ -851,11 +4810,11 @@ function keyAction2(input, key) {
|
|
|
851
4810
|
function nextField(field) {
|
|
852
4811
|
return FIELDS[(FIELDS.indexOf(field) + 1) % FIELDS.length];
|
|
853
4812
|
}
|
|
854
|
-
function
|
|
4813
|
+
function toConfiguredHost3(host) {
|
|
855
4814
|
const value = (host ?? "").trim().replace(/\/+$/, "");
|
|
856
4815
|
return value === "" ? DEFAULT_HOST : value.replace(/^https:\/\//i, "");
|
|
857
4816
|
}
|
|
858
|
-
function
|
|
4817
|
+
function toApiHost3(host) {
|
|
859
4818
|
const value = host.trim().replace(/\/+$/, "");
|
|
860
4819
|
if (value === "") return `https://${DEFAULT_HOST}`;
|
|
861
4820
|
return /^[a-z][a-z\d+\-.]*:\/\//i.test(value) ? value : `https://${value}`;
|
|
@@ -865,7 +4824,7 @@ function normalize(values) {
|
|
|
865
4824
|
spaceId: values.spaceId.trim(),
|
|
866
4825
|
environmentId: values.environmentId.trim(),
|
|
867
4826
|
cmaToken: values.cmaToken.trim(),
|
|
868
|
-
host:
|
|
4827
|
+
host: toConfiguredHost3(values.host)
|
|
869
4828
|
};
|
|
870
4829
|
}
|
|
871
4830
|
function missingField(values) {
|
|
@@ -910,7 +4869,7 @@ var init_controls4 = __esm({
|
|
|
910
4869
|
|
|
911
4870
|
// packages/experience-design-system-cli/src/tui/import/steps/04-credentials/validate.ts
|
|
912
4871
|
function headers(token) {
|
|
913
|
-
return { Authorization: `Bearer ${token}`, "X-Contentful-User-Agent":
|
|
4872
|
+
return { Authorization: `Bearer ${token}`, "X-Contentful-User-Agent": USER_AGENT2 };
|
|
914
4873
|
}
|
|
915
4874
|
function isApsDenial(body) {
|
|
916
4875
|
try {
|
|
@@ -929,7 +4888,7 @@ function messageFrom(body) {
|
|
|
929
4888
|
}
|
|
930
4889
|
}
|
|
931
4890
|
async function validateCredentials(values) {
|
|
932
|
-
const base =
|
|
4891
|
+
const base = toApiHost3(values.host);
|
|
933
4892
|
let me;
|
|
934
4893
|
try {
|
|
935
4894
|
me = await fetch(`${base}/users/me`, { headers: headers(values.cmaToken) });
|
|
@@ -962,12 +4921,12 @@ async function validateCredentials(values) {
|
|
|
962
4921
|
}
|
|
963
4922
|
return { ok: false, error: `Credential check failed (${preflight.status}).${detail ? ` ${detail}` : ""}` };
|
|
964
4923
|
}
|
|
965
|
-
var
|
|
966
|
-
var
|
|
4924
|
+
var USER_AGENT2;
|
|
4925
|
+
var init_validate4 = __esm({
|
|
967
4926
|
"packages/experience-design-system-cli/src/tui/import/steps/04-credentials/validate.ts"() {
|
|
968
4927
|
"use strict";
|
|
969
4928
|
init_logic4();
|
|
970
|
-
|
|
4929
|
+
USER_AGENT2 = "app contentful.experience-design-system-cli";
|
|
971
4930
|
}
|
|
972
4931
|
});
|
|
973
4932
|
|
|
@@ -980,7 +4939,7 @@ function CredentialsScreen({
|
|
|
980
4939
|
onDone,
|
|
981
4940
|
onBack,
|
|
982
4941
|
initial = {},
|
|
983
|
-
validate = validateCredentials
|
|
4942
|
+
validate: validate2 = validateCredentials
|
|
984
4943
|
}) {
|
|
985
4944
|
const initialValues = useRef(
|
|
986
4945
|
normalize({
|
|
@@ -1016,7 +4975,7 @@ function CredentialsScreen({
|
|
|
1016
4975
|
return;
|
|
1017
4976
|
}
|
|
1018
4977
|
setValidating(true);
|
|
1019
|
-
const result = await
|
|
4978
|
+
const result = await validate2(credentials);
|
|
1020
4979
|
setValidating(false);
|
|
1021
4980
|
if (result.ok) onDone({ skipped: false, credentials });
|
|
1022
4981
|
else setError(result.error);
|
|
@@ -1070,7 +5029,7 @@ var init_screen4 = __esm({
|
|
|
1070
5029
|
init_home_theme();
|
|
1071
5030
|
init_controls4();
|
|
1072
5031
|
init_logic4();
|
|
1073
|
-
|
|
5032
|
+
init_validate4();
|
|
1074
5033
|
LABELS = {
|
|
1075
5034
|
spaceId: "Space ID",
|
|
1076
5035
|
environmentId: "Environment",
|
|
@@ -1093,10 +5052,10 @@ var init_steps = __esm({
|
|
|
1093
5052
|
|
|
1094
5053
|
// packages/experience-design-system-cli/src/tui/import/spawn-v1-import.ts
|
|
1095
5054
|
import { spawn as spawn3 } from "node:child_process";
|
|
1096
|
-
function
|
|
5055
|
+
function buildArgs2(options) {
|
|
1097
5056
|
const args = ["import"];
|
|
1098
|
-
if (options.
|
|
1099
|
-
args.push("--project", options.
|
|
5057
|
+
if (options.projectPath) {
|
|
5058
|
+
args.push("--project", options.projectPath);
|
|
1100
5059
|
}
|
|
1101
5060
|
if (options.tokens) {
|
|
1102
5061
|
args.push("--tokens", options.tokens);
|
|
@@ -1105,7 +5064,7 @@ function buildArgs(options) {
|
|
|
1105
5064
|
}
|
|
1106
5065
|
async function spawnV1Import(options = {}) {
|
|
1107
5066
|
const cliPath = findLegacyCliPath();
|
|
1108
|
-
const args =
|
|
5067
|
+
const args = buildArgs2(options);
|
|
1109
5068
|
return new Promise((resolvePromise) => {
|
|
1110
5069
|
const child = spawn3("node", [cliPath, ...args], {
|
|
1111
5070
|
stdio: "inherit",
|
|
@@ -1153,46 +5112,46 @@ var init_terminal_input = __esm({
|
|
|
1153
5112
|
import { randomBytes } from "node:crypto";
|
|
1154
5113
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
1155
5114
|
import { homedir as homedir2 } from "node:os";
|
|
1156
|
-
import { dirname as dirname2, join as
|
|
1157
|
-
function
|
|
1158
|
-
return process.env["EDS_HOME"] ||
|
|
5115
|
+
import { dirname as dirname2, join as join5 } from "node:path";
|
|
5116
|
+
function configRoot2() {
|
|
5117
|
+
return process.env["EDS_HOME"] || join5(homedir2(), ".contentful", "experience-design-system-cli");
|
|
1159
5118
|
}
|
|
1160
|
-
async function
|
|
5119
|
+
async function readSettings2() {
|
|
1161
5120
|
try {
|
|
1162
|
-
return JSON.parse(await readFile(
|
|
5121
|
+
return JSON.parse(await readFile(configFilePath2(), "utf8"));
|
|
1163
5122
|
} catch {
|
|
1164
5123
|
return {};
|
|
1165
5124
|
}
|
|
1166
5125
|
}
|
|
1167
|
-
async function
|
|
1168
|
-
const
|
|
1169
|
-
await mkdir(dirname2(
|
|
1170
|
-
const tmp = `${
|
|
5126
|
+
async function writeSettings2(settings) {
|
|
5127
|
+
const path5 = configFilePath2();
|
|
5128
|
+
await mkdir(dirname2(path5), { recursive: true });
|
|
5129
|
+
const tmp = `${path5}.${process.pid}.${randomBytes(4).toString("hex")}.tmp`;
|
|
1171
5130
|
await writeFile(tmp, `${JSON.stringify(settings, null, 2)}
|
|
1172
5131
|
`, { mode: 384 });
|
|
1173
|
-
await rename(tmp,
|
|
5132
|
+
await rename(tmp, path5);
|
|
1174
5133
|
}
|
|
1175
|
-
async function
|
|
1176
|
-
await
|
|
5134
|
+
async function updateSettings2(patch) {
|
|
5135
|
+
await writeSettings2({ ...await readSettings2(), ...patch });
|
|
1177
5136
|
}
|
|
1178
|
-
var
|
|
5137
|
+
var configFilePath2, runsFilePath2, debugSessionsDir2, oldConfigDir2;
|
|
1179
5138
|
var init_config = __esm({
|
|
1180
5139
|
"packages/experience-design-system-types/dist/src/config/index.js"() {
|
|
1181
5140
|
"use strict";
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
5141
|
+
configFilePath2 = () => join5(configRoot2(), "config.json");
|
|
5142
|
+
runsFilePath2 = () => join5(configRoot2(), "state", "runs.json");
|
|
5143
|
+
debugSessionsDir2 = () => join5(configRoot2(), "debug", "sessions");
|
|
5144
|
+
oldConfigDir2 = () => join5(homedir2(), ".config", "experiences");
|
|
1186
5145
|
}
|
|
1187
5146
|
});
|
|
1188
5147
|
|
|
1189
5148
|
// packages/experience-design-system-cli/src/tui/settings/debug-mode/debug-mode-store.ts
|
|
1190
5149
|
async function readDebugModeSetting() {
|
|
1191
|
-
const { debugMode } = await
|
|
5150
|
+
const { debugMode } = await readSettings2();
|
|
1192
5151
|
return { ...DEFAULT_DEBUG_MODE_SETTING, ...debugMode };
|
|
1193
5152
|
}
|
|
1194
5153
|
async function writeDebugModeSetting(setting) {
|
|
1195
|
-
await
|
|
5154
|
+
await updateSettings2({ debugMode: setting });
|
|
1196
5155
|
}
|
|
1197
5156
|
var DEFAULT_DEBUG_MODE_SETTING;
|
|
1198
5157
|
var init_debug_mode_store = __esm({
|
|
@@ -1207,8 +5166,8 @@ var init_debug_mode_store = __esm({
|
|
|
1207
5166
|
|
|
1208
5167
|
// packages/experience-design-system-cli/src/tui/debug-store.ts
|
|
1209
5168
|
import { mkdir as mkdir2, writeFile as writeFile2 } from "node:fs/promises";
|
|
1210
|
-
import { existsSync as existsSync4, readdirSync } from "node:fs";
|
|
1211
|
-
import { join as
|
|
5169
|
+
import { existsSync as existsSync4, readdirSync as readdirSync2 } from "node:fs";
|
|
5170
|
+
import { join as join6 } from "node:path";
|
|
1212
5171
|
function generateRunId() {
|
|
1213
5172
|
const now = /* @__PURE__ */ new Date();
|
|
1214
5173
|
const pad = (n) => String(n).padStart(2, "0");
|
|
@@ -1221,10 +5180,10 @@ function datePrefix(now = /* @__PURE__ */ new Date()) {
|
|
|
1221
5180
|
function slugify(value) {
|
|
1222
5181
|
return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
1223
5182
|
}
|
|
1224
|
-
function
|
|
5183
|
+
function generateSessionId3() {
|
|
1225
5184
|
const today = datePrefix();
|
|
1226
|
-
const root =
|
|
1227
|
-
const existing = existsSync4(root) ?
|
|
5185
|
+
const root = debugSessionsDir2();
|
|
5186
|
+
const existing = existsSync4(root) ? readdirSync2(root) : [];
|
|
1228
5187
|
const seqPattern = new RegExp(`^${today}-session-(\\d+)$`);
|
|
1229
5188
|
const maxSeq = existing.reduce((max, entry) => {
|
|
1230
5189
|
const match = seqPattern.exec(entry);
|
|
@@ -1233,7 +5192,7 @@ function generateSessionId() {
|
|
|
1233
5192
|
return `${today}-session-${maxSeq + 1}`;
|
|
1234
5193
|
}
|
|
1235
5194
|
function sessionDebugDir() {
|
|
1236
|
-
return
|
|
5195
|
+
return join6(debugSessionsDir2(), SESSION_ID);
|
|
1237
5196
|
}
|
|
1238
5197
|
function currentDebugSessionDir() {
|
|
1239
5198
|
return sessionDebugDir();
|
|
@@ -1278,15 +5237,15 @@ async function finishDebugRun({
|
|
|
1278
5237
|
const durationMs = Date.now() - run.startedAt;
|
|
1279
5238
|
const content = renderMarkdown(run, { outputs: redact(outputs), status, exitMethod, durationMs });
|
|
1280
5239
|
const flowSegments = run.flow.split("/");
|
|
1281
|
-
const dir =
|
|
5240
|
+
const dir = join6(sessionDebugDir(), ...flowSegments);
|
|
1282
5241
|
await mkdir2(dir, { recursive: true });
|
|
1283
5242
|
const filename = nextAttemptFilename(dir, run.menuOption);
|
|
1284
|
-
await writeFile2(
|
|
5243
|
+
await writeFile2(join6(dir, filename), content, { mode: 384 });
|
|
1285
5244
|
}
|
|
1286
5245
|
function nextAttemptFilename(dir, menuOption) {
|
|
1287
5246
|
const today = datePrefix();
|
|
1288
5247
|
const optionSlug = slugify(menuOption);
|
|
1289
|
-
const existing = existsSync4(dir) ?
|
|
5248
|
+
const existing = existsSync4(dir) ? readdirSync2(dir) : [];
|
|
1290
5249
|
const attemptPattern = new RegExp(`^${today}-${optionSlug}-attempt-(\\d+)\\.md$`);
|
|
1291
5250
|
const maxAttempt = existing.reduce((max, entry) => {
|
|
1292
5251
|
const match = attemptPattern.exec(entry);
|
|
@@ -1332,7 +5291,7 @@ var init_debug_store = __esm({
|
|
|
1332
5291
|
init_config();
|
|
1333
5292
|
init_version();
|
|
1334
5293
|
init_debug_mode_store();
|
|
1335
|
-
SESSION_ID =
|
|
5294
|
+
SESSION_ID = generateSessionId3();
|
|
1336
5295
|
void isDebugModeEnabled().then((enabled) => {
|
|
1337
5296
|
if (!enabled) return void 0;
|
|
1338
5297
|
return mkdir2(sessionDebugDir(), { recursive: true });
|
|
@@ -1360,9 +5319,9 @@ async function readHelpInfo() {
|
|
|
1360
5319
|
const debugMode = await readDebugModeSetting();
|
|
1361
5320
|
return {
|
|
1362
5321
|
storage: [
|
|
1363
|
-
{ label: "Config folder", value:
|
|
1364
|
-
{ label: "Settings file", value:
|
|
1365
|
-
{ label: "Debug logs", value:
|
|
5322
|
+
{ label: "Config folder", value: configRoot2() },
|
|
5323
|
+
{ label: "Settings file", value: configFilePath2() },
|
|
5324
|
+
{ label: "Debug logs", value: debugSessionsDir2() }
|
|
1366
5325
|
],
|
|
1367
5326
|
troubleshooting: [
|
|
1368
5327
|
{ label: "CLI version", value: readPackageVersion() },
|
|
@@ -1514,8 +5473,8 @@ var init_v1_store = __esm({
|
|
|
1514
5473
|
"packages/experience-design-system-cli/src/tui/settings/utils/v1-store.ts"() {
|
|
1515
5474
|
"use strict";
|
|
1516
5475
|
init_config();
|
|
1517
|
-
readV1Store =
|
|
1518
|
-
writeV1Store =
|
|
5476
|
+
readV1Store = readSettings2;
|
|
5477
|
+
writeV1Store = writeSettings2;
|
|
1519
5478
|
}
|
|
1520
5479
|
});
|
|
1521
5480
|
|
|
@@ -1981,7 +5940,7 @@ function App({ onLaunchImport, importExitCode }) {
|
|
|
1981
5940
|
const [showImportResult, setShowImportResult] = useState13(returnedFromImport);
|
|
1982
5941
|
const [projectPath, setProjectPath] = useState13();
|
|
1983
5942
|
const [tokensPath, setTokensPath] = useState13();
|
|
1984
|
-
const [
|
|
5943
|
+
const [scannedFiles, setScannedFiles] = useState13();
|
|
1985
5944
|
const [importDefaults, setImportDefaults] = useState13();
|
|
1986
5945
|
useEffect9(() => {
|
|
1987
5946
|
if (screen !== "import") {
|
|
@@ -1996,16 +5955,16 @@ function App({ onLaunchImport, importExitCode }) {
|
|
|
1996
5955
|
})
|
|
1997
5956
|
);
|
|
1998
5957
|
}, [screen]);
|
|
1999
|
-
const finishCredentials = async (result,
|
|
5958
|
+
const finishCredentials = async (result, projectPath2, tokens, filePaths) => {
|
|
2000
5959
|
if (!result.skipped) await writeCredentials({ ...result.credentials });
|
|
2001
|
-
onLaunchImport?.({
|
|
5960
|
+
onLaunchImport?.({ projectPath: projectPath2, tokens, filePaths, skipCredentials: result.skipped });
|
|
2002
5961
|
};
|
|
2003
5962
|
const goToStart = () => setScreen("start");
|
|
2004
5963
|
const goToSettings = () => setScreen("settings");
|
|
2005
5964
|
const resetImport = () => {
|
|
2006
5965
|
setProjectPath(void 0);
|
|
2007
5966
|
setTokensPath(void 0);
|
|
2008
|
-
|
|
5967
|
+
setScannedFiles(void 0);
|
|
2009
5968
|
};
|
|
2010
5969
|
const finishImportResult = () => {
|
|
2011
5970
|
setShowImportResult(false);
|
|
@@ -2033,12 +5992,12 @@ function App({ onLaunchImport, importExitCode }) {
|
|
|
2033
5992
|
}
|
|
2034
5993
|
);
|
|
2035
5994
|
}
|
|
2036
|
-
if (
|
|
5995
|
+
if (scannedFiles === void 0) {
|
|
2037
5996
|
return /* @__PURE__ */ jsx14(
|
|
2038
5997
|
PathValidationScreen,
|
|
2039
5998
|
{
|
|
2040
5999
|
projectPath,
|
|
2041
|
-
onConfirm: () =>
|
|
6000
|
+
onConfirm: ({ filePaths }) => setScannedFiles(filePaths),
|
|
2042
6001
|
onChangePath: resetImport,
|
|
2043
6002
|
onBack: () => setTokensPath(void 0)
|
|
2044
6003
|
}
|
|
@@ -2048,8 +6007,8 @@ function App({ onLaunchImport, importExitCode }) {
|
|
|
2048
6007
|
CredentialsScreen,
|
|
2049
6008
|
{
|
|
2050
6009
|
initial: importDefaults.credentials,
|
|
2051
|
-
onBack: () =>
|
|
2052
|
-
onDone: (result) => void finishCredentials(result, projectPath, tokensPath)
|
|
6010
|
+
onBack: () => setScannedFiles(void 0),
|
|
6011
|
+
onDone: (result) => void finishCredentials(result, projectPath, tokensPath, scannedFiles)
|
|
2053
6012
|
}
|
|
2054
6013
|
);
|
|
2055
6014
|
case "help":
|
|
@@ -2119,8 +6078,8 @@ var init_app = __esm({
|
|
|
2119
6078
|
});
|
|
2120
6079
|
|
|
2121
6080
|
// packages/experience-design-system-cli/program.ts
|
|
2122
|
-
import { readFileSync as
|
|
2123
|
-
import { join as
|
|
6081
|
+
import { readFileSync as readFileSync4 } from "node:fs";
|
|
6082
|
+
import { join as join7 } from "node:path";
|
|
2124
6083
|
import { Command } from "commander";
|
|
2125
6084
|
|
|
2126
6085
|
// packages/experience-design-system-cli/src/legacy/run-legacy.ts
|
|
@@ -2221,8 +6180,8 @@ function registerImportCommand(program, openTui) {
|
|
|
2221
6180
|
// packages/experience-design-system-cli/program.ts
|
|
2222
6181
|
init_package_root();
|
|
2223
6182
|
var pkg = JSON.parse(
|
|
2224
|
-
|
|
2225
|
-
|
|
6183
|
+
readFileSync4(
|
|
6184
|
+
join7(findPackageRoot(import.meta.url, "@contentful/experience-design-system-cli"), "package.json"),
|
|
2226
6185
|
"utf8"
|
|
2227
6186
|
)
|
|
2228
6187
|
);
|
|
@@ -2242,20 +6201,20 @@ init_config();
|
|
|
2242
6201
|
init_package_root();
|
|
2243
6202
|
import { existsSync as existsSync5 } from "node:fs";
|
|
2244
6203
|
import { mkdir as mkdir3, readFile as readFile2, rename as rename2, rmdir, unlink } from "node:fs/promises";
|
|
2245
|
-
import { dirname as dirname3, join as
|
|
6204
|
+
import { dirname as dirname3, join as join8 } from "node:path";
|
|
2246
6205
|
var PACKAGE_NAME4 = "@contentful/experience-design-system-cli";
|
|
2247
|
-
async function readJson(
|
|
6206
|
+
async function readJson(path5) {
|
|
2248
6207
|
try {
|
|
2249
|
-
return JSON.parse(await readFile2(
|
|
6208
|
+
return JSON.parse(await readFile2(path5, "utf8"));
|
|
2250
6209
|
} catch {
|
|
2251
6210
|
return void 0;
|
|
2252
6211
|
}
|
|
2253
6212
|
}
|
|
2254
6213
|
async function migrateOldConfig() {
|
|
2255
6214
|
try {
|
|
2256
|
-
const oldCredentials =
|
|
2257
|
-
const oldRuns =
|
|
2258
|
-
const oldDebugMode =
|
|
6215
|
+
const oldCredentials = join8(oldConfigDir2(), "credentials.json");
|
|
6216
|
+
const oldRuns = join8(oldConfigDir2(), "runs.json");
|
|
6217
|
+
const oldDebugMode = join8(
|
|
2259
6218
|
findPackageRoot(import.meta.url, PACKAGE_NAME4),
|
|
2260
6219
|
".contentful",
|
|
2261
6220
|
"config",
|
|
@@ -2265,17 +6224,17 @@ async function migrateOldConfig() {
|
|
|
2265
6224
|
const debugMode = await readJson(oldDebugMode);
|
|
2266
6225
|
if (debugMode) migrated["debugMode"] = debugMode;
|
|
2267
6226
|
Object.assign(migrated, await readJson(oldCredentials));
|
|
2268
|
-
if (Object.keys(migrated).length > 0) await
|
|
6227
|
+
if (Object.keys(migrated).length > 0) await updateSettings2({ ...migrated, ...await readSettings2() });
|
|
2269
6228
|
if (existsSync5(oldRuns)) {
|
|
2270
|
-
if (!existsSync5(
|
|
2271
|
-
await mkdir3(dirname3(
|
|
2272
|
-
await rename2(oldRuns,
|
|
6229
|
+
if (!existsSync5(runsFilePath2())) {
|
|
6230
|
+
await mkdir3(dirname3(runsFilePath2()), { recursive: true });
|
|
6231
|
+
await rename2(oldRuns, runsFilePath2());
|
|
2273
6232
|
} else {
|
|
2274
6233
|
await unlink(oldRuns);
|
|
2275
6234
|
}
|
|
2276
6235
|
}
|
|
2277
6236
|
await Promise.all([oldCredentials, oldDebugMode].map((f) => unlink(f).catch(() => void 0)));
|
|
2278
|
-
await rmdir(
|
|
6237
|
+
await rmdir(oldConfigDir2()).catch(() => void 0);
|
|
2279
6238
|
} catch {
|
|
2280
6239
|
}
|
|
2281
6240
|
}
|