ai-battery 0.2.1 → 0.2.2

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.
@@ -0,0 +1,227 @@
1
+ use framework "AppKit"
2
+ use framework "Foundation"
3
+ use scripting additions
4
+
5
+ property railPanel : missing value
6
+ property railView : missing value
7
+ property refreshTimer : missing value
8
+ property railCommand : ""
9
+ property tooltipCommand : ""
10
+ property stateCommand : ""
11
+ property refreshInterval : 2
12
+ property activeRefreshInterval : 2
13
+ property readyRefreshInterval : 2
14
+ property idleRefreshInterval : 2
15
+ property fastRefreshInterval : 2
16
+ property fastUntilDate : missing value
17
+ property lastHudState : ""
18
+ property hasPositioned : false
19
+ property railScale : 1.0
20
+ property lastImagePath : ""
21
+
22
+ on run argv
23
+ if (count of argv) < 1 then error "ai-battery macOS rail requires rail image command"
24
+
25
+ set railCommand to item 1 of argv
26
+ if (count of argv) is greater than or equal to 2 then set tooltipCommand to item 2 of argv
27
+ if (count of argv) is greater than or equal to 3 then
28
+ try
29
+ set refreshInterval to (item 3 of argv) as real
30
+ end try
31
+ end if
32
+ if (count of argv) is greater than or equal to 4 then set stateCommand to item 4 of argv
33
+ if (count of argv) is greater than or equal to 5 then
34
+ try
35
+ set railScale to (item 5 of argv) as real
36
+ end try
37
+ end if
38
+ if railScale < 0.5 then set railScale to 0.5
39
+ if railScale > 3.0 then set railScale to 3.0
40
+ my configureIntervals_()
41
+
42
+ current application's NSApplication's sharedApplication()
43
+ current application's NSApp's setActivationPolicy:(current application's NSApplicationActivationPolicyAccessory)
44
+
45
+ set initialFrame to current application's NSMakeRect(0, 0, 44, 130)
46
+ set styleMask to (current application's NSWindowStyleMaskBorderless) + (current application's NSWindowStyleMaskNonactivatingPanel) + (current application's NSWindowStyleMaskResizable)
47
+ set railPanel to current application's NSPanel's alloc()'s initWithContentRect:initialFrame styleMask:styleMask backing:(current application's NSBackingStoreBuffered) defer:false
48
+ railPanel's setLevel:(current application's NSStatusWindowLevel)
49
+ railPanel's setOpaque:false
50
+ railPanel's setBackgroundColor:(current application's NSColor's clearColor())
51
+ railPanel's setHasShadow:false
52
+ railPanel's setMovableByWindowBackground:true
53
+ railPanel's setHidesOnDeactivate:false
54
+ railPanel's setCollectionBehavior:((current application's NSWindowCollectionBehaviorCanJoinAllSpaces) + (current application's NSWindowCollectionBehaviorStationary))
55
+
56
+ set railView to current application's NSImageView's alloc()'s initWithFrame:(current application's NSMakeRect(0, 0, 44, 130))
57
+ railView's setAutoresizingMask:((current application's NSViewWidthSizable) + (current application's NSViewHeightSizable))
58
+ railView's setImageScaling:(current application's NSImageScaleProportionallyUpOrDown)
59
+ railView's setToolTip:"AI Battery"
60
+
61
+ set contextMenu to current application's NSMenu's alloc()'s initWithTitle:"AI Battery"
62
+ set largerItem to current application's NSMenuItem's alloc()'s initWithTitle:"Larger (+)" action:"scaleUp:" keyEquivalent:"+"
63
+ largerItem's setTarget:me
64
+ contextMenu's addItem:largerItem
65
+
66
+ set smallerItem to current application's NSMenuItem's alloc()'s initWithTitle:"Smaller (-)" action:"scaleDown:" keyEquivalent:"-"
67
+ smallerItem's setTarget:me
68
+ contextMenu's addItem:smallerItem
69
+
70
+ set resetSizeItem to current application's NSMenuItem's alloc()'s initWithTitle:"Reset Size (100%)" action:"scaleReset:" keyEquivalent:"0"
71
+ resetSizeItem's setTarget:me
72
+ contextMenu's addItem:resetSizeItem
73
+
74
+ contextMenu's addItem:(current application's NSMenuItem's separatorItem())
75
+
76
+ set refreshItem to current application's NSMenuItem's alloc()'s initWithTitle:"Refresh" action:"refresh:" keyEquivalent:"r"
77
+ refreshItem's setTarget:me
78
+ contextMenu's addItem:refreshItem
79
+
80
+ set quitItem to current application's NSMenuItem's alloc()'s initWithTitle:"Quit AI Battery" action:"quit:" keyEquivalent:"q"
81
+ quitItem's setTarget:me
82
+ contextMenu's addItem:quitItem
83
+
84
+ railView's setMenu:contextMenu
85
+ railPanel's setContentView:railView
86
+ my refresh_(missing value)
87
+ railPanel's orderFrontRegardless()
88
+ current application's NSApp's |run|()
89
+ end run
90
+
91
+ on configureIntervals_()
92
+ set activeRefreshInterval to refreshInterval
93
+ set readyRefreshInterval to refreshInterval
94
+ set idleRefreshInterval to refreshInterval
95
+
96
+ set fastRefreshInterval to 2
97
+ if refreshInterval is less than 2 then set fastRefreshInterval to refreshInterval
98
+ end configureIntervals_
99
+
100
+ on scheduleRefresh_(secondsUntilRefresh)
101
+ try
102
+ refreshTimer's invalidate()
103
+ end try
104
+ set refreshTimer to current application's NSTimer's scheduledTimerWithTimeInterval:secondsUntilRefresh target:me selector:"refresh:" userInfo:(missing value) repeats:false
105
+ current application's NSRunLoop's currentRunLoop()'s addTimer:refreshTimer forMode:(current application's NSRunLoopCommonModes)
106
+ end scheduleRefresh_
107
+
108
+ on fastWindowActive_()
109
+ if fastUntilDate is missing value then return false
110
+ try
111
+ set secondsLeft to (fastUntilDate's timeIntervalSinceNow()) as real
112
+ if secondsLeft is greater than 0 then return true
113
+ end try
114
+ return false
115
+ end fastWindowActive_
116
+
117
+ on startFastWindow_(secondsToRun)
118
+ set fastUntilDate to current application's NSDate's dateWithTimeIntervalSinceNow:(secondsToRun)
119
+ end startFastWindow_
120
+
121
+ on refreshIntervalForState_(hudState)
122
+ if (my fastWindowActive_()) then return fastRefreshInterval
123
+ if hudState is "background-running" then return fastRefreshInterval
124
+ if hudState is "foreground-running" then return activeRefreshInterval
125
+ if hudState is "background-ready" then return readyRefreshInterval
126
+ return idleRefreshInterval
127
+ end refreshIntervalForState_
128
+
129
+ on updateFastWindowForState_(hudState)
130
+ if hudState is "" then return
131
+ if lastHudState is "" then
132
+ set lastHudState to hudState
133
+ return
134
+ end if
135
+ if hudState is not lastHudState then
136
+ set lastHudState to hudState
137
+ my startFastWindow_(45)
138
+ end if
139
+ end updateFastWindowForState_
140
+
141
+ on refresh_(sender)
142
+ if sender is not missing value then my startFastWindow_(30)
143
+ set imagePath to ""
144
+ set tooltipText to "AI Battery"
145
+ set hudState to ""
146
+ set railImage to missing value
147
+
148
+ try
149
+ set imagePath to (do shell script (railCommand as text))
150
+ end try
151
+
152
+ if tooltipCommand is not "" then
153
+ try
154
+ set tooltipText to (do shell script (tooltipCommand as text))
155
+ end try
156
+ end if
157
+
158
+ if stateCommand is not "" then
159
+ try
160
+ set hudState to (do shell script (stateCommand as text))
161
+ end try
162
+ end if
163
+
164
+ if imagePath is not "" then set lastImagePath to imagePath
165
+ my applyRailImage_(lastImagePath)
166
+
167
+ my updateFastWindowForState_(hudState)
168
+ my scheduleRefresh_(my refreshIntervalForState_(hudState))
169
+ end refresh_
170
+
171
+ on applyRailImage_(imagePath)
172
+ if imagePath is "" then return
173
+ set railImage to missing value
174
+ try
175
+ set railImage to current application's NSImage's alloc()'s initWithContentsOfFile:imagePath
176
+ end try
177
+ if railImage is not missing value then
178
+ set imageSize to railImage's |size|()
179
+ set baseW to width of imageSize
180
+ set baseH to height of imageSize
181
+ set nextW to baseW * railScale
182
+ set nextH to baseH * railScale
183
+ if nextW < 24 then set nextW to 24
184
+ if nextH < 32 then set nextH to 32
185
+ railPanel's setContentAspectRatio:(current application's NSMakeSize(baseW, baseH))
186
+ railPanel's setMinSize:(current application's NSMakeSize(baseW * 0.5, baseH * 0.5))
187
+ railPanel's setMaxSize:(current application's NSMakeSize(baseW * 3.0, baseH * 3.0))
188
+ railImage's setSize:(current application's NSMakeSize(nextW, nextH))
189
+ if not hasPositioned then
190
+ set screenFrame to current application's NSScreen's mainScreen()'s visibleFrame()
191
+ set originX to (originX of screenFrame) + (width of screenFrame) - nextW - 14
192
+ set originY to (originY of screenFrame) + (height of screenFrame) - nextH - 14
193
+ set hasPositioned to true
194
+ else
195
+ set currentFrame to railPanel's frame()
196
+ set originX to (originX of currentFrame) + (width of currentFrame) - nextW
197
+ set originY to (originY of currentFrame) + (height of currentFrame) - nextH
198
+ end if
199
+ railPanel's setFrame:(current application's NSMakeRect(originX, originY, nextW, nextH)) display:true
200
+ railView's setFrame:(current application's NSMakeRect(0, 0, nextW, nextH))
201
+ railView's setImage:railImage
202
+ end if
203
+ end applyRailImage_
204
+
205
+ on scaleUp_(sender)
206
+ set railScale to railScale + 0.15
207
+ if railScale > 3.0 then set railScale to 3.0
208
+ my applyRailImage_(lastImagePath)
209
+ end scaleUp_
210
+
211
+ on scaleDown_(sender)
212
+ set railScale to railScale - 0.15
213
+ if railScale < 0.5 then set railScale to 0.5
214
+ my applyRailImage_(lastImagePath)
215
+ end scaleDown_
216
+
217
+ on scaleReset_(sender)
218
+ set railScale to 1.0
219
+ my applyRailImage_(lastImagePath)
220
+ end scaleReset_
221
+
222
+ on quit_(sender)
223
+ try
224
+ refreshTimer's invalidate()
225
+ end try
226
+ current application's NSApp's terminate:me
227
+ end quit_
package/docs/RELEASING.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # npm release
2
2
 
3
- The prepared version is **0.2.1**, following the published 0.2.0. Preparing or pushing this patch does not publish it to npm.
3
+ The prepared version is **0.2.2**, following the published 0.2.1. Preparing or pushing this patch does not publish it to npm.
4
+
5
+ ## Fixes in 0.2.2
6
+
7
+ - Add floating vertical rail HUD support (`ai-battery hud rail`) for Linux (GTK3/GJS) and macOS (AppKit) with `--scale`/`--size`, corner-drag and context-menu resizing, `light`/`dark`/`black`/`white` text switching, `--codex-icon white|black`, and rail autostart entries. Fix Linux panel GJS language helper import and GNOME HiDPI/native-theme popup styling, and add top/bottom mockups to `ai-battery config`.
8
+ - Bring Windows and WSL HUDs to parity: add `--scale`/`--size`, `--codex-icon white|black`, `--interval`, and `-p`/`--provider` CLI/autostart options, corner-drag and Ctrl+scroll resizing with saved scale persistence across `icon`/`rail`/`stack` layouts, live black/white text and backdrop toggles in a localized EN/KO context menu, light-themed detail popups, and fix the dark percentage background box when using black text with `--backdrop`. Separate `icon`/`rail`/`stack` into `Commands` in Windows/WSL `ai-battery hud --help`.
9
+ - Fit Windows rail HUD width tightly to rendered content, preserve split pane focus on shared-bar attach, and use brand icons with transparent backgrounds in preview artwork.
4
10
 
5
11
  ## Fixes in 0.2.1
6
12
 
@@ -58,16 +64,16 @@ The active runner keeps its Python code until the next launch. Updating the CLI
58
64
  ```text
59
65
  npm run check
60
66
  npm run smoke:linux
61
- mkdir -p .cache/releases/0.2.1
67
+ mkdir -p .cache/releases/0.2.2
62
68
  npm pack --dry-run --json
63
- npm pack --pack-destination .cache/releases/0.2.1 --json
69
+ npm pack --pack-destination .cache/releases/0.2.2 --json
64
70
  ```
65
71
 
66
72
  The regression suite includes real PTYs: an already-running wrapped Codex remains interactive during setup, the same Bash command cache launches it again, a fresh shell displays the usage row, and an attached tmux client displays the bar after live setup. An open wrapper reader retains its old bytes, compatibility command paths and recovery backups survive, and user Codex/shell/tmux settings are compared exactly.
67
73
 
68
74
  POSIX screen regressions replay actual output into a terminal emulator and inspect the rendered rows, cursor and scrollback. They cover repeated Korean error rows, narrow widths, wide/combining characters, control sequences, shorter replacement text, resize and keyboard input through a live PTY.
69
75
 
70
- Install the published 0.2.0 into an isolated npm prefix, open the PTY fixture, upgrade that prefix to the exact 0.2.1 tarball, and run default setup while the original terminal remains open. Codex's managed first-row fields should update while unrelated settings, the original recovery snapshot, shell integration and running sessions remain intact. The same fixture can cover legacy 0.1.24 and 0.1.27 upgrades. Save the lifecycle report, package manifest, SHA256 checksum, installed-package smoke report and publish dry-run under `.cache/releases/0.2.1/`.
76
+ Install the published 0.2.1 into an isolated npm prefix, open the PTY fixture, upgrade that prefix to the exact 0.2.2 tarball, and run default setup while the original terminal remains open. Codex's managed first-row fields should update while unrelated settings, the original recovery snapshot, shell integration and running sessions remain intact. The same fixture can cover legacy 0.1.24 and 0.1.27 upgrades. Save the lifecycle report, package manifest, SHA256 checksum, installed-package smoke report and publish dry-run under `.cache/releases/0.2.2/`.
71
77
 
72
78
  The Linux GUI smoke test opens the actual popup in an isolated GNOME 50.1 Wayland session, verifies zero border width for the content and box pointer, and saves a screenshot. It also checks shared macOS SVG size, provider visibility, extension fallback/reconnect and shutdown. Native Windows/macOS runtime tests require their respective environments; platform-neutral regressions still run here.
73
79
 
@@ -79,16 +85,16 @@ Inspect the tarball for runtime modules, stable bin entrypoints and required pla
79
85
 
80
86
  ```text
81
87
  npm whoami
82
- npm publish .cache/releases/0.2.1/ai-battery-0.2.1.tgz --access public --tag latest
88
+ npm publish .cache/releases/0.2.2/ai-battery-0.2.2.tgz --access public --tag latest
83
89
  npm view ai-battery version dist-tags --json
84
90
  ```
85
91
 
86
- Authenticate with `npm login` if required, and complete npm 2FA when requested. If 0.2.1 is already published, increment the version and repeat verification. Tag the tested commit `v0.2.1` after publication.
92
+ Authenticate with `npm login` if required, and complete npm 2FA when requested. If 0.2.2 is already published, increment the version and repeat verification. Tag the tested commit `v0.2.2` after publication.
87
93
 
88
94
  ## Update and enable terminal display
89
95
 
90
96
  ```text
91
- npm install -g ai-battery@0.2.1
97
+ npm install -g ai-battery@0.2.2
92
98
  ai-battery setup
93
99
  ai-battery setup tmux
94
100
  tmux
@@ -119,22 +119,52 @@
119
119
  <rect x="532" y="48" width="488" height="254" rx="10" fill="#252d3d"/>
120
120
  <path d="M532 216L1020 112V302H532Z" fill="#333e53"/>
121
121
  <text x="551" y="72" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="12" fill="#c7d0e2">Icon HUD (default) · transparent · drag to move</text>
122
- <!-- Default Windows/WSL Icon HUD pill -->
123
- <rect x="551" y="84" width="234" height="44" rx="10" fill="#131722" fill-opacity="0.88" stroke="#ffffff" stroke-opacity="0.16"/>
124
- <g transform="translate(564 93) scale(0.059375)"><path d="m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51z" fill="#e5e7eb"/></g>
125
- <rect x="590" y="95" width="28" height="6" rx="3" fill="none" stroke="#ffffff" stroke-opacity="0.28" stroke-width="1.1"/>
126
- <rect x="592" y="96.8" width="18" height="2.4" rx="1.2" fill="#30D158"/>
127
- <text x="604" y="117" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10.5" font-weight="700" fill="#e5e7eb">71%</text>
128
- <circle cx="644" cy="105" r="9" fill="#d97706" fill-opacity="0.22"/><text x="644" y="109" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="11" font-weight="700" fill="#f97316">✳</text>
129
- <rect x="659" y="95" width="28" height="6" rx="3" fill="none" stroke="#ffffff" stroke-opacity="0.36" stroke-width="1.1"/>
130
- <rect x="661" y="96.8" width="10" height="2.4" rx="1.2" fill="#FF9F0A"/>
131
- <text x="673" y="117" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10.5" font-weight="700" fill="#ffffff">36%</text>
132
- <circle cx="713" cy="105" r="9" fill="#3186ff" fill-opacity="0.22"/><text x="713" y="109" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="11" font-weight="700" fill="#60a5fa">A</text>
133
- <rect x="728" y="95" width="28" height="6" rx="3" fill="none" stroke="#ffffff" stroke-opacity="0.36" stroke-width="1.1"/>
134
- <rect x="730" y="96.8" width="24" height="2.4" rx="1.2" fill="#30D158"/>
135
- <text x="742" y="117" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10.5" font-weight="700" fill="#ffffff">98%</text>
122
+ <!-- Default Windows/WSL Icon HUD (transparent background, real brand icons) -->
123
+ <g transform="translate(551 86) scale(1.25)"><svg xmlns="http://www.w3.org/2000/svg" width="160" height="24" viewBox="0 0 160 24">
124
+ <g transform="translate(0 2.5) scale(0.059375)"><path d="m297.06 130.97c7.26-21.79 4.76-45.66-6.85-65.48-17.46-30.4-52.56-46.04-86.84-38.68-15.25-17.18-37.16-26.95-60.13-26.81-35.04-.08-66.13 22.48-76.91 55.82-22.51 4.61-41.94 18.7-53.31 38.67-17.59 30.32-13.58 68.54 9.92 94.54-7.26 21.79-4.76 45.66 6.85 65.48 17.46 30.4 52.56 46.04 86.84 38.68 15.24 17.18 37.16 26.95 60.13 26.8 35.06.09 66.16-22.49 76.94-55.86 22.51-4.61 41.94-18.7 53.31-38.67 17.57-30.32 13.55-68.51-9.94-94.51zm-120.28 168.11c-14.03.02-27.62-4.89-38.39-13.88.49-.26 1.34-.73 1.89-1.07l63.72-36.8c3.26-1.85 5.26-5.32 5.24-9.07v-89.83l26.93 15.55c.29.14.48.42.52.74v74.39c-.04 33.08-26.83 59.9-59.91 59.97zm-128.84-55.03c-7.03-12.14-9.56-26.37-7.15-40.18.47.28 1.3.79 1.89 1.13l63.72 36.8c3.23 1.89 7.23 1.89 10.47 0l77.79-44.92v31.1c.02.32-.13.63-.38.83l-64.41 37.19c-28.69 16.52-65.33 6.7-81.92-21.95zm-16.77-139.09c7-12.16 18.05-21.46 31.21-26.29 0 .55-.03 1.52-.03 2.2v73.61c-.02 3.74 1.98 7.21 5.23 9.06l77.79 44.91-26.93 15.55c-.27.18-.61.21-.91.08l-64.42-37.22c-28.63-16.58-38.45-53.21-21.95-81.89zm221.26 51.49-77.79-44.92 26.93-15.54c.27-.18.61-.21.91-.08l64.42 37.19c28.68 16.57 38.51 53.26 21.94 81.94-7.01 12.14-18.05 21.44-31.2 26.28v-75.81c.03-3.74-1.96-7.2-5.2-9.06zm26.8-40.34c-.47-.29-1.3-.79-1.89-1.13l-63.72-36.8c-3.23-1.89-7.23-1.89-10.47 0l-77.79 44.92v-31.1c-.02-.32.13-.63.38-.83l64.41-37.16c28.69-16.55 65.37-6.7 81.91 22 6.99 12.12 9.52 26.31 7.15 40.1zm-168.51 55.43-26.94-15.55c-.29-.14-.48-.42-.52-.74v-74.39c.02-33.12 26.89-59.96 60.01-59.94 14.01 0 27.57 4.92 38.34 13.88-.49.26-1.33.73-1.89 1.07l-63.72 36.8c-3.26 1.85-5.26 5.31-5.24 9.06l-.04 89.79zm14.63-31.54 34.65-20.01 34.65 20v40.01l-34.65 20-34.65-20z" fill="#D4D4DC"/></g>
125
+ <rect x="23" y="3" width="24" height="5" rx="2.5" fill="#18181D" fill-opacity="0.55" stroke="#FFFFFF" stroke-opacity="0.30" stroke-width="1.0"/>
126
+ <rect x="24.5" y="4.3" width="15" height="2.4" rx="1.2" fill="#A1A1AA"/>
127
+ <text x="35" y="21" text-anchor="middle" font-family="'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif" font-size="9.5" font-weight="700" fill="#B4B8C4">71%</text>
128
+ <g transform="translate(56 3) scale(0.7083333333333334)"><path d="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z" fill="#D97706"/></g>
129
+ <rect x="79" y="3" width="24" height="5" rx="2.5" fill="#18181D" fill-opacity="0.55" stroke="#FFFFFF" stroke-opacity="0.42" stroke-width="1.0"/>
130
+ <rect x="80.5" y="4.3" width="8" height="2.4" rx="1.2" fill="#FF9F0A"/>
131
+ <text x="91" y="21" text-anchor="middle" font-family="'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif" font-size="9.5" font-weight="700" fill="#FFFFFF">36%</text>
132
+ <svg x="112" y="3" width="19" height="19" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
133
+ <path d="M144.248 149.062C151.748 154.688 162.998 150.938 152.685 140.625C121.748 110.625 128.31 28.125 89.8727 28.125C51.4352 28.125 57.9977 110.625 27.0602 140.625C15.8102 151.875 27.9977 154.688 35.4977 149.062C64.5602 129.375 62.6852 94.6875 89.8727 94.6875C117.06 94.6875 115.185 129.375 144.248 149.062Z" fill="#3186FF"/>
134
+ <mask id="mask0_win_agy" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="22" y="28" width="136" height="125">
135
+ <path d="M144.248 149.062C151.748 154.688 162.998 150.938 152.685 140.625C121.748 110.625 128.31 28.125 89.8727 28.125C51.4352 28.125 57.9977 110.625 27.0602 140.625C15.8102 151.875 27.9977 154.688 35.4977 149.062C64.5602 129.375 62.6852 94.6875 89.8727 94.6875C117.06 94.6875 115.185 129.375 144.248 149.062Z" fill="white"/>
136
+ </mask>
137
+ <g mask="url(#mask0_win_agy)">
138
+ <g filter="url(#filter0_win_agy)"><ellipse cx="36.6225" cy="43.0872" rx="36.6225" ry="43.0872" transform="matrix(-0.112784 0.99362 -0.99362 -0.112781 106.557 -26.4847)" fill="#FFE432"/></g>
139
+ <g filter="url(#filter1_win_agy)"><ellipse cx="155.163" cy="54.9292" rx="47.4118" ry="48.4541" transform="rotate(76.9243 155.163 54.9292)" fill="#FC413D"/></g>
140
+ <g filter="url(#filter2_win_agy)"><ellipse cx="14.6006" cy="65.4425" rx="49.5515" ry="64.192" transform="rotate(74.1257 14.6006 65.4425)" fill="#00B95C"/></g>
141
+ <g filter="url(#filter3_win_agy)"><ellipse cx="18.1226" cy="67.414" rx="48.5679" ry="53.4688" transform="rotate(45.6065 18.1226 67.414)" fill="#00B95C"/></g>
142
+ <g filter="url(#filter4_win_agy)"><ellipse cx="121.837" cy="166.945" rx="46.6356" ry="44.9084" transform="rotate(76.9243 121.837 166.945)" fill="#3186FF"/></g>
143
+ <g filter="url(#filter5_win_agy)"><ellipse cx="53.9456" cy="56.8997" rx="53.9456" ry="56.8997" transform="matrix(-0.409539 0.912293 -0.912294 -0.409537 162.811 -25.895)" fill="#FBBC04"/></g>
144
+ <g filter="url(#filter6_win_agy)"><path d="M4.21557 239.063C-25.3231 227.467 25.1577 132.061 37.7105 100.085C50.2634 68.1097 84.3853 51.5888 113.924 63.1848C143.463 74.7809 178.474 138.65 165.921 170.626C153.368 202.601 33.7543 250.659 4.21557 239.063Z" fill="#3186FF"/></g>
145
+ <g filter="url(#filter7_win_agy)"><path d="M183.197 120.315C175.289 129.545 154.652 124.839 137.102 109.803C119.553 94.7668 111.738 75.0955 119.646 65.8656C127.554 56.6357 148.191 61.3423 165.74 76.3782C183.289 91.414 191.105 111.085 183.197 120.315Z" fill="#749BFF"/></g>
146
+ <g filter="url(#filter8_win_agy)"><ellipse cx="148.928" cy="36.7252" rx="71.1018" ry="44.199" transform="rotate(34.0763 148.928 36.7252)" fill="#FC413D"/></g>
147
+ <g filter="url(#filter9_win_agy)"><ellipse cx="37.848" cy="46.0346" rx="38.1008" ry="22.1575" transform="rotate(112.516 37.848 46.0346)" fill="#FFEE48"/></g>
148
+ </g>
149
+ <defs>
150
+ <filter id="filter0_win_agy" x="4.09591" y="-44.1761" width="111.037" height="98.4416" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="6.25234"/></filter>
151
+ <filter id="filter1_win_agy" x="46.2974" y="-53.0009" width="217.731" height="215.86" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="30.2268"/></filter>
152
+ <filter id="filter2_win_agy" x="-100.018" y="-36.7558" width="229.238" height="204.397" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="25.6957"/></filter>
153
+ <filter id="filter3_win_agy" x="-84.3985" y="-35.003" width="205.042" height="204.834" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="25.6957"/></filter>
154
+ <filter id="filter4_win_agy" x="27.9915" y="71.5493" width="187.691" height="190.791" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="24.4184"/></filter>
155
+ <filter id="filter5_win_agy" x="-11.8808" y="-98.7085" width="201.38" height="197.45" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="22.1301"/></filter>
156
+ <filter id="filter6_win_agy" x="-44.4432" y="19.9522" width="252.513" height="260.404" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="19.7631"/></filter>
157
+ <filter id="filter7_win_agy" x="81.1915" y="25.7722" width="140.46" height="134.637" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="17.6843"/></filter>
158
+ <filter id="filter8_win_agy" x="55.1499" y="-47.2531" width="187.555" height="167.957" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="14.9365"/></filter>
159
+ <filter id="filter9_win_agy" x="-24.2633" y="-27.1515" width="124.223" height="146.372" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feGaussianBlur stdDeviation="18.4865"/></filter>
160
+ </defs>
161
+ </svg>
162
+ <rect x="135" y="3" width="24" height="5" rx="2.5" fill="#18181D" fill-opacity="0.55" stroke="#FFFFFF" stroke-opacity="0.42" stroke-width="1.0"/>
163
+ <rect x="136.5" y="4.3" width="21" height="2.4" rx="1.2" fill="#30D158"/>
164
+ <text x="147" y="21" text-anchor="middle" font-family="'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif" font-size="9.5" font-weight="700" fill="#FFFFFF">98%</text>
165
+ </svg></g>
136
166
  <!-- Compact stack HUD preview -->
137
- <text x="551" y="152" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="11" fill="#aab5c8">Stack / Rail modes (optional)</text>
167
+ <text x="551" y="152" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="11" fill="#aab5c8">Stack / Rail modes (optional, transparent)</text>
138
168
  <text x="555" y="178" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="13" fill="#9ba5b5">Codex</text>
139
169
  <rect x="615" y="167" width="36" height="14" fill="#2e2e2e" stroke="#a0a0a0"/>
140
170
  <rect x="618" y="170" width="22" height="8" fill="#50dc78"/>
@@ -147,19 +177,21 @@
147
177
  <rect x="615" y="223" width="36" height="14" fill="#2e2e2e" stroke="#a0a0a0"/>
148
178
  <rect x="618" y="226" width="30" height="8" fill="#50dc78"/>
149
179
  <text x="660" y="234" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="12.5" fill="#edf0f5">98% │ 5h 18:34 │ 7d 67%</text>
150
- <!-- Vertical rail HUD mini preview on far right -->
151
- <rect x="938" y="84" width="64" height="176" rx="8" fill="#131722" fill-opacity="0.88" stroke="#ffffff" stroke-opacity="0.16"/>
152
- <text x="970" y="102" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10" font-weight="700" fill="#60a5fa">AGY</text>
153
- <rect x="967" y="107" width="6" height="16" rx="1" fill="#30D158"/>
154
- <text x="970" y="134" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="9.5" fill="#30D158">98%</text>
155
- <line x1="950" y1="142" x2="990" y2="142" stroke="#4b5563"/>
156
- <text x="970" y="156" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10" font-weight="700" fill="#edf0f5">CDX</text>
157
- <rect x="967" y="161" width="6" height="16" rx="1" fill="#30D158"/>
158
- <text x="970" y="188" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="9.5" fill="#9ba5b5">71%</text>
159
- <line x1="950" y1="196" x2="990" y2="196" stroke="#4b5563"/>
160
- <text x="970" y="210" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10" font-weight="700" fill="#f97316">CLD</text>
161
- <rect x="967" y="215" width="6" height="16" rx="1" fill="#FF9F0A"/>
162
- <text x="970" y="242" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="9.5" fill="#FF9F0A">36%</text>
180
+ <!-- Vertical rail HUD mini preview on far right (transparent background, slim center rail) -->
181
+ <text x="974" y="96" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10.5" font-weight="700" fill="#60a5fa">AGY</text>
182
+ <rect x="973" y="102" width="2" height="18" fill="#666a78"/>
183
+ <rect x="971" y="103" width="6" height="17" fill="#30D158"/>
184
+ <text x="974" y="131" text-anchor="middle" font-family="'Segoe UI', sans-serif" font-size="9.5" font-weight="700" fill="#30D158">98%</text>
185
+ <line x1="958" y1="139" x2="990" y2="139" stroke="#64748b" stroke-opacity="0.7"/>
186
+ <text x="974" y="153" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10.5" font-weight="700" fill="#e5e7eb">CDX</text>
187
+ <rect x="973" y="159" width="2" height="18" fill="#666a78"/>
188
+ <rect x="971" y="164" width="6" height="13" fill="#A1A1AA"/>
189
+ <text x="974" y="188" text-anchor="middle" font-family="'Segoe UI', sans-serif" font-size="9.5" font-weight="700" fill="#b4b8c4">71%</text>
190
+ <line x1="958" y1="196" x2="990" y2="196" stroke="#64748b" stroke-opacity="0.7"/>
191
+ <text x="974" y="210" text-anchor="middle" font-family="ui-monospace, 'DejaVu Sans Mono', Consolas, monospace" font-size="10.5" font-weight="700" fill="#f97316">CLD</text>
192
+ <rect x="973" y="216" width="2" height="18" fill="#666a78"/>
193
+ <rect x="971" y="227" width="6" height="7" fill="#FF9F0A"/>
194
+ <text x="974" y="245" text-anchor="middle" font-family="'Segoe UI', sans-serif" font-size="9.5" font-weight="700" fill="#FF9F0A">36%</text>
163
195
  <rect x="532" y="276" width="488" height="26" rx="6" fill="#172030"/>
164
196
  <rect x="730" y="283" width="12" height="12" rx="2" fill="#8d9bb2"/>
165
197
  <rect x="755" y="283" width="12" height="12" rx="2" fill="#8d9bb2"/>