@wix/ditto-codegen-public 1.0.404 → 1.0.405
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 +8 -3
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -11722,7 +11722,7 @@ skills already cover. Read-only.`;
|
|
|
11722
11722
|
[exports2.VALIDATOR_SUBAGENT_NAME]: {
|
|
11723
11723
|
mode: "subagent",
|
|
11724
11724
|
model: smallModel,
|
|
11725
|
-
steps:
|
|
11725
|
+
steps: 80,
|
|
11726
11726
|
description: VALIDATOR_DESCRIPTION,
|
|
11727
11727
|
prompt: VALIDATOR_PROMPT,
|
|
11728
11728
|
permission: {
|
|
@@ -14779,7 +14779,7 @@ IMPLEMENTATION WORKFLOW:
|
|
|
14779
14779
|
2. **Research**: Load the \`wix-app\` skill per extension type. SKIP this step entirely if the skill + KNOWN WIX APIS cover everything (common for dashboard + data-collection apps). Otherwise delegate ONLY to search for an API you genuinely can't identify \u2014 \`codegen-wix-docs\` (SDK), \`codegen-wds-docs\` (WDS), both in ONE response if both needed; pass each the question, not a known doc link \u2014 and wait for the summaries before building.
|
|
14780
14780
|
3. **Build**: Write files incrementally \u2014 group by logical section, NOT all at once. For complex tasks (300+ total lines across files), split into multiple \`batch-write\` calls. NEVER hold back writing until all code is planned \u2014 write each logical piece as soon as it is ready. Build all extensions before registering.
|
|
14781
14781
|
4. **Register**: Register all extensions in \`src/extensions.ts\`.
|
|
14782
|
-
5. **Validate**: Dispatch ONE \`task({ subagent: "codegen-validator", prompt: "Run validate({ runBuild: true }) \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." })\`. 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.
|
|
14782
|
+
5. **Validate**: Dispatch ONE \`task({ subagent: "codegen-validator", prompt: "Run validate({ runBuild: true }) \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." })\`. 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 a clean build: 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.
|
|
14783
14783
|
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.
|
|
14784
14784
|
7. **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).
|
|
14785
14785
|
8. **Stop**: STOP immediately. Do NOT refactor, clean up, or verify.
|
|
@@ -15256,6 +15256,7 @@ var require_parser = __commonJS({
|
|
|
15256
15256
|
exports2.parseUsageStats = parseUsageStats;
|
|
15257
15257
|
exports2.mergeUsageStats = mergeUsageStats;
|
|
15258
15258
|
exports2.hasSessionError = hasSessionError;
|
|
15259
|
+
exports2.isStepCappedValidatorOutput = isStepCappedValidatorOutput;
|
|
15259
15260
|
exports2.shouldReportValidatorOutput = shouldReportValidatorOutput;
|
|
15260
15261
|
exports2.parseValidatorTaskOutputs = parseValidatorTaskOutputs;
|
|
15261
15262
|
exports2.summarizeOpenCodeLine = summarizeOpenCodeLine;
|
|
@@ -15378,8 +15379,12 @@ var require_parser = __commonJS({
|
|
|
15378
15379
|
...input.description && { description: truncate(input.description) }
|
|
15379
15380
|
};
|
|
15380
15381
|
}
|
|
15382
|
+
var STEP_CAP_RE = /maximum steps reached/i;
|
|
15383
|
+
function isStepCappedValidatorOutput(output) {
|
|
15384
|
+
return STEP_CAP_RE.test(output);
|
|
15385
|
+
}
|
|
15381
15386
|
function shouldReportValidatorOutput(output) {
|
|
15382
|
-
return output.includes("NEEDS_INVESTIGATION");
|
|
15387
|
+
return output.includes("NEEDS_INVESTIGATION") || isStepCappedValidatorOutput(output);
|
|
15383
15388
|
}
|
|
15384
15389
|
function parseValidatorTaskOutputs(stdout) {
|
|
15385
15390
|
const outputs = [];
|
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.405",
|
|
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": "7a15f5850d6a383ca1193b0a3473908455ef8cba130c912beb4ee409"
|
|
33
33
|
}
|