@wix/ditto-codegen-public 1.0.475 → 1.0.476
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.
- package/dist/out.js +9 -3
- 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/ditto-codegen-public",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.476",
|
|
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": "
|
|
32
|
+
"falconPackageHash": "b00e5087ab99a56911dcace77fb99fa76a2acc00bdae9f7d3d1ccd63"
|
|
33
33
|
}
|