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