@danypops/pi-papyrus 0.56.0 → 0.56.1
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/extension/src/index.ts +9 -0
- package/package.json +1 -1
package/extension/src/index.ts
CHANGED
|
@@ -48,6 +48,7 @@ import {
|
|
|
48
48
|
import { emitTaskFocusEvent, setTaskFocusEventBus } from "./task/task-focus-events.ts";
|
|
49
49
|
import { TASK_STATUS_PRESENTATION, taskTreeConnector } from "./task/task-presentation.ts";
|
|
50
50
|
import { buildTaskWidgetProjection, type TaskWidgetProjection } from "./task/task-widget.ts";
|
|
51
|
+
import { measure as artifactCardMeasure } from "./tool-rendering/artifact-card.ts";
|
|
51
52
|
import { renderPapyrusToolCall, renderPapyrusToolResult } from "./tool-rendering/index.ts";
|
|
52
53
|
import {
|
|
53
54
|
createArtifactDetails,
|
|
@@ -374,6 +375,14 @@ export class PapyrusWidgetGroup {
|
|
|
374
375
|
owner: vehicleWidgetOwner(PAPYRUS_VEHICLE_NAME),
|
|
375
376
|
sections,
|
|
376
377
|
ownerStyle: (s) => theme.fg("muted", s),
|
|
378
|
+
// Without this, renderWidgetSectionGroup falls back to malevich's own asciiTextMeasure,
|
|
379
|
+
// which is documented as having no ANSI-escape awareness -- every task row here is real
|
|
380
|
+
// ANSI-colored content (theme.fg() for focus/status glyphs), so the naive measure
|
|
381
|
+
// mismeasures its true visible width, breaking the two-column grid's own alignment (a
|
|
382
|
+
// real, live incident: the SplitPane border landed mid-line instead of after the actual
|
|
383
|
+
// column boundary). See tool-rendering/artifact-card.ts's own identical measure -- same
|
|
384
|
+
// fix, reused rather than re-derived.
|
|
385
|
+
measure: artifactCardMeasure,
|
|
377
386
|
}).render(width);
|
|
378
387
|
}
|
|
379
388
|
|
package/package.json
CHANGED