@wix/ditto-codegen-public 1.0.260 → 1.0.262
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 +17 -3
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -48471,7 +48471,7 @@ var require_codegen_prompt = __commonJS({
|
|
|
48471
48471
|
- Handle all edge cases and error scenarios appropriately
|
|
48472
48472
|
|
|
48473
48473
|
IMPORTANT INSTRUCTIONS:
|
|
48474
|
-
1.
|
|
48474
|
+
1. NEVER run preview, dev, release, or promote commands. Preview/deployment is handled separately.
|
|
48475
48475
|
2. You MUST run \`npm install\` when you are adding new dependencies to package.json.
|
|
48476
48476
|
3. You SHOULD run \`npx tsc --noEmit\` to check for TypeScript errors after generating code.
|
|
48477
48477
|
4. You SHOULD run \`npm run build\` or \`wix build\` to verify the build succeeds.
|
|
@@ -48634,7 +48634,7 @@ var require_config = __commonJS({
|
|
|
48634
48634
|
exports2.getOpenCodeAskEnv = getOpenCodeAskEnv;
|
|
48635
48635
|
var os_1 = require("os");
|
|
48636
48636
|
var codeGenerationService_12 = require_codeGenerationService();
|
|
48637
|
-
exports2.DEFAULT_TIMEOUT_MS =
|
|
48637
|
+
exports2.DEFAULT_TIMEOUT_MS = 20 * 60 * 1e3;
|
|
48638
48638
|
exports2.DEFAULT_MODEL = "anthropic/claude-sonnet-4-6";
|
|
48639
48639
|
function getAnthropicBaseUrl(projectId) {
|
|
48640
48640
|
return `${codeGenerationService_12.aiProxyBaseUrl}/projects/${projectId}/anthropic`;
|
|
@@ -48671,7 +48671,21 @@ var require_config = __commonJS({
|
|
|
48671
48671
|
provider: getProviderConfig(),
|
|
48672
48672
|
permission: {
|
|
48673
48673
|
edit: "allow",
|
|
48674
|
-
|
|
48674
|
+
// NOTE: Per-command deny patterns are unreliable — opencode may
|
|
48675
|
+
// ignore them or fail to match compound commands (e.g. `cd /path && npx wix preview`).
|
|
48676
|
+
// See: https://github.com/anomalyco/opencode/issues/16331
|
|
48677
|
+
// Primary blocking is enforced via the system prompt and validation skill.
|
|
48678
|
+
bash: {
|
|
48679
|
+
"*wix preview*": "deny",
|
|
48680
|
+
"*wix dev*": "deny",
|
|
48681
|
+
"*wix release*": "deny",
|
|
48682
|
+
"*wix promote*": "deny",
|
|
48683
|
+
"*npm run preview*": "deny",
|
|
48684
|
+
"*npm run dev*": "deny",
|
|
48685
|
+
"*npm run release*": "deny",
|
|
48686
|
+
"*npm run promote*": "deny",
|
|
48687
|
+
"*": "allow"
|
|
48688
|
+
},
|
|
48675
48689
|
webfetch: "allow",
|
|
48676
48690
|
skill: "allow",
|
|
48677
48691
|
task: "deny",
|
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.262",
|
|
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": "b88fabba9f75546e458e019c050fd35d0350190b1f2025841cc30957"
|
|
32
32
|
}
|