@wix/ditto-codegen-public 1.0.409 → 1.0.411

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 +11 -1
  2. package/package.json +2 -2
package/dist/out.js CHANGED
@@ -15560,6 +15560,14 @@ var require_parser = __commonJS({
15560
15560
  function truncate(s, max = 200) {
15561
15561
  return s.length > max ? `${s.slice(0, max)}\u2026 (${s.length} chars)` : s;
15562
15562
  }
15563
+ var FULL_OUTPUT_TOOLS = /* @__PURE__ */ new Set([
15564
+ "validate",
15565
+ "task"
15566
+ ]);
15567
+ var FULL_OUTPUT_CAP = 2e4;
15568
+ function summarizeOutput(tool, output) {
15569
+ return FULL_OUTPUT_TOOLS.has(tool) ? truncate(output, FULL_OUTPUT_CAP) : truncate(output);
15570
+ }
15563
15571
  function summarizeInput(input) {
15564
15572
  if (input.files) {
15565
15573
  return { files: input.files.map(({ path }) => ({ path })) };
@@ -15612,7 +15620,9 @@ var require_parser = __commonJS({
15612
15620
  state: {
15613
15621
  ...state,
15614
15622
  ...state?.input && { input: summarizeInput(state.input) },
15615
- ...state?.output && { output: truncate(state.output) }
15623
+ ...state?.output && {
15624
+ output: summarizeOutput(part.tool, state.output)
15625
+ }
15616
15626
  }
15617
15627
  }
15618
15628
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.409",
3
+ "version": "1.0.411",
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": "68f983385e00104afce70a71b9502441262b324a54ffc16ae567ff5e"
32
+ "falconPackageHash": "6ccf4f3ae101f2d30e9c0955feeb163415113deb0988fd1dcb5665b4"
33
33
  }