@quandev104/pi-style 0.2.2 → 0.2.4
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 +11 -0
- package/README.md +8 -3
- package/dist/extensions/pi-style.js +715 -49
- package/dist/extensions/pi-style.js.map +1 -1
- package/extension-src/pi-style/app/command-service.ts +8 -0
- package/extension-src/pi-style/app/runtime.ts +4 -0
- package/extension-src/pi-style/domain/config-normalization.ts +11 -1
- package/extension-src/pi-style/domain/config-types.ts +12 -0
- package/extension-src/pi-style/domain/status-renderer.ts +1 -1
- package/extension-src/pi-style/domain/status.ts +13 -7
- package/extension-src/pi-style/features/editor/index.ts +127 -0
- package/extension-src/pi-style/features/messages/image-input.ts +205 -0
- package/extension-src/pi-style/features/messages/image-preview.ts +335 -0
- package/extension-src/pi-style/features/messages/render-config.ts +36 -0
- package/extension-src/pi-style/pi/index.ts +68 -2
- package/extension-src/pi-style/pi/session-coordinator.ts +13 -0
- package/extension-src/pi-style/shared/clipboard-path.ts +98 -0
- package/extension-src/pi-style/shared/clipboard-presence.ts +112 -0
- package/extension-src/pi-style/shared/pending-images.ts +199 -0
- package/package.json +1 -1
- package/extension-src/pi-style/features/.gitkeep +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.3] - 2026-08-22
|
|
4
|
+
|
|
5
|
+
### Documentation
|
|
6
|
+
|
|
7
|
+
- *(readme)* Document image features, herdr caveat, absolute demo URL
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- *(status-line)* Pipe-delimited context block with token totals
|
|
12
|
+
- *(images)* User-prompt image previews and clipboard image input
|
|
13
|
+
|
|
3
14
|
## [0.2.2] - 2026-08-17
|
|
4
15
|
|
|
5
16
|
### Performance
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-

|
|
10
|
+

|
|
11
11
|
|
|
12
12
|
---
|
|
13
13
|
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
- **Messages** — assistant prefix and boxed compaction/skill/branch/MCP special blocks, and certified tool call/result selectors with pending/running/error markers.
|
|
20
20
|
- **Interim narration hiding** — the text of assistant messages that also carry tool calls is hidden (`messages.hideInterimText`): the feed shows only the tool blocks, the run summary, and the final answer.
|
|
21
21
|
- **Turn summaries** — when a turn completes, its finalized tool blocks collapse into one summary line (`➔ Read 2 files, ran 4 shell commands · 3.1s`); errors and interrupted turns stay visible, and Pi's global Ctrl+O toggle expands everything again (`tools.collapseAfterTurn`).
|
|
22
|
+
- **User-prompt image previews** — images attached to your prompt render inline **below your message** as display-only session entries (never sent to the LLM) with `#N · WxH` labels tying each image to its marker; multiple images lay out side-by-side on kitty-capable terminals (up to 3 columns, stacked fallback elsewhere), sized by `messages.previewMaxWidth` (default 30) with Pi's global Ctrl+O expanding to 60 (`messages.showImagePreviews`).
|
|
23
|
+
- **Clipboard image input** — the built-in `Ctrl+V` becomes a full image-paste flow with no other extension required: a sync native probe checks the clipboard at keystroke time, an `[Image #N] ` marker appears instantly in the editor (bytes attach asynchronously — no temp-file flash), backspacing right after a marker deletes it as one unit (discarding the image, image-paste semantics), and submit attaches real image attachments; raw pasted paths that bypass the editor still upgrade to `[image]` + attachment (`messages.clipboardImages`).
|
|
22
24
|
- **Auto theme** — the `titanium` palette is applied at TUI session start when no other theme is active (configurable via `theme.autoApply`, disable with `"off"`).
|
|
23
25
|
- **One visual system** — shared semantic theme, glyph sets (Nerd/Unicode/ASCII), and ANSI-safe rendering across every surface.
|
|
24
26
|
|
|
@@ -52,7 +54,8 @@ No configuration is required. The `default` preset enables:
|
|
|
52
54
|
- `dock` editor (rounded input box) with metadata ownership resolved so the status line and editor do not duplicate text;
|
|
53
55
|
- `compact` startup header (gradient logo block only; resource chips are opt-in);
|
|
54
56
|
- the `titanium` theme auto-applied at session start (`theme.autoApply`, default `"titanium"`; set `"off"` to keep your active Pi theme);
|
|
55
|
-
- certified message prefixes and boxed tool presentation when the runtime surface identity matches a recorded fingerprint
|
|
57
|
+
- certified message prefixes and boxed tool presentation when the runtime surface identity matches a recorded fingerprint;
|
|
58
|
+
- the complete image-paste flow out of the box: `Ctrl+V` → instant `[Image #N]` marker → submit → attachment + inline side-by-side preview below your message.
|
|
56
59
|
|
|
57
60
|
Override any documented leaf through global/project `piStyle` settings, environment, or session commands. Precedence:
|
|
58
61
|
|
|
@@ -116,6 +119,7 @@ Tier C surfaces are immutable session authorizations, not persisted config:
|
|
|
116
119
|
--pi-style-message-assistant
|
|
117
120
|
--pi-style-message-special-blocks
|
|
118
121
|
--pi-style-tools
|
|
122
|
+
--pi-style-readonly-tools
|
|
119
123
|
--pi-style-ascii
|
|
120
124
|
```
|
|
121
125
|
|
|
@@ -147,6 +151,7 @@ Ordinary mutations are session-only; persistence requires an explicit `global` o
|
|
|
147
151
|
- Tier C core patches (message prefixes, special blocks, tool selectors) are identity-certified per surface against recorded fingerprints (Pi `0.83.0`/`0.84.0` observed), isolated, reversible, and flag/config gated; any surface whose runtime identity is not recorded falls back natively on its own.
|
|
148
152
|
- No render-time I/O: filesystem, Git, settings, and session data flow through cached providers into immutable snapshots.
|
|
149
153
|
- Terminal-global background synchronization is unsupported/off for technical v1; explicit cell backgrounds and Pi theme APIs remain supported.
|
|
154
|
+
- Terminal multiplexers gate kitty graphics: in herdr, previews (and Pi's own tool-result images) require `experimental.kitty_graphics = true` in `~/.config/herdr/config.toml` plus a server restart; tmux disables images upstream.
|
|
150
155
|
|
|
151
156
|
---
|
|
152
157
|
|
|
@@ -189,7 +194,7 @@ npm run check
|
|
|
189
194
|
|
|
190
195
|
`npm run check` runs all required automated gates in order.
|
|
191
196
|
|
|
192
|
-
Current test suite:
|
|
197
|
+
Current test suite: 817 tests across 41 files.
|
|
193
198
|
|
|
194
199
|
---
|
|
195
200
|
|