Commit Graph

3 Commits

Author SHA1 Message Date
fc8989bed3 chore: bump version to v0.1.1
All checks were successful
publish / publish (push) Successful in 7s
v0.1.1
2026-10-21 15:46:23 -04:00
b6efefc346 README: drop the claim that the Nook draws these images
The section was carried over from pi-stretch's README, where the Nook really
does read stretchtext. Nothing in the Nook's pi plugin renders image content
blocks, so the claim was unverified at best.

Co-Authored-By: nw-flash-flex <noreply@freno.me>
2026-10-21 15:45:27 -04:00
1c83bd73e2 pi-image-paths: attach dropped image paths and draw them in the chat
All checks were successful
publish / publish (push) Successful in 15s
A screenshot is normally sent to pi as a path, so the model gets its text and
the reader gets nothing: pi renders image blocks in tool results but never on
user messages. This extension closes both halves — the path collapses to
"[Image #N]" as you type or on send, and the picture is drawn below the sent
message.

The rewrite is a terminal-input listener that re-reads a settled editor, joins
word by word for paths with unescaped spaces, and reports a path that does not
exist instead of eating the prompt. The drawing appends a custom session entry
carrying the message's image blocks, one macrotask after message_end so it lands
below the message pi persists afterwards, and renders it with pi-tui's inline
image component under terminal.showImages and terminal.imageWidthCells. Entries
stay out of the model context, so each image is still sent to the model once.

Tests: npm test (21, node:test over a stand-in for pi: rewrite, send-time
attachment, missing paths, append gate, renderer gating) and npm run typecheck.

Co-Authored-By: nw-flash-flex <noreply@freno.me>
v0.1.0
2026-10-21 15:20:12 -04:00