@xynogen/pix-display 0.3.4 → 0.3.5
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/README.md +9 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
<!-- markdownlint-disable MD013 -->
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://raw.githubusercontent.com/xynogen/pix-mono/main/.github/assets/pix-logo.svg" alt="Pix" width="152" height="80">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
# pix-display
|
|
4
8
|
|
|
5
|
-
Pi core extension — inline chips, thinking blocks, and
|
|
9
|
+
Pi core extension — inline chips, thinking blocks, and framed code snippets.
|
|
6
10
|
|
|
7
11
|
## What it does
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Four features, always on when installed:
|
|
10
14
|
|
|
11
15
|
**Inline chips.** Renders `<path>…</path>` spans (written by e.g. `pix-search`) as `@name` chips, `<skill>…</skill>` spans (written by the `pix-skills` `$` picker) as `$name` chips with the skills.sh `owner/repo` in dim, and replaces Pi's paste markers (`[paste #1 2232 chars]`) with styled icon chips: `image #1` for image pastes (blue), `text N chars` / `text Nk chars` for text pastes over 100 characters (green). A shorter paste stays inline, even with many lines. Collapses pasted image paths into markers in the buffer while showing human-readable labels on screen. The display rewrite is purely visual — the buffer keeps the real path for the model. Expansion wraps each paste in `<paste>…</paste>` so adjacent pastes don't merge into one wall in the model-facing text. Sent user messages get the same treatment in the transcript (display-only, via Pi's Markdown transformer hook, Pi ≥ 0.85): `<paste>`/`<path>`/`<skill>` spans collapse to inline chips, text pastes keep a head…tail glimpse. The chip code lives in `@xynogen/pix-pretty/chips`. pix-display only calls `registerChips(pi)`.
|
|
12
16
|
|
|
13
17
|
**Thinking blocks.** Converts leaked reasoning tags (`<think>`/`<thinking>`) from some providers into native Pi `thinking` content blocks, which render dim + italic via the `thinkingText` theme token. No ANSI injection, no markdown blockquote shim. Applies during streaming (`message_update`) and finalization (`message_end`).
|
|
14
18
|
|
|
15
|
-
**Code snippets.** Renders every fenced code block in assistant responses inside a themed, language-labeled frame
|
|
19
|
+
**Code snippets.** Renders every fenced code block in assistant responses inside a themed, language-labeled frame, including Python, TypeScript, JSON, YAML, Rust, Go, SQL, shell, and arbitrary custom language tags. Untagged fences use a `code` label. Pi's native syntax highlighting remains intact for recognized languages, while long lines clip to the terminal width.
|
|
20
|
+
|
|
21
|
+
**Working timer.** While the agent runs, the TUI working message shows the elapsed time, for example `Working (12s)`. It clears when the agent stops.
|
|
16
22
|
|
|
17
23
|
The features are registered at session start. TUI-only display changes are no-ops in JSON/RPC/print modes. In-process non-TUI child sessions (such as background subagents) do not clear the parent TUI's renderer state.
|
|
18
24
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynogen/pix-display",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "Pi core extension
|
|
3
|
+
"version": "0.3.5",
|
|
4
|
+
"description": "Pi core extension — inline chips, thinking blocks, and framed code rendering",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"scripts": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xynogen/pix-pretty": "^1.
|
|
43
|
-
"@xynogen/pix-runtime": "^0.
|
|
42
|
+
"@xynogen/pix-pretty": "^1.37.0",
|
|
43
|
+
"@xynogen/pix-runtime": "^0.17.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"@earendil-works/pi-coding-agent": "*",
|