Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/claude/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,13 @@
const limit = data.extra_usage.monthly_limit
if (typeof used === "number" && typeof limit === "number" && limit > 0) {
lines.push(ctx.line.progress({
label: "Extra usage",
label: "Extra usage spent",
used: ctx.fmt.dollars(used),
limit: ctx.fmt.dollars(limit),
format: { kind: "dollars" }
}))
} else if (typeof used === "number" && used > 0) {
lines.push(ctx.line.text({ label: "Extra usage", value: "$" + String(ctx.fmt.dollars(used)) }))
lines.push(ctx.line.text({ label: "Extra usage spent", value: "$" + String(ctx.fmt.dollars(used)) }))
}
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/claude/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{ "type": "progress", "label": "Session", "scope": "overview", "primaryOrder": 1 },
{ "type": "progress", "label": "Weekly", "scope": "overview" },
{ "type": "progress", "label": "Sonnet", "scope": "detail" },
{ "type": "progress", "label": "Extra usage", "scope": "detail" },
{ "type": "progress", "label": "Extra usage spent", "scope": "detail" },
{ "type": "text", "label": "Today", "scope": "detail" },
{ "type": "text", "label": "Yesterday", "scope": "detail" },
{ "type": "text", "label": "Last 30 Days", "scope": "detail" }
Expand Down
2 changes: 1 addition & 1 deletion plugins/claude/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe("claude plugin", () => {
const plugin = await loadPlugin()
const result = plugin.probe(ctx)
expect(result.lines.find((line) => line.label === "Sonnet")).toBeTruthy()
expect(result.lines.find((line) => line.label === "Extra usage")).toBeTruthy()
expect(result.lines.find((line) => line.label === "Extra usage spent")).toBeTruthy()
})

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