Files
plugins/packages/loomy/package.json
T
yetone c61d83d0a1 loomy 0.1.5: the daily wallet sends the share spent and the credits spent (#889)
magpie reads a window's `used` as the share spent (0-100) and `amount`
as what was spent of `limit`. Loomy sent the credits spent as `used` and
what was left as `amount`, so 800 spent of 5,000 read as 800%, and an
account window cap of 4 credits compared the 4,200 left with the cap:
it held a fresh account and let a spending one go past it (9won_25273
on Discord, over by more than 1,000). Now 16 and 800. A zero allowance
is 0, never NaN. The permanent wallet comes back as a balance alone, with
no total, so it stays an amount shown aside.

Run on mote at origin/main f54991b9 + this: bun test in packages/loomy
31/31. Broken by hand (the old used/amount put back): 3 usage tests red,
the new fresh-and-empty test among them.
Not tried: a real Loomy account.

Reported-by: 9won_25273 on Discord
2026-11-10 00:26:38 +08:00

29 lines
707 B
JSON

{
"name": "@magpie-community/opencode-loomy-auth",
"version": "0.1.5",
"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"
}
}