@wix/ditto-codegen-public 1.0.222 → 1.0.224
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 +18 -11
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -7662,6 +7662,11 @@ var require_CodeGenService = __commonJS({
|
|
|
7662
7662
|
}));
|
|
7663
7663
|
};
|
|
7664
7664
|
this.updateJobStatus = async (jobId, status) => {
|
|
7665
|
+
console.log("Updating job status", {
|
|
7666
|
+
jobId,
|
|
7667
|
+
status,
|
|
7668
|
+
ambassadorStatus: this.toAmbassadorStatus(status)
|
|
7669
|
+
});
|
|
7665
7670
|
await this.httpClient.request((0, http_1.updateJob)({
|
|
7666
7671
|
projectId: this.projectId,
|
|
7667
7672
|
job: {
|
|
@@ -105423,7 +105428,7 @@ var require_BuildFixerAgent = __commonJS({
|
|
|
105423
105428
|
WORKFLOW:
|
|
105424
105429
|
1. Analyze the build output to identify the error type and files involved
|
|
105425
105430
|
2. Read the relevant file(s) to understand the context
|
|
105426
|
-
3.
|
|
105431
|
+
3. ALWAYS call submit_fix with your fix - this is REQUIRED
|
|
105427
105432
|
|
|
105428
105433
|
EXTENSION-VALIDATOR ERRORS (most common):
|
|
105429
105434
|
Format: "[field] message (... → ./path/source.ts)"
|
|
@@ -105438,12 +105443,12 @@ OTHER BUILD ERRORS:
|
|
|
105438
105443
|
- Read the file mentioned in the error
|
|
105439
105444
|
- Use the error message and file content to determine the fix
|
|
105440
105445
|
|
|
105441
|
-
|
|
105442
|
-
-
|
|
105443
|
-
- Read
|
|
105446
|
+
CRITICAL RULES:
|
|
105447
|
+
- You MUST call submit_fix at the end - never respond with just text
|
|
105448
|
+
- Read files FIRST, then submit the fix
|
|
105449
|
+
- Read only 1-2 files maximum
|
|
105444
105450
|
- Make minimal changes - only fix what's broken
|
|
105445
|
-
- Preserve code style and formatting
|
|
105446
|
-
- Be efficient - submit the fix quickly after reading`;
|
|
105451
|
+
- Preserve code style and formatting`;
|
|
105447
105452
|
}
|
|
105448
105453
|
formatPreviousBuildOutput(previousBuildOutput) {
|
|
105449
105454
|
if (!previousBuildOutput) {
|
|
@@ -105469,11 +105474,11 @@ IMPORTANT:
|
|
|
105469
105474
|
2. Read the relevant file(s) first to understand the context
|
|
105470
105475
|
3. After reading, submit the fix for the file that needs changing
|
|
105471
105476
|
`;
|
|
105477
|
+
console.log(`\u{1F527} BuildFixerAgent starting with tools...`);
|
|
105478
|
+
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5, {
|
|
105479
|
+
agentName: this.name
|
|
105480
|
+
});
|
|
105472
105481
|
try {
|
|
105473
|
-
console.log(`\u{1F527} BuildFixerAgent starting with tools...`);
|
|
105474
|
-
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5, {
|
|
105475
|
-
agentName: this.name
|
|
105476
|
-
});
|
|
105477
105482
|
const result = await (0, codegen_common_logic_1.generateAgentText)({
|
|
105478
105483
|
agentName: this.name,
|
|
105479
105484
|
model,
|
|
@@ -105487,7 +105492,9 @@ IMPORTANT:
|
|
|
105487
105492
|
});
|
|
105488
105493
|
const fixResult = (0, codegen_common_logic_1.extractToolResult)(result.toolCalls, SUBMIT_FIX_TOOL_NAME);
|
|
105489
105494
|
if (!fixResult) {
|
|
105490
|
-
throw new
|
|
105495
|
+
throw new ditto_codegen_types_12.AutoFixError("BuildFixerAgent did not submit a fix", {
|
|
105496
|
+
validationType: ditto_codegen_types_12.ValidationType.BUILD
|
|
105497
|
+
});
|
|
105491
105498
|
}
|
|
105492
105499
|
console.log(`\u{1F527} BuildFixerAgent fix submitted for: ${fixResult.filePath}`);
|
|
105493
105500
|
return fixResult;
|
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.224",
|
|
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": "1e549b1ddd90b38c0b686c3a88c0f58f61962e63b35e56bed65d29d0"
|
|
28
28
|
}
|