@wix/ditto-codegen-public 1.0.167 → 1.0.168
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 +7 -7
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -111496,8 +111496,8 @@ var require_customAnthropicProvider = __commonJS({
|
|
|
111496
111496
|
"use strict";
|
|
111497
111497
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
111498
111498
|
exports2.CustomLanguageModelText = exports2.CustomLanguageModelObject = void 0;
|
|
111499
|
-
exports2.
|
|
111500
|
-
exports2.
|
|
111499
|
+
exports2.createCustomObjectModel = createCustomObjectModel;
|
|
111500
|
+
exports2.createCustomTextModel = createCustomTextModel;
|
|
111501
111501
|
var CustomLanguageModelObject_1 = require_CustomLanguageModelObject();
|
|
111502
111502
|
var CustomLanguageModelText_1 = require_CustomLanguageModelText();
|
|
111503
111503
|
var CustomLanguageModelObject_2 = require_CustomLanguageModelObject();
|
|
@@ -111508,13 +111508,13 @@ var require_customAnthropicProvider = __commonJS({
|
|
|
111508
111508
|
Object.defineProperty(exports2, "CustomLanguageModelText", { enumerable: true, get: function() {
|
|
111509
111509
|
return CustomLanguageModelText_2.CustomLanguageModelText;
|
|
111510
111510
|
} });
|
|
111511
|
-
function
|
|
111511
|
+
function createCustomObjectModel() {
|
|
111512
111512
|
const provider = (modelId, settings) => new CustomLanguageModelObject_1.CustomLanguageModelObject(modelId, settings);
|
|
111513
111513
|
provider.providerId = "custom-object-provider";
|
|
111514
111514
|
provider.languageModel = provider;
|
|
111515
111515
|
return provider;
|
|
111516
111516
|
}
|
|
111517
|
-
function
|
|
111517
|
+
function createCustomTextModel() {
|
|
111518
111518
|
const provider = (modelId, settings) => new CustomLanguageModelText_1.CustomLanguageModelText(modelId, settings);
|
|
111519
111519
|
provider.providerId = "custom-text-provider";
|
|
111520
111520
|
provider.languageModel = provider;
|
|
@@ -111854,7 +111854,7 @@ var require_CodegenAIProxyService = __commonJS({
|
|
|
111854
111854
|
return aiGenerationResponse;
|
|
111855
111855
|
};
|
|
111856
111856
|
this.generateCodegenObject = async (payload) => {
|
|
111857
|
-
const custom = (0, customAnthropicProvider_1.
|
|
111857
|
+
const custom = (0, customAnthropicProvider_1.createCustomObjectModel)();
|
|
111858
111858
|
const model = custom(payload.model, { agentName: payload.agentName });
|
|
111859
111859
|
const response = await (0, ai_1.generateObject)({
|
|
111860
111860
|
model,
|
|
@@ -143876,7 +143876,7 @@ ${(0, extensionFormatters_1.formatScannedExtensions)(extensions, outputPath)}`);
|
|
|
143876
143876
|
async generate({ outputPath, extensions, chatHistory, currentUserRequest, previousResources }) {
|
|
143877
143877
|
const srcStructure = this.generateSrcFolderStructure(outputPath);
|
|
143878
143878
|
try {
|
|
143879
|
-
const model = (0, customAnthropicProvider_1.
|
|
143879
|
+
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_3_5_HAIKU_LATEST, {
|
|
143880
143880
|
agentName: this.name
|
|
143881
143881
|
});
|
|
143882
143882
|
const userContent = this.buildUserPrompt({
|
|
@@ -144125,7 +144125,7 @@ var require_SDKPickerAgent = __commonJS({
|
|
|
144125
144125
|
const userMessage = this.buildUserPrompt({ iterationPlan, outputPath });
|
|
144126
144126
|
const systemPrompt = this.buildSystemPrompt({ apiDocsStructure });
|
|
144127
144127
|
try {
|
|
144128
|
-
const model = (0, customAnthropicProvider_1.
|
|
144128
|
+
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_3_5_HAIKU_LATEST, {
|
|
144129
144129
|
agentName: this.name
|
|
144130
144130
|
});
|
|
144131
144131
|
const result = await (0, ai_1.generateText)({
|
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.168",
|
|
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": "5ae3d5626fa246fabbcb4e515fb3e8a1ace523086d84e6afc0d0b7ce"
|
|
28
28
|
}
|