@wix/ditto-codegen-public 1.0.280 → 1.0.281
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 -16
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -18130,14 +18130,33 @@ var require_skills_installer = __commonJS({
|
|
|
18130
18130
|
var util_1 = require("util");
|
|
18131
18131
|
var ditto_codegen_types_12 = require_dist4();
|
|
18132
18132
|
var execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
18133
|
+
var SKILLS_DIR = "/root/.agents/skills";
|
|
18133
18134
|
var SKILLS_INSTALL_COMMAND = "npx --yes skills add wix/skills -g -a opencode -y";
|
|
18134
18135
|
function buildOverrideCommand(branch) {
|
|
18135
|
-
return `curl -sL https://github.com/wix/skills/archive/${branch}.tar.gz | tar xz --strip-components=2 -C
|
|
18136
|
+
return `rm -rf ${SKILLS_DIR} && mkdir -p ${SKILLS_DIR} && curl -sL https://github.com/wix/skills/archive/${branch}.tar.gz | tar xz --strip-components=2 -C ${SKILLS_DIR} --wildcards "*/skills/*"`;
|
|
18136
18137
|
}
|
|
18137
18138
|
async function installSkills(outputPath, log) {
|
|
18138
18139
|
log.info("[Skills] Installing Wix skills globally", {
|
|
18139
18140
|
installInternalSkills: process.env.INSTALL_INTERNAL_SKILLS
|
|
18140
18141
|
});
|
|
18142
|
+
const overrideBranch = process.env.SKILLS_OVERRIDE_BRANCH;
|
|
18143
|
+
if (overrideBranch) {
|
|
18144
|
+
try {
|
|
18145
|
+
log.info("[Skills] Installing skills from branch", {
|
|
18146
|
+
branch: overrideBranch
|
|
18147
|
+
});
|
|
18148
|
+
await execAsync(buildOverrideCommand(overrideBranch), {
|
|
18149
|
+
cwd: outputPath
|
|
18150
|
+
});
|
|
18151
|
+
log.info("[Skills] Skills installed from branch successfully");
|
|
18152
|
+
return;
|
|
18153
|
+
} catch (error) {
|
|
18154
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
18155
|
+
log.warn("[Skills] Branch install failed, falling back to default", {
|
|
18156
|
+
error: errorMessage
|
|
18157
|
+
});
|
|
18158
|
+
}
|
|
18159
|
+
}
|
|
18141
18160
|
try {
|
|
18142
18161
|
const { stdout, stderr } = await execAsync(SKILLS_INSTALL_COMMAND, {
|
|
18143
18162
|
cwd: outputPath
|
|
@@ -18154,21 +18173,6 @@ var require_skills_installer = __commonJS({
|
|
|
18154
18173
|
cause: error
|
|
18155
18174
|
});
|
|
18156
18175
|
}
|
|
18157
|
-
const overrideBranch = process.env.SKILLS_OVERRIDE_BRANCH;
|
|
18158
|
-
if (!overrideBranch)
|
|
18159
|
-
return;
|
|
18160
|
-
try {
|
|
18161
|
-
log.info("[Skills] Overriding skills from branch", {
|
|
18162
|
-
branch: overrideBranch
|
|
18163
|
-
});
|
|
18164
|
-
await execAsync(buildOverrideCommand(overrideBranch), { cwd: outputPath });
|
|
18165
|
-
log.info("[Skills] Skills override complete");
|
|
18166
|
-
} catch (error) {
|
|
18167
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
18168
|
-
log.warn("[Skills] Skills override failed, using default", {
|
|
18169
|
-
error: errorMessage
|
|
18170
|
-
});
|
|
18171
|
-
}
|
|
18172
18176
|
}
|
|
18173
18177
|
}
|
|
18174
18178
|
});
|
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.281",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@wix/ditto-codegen": "1.0.0",
|
|
28
28
|
"esbuild": "^0.27.2"
|
|
29
29
|
},
|
|
30
|
-
"falconPackageHash": "
|
|
30
|
+
"falconPackageHash": "e39b88437d896c3bb1ea1dc7fe24ba49aa713d1c4f0da324bbed24e9"
|
|
31
31
|
}
|