@wix/ditto-codegen-public 1.0.223 → 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.
Files changed (2) hide show
  1. package/dist/out.js +13 -11
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -105428,7 +105428,7 @@ var require_BuildFixerAgent = __commonJS({
105428
105428
  WORKFLOW:
105429
105429
  1. Analyze the build output to identify the error type and files involved
105430
105430
  2. Read the relevant file(s) to understand the context
105431
- 3. Only AFTER reading, decide what to fix and submit
105431
+ 3. ALWAYS call submit_fix with your fix - this is REQUIRED
105432
105432
 
105433
105433
  EXTENSION-VALIDATOR ERRORS (most common):
105434
105434
  Format: "[field] message (... → ./path/source.ts)"
@@ -105443,12 +105443,12 @@ OTHER BUILD ERRORS:
105443
105443
  - Read the file mentioned in the error
105444
105444
  - Use the error message and file content to determine the fix
105445
105445
 
105446
- IMPORTANT:
105447
- - ALWAYS read files FIRST before submitting a fix
105448
- - Read only the files you NEED - typically just 1-2 files
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
105449
105450
  - Make minimal changes - only fix what's broken
105450
- - Preserve code style and formatting
105451
- - Be efficient - submit the fix quickly after reading`;
105451
+ - Preserve code style and formatting`;
105452
105452
  }
105453
105453
  formatPreviousBuildOutput(previousBuildOutput) {
105454
105454
  if (!previousBuildOutput) {
@@ -105474,11 +105474,11 @@ IMPORTANT:
105474
105474
  2. Read the relevant file(s) first to understand the context
105475
105475
  3. After reading, submit the fix for the file that needs changing
105476
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
+ });
105477
105481
  try {
105478
- console.log(`\u{1F527} BuildFixerAgent starting with tools...`);
105479
- const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5, {
105480
- agentName: this.name
105481
- });
105482
105482
  const result = await (0, codegen_common_logic_1.generateAgentText)({
105483
105483
  agentName: this.name,
105484
105484
  model,
@@ -105492,7 +105492,9 @@ IMPORTANT:
105492
105492
  });
105493
105493
  const fixResult = (0, codegen_common_logic_1.extractToolResult)(result.toolCalls, SUBMIT_FIX_TOOL_NAME);
105494
105494
  if (!fixResult) {
105495
- throw new Error("BuildFixerAgent did not submit a fix");
105495
+ throw new ditto_codegen_types_12.AutoFixError("BuildFixerAgent did not submit a fix", {
105496
+ validationType: ditto_codegen_types_12.ValidationType.BUILD
105497
+ });
105496
105498
  }
105497
105499
  console.log(`\u{1F527} BuildFixerAgent fix submitted for: ${fixResult.filePath}`);
105498
105500
  return fixResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.223",
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": "b4a09affaa1c6925b5e726fbc1140c778b980df29e8e7cb10648460f"
27
+ "falconPackageHash": "1e549b1ddd90b38c0b686c3a88c0f58f61962e63b35e56bed65d29d0"
28
28
  }