osdy-pi 0.1.6 → 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/README.md CHANGED
@@ -76,6 +76,13 @@ Osdy Pi includes a small command group:
76
76
  /osdy-pi disable
77
77
  /osdy-pi status
78
78
  /osdy-pi sound setup
79
+ /osdy-pi working-tree on
80
+ /osdy-pi working-tree off
81
+ /osdy-pi working-tree toggle
82
+ /osdy-pi working-tree status
83
+ /osdy-pi working-tree position top
84
+ /osdy-pi working-tree position bottom
85
+ /osdy-pi diff
79
86
  /osdy-pi osdy-theme
80
87
  /osdy-pi classic
81
88
  /osdy-pi-osdy-theme
@@ -86,12 +93,51 @@ Osdy Pi includes a small command group:
86
93
  - `disable` restores Pi's built-in header, editor, footer, and working visibility, then switches back to the previous theme or `dark`.
87
94
  - `status` shows whether the Osdy Pi UI is currently enabled, including the active style.
88
95
  - `sound setup` opens the guided global sound-setup wizard for audio notifications.
96
+ - `working-tree on|off|toggle|status` controls the persistent git working-tree summary widget.
97
+ - `working-tree position top|bottom` moves the summary widget above or below the editor.
98
+ - `diff` opens a wizard-style in-app diff viewer to inspect the current per-file diff without leaving Pi.
89
99
  - `osdy-theme` is the default OsdyTheme header with pink, cyan, and purple styling, plus the mascot glow on the right edge.
90
100
  - `classic` keeps the previous classic header shape with the shared mascot.
91
101
  - `/osdy-pi-osdy-theme` and `/osdy-pi-classic` are direct aliases.
92
102
 
93
103
  After changing a local extension, run `/reload` or restart Pi so the updated commands are registered.
94
104
 
105
+ ### Working tree widget
106
+
107
+ Osdy Pi can show a persistent git working-tree summary above or below the editor.
108
+
109
+ Current behavior:
110
+
111
+ - shows file count, `+/-` totals, and staged/unstaged/new counts;
112
+ - previews the top changed files;
113
+ - refreshes automatically when Pi finishes mutating tools such as `edit`, `write`, `ast_grep_replace`, or `bash`;
114
+ - is intentionally scoped to changes observed during Pi-driven work for now.
115
+
116
+ Use these commands to control it:
117
+
118
+ ```text
119
+ /osdy-pi working-tree on
120
+ /osdy-pi working-tree off
121
+ /osdy-pi working-tree toggle
122
+ /osdy-pi working-tree status
123
+ /osdy-pi working-tree position top
124
+ /osdy-pi working-tree position bottom
125
+ /osdy-pi diff
126
+ ```
127
+
128
+ The `/osdy-pi diff` viewer now behaves like a simple wizard and opens with a wider centered modal by default:
129
+
130
+ 1. select a changed file in a centered modal
131
+ 2. open its patch in a second centered view
132
+ 3. return with `esc` / `backspace` or close with `q`
133
+
134
+ Controls:
135
+
136
+ - selector: `↑` / `↓` or `j` / `k`, then `enter` or `→`
137
+ - patch view: `PgUp` / `PgDn`
138
+ - back: `esc` / `backspace` or `←`
139
+ - close: `q`
140
+
95
141
  ## Audio notifications
96
142
 
97
143
  Osdy Pi can play your own sound files for these product-level events:
@@ -160,10 +206,18 @@ Notes:
160
206
 
161
207
  ## Local install
162
208
 
163
- If you cloned this repository and want to test it locally:
209
+ If you cloned this repository and want to test it locally without colliding with an already installed global `osdy-pi`, use the isolated dev launcher:
210
+
211
+ ```bash
212
+ npm run pi:dev
213
+ ```
214
+
215
+ This command runs `pi -e .` with `PI_CODING_AGENT_DIR=.pi-dev`, so it uses a separate local Pi config/package/extensions directory and does not load your global installed `osdy-pi` package.
216
+
217
+ You can still launch it manually if needed:
164
218
 
165
219
  ```bash
166
- pi -e .
220
+ PI_CODING_AGENT_DIR="$PWD/.pi-dev" pi -e .
167
221
  ```
168
222
 
169
223
  To install it from a local path:
@@ -195,6 +249,7 @@ If you are working on the package locally, you can run:
195
249
  ```bash
196
250
  npm run typecheck
197
251
  npm run lint
252
+ npm run pi:dev
198
253
  ```
199
254
 
200
255
  ## Uninstall or turn off