@wix/ditto-codegen-public 1.0.487 → 1.0.488
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 +27 -4
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -15433,6 +15433,16 @@ var require_config = __commonJS({
|
|
|
15433
15433
|
function usesOpenAiProvider() {
|
|
15434
15434
|
return (0, model_knobs_1.isOpenAiModel)((0, model_knobs_1.getModel)()) || (0, model_knobs_1.isOpenAiModel)((0, model_knobs_1.getSmallModel)());
|
|
15435
15435
|
}
|
|
15436
|
+
function getModelStubs(provider) {
|
|
15437
|
+
const prefix = `${provider}/`;
|
|
15438
|
+
const stubs = {};
|
|
15439
|
+
for (const model of [(0, model_knobs_1.getModel)(), (0, model_knobs_1.getSmallModel)()]) {
|
|
15440
|
+
if (model.startsWith(prefix)) {
|
|
15441
|
+
stubs[model.slice(prefix.length)] = {};
|
|
15442
|
+
}
|
|
15443
|
+
}
|
|
15444
|
+
return stubs;
|
|
15445
|
+
}
|
|
15436
15446
|
function usesGoogleProvider() {
|
|
15437
15447
|
return (0, model_knobs_1.isGoogleModel)((0, model_knobs_1.getModel)()) || (0, model_knobs_1.isGoogleModel)((0, model_knobs_1.getSmallModel)());
|
|
15438
15448
|
}
|
|
@@ -15474,6 +15484,7 @@ var require_config = __commonJS({
|
|
|
15474
15484
|
// authorize the project.
|
|
15475
15485
|
...currentAccessToken ? { Authorization: `Bearer ${currentAccessToken}` } : {}
|
|
15476
15486
|
};
|
|
15487
|
+
const anthropicModels = getModelStubs("anthropic");
|
|
15477
15488
|
const provider = {
|
|
15478
15489
|
anthropic: {
|
|
15479
15490
|
options: {
|
|
@@ -15481,7 +15492,8 @@ var require_config = __commonJS({
|
|
|
15481
15492
|
cacheControl: true,
|
|
15482
15493
|
headers,
|
|
15483
15494
|
chunkTimeout: exports2.PROVIDER_CHUNK_TIMEOUT_MS
|
|
15484
|
-
}
|
|
15495
|
+
},
|
|
15496
|
+
...Object.keys(anthropicModels).length > 0 ? { models: anthropicModels } : {}
|
|
15485
15497
|
}
|
|
15486
15498
|
};
|
|
15487
15499
|
if (usesOpenAiProvider()) {
|
|
@@ -15494,7 +15506,8 @@ var require_config = __commonJS({
|
|
|
15494
15506
|
baseURL: getOpenAiBaseUrl(projectId),
|
|
15495
15507
|
headers,
|
|
15496
15508
|
chunkTimeout: exports2.PROVIDER_CHUNK_TIMEOUT_MS
|
|
15497
|
-
}
|
|
15509
|
+
},
|
|
15510
|
+
models: getModelStubs("openai")
|
|
15498
15511
|
};
|
|
15499
15512
|
}
|
|
15500
15513
|
if (usesGoogleProvider()) {
|
|
@@ -15517,7 +15530,8 @@ var require_config = __commonJS({
|
|
|
15517
15530
|
"gemini-3.1-flash-lite": {},
|
|
15518
15531
|
"gemini-2.5-pro": {},
|
|
15519
15532
|
"gemini-2.5-flash": {},
|
|
15520
|
-
"gemini-2.5-flash-lite": {}
|
|
15533
|
+
"gemini-2.5-flash-lite": {},
|
|
15534
|
+
...getModelStubs("google")
|
|
15521
15535
|
}
|
|
15522
15536
|
};
|
|
15523
15537
|
}
|
|
@@ -17838,7 +17852,16 @@ var require_executor = __commonJS({
|
|
|
17838
17852
|
}
|
|
17839
17853
|
function buildArgs(prompt, continueSession) {
|
|
17840
17854
|
const sessionArgs = continueSession ? ["--continue"] : [];
|
|
17841
|
-
return [
|
|
17855
|
+
return [
|
|
17856
|
+
"run",
|
|
17857
|
+
...sessionArgs,
|
|
17858
|
+
"--print-logs",
|
|
17859
|
+
"--log-level",
|
|
17860
|
+
"ERROR",
|
|
17861
|
+
"--format",
|
|
17862
|
+
"json",
|
|
17863
|
+
prompt
|
|
17864
|
+
];
|
|
17842
17865
|
}
|
|
17843
17866
|
async function executeOpenCodeOnce(options, attempt, maxAttempts, toolUsage) {
|
|
17844
17867
|
const { prompt, outputPath, projectId, onStdout, onStderr, continueSession = false } = options;
|
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.488",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"esbuild": "^0.27.2",
|
|
30
30
|
"vitest": "^4.0.16"
|
|
31
31
|
},
|
|
32
|
-
"falconPackageHash": "
|
|
32
|
+
"falconPackageHash": "c37b983430cb070a2e2715a56d16e90b778a276e1ff7416661982b2b"
|
|
33
33
|
}
|