@wix/ditto-codegen-public 1.0.175 → 1.0.176

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 +5 -8
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -36558,19 +36558,16 @@ var require_CodegenAIProxyService = __commonJS({
36558
36558
  authorization: `Bearer ${process.env.WIX_ACCESS_TOKEN}`
36559
36559
  }
36560
36560
  });
36561
- if (!aiGenerationResult.ok) {
36562
- bail(new ditto_codegen_types_12.GenerateObjectError(`Fatal error HTTP ${aiGenerationResult.status} ${aiGenerationResult.statusText}`, {
36563
- status: aiGenerationResult.status,
36564
- statusText: aiGenerationResult.statusText,
36565
- url
36566
- }));
36567
- }
36568
36561
  const { generationRequest } = await aiGenerationResult.json();
36569
36562
  if (generationRequest.status === ditto_codegen_types_12.GenerationRequestStatus.COMPLETED) {
36570
36563
  return JSON.parse(generationRequest.response);
36571
36564
  }
36572
36565
  if (generationRequest.status === ditto_codegen_types_12.GenerationRequestStatus.FAILED) {
36573
- throw new Error(`Error occured during generate: ${JSON.stringify(generationRequest.error)}`);
36566
+ bail(new ditto_codegen_types_12.GenerateObjectError(`Error occured during generate: ${JSON.stringify(generationRequest.error)}`, {
36567
+ status: aiGenerationResult.status,
36568
+ statusText: aiGenerationResult.statusText,
36569
+ url
36570
+ }));
36574
36571
  }
36575
36572
  throw new Error(`Polling status is ${generationRequest.status}`);
36576
36573
  }, { retries: 30, factor: 1, minTimeout: 5e3 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.175",
3
+ "version": "1.0.176",
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": "73c70f9e0d128d834cff4412cfede9476b2e52606481b5a7f4609ac7"
27
+ "falconPackageHash": "011d7b1d789274753bb72c420afe5c8d8ac71af7d15471b76b7ce6e6"
28
28
  }