@wix/ditto-codegen-public 1.0.498 → 1.0.500

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 +8 -7
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -12774,7 +12774,7 @@ Use the matching site service instead, read with \`useService\` from \`@wix/serv
12774
12774
 
12775
12775
  | Instead of | Use |
12776
12776
  |---|---|
12777
- | \`@wix/site-window\` \`openLightbox\` / \`lightbox.getContext\` / \`lightbox.close\` | \`@wix/site-service-lightbox\` |
12777
+ | \`@wix/site-window\` \`openLightbox\` / \`lightbox.getContext\` / \`lightbox.close\` | \`@wix/site-service-lightbox\` (read wix-app's \`references/LIGHTBOX.md\`) |
12778
12778
  | \`@wix/site-window\` \`formFactor\` | \`@wix/site-service-device-info\`. Its device types are named differently from \`formFactor\`: use the values in its types |
12779
12779
  | \`@wix/site-window\` \`viewMode\` | \`@wix/site-service-editor-context\`. It only says whether the site is being previewed; it can't tell the editor from the live site |
12780
12780
  | \`@wix/site-window\` \`rendering.env\` | \`@wix/site-service-rendering-context\` |
@@ -13010,7 +13010,7 @@ var require_studio_2 = __commonJS({
13010
13010
  message: `BLOCKED: Custom Element widgets are not available in this environment. All site UI must be an Editor React Component (extensionType: EDITOR_REACT_COMPONENT). Read wix-app's references/EDITOR_REACT_COMPONENT.md instead. Do not retry this read.`
13011
13011
  };
13012
13012
  exports2.SITE_PLUGIN_UNSUPPORTED_PAGES = `Product Page (New Version), Product Page (Old Version), Service Page (Wix Bookings), Event Details Page (Wix Events)`;
13013
- exports2.SITE_PLUGIN_REDIRECT = `For UI on those pages build an Editor React Component; for shared data or state without UI use the wix-cli-context-provider skill. Site plugins remain supported on all other listed pages.`;
13013
+ exports2.SITE_PLUGIN_REDIRECT = `For UI on those pages build an Editor React Component; for shared data or state without UI read wix-app's references/CONTEXT_PROVIDER.md. Site plugins remain supported on all other listed pages.`;
13014
13014
  var STUDIO_2_SITE_UI_ROUTING = `- All site UI MUST be an Editor React Component (\`extensionType: EDITOR_REACT_COMPONENT\`); Custom Elements (\`CUSTOM_ELEMENT\`, \`CUSTOM_ELEMENT_WIDGET\`) are unavailable in this environment, even if the prompt says "custom element" or "widget".
13015
13015
  - Site plugins are not supported on these pages: ${exports2.SITE_PLUGIN_UNSUPPORTED_PAGES}. ${exports2.SITE_PLUGIN_REDIRECT}`;
13016
13016
  exports2.SITE_PLUGIN_PAGES_POLICY = {
@@ -16232,7 +16232,7 @@ var require_validation_state = __commonJS({
16232
16232
  var prepare_created_by_1 = require_prepare_created_by();
16233
16233
  var repository_status_1 = require_repository_status();
16234
16234
  function isReadOnlyShellCommand(command) {
16235
- return /^(?:ls|pwd|cat|head|tail|wc|grep)(?:[ \t]+[A-Za-z0-9_./:@%+=,-]+)*[ \t]*$/.test(command);
16235
+ return /^(?:ls|pwd|cat|head|tail|wc|grep)(?:[ \t]+[A-Za-z0-9_./:@%+=,-]+)*[ \t]*$/.test(command) || /^git[ \t]+(?:status|diff|log|show)(?:[ \t]+(?!--(?:output|ext-diff|textconv))[A-Za-z0-9_./:@%+=,-]+)*[ \t]*$/.test(command) || /^node[ \t]+(['"]?)\/root\/\.agents\/skills\/wix-app\/scripts\/(?:scan-a11y-(?:review|code|eslint|render)|scan-user-source|render-images)\.cjs\1(?:[ \t]+(?:[A-Za-z0-9_./:@%+=,-]+|'[^'\n]*'|"[^"\n$`\\]*"))*[ \t]*$/.test(command);
16236
16236
  }
16237
16237
  exports2.VALIDATION_STATE_EVENT_TYPE = "validation_state";
16238
16238
  exports2.VALIDATION_LOADED_EVENT_TYPE = "validation_loaded";
@@ -16338,10 +16338,11 @@ export const ValidationState = async ({ client, directory, $ }) => {
16338
16338
  validations.set(key(input), mutationEpoch);
16339
16339
  }
16340
16340
  } else if (MUTATING_TOOLS.has(input.tool)) {
16341
- if (input.tool !== "bash" || typeof args.command !== "string" || !isReadOnlyShellCommand(args.command)) {
16342
- hasUnvalidatedMutation = true;
16343
- revisionNudges = 0;
16344
- }
16341
+ // Agents run the skill's scans alongside validate; counting them as in-flight mutations
16342
+ // discarded that validation. The after hook still compares fingerprints.
16343
+ if (input.tool === "bash" && typeof args.command === "string" && isReadOnlyShellCommand(args.command)) return;
16344
+ hasUnvalidatedMutation = true;
16345
+ revisionNudges = 0;
16345
16346
  mutationEpoch += 1;
16346
16347
  activeMutations.add(key(input));
16347
16348
  emit(input.sessionID, false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.498",
3
+ "version": "1.0.500",
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": "9e2b59bd45d6e23626ef67ddfdff251833887d4ab8341a67f9b6622c"
32
+ "falconPackageHash": "deebf315489e8a8ed2032567022bb2c084d386b869a1380c2a72e485"
33
33
  }