moxuanchen: AutoClaw's credits are a bare balance with no limit and no
amount used, but usage() also sent them as a window with used: 0, so the
card read "500 积分 · 剩余 100%" whatever was left. The total, and the
wallets it breaks into, now go in balance only ("1234 积分(赠送积分 500 ·
会员积分 734)"). The daily check-in row stays a window.
Not changed here: magpie's card gives every window a share, so an aside
row that only carries text (the check-in row here, and the same pattern
in cline, cursor, factory and zcode) still shows "· 0% used / 100% left".
That is magpie's rendering, not this plugin's.
Run: HOME=<scratch> bun test packages/autoclaw, 38 pass; the new test is
red on 0.2.7. bun scripts/check.mjs autoclaw ok. Not tried against the
real API.
35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"name": "@magpie-community/opencode-autoclaw-auth",
|
|
"version": "0.2.8",
|
|
"description": "OpenCode provider plugin for AutoClaw (Zhipu OpenClaw): oversea web sign-in (Google/z.ai) and CN phone SMS, multi-account pool, credit balance and daily check-in",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": [
|
|
"index.mjs",
|
|
"README.md"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"magpie",
|
|
"autoclaw",
|
|
"zhipu",
|
|
"glm"
|
|
],
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/magpie-community/plugins.git",
|
|
"directory": "packages/autoclaw"
|
|
},
|
|
"magpie": {
|
|
"icon": "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='30' fill='%234f6ef7'/%3E%3Ctext x='32' y='42' font-size='28' text-anchor='middle' fill='white' font-family='sans-serif'%3E%E8%9F%B9%3C/text%3E%3C/svg%3E",
|
|
"options": {
|
|
"signin": true,
|
|
"signinHour": null,
|
|
"signinOnUsage": false
|
|
}
|
|
}
|
|
}
|