opencode-mask-j0k3r-dev-rgl 2.0.16 → 2.0.17
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/components.tsx +9 -22
- package/package.json +1 -1
package/components.tsx
CHANGED
|
@@ -150,44 +150,31 @@ export const SidebarArch = (props: {
|
|
|
150
150
|
</box>
|
|
151
151
|
)}
|
|
152
152
|
|
|
153
|
-
{/* ── Context (tokens + cost) ── */}
|
|
153
|
+
{/* ── Context (tokens + % used + cost) ── */}
|
|
154
154
|
{totalTokens > 0 && (
|
|
155
155
|
<box flexDirection="column" marginTop={1}>
|
|
156
156
|
<text fg={t.textMuted} bold={true}>Context</text>
|
|
157
|
+
|
|
158
|
+
{/* tokens */}
|
|
157
159
|
<box flexDirection="row" gap={1}>
|
|
158
160
|
<text fg={t.text}>{fmtTokens(totalTokens)}</text>
|
|
159
161
|
<text fg={t.textMuted}>tokens</text>
|
|
160
162
|
</box>
|
|
161
163
|
<ProgressBar value={contextPct} width={12} fillColor={ctxColor} emptyColor="#3a3a3a" theme={t} />
|
|
164
|
+
|
|
165
|
+
{/* % used */}
|
|
162
166
|
<box flexDirection="row" gap={1}>
|
|
163
167
|
<text fg={ctxColor}>{contextPct}%</text>
|
|
164
168
|
<text fg={t.textMuted}>used</text>
|
|
165
169
|
</box>
|
|
170
|
+
<ProgressBar value={contextPct} width={12} fillColor={ctxColor} emptyColor="#3a3a3a" theme={t} />
|
|
171
|
+
|
|
172
|
+
{/* $ spent */}
|
|
166
173
|
<box flexDirection="row" gap={1}>
|
|
167
174
|
<text fg="#ffd166">{fmtCost(totalCost)}</text>
|
|
168
175
|
<text fg={t.textMuted}>spent</text>
|
|
169
176
|
</box>
|
|
170
|
-
|
|
171
|
-
)}
|
|
172
|
-
|
|
173
|
-
{/* ── Files changed ── */}
|
|
174
|
-
{totalChanges > 0 && (
|
|
175
|
-
<box flexDirection="column" marginTop={1}>
|
|
176
|
-
<box flexDirection="row" gap={1}>
|
|
177
|
-
<text fg={t.textMuted}>files</text>
|
|
178
|
-
<text fg={t.text}>{files.length}</text>
|
|
179
|
-
</box>
|
|
180
|
-
<box flexDirection="row" gap={0}>
|
|
181
|
-
<text fg="#00e5a0">+{totalAdditions} </text>
|
|
182
|
-
<text fg="#ff2d78">-{totalDeletions}</text>
|
|
183
|
-
</box>
|
|
184
|
-
<ProgressBar
|
|
185
|
-
value={totalChanges > 0 ? Math.min(100, (totalAdditions / totalChanges) * 100) : 0}
|
|
186
|
-
width={12}
|
|
187
|
-
fillColor="#00e5a0"
|
|
188
|
-
emptyColor="#ff2d78"
|
|
189
|
-
theme={t}
|
|
190
|
-
/>
|
|
177
|
+
<ProgressBar value={Math.min(100, totalCost * 100)} width={12} fillColor="#ffd166" emptyColor="#3a3a3a" theme={t} />
|
|
191
178
|
</box>
|
|
192
179
|
)}
|
|
193
180
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "opencode-mask-j0k3r-dev-rgl",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.17",
|
|
5
5
|
"description": "Arch Linux TUI mask for OpenCode — hot pink theme with prominent ASCII logo and j0k3r-dev-rgl@latest legend",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|