@wix/ditto-codegen-public 1.0.263 → 1.0.265

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 +22 -15
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -48556,25 +48556,28 @@ var require_codegen_prompt = __commonJS({
48556
48556
  - Handle all edge cases and error scenarios appropriately
48557
48557
 
48558
48558
  IMPORTANT INSTRUCTIONS:
48559
- 1. NEVER run preview, dev, release, or promote commands. Preview/deployment is handled separately.
48560
- 2. You MUST run \`npm install\` when you are adding new dependencies to package.json.
48561
- 3. You SHOULD run \`npx tsc --noEmit\` to check for TypeScript errors after generating code.
48562
- 4. You SHOULD run \`npm run build\` or \`wix build\` to verify the build succeeds.
48563
- 5. CRITICAL: After creating any new extension (dashboard page, widget, embedded script, etc.), you MUST update \`src/extensions.ts\` to register it. Every extension needs to be exported from this file or it won't work.
48564
- 6. UUID GENERATION: To generate UUIDs, use Node.js: \`node -e "console.log(require('crypto').randomUUID())"\`. Do NOT use \`uuidgen\` as it may not be installed.
48559
+ - NEVER run preview, dev, release, or promote commands. Preview/deployment is handled separately.
48560
+ - You MUST run \`npm install\` when you are adding new dependencies to package.json.
48561
+ - You SHOULD run \`npx tsc --noEmit\` to check for TypeScript errors after generating code.
48562
+ - You SHOULD run \`npm run build\` or \`wix build\` to verify the build succeeds.
48563
+ - CRITICAL: After creating any new extension (dashboard page, widget, embedded script, etc.), you MUST update \`src/extensions.ts\` to register it. Every extension needs to be exported from this file or it won't work.
48564
+ - UUID GENERATION: To generate UUIDs, use Node.js: \`node -e "console.log(require('crypto').randomUUID())"\`. Do NOT use \`uuidgen\` as it may not be installed.
48565
+
48566
+ TYPESCRIPT ENVIRONMENT:
48567
+ - The project extends \`astro/tsconfigs/base\` which enables \`verbatimModuleSyntax\`. Type-only imports MUST use the \`type\` keyword (e.g. \`import type { MyType } from './types';\`).
48568
+
48569
+ EFFICIENCY - AVOID UNNECESSARY FIX CYCLES:
48570
+ - Once validation (tsc + build) passes, do NOT refactor or "clean up" code. Move on immediately.
48571
+ - When fixing multiple occurrences of the same pattern, use a single edit that covers all instances instead of separate edits for each occurrence.
48565
48572
 
48566
48573
  FILE CREATION - CRITICAL RULES:
48567
- 8. NEVER rewrite the same file twice. Once a file is written successfully, move on to the next file immediately.
48568
- 9. Create files SEQUENTIALLY, one at a time. Do NOT batch multiple write tool calls in a single response - this causes protocol errors.
48569
- 10. When creating an extension with multiple files, create them one at a time in sequence. Always update src/extensions.ts last to register the new extension.
48570
- 11. After EACH successful file write, immediately proceed to write the NEXT file. Do not stop until all files are created.
48571
- 12. COMPLETION CHECK: Before running validation (tsc, build), verify ALL required files for the extension have been created and src/extensions.ts has been updated.
48574
+ - NEVER rewrite the same file twice. Once a file is written successfully, move on to the next file immediately.
48572
48575
 
48573
48576
  OUTPUT SIZE LIMITS - CRITICAL:
48574
- 14. Keep each file under 200 lines. If a component would be larger, split it into multiple files (e.g., separate types.ts, utils.ts, styles).
48575
- 15. Do NOT output excessive comments or documentation in code.
48576
- 16. When writing a file, write it IMMEDIATELY after deciding to create it. Do not repeat "Now let me create..." multiple times - just create it.
48577
- 17. If you find yourself repeating the same text without making progress, STOP and write the file with whatever content you have ready.
48577
+ - Keep each file under 200 lines. If a component would be larger, split it into multiple files (e.g., separate types.ts, utils.ts, styles).
48578
+ - Do NOT output excessive comments or documentation in code.
48579
+ - When writing a file, write it IMMEDIATELY after deciding to create it. Do not repeat "Now let me create..." multiple times - just create it.
48580
+ - If you find yourself repeating the same text without making progress, STOP and write the file with whatever content you have ready.
48578
48581
 
48579
48582
  PERMISSIONS REQUIREMENT:
48580
48583
  At the end of your response, output the required Wix app permissions as a JSON block.
@@ -48774,6 +48777,8 @@ var require_config = __commonJS({
48774
48777
  webfetch: "allow",
48775
48778
  skill: "allow",
48776
48779
  task: "deny",
48780
+ todowrite: "deny",
48781
+ todoread: "deny",
48777
48782
  external_directory: {
48778
48783
  "/root/.agents/**": "allow",
48779
48784
  "/root/.claude/**": "allow",
@@ -74170,6 +74175,7 @@ var require_SPIAgent = __commonJS({
74170
74175
  - "ecom.taxCalculationProvider.calculateTax" - For custom tax calculations
74171
74176
  - "ecom.recommendationsProvider.getRecommendations" - For product recommendations
74172
74177
  - "ecom.catalog.getCatalogItems" - For external catalog integration
74178
+ - "bookings.staffSortingProvider.sortStaffMembers" - For custom staff sorting/assignment in bookings
74173
74179
 
74174
74180
  **SPI Selection Guidelines:**
74175
74181
  - For shipping-related requests \u2192 use "ecom.shippingRates.getShippingRates"
@@ -74181,6 +74187,7 @@ var require_SPIAgent = __commonJS({
74181
74187
  - For tax calculations \u2192 use "ecom.taxCalculationProvider.calculateTax"
74182
74188
  - For product recommendations \u2192 use "ecom.recommendationsProvider.getRecommendations"
74183
74189
  - For external catalog \u2192 use "ecom.catalog.getCatalogItems"
74190
+ - For staff sorting/assignment in bookings \u2192 use "bookings.staffSortingProvider.sortStaffMembers"
74184
74191
  </service_plugin>`;
74185
74192
  };
74186
74193
  exports2.getSPIAgentDocumentation = getSPIAgentDocumentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.263",
3
+ "version": "1.0.265",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -28,5 +28,5 @@
28
28
  "@wix/ditto-codegen": "1.0.0",
29
29
  "esbuild": "^0.27.2"
30
30
  },
31
- "falconPackageHash": "dba48cab03e25adf44f9e435dce1352d6354d45aa693b174a99500b2"
31
+ "falconPackageHash": "2e9eb478e1ada3951ce4c064b65a00360873cc2c6e31dfae89772452"
32
32
  }