@wix/ditto-codegen-public 1.0.450 → 1.0.451

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 +16 -10
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -11087,6 +11087,20 @@ var require_CodeGenService = __commonJS({
11087
11087
  ..."stderr" in error && { stderr: error.stderr }
11088
11088
  };
11089
11089
  }
11090
+ function toApiExtension(ext) {
11091
+ return {
11092
+ path: ext.path,
11093
+ extensionType: ext.extensionType,
11094
+ title: ext.title,
11095
+ isSpi: ext.isSpi,
11096
+ routePath: ext.routePath,
11097
+ id: ext.id,
11098
+ files: ext.files.map((f) => ({
11099
+ path: f.path,
11100
+ operation: FILE_OPERATION[f.operation] ?? types_1.FileOperation.UNKNOWN_FILE_OPERATION
11101
+ }))
11102
+ };
11103
+ }
11090
11104
  function toJobOutput(payload) {
11091
11105
  const { requiredPermissions, files, extensions, error, agentMessage, ...rest } = payload;
11092
11106
  return {
@@ -11095,16 +11109,8 @@ var require_CodeGenService = __commonJS({
11095
11109
  path: file.path,
11096
11110
  operation: FILE_OPERATION[file.operation] ?? types_1.FileOperation.UNKNOWN_FILE_OPERATION
11097
11111
  })),
11098
- extensions: extensions?.created?.map((ext) => ({
11099
- path: ext.path,
11100
- extensionType: ext.extensionType,
11101
- title: ext.title,
11102
- isSpi: ext.isSpi,
11103
- files: ext.files.map((f) => ({
11104
- path: f.path,
11105
- operation: FILE_OPERATION[f.operation] ?? types_1.FileOperation.UNKNOWN_FILE_OPERATION
11106
- }))
11107
- })),
11112
+ extensionsCreated: extensions?.created?.map(toApiExtension),
11113
+ extensionsUpdated: extensions?.updated?.map(toApiExtension),
11108
11114
  error: toApiError(error),
11109
11115
  agentMessage,
11110
11116
  agentOutput: Object.keys(rest).length > 0 ? rest : void 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.450",
3
+ "version": "1.0.451",
4
4
  "description": "AI-powered Wix CLI app generator - standalone executable",
5
5
  "scripts": {
6
6
  "build": "node build.mjs",
@@ -29,5 +29,5 @@
29
29
  "esbuild": "^0.27.2",
30
30
  "vitest": "^4.0.16"
31
31
  },
32
- "falconPackageHash": "aad01f2edbf17040d46676c57f7067a74d44ee6df2af105d575f65b2"
32
+ "falconPackageHash": "f3792095ab8a117580890ff1768aba2d3852725b9003a2d6fd4a7ff1"
33
33
  }