@wix/ditto-codegen-public 1.0.495 → 1.0.497

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 +13 -4
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -12717,7 +12717,7 @@ var require_brik_import = __commonJS({
12717
12717
  exports2.BRIK_IMPORT_RULES = void 0;
12718
12718
  exports2.BRIK_IMPORT_RULES = `# Brik Tool Import Rules
12719
12719
 
12720
- Check with \`glob\` whether \`.wix/agentInput/brikMeta.json\` exists. If it exists AND its \`brikMeta\` object has \`promptVariant\` set to \`skill-v1\`, this job is a Brik tool import: you MUST invoke the \`wix-brik\` skill FIRST and follow it exactly. It owns the import itself - scaffolding the Editor React Component, running the deterministic import script over \`.wix/agentInput/brikImport.json\`, splicing the tool's creative code, then installing dependencies and building plus generating the manifest. Do NOT derive the component's public surface yourself and do NOT re-tune the manifest.
12720
+ Open \`.wix/agentInput/brikMeta.json\` with \`read\` - not \`glob\` or \`grep\`: \`.wix/\` is git-ignored, so they never list it. If it exists AND its \`brikMeta\` object has \`promptVariant\` set to \`skill-v1\`, this job is a Brik tool import: you MUST invoke the \`wix-brik\` skill FIRST and follow it exactly. It owns the import itself - scaffolding the Editor React Component, running the deterministic import script over \`.wix/agentInput/brikImport.json\`, splicing the tool's creative code, then installing dependencies and building plus generating the manifest. Do NOT derive the component's public surface yourself and do NOT re-tune the manifest.
12721
12721
 
12722
12722
  The skill does NOT replace step 5 of the workflow: its \`npx wix build\` transpiles without typechecking. Once its DONE WHEN checks pass, still run step 5 as the workflow says, and fix whatever it reports in your spliced code only - never in the script-written surface.
12723
12723
 
@@ -12844,7 +12844,7 @@ var require_user_attachments = __commonJS({
12844
12844
  exports2.USER_ATTACHMENTS_RULES = void 0;
12845
12845
  exports2.USER_ATTACHMENTS_RULES = `# User Attachment Rules
12846
12846
 
12847
- Check with \`glob\` whether \`.wix/agentInput/userAttachments.json\` exists. If it does, the user uploaded files to the assistant. Its \`userAttachments\` list gives each file's \`fileName\` (as the user named it), \`path\` (under \`.wix/agentInput/attachments/\`), \`mimeType\`, \`sizeBytes\`, \`status\` and \`fromThisRequest\`: \`true\` for a file uploaded with this request, \`false\` for one from an earlier message. Only files with \`status\` \`downloaded\` are on disk; any other status says why the file is missing, and you must not claim to have used it.
12847
+ Open \`.wix/agentInput/userAttachments.json\` with \`read\` - not \`glob\` or \`grep\`: \`.wix/\` is git-ignored, so they never list it. If it exists, the user uploaded files to the assistant. Its \`userAttachments\` list gives each file's \`fileName\` (as the user named it), \`path\` (under \`.wix/agentInput/attachments/\`), \`mimeType\`, \`sizeBytes\`, \`status\` and \`fromThisRequest\`: \`true\` for a file uploaded with this request, \`false\` for one from an earlier message. Only files with \`status\` \`downloaded\` are on disk; any other status says why the file is missing, and you must not claim to have used it.
12848
12848
 
12849
12849
  - Read the files of this request that it refers to before you write any code. When it doesn't say which, read all of this request's files.
12850
12850
  - Use a file from an earlier message only when the request refers to it, by name or as something the user sent before. Never let an earlier file steer a request that doesn't mention it.
@@ -12999,7 +12999,7 @@ var require_studio_2 = __commonJS({
12999
12999
  "../codegen-common-logic/dist/tool-policies/studio-2.js"(exports2) {
13000
13000
  "use strict";
13001
13001
  Object.defineProperty(exports2, "__esModule", { value: true });
13002
- 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;
13002
+ 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;
13003
13003
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = {
13004
13004
  type: "read",
13005
13005
  mode: "block",
@@ -13059,6 +13059,14 @@ ${STUDIO_2_SITE_UI_ROUTING}`
13059
13059
  commandFragments: ["npx wix preview", "npx wix release"],
13060
13060
  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.`
13061
13061
  };
13062
+ exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY = {
13063
+ type: "read",
13064
+ mode: "prepend",
13065
+ isInstruction: true,
13066
+ pathFragments: ["wix-app/references/EDITOR_REACT_COMPONENT"],
13067
+ message: `SITE THEME: This host's rules ask for the site theme, so new Editor React Components are themed by default. When creating a component, treat wix-app's references/editor-react-component/BRANDED-COMPONENTS.md as a required reference even if the request does not mention branding, and follow it for how to apply the theme. Brik tool imports keep the stylesheet the wix-brik skill writes.`,
13068
+ driftMarkers: ["the host's rules ask for it"]
13069
+ };
13062
13070
  exports2.STUDIO_2_POLICIES = [
13063
13071
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY,
13064
13072
  exports2.SITE_PLUGIN_PAGES_POLICY,
@@ -13066,7 +13074,8 @@ ${STUDIO_2_SITE_UI_ROUTING}`
13066
13074
  exports2.STUDIO_2_SKILL_ROUTING_POLICY,
13067
13075
  exports2.STUDIO_2_PREVIEW_RELEASE_POLICY,
13068
13076
  exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY,
13069
- exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY
13077
+ exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY,
13078
+ exports2.STUDIO_2_BRANDED_COMPONENTS_POLICY
13070
13079
  ];
13071
13080
  }
13072
13081
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.495",
3
+ "version": "1.0.497",
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": "c0f88e604513b3e01f11a661457171ff29aef7551a6dfb3393c582de"
32
+ "falconPackageHash": "2a6fae98422a1fb9a83464411c66c494d5de33ebd3d5f12a5877dd98"
33
33
  }