@wix/ditto-codegen-public 1.0.176 → 1.0.177

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 +28 -5
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -772,6 +772,24 @@ var require_status = __commonJS({
772
772
  }
773
773
  });
774
774
 
775
+ // ../codegen-types/dist/types/task.js
776
+ var require_task = __commonJS({
777
+ "../codegen-types/dist/types/task.js"(exports2) {
778
+ "use strict";
779
+ Object.defineProperty(exports2, "__esModule", { value: true });
780
+ exports2.TaskKind = void 0;
781
+ var TaskKind;
782
+ (function(TaskKind2) {
783
+ TaskKind2["INIT_CODEGEN"] = "INIT_CODEGEN";
784
+ TaskKind2["ITERATE_CODEGEN"] = "ITERATE_CODEGEN";
785
+ TaskKind2["VALIDATION"] = "VALIDATION";
786
+ TaskKind2["CODEGEN"] = "CODEGEN";
787
+ TaskKind2["FIX_CODE"] = "FIX_CODE";
788
+ TaskKind2["RUN_AGENT"] = "RUN_AGENT";
789
+ })(TaskKind || (exports2.TaskKind = TaskKind = {}));
790
+ }
791
+ });
792
+
775
793
  // ../codegen-types/dist/types/generation.js
776
794
  var require_generation = __commonJS({
777
795
  "../codegen-types/dist/types/generation.js"(exports2) {
@@ -828,6 +846,7 @@ var require_dist = __commonJS({
828
846
  Object.defineProperty(exports2, "__esModule", { value: true });
829
847
  __exportStar2(require_errors(), exports2);
830
848
  __exportStar2(require_status(), exports2);
849
+ __exportStar2(require_task(), exports2);
831
850
  __exportStar2(require_generation(), exports2);
832
851
  __exportStar2(require_ai(), exports2);
833
852
  }
@@ -1393,7 +1412,8 @@ var require_CodeGenService = __commonJS({
1393
1412
  name: task?.name || task?.kind || "unknown",
1394
1413
  status: this.toEnumStatus(task?.status),
1395
1414
  description: typeof task?.description === "string" ? task.description : task?.payload ? JSON.stringify(task.payload) : "",
1396
- error: typeof task?.error === "string" ? task.error : void 0
1415
+ error: typeof task?.error === "string" ? task.error : void 0,
1416
+ agentName: task?.agentName || void 0
1397
1417
  };
1398
1418
  }
1399
1419
  mapServerJob(job) {
@@ -78261,10 +78281,11 @@ var require_fixFlow = __commonJS({
78261
78281
  };
78262
78282
  await codeGenerationService_12.codeGenerationService.addTask(parentContext.jobId, {
78263
78283
  id: fixTaskId,
78264
- kind: "fix_code",
78284
+ kind: ditto_codegen_types_12.TaskKind.FIX_CODE,
78265
78285
  name: "Auto-Fixer",
78266
78286
  status: ditto_codegen_types_12.Status.RUNNING,
78267
- description: "Running automatic code fixes"
78287
+ description: "Running automatic code fixes",
78288
+ agentName: "NaiveFixerAgent"
78268
78289
  });
78269
78290
  console.log("\u{1F50D} Running validation and batch fix...");
78270
78291
  const processFiles = async (fileEntries, lastRunErrors) => {
@@ -85618,6 +85639,7 @@ var require_codegen_flow_helpers = __commonJS({
85618
85639
  var http_1 = require_http_impl();
85619
85640
  var http_client_1 = require_index_node();
85620
85641
  var orchestrator_1 = require_orchestrator();
85642
+ var AgentsFactory_1 = require_AgentsFactory();
85621
85643
  var slugify = (str = "") => {
85622
85644
  return str.toLowerCase().replace(/ /g, "-");
85623
85645
  };
@@ -85630,11 +85652,12 @@ var require_codegen_flow_helpers = __commonJS({
85630
85652
  const taskId = getTaskId(extension);
85631
85653
  codeGenerationService_12.codeGenerationService.addTask(jobContext.jobId, {
85632
85654
  id: taskId,
85633
- kind: "run_agent",
85655
+ kind: ditto_codegen_types_12.TaskKind.RUN_AGENT,
85634
85656
  status: ditto_codegen_types_12.Status.RUNNING,
85635
85657
  name: "run_agent",
85636
85658
  description: `Run agent for ${extension.name}`,
85637
- payload: { extension }
85659
+ payload: { extension },
85660
+ agentName: new AgentsFactory_1.AgentsFactory().getAgent(extension).name
85638
85661
  });
85639
85662
  });
85640
85663
  eventEmitter.onEvent("agent:done", ({ extension, files }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.176",
3
+ "version": "1.0.177",
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": "011d7b1d789274753bb72c420afe5c8d8ac71af7d15471b76b7ce6e6"
27
+ "falconPackageHash": "9f68334a2f9963cb8463ec0b5246ac3f6ac2e262475a314d95d2360b"
28
28
  }