@wix/ditto-codegen-public 1.0.492 → 1.0.494

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 +9 -4
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -12735,9 +12735,10 @@ var require_code_edits_scope = __commonJS({
12735
12735
 
12736
12736
  When the request lists specific extensions to generate (each with a type), alongside a broader description of the feature:
12737
12737
 
12738
- 1. **The list is the complete scope.** Generate exactly the listed extensions, of the stated types, each covering only what its item describes. Do not add extensions or behavior that no item asks for.
12739
- 2. **The broader description is background, not a task.** The parts of it that no item covers are built elsewhere in the flow (for example as native elements on the page). Do not implement them, even when the request reads as if your extensions should deliver the whole feature.
12740
- 3. **Report only what you built.** The final message describes the listed items, not the feature as a whole.`;
12738
+ 1. **The list is the complete scope.** Generate exactly the listed extensions, of the stated types, each covering only what its item describes. Do not add extensions or behavior that no item asks for, other than what rule 2 requires.
12739
+ 2. **Also generate any extension a listed one cannot work without.** If a listed extension does nothing until another extension exists, generate that one too, even though no item lists it. For example, an embedded script must be paired with a dashboard page that calls \`embedScript()\`.
12740
+ 3. **The broader description is background, not a task.** The parts of it that no item covers are built elsewhere in the flow (for example as native elements on the page). Do not implement them, even when the request reads as if your extensions should deliver the whole feature.
12741
+ 4. **Report only what you built.** The final message describes the listed items, not the feature as a whole. State each companion extension you added under rule 2 and that it was added because the listed one needs it.`;
12741
12742
  }
12742
12743
  });
12743
12744
 
@@ -14717,10 +14718,14 @@ ${validation.step}
14717
14718
  9. **Stop**: STOP immediately. Do NOT refactor, clean up, or verify.
14718
14719
 
14719
14720
  FILE CREATION:
14720
- - NEVER rewrite the same file twice. Once written, move on.
14721
+ - NEVER rewrite the same file twice. Once written, move on. Exception: see PORTING ATTACHED CODE.
14721
14722
  - Keep each file under 200 lines. Split into types.ts, utils.ts if needed.
14722
14723
  - Do NOT output comments in code unless they explain non-obvious logic.
14723
14724
 
14725
+ PORTING ATTACHED CODE:
14726
+ Only when \`.wix/agentInput/userAttachments.json\` exists and the request builds the code from the files it lists.
14727
+ - You may change a file you copied or wrote earlier in this run to turn the user's code into what the skill describes (e.g. move markup, content, colors and fonts out of a copied script into JSX, props and CSS). Use targeted \`edit\`/\`multi-edit\`/\`apply_patch\` hunks only: never \`write\`/\`batch-write\` the same path again, and don't read back files you wrote.
14728
+
14724
14729
  GENERATED FILES:
14725
14730
  - \`src/extensions/site/components/**/*.generated.ts\` is an auto-generated editor-react-component manifest \u2014 NEVER hand-edit. Change a manifest VALUE in the component's \`*.extension.ts\`; change anything else in the \`*.tsx\` / \`*.module.css\` / \`*.props.ts\` source. \`validate({ runBuild: true })\` regenerates the manifest when editor components exist. No other \`.generated.ts\` path is affected.
14726
14731
  - A write guard rejects \`write\`/\`edit\`/\`batch-write\`/\`multi-edit\`/\`apply_patch\` there, dropping the ENTIRE call \u2014 never batch that path with real edits (or put it in a patch alongside other hunks), or those are lost too and must be resubmitted.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.492",
3
+ "version": "1.0.494",
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": "2af551fe25ec6f9cf9f40e58d6be2436e7f01c0f383bd854d1160092"
32
+ "falconPackageHash": "4dbfd9ea01bc1439fce7839039a26404c89b6a9968e99a3001f2b050"
33
33
  }