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 +98 -91
- package/README.md +277 -272
- package/config/config.example.json +24 -24
- package/package.json +58 -58
- package/src/capabilities.ts +94 -94
- package/src/config-modal.ts +367 -367
- package/src/diff-presentation.ts +72 -0
- package/src/diff-renderer.ts +2116 -1938
- package/src/index.ts +90 -90
- package/src/line-width-safety.ts +90 -90
- package/src/presets.ts +83 -83
- package/src/render-utils.ts +257 -257
- package/src/thinking-label.ts +313 -313
- package/src/tool-overrides.ts +1104 -1104
- package/src/types.ts +83 -83
- package/src/user-message-box-markdown.ts +48 -48
- package/src/user-message-box-native.ts +47 -47
- package/src/user-message-box-patch.ts +39 -39
- package/src/user-message-box-renderer.ts +167 -167
- package/src/user-message-box-utils.ts +155 -155
- package/src/write-display-utils.ts +27 -27
- package/src/zellij-modal.ts +1001 -1001
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.
|
|
11
|
-
|
|
12
|
-
###
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
###
|
|
46
|
-
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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`.
|