@quandev104/pi-style 0.1.3 → 0.1.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +8 -4
  3. package/dist/extensions/pi-style.js +3777 -958
  4. package/dist/extensions/pi-style.js.map +1 -1
  5. package/extension-src/pi-style/app/command-service.ts +2 -0
  6. package/extension-src/pi-style/domain/config-normalization.ts +21 -5
  7. package/extension-src/pi-style/domain/config-presets.ts +1 -1
  8. package/extension-src/pi-style/domain/config-types.ts +7 -3
  9. package/extension-src/pi-style/domain/status.ts +1 -1
  10. package/extension-src/pi-style/domain/theme.ts +6 -1
  11. package/extension-src/pi-style/features/editor/index.ts +169 -27
  12. package/extension-src/pi-style/features/messages/index.ts +66 -0
  13. package/extension-src/pi-style/features/tools/bash-execution.ts +112 -0
  14. package/extension-src/pi-style/features/tools/boxed/bash.ts +430 -172
  15. package/extension-src/pi-style/features/tools/boxed/batch.ts +50 -27
  16. package/extension-src/pi-style/features/tools/boxed/command-shape.ts +136 -0
  17. package/extension-src/pi-style/features/tools/boxed/edit.ts +28 -2
  18. package/extension-src/pi-style/features/tools/boxed/fallback.ts +47 -4
  19. package/extension-src/pi-style/features/tools/boxed/find.ts +2 -2
  20. package/extension-src/pi-style/features/tools/boxed/gh.ts +1012 -0
  21. package/extension-src/pi-style/features/tools/boxed/git.ts +1960 -0
  22. package/extension-src/pi-style/features/tools/boxed/grep.ts +2 -2
  23. package/extension-src/pi-style/features/tools/boxed/output-tree.ts +9 -10
  24. package/extension-src/pi-style/features/tools/boxed/quick-edit.ts +25 -4
  25. package/extension-src/pi-style/features/tools/boxed/read.ts +3 -3
  26. package/extension-src/pi-style/features/tools/boxed/session-config.ts +64 -4
  27. package/extension-src/pi-style/features/tools/boxed/shared.ts +41 -1
  28. package/extension-src/pi-style/features/tools/boxed/write.ts +19 -2
  29. package/extension-src/pi-style/pi/compatibility-coordinator.ts +17 -0
  30. package/extension-src/pi-style/pi/compatibility-probe.ts +104 -10
  31. package/extension-src/pi-style/pi/compatibility-registry.ts +19 -3
  32. package/extension-src/pi-style/pi/index.ts +18 -1
  33. package/extension-src/pi-style/pi/session-coordinator.ts +33 -1
  34. package/extension-src/pi-style/shared/box.ts +86 -25
  35. package/extension-src/pi-style/shared/split-diff.ts +9 -9
  36. package/package.json +1 -1
  37. package/themes/titanium-light.json +82 -0
  38. package/themes/titanium.json +79 -0
  39. package/themes/.gitkeep +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.5] - 2026-08-05
4
+
5
+ ### Bug Fixes
6
+
7
+ - *(box)* Visible dim terminal-default frame borders (match omp)
8
+ - *(box)* Dim terminal-default for tree/divider/gutter lines (match omp)
9
+ - *(git,gh)* Dim terminal-default tree branches (match omp)
10
+ - *(box)* Rename find tool header label from Glob to Find
11
+
12
+ ### Features
13
+
14
+ - Rounded dock editor frame with dim hint, zero-trace thinking collapse
15
+ - Add titanium dark/light themes ported from omp defaults
16
+ - *(box)* State-dynamic tool frame color mirroring omp borders
17
+ - Git and gh semantic renderers as bash presentation adapters (Phase 8)
18
+ - *(theme)* Auto-apply titanium theme at TUI session start
19
+ - *(box)* Render lone read calls as a single inline line
20
+ - *(editor,tools)* Bash-mode prompt icon, hidden bang, boxed bash execution
21
+
22
+ ### Miscellaneous Tasks
23
+
24
+ - Biome format 7 boxed-tool files to pass npm run check
25
+ - *(assets)* Refresh demo screenshot
26
+
27
+ ## [0.1.4] - 2026-08-05
28
+
29
+ ### Features
30
+
31
+ - Strict boxed tool-card state machine with live running/streaming/terminal states
32
+
3
33
  ## [0.1.3] - 2026-08-04
4
34
 
5
35
  ### Bug Fixes
package/README.md CHANGED
@@ -17,6 +17,7 @@
17
17
  - **Editor** — compact/boxed/dock `CustomEditor` treatments with prompt glyph, metadata rows, and thinking-level border, preserving Pi keybindings and autocomplete.
18
18
  - **Startup** — compact gradient logo header and optional overlay with System & Context / Available Tools panels, rendered from snapshot data collected before mount.
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
+ - **Auto theme** — the `titanium` palette is applied at TUI session start when no other theme is active (configurable via `theme.autoApply`, disable with `"off"`).
20
21
  - **One visual system** — shared semantic theme, glyph sets (Nerd/Unicode/ASCII), and ANSI-safe rendering across every surface.
21
22
 
22
23
  All certified surfaces are **on by default**. The single OFF switch is:
@@ -46,8 +47,9 @@ pi -e ./extension-src/pi-style/pi/index.ts
46
47
  No configuration is required. The `default` preset enables:
47
48
 
48
49
  - primary status row **below the editor** (`placement: "below"`), secondary row when it has content;
49
- - `compact` editor with metadata ownership resolved so the status line and editor do not duplicate text;
50
+ - `dock` editor (rounded input box) with metadata ownership resolved so the status line and editor do not duplicate text;
50
51
  - `compact` startup header (gradient logo block only; resource chips are opt-in);
52
+ - the `titanium` theme auto-applied at session start (`theme.autoApply`, default `"titanium"`; set `"off"` to keep your active Pi theme);
51
53
  - certified message prefixes and boxed tool presentation when compatible with the exact Pi version.
52
54
 
53
55
  Override any documented leaf through global/project `piStyle` settings, environment, or session commands. Precedence:
@@ -64,7 +66,8 @@ Example settings file (`.pi/pi-style` or global config):
64
66
  "preset": "full",
65
67
  "placement": "above",
66
68
  "editor": { "style": "boxed", "frame": "line" },
67
- "startup": { "mode": "overlay", "showResources": true }
69
+ "startup": { "mode": "overlay", "showResources": true },
70
+ "theme": { "autoApply": "titanium-light" }
68
71
  }
69
72
  }
70
73
  ```
@@ -77,12 +80,12 @@ Invalid values never break startup: they fall back safely and appear in `/pi-sty
77
80
 
78
81
  | Preset | Behavior |
79
82
  |---|---|
80
- | `default` | Balanced status line, compact editor, compact startup, restrained message/tool styling. |
83
+ | `default` | Balanced status line, rounded-box editor, compact startup, restrained message/tool styling. |
81
84
  | `minimal` | Path/Git/context essentials, native-like editor, no startup overlay, low decoration. |
82
85
  | `compact` | High information density for medium terminals. |
83
86
  | `full` | Broad status data and all compatible visual surfaces. |
84
87
  | `ascii` | No Nerd Font assumptions and conservative separators. |
85
- | `native` | Active Pi theme plus only low-risk status enhancements. |
88
+ | `native` | Active Pi theme kept as-is (`theme.autoApply: "off"`) plus only low-risk status enhancements. |
86
89
 
87
90
  ---
88
91
 
@@ -99,6 +102,7 @@ The full schema, precedence, persistence, and migration policy live in [`docs/CO
99
102
  | `PI_STYLE_EDITOR=native\|compact\|boxed\|dock` | Temporary editor override. |
100
103
  | `PI_STYLE_STATUS=above\|below\|off` | Temporary status placement/state. |
101
104
  | `PI_STYLE_OSC11=1\|0` | Force terminal background sync policy. |
105
+ | `PI_STYLE_THEME=<name\|off>` | Override the auto-applied theme (`off` keeps the active Pi theme). |
102
106
  | `PI_STYLE_DEBUG=1` | Enable bounded diagnostics. |
103
107
 
104
108
  ### CLI flags