omp-fabric 1.25.20 → 1.25.21

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.
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ import {
33
33
  spinnerFrame,
34
34
  updateSpinner,
35
35
  wrapRowLimitFor
36
- } from "./chunks/chunk-5SSQD7TW.js";
36
+ } from "./chunks/chunk-7NWMFYD3.js";
37
37
  import {
38
38
  formatCost,
39
39
  formatDuration,
@@ -72,11 +72,12 @@ import {
72
72
  resolveFabricIdentity,
73
73
  settleInPlacePrewalk,
74
74
  streamedToolCallName
75
- } from "./chunks/chunk-WM4OV2BY.js";
75
+ } from "./chunks/chunk-OLFP7R5J.js";
76
76
  import "./chunks/chunk-7VIQNUPS.js";
77
77
  import {
78
- AgentTranscriptReader
79
- } from "./chunks/chunk-WQUMHDOS.js";
78
+ AgentTranscriptReader,
79
+ splitTruncationNotice
80
+ } from "./chunks/chunk-ESPCTYVX.js";
80
81
  import "./chunks/chunk-DLXPTBPL.js";
81
82
  import {
82
83
  GUEST_TYPE_DECLARATIONS,
@@ -3288,18 +3289,22 @@ ${preview}` : ""}${hiddenHint}`,
3288
3289
  });
3289
3290
  if (core) return { body: core.lines.join(nl), hidden: core.hidden };
3290
3291
  if (coreToolRendererEnabled(audit, codePreviewSettings)) return null;
3291
- const body2 = nestedCallBody(audit);
3292
- if (!body2) return null;
3292
+ const rawBody = nestedCallBody(audit);
3293
+ if (!rawBody) return null;
3294
+ const notice = splitTruncationNotice(rawBody);
3295
+ const body2 = notice ? notice.text : rawBody;
3296
+ const badge = notice?.label;
3293
3297
  const bodyLines = safeTerminalText(body2).split(nl);
3294
3298
  while (bodyLines.length > 0) {
3295
3299
  const last = bodyLines[bodyLines.length - 1];
3296
3300
  if (last === void 0 || last.trim() === "") bodyLines.pop();
3297
3301
  else break;
3298
3302
  }
3299
- if (bodyLines.length === 0) return null;
3303
+ if (bodyLines.length === 0 && !badge) return null;
3300
3304
  const shown = bodyLines.slice(0, limit);
3305
+ const rendered = shown.map((line) => theme.fg("toolOutput", line || " ")).join(nl);
3301
3306
  return {
3302
- body: shown.map((line) => theme.fg("toolOutput", line || " ")).join(nl),
3307
+ body: badge ? `${rendered}${nl}${theme.fg("muted", `\u2570\u2500 ${badge}`)}` : rendered,
3303
3308
  hidden: bodyLines.length - shown.length
3304
3309
  };
3305
3310
  };