@contentful/experience-design-system-cli 2.35.1-dev-build-e1cfef52.0 → 2.35.1-dev-build-a91cc5b7.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/package.json +1 -1
- package/legacy/dist/src/index.js +10 -5
- package/legacy/package.json +1 -1
- package/package.json +5 -5
package/dist/package.json
CHANGED
package/legacy/dist/src/index.js
CHANGED
|
@@ -9583,8 +9583,11 @@ var init_debug_logger = __esm({
|
|
|
9583
9583
|
|
|
9584
9584
|
// packages/experience-design-system-cli-legacy/src/lib/prop-bucket-debug.ts
|
|
9585
9585
|
function logPropBuckets(stage, assignments) {
|
|
9586
|
-
|
|
9587
|
-
|
|
9586
|
+
const logger = getDebugLogger();
|
|
9587
|
+
if (logger.enabled) {
|
|
9588
|
+
for (const assignment of assignments) {
|
|
9589
|
+
logger.event("analyze", `prop-buckets.${stage}`, { ...assignment });
|
|
9590
|
+
}
|
|
9588
9591
|
}
|
|
9589
9592
|
return JSON.stringify(assignments.length === 1 && stage === "generate" ? assignments[0] : assignments);
|
|
9590
9593
|
}
|
|
@@ -10559,7 +10562,6 @@ function applyDbMigrations(db) {
|
|
|
10559
10562
|
}
|
|
10560
10563
|
if (!rawPropColNames.has("dom_attribute")) {
|
|
10561
10564
|
db.exec("ALTER TABLE raw_props ADD COLUMN dom_attribute INTEGER CHECK (dom_attribute IN (0, 1))");
|
|
10562
|
-
rawPropColNames.add("dom_attribute");
|
|
10563
10565
|
}
|
|
10564
10566
|
const rawPropsDdl = db.prepare(`SELECT sql FROM sqlite_master WHERE type = 'table' AND name = 'raw_props'`).get();
|
|
10565
10567
|
if (rawPropsDdl && !rawPropsDdl.sql.includes(`'unattached'`)) {
|
|
@@ -12748,6 +12750,9 @@ function printFallbackInstructions(options) {
|
|
|
12748
12750
|
lines.push(` Re-run the generate command with the agent available, or use --dry-run to inspect the prompt.`);
|
|
12749
12751
|
process.stderr.write(lines.join("\n") + "\n");
|
|
12750
12752
|
}
|
|
12753
|
+
function generatePropBuckets(component) {
|
|
12754
|
+
return logPropBuckets("generate", [bucketComponentProps(component)]);
|
|
12755
|
+
}
|
|
12751
12756
|
async function showGenerateView(result) {
|
|
12752
12757
|
if (process.stdout.isTTY) {
|
|
12753
12758
|
const { waitUntilExit } = renderWithGoodbye(
|
|
@@ -12829,7 +12834,7 @@ async function runOneComponent(options, component, index, total) {
|
|
|
12829
12834
|
skill: "components",
|
|
12830
12835
|
mode: "autonomous",
|
|
12831
12836
|
rawComponentsInline,
|
|
12832
|
-
propBucketsInline:
|
|
12837
|
+
propBucketsInline: generatePropBuckets(component),
|
|
12833
12838
|
tokensInline,
|
|
12834
12839
|
tokenMapInline,
|
|
12835
12840
|
outDir: process.cwd(),
|
|
@@ -13087,7 +13092,7 @@ async function runGenerateSkill(skill, opts, verbose = false) {
|
|
|
13087
13092
|
skill,
|
|
13088
13093
|
mode: "autonomous",
|
|
13089
13094
|
rawComponentsInline: sampleInline ?? rawTokensInline,
|
|
13090
|
-
propBucketsInline: sampleComponent ?
|
|
13095
|
+
propBucketsInline: sampleComponent ? generatePropBuckets(sampleComponent) : void 0,
|
|
13091
13096
|
rawTokensInline: skill === "tokens" ? rawTokensInline : void 0,
|
|
13092
13097
|
rawTokensFilename: opts.rawTokens ? resolve11(opts.rawTokens).split("/").pop() : void 0,
|
|
13093
13098
|
tokensInline,
|
package/legacy/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experience-design-system-cli",
|
|
3
|
-
"version": "2.35.1-dev-build-
|
|
3
|
+
"version": "2.35.1-dev-build-a91cc5b7.0",
|
|
4
4
|
"description": "Contentful Experiences design system import CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"svelte": "^5.56.4",
|
|
43
43
|
"ts-morph": "^27.0.2",
|
|
44
44
|
"typescript": "^5.9.3",
|
|
45
|
-
"@contentful/experience-design-system-types": "2.35.1-dev-build-
|
|
45
|
+
"@contentful/experience-design-system-types": "2.35.1-dev-build-a91cc5b7.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@tsconfig/node24": "^24.0.4",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
"ink-testing-library": "^4.0.0",
|
|
56
56
|
"typescript-eslint": "^8.67.0",
|
|
57
57
|
"vitest": "^4.0.16",
|
|
58
|
-
"@contentful/experience-design-system-agents": "2.35.1-dev-build-
|
|
59
|
-
"@contentful/experience-design-system-extraction": "2.35.1-dev-build-
|
|
60
|
-
"@contentful/experience-design-system-generation": "2.35.1-dev-build-
|
|
58
|
+
"@contentful/experience-design-system-agents": "2.35.1-dev-build-a91cc5b7.0",
|
|
59
|
+
"@contentful/experience-design-system-extraction": "2.35.1-dev-build-a91cc5b7.0",
|
|
60
|
+
"@contentful/experience-design-system-generation": "2.35.1-dev-build-a91cc5b7.0"
|
|
61
61
|
},
|
|
62
62
|
"repository": {
|
|
63
63
|
"type": "git",
|