@wix/ditto-codegen-public 1.0.524 → 1.0.525

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 +12 -6
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -12733,12 +12733,17 @@ var require_code_edits_scope = __commonJS({
12733
12733
  exports2.CODE_EDITS_SCOPE_RULES = void 0;
12734
12734
  exports2.CODE_EDITS_SCOPE_RULES = `# Code Edits Scope Rules
12735
12735
 
12736
- When the request lists specific extensions to generate (each with a type), alongside a broader description of the feature:
12736
+ When the request lists extensions (each with a type) alongside a broader description:
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, 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.`;
12738
+ 1. **Generate exactly the listed extensions**, plus any extension a listed one cannot work without (an embedded script needs a dashboard page that calls \`embedScript()\`).
12739
+ 2. **The rest of the description is built elsewhere** (for example as native elements). Do not implement it, even if the request reads as if you should.
12740
+ 3. **What the user asked of a listed extension is part of its item**, even when the item leaves it out.
12741
+ 4. **Report only what you built**, each companion extension and why, and anything asked of a listed extension you did not do.
12742
+
12743
+ When working from an existing extension:
12744
+
12745
+ 5. **A variant starts from a copy of the original's code**, including the local files it imports; change only what is asked. Restore a look from the code that had it.
12746
+ 6. **Keep what the request does not change.** After changing sizes, spacing or structure, check the code that depends on them, such as size-based animations.`;
12742
12747
  }
12743
12748
  });
12744
12749
 
@@ -14250,7 +14255,8 @@ ${environmentIdentity}`;
14250
14255
  - Match their technical level: include code/technical detail only if their request was technical; otherwise describe the outcome in plain language (no code, file/type names, or internals).
14251
14256
  - List any manual setup the user must still do for the feature to work, as short "next steps" (e.g. installing a dependent app or enabling a dashboard setting).
14252
14257
  - Be honest: if you didn't fully build what was asked (e.g. stored data but didn't send it), say so. Keep it short.`;
14253
- exports2.OUTCOME_MESSAGE_RULES = `- Lead with whether the request succeeded or failed and what changed (e.g. "Added\u2026", "Removed\u2026"). Never report validation, build, or type-check status as the outcome, and re-state the outcome in your last message even if you already said it earlier.`;
14258
+ exports2.OUTCOME_MESSAGE_RULES = `- Lead with whether the request succeeded or failed and what changed (e.g. "Added\u2026", "Removed\u2026"). Never report validation, build, or type-check status as the outcome, and re-state the outcome in your last message even if you already said it earlier.
14259
+ - You cannot see how the result renders: never say a look is restored or visible, say to check it on the page. If you changed a component's default props, say that copies already on the page keep their current values.`;
14254
14260
  function buildFileOperationsRules(multiEditContextClause) {
14255
14261
  return `- Package dependencies \u2014 \`npm install <pkg>\` any package not already in \`package.json\` BEFORE the first \`validate\` (do NOT wait for \`TS2307\`); install all needed packages in ONE command, except heavy ones: the sandbox has a memory limit and an install that exceeds it kills the machine and loses the whole run, so install those in several smaller commands. Do NOT hand-edit \`package.json\` for deps unless npm cannot be used. Never pass \`--package-lock=false\`.
14256
14262
  - File operations \u2014 pick the BATCH tool whenever you have 2+ files; the single-file variants are 5\u201310\xD7 slower:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.524",
3
+ "version": "1.0.525",
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": "740ca433024442d00934d2bf5fe37531452dba3d9a06b4d155166ed6"
32
+ "falconPackageHash": "c3255a6a16e7c07e357747f2576fb29446de2f8518743c9495c19db8"
33
33
  }