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/CHANGELOG.md +9 -0
- package/dist/chunks/{chunk-5SSQD7TW.js → chunk-7NWMFYD3.js} +73 -20
- package/dist/chunks/chunk-7NWMFYD3.js.map +7 -0
- package/dist/chunks/{chunk-WQUMHDOS.js → chunk-ESPCTYVX.js} +39 -1
- package/dist/chunks/chunk-ESPCTYVX.js.map +7 -0
- package/dist/chunks/{chunk-WM4OV2BY.js → chunk-OLFP7R5J.js} +2 -2
- package/dist/core/truncation-marker.d.ts +8 -0
- package/dist/core/truncation-marker.d.ts.map +1 -0
- package/dist/fabric-exec-tool.d.ts.map +1 -1
- package/dist/fabric-runtime-state.js +3 -3
- package/dist/fabric-runtime-state.js.map +3 -3
- package/dist/index.js +13 -8
- package/dist/index.js.map +2 -2
- package/dist/providers/omp-tools-provider.d.ts +2 -1
- package/dist/providers/omp-tools-provider.d.ts.map +1 -1
- package/dist/ui/core-tool-render.d.ts.map +1 -1
- package/dist/ui/dashboard.js +2 -2
- package/dist/ui/fabric-render.d.ts.map +1 -1
- package/docs/architecture.md +6 -0
- package/package.json +1 -1
- package/dist/chunks/chunk-5SSQD7TW.js.map +0 -7
- package/dist/chunks/chunk-WQUMHDOS.js.map +0 -7
- /package/dist/chunks/{chunk-WM4OV2BY.js.map → chunk-OLFP7R5J.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
spinnerFrame,
|
|
34
34
|
updateSpinner,
|
|
35
35
|
wrapRowLimitFor
|
|
36
|
-
} from "./chunks/chunk-
|
|
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-
|
|
75
|
+
} from "./chunks/chunk-OLFP7R5J.js";
|
|
76
76
|
import "./chunks/chunk-7VIQNUPS.js";
|
|
77
77
|
import {
|
|
78
|
-
AgentTranscriptReader
|
|
79
|
-
|
|
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
|
|
3292
|
-
if (!
|
|
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:
|
|
3307
|
+
body: badge ? `${rendered}${nl}${theme.fg("muted", `\u2570\u2500 ${badge}`)}` : rendered,
|
|
3303
3308
|
hidden: bodyLines.length - shown.length
|
|
3304
3309
|
};
|
|
3305
3310
|
};
|