pi-tool-display 0.1.7 → 0.1.8

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
@@ -1,91 +1,98 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [Unreleased]
9
-
10
- ## [0.1.7] - 2026-03-07
11
-
12
- ### Added
13
- - Added line-width safety utilities for diff rendering so collapsed and expanded diff output can be clamped to the current pane width.
14
- - Added utility test coverage for write display helpers, native user message box helpers, and narrow-width diff hint behavior.
15
-
16
- ### Changed
17
- - Updated README documentation to reflect the current command surface, config model, width-safe diff behavior, native user message box pipeline, and project structure.
18
- - Refactored native user message box rendering into focused markdown, patching, renderer, and ANSI/background utility modules.
19
-
20
- ### Fixed
21
- - Prevented diff rendering and collapsed diff hints from overflowing narrow terminal widths by progressively shortening hint text and clamping rendered lines.
22
- - Preserved inline `write` call summaries with line-count and byte-size metadata when content is available.
23
- - Prevented thinking label presentation changes from leaking into future assistant context by sanitizing stored thinking blocks during the `context` extension event.
24
- - Hardened thinking label normalization to strip ANSI residue fragments such as `38;5;208m` before display formatting.
25
- - Restored final-message thinking label persistence on `message_end` so themed labels remain consistent after streaming and across session reloads.
26
- - Improved native user message box rendering so markdown content, ANSI-only blank lines, and background fill behave more consistently.
27
-
28
- ## [0.1.6] - 2026-03-04
29
-
30
- ### Fixed
31
- - Use absolute GitHub raw URL for README image to fix npm display
32
-
33
- ## [0.1.5] - 2026-03-04
34
-
35
- ### Added
36
- - Thinking labels feature that prefixes AI reasoning blocks with themed "Thinking:" labels for better readability
37
-
38
- ### Changed
39
- - Rewrote README.md with professional documentation standards
40
- - Added comprehensive feature documentation, configuration reference, and usage examples
41
- - Simplified settings modal by removing less-used advanced options (expandedPreviewMaxLines, diffSplitMinWidth, diffCollapsedLines, tool ownership toggles)
42
-
43
- ## [0.1.4] - 2026-03-02
44
-
45
- ### Added
46
- - Auto-detection of MCP and RTK capabilities to conditionally expose related UI/config controls.
47
-
48
- ### Changed
49
- - `/tool-display` modal now hides MCP settings when MCP tooling is unavailable.
50
- - `/tool-display` modal now hides RTK compaction hint settings when RTK optimizer is unavailable.
51
- - Runtime rendering now force-disables MCP output mode and RTK hint rendering when those capabilities are unavailable.
52
- - Native user message box is now user-configurable via `enableNativeUserMessageBox` in config and `/tool-display` settings.
53
-
54
- ## [0.1.3] - 2026-03-02
55
-
56
- ### Added
57
- - Added per-tool ownership config via `registerToolOverrides` for `read`, `grep`, `find`, `ls`, `bash`, `edit`, and `write` so users can avoid tool ownership conflicts with other extensions.
58
- - Added settings modal toggles for built-in tool ownership and `/reload` guidance when ownership changes.
59
- - Added backward-compatible config migration from legacy `registerReadToolOverride` to `registerToolOverrides.read`.
60
-
61
- ### Changed
62
- - Built-in tool override registration is now conditional per tool based on ownership settings.
63
- - Updated README configuration/troubleshooting docs for multi-tool extension compatibility.
64
-
65
- ## [0.1.2] - 2026-03-01
66
-
67
- ### Fixed
68
- - Corrected `write` call rendering state handling so path changes without new content no longer reuse stale line/size metadata from previous writes.
69
- - Restored write call suffix rendering (`(X lines, Y)`) when content is available, improving call summary consistency.
70
-
71
- ## [0.1.1] - 2026-03-01
72
-
73
- ### Changed
74
- - Reorganized repository layout to a cleaner package structure:
75
- - moved implementation modules to `src/`
76
- - moved screenshot assets to `assets/`
77
- - moved example config to `config/`
78
- - kept root `index.ts` as stable Pi auto-discovery entrypoint.
79
- - Simplified TypeScript build command to use `tsconfig.json` project mode.
80
- - Updated README installation heading now that npm package is published.
81
-
82
- ## [0.1.0] - 2026-03-01
83
-
84
- ### Added
85
- - Public repository scaffolding (`README.md`, `LICENSE`, `CHANGELOG.md`, `.gitignore`, `.npmignore`).
86
- - Package metadata for public distribution (`keywords`, `files`, `license`, `publishConfig`, engine constraints).
87
- - Vendored `zellij-modal.ts` to keep this extension self-contained as a standalone repository.
88
-
89
- ### Changed
90
- - Updated `config-modal.ts` to use local `zellij-modal.ts` import.
91
- - Updated build script to include `zellij-modal.ts`.
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.8] - 2026-03-12
11
+
12
+ ### Changed
13
+ - Extracted diff presentation logic into dedicated `diff-presentation.ts` module with `DiffPresentationMode`, `buildDiffSummaryText`, `normalizeDiffRenderWidth`, and `resolveDiffPresentationMode` utilities
14
+ - Improved compact line rendering with dedicated marker and prefix functions
15
+ - Added width-safe diff rendering utilities for consistent terminal width handling
16
+
17
+ ## [0.1.7] - 2026-03-07
18
+
19
+ ### Added
20
+ - Added line-width safety utilities for diff rendering so collapsed and expanded diff output can be clamped to the current pane width.
21
+ - Added utility test coverage for write display helpers, native user message box helpers, and narrow-width diff hint behavior.
22
+
23
+ ### Changed
24
+ - Updated README documentation to reflect the current command surface, config model, width-safe diff behavior, native user message box pipeline, and project structure.
25
+ - Refactored native user message box rendering into focused markdown, patching, renderer, and ANSI/background utility modules.
26
+
27
+ ### Fixed
28
+ - Prevented diff rendering and collapsed diff hints from overflowing narrow terminal widths by progressively shortening hint text and clamping rendered lines.
29
+ - Preserved inline `write` call summaries with line-count and byte-size metadata when content is available.
30
+ - Prevented thinking label presentation changes from leaking into future assistant context by sanitizing stored thinking blocks during the `context` extension event.
31
+ - Hardened thinking label normalization to strip ANSI residue fragments such as `38;5;208m` before display formatting.
32
+ - Restored final-message thinking label persistence on `message_end` so themed labels remain consistent after streaming and across session reloads.
33
+ - Improved native user message box rendering so markdown content, ANSI-only blank lines, and background fill behave more consistently.
34
+
35
+ ## [0.1.6] - 2026-03-04
36
+
37
+ ### Fixed
38
+ - Use absolute GitHub raw URL for README image to fix npm display
39
+
40
+ ## [0.1.5] - 2026-03-04
41
+
42
+ ### Added
43
+ - Thinking labels feature that prefixes AI reasoning blocks with themed "Thinking:" labels for better readability
44
+
45
+ ### Changed
46
+ - Rewrote README.md with professional documentation standards
47
+ - Added comprehensive feature documentation, configuration reference, and usage examples
48
+ - Simplified settings modal by removing less-used advanced options (expandedPreviewMaxLines, diffSplitMinWidth, diffCollapsedLines, tool ownership toggles)
49
+
50
+ ## [0.1.4] - 2026-03-02
51
+
52
+ ### Added
53
+ - Auto-detection of MCP and RTK capabilities to conditionally expose related UI/config controls.
54
+
55
+ ### Changed
56
+ - `/tool-display` modal now hides MCP settings when MCP tooling is unavailable.
57
+ - `/tool-display` modal now hides RTK compaction hint settings when RTK optimizer is unavailable.
58
+ - Runtime rendering now force-disables MCP output mode and RTK hint rendering when those capabilities are unavailable.
59
+ - Native user message box is now user-configurable via `enableNativeUserMessageBox` in config and `/tool-display` settings.
60
+
61
+ ## [0.1.3] - 2026-03-02
62
+
63
+ ### Added
64
+ - Added per-tool ownership config via `registerToolOverrides` for `read`, `grep`, `find`, `ls`, `bash`, `edit`, and `write` so users can avoid tool ownership conflicts with other extensions.
65
+ - Added settings modal toggles for built-in tool ownership and `/reload` guidance when ownership changes.
66
+ - Added backward-compatible config migration from legacy `registerReadToolOverride` to `registerToolOverrides.read`.
67
+
68
+ ### Changed
69
+ - Built-in tool override registration is now conditional per tool based on ownership settings.
70
+ - Updated README configuration/troubleshooting docs for multi-tool extension compatibility.
71
+
72
+ ## [0.1.2] - 2026-03-01
73
+
74
+ ### Fixed
75
+ - Corrected `write` call rendering state handling so path changes without new content no longer reuse stale line/size metadata from previous writes.
76
+ - Restored write call suffix rendering (`(X lines, Y)`) when content is available, improving call summary consistency.
77
+
78
+ ## [0.1.1] - 2026-03-01
79
+
80
+ ### Changed
81
+ - Reorganized repository layout to a cleaner package structure:
82
+ - moved implementation modules to `src/`
83
+ - moved screenshot assets to `assets/`
84
+ - moved example config to `config/`
85
+ - kept root `index.ts` as stable Pi auto-discovery entrypoint.
86
+ - Simplified TypeScript build command to use `tsconfig.json` project mode.
87
+ - Updated README installation heading now that npm package is published.
88
+
89
+ ## [0.1.0] - 2026-03-01
90
+
91
+ ### Added
92
+ - Public repository scaffolding (`README.md`, `LICENSE`, `CHANGELOG.md`, `.gitignore`, `.npmignore`).
93
+ - Package metadata for public distribution (`keywords`, `files`, `license`, `publishConfig`, engine constraints).
94
+ - Vendored `zellij-modal.ts` to keep this extension self-contained as a standalone repository.
95
+
96
+ ### Changed
97
+ - Updated `config-modal.ts` to use local `zellij-modal.ts` import.
98
+ - Updated build script to include `zellij-modal.ts`.