@wix/ditto-codegen-public 1.0.475 → 1.0.477

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 +10 -4
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -14457,7 +14457,7 @@ var require_studio_2 = __commonJS({
14457
14457
  "../codegen-common-logic/dist/tool-policies/studio-2.js"(exports2) {
14458
14458
  "use strict";
14459
14459
  Object.defineProperty(exports2, "__esModule", { value: true });
14460
- exports2.STUDIO_2_POLICIES = 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;
14460
+ 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;
14461
14461
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY = {
14462
14462
  type: "read",
14463
14463
  mode: "block",
@@ -14512,11 +14512,17 @@ ${STUDIO_2_SITE_UI_ROUTING}`
14512
14512
  blockedExtensionTypes: ["CUSTOM_ELEMENT", "CUSTOM_ELEMENT_WIDGET"],
14513
14513
  message: `BLOCKED: extensionType CUSTOM_ELEMENT / CUSTOM_ELEMENT_WIDGET cannot be generated in this environment. Build an Editor React Component (extensionType: EDITOR_REACT_COMPONENT) instead. Do not retry with a custom element type.`
14514
14514
  };
14515
+ exports2.STUDIO_2_PREVIEW_RELEASE_POLICY = {
14516
+ type: "commandBlock",
14517
+ commandFragments: ["npx wix preview", "npx wix release"],
14518
+ 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.`
14519
+ };
14515
14520
  exports2.STUDIO_2_POLICIES = [
14516
14521
  exports2.CUSTOM_ELEMENT_REFERENCES_POLICY,
14517
14522
  exports2.SITE_PLUGIN_PAGES_POLICY,
14518
14523
  exports2.SITE_PLUGIN_SCHEMA_COMMAND_POLICY,
14519
14524
  exports2.STUDIO_2_SKILL_ROUTING_POLICY,
14525
+ exports2.STUDIO_2_PREVIEW_RELEASE_POLICY,
14520
14526
  exports2.STUDIO_2_SITE_PLUGIN_SLOTS_GENERATE_POLICY,
14521
14527
  exports2.STUDIO_2_CUSTOM_ELEMENT_GENERATE_POLICY
14522
14528
  ];
@@ -15015,11 +15021,11 @@ var require_codegen_rules = __commonJS({
15015
15021
  var model_knobs_1 = require_model_knobs();
15016
15022
  var DELEGATED_VALIDATION = {
15017
15023
  toolRule: "- `validate` (tsc + build + editor-component manifests) is run by the `codegen-validator` subagent \u2014 do NOT call it directly; delegate via `task` at step 5.",
15018
- step: `5. **Validate**: Dispatch ONE \`task({ subagent: "codegen-validator", prompt: "Run validate({ runBuild: true }) \u2014 it typechecks, builds, and generates manifests when editor components exist. Fix any errors and re-run until it passes. Pass installDeps: true only if package.json changed and npm install was not already run in this session." })\`. Wait for the subagent to return. Do NOT call \`validate\` directly from the primary agent, and do NOT make a separate tsc-only call first \u2014 the single runBuild pass already fails fast on type errors. VERIFY the subagent actually FINISHED with clean validation: read its returned summary and confirm it converged. If it reports remaining/unresolved errors or was cut off before finishing (e.g. "Maximum steps reached"), do NOT treat it as success \u2014 re-dispatch \`codegen-validator\` to finish the remaining errors before moving on. Do NOT inspect extension types or run \`npx wix generate manifest\` directly; \`validate\` handles manifest generation when editor components exist.`
15024
+ step: `5. **Validate**: Dispatch ONE \`task({ subagent: "codegen-validator", prompt: "Run validate({ runBuild: true }) \u2014 it typechecks, builds, and generates manifests when editor components exist. Fix any errors and re-run until it passes. Pass installDeps: true only if package.json changed and npm install was not already run in this session." })\`. Wait for the subagent to return. Do NOT call \`validate\` directly from the primary agent, and do NOT make a separate tsc-only call first \u2014 the single runBuild pass already fails fast on type errors. VERIFY the subagent actually FINISHED with clean validation: read its returned summary and confirm it converged. If it reports remaining/unresolved errors or was cut off before finishing (e.g. "Maximum steps reached"), do NOT treat it as success \u2014 re-dispatch \`codegen-validator\` to finish the remaining errors before moving on. Do NOT inspect extension types or run \`npx wix generate manifest\` directly; \`validate\` handles manifest generation when editor components exist. Once validation is clean, run any further post-build checks the skill requires; if one makes you change code, re-run \`validate\`.`
15019
15025
  };
15020
15026
  var DIRECT_VALIDATION = {
15021
15027
  toolRule: "- `validate` (tsc + build + editor-component manifests) \u2014 you call it yourself at step 5. Do NOT delegate it.",
15022
- step: `5. **Validate**: Call \`validate({ runBuild: true })\` yourself \u2014 it typechecks, builds, and generates manifests when editor components exist (tsc runs first and fails fast before the build). Fix any errors and re-run until it passes. Pass installDeps: true only if package.json changed and npm install was not already run in this session. Do NOT delegate this to a subagent, and do NOT make a separate tsc-only call first \u2014 the single runBuild pass already fails fast on type errors. NEVER force a green build: no \`as any\`, no \`@ts-ignore\`, no NEW \`@ts-expect-error\`, no switching a correct named import to \`import * as\`, and no changing runtime behaviour (e.g. unwanted \`defaultProps\` values) or deleting the failing code just to satisfy tsc. Do NOT move on until validation is clean. Do NOT inspect extension types or run \`npx wix generate manifest\` directly; \`validate\` handles manifest generation when editor components exist.`
15028
+ step: `5. **Validate**: Call \`validate({ runBuild: true })\` yourself \u2014 it typechecks, builds, and generates manifests when editor components exist (tsc runs first and fails fast before the build). Fix any errors and re-run until it passes. Pass installDeps: true only if package.json changed and npm install was not already run in this session. Do NOT delegate this to a subagent, and do NOT make a separate tsc-only call first \u2014 the single runBuild pass already fails fast on type errors. NEVER force a green build: no \`as any\`, no \`@ts-ignore\`, no NEW \`@ts-expect-error\`, no switching a correct named import to \`import * as\`, and no changing runtime behaviour (e.g. unwanted \`defaultProps\` values) or deleting the failing code just to satisfy tsc. Do NOT move on until validation is clean. Do NOT inspect extension types or run \`npx wix generate manifest\` directly; \`validate\` handles manifest generation when editor components exist. Once validation is clean, run any further post-build checks the skill requires; if one makes you change code, re-run \`validate\`.`
15023
15029
  };
15024
15030
  var buildCoreRules = (validation) => `CORE PRINCIPLES:
15025
15031
  - Do NOT invent or assume new types, modules, functions, props, events, or imports.
@@ -15141,7 +15147,7 @@ var require_git_conflicts_rules = __commonJS({
15141
15147
  exports2.GIT_CONFLICTS_RULES = `CORE PRINCIPLES:
15142
15148
  - You are a Git merge conflict resolver. Your ONLY job is to fix merge conflict markers in files.
15143
15149
  - Do NOT generate new features, refactor code, or make changes beyond resolving conflicts.
15144
- - NEVER use mocks, placeholders, or TODOs.
15150
+ - Do NOT introduce new mocks, placeholders, debug logging, or TODOs while resolving conflicts. Keep any that either side already contains \u2014 they may be there because the user asked for them.
15145
15151
 
15146
15152
  UNDERSTAND INTENT FIRST:
15147
15153
  - Before resolving a conflict, understand WHAT each side was trying to accomplish and WHY \u2014 not just which lines differ. Read enough of the surrounding file (and the imports/usages the conflict touches) to know the intent of both sides.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.475",
3
+ "version": "1.0.477",
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": "8ef1e2ee307fc9eba9a1bc6824e21a3faaa37cc4b76488f22303a222"
32
+ "falconPackageHash": "838b225501541e04aeb2c55bdfcd39656057b09aa09a174860fc8892"
33
33
  }