@wix/ditto-codegen-public 1.0.164 → 1.0.165
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/out.js +2 -6
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -139625,9 +139625,7 @@ var require_wdsPackage = __commonJS({
|
|
|
139625
139625
|
})();
|
|
139626
139626
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
139627
139627
|
exports2.buildWdsSystemPrompt = buildWdsSystemPrompt;
|
|
139628
|
-
var
|
|
139629
|
-
var path2 = __importStar2(require("path"));
|
|
139630
|
-
require_wds_storybook();
|
|
139628
|
+
var wdsJson = __importStar2(require_wds_storybook());
|
|
139631
139629
|
function formatComponentAsPromptBlock(component) {
|
|
139632
139630
|
const componentDescription = component?.content?.description;
|
|
139633
139631
|
const features = component?.content?.featureExamples?.map((feature) => ` - ${feature.title}: ${feature.description}`).join("\n");
|
|
@@ -139643,9 +139641,7 @@ ${componentDescription}
|
|
|
139643
139641
|
</component>`;
|
|
139644
139642
|
}
|
|
139645
139643
|
async function buildWdsSystemPrompt(allowedComponents) {
|
|
139646
|
-
const
|
|
139647
|
-
const storybookData = fs4.readFileSync(storybookJsonPath, "utf-8");
|
|
139648
|
-
const parsedData = JSON.parse(storybookData);
|
|
139644
|
+
const parsedData = wdsJson;
|
|
139649
139645
|
const relevantComponents = (parsedData.items || []).filter((component) => allowedComponents.has(component.storyName));
|
|
139650
139646
|
if (!relevantComponents.length) {
|
|
139651
139647
|
return "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.165",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@wix/ditto-codegen": "1.0.0",
|
|
25
25
|
"esbuild": "^0.25.9"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "0b13a4cd183dcf4fcac15d021bc0c4ff6e6dbc4052a27bf1b9d2c706"
|
|
28
28
|
}
|