@contentful/experience-design-system-cli 2.37.1-dev-build-200af99b.0 → 2.37.1-dev-build-eeb53912.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/index.js
CHANGED
|
@@ -841,6 +841,4411 @@ var init_screen3 = __esm({
|
|
|
841
841
|
}
|
|
842
842
|
});
|
|
843
843
|
|
|
844
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/config-root.js
|
|
845
|
+
var init_config_root = __esm({
|
|
846
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/config-root.js"() {
|
|
847
|
+
"use strict";
|
|
848
|
+
}
|
|
849
|
+
});
|
|
850
|
+
|
|
851
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/source-excerpt.js
|
|
852
|
+
var init_source_excerpt = __esm({
|
|
853
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/source-excerpt.js"() {
|
|
854
|
+
"use strict";
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
|
|
858
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/derive-component-id.js
|
|
859
|
+
var init_derive_component_id = __esm({
|
|
860
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/derive-component-id.js"() {
|
|
861
|
+
"use strict";
|
|
862
|
+
}
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cdf/cdf-mappers.js
|
|
866
|
+
var init_cdf_mappers = __esm({
|
|
867
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cdf/cdf-mappers.js"() {
|
|
868
|
+
"use strict";
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
|
|
872
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/shared/index-rows-by-key.js
|
|
873
|
+
var init_index_rows_by_key = __esm({
|
|
874
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/shared/index-rows-by-key.js"() {
|
|
875
|
+
"use strict";
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/read.js
|
|
880
|
+
var init_read = __esm({
|
|
881
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/read.js"() {
|
|
882
|
+
"use strict";
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
|
|
886
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/write.js
|
|
887
|
+
var init_write = __esm({
|
|
888
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/sessions/write.js"() {
|
|
889
|
+
"use strict";
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
|
|
893
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/read.js
|
|
894
|
+
var init_read2 = __esm({
|
|
895
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/read.js"() {
|
|
896
|
+
"use strict";
|
|
897
|
+
}
|
|
898
|
+
});
|
|
899
|
+
|
|
900
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/write.js
|
|
901
|
+
var init_write2 = __esm({
|
|
902
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/steps/write.js"() {
|
|
903
|
+
"use strict";
|
|
904
|
+
}
|
|
905
|
+
});
|
|
906
|
+
|
|
907
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/session-id.js
|
|
908
|
+
var init_session_id = __esm({
|
|
909
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/session-id.js"() {
|
|
910
|
+
"use strict";
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/session-resolver.js
|
|
915
|
+
var init_session_resolver = __esm({
|
|
916
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/session-resolver.js"() {
|
|
917
|
+
"use strict";
|
|
918
|
+
init_session_id();
|
|
919
|
+
init_read();
|
|
920
|
+
init_write();
|
|
921
|
+
}
|
|
922
|
+
});
|
|
923
|
+
|
|
924
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-groups.js
|
|
925
|
+
var init_build_dtcg_groups = __esm({
|
|
926
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-groups.js"() {
|
|
927
|
+
"use strict";
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
|
|
931
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-tokens.js
|
|
932
|
+
var init_build_dtcg_tokens = __esm({
|
|
933
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/build-dtcg-tokens.js"() {
|
|
934
|
+
"use strict";
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
|
|
938
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/read.js
|
|
939
|
+
var init_read3 = __esm({
|
|
940
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/read.js"() {
|
|
941
|
+
"use strict";
|
|
942
|
+
init_build_dtcg_groups();
|
|
943
|
+
init_build_dtcg_tokens();
|
|
944
|
+
}
|
|
945
|
+
});
|
|
946
|
+
|
|
947
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/hash-component-shape.js
|
|
948
|
+
var init_hash_component_shape = __esm({
|
|
949
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/components/hash-component-shape.js"() {
|
|
950
|
+
"use strict";
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
|
|
954
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/hash-token-content.js
|
|
955
|
+
var init_hash_token_content = __esm({
|
|
956
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/tokens/hash-token-content.js"() {
|
|
957
|
+
"use strict";
|
|
958
|
+
}
|
|
959
|
+
});
|
|
960
|
+
|
|
961
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/write.js
|
|
962
|
+
var init_write3 = __esm({
|
|
963
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/tokens/write.js"() {
|
|
964
|
+
"use strict";
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
|
|
968
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/shared/with-transaction.js
|
|
969
|
+
var init_with_transaction = __esm({
|
|
970
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/shared/with-transaction.js"() {
|
|
971
|
+
"use strict";
|
|
972
|
+
}
|
|
973
|
+
});
|
|
974
|
+
|
|
975
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/store-dtcg-tokens.js
|
|
976
|
+
var init_store_dtcg_tokens = __esm({
|
|
977
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/store-dtcg-tokens.js"() {
|
|
978
|
+
"use strict";
|
|
979
|
+
init_write();
|
|
980
|
+
init_write3();
|
|
981
|
+
init_with_transaction();
|
|
982
|
+
}
|
|
983
|
+
});
|
|
984
|
+
|
|
985
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/apply-tool-calls.js
|
|
986
|
+
var init_apply_tool_calls = __esm({
|
|
987
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/apply-tool-calls.js"() {
|
|
988
|
+
"use strict";
|
|
989
|
+
init_write();
|
|
990
|
+
init_write3();
|
|
991
|
+
init_with_transaction();
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
|
|
995
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-token-name-paths.js
|
|
996
|
+
var init_replace_raw_token_name_paths = __esm({
|
|
997
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-token-name-paths.js"() {
|
|
998
|
+
"use strict";
|
|
999
|
+
init_write3();
|
|
1000
|
+
init_write();
|
|
1001
|
+
init_with_transaction();
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
|
|
1005
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-prop-token-paths.js
|
|
1006
|
+
var init_replace_raw_prop_token_paths = __esm({
|
|
1007
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/tokens/replace-raw-prop-token-paths.js"() {
|
|
1008
|
+
"use strict";
|
|
1009
|
+
init_write3();
|
|
1010
|
+
init_write();
|
|
1011
|
+
init_with_transaction();
|
|
1012
|
+
}
|
|
1013
|
+
});
|
|
1014
|
+
|
|
1015
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/db.js
|
|
1016
|
+
import { DatabaseSync } from "node:sqlite";
|
|
1017
|
+
var init_db = __esm({
|
|
1018
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/db.js"() {
|
|
1019
|
+
"use strict";
|
|
1020
|
+
init_config_root();
|
|
1021
|
+
init_source_excerpt();
|
|
1022
|
+
init_derive_component_id();
|
|
1023
|
+
init_cdf_mappers();
|
|
1024
|
+
init_index_rows_by_key();
|
|
1025
|
+
init_read();
|
|
1026
|
+
init_write();
|
|
1027
|
+
init_read2();
|
|
1028
|
+
init_write2();
|
|
1029
|
+
init_session_resolver();
|
|
1030
|
+
init_read3();
|
|
1031
|
+
init_hash_component_shape();
|
|
1032
|
+
init_hash_token_content();
|
|
1033
|
+
init_read3();
|
|
1034
|
+
init_store_dtcg_tokens();
|
|
1035
|
+
init_apply_tool_calls();
|
|
1036
|
+
init_replace_raw_token_name_paths();
|
|
1037
|
+
init_replace_raw_prop_token_paths();
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/vocabularies.js
|
|
1042
|
+
var CDF_PROPERTY_TYPES, CDF_PROPERTY_CATEGORIES;
|
|
1043
|
+
var init_vocabularies = __esm({
|
|
1044
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/vocabularies.js"() {
|
|
1045
|
+
"use strict";
|
|
1046
|
+
CDF_PROPERTY_TYPES = [
|
|
1047
|
+
"string",
|
|
1048
|
+
"richtext",
|
|
1049
|
+
"number",
|
|
1050
|
+
"media",
|
|
1051
|
+
"link",
|
|
1052
|
+
"enum",
|
|
1053
|
+
"token",
|
|
1054
|
+
"boolean"
|
|
1055
|
+
];
|
|
1056
|
+
CDF_PROPERTY_CATEGORIES = ["content", "design", "state", "unattached"];
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
|
|
1060
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/token-types.js
|
|
1061
|
+
var DESIGN_TOKEN_TYPES;
|
|
1062
|
+
var init_token_types = __esm({
|
|
1063
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/token-types.js"() {
|
|
1064
|
+
"use strict";
|
|
1065
|
+
DESIGN_TOKEN_TYPES = [
|
|
1066
|
+
"color",
|
|
1067
|
+
"dimension",
|
|
1068
|
+
"fontFamily",
|
|
1069
|
+
"fontWeight",
|
|
1070
|
+
"duration",
|
|
1071
|
+
"cubicBezier",
|
|
1072
|
+
"number",
|
|
1073
|
+
"strokeStyle",
|
|
1074
|
+
"border",
|
|
1075
|
+
"transition",
|
|
1076
|
+
"shadow",
|
|
1077
|
+
"gradient",
|
|
1078
|
+
"typography"
|
|
1079
|
+
];
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
|
|
1083
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/schema.js
|
|
1084
|
+
var CDF_SCHEMA_URL, cdfJsonSchema;
|
|
1085
|
+
var init_schema = __esm({
|
|
1086
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/schema.js"() {
|
|
1087
|
+
"use strict";
|
|
1088
|
+
init_vocabularies();
|
|
1089
|
+
init_token_types();
|
|
1090
|
+
CDF_SCHEMA_URL = "https://contentful.com/schemas/cdf";
|
|
1091
|
+
cdfJsonSchema = {
|
|
1092
|
+
$schema: "http://json-schema.org/draft-07/schema#",
|
|
1093
|
+
$id: CDF_SCHEMA_URL,
|
|
1094
|
+
title: "CDF Component + Design Token Definition Format",
|
|
1095
|
+
type: "object",
|
|
1096
|
+
required: ["$schema"],
|
|
1097
|
+
properties: {
|
|
1098
|
+
$schema: { type: "string", const: CDF_SCHEMA_URL }
|
|
1099
|
+
},
|
|
1100
|
+
additionalProperties: { $ref: "#/definitions/groupOrEntry" },
|
|
1101
|
+
definitions: {
|
|
1102
|
+
groupOrEntry: {
|
|
1103
|
+
oneOf: [{ $ref: "#/definitions/component" }, { $ref: "#/definitions/token" }, { $ref: "#/definitions/group" }]
|
|
1104
|
+
},
|
|
1105
|
+
component: {
|
|
1106
|
+
type: "object",
|
|
1107
|
+
required: ["$type", "$properties"],
|
|
1108
|
+
properties: {
|
|
1109
|
+
$type: { type: "string", const: "component" },
|
|
1110
|
+
$description: { type: "string" },
|
|
1111
|
+
$properties: {
|
|
1112
|
+
type: "object",
|
|
1113
|
+
additionalProperties: { $ref: "#/definitions/property" }
|
|
1114
|
+
},
|
|
1115
|
+
$slots: {
|
|
1116
|
+
type: "object",
|
|
1117
|
+
additionalProperties: { $ref: "#/definitions/slot" }
|
|
1118
|
+
}
|
|
1119
|
+
},
|
|
1120
|
+
additionalProperties: false
|
|
1121
|
+
},
|
|
1122
|
+
property: {
|
|
1123
|
+
type: "object",
|
|
1124
|
+
required: ["$type", "$category"],
|
|
1125
|
+
properties: {
|
|
1126
|
+
$type: { type: "string", enum: [...CDF_PROPERTY_TYPES] },
|
|
1127
|
+
$category: { type: "string", enum: [...CDF_PROPERTY_CATEGORIES] },
|
|
1128
|
+
$description: { type: "string" },
|
|
1129
|
+
$required: { type: "boolean" },
|
|
1130
|
+
$default: {},
|
|
1131
|
+
$values: { type: "array", items: { type: "string" } },
|
|
1132
|
+
"$token.kind": { type: "string" },
|
|
1133
|
+
"$token.allowed": { type: "array", items: { type: "string" } }
|
|
1134
|
+
},
|
|
1135
|
+
additionalProperties: false
|
|
1136
|
+
},
|
|
1137
|
+
slot: {
|
|
1138
|
+
type: "object",
|
|
1139
|
+
properties: {
|
|
1140
|
+
$description: { type: "string" },
|
|
1141
|
+
$required: { type: "boolean" },
|
|
1142
|
+
$allowedComponents: { type: "array", items: { type: "string" } }
|
|
1143
|
+
},
|
|
1144
|
+
additionalProperties: false
|
|
1145
|
+
},
|
|
1146
|
+
token: {
|
|
1147
|
+
type: "object",
|
|
1148
|
+
required: ["$type", "$value"],
|
|
1149
|
+
properties: {
|
|
1150
|
+
$type: { type: "string", enum: [...DESIGN_TOKEN_TYPES] },
|
|
1151
|
+
$value: {},
|
|
1152
|
+
$description: { type: "string" }
|
|
1153
|
+
},
|
|
1154
|
+
additionalProperties: false
|
|
1155
|
+
},
|
|
1156
|
+
group: {
|
|
1157
|
+
type: "object",
|
|
1158
|
+
properties: { $description: { type: "string" } },
|
|
1159
|
+
additionalProperties: { $ref: "#/definitions/groupOrEntry" }
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
});
|
|
1165
|
+
|
|
1166
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-cdf-document.js
|
|
1167
|
+
var init_export_cdf_document = __esm({
|
|
1168
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-cdf-document.js"() {
|
|
1169
|
+
"use strict";
|
|
1170
|
+
init_db();
|
|
1171
|
+
init_schema();
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
|
|
1175
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/rebuild-dtcg-tree.js
|
|
1176
|
+
var init_rebuild_dtcg_tree = __esm({
|
|
1177
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/rebuild-dtcg-tree.js"() {
|
|
1178
|
+
"use strict";
|
|
1179
|
+
}
|
|
1180
|
+
});
|
|
1181
|
+
|
|
1182
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-dtcg-tree.js
|
|
1183
|
+
var init_export_dtcg_tree = __esm({
|
|
1184
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/export/export-dtcg-tree.js"() {
|
|
1185
|
+
"use strict";
|
|
1186
|
+
init_db();
|
|
1187
|
+
init_rebuild_dtcg_tree();
|
|
1188
|
+
}
|
|
1189
|
+
});
|
|
1190
|
+
|
|
1191
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/validate.js
|
|
1192
|
+
import { Ajv } from "ajv";
|
|
1193
|
+
var ajv, validate, TOKEN_TYPE_SET;
|
|
1194
|
+
var init_validate = __esm({
|
|
1195
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/validate.js"() {
|
|
1196
|
+
"use strict";
|
|
1197
|
+
init_schema();
|
|
1198
|
+
init_token_types();
|
|
1199
|
+
ajv = new Ajv({ allErrors: true });
|
|
1200
|
+
validate = ajv.compile(cdfJsonSchema);
|
|
1201
|
+
TOKEN_TYPE_SET = new Set(DESIGN_TOKEN_TYPES);
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
|
|
1205
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/infer-params-shape.js
|
|
1206
|
+
var init_infer_params_shape = __esm({
|
|
1207
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/infer-params-shape.js"() {
|
|
1208
|
+
"use strict";
|
|
1209
|
+
}
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/read-json-file.js
|
|
1213
|
+
var init_read_json_file = __esm({
|
|
1214
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/read-json-file.js"() {
|
|
1215
|
+
"use strict";
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
|
|
1219
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/extract-value.js
|
|
1220
|
+
var init_extract_value = __esm({
|
|
1221
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/extract-value.js"() {
|
|
1222
|
+
"use strict";
|
|
1223
|
+
}
|
|
1224
|
+
});
|
|
1225
|
+
|
|
1226
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/rewrite-diagnostic.js
|
|
1227
|
+
var init_rewrite_diagnostic = __esm({
|
|
1228
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/helpers/rewrite-diagnostic.js"() {
|
|
1229
|
+
"use strict";
|
|
1230
|
+
init_extract_value();
|
|
1231
|
+
init_infer_params_shape();
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
|
|
1235
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/validate-cdf-file.js
|
|
1236
|
+
var init_validate_cdf_file = __esm({
|
|
1237
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/validate-cdf-file.js"() {
|
|
1238
|
+
"use strict";
|
|
1239
|
+
init_validate();
|
|
1240
|
+
init_infer_params_shape();
|
|
1241
|
+
init_read_json_file();
|
|
1242
|
+
init_rewrite_diagnostic();
|
|
1243
|
+
}
|
|
1244
|
+
});
|
|
1245
|
+
|
|
1246
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/helpers/walk-dtcg.js
|
|
1247
|
+
var init_walk_dtcg = __esm({
|
|
1248
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/helpers/walk-dtcg.js"() {
|
|
1249
|
+
"use strict";
|
|
1250
|
+
init_token_types();
|
|
1251
|
+
}
|
|
1252
|
+
});
|
|
1253
|
+
|
|
1254
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/validate-dtcg-token-file.js
|
|
1255
|
+
var init_validate_dtcg_token_file = __esm({
|
|
1256
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/validators/validate-dtcg-token-file.js"() {
|
|
1257
|
+
"use strict";
|
|
1258
|
+
init_read_json_file();
|
|
1259
|
+
init_walk_dtcg();
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
|
|
1263
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/format-diagnostics.js
|
|
1264
|
+
var init_format_diagnostics = __esm({
|
|
1265
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/validators/format-diagnostics.js"() {
|
|
1266
|
+
"use strict";
|
|
1267
|
+
}
|
|
1268
|
+
});
|
|
1269
|
+
|
|
1270
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/extract-tsx-components.js
|
|
1271
|
+
import { Node, Project, SyntaxKind } from "ts-morph";
|
|
1272
|
+
import ts from "typescript";
|
|
1273
|
+
var init_extract_tsx_components = __esm({
|
|
1274
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/extract-tsx-components.js"() {
|
|
1275
|
+
"use strict";
|
|
1276
|
+
}
|
|
1277
|
+
});
|
|
1278
|
+
|
|
1279
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/file-extraction-workers.js
|
|
1280
|
+
var init_file_extraction_workers = __esm({
|
|
1281
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/file-extraction-workers.js"() {
|
|
1282
|
+
"use strict";
|
|
1283
|
+
}
|
|
1284
|
+
});
|
|
1285
|
+
|
|
1286
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/stencil/extract-stencil-components.js
|
|
1287
|
+
import { Project as Project2, Node as Node2, SyntaxKind as SyntaxKind2 } from "ts-morph";
|
|
1288
|
+
var init_extract_stencil_components = __esm({
|
|
1289
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/stencil/extract-stencil-components.js"() {
|
|
1290
|
+
"use strict";
|
|
1291
|
+
init_extract_tsx_components();
|
|
1292
|
+
init_file_extraction_workers();
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
|
|
1296
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/slot-detection.js
|
|
1297
|
+
var init_slot_detection = __esm({
|
|
1298
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/slot-detection.js"() {
|
|
1299
|
+
"use strict";
|
|
1300
|
+
}
|
|
1301
|
+
});
|
|
1302
|
+
|
|
1303
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/allowed-components-context.js
|
|
1304
|
+
var init_allowed_components_context = __esm({
|
|
1305
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/allowed-components-context.js"() {
|
|
1306
|
+
"use strict";
|
|
1307
|
+
}
|
|
1308
|
+
});
|
|
1309
|
+
|
|
1310
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/slot-allowed-components.js
|
|
1311
|
+
var init_slot_allowed_components = __esm({
|
|
1312
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/slot-allowed-components.js"() {
|
|
1313
|
+
"use strict";
|
|
1314
|
+
init_allowed_components_context();
|
|
1315
|
+
}
|
|
1316
|
+
});
|
|
1317
|
+
|
|
1318
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/source-line-metadata.js
|
|
1319
|
+
var init_source_line_metadata = __esm({
|
|
1320
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/source-line-metadata.js"() {
|
|
1321
|
+
"use strict";
|
|
1322
|
+
}
|
|
1323
|
+
});
|
|
1324
|
+
|
|
1325
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/structural-slot-evidence.js
|
|
1326
|
+
import { Node as Node3, SyntaxKind as SyntaxKind3 } from "ts-morph";
|
|
1327
|
+
var init_structural_slot_evidence = __esm({
|
|
1328
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/evidence/structural-slot-evidence.js"() {
|
|
1329
|
+
"use strict";
|
|
1330
|
+
init_slot_allowed_components();
|
|
1331
|
+
init_extract_tsx_components();
|
|
1332
|
+
}
|
|
1333
|
+
});
|
|
1334
|
+
|
|
1335
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/extract-react-components.js
|
|
1336
|
+
import { Node as Node4, SyntaxKind as SyntaxKind4 } from "ts-morph";
|
|
1337
|
+
function createTextControlSurface(onChangeType, specificProps) {
|
|
1338
|
+
return [
|
|
1339
|
+
{ name: "autoComplete", type: "string", required: false },
|
|
1340
|
+
...specificProps,
|
|
1341
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1342
|
+
{ name: "name", type: "string", required: false },
|
|
1343
|
+
{ name: "onChange", type: onChangeType, required: false },
|
|
1344
|
+
{ name: "placeholder", type: "string", required: false },
|
|
1345
|
+
{ name: "readOnly", type: "boolean", required: false },
|
|
1346
|
+
{ name: "required", type: "boolean", required: false },
|
|
1347
|
+
{
|
|
1348
|
+
name: "value",
|
|
1349
|
+
type: "string | number | readonly string[]",
|
|
1350
|
+
required: false
|
|
1351
|
+
}
|
|
1352
|
+
];
|
|
1353
|
+
}
|
|
1354
|
+
var DOM_ATTRIBUTE_PROP_SURFACES;
|
|
1355
|
+
var init_extract_react_components = __esm({
|
|
1356
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/react/extract-react-components.js"() {
|
|
1357
|
+
"use strict";
|
|
1358
|
+
init_extract_tsx_components();
|
|
1359
|
+
init_slot_detection();
|
|
1360
|
+
init_slot_allowed_components();
|
|
1361
|
+
init_source_line_metadata();
|
|
1362
|
+
init_structural_slot_evidence();
|
|
1363
|
+
DOM_ATTRIBUTE_PROP_SURFACES = {
|
|
1364
|
+
HTMLProps: [],
|
|
1365
|
+
HTMLAttributes: [
|
|
1366
|
+
{ name: "className", type: "string", required: false },
|
|
1367
|
+
{ name: "hidden", type: "boolean", required: false },
|
|
1368
|
+
{ name: "id", type: "string", required: false },
|
|
1369
|
+
{
|
|
1370
|
+
name: "onClick",
|
|
1371
|
+
type: "MouseEventHandler<HTMLElement>",
|
|
1372
|
+
required: false
|
|
1373
|
+
},
|
|
1374
|
+
{ name: "style", type: "CSSProperties", required: false },
|
|
1375
|
+
{ name: "tabIndex", type: "number", required: false },
|
|
1376
|
+
{ name: "title", type: "string", required: false }
|
|
1377
|
+
],
|
|
1378
|
+
ImgHTMLAttributes: [
|
|
1379
|
+
{ name: "alt", type: "string", required: false },
|
|
1380
|
+
{ name: "crossOrigin", type: "string", required: false },
|
|
1381
|
+
{ name: "height", type: "number | string", required: false },
|
|
1382
|
+
{
|
|
1383
|
+
name: "loading",
|
|
1384
|
+
type: "string",
|
|
1385
|
+
required: false,
|
|
1386
|
+
allowedValues: ["eager", "lazy"]
|
|
1387
|
+
},
|
|
1388
|
+
{ name: "sizes", type: "string", required: false },
|
|
1389
|
+
{ name: "src", type: "string", required: false },
|
|
1390
|
+
{ name: "srcSet", type: "string", required: false },
|
|
1391
|
+
{ name: "width", type: "number | string", required: false }
|
|
1392
|
+
],
|
|
1393
|
+
LiHTMLAttributes: [],
|
|
1394
|
+
AnchorHTMLAttributes: [
|
|
1395
|
+
{ name: "download", type: "boolean | string", required: false },
|
|
1396
|
+
{ name: "href", type: "string", required: false },
|
|
1397
|
+
{ name: "hrefLang", type: "string", required: false },
|
|
1398
|
+
{ name: "referrerPolicy", type: "string", required: false },
|
|
1399
|
+
{ name: "rel", type: "string", required: false },
|
|
1400
|
+
{
|
|
1401
|
+
name: "target",
|
|
1402
|
+
type: "string",
|
|
1403
|
+
required: false,
|
|
1404
|
+
allowedValues: ["_blank", "_parent", "_self", "_top"]
|
|
1405
|
+
}
|
|
1406
|
+
],
|
|
1407
|
+
ButtonHTMLAttributes: [
|
|
1408
|
+
{ name: "autoFocus", type: "boolean", required: false },
|
|
1409
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1410
|
+
{ name: "form", type: "string", required: false },
|
|
1411
|
+
{ name: "formAction", type: "string", required: false },
|
|
1412
|
+
{ name: "formMethod", type: "string", required: false },
|
|
1413
|
+
{ name: "formNoValidate", type: "boolean", required: false },
|
|
1414
|
+
{ name: "formTarget", type: "string", required: false },
|
|
1415
|
+
{ name: "name", type: "string", required: false },
|
|
1416
|
+
{
|
|
1417
|
+
name: "type",
|
|
1418
|
+
type: "string",
|
|
1419
|
+
required: false,
|
|
1420
|
+
allowedValues: ["button", "reset", "submit"]
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
name: "value",
|
|
1424
|
+
type: "string | number | readonly string[]",
|
|
1425
|
+
required: false
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
InputHTMLAttributes: createTextControlSurface("ChangeEventHandler<HTMLInputElement>", [
|
|
1429
|
+
{ name: "checked", type: "boolean", required: false },
|
|
1430
|
+
{ name: "max", type: "number | string", required: false },
|
|
1431
|
+
{ name: "maxLength", type: "number", required: false },
|
|
1432
|
+
{ name: "min", type: "number | string", required: false },
|
|
1433
|
+
{ name: "minLength", type: "number", required: false },
|
|
1434
|
+
{ name: "type", type: "string", required: false }
|
|
1435
|
+
]),
|
|
1436
|
+
FieldsetHTMLAttributes: [
|
|
1437
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1438
|
+
{ name: "form", type: "string", required: false },
|
|
1439
|
+
{ name: "name", type: "string", required: false }
|
|
1440
|
+
],
|
|
1441
|
+
LabelHTMLAttributes: [
|
|
1442
|
+
{ name: "form", type: "string", required: false },
|
|
1443
|
+
{ name: "htmlFor", type: "string", required: false }
|
|
1444
|
+
],
|
|
1445
|
+
SelectHTMLAttributes: [
|
|
1446
|
+
{ name: "autoComplete", type: "string", required: false },
|
|
1447
|
+
{ name: "disabled", type: "boolean", required: false },
|
|
1448
|
+
{ name: "form", type: "string", required: false },
|
|
1449
|
+
{ name: "multiple", type: "boolean", required: false },
|
|
1450
|
+
{ name: "name", type: "string", required: false },
|
|
1451
|
+
{
|
|
1452
|
+
name: "onChange",
|
|
1453
|
+
type: "ChangeEventHandler<HTMLSelectElement>",
|
|
1454
|
+
required: false
|
|
1455
|
+
},
|
|
1456
|
+
{ name: "required", type: "boolean", required: false },
|
|
1457
|
+
{ name: "size", type: "number", required: false },
|
|
1458
|
+
{
|
|
1459
|
+
name: "value",
|
|
1460
|
+
type: "string | number | readonly string[]",
|
|
1461
|
+
required: false
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
SVGAttributes: [
|
|
1465
|
+
{
|
|
1466
|
+
name: "focusable",
|
|
1467
|
+
type: 'boolean | "auto"',
|
|
1468
|
+
required: false,
|
|
1469
|
+
allowedValues: ["auto"]
|
|
1470
|
+
},
|
|
1471
|
+
{ name: "height", type: "number | string", required: false },
|
|
1472
|
+
{ name: "viewBox", type: "string", required: false },
|
|
1473
|
+
{ name: "width", type: "number | string", required: false }
|
|
1474
|
+
],
|
|
1475
|
+
SVGProps: [],
|
|
1476
|
+
TextareaHTMLAttributes: createTextControlSurface("ChangeEventHandler<HTMLTextAreaElement>", [
|
|
1477
|
+
{ name: "cols", type: "number", required: false },
|
|
1478
|
+
{ name: "rows", type: "number", required: false },
|
|
1479
|
+
{ name: "wrap", type: "string", required: false }
|
|
1480
|
+
]),
|
|
1481
|
+
TdHTMLAttributes: [
|
|
1482
|
+
{
|
|
1483
|
+
name: "align",
|
|
1484
|
+
type: "string",
|
|
1485
|
+
required: false,
|
|
1486
|
+
allowedValues: ["center", "char", "justify", "left", "right"]
|
|
1487
|
+
},
|
|
1488
|
+
{ name: "colSpan", type: "number", required: false },
|
|
1489
|
+
{ name: "headers", type: "string", required: false },
|
|
1490
|
+
{ name: "rowSpan", type: "number", required: false },
|
|
1491
|
+
{ name: "scope", type: "string", required: false }
|
|
1492
|
+
]
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
|
|
1497
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue-tsx/extract-vue-tsx-components.js
|
|
1498
|
+
import { Node as Node5, SyntaxKind as SyntaxKind5 } from "ts-morph";
|
|
1499
|
+
var init_extract_vue_tsx_components = __esm({
|
|
1500
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue-tsx/extract-vue-tsx-components.js"() {
|
|
1501
|
+
"use strict";
|
|
1502
|
+
init_extract_tsx_components();
|
|
1503
|
+
}
|
|
1504
|
+
});
|
|
1505
|
+
|
|
1506
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-local-module.js
|
|
1507
|
+
var init_resolve_local_module = __esm({
|
|
1508
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-local-module.js"() {
|
|
1509
|
+
"use strict";
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1512
|
+
|
|
1513
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-type-property.js
|
|
1514
|
+
var init_resolve_type_property = __esm({
|
|
1515
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/shared/resolve-type-property.js"() {
|
|
1516
|
+
"use strict";
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
|
|
1520
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue/extract-vue-components.js
|
|
1521
|
+
import { parse as parseSFC } from "@vue/compiler-sfc";
|
|
1522
|
+
import { Project as Project3, Node as Node6 } from "ts-morph";
|
|
1523
|
+
var init_extract_vue_components = __esm({
|
|
1524
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/vue/extract-vue-components.js"() {
|
|
1525
|
+
"use strict";
|
|
1526
|
+
init_file_extraction_workers();
|
|
1527
|
+
init_resolve_local_module();
|
|
1528
|
+
init_resolve_type_property();
|
|
1529
|
+
}
|
|
1530
|
+
});
|
|
1531
|
+
|
|
1532
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/astro/extract-astro-components.js
|
|
1533
|
+
import { Project as Project4, Node as Node7 } from "ts-morph";
|
|
1534
|
+
var init_extract_astro_components = __esm({
|
|
1535
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/astro/extract-astro-components.js"() {
|
|
1536
|
+
"use strict";
|
|
1537
|
+
init_file_extraction_workers();
|
|
1538
|
+
init_resolve_type_property();
|
|
1539
|
+
init_source_line_metadata();
|
|
1540
|
+
}
|
|
1541
|
+
});
|
|
1542
|
+
|
|
1543
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/web-components/extract-web-components.js
|
|
1544
|
+
import { Project as Project5, Node as Node8, SyntaxKind as SyntaxKind6 } from "ts-morph";
|
|
1545
|
+
var init_extract_web_components = __esm({
|
|
1546
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/web-components/extract-web-components.js"() {
|
|
1547
|
+
"use strict";
|
|
1548
|
+
init_file_extraction_workers();
|
|
1549
|
+
init_extract_tsx_components();
|
|
1550
|
+
}
|
|
1551
|
+
});
|
|
1552
|
+
|
|
1553
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/scoring.js
|
|
1554
|
+
var init_scoring = __esm({
|
|
1555
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/scoring.js"() {
|
|
1556
|
+
"use strict";
|
|
1557
|
+
}
|
|
1558
|
+
});
|
|
1559
|
+
|
|
1560
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/svelte/extract-svelte-components.js
|
|
1561
|
+
import { parse as parseSvelte } from "svelte/compiler";
|
|
1562
|
+
import { Project as Project6, Node as Node9, ScriptTarget, ModuleKind, ts as ts2 } from "ts-morph";
|
|
1563
|
+
var init_extract_svelte_components = __esm({
|
|
1564
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/framework-adapters/svelte/extract-svelte-components.js"() {
|
|
1565
|
+
"use strict";
|
|
1566
|
+
init_scoring();
|
|
1567
|
+
init_slot_allowed_components();
|
|
1568
|
+
init_file_extraction_workers();
|
|
1569
|
+
init_resolve_local_module();
|
|
1570
|
+
}
|
|
1571
|
+
});
|
|
1572
|
+
|
|
1573
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/services/run-extraction-service.js
|
|
1574
|
+
var init_run_extraction_service = __esm({
|
|
1575
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/services/run-extraction-service.js"() {
|
|
1576
|
+
"use strict";
|
|
1577
|
+
init_extract_stencil_components();
|
|
1578
|
+
init_extract_react_components();
|
|
1579
|
+
init_extract_vue_tsx_components();
|
|
1580
|
+
init_extract_vue_components();
|
|
1581
|
+
init_extract_astro_components();
|
|
1582
|
+
init_extract_web_components();
|
|
1583
|
+
init_extract_svelte_components();
|
|
1584
|
+
}
|
|
1585
|
+
});
|
|
1586
|
+
|
|
1587
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/controller/extract-components-endpoint.js
|
|
1588
|
+
var init_extract_components_endpoint = __esm({
|
|
1589
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/controller/extract-components-endpoint.js"() {
|
|
1590
|
+
"use strict";
|
|
1591
|
+
init_run_extraction_service();
|
|
1592
|
+
}
|
|
1593
|
+
});
|
|
1594
|
+
|
|
1595
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-name.js
|
|
1596
|
+
var init_agent_name = __esm({
|
|
1597
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-name.js"() {
|
|
1598
|
+
"use strict";
|
|
1599
|
+
}
|
|
1600
|
+
});
|
|
1601
|
+
|
|
1602
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-run.js
|
|
1603
|
+
var init_agent_run = __esm({
|
|
1604
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/agent-run.js"() {
|
|
1605
|
+
"use strict";
|
|
1606
|
+
}
|
|
1607
|
+
});
|
|
1608
|
+
|
|
1609
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/invoker.js
|
|
1610
|
+
var init_invoker = __esm({
|
|
1611
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/invoker.js"() {
|
|
1612
|
+
"use strict";
|
|
1613
|
+
}
|
|
1614
|
+
});
|
|
1615
|
+
|
|
1616
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/prompts.js
|
|
1617
|
+
var init_prompts = __esm({
|
|
1618
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/prompts.js"() {
|
|
1619
|
+
"use strict";
|
|
1620
|
+
}
|
|
1621
|
+
});
|
|
1622
|
+
|
|
1623
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/tool-calls.js
|
|
1624
|
+
var init_tool_calls = __esm({
|
|
1625
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/tool-calls.js"() {
|
|
1626
|
+
"use strict";
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
|
|
1630
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/types/index.js
|
|
1631
|
+
var init_types = __esm({
|
|
1632
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/types/index.js"() {
|
|
1633
|
+
"use strict";
|
|
1634
|
+
init_agent_name();
|
|
1635
|
+
init_agent_run();
|
|
1636
|
+
init_invoker();
|
|
1637
|
+
init_prompts();
|
|
1638
|
+
init_tool_calls();
|
|
1639
|
+
}
|
|
1640
|
+
});
|
|
1641
|
+
|
|
1642
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/models.js
|
|
1643
|
+
var init_models = __esm({
|
|
1644
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/models.js"() {
|
|
1645
|
+
"use strict";
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
|
|
1649
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/is-agent-name.js
|
|
1650
|
+
var init_is_agent_name = __esm({
|
|
1651
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/is-agent-name.js"() {
|
|
1652
|
+
"use strict";
|
|
1653
|
+
init_agent_name();
|
|
1654
|
+
}
|
|
1655
|
+
});
|
|
1656
|
+
|
|
1657
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/binaries.js
|
|
1658
|
+
var init_binaries = __esm({
|
|
1659
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/binaries.js"() {
|
|
1660
|
+
"use strict";
|
|
1661
|
+
}
|
|
1662
|
+
});
|
|
1663
|
+
|
|
1664
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-binary.js
|
|
1665
|
+
var init_resolve_binary = __esm({
|
|
1666
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-binary.js"() {
|
|
1667
|
+
"use strict";
|
|
1668
|
+
init_binaries();
|
|
1669
|
+
}
|
|
1670
|
+
});
|
|
1671
|
+
|
|
1672
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/bedrock.js
|
|
1673
|
+
var init_bedrock = __esm({
|
|
1674
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/bedrock.js"() {
|
|
1675
|
+
"use strict";
|
|
1676
|
+
}
|
|
1677
|
+
});
|
|
1678
|
+
|
|
1679
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/with-bedrock-provider-prefix.js
|
|
1680
|
+
var init_with_bedrock_provider_prefix = __esm({
|
|
1681
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/with-bedrock-provider-prefix.js"() {
|
|
1682
|
+
"use strict";
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
|
|
1686
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent-model.js
|
|
1687
|
+
var init_resolve_agent_model = __esm({
|
|
1688
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent-model.js"() {
|
|
1689
|
+
"use strict";
|
|
1690
|
+
init_bedrock();
|
|
1691
|
+
init_models();
|
|
1692
|
+
init_with_bedrock_provider_prefix();
|
|
1693
|
+
}
|
|
1694
|
+
});
|
|
1695
|
+
|
|
1696
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/agent-supports-bedrock.js
|
|
1697
|
+
var init_agent_supports_bedrock = __esm({
|
|
1698
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/agent-supports-bedrock.js"() {
|
|
1699
|
+
"use strict";
|
|
1700
|
+
init_bedrock();
|
|
1701
|
+
}
|
|
1702
|
+
});
|
|
1703
|
+
|
|
1704
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-claude-args.js
|
|
1705
|
+
var init_build_claude_args = __esm({
|
|
1706
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-claude-args.js"() {
|
|
1707
|
+
"use strict";
|
|
1708
|
+
}
|
|
1709
|
+
});
|
|
1710
|
+
|
|
1711
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/codex-bedrock-config-args.js
|
|
1712
|
+
var init_codex_bedrock_config_args = __esm({
|
|
1713
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/bedrock/codex-bedrock-config-args.js"() {
|
|
1714
|
+
"use strict";
|
|
1715
|
+
init_bedrock();
|
|
1716
|
+
}
|
|
1717
|
+
});
|
|
1718
|
+
|
|
1719
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-codex-args.js
|
|
1720
|
+
var init_build_codex_args = __esm({
|
|
1721
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-codex-args.js"() {
|
|
1722
|
+
"use strict";
|
|
1723
|
+
init_codex_bedrock_config_args();
|
|
1724
|
+
}
|
|
1725
|
+
});
|
|
1726
|
+
|
|
1727
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-copilot-args.js
|
|
1728
|
+
var init_build_copilot_args = __esm({
|
|
1729
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-copilot-args.js"() {
|
|
1730
|
+
"use strict";
|
|
1731
|
+
init_resolve_agent_model();
|
|
1732
|
+
}
|
|
1733
|
+
});
|
|
1734
|
+
|
|
1735
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-cursor-args.js
|
|
1736
|
+
var init_build_cursor_args = __esm({
|
|
1737
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-cursor-args.js"() {
|
|
1738
|
+
"use strict";
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
|
|
1742
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-opencode-args.js
|
|
1743
|
+
var init_build_opencode_args = __esm({
|
|
1744
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-args/build-opencode-args.js"() {
|
|
1745
|
+
"use strict";
|
|
1746
|
+
}
|
|
1747
|
+
});
|
|
1748
|
+
|
|
1749
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-agent-args.js
|
|
1750
|
+
var init_build_agent_args = __esm({
|
|
1751
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/build-agent-args.js"() {
|
|
1752
|
+
"use strict";
|
|
1753
|
+
init_build_claude_args();
|
|
1754
|
+
init_build_codex_args();
|
|
1755
|
+
init_build_copilot_args();
|
|
1756
|
+
init_build_cursor_args();
|
|
1757
|
+
init_build_opencode_args();
|
|
1758
|
+
init_resolve_agent_model();
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
|
|
1762
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/describe-agent-failure.js
|
|
1763
|
+
var init_describe_agent_failure = __esm({
|
|
1764
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/describe-agent-failure.js"() {
|
|
1765
|
+
"use strict";
|
|
1766
|
+
}
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/extract-sentinel-output.js
|
|
1770
|
+
var init_extract_sentinel_output = __esm({
|
|
1771
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/extract-sentinel-output.js"() {
|
|
1772
|
+
"use strict";
|
|
1773
|
+
}
|
|
1774
|
+
});
|
|
1775
|
+
|
|
1776
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/format-generate-progress-line.js
|
|
1777
|
+
var init_format_generate_progress_line = __esm({
|
|
1778
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/format-generate-progress-line.js"() {
|
|
1779
|
+
"use strict";
|
|
1780
|
+
}
|
|
1781
|
+
});
|
|
1782
|
+
|
|
1783
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/parse-agent-model.js
|
|
1784
|
+
var init_parse_agent_model = __esm({
|
|
1785
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/parse-agent-model.js"() {
|
|
1786
|
+
"use strict";
|
|
1787
|
+
}
|
|
1788
|
+
});
|
|
1789
|
+
|
|
1790
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent.js
|
|
1791
|
+
var init_resolve_agent = __esm({
|
|
1792
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-agent.js"() {
|
|
1793
|
+
"use strict";
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
|
|
1797
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-model.js
|
|
1798
|
+
var init_resolve_model = __esm({
|
|
1799
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/resolve-model.js"() {
|
|
1800
|
+
"use strict";
|
|
1801
|
+
}
|
|
1802
|
+
});
|
|
1803
|
+
|
|
1804
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/looks-like-path.js
|
|
1805
|
+
var init_looks_like_path = __esm({
|
|
1806
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/looks-like-path.js"() {
|
|
1807
|
+
"use strict";
|
|
1808
|
+
}
|
|
1809
|
+
});
|
|
1810
|
+
|
|
1811
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/parse-prompt-overrides.js
|
|
1812
|
+
var init_parse_prompt_overrides = __esm({
|
|
1813
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/parse-prompt-overrides.js"() {
|
|
1814
|
+
"use strict";
|
|
1815
|
+
init_looks_like_path();
|
|
1816
|
+
}
|
|
1817
|
+
});
|
|
1818
|
+
|
|
1819
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/resolve-prompt-override.js
|
|
1820
|
+
var init_resolve_prompt_override = __esm({
|
|
1821
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/prompt-overrides/resolve-prompt-override.js"() {
|
|
1822
|
+
"use strict";
|
|
1823
|
+
}
|
|
1824
|
+
});
|
|
1825
|
+
|
|
1826
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/build-user-agent.js
|
|
1827
|
+
var init_build_user_agent = __esm({
|
|
1828
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/metadata/build-user-agent.js"() {
|
|
1829
|
+
"use strict";
|
|
1830
|
+
}
|
|
1831
|
+
});
|
|
1832
|
+
|
|
1833
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/tool-names.js
|
|
1834
|
+
var init_tool_names = __esm({
|
|
1835
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/tool-names.js"() {
|
|
1836
|
+
"use strict";
|
|
1837
|
+
}
|
|
1838
|
+
});
|
|
1839
|
+
|
|
1840
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/find-json-object-end.js
|
|
1841
|
+
var init_find_json_object_end = __esm({
|
|
1842
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/find-json-object-end.js"() {
|
|
1843
|
+
"use strict";
|
|
1844
|
+
}
|
|
1845
|
+
});
|
|
1846
|
+
|
|
1847
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/read-tool-call-objects.js
|
|
1848
|
+
var init_read_tool_call_objects = __esm({
|
|
1849
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/read-tool-call-objects.js"() {
|
|
1850
|
+
"use strict";
|
|
1851
|
+
init_find_json_object_end();
|
|
1852
|
+
}
|
|
1853
|
+
});
|
|
1854
|
+
|
|
1855
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-select-tool-calls.js
|
|
1856
|
+
var init_parse_select_tool_calls = __esm({
|
|
1857
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-select-tool-calls.js"() {
|
|
1858
|
+
"use strict";
|
|
1859
|
+
init_tool_names();
|
|
1860
|
+
init_read_tool_call_objects();
|
|
1861
|
+
}
|
|
1862
|
+
});
|
|
1863
|
+
|
|
1864
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-tool-calls.js
|
|
1865
|
+
var init_parse_tool_calls = __esm({
|
|
1866
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-tool-calls.js"() {
|
|
1867
|
+
"use strict";
|
|
1868
|
+
init_tool_names();
|
|
1869
|
+
init_read_tool_call_objects();
|
|
1870
|
+
}
|
|
1871
|
+
});
|
|
1872
|
+
|
|
1873
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-token-tool-calls.js
|
|
1874
|
+
var init_parse_token_tool_calls = __esm({
|
|
1875
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-token-tool-calls.js"() {
|
|
1876
|
+
"use strict";
|
|
1877
|
+
init_tool_names();
|
|
1878
|
+
init_read_tool_call_objects();
|
|
1879
|
+
}
|
|
1880
|
+
});
|
|
1881
|
+
|
|
1882
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/is-string-array.js
|
|
1883
|
+
var init_is_string_array = __esm({
|
|
1884
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/helpers/is-string-array.js"() {
|
|
1885
|
+
"use strict";
|
|
1886
|
+
}
|
|
1887
|
+
});
|
|
1888
|
+
|
|
1889
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-map-token-prop-tool-calls.js
|
|
1890
|
+
var init_parse_map_token_prop_tool_calls = __esm({
|
|
1891
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/parsers/parse-map-token-prop-tool-calls.js"() {
|
|
1892
|
+
"use strict";
|
|
1893
|
+
init_is_string_array();
|
|
1894
|
+
init_read_tool_call_objects();
|
|
1895
|
+
}
|
|
1896
|
+
});
|
|
1897
|
+
|
|
1898
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/services/run-agent.js
|
|
1899
|
+
var init_run_agent = __esm({
|
|
1900
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/services/run-agent.js"() {
|
|
1901
|
+
"use strict";
|
|
1902
|
+
init_bedrock();
|
|
1903
|
+
init_build_agent_args();
|
|
1904
|
+
init_resolve_binary();
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
1907
|
+
|
|
1908
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/services/check-agent-auth.js
|
|
1909
|
+
var init_check_agent_auth = __esm({
|
|
1910
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/services/check-agent-auth.js"() {
|
|
1911
|
+
"use strict";
|
|
1912
|
+
init_resolve_binary();
|
|
1913
|
+
}
|
|
1914
|
+
});
|
|
1915
|
+
|
|
1916
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/colors.js
|
|
1917
|
+
function detectColorSupport() {
|
|
1918
|
+
if (process.env["NO_COLOR"] !== void 0)
|
|
1919
|
+
return false;
|
|
1920
|
+
if (process.env["FORCE_COLOR"] !== void 0)
|
|
1921
|
+
return true;
|
|
1922
|
+
return process.stderr.isTTY === true;
|
|
1923
|
+
}
|
|
1924
|
+
var colorsEnabled, wrap, ansi;
|
|
1925
|
+
var init_colors = __esm({
|
|
1926
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/colors.js"() {
|
|
1927
|
+
"use strict";
|
|
1928
|
+
colorsEnabled = detectColorSupport();
|
|
1929
|
+
wrap = (code) => (text) => colorsEnabled ? `\x1B[${code}m${text}\x1B[0m` : text;
|
|
1930
|
+
ansi = {
|
|
1931
|
+
green: wrap(32),
|
|
1932
|
+
red: wrap(31),
|
|
1933
|
+
cyan: wrap(36),
|
|
1934
|
+
yellow: wrap(33),
|
|
1935
|
+
dim: wrap(2),
|
|
1936
|
+
bold: wrap(1)
|
|
1937
|
+
};
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
|
|
1941
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/format-tool-call.js
|
|
1942
|
+
var init_format_tool_call = __esm({
|
|
1943
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/format-tool-call.js"() {
|
|
1944
|
+
"use strict";
|
|
1945
|
+
init_colors();
|
|
1946
|
+
}
|
|
1947
|
+
});
|
|
1948
|
+
|
|
1949
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/output-formatter.js
|
|
1950
|
+
var init_output_formatter = __esm({
|
|
1951
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/output-formatter.js"() {
|
|
1952
|
+
"use strict";
|
|
1953
|
+
init_colors();
|
|
1954
|
+
init_format_tool_call();
|
|
1955
|
+
}
|
|
1956
|
+
});
|
|
1957
|
+
|
|
1958
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/index.js
|
|
1959
|
+
var init_output_formatter2 = __esm({
|
|
1960
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/output-formatter/index.js"() {
|
|
1961
|
+
"use strict";
|
|
1962
|
+
init_output_formatter();
|
|
1963
|
+
init_colors();
|
|
1964
|
+
init_format_tool_call();
|
|
1965
|
+
}
|
|
1966
|
+
});
|
|
1967
|
+
|
|
1968
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/services/invoke-agent-with-output.js
|
|
1969
|
+
var init_invoke_agent_with_output = __esm({
|
|
1970
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/services/invoke-agent-with-output.js"() {
|
|
1971
|
+
"use strict";
|
|
1972
|
+
init_output_formatter2();
|
|
1973
|
+
}
|
|
1974
|
+
});
|
|
1975
|
+
|
|
1976
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/invoker/create-local-cli-agent-invoker.js
|
|
1977
|
+
var init_create_local_cli_agent_invoker = __esm({
|
|
1978
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/invoker/create-local-cli-agent-invoker.js"() {
|
|
1979
|
+
"use strict";
|
|
1980
|
+
init_check_agent_auth();
|
|
1981
|
+
init_run_agent();
|
|
1982
|
+
}
|
|
1983
|
+
});
|
|
1984
|
+
|
|
1985
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/candidate-file.js
|
|
1986
|
+
var init_candidate_file = __esm({
|
|
1987
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/candidate-file.js"() {
|
|
1988
|
+
"use strict";
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
|
|
1992
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/types.js
|
|
1993
|
+
import * as z from "zod/mini";
|
|
1994
|
+
var CDFPropertySchema, CDFSlotSchema, CDFComponentSchema, CDFTokenSchema;
|
|
1995
|
+
var init_types2 = __esm({
|
|
1996
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/types.js"() {
|
|
1997
|
+
"use strict";
|
|
1998
|
+
init_vocabularies();
|
|
1999
|
+
init_token_types();
|
|
2000
|
+
CDFPropertySchema = z.strictObject({
|
|
2001
|
+
$type: z.enum(CDF_PROPERTY_TYPES),
|
|
2002
|
+
$category: z.enum(CDF_PROPERTY_CATEGORIES),
|
|
2003
|
+
$description: z.optional(z.string()),
|
|
2004
|
+
$required: z.optional(z.boolean()),
|
|
2005
|
+
$default: z.optional(z.any()),
|
|
2006
|
+
$values: z.optional(z.array(z.string())),
|
|
2007
|
+
"$token.kind": z.optional(z.string()),
|
|
2008
|
+
"$token.allowed": z.optional(z.array(z.string()))
|
|
2009
|
+
});
|
|
2010
|
+
CDFSlotSchema = z.strictObject({
|
|
2011
|
+
$description: z.optional(z.string()),
|
|
2012
|
+
$allowedComponents: z.optional(z.array(z.string())),
|
|
2013
|
+
$required: z.optional(z.boolean())
|
|
2014
|
+
});
|
|
2015
|
+
CDFComponentSchema = z.strictObject({
|
|
2016
|
+
$type: z.literal("component"),
|
|
2017
|
+
$description: z.optional(z.string()),
|
|
2018
|
+
$properties: z.record(z.string(), CDFPropertySchema),
|
|
2019
|
+
$slots: z.optional(z.record(z.string(), CDFSlotSchema))
|
|
2020
|
+
});
|
|
2021
|
+
CDFTokenSchema = z.strictObject({
|
|
2022
|
+
$type: z.enum(DESIGN_TOKEN_TYPES),
|
|
2023
|
+
$value: z.unknown(),
|
|
2024
|
+
$description: z.optional(z.string())
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
|
|
2029
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/index.js
|
|
2030
|
+
var init_types3 = __esm({
|
|
2031
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/types/index.js"() {
|
|
2032
|
+
"use strict";
|
|
2033
|
+
init_types2();
|
|
2034
|
+
}
|
|
2035
|
+
});
|
|
2036
|
+
|
|
2037
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/index.js
|
|
2038
|
+
var init_constants = __esm({
|
|
2039
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/constants/index.js"() {
|
|
2040
|
+
"use strict";
|
|
2041
|
+
init_schema();
|
|
2042
|
+
init_vocabularies();
|
|
2043
|
+
}
|
|
2044
|
+
});
|
|
2045
|
+
|
|
2046
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/build.js
|
|
2047
|
+
var init_build = __esm({
|
|
2048
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/build.js"() {
|
|
2049
|
+
"use strict";
|
|
2050
|
+
init_schema();
|
|
2051
|
+
}
|
|
2052
|
+
});
|
|
2053
|
+
|
|
2054
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/index.js
|
|
2055
|
+
var init_helpers = __esm({
|
|
2056
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/helpers/index.js"() {
|
|
2057
|
+
"use strict";
|
|
2058
|
+
init_build();
|
|
2059
|
+
init_validate();
|
|
2060
|
+
}
|
|
2061
|
+
});
|
|
2062
|
+
|
|
2063
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/index.js
|
|
2064
|
+
var init_cdf = __esm({
|
|
2065
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/cdf/index.js"() {
|
|
2066
|
+
"use strict";
|
|
2067
|
+
init_types3();
|
|
2068
|
+
init_constants();
|
|
2069
|
+
init_helpers();
|
|
2070
|
+
}
|
|
2071
|
+
});
|
|
2072
|
+
|
|
2073
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/types.js
|
|
2074
|
+
import * as z2 from "zod/mini";
|
|
2075
|
+
var DTCGTokenSchema;
|
|
2076
|
+
var init_types4 = __esm({
|
|
2077
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/types.js"() {
|
|
2078
|
+
"use strict";
|
|
2079
|
+
init_token_types();
|
|
2080
|
+
DTCGTokenSchema = z2.strictObject({
|
|
2081
|
+
path: z2.string(),
|
|
2082
|
+
$type: z2.enum(DESIGN_TOKEN_TYPES),
|
|
2083
|
+
$value: z2.unknown(),
|
|
2084
|
+
$description: z2.optional(z2.string())
|
|
2085
|
+
});
|
|
2086
|
+
}
|
|
2087
|
+
});
|
|
2088
|
+
|
|
2089
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/index.js
|
|
2090
|
+
var init_types5 = __esm({
|
|
2091
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/types/index.js"() {
|
|
2092
|
+
"use strict";
|
|
2093
|
+
init_types4();
|
|
2094
|
+
}
|
|
2095
|
+
});
|
|
2096
|
+
|
|
2097
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/index.js
|
|
2098
|
+
var init_constants2 = __esm({
|
|
2099
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/constants/index.js"() {
|
|
2100
|
+
"use strict";
|
|
2101
|
+
init_token_types();
|
|
2102
|
+
}
|
|
2103
|
+
});
|
|
2104
|
+
|
|
2105
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/flatten.js
|
|
2106
|
+
var init_flatten = __esm({
|
|
2107
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/flatten.js"() {
|
|
2108
|
+
"use strict";
|
|
2109
|
+
}
|
|
2110
|
+
});
|
|
2111
|
+
|
|
2112
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/validate.js
|
|
2113
|
+
var TOKEN_TYPE_SET2;
|
|
2114
|
+
var init_validate2 = __esm({
|
|
2115
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/validate.js"() {
|
|
2116
|
+
"use strict";
|
|
2117
|
+
init_token_types();
|
|
2118
|
+
init_flatten();
|
|
2119
|
+
TOKEN_TYPE_SET2 = new Set(DESIGN_TOKEN_TYPES);
|
|
2120
|
+
}
|
|
2121
|
+
});
|
|
2122
|
+
|
|
2123
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/index.js
|
|
2124
|
+
var init_helpers2 = __esm({
|
|
2125
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/helpers/index.js"() {
|
|
2126
|
+
"use strict";
|
|
2127
|
+
init_flatten();
|
|
2128
|
+
init_validate2();
|
|
2129
|
+
}
|
|
2130
|
+
});
|
|
2131
|
+
|
|
2132
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/index.js
|
|
2133
|
+
var init_dtcg = __esm({
|
|
2134
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/dtcg/index.js"() {
|
|
2135
|
+
"use strict";
|
|
2136
|
+
init_types5();
|
|
2137
|
+
init_constants2();
|
|
2138
|
+
init_helpers2();
|
|
2139
|
+
}
|
|
2140
|
+
});
|
|
2141
|
+
|
|
2142
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/apply.js
|
|
2143
|
+
var init_apply = __esm({
|
|
2144
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/apply.js"() {
|
|
2145
|
+
"use strict";
|
|
2146
|
+
}
|
|
2147
|
+
});
|
|
2148
|
+
|
|
2149
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/preview.js
|
|
2150
|
+
var init_preview = __esm({
|
|
2151
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/preview.js"() {
|
|
2152
|
+
"use strict";
|
|
2153
|
+
}
|
|
2154
|
+
});
|
|
2155
|
+
|
|
2156
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/index.js
|
|
2157
|
+
var init_types6 = __esm({
|
|
2158
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/types/index.js"() {
|
|
2159
|
+
"use strict";
|
|
2160
|
+
init_apply();
|
|
2161
|
+
init_preview();
|
|
2162
|
+
}
|
|
2163
|
+
});
|
|
2164
|
+
|
|
2165
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/index.js
|
|
2166
|
+
var init_sources_api = __esm({
|
|
2167
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/sources-api/index.js"() {
|
|
2168
|
+
"use strict";
|
|
2169
|
+
init_types6();
|
|
2170
|
+
}
|
|
2171
|
+
});
|
|
2172
|
+
|
|
2173
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/index.js
|
|
2174
|
+
var init_shared = __esm({
|
|
2175
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/index.js"() {
|
|
2176
|
+
"use strict";
|
|
2177
|
+
init_candidate_file();
|
|
2178
|
+
init_cdf();
|
|
2179
|
+
init_dtcg();
|
|
2180
|
+
init_sources_api();
|
|
2181
|
+
}
|
|
2182
|
+
});
|
|
2183
|
+
|
|
2184
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/filter-design-token-props.js
|
|
2185
|
+
var init_filter_design_token_props = __esm({
|
|
2186
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/filter-design-token-props.js"() {
|
|
2187
|
+
"use strict";
|
|
2188
|
+
}
|
|
2189
|
+
});
|
|
2190
|
+
|
|
2191
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/format-token-candidates.js
|
|
2192
|
+
var init_format_token_candidates = __esm({
|
|
2193
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/format-token-candidates.js"() {
|
|
2194
|
+
"use strict";
|
|
2195
|
+
}
|
|
2196
|
+
});
|
|
2197
|
+
|
|
2198
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/infer-fence-lang.js
|
|
2199
|
+
var init_infer_fence_lang = __esm({
|
|
2200
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/infer-fence-lang.js"() {
|
|
2201
|
+
"use strict";
|
|
2202
|
+
}
|
|
2203
|
+
});
|
|
2204
|
+
|
|
2205
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/build-input-sections.js
|
|
2206
|
+
var init_build_input_sections = __esm({
|
|
2207
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/build-input-sections.js"() {
|
|
2208
|
+
"use strict";
|
|
2209
|
+
init_shared();
|
|
2210
|
+
init_filter_design_token_props();
|
|
2211
|
+
init_format_token_candidates();
|
|
2212
|
+
init_infer_fence_lang();
|
|
2213
|
+
}
|
|
2214
|
+
});
|
|
2215
|
+
|
|
2216
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/constants/skill-files.js
|
|
2217
|
+
var init_skill_files = __esm({
|
|
2218
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/constants/skill-files.js"() {
|
|
2219
|
+
"use strict";
|
|
2220
|
+
}
|
|
2221
|
+
});
|
|
2222
|
+
|
|
2223
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/resolve-skill-path.js
|
|
2224
|
+
var init_resolve_skill_path = __esm({
|
|
2225
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/resolve-skill-path.js"() {
|
|
2226
|
+
"use strict";
|
|
2227
|
+
init_skill_files();
|
|
2228
|
+
}
|
|
2229
|
+
});
|
|
2230
|
+
|
|
2231
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/read-skill-file.js
|
|
2232
|
+
var init_read_skill_file = __esm({
|
|
2233
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/helpers/read-skill-file.js"() {
|
|
2234
|
+
"use strict";
|
|
2235
|
+
init_resolve_skill_path();
|
|
2236
|
+
}
|
|
2237
|
+
});
|
|
2238
|
+
|
|
2239
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-components-preamble.js
|
|
2240
|
+
var init_build_components_preamble = __esm({
|
|
2241
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-components-preamble.js"() {
|
|
2242
|
+
"use strict";
|
|
2243
|
+
}
|
|
2244
|
+
});
|
|
2245
|
+
|
|
2246
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-map-tokens-preamble.js
|
|
2247
|
+
var init_build_map_tokens_preamble = __esm({
|
|
2248
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-map-tokens-preamble.js"() {
|
|
2249
|
+
"use strict";
|
|
2250
|
+
}
|
|
2251
|
+
});
|
|
2252
|
+
|
|
2253
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-select-preamble.js
|
|
2254
|
+
var init_build_select_preamble = __esm({
|
|
2255
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-select-preamble.js"() {
|
|
2256
|
+
"use strict";
|
|
2257
|
+
}
|
|
2258
|
+
});
|
|
2259
|
+
|
|
2260
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-tokens-preamble.js
|
|
2261
|
+
var init_build_tokens_preamble = __esm({
|
|
2262
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/preambles/build-tokens-preamble.js"() {
|
|
2263
|
+
"use strict";
|
|
2264
|
+
}
|
|
2265
|
+
});
|
|
2266
|
+
|
|
2267
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/build-prompt.js
|
|
2268
|
+
var init_build_prompt = __esm({
|
|
2269
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/build-prompt.js"() {
|
|
2270
|
+
"use strict";
|
|
2271
|
+
init_build_input_sections();
|
|
2272
|
+
init_read_skill_file();
|
|
2273
|
+
init_build_components_preamble();
|
|
2274
|
+
init_build_map_tokens_preamble();
|
|
2275
|
+
init_build_select_preamble();
|
|
2276
|
+
init_build_tokens_preamble();
|
|
2277
|
+
}
|
|
2278
|
+
});
|
|
2279
|
+
|
|
2280
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/format-custom-prompt-banner.js
|
|
2281
|
+
var init_format_custom_prompt_banner = __esm({
|
|
2282
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/prompts/format-custom-prompt-banner.js"() {
|
|
2283
|
+
"use strict";
|
|
2284
|
+
}
|
|
2285
|
+
});
|
|
2286
|
+
|
|
2287
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/index.js
|
|
2288
|
+
var init_agents = __esm({
|
|
2289
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/index.js"() {
|
|
2290
|
+
"use strict";
|
|
2291
|
+
init_types();
|
|
2292
|
+
init_models();
|
|
2293
|
+
init_is_agent_name();
|
|
2294
|
+
init_resolve_binary();
|
|
2295
|
+
init_resolve_agent_model();
|
|
2296
|
+
init_agent_supports_bedrock();
|
|
2297
|
+
init_build_agent_args();
|
|
2298
|
+
init_describe_agent_failure();
|
|
2299
|
+
init_extract_sentinel_output();
|
|
2300
|
+
init_format_generate_progress_line();
|
|
2301
|
+
init_parse_agent_model();
|
|
2302
|
+
init_resolve_agent();
|
|
2303
|
+
init_resolve_model();
|
|
2304
|
+
init_looks_like_path();
|
|
2305
|
+
init_parse_prompt_overrides();
|
|
2306
|
+
init_resolve_prompt_override();
|
|
2307
|
+
init_build_user_agent();
|
|
2308
|
+
init_parse_select_tool_calls();
|
|
2309
|
+
init_parse_tool_calls();
|
|
2310
|
+
init_parse_token_tool_calls();
|
|
2311
|
+
init_parse_map_token_prop_tool_calls();
|
|
2312
|
+
init_parse_map_token_prop_tool_calls();
|
|
2313
|
+
init_run_agent();
|
|
2314
|
+
init_check_agent_auth();
|
|
2315
|
+
init_invoke_agent_with_output();
|
|
2316
|
+
init_output_formatter2();
|
|
2317
|
+
init_create_local_cli_agent_invoker();
|
|
2318
|
+
init_build_prompt();
|
|
2319
|
+
init_resolve_skill_path();
|
|
2320
|
+
init_format_custom_prompt_banner();
|
|
2321
|
+
}
|
|
2322
|
+
});
|
|
2323
|
+
|
|
2324
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/agent.js
|
|
2325
|
+
var init_agent = __esm({
|
|
2326
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/agent.js"() {
|
|
2327
|
+
"use strict";
|
|
2328
|
+
}
|
|
2329
|
+
});
|
|
2330
|
+
|
|
2331
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/index.js
|
|
2332
|
+
var init_constants3 = __esm({
|
|
2333
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/shared/constants/index.js"() {
|
|
2334
|
+
"use strict";
|
|
2335
|
+
init_agent();
|
|
2336
|
+
}
|
|
2337
|
+
});
|
|
2338
|
+
|
|
2339
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/merge-edges.js
|
|
2340
|
+
var init_merge_edges = __esm({
|
|
2341
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/merge-edges.js"() {
|
|
2342
|
+
"use strict";
|
|
2343
|
+
}
|
|
2344
|
+
});
|
|
2345
|
+
|
|
2346
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/parse-map-edges.js
|
|
2347
|
+
var init_parse_map_edges = __esm({
|
|
2348
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/parse-map-edges.js"() {
|
|
2349
|
+
"use strict";
|
|
2350
|
+
}
|
|
2351
|
+
});
|
|
2352
|
+
|
|
2353
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/apply-mapping.js
|
|
2354
|
+
var init_apply_mapping = __esm({
|
|
2355
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/apply-mapping.js"() {
|
|
2356
|
+
"use strict";
|
|
2357
|
+
}
|
|
2358
|
+
});
|
|
2359
|
+
|
|
2360
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/prompt/prompt-loader.js
|
|
2361
|
+
var init_prompt_loader = __esm({
|
|
2362
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/prompt/prompt-loader.js"() {
|
|
2363
|
+
"use strict";
|
|
2364
|
+
}
|
|
2365
|
+
});
|
|
2366
|
+
|
|
2367
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-mapping.js
|
|
2368
|
+
var init_resolve_mapping = __esm({
|
|
2369
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-mapping.js"() {
|
|
2370
|
+
"use strict";
|
|
2371
|
+
init_merge_edges();
|
|
2372
|
+
init_parse_map_edges();
|
|
2373
|
+
init_apply_mapping();
|
|
2374
|
+
init_prompt_loader();
|
|
2375
|
+
}
|
|
2376
|
+
});
|
|
2377
|
+
|
|
2378
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/candidate-files.js
|
|
2379
|
+
var init_candidate_files = __esm({
|
|
2380
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/candidate-files.js"() {
|
|
2381
|
+
"use strict";
|
|
2382
|
+
}
|
|
2383
|
+
});
|
|
2384
|
+
|
|
2385
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/index.js
|
|
2386
|
+
var init_constants4 = __esm({
|
|
2387
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/constants/index.js"() {
|
|
2388
|
+
"use strict";
|
|
2389
|
+
init_candidate_files();
|
|
2390
|
+
}
|
|
2391
|
+
});
|
|
2392
|
+
|
|
2393
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/candidate-files.js
|
|
2394
|
+
var init_candidate_files2 = __esm({
|
|
2395
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/candidate-files.js"() {
|
|
2396
|
+
"use strict";
|
|
2397
|
+
init_constants4();
|
|
2398
|
+
}
|
|
2399
|
+
});
|
|
2400
|
+
|
|
2401
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/composition-cache-key.js
|
|
2402
|
+
var init_composition_cache_key = __esm({
|
|
2403
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/candidates/composition-cache-key.js"() {
|
|
2404
|
+
"use strict";
|
|
2405
|
+
}
|
|
2406
|
+
});
|
|
2407
|
+
|
|
2408
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/manifest-doc-evidence.js
|
|
2409
|
+
var init_manifest_doc_evidence = __esm({
|
|
2410
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/manifest-doc-evidence.js"() {
|
|
2411
|
+
"use strict";
|
|
2412
|
+
}
|
|
2413
|
+
});
|
|
2414
|
+
|
|
2415
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/services/run-composition-service.js
|
|
2416
|
+
var init_run_composition_service = __esm({
|
|
2417
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/services/run-composition-service.js"() {
|
|
2418
|
+
"use strict";
|
|
2419
|
+
init_agents();
|
|
2420
|
+
init_resolve_mapping();
|
|
2421
|
+
init_candidate_files2();
|
|
2422
|
+
init_composition_cache_key();
|
|
2423
|
+
init_manifest_doc_evidence();
|
|
2424
|
+
}
|
|
2425
|
+
});
|
|
2426
|
+
|
|
2427
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/endpoint/compose-components-endpoint.js
|
|
2428
|
+
var init_compose_components_endpoint = __esm({
|
|
2429
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/endpoint/compose-components-endpoint.js"() {
|
|
2430
|
+
"use strict";
|
|
2431
|
+
init_agents();
|
|
2432
|
+
init_constants3();
|
|
2433
|
+
init_run_composition_service();
|
|
2434
|
+
}
|
|
2435
|
+
});
|
|
2436
|
+
|
|
2437
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-composition-sources.js
|
|
2438
|
+
var init_resolve_composition_sources = __esm({
|
|
2439
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/edges/resolve-composition-sources.js"() {
|
|
2440
|
+
"use strict";
|
|
2441
|
+
}
|
|
2442
|
+
});
|
|
2443
|
+
|
|
2444
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-component-graph.js
|
|
2445
|
+
var init_build_component_graph = __esm({
|
|
2446
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-component-graph.js"() {
|
|
2447
|
+
"use strict";
|
|
2448
|
+
}
|
|
2449
|
+
});
|
|
2450
|
+
|
|
2451
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/build-component-graph.js
|
|
2452
|
+
var init_build_component_graph2 = __esm({
|
|
2453
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/build-component-graph.js"() {
|
|
2454
|
+
"use strict";
|
|
2455
|
+
init_build_component_graph();
|
|
2456
|
+
}
|
|
2457
|
+
});
|
|
2458
|
+
|
|
2459
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-adjacency.js
|
|
2460
|
+
var init_build_adjacency = __esm({
|
|
2461
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/build-adjacency.js"() {
|
|
2462
|
+
"use strict";
|
|
2463
|
+
}
|
|
2464
|
+
});
|
|
2465
|
+
|
|
2466
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/collect-self-loops.js
|
|
2467
|
+
var init_collect_self_loops = __esm({
|
|
2468
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/collect-self-loops.js"() {
|
|
2469
|
+
"use strict";
|
|
2470
|
+
}
|
|
2471
|
+
});
|
|
2472
|
+
|
|
2473
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-elementary-circuits.js
|
|
2474
|
+
var init_find_elementary_circuits = __esm({
|
|
2475
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-elementary-circuits.js"() {
|
|
2476
|
+
"use strict";
|
|
2477
|
+
}
|
|
2478
|
+
});
|
|
2479
|
+
|
|
2480
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/strongly-connected-components.js
|
|
2481
|
+
var init_strongly_connected_components = __esm({
|
|
2482
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/strongly-connected-components.js"() {
|
|
2483
|
+
"use strict";
|
|
2484
|
+
}
|
|
2485
|
+
});
|
|
2486
|
+
|
|
2487
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-slot-cycles.js
|
|
2488
|
+
var init_find_slot_cycles = __esm({
|
|
2489
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/find-slot-cycles.js"() {
|
|
2490
|
+
"use strict";
|
|
2491
|
+
init_build_adjacency();
|
|
2492
|
+
init_collect_self_loops();
|
|
2493
|
+
init_find_elementary_circuits();
|
|
2494
|
+
init_strongly_connected_components();
|
|
2495
|
+
}
|
|
2496
|
+
});
|
|
2497
|
+
|
|
2498
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/find-slot-cycles.js
|
|
2499
|
+
var init_find_slot_cycles2 = __esm({
|
|
2500
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/find-slot-cycles.js"() {
|
|
2501
|
+
"use strict";
|
|
2502
|
+
init_find_slot_cycles();
|
|
2503
|
+
}
|
|
2504
|
+
});
|
|
2505
|
+
|
|
2506
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/group-nodes-by-cycle-membership.js
|
|
2507
|
+
var init_group_nodes_by_cycle_membership = __esm({
|
|
2508
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/group-nodes-by-cycle-membership.js"() {
|
|
2509
|
+
"use strict";
|
|
2510
|
+
}
|
|
2511
|
+
});
|
|
2512
|
+
|
|
2513
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/group-nodes-by-cycle-membership.js
|
|
2514
|
+
var init_group_nodes_by_cycle_membership2 = __esm({
|
|
2515
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/cycles/group-nodes-by-cycle-membership.js"() {
|
|
2516
|
+
"use strict";
|
|
2517
|
+
init_group_nodes_by_cycle_membership();
|
|
2518
|
+
}
|
|
2519
|
+
});
|
|
2520
|
+
|
|
2521
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/slot-targets-of.js
|
|
2522
|
+
var init_slot_targets_of = __esm({
|
|
2523
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/slot-targets-of.js"() {
|
|
2524
|
+
"use strict";
|
|
2525
|
+
}
|
|
2526
|
+
});
|
|
2527
|
+
|
|
2528
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/expand-seeds-to-include-cycle-groups.js
|
|
2529
|
+
var init_expand_seeds_to_include_cycle_groups = __esm({
|
|
2530
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/expand-seeds-to-include-cycle-groups.js"() {
|
|
2531
|
+
"use strict";
|
|
2532
|
+
init_slot_targets_of();
|
|
2533
|
+
}
|
|
2534
|
+
});
|
|
2535
|
+
|
|
2536
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/expand-seeds-to-include-cycle-groups.js
|
|
2537
|
+
var init_expand_seeds_to_include_cycle_groups2 = __esm({
|
|
2538
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/expand-seeds-to-include-cycle-groups.js"() {
|
|
2539
|
+
"use strict";
|
|
2540
|
+
init_expand_seeds_to_include_cycle_groups();
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
|
|
2544
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-descendants-respecting-cycles.js
|
|
2545
|
+
var init_select_descendants_respecting_cycles = __esm({
|
|
2546
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-descendants-respecting-cycles.js"() {
|
|
2547
|
+
"use strict";
|
|
2548
|
+
init_slot_targets_of();
|
|
2549
|
+
}
|
|
2550
|
+
});
|
|
2551
|
+
|
|
2552
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-descendants-respecting-cycles.js
|
|
2553
|
+
var init_select_descendants_respecting_cycles2 = __esm({
|
|
2554
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-descendants-respecting-cycles.js"() {
|
|
2555
|
+
"use strict";
|
|
2556
|
+
init_select_descendants_respecting_cycles();
|
|
2557
|
+
}
|
|
2558
|
+
});
|
|
2559
|
+
|
|
2560
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-direct-parents.js
|
|
2561
|
+
var init_find_direct_parents = __esm({
|
|
2562
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-direct-parents.js"() {
|
|
2563
|
+
"use strict";
|
|
2564
|
+
}
|
|
2565
|
+
});
|
|
2566
|
+
|
|
2567
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-ancestors-respecting-cycles.js
|
|
2568
|
+
var init_reject_ancestors_respecting_cycles = __esm({
|
|
2569
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-ancestors-respecting-cycles.js"() {
|
|
2570
|
+
"use strict";
|
|
2571
|
+
init_find_direct_parents();
|
|
2572
|
+
init_select_descendants_respecting_cycles();
|
|
2573
|
+
}
|
|
2574
|
+
});
|
|
2575
|
+
|
|
2576
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-ancestors-respecting-cycles.js
|
|
2577
|
+
var init_reject_ancestors_respecting_cycles2 = __esm({
|
|
2578
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-ancestors-respecting-cycles.js"() {
|
|
2579
|
+
"use strict";
|
|
2580
|
+
init_reject_ancestors_respecting_cycles();
|
|
2581
|
+
}
|
|
2582
|
+
});
|
|
2583
|
+
|
|
2584
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/edges-from-node.js
|
|
2585
|
+
var init_edges_from_node = __esm({
|
|
2586
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/edges-from-node.js"() {
|
|
2587
|
+
"use strict";
|
|
2588
|
+
}
|
|
2589
|
+
});
|
|
2590
|
+
|
|
2591
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/walk-reachable.js
|
|
2592
|
+
var init_walk_reachable = __esm({
|
|
2593
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/walk-reachable.js"() {
|
|
2594
|
+
"use strict";
|
|
2595
|
+
init_edges_from_node();
|
|
2596
|
+
}
|
|
2597
|
+
});
|
|
2598
|
+
|
|
2599
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-all-descendants.js
|
|
2600
|
+
var init_select_all_descendants = __esm({
|
|
2601
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/select-all-descendants.js"() {
|
|
2602
|
+
"use strict";
|
|
2603
|
+
init_walk_reachable();
|
|
2604
|
+
}
|
|
2605
|
+
});
|
|
2606
|
+
|
|
2607
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-all-descendants.js
|
|
2608
|
+
var init_select_all_descendants2 = __esm({
|
|
2609
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/select-all-descendants.js"() {
|
|
2610
|
+
"use strict";
|
|
2611
|
+
init_select_all_descendants();
|
|
2612
|
+
}
|
|
2613
|
+
});
|
|
2614
|
+
|
|
2615
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-all-parents.js
|
|
2616
|
+
var init_find_all_parents = __esm({
|
|
2617
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/find-all-parents.js"() {
|
|
2618
|
+
"use strict";
|
|
2619
|
+
init_find_direct_parents();
|
|
2620
|
+
}
|
|
2621
|
+
});
|
|
2622
|
+
|
|
2623
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-all-ancestors.js
|
|
2624
|
+
var init_reject_all_ancestors = __esm({
|
|
2625
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/reject-all-ancestors.js"() {
|
|
2626
|
+
"use strict";
|
|
2627
|
+
init_find_all_parents();
|
|
2628
|
+
}
|
|
2629
|
+
});
|
|
2630
|
+
|
|
2631
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-all-ancestors.js
|
|
2632
|
+
var init_reject_all_ancestors2 = __esm({
|
|
2633
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/reject-all-ancestors.js"() {
|
|
2634
|
+
"use strict";
|
|
2635
|
+
init_reject_all_ancestors();
|
|
2636
|
+
}
|
|
2637
|
+
});
|
|
2638
|
+
|
|
2639
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/expand-matches-by-one-hop.js
|
|
2640
|
+
var init_expand_matches_by_one_hop = __esm({
|
|
2641
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/graph/expand-matches-by-one-hop.js"() {
|
|
2642
|
+
"use strict";
|
|
2643
|
+
}
|
|
2644
|
+
});
|
|
2645
|
+
|
|
2646
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/expand-matches-by-one-hop.js
|
|
2647
|
+
var init_expand_matches_by_one_hop2 = __esm({
|
|
2648
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/expand-matches-by-one-hop.js"() {
|
|
2649
|
+
"use strict";
|
|
2650
|
+
init_expand_matches_by_one_hop();
|
|
2651
|
+
}
|
|
2652
|
+
});
|
|
2653
|
+
|
|
2654
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/find-all-parents.js
|
|
2655
|
+
var init_find_all_parents2 = __esm({
|
|
2656
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/graph/find-all-parents.js"() {
|
|
2657
|
+
"use strict";
|
|
2658
|
+
init_find_all_parents();
|
|
2659
|
+
}
|
|
2660
|
+
});
|
|
2661
|
+
|
|
2662
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/propagate-descendant-issues-to-ancestors.js
|
|
2663
|
+
var init_propagate_descendant_issues_to_ancestors = __esm({
|
|
2664
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/propagate-descendant-issues-to-ancestors.js"() {
|
|
2665
|
+
"use strict";
|
|
2666
|
+
}
|
|
2667
|
+
});
|
|
2668
|
+
|
|
2669
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/propagate-descendant-issues-to-ancestors.js
|
|
2670
|
+
var init_propagate_descendant_issues_to_ancestors2 = __esm({
|
|
2671
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/propagate-descendant-issues-to-ancestors.js"() {
|
|
2672
|
+
"use strict";
|
|
2673
|
+
init_propagate_descendant_issues_to_ancestors();
|
|
2674
|
+
}
|
|
2675
|
+
});
|
|
2676
|
+
|
|
2677
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/find-worst-issued-descendant.js
|
|
2678
|
+
var init_find_worst_issued_descendant = __esm({
|
|
2679
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/selection/find-worst-issued-descendant.js"() {
|
|
2680
|
+
"use strict";
|
|
2681
|
+
}
|
|
2682
|
+
});
|
|
2683
|
+
|
|
2684
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/find-worst-issued-descendant.js
|
|
2685
|
+
var init_find_worst_issued_descendant2 = __esm({
|
|
2686
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/controller/selection/find-worst-issued-descendant.js"() {
|
|
2687
|
+
"use strict";
|
|
2688
|
+
init_find_worst_issued_descendant();
|
|
2689
|
+
}
|
|
2690
|
+
});
|
|
2691
|
+
|
|
2692
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/suggest-cycle-break-edge.js
|
|
2693
|
+
var init_suggest_cycle_break_edge = __esm({
|
|
2694
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/suggest-cycle-break-edge.js"() {
|
|
2695
|
+
"use strict";
|
|
2696
|
+
}
|
|
2697
|
+
});
|
|
2698
|
+
|
|
2699
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path.js
|
|
2700
|
+
var init_format_cycle_path = __esm({
|
|
2701
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path.js"() {
|
|
2702
|
+
"use strict";
|
|
2703
|
+
}
|
|
2704
|
+
});
|
|
2705
|
+
|
|
2706
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path-segments.js
|
|
2707
|
+
var init_format_cycle_path_segments = __esm({
|
|
2708
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/composition/src/helpers/cycles/format-cycle-path-segments.js"() {
|
|
2709
|
+
"use strict";
|
|
2710
|
+
}
|
|
2711
|
+
});
|
|
2712
|
+
|
|
2713
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/services/run-selection-service.js
|
|
2714
|
+
var DEFAULT_TIMEOUT_MS;
|
|
2715
|
+
var init_run_selection_service = __esm({
|
|
2716
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/services/run-selection-service.js"() {
|
|
2717
|
+
"use strict";
|
|
2718
|
+
init_agents();
|
|
2719
|
+
DEFAULT_TIMEOUT_MS = Number(process.env.EDS_AGENT_TIMEOUT_MS ?? 5 * 60 * 1e3);
|
|
2720
|
+
}
|
|
2721
|
+
});
|
|
2722
|
+
|
|
2723
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/select-components-endpoint.js
|
|
2724
|
+
var init_select_components_endpoint = __esm({
|
|
2725
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/select-components-endpoint.js"() {
|
|
2726
|
+
"use strict";
|
|
2727
|
+
init_agents();
|
|
2728
|
+
init_constants3();
|
|
2729
|
+
init_run_selection_service();
|
|
2730
|
+
}
|
|
2731
|
+
});
|
|
2732
|
+
|
|
2733
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/validate.js
|
|
2734
|
+
var init_validate3 = __esm({
|
|
2735
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/helpers/quality/validate.js"() {
|
|
2736
|
+
"use strict";
|
|
2737
|
+
}
|
|
2738
|
+
});
|
|
2739
|
+
|
|
2740
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-component-id.js
|
|
2741
|
+
var init_create_component_id = __esm({
|
|
2742
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-component-id.js"() {
|
|
2743
|
+
"use strict";
|
|
2744
|
+
}
|
|
2745
|
+
});
|
|
2746
|
+
|
|
2747
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/resolve-component-source-path.js
|
|
2748
|
+
var init_resolve_component_source_path = __esm({
|
|
2749
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/resolve-component-source-path.js"() {
|
|
2750
|
+
"use strict";
|
|
2751
|
+
}
|
|
2752
|
+
});
|
|
2753
|
+
|
|
2754
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/load-review-input.js
|
|
2755
|
+
var init_load_review_input = __esm({
|
|
2756
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/load-review-input.js"() {
|
|
2757
|
+
"use strict";
|
|
2758
|
+
init_create_component_id();
|
|
2759
|
+
init_resolve_component_source_path();
|
|
2760
|
+
}
|
|
2761
|
+
});
|
|
2762
|
+
|
|
2763
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/load-and-validate-for-review.js
|
|
2764
|
+
var init_load_and_validate_for_review = __esm({
|
|
2765
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/load-and-validate-for-review.js"() {
|
|
2766
|
+
"use strict";
|
|
2767
|
+
init_validate3();
|
|
2768
|
+
init_db();
|
|
2769
|
+
init_db();
|
|
2770
|
+
init_load_review_input();
|
|
2771
|
+
}
|
|
2772
|
+
});
|
|
2773
|
+
|
|
2774
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-session-paths.js
|
|
2775
|
+
var init_review_session_paths = __esm({
|
|
2776
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-session-paths.js"() {
|
|
2777
|
+
"use strict";
|
|
2778
|
+
}
|
|
2779
|
+
});
|
|
2780
|
+
|
|
2781
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/ensure-review-session.js
|
|
2782
|
+
var init_ensure_review_session = __esm({
|
|
2783
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/ensure-review-session.js"() {
|
|
2784
|
+
"use strict";
|
|
2785
|
+
init_review_session_paths();
|
|
2786
|
+
}
|
|
2787
|
+
});
|
|
2788
|
+
|
|
2789
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-artifacts-root.js
|
|
2790
|
+
var init_review_artifacts_root = __esm({
|
|
2791
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/review-artifacts-root.js"() {
|
|
2792
|
+
"use strict";
|
|
2793
|
+
init_config_root();
|
|
2794
|
+
}
|
|
2795
|
+
});
|
|
2796
|
+
|
|
2797
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/save-review-state.js
|
|
2798
|
+
var init_save_review_state = __esm({
|
|
2799
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/save-review-state.js"() {
|
|
2800
|
+
"use strict";
|
|
2801
|
+
}
|
|
2802
|
+
});
|
|
2803
|
+
|
|
2804
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/merge-preview-validation-errors-into-review-session.js
|
|
2805
|
+
var init_merge_preview_validation_errors_into_review_session = __esm({
|
|
2806
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/merge-preview-validation-errors-into-review-session.js"() {
|
|
2807
|
+
"use strict";
|
|
2808
|
+
init_ensure_review_session();
|
|
2809
|
+
init_review_artifacts_root();
|
|
2810
|
+
init_review_session_paths();
|
|
2811
|
+
init_save_review_state();
|
|
2812
|
+
init_load_and_validate_for_review();
|
|
2813
|
+
}
|
|
2814
|
+
});
|
|
2815
|
+
|
|
2816
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/reject-components-by-name.js
|
|
2817
|
+
var init_reject_components_by_name = __esm({
|
|
2818
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/selection/src/controller/review/reject-components-by-name.js"() {
|
|
2819
|
+
"use strict";
|
|
2820
|
+
init_db();
|
|
2821
|
+
init_review_artifacts_root();
|
|
2822
|
+
init_review_session_paths();
|
|
2823
|
+
init_save_review_state();
|
|
2824
|
+
}
|
|
2825
|
+
});
|
|
2826
|
+
|
|
2827
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/build-scan-warnings.js
|
|
2828
|
+
var init_build_scan_warnings = __esm({
|
|
2829
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/build-scan-warnings.js"() {
|
|
2830
|
+
"use strict";
|
|
2831
|
+
}
|
|
2832
|
+
});
|
|
2833
|
+
|
|
2834
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/classify-stat-error.js
|
|
2835
|
+
var init_classify_stat_error = __esm({
|
|
2836
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/classify-stat-error.js"() {
|
|
2837
|
+
"use strict";
|
|
2838
|
+
}
|
|
2839
|
+
});
|
|
2840
|
+
|
|
2841
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/empty-file-counts.js
|
|
2842
|
+
var init_empty_file_counts = __esm({
|
|
2843
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/empty-file-counts.js"() {
|
|
2844
|
+
"use strict";
|
|
2845
|
+
}
|
|
2846
|
+
});
|
|
2847
|
+
|
|
2848
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-patterns.js
|
|
2849
|
+
var init_file_patterns = __esm({
|
|
2850
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-patterns.js"() {
|
|
2851
|
+
"use strict";
|
|
2852
|
+
}
|
|
2853
|
+
});
|
|
2854
|
+
|
|
2855
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-categories.js
|
|
2856
|
+
var init_file_categories = __esm({
|
|
2857
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/constants/file-categories.js"() {
|
|
2858
|
+
"use strict";
|
|
2859
|
+
}
|
|
2860
|
+
});
|
|
2861
|
+
|
|
2862
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/categorize-file.js
|
|
2863
|
+
var init_categorize_file = __esm({
|
|
2864
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/categorize-file.js"() {
|
|
2865
|
+
"use strict";
|
|
2866
|
+
init_file_categories();
|
|
2867
|
+
}
|
|
2868
|
+
});
|
|
2869
|
+
|
|
2870
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-noise-config-file.js
|
|
2871
|
+
var init_is_noise_config_file = __esm({
|
|
2872
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-noise-config-file.js"() {
|
|
2873
|
+
"use strict";
|
|
2874
|
+
init_file_patterns();
|
|
2875
|
+
}
|
|
2876
|
+
});
|
|
2877
|
+
|
|
2878
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-source-file.js
|
|
2879
|
+
var init_is_source_file = __esm({
|
|
2880
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/is-source-file.js"() {
|
|
2881
|
+
"use strict";
|
|
2882
|
+
init_file_patterns();
|
|
2883
|
+
init_is_noise_config_file();
|
|
2884
|
+
}
|
|
2885
|
+
});
|
|
2886
|
+
|
|
2887
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/read-dir-safely.js
|
|
2888
|
+
var init_read_dir_safely = __esm({
|
|
2889
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/read-dir-safely.js"() {
|
|
2890
|
+
"use strict";
|
|
2891
|
+
}
|
|
2892
|
+
});
|
|
2893
|
+
|
|
2894
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/walk-project-tree.js
|
|
2895
|
+
var init_walk_project_tree = __esm({
|
|
2896
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/walk-project-tree.js"() {
|
|
2897
|
+
"use strict";
|
|
2898
|
+
init_file_patterns();
|
|
2899
|
+
init_categorize_file();
|
|
2900
|
+
init_is_source_file();
|
|
2901
|
+
init_read_dir_safely();
|
|
2902
|
+
}
|
|
2903
|
+
});
|
|
2904
|
+
|
|
2905
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/collect-files.js
|
|
2906
|
+
var init_collect_files = __esm({
|
|
2907
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/collect-files.js"() {
|
|
2908
|
+
"use strict";
|
|
2909
|
+
init_build_scan_warnings();
|
|
2910
|
+
init_classify_stat_error();
|
|
2911
|
+
init_empty_file_counts();
|
|
2912
|
+
init_walk_project_tree();
|
|
2913
|
+
}
|
|
2914
|
+
});
|
|
2915
|
+
|
|
2916
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/index.js
|
|
2917
|
+
var init_collect_files2 = __esm({
|
|
2918
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/helpers/collect-files/index.js"() {
|
|
2919
|
+
"use strict";
|
|
2920
|
+
init_collect_files();
|
|
2921
|
+
}
|
|
2922
|
+
});
|
|
2923
|
+
|
|
2924
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/generate-ulid.js
|
|
2925
|
+
var init_generate_ulid = __esm({
|
|
2926
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/generate-ulid.js"() {
|
|
2927
|
+
"use strict";
|
|
2928
|
+
}
|
|
2929
|
+
});
|
|
2930
|
+
|
|
2931
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/migrate-record.js
|
|
2932
|
+
var init_migrate_record = __esm({
|
|
2933
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/migrate-record.js"() {
|
|
2934
|
+
"use strict";
|
|
2935
|
+
}
|
|
2936
|
+
});
|
|
2937
|
+
|
|
2938
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/types/run-record.js
|
|
2939
|
+
var init_run_record = __esm({
|
|
2940
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/types/run-record.js"() {
|
|
2941
|
+
"use strict";
|
|
2942
|
+
}
|
|
2943
|
+
});
|
|
2944
|
+
|
|
2945
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/read-runs-file.js
|
|
2946
|
+
var init_read_runs_file = __esm({
|
|
2947
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/read-runs-file.js"() {
|
|
2948
|
+
"use strict";
|
|
2949
|
+
init_config_root();
|
|
2950
|
+
init_migrate_record();
|
|
2951
|
+
init_run_record();
|
|
2952
|
+
}
|
|
2953
|
+
});
|
|
2954
|
+
|
|
2955
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/write-runs-file.js
|
|
2956
|
+
var init_write_runs_file = __esm({
|
|
2957
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/write-runs-file.js"() {
|
|
2958
|
+
"use strict";
|
|
2959
|
+
init_config_root();
|
|
2960
|
+
}
|
|
2961
|
+
});
|
|
2962
|
+
|
|
2963
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/append-run.js
|
|
2964
|
+
var init_append_run = __esm({
|
|
2965
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/append-run.js"() {
|
|
2966
|
+
"use strict";
|
|
2967
|
+
init_generate_ulid();
|
|
2968
|
+
init_read_runs_file();
|
|
2969
|
+
init_write_runs_file();
|
|
2970
|
+
init_run_record();
|
|
2971
|
+
}
|
|
2972
|
+
});
|
|
2973
|
+
|
|
2974
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/list-runs.js
|
|
2975
|
+
var init_list_runs = __esm({
|
|
2976
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/list-runs.js"() {
|
|
2977
|
+
"use strict";
|
|
2978
|
+
init_read_runs_file();
|
|
2979
|
+
}
|
|
2980
|
+
});
|
|
2981
|
+
|
|
2982
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/get-run.js
|
|
2983
|
+
var init_get_run = __esm({
|
|
2984
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/get-run.js"() {
|
|
2985
|
+
"use strict";
|
|
2986
|
+
init_config_root();
|
|
2987
|
+
init_read_runs_file();
|
|
2988
|
+
}
|
|
2989
|
+
});
|
|
2990
|
+
|
|
2991
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/update-run.js
|
|
2992
|
+
var init_update_run = __esm({
|
|
2993
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/update-run.js"() {
|
|
2994
|
+
"use strict";
|
|
2995
|
+
init_config_root();
|
|
2996
|
+
init_read_runs_file();
|
|
2997
|
+
init_write_runs_file();
|
|
2998
|
+
init_run_record();
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
3001
|
+
|
|
3002
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/sha256-hex.js
|
|
3003
|
+
var init_sha256_hex = __esm({
|
|
3004
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/sha256-hex.js"() {
|
|
3005
|
+
"use strict";
|
|
3006
|
+
}
|
|
3007
|
+
});
|
|
3008
|
+
|
|
3009
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/build-source-fingerprint.js
|
|
3010
|
+
var init_build_source_fingerprint = __esm({
|
|
3011
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/build-source-fingerprint.js"() {
|
|
3012
|
+
"use strict";
|
|
3013
|
+
init_sha256_hex();
|
|
3014
|
+
}
|
|
3015
|
+
});
|
|
3016
|
+
|
|
3017
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/save-files.js
|
|
3018
|
+
var init_save_files = __esm({
|
|
3019
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/save-files.js"() {
|
|
3020
|
+
"use strict";
|
|
3021
|
+
}
|
|
3022
|
+
});
|
|
3023
|
+
|
|
3024
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/list-conflicting-files.js
|
|
3025
|
+
var init_list_conflicting_files = __esm({
|
|
3026
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/repositories/list-conflicting-files.js"() {
|
|
3027
|
+
"use strict";
|
|
3028
|
+
init_save_files();
|
|
3029
|
+
}
|
|
3030
|
+
});
|
|
3031
|
+
|
|
3032
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/detect-save-conflict.js
|
|
3033
|
+
var init_detect_save_conflict = __esm({
|
|
3034
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/services/detect-save-conflict.js"() {
|
|
3035
|
+
"use strict";
|
|
3036
|
+
init_list_conflicting_files();
|
|
3037
|
+
}
|
|
3038
|
+
});
|
|
3039
|
+
|
|
3040
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/build-timestamped-subdir.js
|
|
3041
|
+
var init_build_timestamped_subdir = __esm({
|
|
3042
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/helpers/build-timestamped-subdir.js"() {
|
|
3043
|
+
"use strict";
|
|
3044
|
+
}
|
|
3045
|
+
});
|
|
3046
|
+
|
|
3047
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/index.js
|
|
3048
|
+
var init_runs = __esm({
|
|
3049
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/runs/index.js"() {
|
|
3050
|
+
"use strict";
|
|
3051
|
+
init_append_run();
|
|
3052
|
+
init_list_runs();
|
|
3053
|
+
init_get_run();
|
|
3054
|
+
init_update_run();
|
|
3055
|
+
init_build_source_fingerprint();
|
|
3056
|
+
init_detect_save_conflict();
|
|
3057
|
+
init_build_timestamped_subdir();
|
|
3058
|
+
init_sha256_hex();
|
|
3059
|
+
init_generate_ulid();
|
|
3060
|
+
init_run_record();
|
|
3061
|
+
init_config_root();
|
|
3062
|
+
}
|
|
3063
|
+
});
|
|
3064
|
+
|
|
3065
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/append-review-event.js
|
|
3066
|
+
var init_append_review_event = __esm({
|
|
3067
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/append-review-event.js"() {
|
|
3068
|
+
"use strict";
|
|
3069
|
+
}
|
|
3070
|
+
});
|
|
3071
|
+
|
|
3072
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/count-validation-issues.js
|
|
3073
|
+
var init_count_validation_issues = __esm({
|
|
3074
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/count-validation-issues.js"() {
|
|
3075
|
+
"use strict";
|
|
3076
|
+
}
|
|
3077
|
+
});
|
|
3078
|
+
|
|
3079
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-summary.js
|
|
3080
|
+
var init_create_review_session_summary = __esm({
|
|
3081
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-summary.js"() {
|
|
3082
|
+
"use strict";
|
|
3083
|
+
init_count_validation_issues();
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
|
|
3087
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-detail.js
|
|
3088
|
+
var init_create_review_session_detail = __esm({
|
|
3089
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/create-review-session-detail.js"() {
|
|
3090
|
+
"use strict";
|
|
3091
|
+
}
|
|
3092
|
+
});
|
|
3093
|
+
|
|
3094
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/services/write-scope-decisions-snapshot.js
|
|
3095
|
+
var init_write_scope_decisions_snapshot = __esm({
|
|
3096
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/services/write-scope-decisions-snapshot.js"() {
|
|
3097
|
+
"use strict";
|
|
3098
|
+
init_db();
|
|
3099
|
+
init_review_artifacts_root();
|
|
3100
|
+
init_review_session_paths();
|
|
3101
|
+
init_save_review_state();
|
|
3102
|
+
}
|
|
3103
|
+
});
|
|
3104
|
+
|
|
3105
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/load-accepted-names.js
|
|
3106
|
+
var init_load_accepted_names = __esm({
|
|
3107
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/repositories/load-accepted-names.js"() {
|
|
3108
|
+
"use strict";
|
|
3109
|
+
init_review_artifacts_root();
|
|
3110
|
+
init_review_session_paths();
|
|
3111
|
+
}
|
|
3112
|
+
});
|
|
3113
|
+
|
|
3114
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/parse-precomputed-cached-names.js
|
|
3115
|
+
var init_parse_precomputed_cached_names = __esm({
|
|
3116
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/helpers/parse-precomputed-cached-names.js"() {
|
|
3117
|
+
"use strict";
|
|
3118
|
+
}
|
|
3119
|
+
});
|
|
3120
|
+
|
|
3121
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/index.js
|
|
3122
|
+
var init_review_session = __esm({
|
|
3123
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/review-session/index.js"() {
|
|
3124
|
+
"use strict";
|
|
3125
|
+
init_review_artifacts_root();
|
|
3126
|
+
init_review_session_paths();
|
|
3127
|
+
init_save_review_state();
|
|
3128
|
+
init_append_review_event();
|
|
3129
|
+
init_ensure_review_session();
|
|
3130
|
+
init_load_review_input();
|
|
3131
|
+
init_create_review_session_summary();
|
|
3132
|
+
init_create_review_session_detail();
|
|
3133
|
+
init_count_validation_issues();
|
|
3134
|
+
init_write_scope_decisions_snapshot();
|
|
3135
|
+
init_load_accepted_names();
|
|
3136
|
+
init_parse_precomputed_cached_names();
|
|
3137
|
+
}
|
|
3138
|
+
});
|
|
3139
|
+
|
|
3140
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/composition.js
|
|
3141
|
+
var init_composition = __esm({
|
|
3142
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/composition.js"() {
|
|
3143
|
+
"use strict";
|
|
3144
|
+
}
|
|
3145
|
+
});
|
|
3146
|
+
|
|
3147
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/generation.js
|
|
3148
|
+
var init_generation = __esm({
|
|
3149
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/generation.js"() {
|
|
3150
|
+
"use strict";
|
|
3151
|
+
}
|
|
3152
|
+
});
|
|
3153
|
+
|
|
3154
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/selection.js
|
|
3155
|
+
var init_selection = __esm({
|
|
3156
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/cache/selection.js"() {
|
|
3157
|
+
"use strict";
|
|
3158
|
+
}
|
|
3159
|
+
});
|
|
3160
|
+
|
|
3161
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/create-tables.js
|
|
3162
|
+
var init_create_tables = __esm({
|
|
3163
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/create-tables.js"() {
|
|
3164
|
+
"use strict";
|
|
3165
|
+
}
|
|
3166
|
+
});
|
|
3167
|
+
|
|
3168
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/generate-session-id.js
|
|
3169
|
+
var init_generate_session_id = __esm({
|
|
3170
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/generate-session-id.js"() {
|
|
3171
|
+
"use strict";
|
|
3172
|
+
}
|
|
3173
|
+
});
|
|
3174
|
+
|
|
3175
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/index.js
|
|
3176
|
+
import { DatabaseSync as DatabaseSync2 } from "node:sqlite";
|
|
3177
|
+
var init_session = __esm({
|
|
3178
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/index.js"() {
|
|
3179
|
+
"use strict";
|
|
3180
|
+
init_composition();
|
|
3181
|
+
init_generation();
|
|
3182
|
+
init_selection();
|
|
3183
|
+
init_create_tables();
|
|
3184
|
+
init_generate_session_id();
|
|
3185
|
+
init_generate_session_id();
|
|
3186
|
+
}
|
|
3187
|
+
});
|
|
3188
|
+
|
|
3189
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/migration.js
|
|
3190
|
+
import { DatabaseSync as DatabaseSync3 } from "node:sqlite";
|
|
3191
|
+
var init_migration = __esm({
|
|
3192
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/repositories/migration.js"() {
|
|
3193
|
+
"use strict";
|
|
3194
|
+
init_config_root();
|
|
3195
|
+
init_session_id();
|
|
3196
|
+
}
|
|
3197
|
+
});
|
|
3198
|
+
|
|
3199
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/resolve-session-id.js
|
|
3200
|
+
var init_resolve_session_id = __esm({
|
|
3201
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/services/resolve-session-id.js"() {
|
|
3202
|
+
"use strict";
|
|
3203
|
+
init_db();
|
|
3204
|
+
}
|
|
3205
|
+
});
|
|
3206
|
+
|
|
3207
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/host-utils.js
|
|
3208
|
+
var DEFAULT_CONFIGURED_HOST;
|
|
3209
|
+
var init_host_utils = __esm({
|
|
3210
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/host-utils.js"() {
|
|
3211
|
+
"use strict";
|
|
3212
|
+
DEFAULT_CONFIGURED_HOST = "api.contentful.com";
|
|
3213
|
+
}
|
|
3214
|
+
});
|
|
3215
|
+
|
|
3216
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/read-credentials.js
|
|
3217
|
+
var init_read_credentials = __esm({
|
|
3218
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/read-credentials.js"() {
|
|
3219
|
+
"use strict";
|
|
3220
|
+
init_config_root();
|
|
3221
|
+
init_host_utils();
|
|
3222
|
+
}
|
|
3223
|
+
});
|
|
3224
|
+
|
|
3225
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/owned-keys.js
|
|
3226
|
+
var init_owned_keys = __esm({
|
|
3227
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/owned-keys.js"() {
|
|
3228
|
+
"use strict";
|
|
3229
|
+
}
|
|
3230
|
+
});
|
|
3231
|
+
|
|
3232
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/write-credentials.js
|
|
3233
|
+
var init_write_credentials = __esm({
|
|
3234
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/services/write-credentials.js"() {
|
|
3235
|
+
"use strict";
|
|
3236
|
+
init_config_root();
|
|
3237
|
+
init_host_utils();
|
|
3238
|
+
init_owned_keys();
|
|
3239
|
+
}
|
|
3240
|
+
});
|
|
3241
|
+
|
|
3242
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/credentials-path.js
|
|
3243
|
+
var init_credentials_path = __esm({
|
|
3244
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/helpers/credentials-path.js"() {
|
|
3245
|
+
"use strict";
|
|
3246
|
+
init_config_root();
|
|
3247
|
+
}
|
|
3248
|
+
});
|
|
3249
|
+
|
|
3250
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/index.js
|
|
3251
|
+
var init_credentials = __esm({
|
|
3252
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/credentials/index.js"() {
|
|
3253
|
+
"use strict";
|
|
3254
|
+
init_read_credentials();
|
|
3255
|
+
init_write_credentials();
|
|
3256
|
+
init_credentials_path();
|
|
3257
|
+
init_host_utils();
|
|
3258
|
+
}
|
|
3259
|
+
});
|
|
3260
|
+
|
|
3261
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cache-keys.js
|
|
3262
|
+
var init_cache_keys = __esm({
|
|
3263
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/session/helpers/cache-keys.js"() {
|
|
3264
|
+
"use strict";
|
|
3265
|
+
init_agents();
|
|
3266
|
+
}
|
|
3267
|
+
});
|
|
3268
|
+
|
|
3269
|
+
// packages/experience-design-system-backend-pipeline/dist/src/persistence/src/index.js
|
|
3270
|
+
var init_src = __esm({
|
|
3271
|
+
"packages/experience-design-system-backend-pipeline/dist/src/persistence/src/index.js"() {
|
|
3272
|
+
"use strict";
|
|
3273
|
+
init_collect_files2();
|
|
3274
|
+
init_runs();
|
|
3275
|
+
init_review_session();
|
|
3276
|
+
init_session();
|
|
3277
|
+
init_db();
|
|
3278
|
+
init_migration();
|
|
3279
|
+
init_config_root();
|
|
3280
|
+
init_resolve_session_id();
|
|
3281
|
+
init_credentials();
|
|
3282
|
+
init_db();
|
|
3283
|
+
init_db();
|
|
3284
|
+
init_db();
|
|
3285
|
+
init_db();
|
|
3286
|
+
init_db();
|
|
3287
|
+
init_db();
|
|
3288
|
+
init_db();
|
|
3289
|
+
init_cache_keys();
|
|
3290
|
+
init_db();
|
|
3291
|
+
init_source_excerpt();
|
|
3292
|
+
init_db();
|
|
3293
|
+
init_db();
|
|
3294
|
+
init_store_dtcg_tokens();
|
|
3295
|
+
init_apply_tool_calls();
|
|
3296
|
+
init_replace_raw_token_name_paths();
|
|
3297
|
+
init_replace_raw_prop_token_paths();
|
|
3298
|
+
init_derive_component_id();
|
|
3299
|
+
init_hash_component_shape();
|
|
3300
|
+
init_hash_token_content();
|
|
3301
|
+
init_build_dtcg_groups();
|
|
3302
|
+
init_build_dtcg_tokens();
|
|
3303
|
+
}
|
|
3304
|
+
});
|
|
3305
|
+
|
|
3306
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/services/run-cdf-generation-service.js
|
|
3307
|
+
var init_run_cdf_generation_service = __esm({
|
|
3308
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/services/run-cdf-generation-service.js"() {
|
|
3309
|
+
"use strict";
|
|
3310
|
+
init_agents();
|
|
3311
|
+
}
|
|
3312
|
+
});
|
|
3313
|
+
|
|
3314
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/generate-cdf-components-endpoint.js
|
|
3315
|
+
var init_generate_cdf_components_endpoint = __esm({
|
|
3316
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/generate-cdf-components-endpoint.js"() {
|
|
3317
|
+
"use strict";
|
|
3318
|
+
init_agents();
|
|
3319
|
+
init_constants3();
|
|
3320
|
+
init_run_cdf_generation_service();
|
|
3321
|
+
}
|
|
3322
|
+
});
|
|
3323
|
+
|
|
3324
|
+
// packages/experience-design-system-client/dist/src/generated/types.gen.js
|
|
3325
|
+
var init_types_gen = __esm({
|
|
3326
|
+
"packages/experience-design-system-client/dist/src/generated/types.gen.js"() {
|
|
3327
|
+
"use strict";
|
|
3328
|
+
}
|
|
3329
|
+
});
|
|
3330
|
+
|
|
3331
|
+
// packages/experience-design-system-client/dist/src/generated/core/bodySerializer.gen.js
|
|
3332
|
+
var jsonBodySerializer;
|
|
3333
|
+
var init_bodySerializer_gen = __esm({
|
|
3334
|
+
"packages/experience-design-system-client/dist/src/generated/core/bodySerializer.gen.js"() {
|
|
3335
|
+
"use strict";
|
|
3336
|
+
jsonBodySerializer = {
|
|
3337
|
+
bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
|
|
3338
|
+
};
|
|
3339
|
+
}
|
|
3340
|
+
});
|
|
3341
|
+
|
|
3342
|
+
// packages/experience-design-system-client/dist/src/generated/core/params.gen.js
|
|
3343
|
+
var extraPrefixesMap, extraPrefixes;
|
|
3344
|
+
var init_params_gen = __esm({
|
|
3345
|
+
"packages/experience-design-system-client/dist/src/generated/core/params.gen.js"() {
|
|
3346
|
+
"use strict";
|
|
3347
|
+
extraPrefixesMap = {
|
|
3348
|
+
$body_: "body",
|
|
3349
|
+
$headers_: "headers",
|
|
3350
|
+
$path_: "path",
|
|
3351
|
+
$query_: "query"
|
|
3352
|
+
};
|
|
3353
|
+
extraPrefixes = Object.entries(extraPrefixesMap);
|
|
3354
|
+
}
|
|
3355
|
+
});
|
|
3356
|
+
|
|
3357
|
+
// packages/experience-design-system-client/dist/src/generated/core/auth.gen.js
|
|
3358
|
+
var getAuthToken;
|
|
3359
|
+
var init_auth_gen = __esm({
|
|
3360
|
+
"packages/experience-design-system-client/dist/src/generated/core/auth.gen.js"() {
|
|
3361
|
+
"use strict";
|
|
3362
|
+
getAuthToken = async (auth, callback) => {
|
|
3363
|
+
const token = typeof callback === "function" ? await callback(auth) : callback;
|
|
3364
|
+
if (!token) {
|
|
3365
|
+
return;
|
|
3366
|
+
}
|
|
3367
|
+
if (auth.scheme === "bearer") {
|
|
3368
|
+
return `Bearer ${token}`;
|
|
3369
|
+
}
|
|
3370
|
+
if (auth.scheme === "basic") {
|
|
3371
|
+
return `Basic ${btoa(token)}`;
|
|
3372
|
+
}
|
|
3373
|
+
return token;
|
|
3374
|
+
};
|
|
3375
|
+
}
|
|
3376
|
+
});
|
|
3377
|
+
|
|
3378
|
+
// packages/experience-design-system-client/dist/src/generated/core/pathSerializer.gen.js
|
|
3379
|
+
var separatorArrayExplode, separatorArrayNoExplode, separatorObjectExplode, serializeArrayParam, serializePrimitiveParam, serializeObjectParam;
|
|
3380
|
+
var init_pathSerializer_gen = __esm({
|
|
3381
|
+
"packages/experience-design-system-client/dist/src/generated/core/pathSerializer.gen.js"() {
|
|
3382
|
+
"use strict";
|
|
3383
|
+
separatorArrayExplode = (style) => {
|
|
3384
|
+
switch (style) {
|
|
3385
|
+
case "label":
|
|
3386
|
+
return ".";
|
|
3387
|
+
case "matrix":
|
|
3388
|
+
return ";";
|
|
3389
|
+
case "simple":
|
|
3390
|
+
return ",";
|
|
3391
|
+
default:
|
|
3392
|
+
return "&";
|
|
3393
|
+
}
|
|
3394
|
+
};
|
|
3395
|
+
separatorArrayNoExplode = (style) => {
|
|
3396
|
+
switch (style) {
|
|
3397
|
+
case "form":
|
|
3398
|
+
return ",";
|
|
3399
|
+
case "pipeDelimited":
|
|
3400
|
+
return "|";
|
|
3401
|
+
case "spaceDelimited":
|
|
3402
|
+
return "%20";
|
|
3403
|
+
default:
|
|
3404
|
+
return ",";
|
|
3405
|
+
}
|
|
3406
|
+
};
|
|
3407
|
+
separatorObjectExplode = (style) => {
|
|
3408
|
+
switch (style) {
|
|
3409
|
+
case "label":
|
|
3410
|
+
return ".";
|
|
3411
|
+
case "matrix":
|
|
3412
|
+
return ";";
|
|
3413
|
+
case "simple":
|
|
3414
|
+
return ",";
|
|
3415
|
+
default:
|
|
3416
|
+
return "&";
|
|
3417
|
+
}
|
|
3418
|
+
};
|
|
3419
|
+
serializeArrayParam = ({ allowReserved, explode, name, style, value }) => {
|
|
3420
|
+
if (!explode) {
|
|
3421
|
+
const joinedValues2 = (allowReserved ? value : value.map((v) => encodeURIComponent(v))).join(separatorArrayNoExplode(style));
|
|
3422
|
+
switch (style) {
|
|
3423
|
+
case "label":
|
|
3424
|
+
return `.${joinedValues2}`;
|
|
3425
|
+
case "matrix":
|
|
3426
|
+
return `;${name}=${joinedValues2}`;
|
|
3427
|
+
case "simple":
|
|
3428
|
+
return joinedValues2;
|
|
3429
|
+
default:
|
|
3430
|
+
return `${name}=${joinedValues2}`;
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
const separator = separatorArrayExplode(style);
|
|
3434
|
+
const joinedValues = value.map((v) => {
|
|
3435
|
+
if (style === "label" || style === "simple") {
|
|
3436
|
+
return allowReserved ? v : encodeURIComponent(v);
|
|
3437
|
+
}
|
|
3438
|
+
return serializePrimitiveParam({
|
|
3439
|
+
allowReserved,
|
|
3440
|
+
name,
|
|
3441
|
+
value: v
|
|
3442
|
+
});
|
|
3443
|
+
}).join(separator);
|
|
3444
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
3445
|
+
};
|
|
3446
|
+
serializePrimitiveParam = ({ allowReserved, name, value }) => {
|
|
3447
|
+
if (value === void 0 || value === null) {
|
|
3448
|
+
return "";
|
|
3449
|
+
}
|
|
3450
|
+
if (typeof value === "object") {
|
|
3451
|
+
throw new Error("Deeply-nested arrays/objects aren\u2019t supported. Provide your own `querySerializer()` to handle these.");
|
|
3452
|
+
}
|
|
3453
|
+
return `${name}=${allowReserved ? value : encodeURIComponent(value)}`;
|
|
3454
|
+
};
|
|
3455
|
+
serializeObjectParam = ({ allowReserved, explode, name, style, value, valueOnly }) => {
|
|
3456
|
+
if (value instanceof Date) {
|
|
3457
|
+
return valueOnly ? value.toISOString() : `${name}=${value.toISOString()}`;
|
|
3458
|
+
}
|
|
3459
|
+
if (style !== "deepObject" && !explode) {
|
|
3460
|
+
let values = [];
|
|
3461
|
+
Object.entries(value).forEach(([key, v]) => {
|
|
3462
|
+
values = [
|
|
3463
|
+
...values,
|
|
3464
|
+
key,
|
|
3465
|
+
allowReserved ? v : encodeURIComponent(v)
|
|
3466
|
+
];
|
|
3467
|
+
});
|
|
3468
|
+
const joinedValues2 = values.join(",");
|
|
3469
|
+
switch (style) {
|
|
3470
|
+
case "form":
|
|
3471
|
+
return `${name}=${joinedValues2}`;
|
|
3472
|
+
case "label":
|
|
3473
|
+
return `.${joinedValues2}`;
|
|
3474
|
+
case "matrix":
|
|
3475
|
+
return `;${name}=${joinedValues2}`;
|
|
3476
|
+
default:
|
|
3477
|
+
return joinedValues2;
|
|
3478
|
+
}
|
|
3479
|
+
}
|
|
3480
|
+
const separator = separatorObjectExplode(style);
|
|
3481
|
+
const joinedValues = Object.entries(value).map(([key, v]) => serializePrimitiveParam({
|
|
3482
|
+
allowReserved,
|
|
3483
|
+
name: style === "deepObject" ? `${name}[${key}]` : key,
|
|
3484
|
+
value: v
|
|
3485
|
+
})).join(separator);
|
|
3486
|
+
return style === "label" || style === "matrix" ? separator + joinedValues : joinedValues;
|
|
3487
|
+
};
|
|
3488
|
+
}
|
|
3489
|
+
});
|
|
3490
|
+
|
|
3491
|
+
// packages/experience-design-system-client/dist/src/generated/client/utils.gen.js
|
|
3492
|
+
var PATH_PARAM_RE, defaultPathSerializer, createQuerySerializer, getParseAs, checkForExistence, setAuthParams, buildUrl, getUrl, mergeConfigs, mergeHeaders, Interceptors, createInterceptors, defaultQuerySerializer, defaultHeaders, createConfig;
|
|
3493
|
+
var init_utils_gen = __esm({
|
|
3494
|
+
"packages/experience-design-system-client/dist/src/generated/client/utils.gen.js"() {
|
|
3495
|
+
"use strict";
|
|
3496
|
+
init_auth_gen();
|
|
3497
|
+
init_bodySerializer_gen();
|
|
3498
|
+
init_pathSerializer_gen();
|
|
3499
|
+
PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
3500
|
+
defaultPathSerializer = ({ path, url: _url }) => {
|
|
3501
|
+
let url = _url;
|
|
3502
|
+
const matches = _url.match(PATH_PARAM_RE);
|
|
3503
|
+
if (matches) {
|
|
3504
|
+
for (const match of matches) {
|
|
3505
|
+
let explode = false;
|
|
3506
|
+
let name = match.substring(1, match.length - 1);
|
|
3507
|
+
let style = "simple";
|
|
3508
|
+
if (name.endsWith("*")) {
|
|
3509
|
+
explode = true;
|
|
3510
|
+
name = name.substring(0, name.length - 1);
|
|
3511
|
+
}
|
|
3512
|
+
if (name.startsWith(".")) {
|
|
3513
|
+
name = name.substring(1);
|
|
3514
|
+
style = "label";
|
|
3515
|
+
} else if (name.startsWith(";")) {
|
|
3516
|
+
name = name.substring(1);
|
|
3517
|
+
style = "matrix";
|
|
3518
|
+
}
|
|
3519
|
+
const value = path[name];
|
|
3520
|
+
if (value === void 0 || value === null) {
|
|
3521
|
+
continue;
|
|
3522
|
+
}
|
|
3523
|
+
if (Array.isArray(value)) {
|
|
3524
|
+
url = url.replace(match, serializeArrayParam({ explode, name, style, value }));
|
|
3525
|
+
continue;
|
|
3526
|
+
}
|
|
3527
|
+
if (typeof value === "object") {
|
|
3528
|
+
url = url.replace(match, serializeObjectParam({
|
|
3529
|
+
explode,
|
|
3530
|
+
name,
|
|
3531
|
+
style,
|
|
3532
|
+
value,
|
|
3533
|
+
valueOnly: true
|
|
3534
|
+
}));
|
|
3535
|
+
continue;
|
|
3536
|
+
}
|
|
3537
|
+
if (style === "matrix") {
|
|
3538
|
+
url = url.replace(match, `;${serializePrimitiveParam({
|
|
3539
|
+
name,
|
|
3540
|
+
value
|
|
3541
|
+
})}`);
|
|
3542
|
+
continue;
|
|
3543
|
+
}
|
|
3544
|
+
const replaceValue = encodeURIComponent(style === "label" ? `.${value}` : value);
|
|
3545
|
+
url = url.replace(match, replaceValue);
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
return url;
|
|
3549
|
+
};
|
|
3550
|
+
createQuerySerializer = ({ allowReserved, array: array2, object } = {}) => {
|
|
3551
|
+
const querySerializer = (queryParams) => {
|
|
3552
|
+
const search = [];
|
|
3553
|
+
if (queryParams && typeof queryParams === "object") {
|
|
3554
|
+
for (const name in queryParams) {
|
|
3555
|
+
const value = queryParams[name];
|
|
3556
|
+
if (value === void 0 || value === null) {
|
|
3557
|
+
continue;
|
|
3558
|
+
}
|
|
3559
|
+
if (Array.isArray(value)) {
|
|
3560
|
+
const serializedArray = serializeArrayParam({
|
|
3561
|
+
allowReserved,
|
|
3562
|
+
explode: true,
|
|
3563
|
+
name,
|
|
3564
|
+
style: "form",
|
|
3565
|
+
value,
|
|
3566
|
+
...array2
|
|
3567
|
+
});
|
|
3568
|
+
if (serializedArray)
|
|
3569
|
+
search.push(serializedArray);
|
|
3570
|
+
} else if (typeof value === "object") {
|
|
3571
|
+
const serializedObject = serializeObjectParam({
|
|
3572
|
+
allowReserved,
|
|
3573
|
+
explode: true,
|
|
3574
|
+
name,
|
|
3575
|
+
style: "deepObject",
|
|
3576
|
+
value,
|
|
3577
|
+
...object
|
|
3578
|
+
});
|
|
3579
|
+
if (serializedObject)
|
|
3580
|
+
search.push(serializedObject);
|
|
3581
|
+
} else {
|
|
3582
|
+
const serializedPrimitive = serializePrimitiveParam({
|
|
3583
|
+
allowReserved,
|
|
3584
|
+
name,
|
|
3585
|
+
value
|
|
3586
|
+
});
|
|
3587
|
+
if (serializedPrimitive)
|
|
3588
|
+
search.push(serializedPrimitive);
|
|
3589
|
+
}
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
return search.join("&");
|
|
3593
|
+
};
|
|
3594
|
+
return querySerializer;
|
|
3595
|
+
};
|
|
3596
|
+
getParseAs = (contentType) => {
|
|
3597
|
+
if (!contentType) {
|
|
3598
|
+
return "stream";
|
|
3599
|
+
}
|
|
3600
|
+
const cleanContent = contentType.split(";")[0]?.trim();
|
|
3601
|
+
if (!cleanContent) {
|
|
3602
|
+
return;
|
|
3603
|
+
}
|
|
3604
|
+
if (cleanContent.startsWith("application/json") || cleanContent.endsWith("+json")) {
|
|
3605
|
+
return "json";
|
|
3606
|
+
}
|
|
3607
|
+
if (cleanContent === "multipart/form-data") {
|
|
3608
|
+
return "formData";
|
|
3609
|
+
}
|
|
3610
|
+
if (["application/", "audio/", "image/", "video/"].some((type) => cleanContent.startsWith(type))) {
|
|
3611
|
+
return "blob";
|
|
3612
|
+
}
|
|
3613
|
+
if (cleanContent.startsWith("text/")) {
|
|
3614
|
+
return "text";
|
|
3615
|
+
}
|
|
3616
|
+
return;
|
|
3617
|
+
};
|
|
3618
|
+
checkForExistence = (options, name) => {
|
|
3619
|
+
if (!name) {
|
|
3620
|
+
return false;
|
|
3621
|
+
}
|
|
3622
|
+
if (options.headers.has(name) || options.query?.[name] || options.headers.get("Cookie")?.includes(`${name}=`)) {
|
|
3623
|
+
return true;
|
|
3624
|
+
}
|
|
3625
|
+
return false;
|
|
3626
|
+
};
|
|
3627
|
+
setAuthParams = async ({ security, ...options }) => {
|
|
3628
|
+
for (const auth of security) {
|
|
3629
|
+
if (checkForExistence(options, auth.name)) {
|
|
3630
|
+
continue;
|
|
3631
|
+
}
|
|
3632
|
+
const token = await getAuthToken(auth, options.auth);
|
|
3633
|
+
if (!token) {
|
|
3634
|
+
continue;
|
|
3635
|
+
}
|
|
3636
|
+
const name = auth.name ?? "Authorization";
|
|
3637
|
+
switch (auth.in) {
|
|
3638
|
+
case "query":
|
|
3639
|
+
if (!options.query) {
|
|
3640
|
+
options.query = {};
|
|
3641
|
+
}
|
|
3642
|
+
options.query[name] = token;
|
|
3643
|
+
break;
|
|
3644
|
+
case "cookie":
|
|
3645
|
+
options.headers.append("Cookie", `${name}=${token}`);
|
|
3646
|
+
break;
|
|
3647
|
+
case "header":
|
|
3648
|
+
default:
|
|
3649
|
+
options.headers.set(name, token);
|
|
3650
|
+
break;
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
};
|
|
3654
|
+
buildUrl = (options) => {
|
|
3655
|
+
const url = getUrl({
|
|
3656
|
+
baseUrl: options.baseUrl,
|
|
3657
|
+
path: options.path,
|
|
3658
|
+
query: options.query,
|
|
3659
|
+
querySerializer: typeof options.querySerializer === "function" ? options.querySerializer : createQuerySerializer(options.querySerializer),
|
|
3660
|
+
url: options.url
|
|
3661
|
+
});
|
|
3662
|
+
return url;
|
|
3663
|
+
};
|
|
3664
|
+
getUrl = ({ baseUrl, path, query, querySerializer, url: _url }) => {
|
|
3665
|
+
const pathUrl = _url.startsWith("/") ? _url : `/${_url}`;
|
|
3666
|
+
let url = (baseUrl ?? "") + pathUrl;
|
|
3667
|
+
if (path) {
|
|
3668
|
+
url = defaultPathSerializer({ path, url });
|
|
3669
|
+
}
|
|
3670
|
+
let search = query ? querySerializer(query) : "";
|
|
3671
|
+
if (search.startsWith("?")) {
|
|
3672
|
+
search = search.substring(1);
|
|
3673
|
+
}
|
|
3674
|
+
if (search) {
|
|
3675
|
+
url += `?${search}`;
|
|
3676
|
+
}
|
|
3677
|
+
return url;
|
|
3678
|
+
};
|
|
3679
|
+
mergeConfigs = (a, b) => {
|
|
3680
|
+
const config = { ...a, ...b };
|
|
3681
|
+
if (config.baseUrl?.endsWith("/")) {
|
|
3682
|
+
config.baseUrl = config.baseUrl.substring(0, config.baseUrl.length - 1);
|
|
3683
|
+
}
|
|
3684
|
+
config.headers = mergeHeaders(a.headers, b.headers);
|
|
3685
|
+
return config;
|
|
3686
|
+
};
|
|
3687
|
+
mergeHeaders = (...headers) => {
|
|
3688
|
+
const mergedHeaders = new Headers();
|
|
3689
|
+
for (const header of headers) {
|
|
3690
|
+
if (!header || typeof header !== "object") {
|
|
3691
|
+
continue;
|
|
3692
|
+
}
|
|
3693
|
+
const iterator = header instanceof Headers ? header.entries() : Object.entries(header);
|
|
3694
|
+
for (const [key, value] of iterator) {
|
|
3695
|
+
if (value === null) {
|
|
3696
|
+
mergedHeaders.delete(key);
|
|
3697
|
+
} else if (Array.isArray(value)) {
|
|
3698
|
+
for (const v of value) {
|
|
3699
|
+
mergedHeaders.append(key, v);
|
|
3700
|
+
}
|
|
3701
|
+
} else if (value !== void 0) {
|
|
3702
|
+
mergedHeaders.set(key, typeof value === "object" ? JSON.stringify(value) : value);
|
|
3703
|
+
}
|
|
3704
|
+
}
|
|
3705
|
+
}
|
|
3706
|
+
return mergedHeaders;
|
|
3707
|
+
};
|
|
3708
|
+
Interceptors = class {
|
|
3709
|
+
_fns;
|
|
3710
|
+
constructor() {
|
|
3711
|
+
this._fns = [];
|
|
3712
|
+
}
|
|
3713
|
+
clear() {
|
|
3714
|
+
this._fns = [];
|
|
3715
|
+
}
|
|
3716
|
+
getInterceptorIndex(id) {
|
|
3717
|
+
if (typeof id === "number") {
|
|
3718
|
+
return this._fns[id] ? id : -1;
|
|
3719
|
+
} else {
|
|
3720
|
+
return this._fns.indexOf(id);
|
|
3721
|
+
}
|
|
3722
|
+
}
|
|
3723
|
+
exists(id) {
|
|
3724
|
+
const index = this.getInterceptorIndex(id);
|
|
3725
|
+
return !!this._fns[index];
|
|
3726
|
+
}
|
|
3727
|
+
eject(id) {
|
|
3728
|
+
const index = this.getInterceptorIndex(id);
|
|
3729
|
+
if (this._fns[index]) {
|
|
3730
|
+
this._fns[index] = null;
|
|
3731
|
+
}
|
|
3732
|
+
}
|
|
3733
|
+
update(id, fn) {
|
|
3734
|
+
const index = this.getInterceptorIndex(id);
|
|
3735
|
+
if (this._fns[index]) {
|
|
3736
|
+
this._fns[index] = fn;
|
|
3737
|
+
return id;
|
|
3738
|
+
} else {
|
|
3739
|
+
return false;
|
|
3740
|
+
}
|
|
3741
|
+
}
|
|
3742
|
+
use(fn) {
|
|
3743
|
+
this._fns = [...this._fns, fn];
|
|
3744
|
+
return this._fns.length - 1;
|
|
3745
|
+
}
|
|
3746
|
+
};
|
|
3747
|
+
createInterceptors = () => ({
|
|
3748
|
+
error: new Interceptors(),
|
|
3749
|
+
request: new Interceptors(),
|
|
3750
|
+
response: new Interceptors()
|
|
3751
|
+
});
|
|
3752
|
+
defaultQuerySerializer = createQuerySerializer({
|
|
3753
|
+
allowReserved: false,
|
|
3754
|
+
array: {
|
|
3755
|
+
explode: true,
|
|
3756
|
+
style: "form"
|
|
3757
|
+
},
|
|
3758
|
+
object: {
|
|
3759
|
+
explode: true,
|
|
3760
|
+
style: "deepObject"
|
|
3761
|
+
}
|
|
3762
|
+
});
|
|
3763
|
+
defaultHeaders = {
|
|
3764
|
+
"Content-Type": "application/json"
|
|
3765
|
+
};
|
|
3766
|
+
createConfig = (override = {}) => ({
|
|
3767
|
+
...jsonBodySerializer,
|
|
3768
|
+
headers: defaultHeaders,
|
|
3769
|
+
parseAs: "auto",
|
|
3770
|
+
querySerializer: defaultQuerySerializer,
|
|
3771
|
+
...override
|
|
3772
|
+
});
|
|
3773
|
+
}
|
|
3774
|
+
});
|
|
3775
|
+
|
|
3776
|
+
// packages/experience-design-system-client/dist/src/generated/client/client.gen.js
|
|
3777
|
+
var createClient;
|
|
3778
|
+
var init_client_gen = __esm({
|
|
3779
|
+
"packages/experience-design-system-client/dist/src/generated/client/client.gen.js"() {
|
|
3780
|
+
"use strict";
|
|
3781
|
+
init_utils_gen();
|
|
3782
|
+
createClient = (config = {}) => {
|
|
3783
|
+
let _config = mergeConfigs(createConfig(), config);
|
|
3784
|
+
const getConfig = () => ({ ..._config });
|
|
3785
|
+
const setConfig = (config2) => {
|
|
3786
|
+
_config = mergeConfigs(_config, config2);
|
|
3787
|
+
return getConfig();
|
|
3788
|
+
};
|
|
3789
|
+
const interceptors = createInterceptors();
|
|
3790
|
+
const request = async (options) => {
|
|
3791
|
+
const opts = {
|
|
3792
|
+
..._config,
|
|
3793
|
+
...options,
|
|
3794
|
+
fetch: options.fetch ?? _config.fetch ?? globalThis.fetch,
|
|
3795
|
+
headers: mergeHeaders(_config.headers, options.headers),
|
|
3796
|
+
serializedBody: void 0
|
|
3797
|
+
};
|
|
3798
|
+
if (opts.security) {
|
|
3799
|
+
await setAuthParams({
|
|
3800
|
+
...opts,
|
|
3801
|
+
security: opts.security
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
if (opts.requestValidator) {
|
|
3805
|
+
await opts.requestValidator(opts);
|
|
3806
|
+
}
|
|
3807
|
+
if (opts.body && opts.bodySerializer) {
|
|
3808
|
+
opts.serializedBody = opts.bodySerializer(opts.body);
|
|
3809
|
+
}
|
|
3810
|
+
if (opts.serializedBody === void 0 || opts.serializedBody === "") {
|
|
3811
|
+
opts.headers.delete("Content-Type");
|
|
3812
|
+
}
|
|
3813
|
+
const url = buildUrl(opts);
|
|
3814
|
+
const requestInit = {
|
|
3815
|
+
redirect: "follow",
|
|
3816
|
+
...opts,
|
|
3817
|
+
body: opts.serializedBody
|
|
3818
|
+
};
|
|
3819
|
+
let request2 = new Request(url, requestInit);
|
|
3820
|
+
for (const fn of interceptors.request._fns) {
|
|
3821
|
+
if (fn) {
|
|
3822
|
+
request2 = await fn(request2, opts);
|
|
3823
|
+
}
|
|
3824
|
+
}
|
|
3825
|
+
const _fetch = opts.fetch;
|
|
3826
|
+
let response = await _fetch(request2);
|
|
3827
|
+
for (const fn of interceptors.response._fns) {
|
|
3828
|
+
if (fn) {
|
|
3829
|
+
response = await fn(response, request2, opts);
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
const result = {
|
|
3833
|
+
request: request2,
|
|
3834
|
+
response
|
|
3835
|
+
};
|
|
3836
|
+
if (response.ok) {
|
|
3837
|
+
if (response.status === 204 || response.headers.get("Content-Length") === "0") {
|
|
3838
|
+
return opts.responseStyle === "data" ? {} : {
|
|
3839
|
+
data: {},
|
|
3840
|
+
...result
|
|
3841
|
+
};
|
|
3842
|
+
}
|
|
3843
|
+
const parseAs = (opts.parseAs === "auto" ? getParseAs(response.headers.get("Content-Type")) : opts.parseAs) ?? "json";
|
|
3844
|
+
let data;
|
|
3845
|
+
switch (parseAs) {
|
|
3846
|
+
case "arrayBuffer":
|
|
3847
|
+
case "blob":
|
|
3848
|
+
case "formData":
|
|
3849
|
+
case "json":
|
|
3850
|
+
case "text":
|
|
3851
|
+
data = await response[parseAs]();
|
|
3852
|
+
break;
|
|
3853
|
+
case "stream":
|
|
3854
|
+
return opts.responseStyle === "data" ? response.body : {
|
|
3855
|
+
data: response.body,
|
|
3856
|
+
...result
|
|
3857
|
+
};
|
|
3858
|
+
}
|
|
3859
|
+
if (parseAs === "json") {
|
|
3860
|
+
if (opts.responseValidator) {
|
|
3861
|
+
await opts.responseValidator(data);
|
|
3862
|
+
}
|
|
3863
|
+
if (opts.responseTransformer) {
|
|
3864
|
+
data = await opts.responseTransformer(data);
|
|
3865
|
+
}
|
|
3866
|
+
}
|
|
3867
|
+
return opts.responseStyle === "data" ? data : {
|
|
3868
|
+
data,
|
|
3869
|
+
...result
|
|
3870
|
+
};
|
|
3871
|
+
}
|
|
3872
|
+
const textError = await response.text();
|
|
3873
|
+
let jsonError;
|
|
3874
|
+
try {
|
|
3875
|
+
jsonError = JSON.parse(textError);
|
|
3876
|
+
} catch {
|
|
3877
|
+
}
|
|
3878
|
+
const error = jsonError ?? textError;
|
|
3879
|
+
let finalError = error;
|
|
3880
|
+
for (const fn of interceptors.error._fns) {
|
|
3881
|
+
if (fn) {
|
|
3882
|
+
finalError = await fn(error, response, request2, opts);
|
|
3883
|
+
}
|
|
3884
|
+
}
|
|
3885
|
+
finalError = finalError || {};
|
|
3886
|
+
if (opts.throwOnError) {
|
|
3887
|
+
throw finalError;
|
|
3888
|
+
}
|
|
3889
|
+
return opts.responseStyle === "data" ? void 0 : {
|
|
3890
|
+
error: finalError,
|
|
3891
|
+
...result
|
|
3892
|
+
};
|
|
3893
|
+
};
|
|
3894
|
+
return {
|
|
3895
|
+
buildUrl,
|
|
3896
|
+
connect: (options) => request({ ...options, method: "CONNECT" }),
|
|
3897
|
+
delete: (options) => request({ ...options, method: "DELETE" }),
|
|
3898
|
+
get: (options) => request({ ...options, method: "GET" }),
|
|
3899
|
+
getConfig,
|
|
3900
|
+
head: (options) => request({ ...options, method: "HEAD" }),
|
|
3901
|
+
interceptors,
|
|
3902
|
+
options: (options) => request({ ...options, method: "OPTIONS" }),
|
|
3903
|
+
patch: (options) => request({ ...options, method: "PATCH" }),
|
|
3904
|
+
post: (options) => request({ ...options, method: "POST" }),
|
|
3905
|
+
put: (options) => request({ ...options, method: "PUT" }),
|
|
3906
|
+
request,
|
|
3907
|
+
setConfig,
|
|
3908
|
+
trace: (options) => request({ ...options, method: "TRACE" })
|
|
3909
|
+
};
|
|
3910
|
+
};
|
|
3911
|
+
}
|
|
3912
|
+
});
|
|
3913
|
+
|
|
3914
|
+
// packages/experience-design-system-client/dist/src/generated/client/index.js
|
|
3915
|
+
var init_client = __esm({
|
|
3916
|
+
"packages/experience-design-system-client/dist/src/generated/client/index.js"() {
|
|
3917
|
+
"use strict";
|
|
3918
|
+
init_bodySerializer_gen();
|
|
3919
|
+
init_params_gen();
|
|
3920
|
+
init_client_gen();
|
|
3921
|
+
init_utils_gen();
|
|
3922
|
+
}
|
|
3923
|
+
});
|
|
3924
|
+
|
|
3925
|
+
// packages/experience-design-system-client/dist/src/generated/client.gen.js
|
|
3926
|
+
var client;
|
|
3927
|
+
var init_client_gen2 = __esm({
|
|
3928
|
+
"packages/experience-design-system-client/dist/src/generated/client.gen.js"() {
|
|
3929
|
+
"use strict";
|
|
3930
|
+
init_client();
|
|
3931
|
+
client = createClient(createConfig());
|
|
3932
|
+
}
|
|
3933
|
+
});
|
|
3934
|
+
|
|
3935
|
+
// packages/experience-design-system-client/dist/src/generated/sdk.gen.js
|
|
3936
|
+
var designSystemImportSourcelessPreview, designSystemImportApply, designSystemImportGetOperation;
|
|
3937
|
+
var init_sdk_gen = __esm({
|
|
3938
|
+
"packages/experience-design-system-client/dist/src/generated/sdk.gen.js"() {
|
|
3939
|
+
"use strict";
|
|
3940
|
+
init_client_gen2();
|
|
3941
|
+
designSystemImportSourcelessPreview = (options) => {
|
|
3942
|
+
return (options.client ?? client).post({
|
|
3943
|
+
url: "/spaces/{spaceId}/environments/{environmentId}/design_systems/imports/preview",
|
|
3944
|
+
...options,
|
|
3945
|
+
headers: {
|
|
3946
|
+
"Content-Type": "application/json",
|
|
3947
|
+
...options.headers
|
|
3948
|
+
}
|
|
3949
|
+
});
|
|
3950
|
+
};
|
|
3951
|
+
designSystemImportApply = (options) => {
|
|
3952
|
+
return (options.client ?? client).post({
|
|
3953
|
+
url: "/spaces/{spaceId}/environments/{environmentId}/design_systems/imports/apply",
|
|
3954
|
+
...options,
|
|
3955
|
+
headers: {
|
|
3956
|
+
"Content-Type": "application/json",
|
|
3957
|
+
...options.headers
|
|
3958
|
+
}
|
|
3959
|
+
});
|
|
3960
|
+
};
|
|
3961
|
+
designSystemImportGetOperation = (options) => {
|
|
3962
|
+
return (options.client ?? client).get({
|
|
3963
|
+
url: "/spaces/{spaceId}/environments/{environmentId}/design_systems/imports/apply/{operationId}",
|
|
3964
|
+
...options
|
|
3965
|
+
});
|
|
3966
|
+
};
|
|
3967
|
+
}
|
|
3968
|
+
});
|
|
3969
|
+
|
|
3970
|
+
// packages/experience-design-system-client/dist/src/generated/index.js
|
|
3971
|
+
var init_generated = __esm({
|
|
3972
|
+
"packages/experience-design-system-client/dist/src/generated/index.js"() {
|
|
3973
|
+
"use strict";
|
|
3974
|
+
init_types_gen();
|
|
3975
|
+
init_sdk_gen();
|
|
3976
|
+
}
|
|
3977
|
+
});
|
|
3978
|
+
|
|
3979
|
+
// packages/experience-design-system-client/dist/src/index.js
|
|
3980
|
+
var init_src2 = __esm({
|
|
3981
|
+
"packages/experience-design-system-client/dist/src/index.js"() {
|
|
3982
|
+
"use strict";
|
|
3983
|
+
init_generated();
|
|
3984
|
+
init_client();
|
|
3985
|
+
}
|
|
3986
|
+
});
|
|
3987
|
+
|
|
3988
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/api.js
|
|
3989
|
+
var PREVIEW_ERROR_PREFIX, APPLY_ERROR_PREFIX, USER_AGENT;
|
|
3990
|
+
var init_api = __esm({
|
|
3991
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/api.js"() {
|
|
3992
|
+
"use strict";
|
|
3993
|
+
PREVIEW_ERROR_PREFIX = "preview failed:";
|
|
3994
|
+
APPLY_ERROR_PREFIX = "apply failed:";
|
|
3995
|
+
USER_AGENT = "experience-design-system-backend-pipeline";
|
|
3996
|
+
}
|
|
3997
|
+
});
|
|
3998
|
+
|
|
3999
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/index.js
|
|
4000
|
+
var init_constants5 = __esm({
|
|
4001
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/constants/index.js"() {
|
|
4002
|
+
"use strict";
|
|
4003
|
+
init_api();
|
|
4004
|
+
}
|
|
4005
|
+
});
|
|
4006
|
+
|
|
4007
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/http-utils.js
|
|
4008
|
+
function isTransientStatus(status) {
|
|
4009
|
+
return status >= 500 && status <= 599;
|
|
4010
|
+
}
|
|
4011
|
+
function retryAfterMs(response) {
|
|
4012
|
+
const value = response.headers?.get("retry-after")?.trim();
|
|
4013
|
+
if (!value)
|
|
4014
|
+
return void 0;
|
|
4015
|
+
const seconds = Number(value);
|
|
4016
|
+
const delayMs = Number.isFinite(seconds) ? seconds * 1e3 : Date.parse(value) - Date.now();
|
|
4017
|
+
if (!Number.isFinite(delayMs) || delayMs < 0 || delayMs > MAX_RETRY_AFTER_MS)
|
|
4018
|
+
return void 0;
|
|
4019
|
+
return Math.round(delayMs);
|
|
4020
|
+
}
|
|
4021
|
+
function isApsDenialBody(body) {
|
|
4022
|
+
if (!body)
|
|
4023
|
+
return false;
|
|
4024
|
+
try {
|
|
4025
|
+
const parsed = JSON.parse(body);
|
|
4026
|
+
const id = parsed?.sys?.id;
|
|
4027
|
+
return id === "NotFound" || id === "AccessDenied";
|
|
4028
|
+
} catch {
|
|
4029
|
+
return false;
|
|
4030
|
+
}
|
|
4031
|
+
}
|
|
4032
|
+
function stringifyError(error) {
|
|
4033
|
+
return typeof error === "string" ? error : JSON.stringify(error ?? {});
|
|
4034
|
+
}
|
|
4035
|
+
function errorMessage(error) {
|
|
4036
|
+
return error instanceof Error && error.message ? error.message : String(error);
|
|
4037
|
+
}
|
|
4038
|
+
function defaultSleep(delayMs) {
|
|
4039
|
+
return new Promise((resolve2) => setTimeout(resolve2, delayMs));
|
|
4040
|
+
}
|
|
4041
|
+
var MAX_RETRY_AFTER_MS;
|
|
4042
|
+
var init_http_utils = __esm({
|
|
4043
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/http-utils.js"() {
|
|
4044
|
+
"use strict";
|
|
4045
|
+
MAX_RETRY_AFTER_MS = 6e4;
|
|
4046
|
+
}
|
|
4047
|
+
});
|
|
4048
|
+
|
|
4049
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/sanitize-preview.js
|
|
4050
|
+
function sanitizeBreakingChanges(raw) {
|
|
4051
|
+
if (!Array.isArray(raw))
|
|
4052
|
+
return [];
|
|
4053
|
+
const out = [];
|
|
4054
|
+
for (const bc of raw) {
|
|
4055
|
+
if (typeof bc !== "object" || bc === null)
|
|
4056
|
+
continue;
|
|
4057
|
+
const reason = bc.reason;
|
|
4058
|
+
if (typeof reason !== "string")
|
|
4059
|
+
continue;
|
|
4060
|
+
if ("propertyId" in bc && typeof bc.propertyId === "string") {
|
|
4061
|
+
if (PROPERTY_BREAKING_REASONS.has(reason))
|
|
4062
|
+
out.push(bc);
|
|
4063
|
+
continue;
|
|
4064
|
+
}
|
|
4065
|
+
if ("slotId" in bc && typeof bc.slotId === "string") {
|
|
4066
|
+
if (SLOT_BREAKING_REASONS.has(reason))
|
|
4067
|
+
out.push(bc);
|
|
4068
|
+
continue;
|
|
4069
|
+
}
|
|
4070
|
+
}
|
|
4071
|
+
return out;
|
|
4072
|
+
}
|
|
4073
|
+
function sanitizePreviewResponse(res) {
|
|
4074
|
+
for (const item of res.components?.changed ?? []) {
|
|
4075
|
+
const cc = item.changeClassification;
|
|
4076
|
+
if (cc && Array.isArray(cc.breakingChanges)) {
|
|
4077
|
+
cc.breakingChanges = sanitizeBreakingChanges(cc.breakingChanges);
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
return res;
|
|
4081
|
+
}
|
|
4082
|
+
var PROPERTY_BREAKING_REASONS, SLOT_BREAKING_REASONS;
|
|
4083
|
+
var init_sanitize_preview = __esm({
|
|
4084
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/sanitize-preview.js"() {
|
|
4085
|
+
"use strict";
|
|
4086
|
+
PROPERTY_BREAKING_REASONS = /* @__PURE__ */ new Set([
|
|
4087
|
+
"removed",
|
|
4088
|
+
"added_required_no_default",
|
|
4089
|
+
"type_changed",
|
|
4090
|
+
"validation_narrowed"
|
|
4091
|
+
]);
|
|
4092
|
+
SLOT_BREAKING_REASONS = /* @__PURE__ */ new Set(["slot_removed", "slot_allowed_components_narrowed"]);
|
|
4093
|
+
}
|
|
4094
|
+
});
|
|
4095
|
+
|
|
4096
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/host-utils.js
|
|
4097
|
+
function trimTrailingSlashes(value) {
|
|
4098
|
+
return value.replace(/\/+$/, "");
|
|
4099
|
+
}
|
|
4100
|
+
function normalizeHostInput(host) {
|
|
4101
|
+
const value = host?.trim();
|
|
4102
|
+
if (!value)
|
|
4103
|
+
return void 0;
|
|
4104
|
+
return trimTrailingSlashes(value);
|
|
4105
|
+
}
|
|
4106
|
+
function toConfiguredHost2(host) {
|
|
4107
|
+
const normalized = normalizeHostInput(host);
|
|
4108
|
+
if (!normalized)
|
|
4109
|
+
return void 0;
|
|
4110
|
+
return normalized.replace(/^https:\/\//i, "");
|
|
4111
|
+
}
|
|
4112
|
+
function toApiHost2(host) {
|
|
4113
|
+
const normalized = normalizeHostInput(host);
|
|
4114
|
+
if (!normalized)
|
|
4115
|
+
return DEFAULT_API_HOST;
|
|
4116
|
+
if (/^[a-z][a-z\d+\-.]*:\/\//i.test(normalized))
|
|
4117
|
+
return normalized;
|
|
4118
|
+
return `https://${normalized}`;
|
|
4119
|
+
}
|
|
4120
|
+
var DEFAULT_API_HOST;
|
|
4121
|
+
var init_host_utils2 = __esm({
|
|
4122
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/host-utils.js"() {
|
|
4123
|
+
"use strict";
|
|
4124
|
+
DEFAULT_API_HOST = "https://api.contentful.com";
|
|
4125
|
+
}
|
|
4126
|
+
});
|
|
4127
|
+
|
|
4128
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/types/api-error.js
|
|
4129
|
+
var ERROR_BODY_LOG_CAP, ApiError;
|
|
4130
|
+
var init_api_error = __esm({
|
|
4131
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/types/api-error.js"() {
|
|
4132
|
+
"use strict";
|
|
4133
|
+
ERROR_BODY_LOG_CAP = 16384;
|
|
4134
|
+
ApiError = class extends Error {
|
|
4135
|
+
status;
|
|
4136
|
+
body;
|
|
4137
|
+
guidance;
|
|
4138
|
+
constructor(message, status, body, guidance) {
|
|
4139
|
+
super(message);
|
|
4140
|
+
this.status = status;
|
|
4141
|
+
this.body = body;
|
|
4142
|
+
this.guidance = guidance;
|
|
4143
|
+
if (body) {
|
|
4144
|
+
const trimmed = body.length > ERROR_BODY_LOG_CAP ? body.slice(0, ERROR_BODY_LOG_CAP) + "\u2026" : body;
|
|
4145
|
+
this.message = `${message}
|
|
4146
|
+
${trimmed}`;
|
|
4147
|
+
}
|
|
4148
|
+
}
|
|
4149
|
+
};
|
|
4150
|
+
}
|
|
4151
|
+
});
|
|
4152
|
+
|
|
4153
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/api-client/api-client.js
|
|
4154
|
+
var ApiClient;
|
|
4155
|
+
var init_api_client = __esm({
|
|
4156
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/api-client/api-client.js"() {
|
|
4157
|
+
"use strict";
|
|
4158
|
+
init_src2();
|
|
4159
|
+
init_constants5();
|
|
4160
|
+
init_http_utils();
|
|
4161
|
+
init_sanitize_preview();
|
|
4162
|
+
init_host_utils2();
|
|
4163
|
+
init_api_error();
|
|
4164
|
+
ApiClient = class {
|
|
4165
|
+
host;
|
|
4166
|
+
token;
|
|
4167
|
+
spaceId;
|
|
4168
|
+
environmentId;
|
|
4169
|
+
retry;
|
|
4170
|
+
lastRequestId;
|
|
4171
|
+
constructor(opts) {
|
|
4172
|
+
this.host = toApiHost2(opts.host);
|
|
4173
|
+
this.token = opts.cmaToken;
|
|
4174
|
+
this.spaceId = opts.spaceId;
|
|
4175
|
+
this.environmentId = opts.environmentId;
|
|
4176
|
+
const initialDelayMs = Math.max(0, opts.retry?.initialDelayMs ?? 250);
|
|
4177
|
+
this.retry = {
|
|
4178
|
+
maxAttempts: Math.max(1, Math.floor(opts.retry?.maxAttempts ?? 3)),
|
|
4179
|
+
initialDelayMs,
|
|
4180
|
+
maxDelayMs: Math.max(initialDelayMs, opts.retry?.maxDelayMs ?? 2e3),
|
|
4181
|
+
sleep: opts.retry?.sleep ?? defaultSleep
|
|
4182
|
+
};
|
|
4183
|
+
}
|
|
4184
|
+
getLastRequestId() {
|
|
4185
|
+
return this.lastRequestId;
|
|
4186
|
+
}
|
|
4187
|
+
noteRequestId(response) {
|
|
4188
|
+
const id = response.headers.get("x-contentful-request-id");
|
|
4189
|
+
if (id)
|
|
4190
|
+
this.lastRequestId = id;
|
|
4191
|
+
}
|
|
4192
|
+
headers() {
|
|
4193
|
+
return {
|
|
4194
|
+
Authorization: `Bearer ${this.token}`,
|
|
4195
|
+
"Content-Type": "application/json",
|
|
4196
|
+
"X-Contentful-User-Agent": USER_AGENT
|
|
4197
|
+
};
|
|
4198
|
+
}
|
|
4199
|
+
async requestWithRetry(phase, errorPrefix, makeCall) {
|
|
4200
|
+
for (let attempt = 1; attempt <= this.retry.maxAttempts; attempt++) {
|
|
4201
|
+
let result;
|
|
4202
|
+
try {
|
|
4203
|
+
result = await makeCall();
|
|
4204
|
+
} catch (error) {
|
|
4205
|
+
if (attempt === this.retry.maxAttempts) {
|
|
4206
|
+
const body = `The request failed after ${attempt} attempts because of a network error: ${errorMessage(error)}. Check your connection and try again.`;
|
|
4207
|
+
throw new ApiError(`${errorPrefix} 0`, 0, body);
|
|
4208
|
+
}
|
|
4209
|
+
await this.retry.sleep(Math.min(this.retry.initialDelayMs * 2 ** (attempt - 1), this.retry.maxDelayMs));
|
|
4210
|
+
continue;
|
|
4211
|
+
}
|
|
4212
|
+
if (!isTransientStatus(result.response.status)) {
|
|
4213
|
+
this.noteRequestId(result.response);
|
|
4214
|
+
return result;
|
|
4215
|
+
}
|
|
4216
|
+
if (attempt === this.retry.maxAttempts) {
|
|
4217
|
+
const body = stringifyError(result.error);
|
|
4218
|
+
const guidance = `The ${phase} request failed after ${attempt} attempts because the service remained unavailable. Wait a moment and try again.`;
|
|
4219
|
+
throw new ApiError(`${errorPrefix} ${result.response.status}`, result.response.status, body, guidance);
|
|
4220
|
+
}
|
|
4221
|
+
const backoffMs = Math.min(this.retry.initialDelayMs * 2 ** (attempt - 1), this.retry.maxDelayMs);
|
|
4222
|
+
await this.retry.sleep(retryAfterMs(result.response) ?? backoffMs);
|
|
4223
|
+
}
|
|
4224
|
+
throw new Error("Retry attempts exhausted");
|
|
4225
|
+
}
|
|
4226
|
+
async validateToken() {
|
|
4227
|
+
const res = await fetch(`${this.host}/users/me`, { headers: this.headers() });
|
|
4228
|
+
this.noteRequestId(res);
|
|
4229
|
+
if (res.status === 401) {
|
|
4230
|
+
throw new ApiError("CMA token is invalid or revoked", res.status, await res.text());
|
|
4231
|
+
}
|
|
4232
|
+
if (!res.ok) {
|
|
4233
|
+
throw new ApiError(`unexpected error validating token: ${res.status}`, res.status, await res.text());
|
|
4234
|
+
}
|
|
4235
|
+
await this.checkPreflight();
|
|
4236
|
+
}
|
|
4237
|
+
async checkPreflight() {
|
|
4238
|
+
const url = `${this.host}/spaces/${this.spaceId}/environments/${this.environmentId}/design_systems/preflight`;
|
|
4239
|
+
let res;
|
|
4240
|
+
try {
|
|
4241
|
+
res = await fetch(url, { headers: this.headers() });
|
|
4242
|
+
} catch {
|
|
4243
|
+
return;
|
|
4244
|
+
}
|
|
4245
|
+
this.noteRequestId(res);
|
|
4246
|
+
if (res.ok)
|
|
4247
|
+
return;
|
|
4248
|
+
if (res.status >= 500)
|
|
4249
|
+
return;
|
|
4250
|
+
const body = await res.text();
|
|
4251
|
+
if (res.status === 404 && !isApsDenialBody(body))
|
|
4252
|
+
return;
|
|
4253
|
+
throw new ApiError(`preflight failed: ${res.status}`, res.status, body);
|
|
4254
|
+
}
|
|
4255
|
+
async previewImport(cdf) {
|
|
4256
|
+
const result = await this.requestWithRetry("preview", PREVIEW_ERROR_PREFIX, () => designSystemImportSourcelessPreview({
|
|
4257
|
+
baseUrl: this.host,
|
|
4258
|
+
headers: this.headers(),
|
|
4259
|
+
path: { spaceId: this.spaceId, environmentId: this.environmentId },
|
|
4260
|
+
body: cdf,
|
|
4261
|
+
parseAs: "json"
|
|
4262
|
+
}));
|
|
4263
|
+
if (!result.response.ok) {
|
|
4264
|
+
throw new ApiError(`${PREVIEW_ERROR_PREFIX} ${result.response.status}`, result.response.status, stringifyError(result.error));
|
|
4265
|
+
}
|
|
4266
|
+
return sanitizePreviewResponse(result.data);
|
|
4267
|
+
}
|
|
4268
|
+
async applyImport(cdf, opts) {
|
|
4269
|
+
let result;
|
|
4270
|
+
try {
|
|
4271
|
+
result = await designSystemImportApply({
|
|
4272
|
+
baseUrl: this.host,
|
|
4273
|
+
headers: this.headers(),
|
|
4274
|
+
path: { spaceId: this.spaceId, environmentId: this.environmentId },
|
|
4275
|
+
body: { ...cdf, acknowledgeBreakingChanges: opts.acknowledgeBreakingChanges },
|
|
4276
|
+
parseAs: "json"
|
|
4277
|
+
});
|
|
4278
|
+
} catch (error) {
|
|
4279
|
+
const body = `The apply request was not retried because its outcome is unknown and retrying could start a duplicate operation. Cause: ${errorMessage(error)}`;
|
|
4280
|
+
throw new ApiError(`${APPLY_ERROR_PREFIX} 0`, 0, body);
|
|
4281
|
+
}
|
|
4282
|
+
if (!result.response.ok) {
|
|
4283
|
+
const body = stringifyError(result.error);
|
|
4284
|
+
const guidance = isTransientStatus(result.response.status) ? "The apply request was not retried because the server may already have started an operation and retrying could create a duplicate." : void 0;
|
|
4285
|
+
throw new ApiError(`${APPLY_ERROR_PREFIX} ${result.response.status}`, result.response.status, body, guidance);
|
|
4286
|
+
}
|
|
4287
|
+
this.noteRequestId(result.response);
|
|
4288
|
+
return result.data;
|
|
4289
|
+
}
|
|
4290
|
+
async pollOperation(operationId, opts = {}) {
|
|
4291
|
+
const intervalMs = opts.intervalMs ?? 2e3;
|
|
4292
|
+
const maxIntervalMs = opts.maxIntervalMs ?? Math.round(intervalMs * 2.5);
|
|
4293
|
+
const maxAttempts = opts.maxAttempts ?? 150;
|
|
4294
|
+
const terminalStatuses = /* @__PURE__ */ new Set(["succeeded", "partial", "failed"]);
|
|
4295
|
+
for (let attempt = 0; attempt < maxAttempts; attempt++) {
|
|
4296
|
+
const result = await this.requestWithRetry("poll", "poll failed:", () => designSystemImportGetOperation({
|
|
4297
|
+
baseUrl: this.host,
|
|
4298
|
+
headers: this.headers(),
|
|
4299
|
+
path: { spaceId: this.spaceId, environmentId: this.environmentId, operationId },
|
|
4300
|
+
parseAs: "json"
|
|
4301
|
+
}));
|
|
4302
|
+
if (!result.response.ok) {
|
|
4303
|
+
throw new ApiError(`poll failed: ${result.response.status}`, result.response.status, stringifyError(result.error));
|
|
4304
|
+
}
|
|
4305
|
+
const op = result.data;
|
|
4306
|
+
opts.onProgress?.(op);
|
|
4307
|
+
if (terminalStatuses.has(op.sys.status))
|
|
4308
|
+
return op;
|
|
4309
|
+
if (attempt < maxAttempts - 1) {
|
|
4310
|
+
const progress = maxAttempts > 1 ? attempt / (maxAttempts - 1) : 0;
|
|
4311
|
+
const baseDelay = intervalMs + (maxIntervalMs - intervalMs) * progress;
|
|
4312
|
+
const jitter = Math.random() * baseDelay * 0.15;
|
|
4313
|
+
await new Promise((resolve2) => setTimeout(resolve2, baseDelay + jitter));
|
|
4314
|
+
}
|
|
4315
|
+
}
|
|
4316
|
+
throw new Error(`Operation ${operationId} timed out after ${maxAttempts} attempts`);
|
|
4317
|
+
}
|
|
4318
|
+
};
|
|
4319
|
+
}
|
|
4320
|
+
});
|
|
4321
|
+
|
|
4322
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/clients.js
|
|
4323
|
+
var init_clients = __esm({
|
|
4324
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/clients.js"() {
|
|
4325
|
+
"use strict";
|
|
4326
|
+
init_api_client();
|
|
4327
|
+
}
|
|
4328
|
+
});
|
|
4329
|
+
|
|
4330
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/has-breaking-changes.js
|
|
4331
|
+
var init_has_breaking_changes = __esm({
|
|
4332
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/has-breaking-changes.js"() {
|
|
4333
|
+
"use strict";
|
|
4334
|
+
}
|
|
4335
|
+
});
|
|
4336
|
+
|
|
4337
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/is-empty-preview.js
|
|
4338
|
+
var init_is_empty_preview = __esm({
|
|
4339
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/is-empty-preview.js"() {
|
|
4340
|
+
"use strict";
|
|
4341
|
+
}
|
|
4342
|
+
});
|
|
4343
|
+
|
|
4344
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-write-result.js
|
|
4345
|
+
var init_parse_write_result = __esm({
|
|
4346
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-write-result.js"() {
|
|
4347
|
+
"use strict";
|
|
4348
|
+
}
|
|
4349
|
+
});
|
|
4350
|
+
|
|
4351
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/token-utils.js
|
|
4352
|
+
var init_token_utils = __esm({
|
|
4353
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/token-utils.js"() {
|
|
4354
|
+
"use strict";
|
|
4355
|
+
}
|
|
4356
|
+
});
|
|
4357
|
+
|
|
4358
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/services/run-apply-service.js
|
|
4359
|
+
var init_run_apply_service = __esm({
|
|
4360
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/services/run-apply-service.js"() {
|
|
4361
|
+
"use strict";
|
|
4362
|
+
init_shared();
|
|
4363
|
+
init_clients();
|
|
4364
|
+
init_has_breaking_changes();
|
|
4365
|
+
init_is_empty_preview();
|
|
4366
|
+
init_parse_write_result();
|
|
4367
|
+
init_token_utils();
|
|
4368
|
+
init_api_error();
|
|
4369
|
+
}
|
|
4370
|
+
});
|
|
4371
|
+
|
|
4372
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/apply-components-endpoint.js
|
|
4373
|
+
var init_apply_components_endpoint = __esm({
|
|
4374
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/apply-components-endpoint.js"() {
|
|
4375
|
+
"use strict";
|
|
4376
|
+
init_run_apply_service();
|
|
4377
|
+
}
|
|
4378
|
+
});
|
|
4379
|
+
|
|
4380
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/contentful-urls.js
|
|
4381
|
+
var init_contentful_urls = __esm({
|
|
4382
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/contentful-urls.js"() {
|
|
4383
|
+
"use strict";
|
|
4384
|
+
}
|
|
4385
|
+
});
|
|
4386
|
+
|
|
4387
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-preview-errors.js
|
|
4388
|
+
var init_parse_preview_errors = __esm({
|
|
4389
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/parse-preview-errors.js"() {
|
|
4390
|
+
"use strict";
|
|
4391
|
+
}
|
|
4392
|
+
});
|
|
4393
|
+
|
|
4394
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/detect-slot-cycles.js
|
|
4395
|
+
var init_detect_slot_cycles = __esm({
|
|
4396
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/detect-slot-cycles.js"() {
|
|
4397
|
+
"use strict";
|
|
4398
|
+
init_find_slot_cycles();
|
|
4399
|
+
}
|
|
4400
|
+
});
|
|
4401
|
+
|
|
4402
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/detect-slot-cycles.js
|
|
4403
|
+
var init_detect_slot_cycles2 = __esm({
|
|
4404
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/detect-slot-cycles.js"() {
|
|
4405
|
+
"use strict";
|
|
4406
|
+
init_detect_slot_cycles();
|
|
4407
|
+
}
|
|
4408
|
+
});
|
|
4409
|
+
|
|
4410
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-slot-cycle-report.js
|
|
4411
|
+
var init_format_slot_cycle_report = __esm({
|
|
4412
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-slot-cycle-report.js"() {
|
|
4413
|
+
"use strict";
|
|
4414
|
+
init_format_cycle_path();
|
|
4415
|
+
init_suggest_cycle_break_edge();
|
|
4416
|
+
}
|
|
4417
|
+
});
|
|
4418
|
+
|
|
4419
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-slot-cycles.js
|
|
4420
|
+
var init_assert_no_slot_cycles = __esm({
|
|
4421
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-slot-cycles.js"() {
|
|
4422
|
+
"use strict";
|
|
4423
|
+
init_detect_slot_cycles();
|
|
4424
|
+
init_format_slot_cycle_report();
|
|
4425
|
+
}
|
|
4426
|
+
});
|
|
4427
|
+
|
|
4428
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-unresolved-slot-references.js
|
|
4429
|
+
var init_format_unresolved_slot_references = __esm({
|
|
4430
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/format-unresolved-slot-references.js"() {
|
|
4431
|
+
"use strict";
|
|
4432
|
+
}
|
|
4433
|
+
});
|
|
4434
|
+
|
|
4435
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-unresolved-slot-references.js
|
|
4436
|
+
var init_assert_no_unresolved_slot_references = __esm({
|
|
4437
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/assert-no-unresolved-slot-references.js"() {
|
|
4438
|
+
"use strict";
|
|
4439
|
+
init_shared();
|
|
4440
|
+
init_format_unresolved_slot_references();
|
|
4441
|
+
}
|
|
4442
|
+
});
|
|
4443
|
+
|
|
4444
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-slot-cycle-report.js
|
|
4445
|
+
var init_format_slot_cycle_report2 = __esm({
|
|
4446
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-slot-cycle-report.js"() {
|
|
4447
|
+
"use strict";
|
|
4448
|
+
init_format_slot_cycle_report();
|
|
4449
|
+
}
|
|
4450
|
+
});
|
|
4451
|
+
|
|
4452
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-unresolved-slot-references.js
|
|
4453
|
+
var init_format_unresolved_slot_references2 = __esm({
|
|
4454
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/validation/format-unresolved-slot-references.js"() {
|
|
4455
|
+
"use strict";
|
|
4456
|
+
init_format_unresolved_slot_references();
|
|
4457
|
+
}
|
|
4458
|
+
});
|
|
4459
|
+
|
|
4460
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-component-patch.js
|
|
4461
|
+
var init_apply_component_patch = __esm({
|
|
4462
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-component-patch.js"() {
|
|
4463
|
+
"use strict";
|
|
4464
|
+
}
|
|
4465
|
+
});
|
|
4466
|
+
|
|
4467
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-cdf-component.js
|
|
4468
|
+
var init_mutate_cdf_component = __esm({
|
|
4469
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-cdf-component.js"() {
|
|
4470
|
+
"use strict";
|
|
4471
|
+
init_apply_component_patch();
|
|
4472
|
+
}
|
|
4473
|
+
});
|
|
4474
|
+
|
|
4475
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-dot-path.js
|
|
4476
|
+
var init_apply_dot_path = __esm({
|
|
4477
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/apply-dot-path.js"() {
|
|
4478
|
+
"use strict";
|
|
4479
|
+
}
|
|
4480
|
+
});
|
|
4481
|
+
|
|
4482
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-dot-path.js
|
|
4483
|
+
var init_mutate_dot_path = __esm({
|
|
4484
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/mutate-dot-path.js"() {
|
|
4485
|
+
"use strict";
|
|
4486
|
+
init_apply_dot_path();
|
|
4487
|
+
}
|
|
4488
|
+
});
|
|
4489
|
+
|
|
4490
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/warn-on-unknown-patch-components.js
|
|
4491
|
+
var init_warn_on_unknown_patch_components = __esm({
|
|
4492
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/warn-on-unknown-patch-components.js"() {
|
|
4493
|
+
"use strict";
|
|
4494
|
+
}
|
|
4495
|
+
});
|
|
4496
|
+
|
|
4497
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/warn-on-unknown-patch-components.js
|
|
4498
|
+
var init_warn_on_unknown_patch_components2 = __esm({
|
|
4499
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/mutate/warn-on-unknown-patch-components.js"() {
|
|
4500
|
+
"use strict";
|
|
4501
|
+
init_warn_on_unknown_patch_components();
|
|
4502
|
+
}
|
|
4503
|
+
});
|
|
4504
|
+
|
|
4505
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/annotate-preview.js
|
|
4506
|
+
var init_annotate_preview = __esm({
|
|
4507
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/annotate-preview.js"() {
|
|
4508
|
+
"use strict";
|
|
4509
|
+
}
|
|
4510
|
+
});
|
|
4511
|
+
|
|
4512
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/preview/annotate-preview.js
|
|
4513
|
+
var init_annotate_preview2 = __esm({
|
|
4514
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/preview/annotate-preview.js"() {
|
|
4515
|
+
"use strict";
|
|
4516
|
+
init_annotate_preview();
|
|
4517
|
+
}
|
|
4518
|
+
});
|
|
4519
|
+
|
|
4520
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-binding-diagnostics.js
|
|
4521
|
+
function parseBindingDiagnostics(body) {
|
|
4522
|
+
if (!/binding configurations are invalid|Pointer path does not exist/i.test(body))
|
|
4523
|
+
return null;
|
|
4524
|
+
const locationMatches = [...body.matchAll(/(?:^|\.\s)([A-Za-z0-9_$-]+(?:\s*›\s*[A-Za-z0-9_$-]+){2,})/g)];
|
|
4525
|
+
const location = locationMatches.at(-1)?.[1];
|
|
4526
|
+
const pointerMessage = body.match(/Pointer path does not exist for '\[object Object\]':\s*(.+?)(?=\.\s*Default\s*›|$)/i)?.[1];
|
|
4527
|
+
const graphQlMessage = body.match(/return GraphQL validation error:\s*(.+?)(?=\.\s*Default\s*›|$)/i)?.[1];
|
|
4528
|
+
const heading = body.match(/^(.*?)(?=\.?\s*Pointer path does not exist|\.?\s*Default\s*›)/i)?.[1]?.trim();
|
|
4529
|
+
const diagnostics = [];
|
|
4530
|
+
if (pointerMessage)
|
|
4531
|
+
diagnostics.push({ message: pointerMessage.trim(), ...location ? { path: location } : {} });
|
|
4532
|
+
if (graphQlMessage)
|
|
4533
|
+
diagnostics.push({ message: graphQlMessage.trim(), ...location ? { path: location } : {} });
|
|
4534
|
+
return {
|
|
4535
|
+
code: "BindingValidationFailed",
|
|
4536
|
+
message: heading || "One or more binding configurations are invalid.",
|
|
4537
|
+
...diagnostics.length > 0 ? { diagnostics } : {}
|
|
4538
|
+
};
|
|
4539
|
+
}
|
|
4540
|
+
var init_parse_binding_diagnostics = __esm({
|
|
4541
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-binding-diagnostics.js"() {
|
|
4542
|
+
"use strict";
|
|
4543
|
+
}
|
|
4544
|
+
});
|
|
4545
|
+
|
|
4546
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/helpers.js
|
|
4547
|
+
function asRecord(value) {
|
|
4548
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
4549
|
+
}
|
|
4550
|
+
function displayValue(value) {
|
|
4551
|
+
if (typeof value === "string")
|
|
4552
|
+
return value;
|
|
4553
|
+
if (typeof value === "number" || typeof value === "boolean")
|
|
4554
|
+
return String(value);
|
|
4555
|
+
if (value === null || value === void 0)
|
|
4556
|
+
return null;
|
|
4557
|
+
try {
|
|
4558
|
+
return JSON.stringify(value);
|
|
4559
|
+
} catch {
|
|
4560
|
+
return null;
|
|
4561
|
+
}
|
|
4562
|
+
}
|
|
4563
|
+
function isPathSegment(value) {
|
|
4564
|
+
return typeof value === "string" || typeof value === "number" && Number.isFinite(value);
|
|
4565
|
+
}
|
|
4566
|
+
function formatPath(value) {
|
|
4567
|
+
if (isPathSegment(value))
|
|
4568
|
+
return String(value) ? { path: String(value) } : { path: null };
|
|
4569
|
+
if (Array.isArray(value)) {
|
|
4570
|
+
const parts = value.filter(isPathSegment);
|
|
4571
|
+
return parts.length > 0 ? { path: parts.join(" \u203A ") } : { path: null };
|
|
4572
|
+
}
|
|
4573
|
+
return {};
|
|
4574
|
+
}
|
|
4575
|
+
function componentFromPath(path) {
|
|
4576
|
+
if (!path)
|
|
4577
|
+
return void 0;
|
|
4578
|
+
const manifestMatch = path.match(/manifest:components\/([^/›]+)/);
|
|
4579
|
+
if (manifestMatch?.[1])
|
|
4580
|
+
return manifestMatch[1];
|
|
4581
|
+
const parts = path.split(/[›/]/).map((part) => part.trim()).filter(Boolean);
|
|
4582
|
+
const componentsIndex = parts.findIndex((part) => part === "components");
|
|
4583
|
+
return componentsIndex === -1 ? void 0 : parts[componentsIndex + 1];
|
|
4584
|
+
}
|
|
4585
|
+
function diagnosticMessage(error) {
|
|
4586
|
+
const candidates = [
|
|
4587
|
+
["message", error.message],
|
|
4588
|
+
["details", error.details],
|
|
4589
|
+
["error", error.error],
|
|
4590
|
+
["name", error.name]
|
|
4591
|
+
];
|
|
4592
|
+
for (const [messageSource, value] of candidates) {
|
|
4593
|
+
const message = displayValue(value);
|
|
4594
|
+
if (message !== null)
|
|
4595
|
+
return { message, messageSource };
|
|
4596
|
+
}
|
|
4597
|
+
return { message: "Validation failed" };
|
|
4598
|
+
}
|
|
4599
|
+
function parseObjectLiteralTail(body) {
|
|
4600
|
+
const braceStart = body.lastIndexOf("{");
|
|
4601
|
+
if (braceStart === -1)
|
|
4602
|
+
return null;
|
|
4603
|
+
const tail = body.slice(braceStart);
|
|
4604
|
+
const codeMatch = tail.match(/code:\s*['"]([^'"]+)['"]/);
|
|
4605
|
+
const cycleMatch = tail.match(/cycle:\s*\[\s*([^\]]*)\s*\]/);
|
|
4606
|
+
if (!codeMatch && !cycleMatch)
|
|
4607
|
+
return null;
|
|
4608
|
+
const code = codeMatch ? codeMatch[1] : null;
|
|
4609
|
+
let cycle = null;
|
|
4610
|
+
if (cycleMatch) {
|
|
4611
|
+
cycle = cycleMatch[1].split(",").map((s) => s.trim().replace(/^['"]|['"]$/g, "")).filter((s) => s.length > 0);
|
|
4612
|
+
if (cycle.length === 0)
|
|
4613
|
+
cycle = null;
|
|
4614
|
+
}
|
|
4615
|
+
return { code, cycle };
|
|
4616
|
+
}
|
|
4617
|
+
var init_helpers3 = __esm({
|
|
4618
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/helpers.js"() {
|
|
4619
|
+
"use strict";
|
|
4620
|
+
}
|
|
4621
|
+
});
|
|
4622
|
+
|
|
4623
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-json-body.js
|
|
4624
|
+
function parseValidationDiagnostics(details) {
|
|
4625
|
+
if (!Array.isArray(details.errors))
|
|
4626
|
+
return [];
|
|
4627
|
+
const diagnostics = [];
|
|
4628
|
+
for (const rawError of details.errors) {
|
|
4629
|
+
const error = asRecord(rawError);
|
|
4630
|
+
if (!error)
|
|
4631
|
+
continue;
|
|
4632
|
+
const location = formatPath(error.path);
|
|
4633
|
+
const component = displayValue(error.component ?? error.componentName ?? error.componentId) ?? componentFromPath(location.path);
|
|
4634
|
+
diagnostics.push({ ...diagnosticMessage(error), ...location, ...component ? { component } : {} });
|
|
4635
|
+
}
|
|
4636
|
+
return diagnostics;
|
|
4637
|
+
}
|
|
4638
|
+
function parseJsonBody(body) {
|
|
4639
|
+
let parsed;
|
|
4640
|
+
try {
|
|
4641
|
+
parsed = JSON.parse(body);
|
|
4642
|
+
} catch {
|
|
4643
|
+
return null;
|
|
4644
|
+
}
|
|
4645
|
+
const p = asRecord(parsed);
|
|
4646
|
+
if (!p)
|
|
4647
|
+
return null;
|
|
4648
|
+
const details = asRecord(p.details) ?? {};
|
|
4649
|
+
const pick = (k) => p[k] !== void 0 ? p[k] : details[k];
|
|
4650
|
+
const codeRaw = pick("code") ?? asRecord(p.sys)?.id;
|
|
4651
|
+
const messageRaw = pick("message");
|
|
4652
|
+
const cycleRaw = pick("cycle");
|
|
4653
|
+
const out = {};
|
|
4654
|
+
if (typeof codeRaw === "string")
|
|
4655
|
+
out.code = codeRaw;
|
|
4656
|
+
if (typeof messageRaw === "string")
|
|
4657
|
+
out.message = messageRaw;
|
|
4658
|
+
if (Array.isArray(cycleRaw)) {
|
|
4659
|
+
const strs = cycleRaw.filter((x) => typeof x === "string");
|
|
4660
|
+
if (strs.length > 0)
|
|
4661
|
+
out.cycle = strs;
|
|
4662
|
+
}
|
|
4663
|
+
const diagnostics = parseValidationDiagnostics(details);
|
|
4664
|
+
if (diagnostics.length > 0)
|
|
4665
|
+
out.diagnostics = diagnostics;
|
|
4666
|
+
return out;
|
|
4667
|
+
}
|
|
4668
|
+
var init_parse_json_body = __esm({
|
|
4669
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-json-body.js"() {
|
|
4670
|
+
"use strict";
|
|
4671
|
+
init_helpers3();
|
|
4672
|
+
}
|
|
4673
|
+
});
|
|
4674
|
+
|
|
4675
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/strip-lambda-log-prefix.js
|
|
4676
|
+
function stripLambdaLogPrefix(body) {
|
|
4677
|
+
return body.replace(LAMBDA_LOG_PREFIX_RE, "").replace(DD_TAG_RE, "").trim();
|
|
4678
|
+
}
|
|
4679
|
+
var LAMBDA_LOG_PREFIX_RE, DD_TAG_RE;
|
|
4680
|
+
var init_strip_lambda_log_prefix = __esm({
|
|
4681
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/strip-lambda-log-prefix.js"() {
|
|
4682
|
+
"use strict";
|
|
4683
|
+
LAMBDA_LOG_PREFIX_RE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\s+[0-9a-f-]+\s+ERROR\s+(?:\[dd\.[^\]]*\]\s*)?/;
|
|
4684
|
+
DD_TAG_RE = /\[dd\.(?:trace_id|span_id)=[^\]]*\]\s*/g;
|
|
4685
|
+
}
|
|
4686
|
+
});
|
|
4687
|
+
|
|
4688
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-edsi-error.js
|
|
4689
|
+
function parseEdsiError(rawInput) {
|
|
4690
|
+
if (!rawInput)
|
|
4691
|
+
return { code: null, message: "", cycle: null, raw: true };
|
|
4692
|
+
const { body, prefix } = splitPhasePrefix(rawInput);
|
|
4693
|
+
const cleaned = stripLambdaLogPrefix(body);
|
|
4694
|
+
const json = parseJsonBody(cleaned) ?? parseJsonBody(body);
|
|
4695
|
+
const bindingFromJson = typeof json?.message === "string" ? parseBindingDiagnostics(json.message) : null;
|
|
4696
|
+
if (bindingFromJson) {
|
|
4697
|
+
return {
|
|
4698
|
+
code: bindingFromJson.code ?? json?.code ?? null,
|
|
4699
|
+
message: bindingFromJson.message ?? cleaned,
|
|
4700
|
+
cycle: null,
|
|
4701
|
+
raw: false,
|
|
4702
|
+
...bindingFromJson.diagnostics ? { diagnostics: bindingFromJson.diagnostics } : {}
|
|
4703
|
+
};
|
|
4704
|
+
}
|
|
4705
|
+
if (json && (json.code || json.message || json.cycle)) {
|
|
4706
|
+
return {
|
|
4707
|
+
code: json.code ?? null,
|
|
4708
|
+
message: json.message ?? (cleaned || prefix),
|
|
4709
|
+
cycle: json.cycle ?? null,
|
|
4710
|
+
raw: false,
|
|
4711
|
+
...json.diagnostics ? { diagnostics: json.diagnostics } : {}
|
|
4712
|
+
};
|
|
4713
|
+
}
|
|
4714
|
+
const binding = parseBindingDiagnostics(cleaned);
|
|
4715
|
+
if (binding) {
|
|
4716
|
+
return {
|
|
4717
|
+
code: binding.code ?? null,
|
|
4718
|
+
message: binding.message ?? cleaned,
|
|
4719
|
+
cycle: null,
|
|
4720
|
+
raw: false,
|
|
4721
|
+
...binding.diagnostics ? { diagnostics: binding.diagnostics } : {}
|
|
4722
|
+
};
|
|
4723
|
+
}
|
|
4724
|
+
const literal2 = parseObjectLiteralTail(cleaned);
|
|
4725
|
+
if (literal2 && (literal2.code || literal2.cycle)) {
|
|
4726
|
+
const braceStart = cleaned.lastIndexOf("{");
|
|
4727
|
+
const head = braceStart === -1 ? cleaned : cleaned.slice(0, braceStart).trim();
|
|
4728
|
+
return { code: literal2.code ?? null, message: head || cleaned, cycle: literal2.cycle ?? null, raw: false };
|
|
4729
|
+
}
|
|
4730
|
+
return { code: null, message: cleaned || prefix || rawInput, cycle: null, raw: true };
|
|
4731
|
+
}
|
|
4732
|
+
function splitPhasePrefix(input) {
|
|
4733
|
+
const nlIndex = input.indexOf("\n");
|
|
4734
|
+
if (nlIndex === -1)
|
|
4735
|
+
return { body: input, prefix: "" };
|
|
4736
|
+
const firstLine = input.slice(0, nlIndex);
|
|
4737
|
+
if (!API_ERROR_PREFIX_RE.test(firstLine))
|
|
4738
|
+
return { body: input, prefix: "" };
|
|
4739
|
+
return { body: input.slice(nlIndex + 1), prefix: firstLine };
|
|
4740
|
+
}
|
|
4741
|
+
var API_ERROR_PREFIX_RE;
|
|
4742
|
+
var init_parse_edsi_error = __esm({
|
|
4743
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/parse-edsi-error.js"() {
|
|
4744
|
+
"use strict";
|
|
4745
|
+
init_parse_binding_diagnostics();
|
|
4746
|
+
init_parse_json_body();
|
|
4747
|
+
init_helpers3();
|
|
4748
|
+
init_strip_lambda_log_prefix();
|
|
4749
|
+
API_ERROR_PREFIX_RE = /^(?:apply|preview|poll) failed: \d+$/;
|
|
4750
|
+
}
|
|
4751
|
+
});
|
|
4752
|
+
|
|
4753
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-parsed-edsi-error.js
|
|
4754
|
+
function formatParsedEdsiError(parsed, opts = {}) {
|
|
4755
|
+
const lines = [];
|
|
4756
|
+
if (parsed.code)
|
|
4757
|
+
lines.push(`[${parsed.code}]`);
|
|
4758
|
+
if (parsed.message)
|
|
4759
|
+
lines.push(parsed.message);
|
|
4760
|
+
for (const diagnostic of parsed.diagnostics ?? []) {
|
|
4761
|
+
const context = [
|
|
4762
|
+
diagnostic.component ? `Component: ${diagnostic.component}` : null,
|
|
4763
|
+
diagnostic.path ? `Path: ${diagnostic.path}` : null
|
|
4764
|
+
].filter(Boolean);
|
|
4765
|
+
lines.push(`- ${diagnostic.message}${context.length > 0 ? ` (${context.join("; ")})` : ""}`);
|
|
4766
|
+
if (diagnostic.path === null) {
|
|
4767
|
+
lines.push(" Location: not provided by the server. Review the submitted CDF file; no component or field was identified.");
|
|
4768
|
+
}
|
|
4769
|
+
if (opts.verbose && diagnostic.messageSource) {
|
|
4770
|
+
lines.push(` Message field: ${diagnostic.messageSource}`);
|
|
4771
|
+
}
|
|
4772
|
+
}
|
|
4773
|
+
if (parsed.code === "BindingValidationFailed") {
|
|
4774
|
+
const location = parsed.diagnostics?.find((d) => d.path)?.path;
|
|
4775
|
+
lines.push(location ? `Next action: review the binding at ${location} and correct its pointer or GraphQL selection.` : "Next action: review the binding pointer and GraphQL selection.");
|
|
4776
|
+
}
|
|
4777
|
+
if (parsed.code === "AccessDenied") {
|
|
4778
|
+
lines.push("Next action: this operation requires DesignToken and Component permissions in this environment. Ask a Contentful admin to grant both on your role.");
|
|
4779
|
+
}
|
|
4780
|
+
if (parsed.code === "NotFound") {
|
|
4781
|
+
lines.push("Next action: verify the resource id is correct. If it should exist, your role may lack read permission on DesignToken or Component.");
|
|
4782
|
+
}
|
|
4783
|
+
if (parsed.cycle && parsed.cycle.length > 0) {
|
|
4784
|
+
lines.push(`Cycle: ${parsed.cycle.join(" \u2192 ")} \u2192 ${parsed.cycle[0]}`);
|
|
4785
|
+
lines.push("Break the cycle by removing at least one $allowedComponents entry.");
|
|
4786
|
+
}
|
|
4787
|
+
if (opts.verbose && opts.raw) {
|
|
4788
|
+
lines.push("");
|
|
4789
|
+
lines.push("--- raw ---");
|
|
4790
|
+
lines.push(opts.raw);
|
|
4791
|
+
}
|
|
4792
|
+
return lines.filter(Boolean).join("\n");
|
|
4793
|
+
}
|
|
4794
|
+
var init_format_parsed_edsi_error = __esm({
|
|
4795
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-parsed-edsi-error.js"() {
|
|
4796
|
+
"use strict";
|
|
4797
|
+
}
|
|
4798
|
+
});
|
|
4799
|
+
|
|
4800
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-edsi-error.js
|
|
4801
|
+
function formatEdsiError(raw, opts = {}) {
|
|
4802
|
+
const input = typeof raw === "string" ? raw : displayValue(raw);
|
|
4803
|
+
if (!input)
|
|
4804
|
+
return "";
|
|
4805
|
+
return formatParsedEdsiError(parseEdsiError(input), { ...opts, raw: opts.raw ?? input });
|
|
4806
|
+
}
|
|
4807
|
+
var init_format_edsi_error = __esm({
|
|
4808
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-edsi-error.js"() {
|
|
4809
|
+
"use strict";
|
|
4810
|
+
init_helpers3();
|
|
4811
|
+
init_format_parsed_edsi_error();
|
|
4812
|
+
init_parse_edsi_error();
|
|
4813
|
+
}
|
|
4814
|
+
});
|
|
4815
|
+
|
|
4816
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-api-error.js
|
|
4817
|
+
function formatApiError(error, verbose = false) {
|
|
4818
|
+
const formatted = formatEdsiError(error.body || error.message, { verbose, raw: error.body }) || error.message;
|
|
4819
|
+
const phase = error.message.split("\n", 1)[0];
|
|
4820
|
+
const withPhase = /^(?:apply|preview|poll) failed: \d+$/.test(phase) && formatted !== phase ? `${phase}
|
|
4821
|
+
${formatted}` : formatted;
|
|
4822
|
+
return error.guidance ? `${withPhase}
|
|
4823
|
+
${error.guidance}` : withPhase;
|
|
4824
|
+
}
|
|
4825
|
+
var init_format_api_error = __esm({
|
|
4826
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/format-api-error.js"() {
|
|
4827
|
+
"use strict";
|
|
4828
|
+
init_format_edsi_error();
|
|
4829
|
+
}
|
|
4830
|
+
});
|
|
4831
|
+
|
|
4832
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/index.js
|
|
4833
|
+
var init_edsi_errors = __esm({
|
|
4834
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/edsi-errors/index.js"() {
|
|
4835
|
+
"use strict";
|
|
4836
|
+
init_parse_edsi_error();
|
|
4837
|
+
init_format_edsi_error();
|
|
4838
|
+
init_format_parsed_edsi_error();
|
|
4839
|
+
init_format_api_error();
|
|
4840
|
+
init_strip_lambda_log_prefix();
|
|
4841
|
+
}
|
|
4842
|
+
});
|
|
4843
|
+
|
|
4844
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/parse-edsi-error.js
|
|
4845
|
+
var init_parse_edsi_error2 = __esm({
|
|
4846
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/parse-edsi-error.js"() {
|
|
4847
|
+
"use strict";
|
|
4848
|
+
init_edsi_errors();
|
|
4849
|
+
}
|
|
4850
|
+
});
|
|
4851
|
+
|
|
4852
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-edsi-error.js
|
|
4853
|
+
var init_format_edsi_error2 = __esm({
|
|
4854
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-edsi-error.js"() {
|
|
4855
|
+
"use strict";
|
|
4856
|
+
init_edsi_errors();
|
|
4857
|
+
}
|
|
4858
|
+
});
|
|
4859
|
+
|
|
4860
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-api-error.js
|
|
4861
|
+
function formatApiError2(request) {
|
|
4862
|
+
return formatApiError(request.error, request.verbose ?? false);
|
|
4863
|
+
}
|
|
4864
|
+
var init_format_api_error2 = __esm({
|
|
4865
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/errors/format-api-error.js"() {
|
|
4866
|
+
"use strict";
|
|
4867
|
+
init_edsi_errors();
|
|
4868
|
+
}
|
|
4869
|
+
});
|
|
4870
|
+
|
|
4871
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/collect-json-files.js
|
|
4872
|
+
var init_collect_json_files = __esm({
|
|
4873
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/collect-json-files.js"() {
|
|
4874
|
+
"use strict";
|
|
4875
|
+
}
|
|
4876
|
+
});
|
|
4877
|
+
|
|
4878
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/read-tokens-from-path.js
|
|
4879
|
+
var init_read_tokens_from_path = __esm({
|
|
4880
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/helpers/tokens/read-tokens-from-path.js"() {
|
|
4881
|
+
"use strict";
|
|
4882
|
+
init_shared();
|
|
4883
|
+
init_collect_json_files();
|
|
4884
|
+
}
|
|
4885
|
+
});
|
|
4886
|
+
|
|
4887
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/tokens/read-tokens-from-path.js
|
|
4888
|
+
var init_read_tokens_from_path2 = __esm({
|
|
4889
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/tokens/read-tokens-from-path.js"() {
|
|
4890
|
+
"use strict";
|
|
4891
|
+
init_read_tokens_from_path();
|
|
4892
|
+
}
|
|
4893
|
+
});
|
|
4894
|
+
|
|
4895
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/client/build-contentful-management-client.js
|
|
4896
|
+
import { createClient as createClient2 } from "contentful-management";
|
|
4897
|
+
var init_build_contentful_management_client = __esm({
|
|
4898
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/client/build-contentful-management-client.js"() {
|
|
4899
|
+
"use strict";
|
|
4900
|
+
init_host_utils2();
|
|
4901
|
+
}
|
|
4902
|
+
});
|
|
4903
|
+
|
|
4904
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/fetch-from-contentful.js
|
|
4905
|
+
import { fetchAll } from "contentful-management";
|
|
4906
|
+
var init_fetch_from_contentful = __esm({
|
|
4907
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/fetch-from-contentful.js"() {
|
|
4908
|
+
"use strict";
|
|
4909
|
+
}
|
|
4910
|
+
});
|
|
4911
|
+
|
|
4912
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/fetch-and-persist.js
|
|
4913
|
+
var init_fetch_and_persist = __esm({
|
|
4914
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/fetch-and-persist.js"() {
|
|
4915
|
+
"use strict";
|
|
4916
|
+
init_build_contentful_management_client();
|
|
4917
|
+
init_fetch_from_contentful();
|
|
4918
|
+
}
|
|
4919
|
+
});
|
|
4920
|
+
|
|
4921
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/read-from-session.js
|
|
4922
|
+
var init_read_from_session = __esm({
|
|
4923
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/read-from-session.js"() {
|
|
4924
|
+
"use strict";
|
|
4925
|
+
}
|
|
4926
|
+
});
|
|
4927
|
+
|
|
4928
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/summarizers/summarize-tokens.js
|
|
4929
|
+
var init_summarize_tokens = __esm({
|
|
4930
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/summarizers/summarize-tokens.js"() {
|
|
4931
|
+
"use strict";
|
|
4932
|
+
}
|
|
4933
|
+
});
|
|
4934
|
+
|
|
4935
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-select.js
|
|
4936
|
+
var init_summarize_for_select = __esm({
|
|
4937
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-select.js"() {
|
|
4938
|
+
"use strict";
|
|
4939
|
+
init_summarize_tokens();
|
|
4940
|
+
}
|
|
4941
|
+
});
|
|
4942
|
+
|
|
4943
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/count-character-edits.js
|
|
4944
|
+
var init_count_character_edits = __esm({
|
|
4945
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/count-character-edits.js"() {
|
|
4946
|
+
"use strict";
|
|
4947
|
+
}
|
|
4948
|
+
});
|
|
4949
|
+
|
|
4950
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/simplify-name-for-comparison.js
|
|
4951
|
+
var init_simplify_name_for_comparison = __esm({
|
|
4952
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/simplify-name-for-comparison.js"() {
|
|
4953
|
+
"use strict";
|
|
4954
|
+
}
|
|
4955
|
+
});
|
|
4956
|
+
|
|
4957
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/find-nearly-matching-component.js
|
|
4958
|
+
var init_find_nearly_matching_component = __esm({
|
|
4959
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/existing-entities/find-nearly-matching-component.js"() {
|
|
4960
|
+
"use strict";
|
|
4961
|
+
init_count_character_edits();
|
|
4962
|
+
init_simplify_name_for_comparison();
|
|
4963
|
+
}
|
|
4964
|
+
});
|
|
4965
|
+
|
|
4966
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-generate.js
|
|
4967
|
+
var init_summarize_for_generate = __esm({
|
|
4968
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-generate.js"() {
|
|
4969
|
+
"use strict";
|
|
4970
|
+
init_find_nearly_matching_component();
|
|
4971
|
+
init_summarize_tokens();
|
|
4972
|
+
}
|
|
4973
|
+
});
|
|
4974
|
+
|
|
4975
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-map-tokens.js
|
|
4976
|
+
var init_summarize_for_map_tokens = __esm({
|
|
4977
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/existing-entities/summarize-for-map-tokens.js"() {
|
|
4978
|
+
"use strict";
|
|
4979
|
+
}
|
|
4980
|
+
});
|
|
4981
|
+
|
|
4982
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/normalize-token-key.js
|
|
4983
|
+
var init_normalize_token_key = __esm({
|
|
4984
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/normalize-token-key.js"() {
|
|
4985
|
+
"use strict";
|
|
4986
|
+
}
|
|
4987
|
+
});
|
|
4988
|
+
|
|
4989
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/terminal-member.js
|
|
4990
|
+
var init_terminal_member = __esm({
|
|
4991
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/terminal-member.js"() {
|
|
4992
|
+
"use strict";
|
|
4993
|
+
}
|
|
4994
|
+
});
|
|
4995
|
+
|
|
4996
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/resolve-token-defaults.js
|
|
4997
|
+
var init_resolve_token_defaults = __esm({
|
|
4998
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/token-defaults/resolve-token-defaults.js"() {
|
|
4999
|
+
"use strict";
|
|
5000
|
+
init_normalize_token_key();
|
|
5001
|
+
init_terminal_member();
|
|
5002
|
+
}
|
|
5003
|
+
});
|
|
5004
|
+
|
|
5005
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/token-defaults/resolve-token-defaults.js
|
|
5006
|
+
var init_resolve_token_defaults2 = __esm({
|
|
5007
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/token-defaults/resolve-token-defaults.js"() {
|
|
5008
|
+
"use strict";
|
|
5009
|
+
init_resolve_token_defaults();
|
|
5010
|
+
}
|
|
5011
|
+
});
|
|
5012
|
+
|
|
5013
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/normalize-component-for-cache.js
|
|
5014
|
+
var init_normalize_component_for_cache = __esm({
|
|
5015
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/normalize-component-for-cache.js"() {
|
|
5016
|
+
"use strict";
|
|
5017
|
+
}
|
|
5018
|
+
});
|
|
5019
|
+
|
|
5020
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/lookup-component-cache.js
|
|
5021
|
+
var init_lookup_component_cache = __esm({
|
|
5022
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/lookup-component-cache.js"() {
|
|
5023
|
+
"use strict";
|
|
5024
|
+
init_db();
|
|
5025
|
+
init_normalize_component_for_cache();
|
|
5026
|
+
}
|
|
5027
|
+
});
|
|
5028
|
+
|
|
5029
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/resolve-component-cache.js
|
|
5030
|
+
var init_resolve_component_cache = __esm({
|
|
5031
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/components/resolve-component-cache.js"() {
|
|
5032
|
+
"use strict";
|
|
5033
|
+
init_db();
|
|
5034
|
+
init_lookup_component_cache();
|
|
5035
|
+
}
|
|
5036
|
+
});
|
|
5037
|
+
|
|
5038
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/resolve-shared-inputs.js
|
|
5039
|
+
var init_resolve_shared_inputs = __esm({
|
|
5040
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/apply/src/controller/endpoint/resolve-shared-inputs.js"() {
|
|
5041
|
+
"use strict";
|
|
5042
|
+
init_read_credentials();
|
|
5043
|
+
init_validate();
|
|
5044
|
+
init_api_client();
|
|
5045
|
+
}
|
|
5046
|
+
});
|
|
5047
|
+
|
|
5048
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/filter-allowed-paths.js
|
|
5049
|
+
var init_filter_allowed_paths = __esm({
|
|
5050
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/filter-allowed-paths.js"() {
|
|
5051
|
+
"use strict";
|
|
5052
|
+
}
|
|
5053
|
+
});
|
|
5054
|
+
|
|
5055
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/is-prop-reviewed.js
|
|
5056
|
+
var init_is_prop_reviewed = __esm({
|
|
5057
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/is-prop-reviewed.js"() {
|
|
5058
|
+
"use strict";
|
|
5059
|
+
}
|
|
5060
|
+
});
|
|
5061
|
+
|
|
5062
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-type-by-path.js
|
|
5063
|
+
var init_load_token_type_by_path = __esm({
|
|
5064
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-type-by-path.js"() {
|
|
5065
|
+
"use strict";
|
|
5066
|
+
}
|
|
5067
|
+
});
|
|
5068
|
+
|
|
5069
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/apply-map-token-prop-calls.js
|
|
5070
|
+
var init_apply_map_token_prop_calls = __esm({
|
|
5071
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/apply-map-token-prop-calls.js"() {
|
|
5072
|
+
"use strict";
|
|
5073
|
+
init_replace_raw_prop_token_paths();
|
|
5074
|
+
init_filter_allowed_paths();
|
|
5075
|
+
init_is_prop_reviewed();
|
|
5076
|
+
init_load_token_type_by_path();
|
|
5077
|
+
}
|
|
5078
|
+
});
|
|
5079
|
+
|
|
5080
|
+
// packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/binary-exists.js
|
|
5081
|
+
import { execFile } from "node:child_process";
|
|
5082
|
+
import { promisify } from "node:util";
|
|
5083
|
+
var execFileAsync;
|
|
5084
|
+
var init_binary_exists = __esm({
|
|
5085
|
+
"packages/experience-design-system-backend-pipeline/dist/src/agents/helpers/resolution/binary-exists.js"() {
|
|
5086
|
+
"use strict";
|
|
5087
|
+
execFileAsync = promisify(execFile);
|
|
5088
|
+
}
|
|
5089
|
+
});
|
|
5090
|
+
|
|
5091
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/count-mappable-props.js
|
|
5092
|
+
var init_count_mappable_props = __esm({
|
|
5093
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/count-mappable-props.js"() {
|
|
5094
|
+
"use strict";
|
|
5095
|
+
}
|
|
5096
|
+
});
|
|
5097
|
+
|
|
5098
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-raw-defaults.js
|
|
5099
|
+
var init_load_raw_defaults = __esm({
|
|
5100
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-raw-defaults.js"() {
|
|
5101
|
+
"use strict";
|
|
5102
|
+
}
|
|
5103
|
+
});
|
|
5104
|
+
|
|
5105
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-leaves.js
|
|
5106
|
+
var init_load_token_leaves = __esm({
|
|
5107
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/helpers/map-tokens/load-token-leaves.js"() {
|
|
5108
|
+
"use strict";
|
|
5109
|
+
}
|
|
5110
|
+
});
|
|
5111
|
+
|
|
5112
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/run-map-tokens.js
|
|
5113
|
+
var DEFAULT_TIMEOUT_MS2;
|
|
5114
|
+
var init_run_map_tokens = __esm({
|
|
5115
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/generation/src/controller/map-tokens/run-map-tokens.js"() {
|
|
5116
|
+
"use strict";
|
|
5117
|
+
init_build_prompt();
|
|
5118
|
+
init_create_local_cli_agent_invoker();
|
|
5119
|
+
init_describe_agent_failure();
|
|
5120
|
+
init_resolve_binary();
|
|
5121
|
+
init_resolve_skill_path();
|
|
5122
|
+
init_parse_map_token_prop_tool_calls();
|
|
5123
|
+
init_db();
|
|
5124
|
+
init_cache_keys();
|
|
5125
|
+
init_binary_exists();
|
|
5126
|
+
init_apply_map_token_prop_calls();
|
|
5127
|
+
init_count_mappable_props();
|
|
5128
|
+
init_load_raw_defaults();
|
|
5129
|
+
init_load_token_leaves();
|
|
5130
|
+
init_rebuild_dtcg_tree();
|
|
5131
|
+
init_resolve_token_defaults();
|
|
5132
|
+
DEFAULT_TIMEOUT_MS2 = 5 * 60 * 1e3;
|
|
5133
|
+
}
|
|
5134
|
+
});
|
|
5135
|
+
|
|
5136
|
+
// packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/types/component.js
|
|
5137
|
+
var init_component = __esm({
|
|
5138
|
+
"packages/experience-design-system-backend-pipeline/dist/src/steps/extraction/src/types/component.js"() {
|
|
5139
|
+
"use strict";
|
|
5140
|
+
}
|
|
5141
|
+
});
|
|
5142
|
+
|
|
5143
|
+
// packages/experience-design-system-backend-pipeline/dist/src/index.js
|
|
5144
|
+
var init_src3 = __esm({
|
|
5145
|
+
"packages/experience-design-system-backend-pipeline/dist/src/index.js"() {
|
|
5146
|
+
"use strict";
|
|
5147
|
+
init_export_cdf_document();
|
|
5148
|
+
init_export_dtcg_tree();
|
|
5149
|
+
init_validate_cdf_file();
|
|
5150
|
+
init_validate_dtcg_token_file();
|
|
5151
|
+
init_format_diagnostics();
|
|
5152
|
+
init_read_json_file();
|
|
5153
|
+
init_rebuild_dtcg_tree();
|
|
5154
|
+
init_extract_components_endpoint();
|
|
5155
|
+
init_compose_components_endpoint();
|
|
5156
|
+
init_candidate_files2();
|
|
5157
|
+
init_manifest_doc_evidence();
|
|
5158
|
+
init_merge_edges();
|
|
5159
|
+
init_parse_map_edges();
|
|
5160
|
+
init_apply_mapping();
|
|
5161
|
+
init_resolve_mapping();
|
|
5162
|
+
init_prompt_loader();
|
|
5163
|
+
init_composition_cache_key();
|
|
5164
|
+
init_resolve_composition_sources();
|
|
5165
|
+
init_build_component_graph2();
|
|
5166
|
+
init_find_slot_cycles2();
|
|
5167
|
+
init_group_nodes_by_cycle_membership2();
|
|
5168
|
+
init_expand_seeds_to_include_cycle_groups2();
|
|
5169
|
+
init_select_descendants_respecting_cycles2();
|
|
5170
|
+
init_reject_ancestors_respecting_cycles2();
|
|
5171
|
+
init_select_all_descendants2();
|
|
5172
|
+
init_reject_all_ancestors2();
|
|
5173
|
+
init_expand_matches_by_one_hop2();
|
|
5174
|
+
init_find_all_parents2();
|
|
5175
|
+
init_propagate_descendant_issues_to_ancestors2();
|
|
5176
|
+
init_find_worst_issued_descendant2();
|
|
5177
|
+
init_suggest_cycle_break_edge();
|
|
5178
|
+
init_format_cycle_path();
|
|
5179
|
+
init_format_cycle_path_segments();
|
|
5180
|
+
init_select_components_endpoint();
|
|
5181
|
+
init_load_and_validate_for_review();
|
|
5182
|
+
init_merge_preview_validation_errors_into_review_session();
|
|
5183
|
+
init_merge_preview_validation_errors_into_review_session();
|
|
5184
|
+
init_reject_components_by_name();
|
|
5185
|
+
init_src();
|
|
5186
|
+
init_generate_cdf_components_endpoint();
|
|
5187
|
+
init_apply_components_endpoint();
|
|
5188
|
+
init_has_breaking_changes();
|
|
5189
|
+
init_token_utils();
|
|
5190
|
+
init_is_empty_preview();
|
|
5191
|
+
init_contentful_urls();
|
|
5192
|
+
init_api_error();
|
|
5193
|
+
init_api_client();
|
|
5194
|
+
init_api_client();
|
|
5195
|
+
init_parse_preview_errors();
|
|
5196
|
+
init_host_utils2();
|
|
5197
|
+
init_detect_slot_cycles2();
|
|
5198
|
+
init_assert_no_slot_cycles();
|
|
5199
|
+
init_assert_no_unresolved_slot_references();
|
|
5200
|
+
init_format_slot_cycle_report2();
|
|
5201
|
+
init_format_unresolved_slot_references2();
|
|
5202
|
+
init_mutate_cdf_component();
|
|
5203
|
+
init_mutate_dot_path();
|
|
5204
|
+
init_warn_on_unknown_patch_components2();
|
|
5205
|
+
init_annotate_preview2();
|
|
5206
|
+
init_annotate_preview();
|
|
5207
|
+
init_parse_edsi_error2();
|
|
5208
|
+
init_format_edsi_error2();
|
|
5209
|
+
init_format_api_error2();
|
|
5210
|
+
init_strip_lambda_log_prefix();
|
|
5211
|
+
init_read_tokens_from_path2();
|
|
5212
|
+
init_agents();
|
|
5213
|
+
init_build_contentful_management_client();
|
|
5214
|
+
init_fetch_and_persist();
|
|
5215
|
+
init_read_from_session();
|
|
5216
|
+
init_fetch_from_contentful();
|
|
5217
|
+
init_summarize_for_select();
|
|
5218
|
+
init_summarize_for_generate();
|
|
5219
|
+
init_summarize_for_map_tokens();
|
|
5220
|
+
init_resolve_token_defaults2();
|
|
5221
|
+
init_find_nearly_matching_component();
|
|
5222
|
+
init_normalize_component_for_cache();
|
|
5223
|
+
init_lookup_component_cache();
|
|
5224
|
+
init_resolve_component_cache();
|
|
5225
|
+
init_resolve_shared_inputs();
|
|
5226
|
+
init_apply_map_token_prop_calls();
|
|
5227
|
+
init_run_map_tokens();
|
|
5228
|
+
init_src();
|
|
5229
|
+
init_src();
|
|
5230
|
+
init_src();
|
|
5231
|
+
init_src();
|
|
5232
|
+
init_src();
|
|
5233
|
+
init_src();
|
|
5234
|
+
init_src();
|
|
5235
|
+
init_src();
|
|
5236
|
+
init_src();
|
|
5237
|
+
init_src();
|
|
5238
|
+
init_src();
|
|
5239
|
+
init_src();
|
|
5240
|
+
init_src();
|
|
5241
|
+
init_src();
|
|
5242
|
+
init_src();
|
|
5243
|
+
init_src();
|
|
5244
|
+
init_src();
|
|
5245
|
+
init_component();
|
|
5246
|
+
}
|
|
5247
|
+
});
|
|
5248
|
+
|
|
844
5249
|
// packages/experience-design-system-cli/src/tui/import/steps/04-credentials/logic.ts
|
|
845
5250
|
function keyAction2(input, key) {
|
|
846
5251
|
if (key.escape) return "back";
|
|
@@ -851,21 +5256,12 @@ function keyAction2(input, key) {
|
|
|
851
5256
|
function nextField(field) {
|
|
852
5257
|
return FIELDS[(FIELDS.indexOf(field) + 1) % FIELDS.length];
|
|
853
5258
|
}
|
|
854
|
-
function toConfiguredHost(host) {
|
|
855
|
-
const value = (host ?? "").trim().replace(/\/+$/, "");
|
|
856
|
-
return value === "" ? DEFAULT_HOST : value.replace(/^https:\/\//i, "");
|
|
857
|
-
}
|
|
858
|
-
function toApiHost(host) {
|
|
859
|
-
const value = host.trim().replace(/\/+$/, "");
|
|
860
|
-
if (value === "") return `https://${DEFAULT_HOST}`;
|
|
861
|
-
return /^[a-z][a-z\d+\-.]*:\/\//i.test(value) ? value : `https://${value}`;
|
|
862
|
-
}
|
|
863
5259
|
function normalize(values) {
|
|
864
5260
|
return {
|
|
865
5261
|
spaceId: values.spaceId.trim(),
|
|
866
5262
|
environmentId: values.environmentId.trim(),
|
|
867
5263
|
cmaToken: values.cmaToken.trim(),
|
|
868
|
-
host:
|
|
5264
|
+
host: toConfiguredHost2(values.host) ?? DEFAULT_CONFIGURED_HOST
|
|
869
5265
|
};
|
|
870
5266
|
}
|
|
871
5267
|
function missingField(values) {
|
|
@@ -874,12 +5270,12 @@ function missingField(values) {
|
|
|
874
5270
|
function isUnchanged(current, initial) {
|
|
875
5271
|
return FIELDS.every((field) => current[field] === initial[field]);
|
|
876
5272
|
}
|
|
877
|
-
var FIELDS
|
|
5273
|
+
var FIELDS;
|
|
878
5274
|
var init_logic4 = __esm({
|
|
879
5275
|
"packages/experience-design-system-cli/src/tui/import/steps/04-credentials/logic.ts"() {
|
|
880
5276
|
"use strict";
|
|
5277
|
+
init_src3();
|
|
881
5278
|
FIELDS = ["spaceId", "environmentId", "cmaToken", "host"];
|
|
882
|
-
DEFAULT_HOST = "api.contentful.com";
|
|
883
5279
|
}
|
|
884
5280
|
});
|
|
885
5281
|
|
|
@@ -909,65 +5305,35 @@ var init_controls4 = __esm({
|
|
|
909
5305
|
});
|
|
910
5306
|
|
|
911
5307
|
// packages/experience-design-system-cli/src/tui/import/steps/04-credentials/validate.ts
|
|
912
|
-
function headers(token) {
|
|
913
|
-
return { Authorization: `Bearer ${token}`, "X-Contentful-User-Agent": USER_AGENT };
|
|
914
|
-
}
|
|
915
|
-
function isApsDenial(body) {
|
|
916
|
-
try {
|
|
917
|
-
const id = JSON.parse(body).sys?.id;
|
|
918
|
-
return id === "NotFound" || id === "AccessDenied";
|
|
919
|
-
} catch {
|
|
920
|
-
return false;
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
function messageFrom(body) {
|
|
924
|
-
try {
|
|
925
|
-
const message = JSON.parse(body).message;
|
|
926
|
-
return typeof message === "string" && message !== "" ? message : void 0;
|
|
927
|
-
} catch {
|
|
928
|
-
return void 0;
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
5308
|
async function validateCredentials(values) {
|
|
932
|
-
const
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
}
|
|
939
|
-
if (me.status === 401) return { ok: false, error: "CMA token is invalid or revoked." };
|
|
940
|
-
if (!me.ok) return { ok: false, error: `Unexpected error validating the token (${me.status}).` };
|
|
941
|
-
let preflight;
|
|
5309
|
+
const host = toApiHost2(values.host);
|
|
5310
|
+
const client2 = new ApiClient({
|
|
5311
|
+
host,
|
|
5312
|
+
spaceId: values.spaceId,
|
|
5313
|
+
environmentId: values.environmentId,
|
|
5314
|
+
cmaToken: values.cmaToken
|
|
5315
|
+
});
|
|
942
5316
|
try {
|
|
943
|
-
|
|
944
|
-
`${base}/spaces/${values.spaceId}/environments/${values.environmentId}/design_systems/preflight`,
|
|
945
|
-
{ headers: headers(values.cmaToken) }
|
|
946
|
-
);
|
|
947
|
-
} catch {
|
|
5317
|
+
await client2.validateToken();
|
|
948
5318
|
return { ok: true };
|
|
5319
|
+
} catch (error) {
|
|
5320
|
+
return { ok: false, error: toUserError(error, host) };
|
|
949
5321
|
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
if (
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
if (preflight.status === 404) {
|
|
958
|
-
return {
|
|
959
|
-
ok: false,
|
|
960
|
-
error: `Not found. Check the space ID, environment and API host.${detail ? ` (${detail})` : ""}`
|
|
961
|
-
};
|
|
5322
|
+
}
|
|
5323
|
+
function toUserError(error, host) {
|
|
5324
|
+
if (error instanceof ApiError) {
|
|
5325
|
+
if (error.status === 404 && error.message.startsWith("preflight failed:")) {
|
|
5326
|
+
return "Not found. Check the space ID, environment and API host.";
|
|
5327
|
+
}
|
|
5328
|
+
return formatApiError2({ error });
|
|
962
5329
|
}
|
|
963
|
-
|
|
5330
|
+
if (error instanceof Error) return `Could not reach ${host}: ${error.message}`;
|
|
5331
|
+
return String(error);
|
|
964
5332
|
}
|
|
965
|
-
var
|
|
966
|
-
var init_validate = __esm({
|
|
5333
|
+
var init_validate4 = __esm({
|
|
967
5334
|
"packages/experience-design-system-cli/src/tui/import/steps/04-credentials/validate.ts"() {
|
|
968
5335
|
"use strict";
|
|
969
|
-
|
|
970
|
-
USER_AGENT = "app contentful.experience-design-system-cli";
|
|
5336
|
+
init_src3();
|
|
971
5337
|
}
|
|
972
5338
|
});
|
|
973
5339
|
|
|
@@ -980,7 +5346,7 @@ function CredentialsScreen({
|
|
|
980
5346
|
onDone,
|
|
981
5347
|
onBack,
|
|
982
5348
|
initial = {},
|
|
983
|
-
validate = validateCredentials
|
|
5349
|
+
validate: validate2 = validateCredentials
|
|
984
5350
|
}) {
|
|
985
5351
|
const initialValues = useRef(
|
|
986
5352
|
normalize({
|
|
@@ -1016,7 +5382,7 @@ function CredentialsScreen({
|
|
|
1016
5382
|
return;
|
|
1017
5383
|
}
|
|
1018
5384
|
setValidating(true);
|
|
1019
|
-
const result = await
|
|
5385
|
+
const result = await validate2(credentials);
|
|
1020
5386
|
setValidating(false);
|
|
1021
5387
|
if (result.ok) onDone({ skipped: false, credentials });
|
|
1022
5388
|
else setError(result.error);
|
|
@@ -1042,7 +5408,7 @@ function CredentialsScreen({
|
|
|
1042
5408
|
value: values[field],
|
|
1043
5409
|
focus: active === field && !validating,
|
|
1044
5410
|
mask: field === "cmaToken" ? "\u2022" : void 0,
|
|
1045
|
-
placeholder: field === "host" ?
|
|
5411
|
+
placeholder: field === "host" ? DEFAULT_CONFIGURED_HOST : void 0,
|
|
1046
5412
|
onChange: change(field),
|
|
1047
5413
|
onSubmit: () => void submit(field)
|
|
1048
5414
|
}
|
|
@@ -1069,8 +5435,9 @@ var init_screen4 = __esm({
|
|
|
1069
5435
|
"use strict";
|
|
1070
5436
|
init_home_theme();
|
|
1071
5437
|
init_controls4();
|
|
5438
|
+
init_src3();
|
|
1072
5439
|
init_logic4();
|
|
1073
|
-
|
|
5440
|
+
init_validate4();
|
|
1074
5441
|
LABELS = {
|
|
1075
5442
|
spaceId: "Space ID",
|
|
1076
5443
|
environmentId: "Environment",
|
|
@@ -1093,7 +5460,7 @@ var init_steps = __esm({
|
|
|
1093
5460
|
|
|
1094
5461
|
// packages/experience-design-system-cli/src/tui/import/spawn-v1-import.ts
|
|
1095
5462
|
import { spawn as spawn3 } from "node:child_process";
|
|
1096
|
-
function
|
|
5463
|
+
function buildArgs2(options) {
|
|
1097
5464
|
const args = ["import"];
|
|
1098
5465
|
if (options.project) {
|
|
1099
5466
|
args.push("--project", options.project);
|
|
@@ -1105,7 +5472,7 @@ function buildArgs(options) {
|
|
|
1105
5472
|
}
|
|
1106
5473
|
async function spawnV1Import(options = {}) {
|
|
1107
5474
|
const cliPath = findLegacyCliPath();
|
|
1108
|
-
const args =
|
|
5475
|
+
const args = buildArgs2(options);
|
|
1109
5476
|
return new Promise((resolvePromise) => {
|
|
1110
5477
|
const child = spawn3("node", [cliPath, ...args], {
|
|
1111
5478
|
stdio: "inherit",
|
|
@@ -1154,45 +5521,45 @@ import { randomBytes } from "node:crypto";
|
|
|
1154
5521
|
import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
|
|
1155
5522
|
import { homedir as homedir2 } from "node:os";
|
|
1156
5523
|
import { dirname as dirname2, join as join6 } from "node:path";
|
|
1157
|
-
function
|
|
5524
|
+
function configRoot2() {
|
|
1158
5525
|
return process.env["EDS_HOME"] || join6(homedir2(), ".contentful", "experience-design-system-cli");
|
|
1159
5526
|
}
|
|
1160
|
-
async function
|
|
5527
|
+
async function readSettings2() {
|
|
1161
5528
|
try {
|
|
1162
|
-
return JSON.parse(await readFile(
|
|
5529
|
+
return JSON.parse(await readFile(configFilePath2(), "utf8"));
|
|
1163
5530
|
} catch {
|
|
1164
5531
|
return {};
|
|
1165
5532
|
}
|
|
1166
5533
|
}
|
|
1167
|
-
async function
|
|
1168
|
-
const path =
|
|
5534
|
+
async function writeSettings2(settings) {
|
|
5535
|
+
const path = configFilePath2();
|
|
1169
5536
|
await mkdir(dirname2(path), { recursive: true });
|
|
1170
5537
|
const tmp = `${path}.${process.pid}.${randomBytes(4).toString("hex")}.tmp`;
|
|
1171
5538
|
await writeFile(tmp, `${JSON.stringify(settings, null, 2)}
|
|
1172
5539
|
`, { mode: 384 });
|
|
1173
5540
|
await rename(tmp, path);
|
|
1174
5541
|
}
|
|
1175
|
-
async function
|
|
1176
|
-
await
|
|
5542
|
+
async function updateSettings2(patch) {
|
|
5543
|
+
await writeSettings2({ ...await readSettings2(), ...patch });
|
|
1177
5544
|
}
|
|
1178
|
-
var
|
|
5545
|
+
var configFilePath2, runsFilePath2, debugSessionsDir2, oldConfigDir2;
|
|
1179
5546
|
var init_config = __esm({
|
|
1180
5547
|
"packages/experience-design-system-types/dist/src/config/index.js"() {
|
|
1181
5548
|
"use strict";
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
5549
|
+
configFilePath2 = () => join6(configRoot2(), "config.json");
|
|
5550
|
+
runsFilePath2 = () => join6(configRoot2(), "state", "runs.json");
|
|
5551
|
+
debugSessionsDir2 = () => join6(configRoot2(), "debug", "sessions");
|
|
5552
|
+
oldConfigDir2 = () => join6(homedir2(), ".config", "experiences");
|
|
1186
5553
|
}
|
|
1187
5554
|
});
|
|
1188
5555
|
|
|
1189
5556
|
// packages/experience-design-system-cli/src/tui/settings/debug-mode/debug-mode-store.ts
|
|
1190
5557
|
async function readDebugModeSetting() {
|
|
1191
|
-
const { debugMode } = await
|
|
5558
|
+
const { debugMode } = await readSettings2();
|
|
1192
5559
|
return { ...DEFAULT_DEBUG_MODE_SETTING, ...debugMode };
|
|
1193
5560
|
}
|
|
1194
5561
|
async function writeDebugModeSetting(setting) {
|
|
1195
|
-
await
|
|
5562
|
+
await updateSettings2({ debugMode: setting });
|
|
1196
5563
|
}
|
|
1197
5564
|
var DEFAULT_DEBUG_MODE_SETTING;
|
|
1198
5565
|
var init_debug_mode_store = __esm({
|
|
@@ -1221,9 +5588,9 @@ function datePrefix(now = /* @__PURE__ */ new Date()) {
|
|
|
1221
5588
|
function slugify(value) {
|
|
1222
5589
|
return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
1223
5590
|
}
|
|
1224
|
-
function
|
|
5591
|
+
function generateSessionId3() {
|
|
1225
5592
|
const today = datePrefix();
|
|
1226
|
-
const root =
|
|
5593
|
+
const root = debugSessionsDir2();
|
|
1227
5594
|
const existing = existsSync4(root) ? readdirSync(root) : [];
|
|
1228
5595
|
const seqPattern = new RegExp(`^${today}-session-(\\d+)$`);
|
|
1229
5596
|
const maxSeq = existing.reduce((max, entry) => {
|
|
@@ -1233,7 +5600,7 @@ function generateSessionId() {
|
|
|
1233
5600
|
return `${today}-session-${maxSeq + 1}`;
|
|
1234
5601
|
}
|
|
1235
5602
|
function sessionDebugDir() {
|
|
1236
|
-
return join7(
|
|
5603
|
+
return join7(debugSessionsDir2(), SESSION_ID);
|
|
1237
5604
|
}
|
|
1238
5605
|
function currentDebugSessionDir() {
|
|
1239
5606
|
return sessionDebugDir();
|
|
@@ -1332,7 +5699,7 @@ var init_debug_store = __esm({
|
|
|
1332
5699
|
init_config();
|
|
1333
5700
|
init_version();
|
|
1334
5701
|
init_debug_mode_store();
|
|
1335
|
-
SESSION_ID =
|
|
5702
|
+
SESSION_ID = generateSessionId3();
|
|
1336
5703
|
void isDebugModeEnabled().then((enabled) => {
|
|
1337
5704
|
if (!enabled) return void 0;
|
|
1338
5705
|
return mkdir2(sessionDebugDir(), { recursive: true });
|
|
@@ -1360,9 +5727,9 @@ async function readHelpInfo() {
|
|
|
1360
5727
|
const debugMode = await readDebugModeSetting();
|
|
1361
5728
|
return {
|
|
1362
5729
|
storage: [
|
|
1363
|
-
{ label: "Config folder", value:
|
|
1364
|
-
{ label: "Settings file", value:
|
|
1365
|
-
{ label: "Debug logs", value:
|
|
5730
|
+
{ label: "Config folder", value: configRoot2() },
|
|
5731
|
+
{ label: "Settings file", value: configFilePath2() },
|
|
5732
|
+
{ label: "Debug logs", value: debugSessionsDir2() }
|
|
1366
5733
|
],
|
|
1367
5734
|
troubleshooting: [
|
|
1368
5735
|
{ label: "CLI version", value: readPackageVersion() },
|
|
@@ -1514,8 +5881,8 @@ var init_v1_store = __esm({
|
|
|
1514
5881
|
"packages/experience-design-system-cli/src/tui/settings/utils/v1-store.ts"() {
|
|
1515
5882
|
"use strict";
|
|
1516
5883
|
init_config();
|
|
1517
|
-
readV1Store =
|
|
1518
|
-
writeV1Store =
|
|
5884
|
+
readV1Store = readSettings2;
|
|
5885
|
+
writeV1Store = writeSettings2;
|
|
1519
5886
|
}
|
|
1520
5887
|
});
|
|
1521
5888
|
|
|
@@ -2253,8 +6620,8 @@ async function readJson(path) {
|
|
|
2253
6620
|
}
|
|
2254
6621
|
async function migrateOldConfig() {
|
|
2255
6622
|
try {
|
|
2256
|
-
const oldCredentials = join9(
|
|
2257
|
-
const oldRuns = join9(
|
|
6623
|
+
const oldCredentials = join9(oldConfigDir2(), "credentials.json");
|
|
6624
|
+
const oldRuns = join9(oldConfigDir2(), "runs.json");
|
|
2258
6625
|
const oldDebugMode = join9(
|
|
2259
6626
|
findPackageRoot(import.meta.url, PACKAGE_NAME4),
|
|
2260
6627
|
".contentful",
|
|
@@ -2265,17 +6632,17 @@ async function migrateOldConfig() {
|
|
|
2265
6632
|
const debugMode = await readJson(oldDebugMode);
|
|
2266
6633
|
if (debugMode) migrated["debugMode"] = debugMode;
|
|
2267
6634
|
Object.assign(migrated, await readJson(oldCredentials));
|
|
2268
|
-
if (Object.keys(migrated).length > 0) await
|
|
6635
|
+
if (Object.keys(migrated).length > 0) await updateSettings2({ ...migrated, ...await readSettings2() });
|
|
2269
6636
|
if (existsSync5(oldRuns)) {
|
|
2270
|
-
if (!existsSync5(
|
|
2271
|
-
await mkdir3(dirname3(
|
|
2272
|
-
await rename2(oldRuns,
|
|
6637
|
+
if (!existsSync5(runsFilePath2())) {
|
|
6638
|
+
await mkdir3(dirname3(runsFilePath2()), { recursive: true });
|
|
6639
|
+
await rename2(oldRuns, runsFilePath2());
|
|
2273
6640
|
} else {
|
|
2274
6641
|
await unlink(oldRuns);
|
|
2275
6642
|
}
|
|
2276
6643
|
}
|
|
2277
6644
|
await Promise.all([oldCredentials, oldDebugMode].map((f) => unlink(f).catch(() => void 0)));
|
|
2278
|
-
await rmdir(
|
|
6645
|
+
await rmdir(oldConfigDir2()).catch(() => void 0);
|
|
2279
6646
|
} catch {
|
|
2280
6647
|
}
|
|
2281
6648
|
}
|