@fish-under-sea/opencode-meoo-auth 1.1.0 → 1.1.1
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 +3 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -834,7 +834,9 @@ export const MeooAuthPlugin = async ({ client }) => {
|
|
|
834
834
|
const used = int(acc.totalConsumed)
|
|
835
835
|
const frozen = int(acc.frozenBalance)
|
|
836
836
|
const fmt = (n) => new Intl.NumberFormat("en-US").format(n)
|
|
837
|
-
|
|
837
|
+
// 钱包窗口:新版 magpie 认 window.balance(不画百分比条、只显示数字);
|
|
838
|
+
// 旧版会把它当纯文本窗口,所以同时给 display —— 两种宿主都能看到余额。
|
|
839
|
+
const wallet = { name: "积分", balance: left, unit: "积分", display: `${fmt(left)} 积分` }
|
|
838
840
|
const lapse = soonestLapse(data?.activeGrants)
|
|
839
841
|
if (lapse) wallet.runsOutAt = lapse
|
|
840
842
|
const windows = [wallet]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fish-under-sea/opencode-meoo-auth",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Meoo 秒悟 (meoo.com) in OpenCode and Magpie: PKCE sign-in, reuse of a local dsh-meoo-connect state or a project service AK, a live catalog with each model's real context window, and the account's points balance",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./opencode.mjs",
|