@wix/ditto-codegen-public 1.0.120 → 1.0.121

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 +13 -8
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -117630,11 +117630,14 @@ var require_utils11 = __commonJS({
117630
117630
  zod_1.z.object({
117631
117631
  operation: zod_1.z.union([
117632
117632
  zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
117633
- zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.UPDATE),
117634
- zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE)
117635
- ]).describe("File operation: insert (new file), update (modify existing), delete (remove file)").default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
117633
+ zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.UPDATE)
117634
+ ]).describe("File operation: insert (new file), update (modify existing)").default(ditto_codegen_types_12.ExtensionGenerationOperation.INSERT),
117636
117635
  path: zod_1.z.string().describe("Relative file path from project root").optional(),
117637
- content: zod_1.z.string().describe("Complete file content as a string (for JSON files, stringify the object). Required for insert and update operations.").optional()
117636
+ content: zod_1.z.string().describe("Complete file content as a string (for JSON files, stringify the object). Required for insert and update operations.")
117637
+ }),
117638
+ zod_1.z.object({
117639
+ operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.DELETE),
117640
+ path: zod_1.z.string().describe("Relative file path from project root")
117638
117641
  }),
117639
117642
  zod_1.z.object({
117640
117643
  operation: zod_1.z.literal(ditto_codegen_types_12.ExtensionGenerationOperation.EDIT),
@@ -133480,11 +133483,13 @@ var require_file_collector = __commonJS({
133480
133483
  });
133481
133484
  });
133482
133485
  agentFiles.forEach((file) => {
133486
+ if (file.operation === ditto_codegen_types_12.ExtensionGenerationOperation.DELETE || file.operation === ditto_codegen_types_12.ExtensionGenerationOperation.EDIT) {
133487
+ allCreatedFiles.push(file);
133488
+ return;
133489
+ }
133483
133490
  const hasScaffold = scaffolds.some((s) => s.path === file.path);
133484
- allCreatedFiles.push({
133485
- ...file,
133486
- operation: hasScaffold ? ditto_codegen_types_12.ExtensionGenerationOperation.INSERT : determineFileOperation(file.path || "", outputPath, existingFiles)
133487
- });
133491
+ const operation = hasScaffold || !file.path ? ditto_codegen_types_12.ExtensionGenerationOperation.INSERT : determineFileOperation(file.path, outputPath, existingFiles);
133492
+ allCreatedFiles.push({ ...file, operation });
133488
133493
  });
133489
133494
  if (extensionFilePath) {
133490
133495
  allCreatedFiles.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
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": "e667cd23c4cdd1c844de330524dee32f6ca13aff0646fe108de33d20"
27
+ "falconPackageHash": "e4988d81bb423f5cae6221518ca7c7e3f12937c96c95cdf314393e3e"
28
28
  }