@wix/ditto-codegen-public 1.0.173 → 1.0.175

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.
Files changed (2) hide show
  1. package/dist/out.js +31 -26
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -37703,6 +37703,8 @@ Output:
37703
37703
  - Consider grouping related parameters (e.g., activation settings, appearance settings)
37704
37704
  - Default values should be sensible and demonstrate the expected format
37705
37705
  - IMPORTANT: These parameters are persisted by the embeddedScripts parameters. Do NOT create CMS collections for this data.
37706
+ - 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.).
37707
+ - 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.
37706
37708
  </guidelines>
37707
37709
 
37708
37710
  </DYNAMIC_PARAMETERS_PLANNER_SYSTEM_PROMPT>
@@ -64384,7 +64386,7 @@ var require_dashboard_page_instructions = __commonJS({
64384
64386
  "dist/system-prompts/dashboardPage/dashboard-page-instructions.js"(exports2) {
64385
64387
  "use strict";
64386
64388
  Object.defineProperty(exports2, "__esModule", { value: true });
64387
- exports2.dashboardPageInstructions = void 0;
64389
+ exports2.dashboardPageInstructions = exports2.supportedWDSComponents = void 0;
64388
64390
  var apiSpec_1 = require_apiSpec();
64389
64391
  var typescript_quality_guidelines_1 = require_typescript_quality_guidelines();
64390
64392
  var dashboardPackage_1 = require_dashboardPackage();
@@ -64392,7 +64394,7 @@ var require_dashboard_page_instructions = __commonJS({
64392
64394
  var dynamicParameters_1 = require_dynamicParameters();
64393
64395
  var ecomPackage_1 = require_ecomPackage();
64394
64396
  var wdsPackage_1 = require_wdsPackage();
64395
- var supportedWDSComponents = /* @__PURE__ */ new Set([
64397
+ exports2.supportedWDSComponents = /* @__PURE__ */ new Set([
64396
64398
  "AutoComplete",
64397
64399
  "Badge",
64398
64400
  "Box",
@@ -64491,7 +64493,7 @@ export default function () {
64491
64493
  filesAndCode: dashboardPageFilesAndCode,
64492
64494
  wdsProviderUsage: dashboardPageWdsProviderUsage,
64493
64495
  hardConstraints: dashboardPageHardConstraints,
64494
- wdsReference: () => (0, wdsPackage_1.buildWdsSystemPrompt)(supportedWDSComponents),
64496
+ wdsReference: () => (0, wdsPackage_1.buildWdsSystemPrompt)(exports2.supportedWDSComponents),
64495
64497
  apiReferences: `${dashboardPackage_1.dashboardPackage}
64496
64498
  ${ecomPackage_1.ecomPackage}`,
64497
64499
  typescriptQualityGuidelines: typescript_quality_guidelines_1.typescriptQualityGuidelines,
@@ -65603,31 +65605,34 @@ var require_file_operations = __commonJS({
65603
65605
  "dist/agents/utils/file-operations.js"(exports2) {
65604
65606
  "use strict";
65605
65607
  Object.defineProperty(exports2, "__esModule", { value: true });
65606
- exports2.FilesSchema = exports2.FileItemSchema = void 0;
65608
+ exports2.FilesSchema = exports2.FileItemSchema = exports2.FileCreateOrUpdateSchema = void 0;
65607
65609
  var zod_1 = require_zod();
65608
65610
  var ditto_codegen_types_12 = require_dist();
65611
+ exports2.FileCreateOrUpdateSchema = zod_1.z.object({
65612
+ operation: zod_1.z.union([
65613
+ zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
65614
+ zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.UPDATE)
65615
+ ]).describe("File operation: insert (new file), update (modify existing)").default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
65616
+ path: zod_1.z.string().describe("Relative file path from project root"),
65617
+ content: zod_1.z.string().describe("Complete file content as a string (for JSON files, stringify the object). Required for insert and update operations.")
65618
+ });
65619
+ var FileEditSchema = zod_1.z.object({
65620
+ operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.EDIT),
65621
+ path: zod_1.z.string().describe("Relative file path from project root"),
65622
+ replacements: zod_1.z.array(zod_1.z.object({
65623
+ oldString: zod_1.z.string().describe("The text to replace (must match the file contents exactly, including all whitespace and indentation)"),
65624
+ newString: zod_1.z.string().describe("The edited text to replace the oldString"),
65625
+ replaceAll: zod_1.z.boolean().optional().describe("Replace all occurrences of oldString (default false)")
65626
+ })).min(1).describe("List of string replacements to apply")
65627
+ });
65628
+ var FileDeleteSchema = zod_1.z.object({
65629
+ operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE),
65630
+ path: zod_1.z.string().describe("Relative file path from project root")
65631
+ });
65609
65632
  exports2.FileItemSchema = zod_1.z.discriminatedUnion("operation", [
65610
- zod_1.z.object({
65611
- operation: zod_1.z.union([
65612
- zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
65613
- zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.UPDATE)
65614
- ]).describe("File operation: insert (new file), update (modify existing)").default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
65615
- path: zod_1.z.string().describe("Relative file path from project root"),
65616
- content: zod_1.z.string().describe("Complete file content as a string (for JSON files, stringify the object). Required for insert and update operations.")
65617
- }),
65618
- zod_1.z.object({
65619
- operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE),
65620
- path: zod_1.z.string().describe("Relative file path from project root")
65621
- }),
65622
- zod_1.z.object({
65623
- operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.EDIT),
65624
- path: zod_1.z.string().describe("Relative file path from project root"),
65625
- replacements: zod_1.z.array(zod_1.z.object({
65626
- oldString: zod_1.z.string().describe("The text to replace (must match the file contents exactly, including all whitespace and indentation)"),
65627
- newString: zod_1.z.string().describe("The edited text to replace the oldString"),
65628
- replaceAll: zod_1.z.boolean().optional().describe("Replace all occurrences of oldString (default false)")
65629
- })).min(1).describe("List of string replacements to apply")
65630
- })
65633
+ exports2.FileCreateOrUpdateSchema,
65634
+ FileDeleteSchema,
65635
+ FileEditSchema
65631
65636
  ]).describe(`Representation of an operation that modifies a file on the local file system.
65632
65637
  Use the 'insert' operation to create a new file.
65633
65638
  Use the 'delete' operation to remove a file.
@@ -79392,7 +79397,7 @@ var require_orchestrator = __commonJS({
79392
79397
  this.emitEvent("planner:start", {});
79393
79398
  const planner = this.agentsFactory.getAgent({ type: "PLANNER" });
79394
79399
  const plan = await planner.generate(blueprint);
79395
- console.log("Plan", JSON.stringify(plan));
79400
+ console.log("Plan", JSON.stringify(plan, null, 2));
79396
79401
  this.emitEvent("planner:done", {});
79397
79402
  return plan;
79398
79403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.173",
3
+ "version": "1.0.175",
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.25.9"
26
26
  },
27
- "falconPackageHash": "143c2dbe2321cf37cf808acd5d4052c36631cc0a6f612540411cf062"
27
+ "falconPackageHash": "73c70f9e0d128d834cff4412cfede9476b2e52606481b5a7f4609ac7"
28
28
  }