@wix/ditto-codegen-public 1.0.479 → 1.0.481

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 +3 -13
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -14431,7 +14431,7 @@ var require_studio_2 = __commonJS({
14431
14431
  "../codegen-common-logic/dist/tool-policies/studio-2.js"(exports2) {
14432
14432
  "use strict";
14433
14433
  Object.defineProperty(exports2, "__esModule", { value: true });
14434
- exports2.STUDIO_2_POLICIES = exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY = exports2.STUDIO_2_PREVIEW_RELEASE_POLICY = exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY = exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY = exports2.SITE_PLUGIN_SCHEMA_COMMAND_POLICY = exports2.STUDIO_2_SKILL_ROUTING_POLICY = exports2.SITE_PLUGIN_PAGES_POLICY = exports2.SITE_PLUGIN_REDIRECT = exports2.SITE_PLUGIN_UNSUPPORTED_PAGES = exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = void 0;
14434
+ exports2.STUDIO_2_POLICIES = exports2.STUDIO_2_PREVIEW_RELEASE_POLICY = exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY = exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY = exports2.SITE_PLUGIN_SCHEMA_COMMAND_POLICY = exports2.STUDIO_2_SKILL_ROUTING_POLICY = exports2.SITE_PLUGIN_PAGES_POLICY = exports2.SITE_PLUGIN_REDIRECT = exports2.SITE_PLUGIN_UNSUPPORTED_PAGES = exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = void 0;
14435
14435
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = {
14436
14436
  type: "read",
14437
14437
  mode: "block",
@@ -14491,16 +14491,6 @@ ${STUDIO_2_SITE_UI_ROUTING}`
14491
14491
  commandFragments: ["npx wix preview", "npx wix release"],
14492
14492
  message: `BLOCKED: \`wix preview\` and \`wix release\` cannot run in this environment. Skip those checklist items and run every other post-build step the skill requires. Do not retry.`
14493
14493
  };
14494
- exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY = {
14495
- type: "read",
14496
- mode: "prepend",
14497
- pathFragments: [
14498
- "wix-app/references/EDITOR_REACT_COMPONENT",
14499
- "wix-app/references/editor-react-component/BRANDED-COMPONENTS"
14500
- ],
14501
- message: `ENVIRONMENT OVERRIDE: Editor React Components in this environment follow the site theme by default. When you design a new component, read wix-app's references/editor-react-component/BRANDED-COMPONENTS.md and style it with the theme tokens, even if the request does not ask for a branded or themed component. Where the request names its own colors or fonts, use those and theme tokens for everything else; text and icons on a named color must contrast with that color. A component with a strong look of its own (a dark, neon or gradient widget, or a game such as a spin wheel) and code supplied in the request keep their own palette. Edits keep an existing component's styling unless the request asks to change it, and Brik tool imports keep the stylesheet the wix-brik skill writes.`,
14502
- driftMarkers: ["Do not infer this requirement"]
14503
- };
14504
14494
  exports2.STUDIO_2_POLICIES = [
14505
14495
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY,
14506
14496
  exports2.SITE_PLUGIN_PAGES_POLICY,
@@ -14508,8 +14498,7 @@ ${STUDIO_2_SITE_UI_ROUTING}`
14508
14498
  exports2.STUDIO_2_SKILL_ROUTING_POLICY,
14509
14499
  exports2.STUDIO_2_PREVIEW_RELEASE_POLICY,
14510
14500
  exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY,
14511
- exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY,
14512
- exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY
14501
+ exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY
14513
14502
  ];
14514
14503
  }
14515
14504
  });
@@ -15033,6 +15022,7 @@ ${(0, shared_rules_1.buildFileOperationsRules)("fixing type errors")}
15033
15022
  - NEVER write a Wix SDK method, field, or enum value you haven't seen in a skill or a method schema.
15034
15023
  - \`report-wix-feedback\` \u2014 report problems with the Wix docs (dev.wix.com, via wix-mcp) or the wix-mcp tools to Wix (when: workflow step 7). NOT for skill references or your own code.
15035
15024
  - NEVER run preview, dev, release, or promote commands.
15025
+ - The ONE exception to YOUR BOUNDARIES' ban on uploading files: when the \`wix-app\` skill tells you to run its \`upload-media.cjs\` script, run it. It puts the user's images into the site's Media Manager and prints the \`{ uri, url }\` an \`Image\` default needs, which makes it part of writing code. Run no other script that changes the site \u2014 publishing, releasing, deleting, and every other product/platform action stay off-limits.
15036
15026
 
15037
15027
  KNOWN WIX APIS (already documented \u2014 do NOT rediscover these from node_modules; for full detail consult the \`wix-app\` skill's references or \`ReadFullDocsMethodSchema\`):
15038
15028
  - Wix Data items CRUD: \`import { items } from "@wix/data"\` \u2014 \`items.query(collectionId)\`, \`items.get\`, \`items.insert\`, \`items.update\` (replaces the WHOLE item \u2014 send all fields), \`items.remove\`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.479",
3
+ "version": "1.0.481",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -29,5 +29,5 @@
29
29
  "esbuild": "^0.27.2",
30
30
  "vitest": "^4.0.16"
31
31
  },
32
- "falconPackageHash": "aa612d3abb5432b9772fa1212f46424b83fd5be740ba2327bcfabc58"
32
+ "falconPackageHash": "fb8725cd483f4c797567c369d6b0481e296080219712238314bf34dd"
33
33
  }