@wix/ditto-codegen-public 1.0.480 → 1.0.482

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 -3
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -14957,7 +14957,7 @@ var require_shared_rules = __commonJS({
14957
14957
  "dist/opencode-integration/rules/shared-rules.js"(exports2) {
14958
14958
  "use strict";
14959
14959
  Object.defineProperty(exports2, "__esModule", { value: true });
14960
- exports2.OUTPUT_MESSAGE_RULES = exports2.BOUNDARY_RULES = void 0;
14960
+ exports2.OUTCOME_MESSAGE_RULES = exports2.OUTPUT_MESSAGE_RULES = exports2.BOUNDARY_RULES = void 0;
14961
14961
  exports2.buildEnvironmentRules = buildEnvironmentRules;
14962
14962
  exports2.buildFileOperationsRules = buildFileOperationsRules;
14963
14963
  function buildEnvironmentRules(environmentIdentity) {
@@ -14972,6 +14972,7 @@ ${environmentIdentity}`;
14972
14972
  - Match their technical level: include code/technical detail only if their request was technical; otherwise describe the outcome in plain language (no code, file/type names, or internals).
14973
14973
  - List any manual setup the user must still do for the feature to work, as short "next steps" (e.g. installing a dependent app or enabling a dashboard setting).
14974
14974
  - Be honest: if you didn't fully build what was asked (e.g. stored data but didn't send it), say so. Keep it short.`;
14975
+ exports2.OUTCOME_MESSAGE_RULES = `- Lead with whether the request succeeded or failed and what changed (e.g. "Added\u2026", "Removed\u2026"). Never report validation, build, or type-check status as the outcome, and re-state the outcome in your last message even if you already said it earlier.`;
14975
14976
  function buildFileOperationsRules(multiEditContextClause) {
14976
14977
  return `- Package dependencies \u2014 \`npm install <pkg>\` any package not already in \`package.json\` BEFORE the first \`validate\` (do NOT wait for \`TS2307\`); install all needed packages in ONE command, except heavy ones: the sandbox has a memory limit and an install that exceeds it kills the machine and loses the whole run, so install those in several smaller commands. Do NOT hand-edit \`package.json\` for deps unless npm cannot be used. Never pass \`--package-lock=false\`.
14977
14978
  - File operations \u2014 pick the BATCH tool whenever you have 2+ files; the single-file variants are 5\u201310\xD7 slower:
@@ -15022,6 +15023,7 @@ ${(0, shared_rules_1.buildFileOperationsRules)("fixing type errors")}
15022
15023
  - NEVER write a Wix SDK method, field, or enum value you haven't seen in a skill or a method schema.
15023
15024
  - \`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.
15024
15025
  - NEVER run preview, dev, release, or promote commands.
15026
+ - 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.
15025
15027
 
15026
15028
  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\`):
15027
15029
  - 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\`.
@@ -15067,7 +15069,8 @@ The \`required-permissions\` tool records and surfaces permissions to the user a
15067
15069
  (0, shared_rules_1.buildEnvironmentRules)(environmentIdentity),
15068
15070
  shared_rules_1.BOUNDARY_RULES,
15069
15071
  buildCoreRules(validation),
15070
- shared_rules_1.OUTPUT_MESSAGE_RULES
15072
+ `${shared_rules_1.OUTPUT_MESSAGE_RULES}
15073
+ ${shared_rules_1.OUTCOME_MESSAGE_RULES}`
15071
15074
  ].join("\n\n");
15072
15075
  }
15073
15076
  }
@@ -15992,7 +15995,7 @@ var require_validation_state = __commonJS({
15992
15995
  exports2.VALIDATION_STATE_EVENT_TYPE = "validation_state";
15993
15996
  exports2.VALIDATION_LOADED_EVENT_TYPE = "validation_loaded";
15994
15997
  exports2.VALIDATION_STATE_PLUGIN_FILENAME = "validation-state.ts";
15995
- exports2.VALIDATION_NUDGE = "Project files need validation. Follow your validation workflow (delegate to codegen-validator if your instructions require it), run validate({ runBuild: true }), and fix any errors before finishing.";
15998
+ exports2.VALIDATION_NUDGE = "Project files need validation. Follow your validation workflow (delegate to codegen-validator if your instructions require it), run validate({ runBuild: true }), and fix any errors before finishing. Your last message is shown to the user: once validation passes, end with a short plain-language summary of what changed for them, not the validation status.";
15996
15999
  function buildValidationStateSource() {
15997
16000
  return String.raw`// Generated by @wix/ditto-codegen (validation-state). Do not edit.
15998
16001
  const EVENT_TYPE = ${JSON.stringify(exports2.VALIDATION_STATE_EVENT_TYPE)};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.480",
3
+ "version": "1.0.482",
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": "08e7a6012a59f25529773b267a6c5d6d7e88cf5f6455ee0b9c89426e"
32
+ "falconPackageHash": "8ddb265d2d2e197adab7411a9cac2d729efcfaec2e8c75e8785d7888"
33
33
  }