@wix/ditto-codegen-public 1.0.264 → 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.
- package/dist/out.js +20 -15
- 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
|
-
|
|
48560
|
-
|
|
48561
|
-
|
|
48562
|
-
|
|
48563
|
-
|
|
48564
|
-
|
|
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
|
-
|
|
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
|
-
|
|
48575
|
-
|
|
48576
|
-
|
|
48577
|
-
|
|
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",
|
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.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": "
|
|
31
|
+
"falconPackageHash": "2e9eb478e1ada3951ce4c064b65a00360873cc2c6e31dfae89772452"
|
|
32
32
|
}
|