@pi-kaush/pi-content-layout 0.1.15 → 0.1.16

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 CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Restore the blank separator line above the `intercom_message` frame when
6
+ the chat-container hook swaps in this package's box: the swap bypassed
7
+ Pi's leading `Spacer(1)`, so the frame butted against the entry above
8
+ (most visibly a collapsed tool-call group) whenever `pi-intercom` loads
9
+ before this package.
5
10
  - Align native `ThemedText` system notices with the transcript inset. Cache-miss notices gain a `✗` marker and omit `~` before the estimated cost, preserving Pi's cause labels, token counts, warning color, and detection logic.
6
11
 
7
12
  - Restyle the `intercom_message` box even when `pi-intercom` wins Pi's first-registration-wins renderer lookup: a chat-container hook replaces the box Pi built with this package's frame, so the surface no longer depends on `packages` order. The renderer registration stays as the cheaper path when this package loads first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-kaush/pi-content-layout",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Inset Pi's conversation surface and style active and submitted prompts as matching blocks.",
5
5
  "license": "MIT",
6
6
  "author": "Kaushik Gopal",
@@ -259,7 +259,11 @@ export function interceptIntercomMessages(
259
259
  child._expanded === true,
260
260
  theme,
261
261
  );
262
- return box ? box.render(width) : originalRender.call(child, width);
262
+ if (!box) return originalRender.call(child, width);
263
+ // Pi's CustomMessageComponent renders a Spacer(1) ahead of the box.
264
+ // The swap bypasses the host's own render, so reproduce that blank
265
+ // line to keep the frame separated from the entry above it.
266
+ return ["", ...box.render(width)];
263
267
  };
264
268
  restores.push(() => {
265
269
  delete (child as { render?: unknown }).render;