@wix/ditto-codegen-public 1.0.465 → 1.0.467

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.
@@ -35,11 +35,13 @@ function buildProvenance(): string {
35
35
 
36
36
  export default tool({
37
37
  description:
38
- "Report a problem with Wix docs or the wix-mcp tools to the Wix MCP team. Call it when " +
39
- "docs or MCP — not your own code — made the task harder: a search whose top results were " +
40
- "off-target, an article or example that is wrong or missing the fields you needed, a " +
41
- "method schema that doesn't match the installed SDK types, or an MCP tool error. Include " +
42
- "cases you recovered from. Do NOT report your own mistakes or the user's request. Call it " +
38
+ "Report a problem with the Wix docs (dev.wix.com, read through wix-mcp) or the wix-mcp " +
39
+ "tools to the Wix MCP team: a search whose top results were off-target, a docs article " +
40
+ "or example that is wrong or missing the fields you needed, a method schema that " +
41
+ "doesn't match the installed SDK types, or a wix-mcp tool error. Include cases you " +
42
+ "recovered from. Do NOT report skill references (SKILL.md, references/*.md), package " +
43
+ "docs in node_modules, your own mistakes, or the user's request — those aren't wix-mcp " +
44
+ "issues. Every report must cite the wix-mcp tool or dev.wix.com URL involved. Call it " +
43
45
  "at most ONCE per task, covering every friction point you've hit so far.",
44
46
  args: {
45
47
  message: tool.schema
@@ -47,9 +49,9 @@ export default tool({
47
49
  .min(1)
48
50
  .describe(
49
51
  "Plain-text report. For each friction point: the tool and exact input (search " +
50
- "term, docs URL), what came back, what was wrong or missing, the workaround you " +
52
+ "term, dev.wix.com URL), what came back, what was wrong or missing, the workaround you " +
51
53
  "used, and what you expected. Then your best guess of where the fault lives " +
52
- "(search ranking / docs article or example / method schema / SDK typings / MCP " +
54
+ "(search ranking / docs article or example / method schema / SDK typings / wix-mcp " +
53
55
  "tool) and whether you confirmed it. End with one line naming the most important " +
54
56
  "problem. No secrets or tokens.",
55
57
  ),
package/dist/out.js CHANGED
@@ -11724,8 +11724,9 @@ var require_model_knobs = __commonJS({
11724
11724
  exports2.getSmallReasoningEffort = getSmallReasoningEffort;
11725
11725
  exports2.hasSmallReasoningEffortOverride = hasSmallReasoningEffortOverride;
11726
11726
  exports2.getOpenAiServiceTier = getOpenAiServiceTier;
11727
- exports2.DEFAULT_MODEL = "anthropic/claude-sonnet-4-6";
11728
- exports2.DEFAULT_SMALL_MODEL = "anthropic/claude-haiku-4-5-20251001";
11727
+ exports2.DEFAULT_MODEL = "openai/gpt-6-sol";
11728
+ exports2.DEFAULT_SMALL_MODEL = "openai/gpt-6-luna";
11729
+ var DEFAULT_REASONING_EFFORT = "low";
11729
11730
  var SMALL_MODEL_REASONING_EFFORT = "medium";
11730
11731
  var REASONING_EFFORTS = ["xhigh", "high", "medium", "low"];
11731
11732
  var VALID_OPENAI_SERVICE_TIERS = [
@@ -11763,8 +11764,9 @@ var require_model_knobs = __commonJS({
11763
11764
  }
11764
11765
  function getReasoningEffort() {
11765
11766
  const effort = readEnumEnv("CODEGEN_REASONING_EFFORT", REASONING_EFFORTS);
11766
- if (!effort)
11767
- return void 0;
11767
+ if (!effort) {
11768
+ return hasModelOverride() || hasSmallModelOverride() ? void 0 : DEFAULT_REASONING_EFFORT;
11769
+ }
11768
11770
  if (!isOpenAiModel(getModel()) || !isOpenAiModel(getSmallModel())) {
11769
11771
  throw new Error("CODEGEN_REASONING_EFFORT requires BOTH the main and small models to be openai/* \u2014 set CODEGEN_MODEL_OVERRIDE and CODEGEN_SMALL_MODEL_OVERRIDE (reasoning-effort variants are only supported on openai models).");
11770
11772
  }
@@ -14232,7 +14234,7 @@ var require_brik_import = __commonJS({
14232
14234
 
14233
14235
  If \`.wix/agentInput/brikMeta.json\` exists AND its \`brikMeta\` object has \`promptVariant\` set to \`skill-v1\`, this job is a Brik tool import: you MUST invoke the \`wix-brik\` skill FIRST and follow it exactly. It owns the import itself - scaffolding the Editor React Component, running the deterministic import script over \`.wix/agentInput/brikImport.json\`, splicing the tool's creative code, then installing dependencies and building plus generating the manifest. Do NOT derive the component's public surface yourself and do NOT re-tune the manifest.
14234
14236
 
14235
- The skill does NOT replace step 5 of the workflow: its \`npx wix build\` transpiles without typechecking. Once its DONE WHEN checks pass, still delegate to the \`codegen-validator\` subagent as usual, and fix whatever it reports in your spliced code only - never in the script-written surface.
14237
+ The skill does NOT replace step 5 of the workflow: its \`npx wix build\` transpiles without typechecking. Once its DONE WHEN checks pass, still run step 5 as the workflow says, and fix whatever it reports in your spliced code only - never in the script-written surface.
14236
14238
 
14237
14239
  If \`promptVariant\` is any other value, it is the legacy import pipeline's payload: ignore this rule and follow the job's own instructions.`;
14238
14240
  }
@@ -14934,7 +14936,7 @@ var require_codegen_rules = __commonJS({
14934
14936
  };
14935
14937
  var DIRECT_VALIDATION = {
14936
14938
  toolRule: "- `validate` (tsc + build) \u2014 you call it yourself at step 5. Do NOT delegate it.",
14937
- step: `5. **Validate**: Call \`validate({ runBuild: true })\` yourself \u2014 it typechecks AND builds in a single pass (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. Do NOT move on until the build is clean. After the build is clean, if you created or modified an EDITOR_REACT_COMPONENT extension in this task, run \`npx wix generate manifest\` via bash (idempotent).`
14939
+ step: `5. **Validate**: Call \`validate({ runBuild: true })\` yourself \u2014 it typechecks AND builds in a single pass (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 the build is clean. After the build is clean, if you created or modified an EDITOR_REACT_COMPONENT extension in this task, run \`npx wix generate manifest\` via bash (idempotent).`
14938
14940
  };
14939
14941
  var buildCoreRules = (validation) => `CORE PRINCIPLES:
14940
14942
  - Do NOT invent or assume new types, modules, functions, props, events, or imports.
@@ -14955,7 +14957,7 @@ ${validation.toolRule}
14955
14957
  ${(0, shared_rules_1.buildFileOperationsRules)("fixing type errors")}
14956
14958
  - API discovery (shapes, method signatures, types) \u2014 in this order: (1) loaded skills + KNOWN WIX APIS, if they already cover the API; (2) wix-mcp, yourself: \`SearchWixSDKDocumentation\` to find the method, then \`ReadFullDocsMethodSchema\` for its exact exported name, options object, response fields, enum values and scope IDs \u2014 the schema is the source of truth; an article or its examples are not. Model the call on the SDK view, not REST, and use the direct form inside the extension: \`import { <namespace> } from "@wix/<pkg>"; await <namespace>.<method>(<options>)\` \u2014 never \`createClient\`. Note any setup the docs require from the user (an app to install, a dashboard setting to enable) for the final message. For WDS components/props, use the \`wix-design-system\` skill; (3) grepping \`node_modules\` ONLY as a last resort if the above return nothing \u2014 SDK internals are not a documentation source, and doing it first wastes turns, inflates context, and is unreliable.
14957
14959
  - NEVER write a Wix SDK method, field, or enum value you haven't seen in a skill or a method schema.
14958
- - \`report-wix-feedback\` \u2014 report Wix docs / wix-mcp problems to Wix (when: workflow step 7).
14960
+ - \`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.
14959
14961
  - NEVER run preview, dev, release, or promote commands.
14960
14962
 
14961
14963
  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\`):
@@ -14969,7 +14971,7 @@ IMPLEMENTATION WORKFLOW:
14969
14971
  4. **Register**: Register all extensions in \`src/extensions.ts\`.
14970
14972
  ${validation.step}
14971
14973
  6. **Declare permissions**: If the generated code requires Wix app permissions, call \`required-permissions\` ONCE with their SCOPE IDs (see PERMISSIONS below). Skip this step entirely if no permissions are needed.
14972
- 7. **Report docs problems**: Skip this step if you already called \`report-wix-feedback\` this run. Otherwise look back at the run: if ANY of these happened, call it ONCE covering all of them: (a) you inspected \`node_modules\` to find a Wix SDK signature, shape, or type because the docs didn't give you one that compiles; (b) the validator fixed a Wix SDK call you wrote from the docs \u2014 read its summary; (c) a doc example, article, or schema contradicted the installed SDK types; (d) a search's top results were off-target, or a wix-mcp tool failed. For each: the docs URL or search term, what it showed, and what actually worked.
14974
+ 7. **Report docs problems**: Skip this step if you already called \`report-wix-feedback\` this run. Otherwise look back at the run: if ANY of these happened, call it ONCE covering all of them: (a) you inspected \`node_modules\` to find a Wix SDK signature, shape, or type because the docs didn't give you one that compiles; (b) the validator fixed a Wix SDK call you wrote from a dev.wix.com doc \u2014 read its summary; (c) a dev.wix.com example, article, or schema contradicted the installed SDK types; (d) a search's top results were off-target, or a wix-mcp tool failed. For each: the dev.wix.com URL or search term, what it showed, and what actually worked. A gap in a skill reference is not a wix-mcp problem \u2014 don't report it here.
14973
14975
  8. **Final message**: Your last message is returned to the user as the codegen output \u2014 keep it short and plain (a sentence or two on what the app now does). Do NOT mention permissions/scopes here (see PERMISSIONS) and follow OUTPUT MESSAGE below.
14974
14976
  9. **Stop**: STOP immediately. Do NOT refactor, clean up, or verify.
14975
14977
 
@@ -14994,7 +14996,7 @@ CRITICAL: Only include permissions you have explicitly seen in the Wix SDK docum
14994
14996
 
14995
14997
  The \`required-permissions\` tool records and surfaces permissions to the user automatically \u2014 NEVER mention permissions/scopes (IDs or names) in your output, or tell the user to grant them.`;
14996
14998
  function isValidatorSubagentSkipped() {
14997
- return (0, model_knobs_1.readEnumEnv)("CODEGEN_RULES_NO_VALIDATOR", ["1"]) === "1";
14999
+ return (0, model_knobs_1.readEnumEnv)("CODEGEN_RULES_NO_VALIDATOR", ["0", "1"]) !== "0";
14998
15000
  }
14999
15001
  function buildCodegenRules(environmentIdentity) {
15000
15002
  const validation = isValidatorSubagentSkipped() ? DIRECT_VALIDATION : DELEGATED_VALIDATION;
@@ -23838,9 +23840,9 @@ var require_docs_feedback_nudge = __commonJS({
23838
23840
  var write_plugin_1 = require_write_plugin();
23839
23841
  var subagents_1 = require_subagents();
23840
23842
  exports2.WIX_SDK_INTERNALS_RE = /node_modules\/@wix\/(?!patterns\b|design-system\b)[\w-]+/;
23841
- exports2.SDK_INTERNALS_NOTE = "Docs check: you are reading Wix SDK internals. If it's because the docs didn't give you a signature, shape, or type that compiles, call `report-wix-feedback` once you have the answer \u2014 with the docs URL or search term you used, what it showed, and what you found here.";
23842
- exports2.VALIDATOR_NOTE = "Docs check: if the validator fixed a Wix SDK call you wrote from a doc example, article, or schema, call `report-wix-feedback` now \u2014 with the docs URL, what it showed, and what the validator changed it to.";
23843
- exports2.COMPILE_FAILURE_NOTE = "Docs check: if a failure above is in a Wix SDK call you wrote from a doc example, article, or schema, call `report-wix-feedback` once you've fixed it \u2014 with the docs URL, what it showed, and what actually compiled.";
23843
+ exports2.SDK_INTERNALS_NOTE = "Docs check: you are reading Wix SDK internals. If it's because the Wix docs you read through wix-mcp didn't give you a signature, shape, or type that compiles, call `report-wix-feedback` once you have the answer \u2014 with the docs URL or search term you used, what it showed, and what you found here.";
23844
+ exports2.VALIDATOR_NOTE = "Docs check: if the validator fixed a Wix SDK call you wrote from a dev.wix.com doc example, article, or schema you read through wix-mcp, call `report-wix-feedback` now (not for skill references) \u2014 with the docs URL, what it showed, and what the validator changed it to.";
23845
+ exports2.COMPILE_FAILURE_NOTE = "Docs check: if a failure above is in a Wix SDK call you wrote from a dev.wix.com doc example, article, or schema you read through wix-mcp, call `report-wix-feedback` once you've fixed it (not for skill references) \u2014 with the docs URL, what it showed, and what actually compiled.";
23844
23846
  exports2.REPORT_SENT_PREFIX = "Report sent";
23845
23847
  exports2.DOCS_FEEDBACK_NUDGE_FILENAME = "docs-feedback-nudge.ts";
23846
23848
  function buildDocsFeedbackNudgeSource() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.465",
3
+ "version": "1.0.467",
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": "175eef2c2268c965ea1b16a42224fac32fe17587e762719c5ed06a1b"
32
+ "falconPackageHash": "6e0bea815a8cc927e371476a9322bb0e2056a44108fca77338b370ff"
33
33
  }