Skip to content

Commit 7bd1383

Browse files
Copilotrobinebers
andauthored
Clarify Claude extra usage metric by renaming label to “Extra usage spent” (#239)
* Initial plan * fix(claude): rename extra usage label to extra usage spent Co-authored-by: robinebers <16515780+robinebers@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: robinebers <16515780+robinebers@users.noreply.github.com> Co-authored-by: Robin Ebers <robin.ebers@gmail.com>
1 parent 208eb2d commit 7bd1383

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

plugins/claude/plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,13 +496,13 @@
496496
const limit = data.extra_usage.monthly_limit
497497
if (typeof used === "number" && typeof limit === "number" && limit > 0) {
498498
lines.push(ctx.line.progress({
499-
label: "Extra usage",
499+
label: "Extra usage spent",
500500
used: ctx.fmt.dollars(used),
501501
limit: ctx.fmt.dollars(limit),
502502
format: { kind: "dollars" }
503503
}))
504504
} else if (typeof used === "number" && used > 0) {
505-
lines.push(ctx.line.text({ label: "Extra usage", value: "$" + String(ctx.fmt.dollars(used)) }))
505+
lines.push(ctx.line.text({ label: "Extra usage spent", value: "$" + String(ctx.fmt.dollars(used)) }))
506506
}
507507
}
508508

plugins/claude/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{ "type": "progress", "label": "Session", "scope": "overview", "primaryOrder": 1 },
1515
{ "type": "progress", "label": "Weekly", "scope": "overview" },
1616
{ "type": "progress", "label": "Sonnet", "scope": "detail" },
17-
{ "type": "progress", "label": "Extra usage", "scope": "detail" },
17+
{ "type": "progress", "label": "Extra usage spent", "scope": "detail" },
1818
{ "type": "text", "label": "Today", "scope": "detail" },
1919
{ "type": "text", "label": "Yesterday", "scope": "detail" },
2020
{ "type": "text", "label": "Last 30 Days", "scope": "detail" }

plugins/claude/plugin.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ describe("claude plugin", () => {
110110
const plugin = await loadPlugin()
111111
const result = plugin.probe(ctx)
112112
expect(result.lines.find((line) => line.label === "Sonnet")).toBeTruthy()
113-
expect(result.lines.find((line) => line.label === "Extra usage")).toBeTruthy()
113+
expect(result.lines.find((line) => line.label === "Extra usage spent")).toBeTruthy()
114114
})
115115

116116
it("uses keychain credentials when value is hex-encoded JSON", async () => {

0 commit comments

Comments
 (0)