@wix/ditto-codegen-public 1.0.279 → 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 +22 -16
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -11795,6 +11795,8 @@ Use SCOPE ID format (not human-readable names). Examples:
|
|
|
11795
11795
|
- \`@wix/data\` read \u2192 "SCOPE.DC-DATA.READ", write \u2192 "SCOPE.DC-DATA.WRITE"
|
|
11796
11796
|
- Embedded scripts \u2192 "SCOPE.DC-APPS.MANAGE-EMBEDDED-SCRIPTS"
|
|
11797
11797
|
|
|
11798
|
+
CRITICAL: Only include permissions that you have explicitly seen in the Wix SDK documentation (via MCP or loaded skills). NEVER guess or fabricate permission scope IDs. If you are unsure which permission a feature requires, look it up in the docs first. Omitting a permission is better than inventing one that does not exist.
|
|
11799
|
+
|
|
11798
11800
|
\`\`\`json:required-permissions
|
|
11799
11801
|
["SCOPE.DC-DATA.READ", "SCOPE.DC-DATA.WRITE"]
|
|
11800
11802
|
\`\`\`
|
|
@@ -18128,14 +18130,33 @@ var require_skills_installer = __commonJS({
|
|
|
18128
18130
|
var util_1 = require("util");
|
|
18129
18131
|
var ditto_codegen_types_12 = require_dist4();
|
|
18130
18132
|
var execAsync = (0, util_1.promisify)(child_process_1.exec);
|
|
18133
|
+
var SKILLS_DIR = "/root/.agents/skills";
|
|
18131
18134
|
var SKILLS_INSTALL_COMMAND = "npx --yes skills add wix/skills -g -a opencode -y";
|
|
18132
18135
|
function buildOverrideCommand(branch) {
|
|
18133
|
-
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/*"`;
|
|
18134
18137
|
}
|
|
18135
18138
|
async function installSkills(outputPath, log) {
|
|
18136
18139
|
log.info("[Skills] Installing Wix skills globally", {
|
|
18137
18140
|
installInternalSkills: process.env.INSTALL_INTERNAL_SKILLS
|
|
18138
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
|
+
}
|
|
18139
18160
|
try {
|
|
18140
18161
|
const { stdout, stderr } = await execAsync(SKILLS_INSTALL_COMMAND, {
|
|
18141
18162
|
cwd: outputPath
|
|
@@ -18152,21 +18173,6 @@ var require_skills_installer = __commonJS({
|
|
|
18152
18173
|
cause: error
|
|
18153
18174
|
});
|
|
18154
18175
|
}
|
|
18155
|
-
const overrideBranch = process.env.SKILLS_OVERRIDE_BRANCH;
|
|
18156
|
-
if (!overrideBranch)
|
|
18157
|
-
return;
|
|
18158
|
-
try {
|
|
18159
|
-
log.info("[Skills] Overriding skills from branch", {
|
|
18160
|
-
branch: overrideBranch
|
|
18161
|
-
});
|
|
18162
|
-
await execAsync(buildOverrideCommand(overrideBranch), { cwd: outputPath });
|
|
18163
|
-
log.info("[Skills] Skills override complete");
|
|
18164
|
-
} catch (error) {
|
|
18165
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
18166
|
-
log.warn("[Skills] Skills override failed, using default", {
|
|
18167
|
-
error: errorMessage
|
|
18168
|
-
});
|
|
18169
|
-
}
|
|
18170
18176
|
}
|
|
18171
18177
|
}
|
|
18172
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
|
}
|