@danypops/pi-papyrus 0.56.0 → 0.56.2

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/pi-papyrus",
3
- "version": "0.56.0",
3
+ "version": "0.56.2",
4
4
  "description": "Pi host extension for Papyrus: native tools, TUI panels, and context injection over the daemon-backed graph store",
5
5
  "type": "module",
6
6
  "keywords": ["pi-package"],
@@ -24,7 +24,7 @@
24
24
  "@danypops/vehicle-core": "^0.17.1",
25
25
  "@danypops/vehicle-server": "^0.25.2",
26
26
  "beautiful-mermaid": "1.1.3",
27
- "malevich-tui-components": "^0.31.0"
27
+ "malevich-tui-components": "^0.31.1"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@danypops/pi-tui-harness": "^0.0.2",