@magpie-community/opencode-workbuddy-auth 0.1.33 → 0.1.34
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/index.mjs +4 -2
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1598,9 +1598,11 @@ const compact = (n) => (Number.isInteger(n) ? String(n) : n.toFixed(2).replace(/
|
|
|
1598
1598
|
// usageOf is the account's credits, from its resource summary: the plan's
|
|
1599
1599
|
// credits used against what the cycle grants, as magpie's built-in said —
|
|
1600
1600
|
// the count itself too (amount of limit, in credits), for magpie to say it
|
|
1601
|
-
// as used or left beside the share (magpie#659).
|
|
1601
|
+
// as used or left beside the share (magpie#659). The free plan is said as a
|
|
1602
|
+
// plan: "Free" alone beside the account read as the model being free, and
|
|
1603
|
+
// routing as preferring it for that (#337).
|
|
1602
1604
|
function usageOf(sum, plan) {
|
|
1603
|
-
const out = { plan: plan || (sum?.IsPaidUser ? "Pro" : "Free"), windows: [] }
|
|
1605
|
+
const out = { plan: plan || (sum?.IsPaidUser ? "Pro" : "Free plan"), windows: [] }
|
|
1604
1606
|
let total = 0, used = 0
|
|
1605
1607
|
for (const p of sum?.Packages ?? []) {
|
|
1606
1608
|
total += capacity(p?.CycleTotalCapacity)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@magpie-community/opencode-workbuddy-auth",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.34",
|
|
4
4
|
"description": "OpenCode provider plugins for WorkBuddy's plans: WorkBuddy (CodeBuddy, copilot.tencent.com) and WorkBuddy AI (www.workbuddy.ai)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|