A new switch in magpie's plugin options, standard_only ("Standard usage
only"), off by default, read at each usage reading. When on,
limitWindows reports the Standard 5 hours / 7 days / 30 days windows
with no notModels and never aside (extra usage or not), so they count
every model, Droid Core's open models included. Droid Core's windows
become aside (shown only) and Extra usage stays aside. Off, the windows
are exactly as before.
magpie only leaves an account out before sending when it is held at a
usage cap (gateway perKeyBarred/capHeld; order routing tries a used-up
account and benches it only after Factory refuses). The README says to
pair the option with an account cap (magpie provider account-cap
factory <account> 99): then a held account is out before affinity, the
next account takes the same model, and with every account held magpie
answers 429 without sending.
Run at this commit, rebased on origin/main 74be632 (TMPDIR and HOME
under a scratch dir; the factory run was at d1b6500):
- bun test packages/factory: 174 pass, 0 fail
- bun test (whole repo): 2383 pass, 0 fail, exit 0
- bun scripts/check.mjs: exit 0
Broken by hand, usage.test.mjs's two new tests:
- index.mjs back to origin/main: both red
- usage not passing the option to limitWindows: the switch test red
- Droid Core's windows not aside under the option: both red
Not tried: a real Factory account, a real magpie host reading the
switch, or routing with a cap set (read from magpie's source only).
12 lines
522 B
JSON
12 lines
522 B
JSON
{
|
|
"name": "@magpie-community/opencode-factory-auth",
|
|
"version": "0.1.38",
|
|
"description": "Sign in to a Factory (Droid) subscription from OpenCode or magpie",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"files": ["index.mjs", "anthropic-tools.mjs", "client-phrases.json", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "factory", "droid"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/factory" }
|
|
}
|