@wix/ditto-codegen-public 1.0.120 → 1.0.122
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 +14 -9
- 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
|
-
|
|
117635
|
-
|
|
117636
|
-
|
|
117637
|
-
|
|
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),
|
|
117635
|
+
path: zod_1.z.string().describe("Relative file path from project root"),
|
|
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
|
-
|
|
133485
|
-
|
|
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.
|
|
3
|
+
"version": "1.0.122",
|
|
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": "
|
|
27
|
+
"falconPackageHash": "e5a5857f23d9de40882550d9c575890cda573c05d278aa8f4a6cabae"
|
|
28
28
|
}
|