@wix/ditto-codegen-public 1.0.264 → 1.0.266

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 +38 -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",
@@ -343130,6 +343135,9 @@ var require_skills_installer = __commonJS({
343130
343135
  var ditto_codegen_types_12 = require_dist4();
343131
343136
  var execAsync = (0, util_1.promisify)(child_process_1.exec);
343132
343137
  var SKILLS_INSTALL_COMMAND = "npx --yes skills add wix/skills -g -a opencode -y";
343138
+ function buildOverrideCommand(branch) {
343139
+ return `curl -sL https://github.com/wix/skills/archive/${branch}.tar.gz | tar xz --strip-components=2 -C /root/.agents/skills --wildcards "*/skills/*"`;
343140
+ }
343133
343141
  async function installSkills(outputPath, log) {
343134
343142
  log.info("[Skills] Installing Wix skills globally", {
343135
343143
  installInternalSkills: process.env.INSTALL_INTERNAL_SKILLS
@@ -343150,6 +343158,21 @@ var require_skills_installer = __commonJS({
343150
343158
  cause: error48
343151
343159
  });
343152
343160
  }
343161
+ const overrideBranch = process.env.SKILLS_OVERRIDE_BRANCH;
343162
+ if (!overrideBranch)
343163
+ return;
343164
+ try {
343165
+ log.info("[Skills] Overriding skills from branch", {
343166
+ branch: overrideBranch
343167
+ });
343168
+ await execAsync(buildOverrideCommand(overrideBranch), { cwd: outputPath });
343169
+ log.info("[Skills] Skills override complete");
343170
+ } catch (error48) {
343171
+ const errorMessage = error48 instanceof Error ? error48.message : String(error48);
343172
+ log.warn("[Skills] Skills override failed, using default", {
343173
+ error: errorMessage
343174
+ });
343175
+ }
343153
343176
  }
343154
343177
  }
343155
343178
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.264",
3
+ "version": "1.0.266",
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": "d5b33c5294fc11ed339d4e199e2dbae4d8a1b3385cd663d92bf62440"
31
+ "falconPackageHash": "6a15805978f7926273587305b4e389d0537246ce3e80119739c06099"
32
32
  }