@getcoherent/cli 0.6.16 → 0.6.17
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.
|
@@ -985,8 +985,10 @@ ${selectImport}`
|
|
|
985
985
|
newImport.split(",").map((s) => s.trim()).filter(Boolean)
|
|
986
986
|
)
|
|
987
987
|
];
|
|
988
|
-
const
|
|
989
|
-
|
|
988
|
+
const currentLucideImport = fixed.match(/import\s*\{([^}]+)\}\s*from\s*["']lucide-react["']/);
|
|
989
|
+
if (currentLucideImport) {
|
|
990
|
+
fixed = fixed.replace(currentLucideImport[0], `import { ${importedNames.join(", ")} } from "lucide-react"`);
|
|
991
|
+
}
|
|
990
992
|
}
|
|
991
993
|
}
|
|
992
994
|
}
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
formatIssues,
|
|
8
8
|
validatePageQuality,
|
|
9
9
|
verifyIncrementalEdit
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GIP36DZD.js";
|
|
11
11
|
import {
|
|
12
12
|
generateArchitecturePlan,
|
|
13
13
|
getPageGroup,
|
|
@@ -8472,7 +8472,7 @@ async function chatCommand(message, options) {
|
|
|
8472
8472
|
spinner.start(`Creating shared component: ${componentName}...`);
|
|
8473
8473
|
const { createAIProvider: createAIProvider2 } = await import("./ai-provider-CGSIYFZT.js");
|
|
8474
8474
|
const { generateSharedComponent: generateSharedComponent7 } = await import("@getcoherent/core");
|
|
8475
|
-
const { autoFixCode: autoFixCode2 } = await import("./quality-validator-
|
|
8475
|
+
const { autoFixCode: autoFixCode2 } = await import("./quality-validator-MMAZYG6O.js");
|
|
8476
8476
|
const { extractPropsInterface, extractDependencies } = await import("./component-extractor-VYJLT5NR.js");
|
|
8477
8477
|
const aiProvider = await createAIProvider2(provider ?? "auto");
|
|
8478
8478
|
const prompt = `Generate a React component called "${componentName}". Description: ${message}.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.6.
|
|
6
|
+
"version": "0.6.17",
|
|
7
7
|
"description": "CLI interface for Coherent Design Method",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "./dist/index.js",
|
|
@@ -54,6 +54,8 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/node": "^20.11.0",
|
|
56
56
|
"@types/prompts": "^2.4.9",
|
|
57
|
+
"lucide-react": "^1.0.1",
|
|
58
|
+
"react": "^19.2.4",
|
|
57
59
|
"tsup": "^8.0.1",
|
|
58
60
|
"typescript": "^5.3.3"
|
|
59
61
|
}
|