Files
plugins/packages/loomy/package.json
T
yetone fbeda91fb3 loomy 0.1.6: routing reads the daily and permanent credits added up (gocccy0 on X)
gocccy0 on X: Loomy's usage sent the permanent credits (永久积分) as aside
text, and the daily credits (每日赠送积分) either as aside text too (no
dailyLimitPoints pair: routing had no window, "quota unknown") or as the
one window routing reads (with the pair: at 100% it stopped an account
that still had permanent credits).

Now usage leads with 积分合计, the window routing reads (totalOf): spent
is what the daily wallet has spent, limit is spent + daily left +
permanent balance, used its share; with nothing left at all it is 100%.
It renews at Beijing midnight with the daily wallet, and the daily
credits left are lost then (runsOutAt, runsOut), so magpie's Smart and
Least used first spend them first. With the permanent balance alone it
has no reset. The two wallets are still shown, both set aside, as
WorkBuddy shows its plan and extra credits beside their total. No
magpie change: plugin windows already carry amount/limit/runsOutAt, and
40c8d0c81 already shows an all-aside account's read.

Run (mote, HOME=$(mktemp -d)): bun test in packages/loomy, 32 pass,
including the new test (daily spent + 1,200 permanent is 80.6% not 100%;
both 0 is 100%; 3,000 daily left run out at midnight; no limit pair; the
permanent balance alone). Root HOME=$(mktemp -d) bun test: 8648 pass, 20 skip, 0 fail;
scripts/check.mjs ok.
Broken by hand: no total window (the old shape) turns the new test red
(2 counted windows, expected 1).

Not tried: a real Loomy account (the reporter's reply shape is assumed
to be one of the ones tested); magpie's GUI with the plugin installed.
2026-11-13 17:40:41 +08:00

29 lines
707 B
JSON

{
"name": "@magpie-community/opencode-loomy-auth",
"version": "0.1.6",
"description": "OpenCode & Magpie provider plugin for Loomy (讯飞, loomyad.xunfei.cn): SMS sign-in, chat, models, the two point wallets and the daily first-login grant",
"type": "module",
"main": "./opencode.mjs",
"exports": { ".": "./opencode2.mjs" },
"files": [
"index.mjs",
"opencode.mjs",
"opencode2.mjs",
"README.md"
],
"keywords": [
"opencode",
"opencode-plugin",
"magpie",
"loomy",
"xunfei",
"讯飞"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/loomy"
}
}