@wix/ditto-codegen-public 1.0.499 → 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 +6 -5
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -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.499",
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": "bddff6830410f1114d962458277922efd02195d3364ff5a152ee09c4"
32
+ "falconPackageHash": "deebf315489e8a8ed2032567022bb2c084d386b869a1380c2a72e485"
33
33
  }