@wix/ditto-codegen-public 1.0.201 → 1.0.203
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 +10 -6
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -36984,6 +36984,7 @@ var require_constants = __commonJS({
|
|
|
36984
36984
|
};
|
|
36985
36985
|
exports2.LLM_MODELS = {
|
|
36986
36986
|
CLAUDE_3_5_HAIKU_LATEST: "claude-3-5-haiku-latest",
|
|
36987
|
+
CLAUDE_HAIKU_4_5: "claude-haiku-4-5",
|
|
36987
36988
|
CLAUDE_SONNET_4_5_20250929: "claude-sonnet-4-5-20250929"
|
|
36988
36989
|
};
|
|
36989
36990
|
}
|
|
@@ -39786,6 +39787,7 @@ CRITICAL - ALL EMBEDDED SCRIPT CONFIGURATION GOES HERE:
|
|
|
39786
39787
|
- Example: If blueprint says "Dashboard page to configure popup headline, coupon code, and colors" \u2192 create parameters for headline, couponCode, backgroundColor, textColor
|
|
39787
39788
|
- DO NOT rely on CMS collections for this configuration - embedded scripts can ONLY be configured through these parameters
|
|
39788
39789
|
- The dashboard page will provide a UI to edit these parameters, which are persisted by the embedded scripts
|
|
39790
|
+
- **Even if the blueprint mentions using CMS collections for configuration**, you MUST still output embeddedScriptParameters for every EMBEDDED_SCRIPT extension. CMS collections and embeddedScriptParameters serve different purposes - both may coexist.
|
|
39789
39791
|
|
|
39790
39792
|
</when_to_use_dynamic_parameters>
|
|
39791
39793
|
|
|
@@ -39841,6 +39843,8 @@ Output:
|
|
|
39841
39843
|
<guidelines>
|
|
39842
39844
|
- If there are EMBEDDED_SCRIPT extensions, you MUST always include at least one parameter per extension
|
|
39843
39845
|
- At minimum, every embedded script should have an enable/disable parameter to allow site owners to control activation
|
|
39846
|
+
- **FOR INITIAL GENERATION (no previous embeddedScriptParameters exist)**: You MUST output embeddedScriptParameters for EVERY EMBEDDED_SCRIPT extension. DO NOT return an empty array. Without parameters, the Embedded Script Extension will not be generated.
|
|
39847
|
+
- **FOR ITERATION (previous embeddedScriptParameters already exist)**: Only output changes if needed. If existing parameters are sufficient, you can return an empty array.
|
|
39844
39848
|
- The extensionId MUST match the exact name of the embedded script extension from the blueprint
|
|
39845
39849
|
- Define additional parameters only if they truly need to be configurable by the site owner
|
|
39846
39850
|
- Keep parameter keys descriptive and in lowerCamelCase
|
|
@@ -39850,7 +39854,7 @@ Output:
|
|
|
39850
39854
|
- For SELECT types, MUST include the options array with all possible values
|
|
39851
39855
|
- Consider grouping related parameters (e.g., activation settings, appearance settings)
|
|
39852
39856
|
- Default values should be sensible and demonstrate the expected format
|
|
39853
|
-
- IMPORTANT:
|
|
39857
|
+
- IMPORTANT: Even if the blueprint asks for CMS collections, you MUST still define embeddedScriptParameters for every EMBEDDED_SCRIPT extension. Both can coexist.
|
|
39854
39858
|
- STRICTLY use only the supported parameter types listed above. Do NOT use types from other contexts like CMS (e.g., do NOT use ARRAY_STRING, ARRAY, etc.).
|
|
39855
39859
|
- If you need a list of values (like a list of emojis or strings), use TEXT type and describe the expected format (e.g., "Comma-separated list of emojis") in the description.
|
|
39856
39860
|
</guidelines>
|
|
@@ -40687,7 +40691,7 @@ ${error}`);
|
|
|
40687
40691
|
userMessage,
|
|
40688
40692
|
systemPrompt,
|
|
40689
40693
|
provider: constants_1.LLM_PROVIDERS.ANTHROPIC,
|
|
40690
|
-
model: constants_1.LLM_MODELS.
|
|
40694
|
+
model: constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5,
|
|
40691
40695
|
schema,
|
|
40692
40696
|
agentName: this.name
|
|
40693
40697
|
});
|
|
@@ -72907,7 +72911,7 @@ var require_DashboardPageAgent2 = __commonJS({
|
|
|
72907
72911
|
const autoPatternsDocSelector = new codegen_dashboard_agents_1.AutoPatternsContextAgent({
|
|
72908
72912
|
aiService: codeGenerationService_12.codegenAIProxyService,
|
|
72909
72913
|
provider: constants_1.LLM_PROVIDERS.ANTHROPIC,
|
|
72910
|
-
model: constants_1.LLM_MODELS.
|
|
72914
|
+
model: constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5,
|
|
72911
72915
|
buildSystemPrompt: codegen_dashboard_agents_1.autoPatternsContextPrompt
|
|
72912
72916
|
});
|
|
72913
72917
|
const result = await autoPatternsDocSelector.generate(userRequestSummary);
|
|
@@ -82403,7 +82407,7 @@ var require_DashboardDecisionAgent = __commonJS({
|
|
|
82403
82407
|
userMessage,
|
|
82404
82408
|
systemPrompt,
|
|
82405
82409
|
provider: constants_1.LLM_PROVIDERS.ANTHROPIC,
|
|
82406
|
-
model: constants_1.LLM_MODELS.
|
|
82410
|
+
model: constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5,
|
|
82407
82411
|
schema: autoPatternsLlmConfig,
|
|
82408
82412
|
agentName: this.name
|
|
82409
82413
|
});
|
|
@@ -97974,7 +97978,7 @@ ${iterationPlan.summary}
|
|
|
97974
97978
|
if (validIds.length === 0) {
|
|
97975
97979
|
return { extensions: [] };
|
|
97976
97980
|
}
|
|
97977
|
-
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.
|
|
97981
|
+
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5, {
|
|
97978
97982
|
agentName: this.name
|
|
97979
97983
|
});
|
|
97980
97984
|
const extensionDocumentation = this.getExtensionTypeDocumentation(iterationPlan);
|
|
@@ -98177,7 +98181,7 @@ var require_ExtensionIndexerAgent = __commonJS({
|
|
|
98177
98181
|
${srcFolderStructure}
|
|
98178
98182
|
</project_structure>`;
|
|
98179
98183
|
try {
|
|
98180
|
-
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.
|
|
98184
|
+
const model = (0, customAnthropicProvider_1.createCustomTextModel)()(constants_1.LLM_MODELS.CLAUDE_HAIKU_4_5, {
|
|
98181
98185
|
agentName: this.name
|
|
98182
98186
|
});
|
|
98183
98187
|
await (0, ai_1.generateText)({
|
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.203",
|
|
4
4
|
"description": "AI-powered Wix CLI app generator - standalone executable",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "node build.mjs",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"@wix/ditto-codegen": "1.0.0",
|
|
25
25
|
"esbuild": "^0.27.2"
|
|
26
26
|
},
|
|
27
|
-
"falconPackageHash": "
|
|
27
|
+
"falconPackageHash": "bc0000ad46cd0244ee27c7b750e385a7bbaac900425d0d8eb04351c5"
|
|
28
28
|
}
|