@wix/ditto-codegen-public 1.0.205 → 1.0.207
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 +15 -7
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -97663,8 +97663,8 @@ var require_SDKPickerAgent = __commonJS({
|
|
|
97663
97663
|
if (validIds.length === 0) {
|
|
97664
97664
|
return { extensions: [] };
|
|
97665
97665
|
}
|
|
97666
|
-
await this.mcpClient.connect();
|
|
97667
97666
|
try {
|
|
97667
|
+
await this.mcpClient.connect();
|
|
97668
97668
|
const tools = (0, tools_1.createSDKPickerTools)({
|
|
97669
97669
|
mcpClient: this.mcpClient,
|
|
97670
97670
|
validIds
|
|
@@ -97900,12 +97900,20 @@ ${iterationPlan.summary}
|
|
|
97900
97900
|
const extensionDocumentation = this.getExtensionTypeDocumentation(iterationPlan);
|
|
97901
97901
|
const userPrompt = this.buildUserPrompt({ iterationPlan, outputPath });
|
|
97902
97902
|
const agent = new ditto_sdk_picker_1.SDKPickerAgent(model);
|
|
97903
|
-
|
|
97904
|
-
|
|
97905
|
-
|
|
97906
|
-
|
|
97907
|
-
|
|
97908
|
-
|
|
97903
|
+
try {
|
|
97904
|
+
const apiResult = await agent.generate({
|
|
97905
|
+
validIds,
|
|
97906
|
+
extensionDocumentation,
|
|
97907
|
+
userPrompt
|
|
97908
|
+
});
|
|
97909
|
+
return apiResult;
|
|
97910
|
+
} catch (error) {
|
|
97911
|
+
console.error("SDKPickerAgent failed, continuing without SDK enrichment:", JSON.stringify(error, null, 2));
|
|
97912
|
+
const extensionsWithoutApis = {
|
|
97913
|
+
extensions: validIds.map((id) => ({ id }))
|
|
97914
|
+
};
|
|
97915
|
+
return extensionsWithoutApis;
|
|
97916
|
+
}
|
|
97909
97917
|
}
|
|
97910
97918
|
};
|
|
97911
97919
|
exports2.SDKPickerAgent = SDKPickerAgent;
|
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.207",
|
|
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.27.2"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "2da9fd56057ef4b1d37cecb7f581ab8470286fe208b115162cb45c02"
|
|
28
28
|
}
|