@wix/ditto-codegen-public 1.0.408 → 1.0.410

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 +14 -3
  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
+ /* OpenCodeTool.Validate */
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
  };
@@ -15923,7 +15933,7 @@ var require_derived_progress = __commonJS({
15923
15933
  var DerivedProgressReporter = class {
15924
15934
  constructor(progressHandler) {
15925
15935
  this.progressHandler = progressHandler;
15926
- this.reported = /* @__PURE__ */ new Set();
15936
+ this.localReported = /* @__PURE__ */ new Set();
15927
15937
  this.queue = Promise.resolve();
15928
15938
  }
15929
15939
  handle(tool, state, ctx) {
@@ -15932,7 +15942,8 @@ var require_derived_progress = __commonJS({
15932
15942
  const kind = ctx.store?.kind;
15933
15943
  if (!kind || !DERIVED_FLOW_KINDS.has(kind))
15934
15944
  return this.queue;
15935
- const steps = deriveProgressSteps(tool, state).filter((step) => !this.reported.has(step) && this.reported.add(step));
15945
+ const reported = ctx.store ? ctx.store.reportedProgressSteps ??= /* @__PURE__ */ new Set() : this.localReported;
15946
+ const steps = deriveProgressSteps(tool, state).filter((step) => !reported.has(step) && reported.add(step));
15936
15947
  if (!steps.length)
15937
15948
  return this.queue;
15938
15949
  this.queue = this.queue.then(async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/ditto-codegen-public",
3
- "version": "1.0.408",
3
+ "version": "1.0.410",
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": "4b64ba2a210fb2af7b1d174f35282c93f727d9cf617977cbf8228a4e"
32
+ "falconPackageHash": "967c8918b1cdba6d89b10dfb21fe9204a93bcd1e7defc838c0120fc5"
33
33
  }