@wix/ditto-codegen-public 1.0.265 → 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 +18 -0
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -343135,6 +343135,9 @@ var require_skills_installer = __commonJS({
343135
343135
  var ditto_codegen_types_12 = require_dist4();
343136
343136
  var execAsync = (0, util_1.promisify)(child_process_1.exec);
343137
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
+ }
343138
343141
  async function installSkills(outputPath, log) {
343139
343142
  log.info("[Skills] Installing Wix skills globally", {
343140
343143
  installInternalSkills: process.env.INSTALL_INTERNAL_SKILLS
@@ -343155,6 +343158,21 @@ var require_skills_installer = __commonJS({
343155
343158
  cause: error48
343156
343159
  });
343157
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
+ }
343158
343176
  }
343159
343177
  }
343160
343178
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.265",
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": "2e9eb478e1ada3951ce4c064b65a00360873cc2c6e31dfae89772452"
31
+ "falconPackageHash": "6a15805978f7926273587305b4e389d0537246ce3e80119739c06099"
32
32
  }