@wix/ditto-codegen-public 1.0.465 → 1.0.466
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
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
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,
|
|
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 /
|
|
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
|
@@ -14955,7 +14955,7 @@ ${validation.toolRule}
|
|
|
14955
14955
|
${(0, shared_rules_1.buildFileOperationsRules)("fixing type errors")}
|
|
14956
14956
|
- 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
14957
|
- 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
|
|
14958
|
+
- \`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
14959
|
- NEVER run preview, dev, release, or promote commands.
|
|
14960
14960
|
|
|
14961
14961
|
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 +14969,7 @@ IMPLEMENTATION WORKFLOW:
|
|
|
14969
14969
|
4. **Register**: Register all extensions in \`src/extensions.ts\`.
|
|
14970
14970
|
${validation.step}
|
|
14971
14971
|
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
|
|
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 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
14973
|
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
14974
|
9. **Stop**: STOP immediately. Do NOT refactor, clean up, or verify.
|
|
14975
14975
|
|
|
@@ -23838,9 +23838,9 @@ var require_docs_feedback_nudge = __commonJS({
|
|
|
23838
23838
|
var write_plugin_1 = require_write_plugin();
|
|
23839
23839
|
var subagents_1 = require_subagents();
|
|
23840
23840
|
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.";
|
|
23841
|
+
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.";
|
|
23842
|
+
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.";
|
|
23843
|
+
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
23844
|
exports2.REPORT_SENT_PREFIX = "Report sent";
|
|
23845
23845
|
exports2.DOCS_FEEDBACK_NUDGE_FILENAME = "docs-feedback-nudge.ts";
|
|
23846
23846
|
function buildDocsFeedbackNudgeSource() {
|
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.466",
|
|
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": "5f62c3bec337fac87f829cc93820852f2d6ab8cdc275abfc090e0a48"
|
|
33
33
|
}
|