@wix/ditto-codegen-public 1.0.68 → 1.0.69
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 +27 -22
- package/package.json +2 -2
package/dist/out.js
CHANGED
|
@@ -138147,31 +138147,36 @@ var require_orchestrator = __commonJS({
|
|
|
138147
138147
|
* 5. Emitting the agent:done event
|
|
138148
138148
|
*
|
|
138149
138149
|
* This wraps the common pattern used in all process* methods.
|
|
138150
|
+
* If any step fails, agent:error is emitted to ensure task status is updated.
|
|
138150
138151
|
*/
|
|
138151
138152
|
finalizeExtensionGeneration(options) {
|
|
138152
138153
|
const { extension, agentName, agentFiles, scaffolds = [], scaffoldPath, outputPath, generatedConfig } = options;
|
|
138153
|
-
|
|
138154
|
-
|
|
138155
|
-
|
|
138156
|
-
|
|
138157
|
-
|
|
138158
|
-
|
|
138159
|
-
|
|
138160
|
-
|
|
138161
|
-
|
|
138162
|
-
|
|
138163
|
-
|
|
138164
|
-
|
|
138165
|
-
|
|
138166
|
-
|
|
138167
|
-
|
|
138168
|
-
|
|
138169
|
-
|
|
138170
|
-
|
|
138171
|
-
|
|
138172
|
-
|
|
138173
|
-
|
|
138174
|
-
|
|
138154
|
+
try {
|
|
138155
|
+
const filesToCheck = agentFiles.map((f) => f.path || "");
|
|
138156
|
+
const existingFiles = (0, file_collector_1.captureExistingFiles)(filesToCheck, outputPath);
|
|
138157
|
+
this.writeFile(agentFiles, outputPath);
|
|
138158
|
+
const extensionFilePath = extensionGenerators_1.ExtensionFactory.generateExtension({
|
|
138159
|
+
extension,
|
|
138160
|
+
outputPath,
|
|
138161
|
+
scaffoldPath,
|
|
138162
|
+
generatedConfig
|
|
138163
|
+
});
|
|
138164
|
+
const allCreatedFiles = (0, file_collector_1.collectAllCreatedFiles)({
|
|
138165
|
+
scaffolds,
|
|
138166
|
+
agentFiles,
|
|
138167
|
+
extensionFilePath,
|
|
138168
|
+
outputPath,
|
|
138169
|
+
existingFiles
|
|
138170
|
+
});
|
|
138171
|
+
this.emitEvent("agent:done", {
|
|
138172
|
+
extension,
|
|
138173
|
+
name: agentName,
|
|
138174
|
+
files: allCreatedFiles
|
|
138175
|
+
});
|
|
138176
|
+
return extensionFilePath;
|
|
138177
|
+
} catch (error) {
|
|
138178
|
+
throw (0, orchestrator_error_helpers_1.createExtensionErrorHandler)(this, extension)(error);
|
|
138179
|
+
}
|
|
138175
138180
|
}
|
|
138176
138181
|
writeFile(files, outputPath) {
|
|
138177
138182
|
if (!files) {
|
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.69",
|
|
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": "c2667a1bd2287aeab3fb96344df39df53ff34e686be509e20cf2cd93"
|
|
28
28
|
}
|