A model's rate is now the Design Plan's own deduction multiplier from
open-design.ai/zh/model-credits/ (rates.mjs), not amr-link's catalog cost
word, which disagreed for seven models (Claude Haiku 5.5 2x, GPT-6 Luna 4x,
DeepSeek V4 Pro 1x, ...). A model the table doesn't name keeps its catalog
word. deepseek-v4.1-flash-eco joins the seed with V4.1 Flash's limits and
levels at 0.27x.
Reviewed at 0335afb86a9afb53a576813445c0b6cb4705cfeb:
- rates.mjs checked row by row against the vendor page, fetched 2026-11-06;
the 0.25x row is the 10-20..10-27 promo, over.
- mote, HOME=$(mktemp -d), Bun 1.4.2: bun test packages/opendesign 27 pass;
bun scripts/check.mjs opendesign ok; npm pack has rates.mjs and the packed
plugin imports.
- Broken by hand: rateOf ignoring the table (2 red), config hook not
re-declaring rate (1 red), eco seed line removed (3 red).
- magpie's host builds config models without rate and never writes a hook's
result back, so the re-declared rate overrides nothing a user set.
- npm had 0.1.8; 0.1.9 is next.
Not tried: a real Open Design account; the live ids of hy4-preview and
minimax-m3.1-flash (not in the seed).
sryimnoob123 measured a streaming request to every model on each of
amr-link's three APIs: chat completions carries the thinking of most,
claude-haiku-5.5 and deepseek-v4-pro think longer on Responses, and
glm-5.3-flash thinks only on Anthropic's messages. The vendor also names
max beside low and high. #141 was written against 0.1.4 and conflicted
with 0.1.5 (#137's levels), so it is ported onto main here:
- WIRE/MODEL_WIRE/wireOf as the PR had them; the provider default is
chat completions, and a live list's and the seed's models each carry
api.npm/provider.npm, which magpie's host reads per model.
- The config hook sets every model's wire again over a kept copy, so a
model 0.1.5 left on the Responses API moves to its own.
- max joins every measured level list.
Run: bun test in packages/opendesign, 22 pass (a new test holds a kept
0.1.5 model moving to its wire; the old Responses-only expectations were
changed to the measured ones). Not tried against a real amr-link account.
Co-authored-by: sryimnoob <314134180+sryimnoob123@users.noreply.github.com>
sryimnoob123 measured amr-link with reasoning_effort high and low on all
11 models (magpie 0.1.1254, Windows): every one answered 200, and all but
gpt-6-luna streamed reasoning, four the catalog calls "standard" too.
Their install showed all 11 with reasoning false and no levels. Two
causes:
- provider.models gave the live list in the config's shape
(reasoning: true, modalities: [...]). magpie's plugin host reads a
listed model's thinking from capabilities.reasoning and its kinds from
capabilities.input, so for a signed-in account every model read as not
reasoning, with no image input. It now gives OpenCode's model shape
(servedOf: api, capabilities, variants), as minimax/workbuddy do.
- No model had levels: nothing declared variants, and magpie shows a
model's levels only from them. models.mjs now records the measured
levels (efforts): ["low", "high"] on the 10 that thought, [] on
gpt-6-luna (took it, never thought). Only the two levels the table
shows were given. A model with levels reasons whatever its capability
word; one the seed doesn't know keeps the old rule (advanced reasons)
with no levels. refresh-models.mjs keeps efforts like names.
Run:
- bun test packages/opendesign: 21 pass, 0 fail. New: "a signed-in
account's models reason at the levels amr-link took (#137)", "the
seed's models carry the measured levels as the config's variants";
the live-list test now pins the OpenCode shape.
- Broken by hand: modelsOf back on modelOf (config shape) -> 2 fail;
efforts not passed from the seed to the live list -> 1 fail.
- magpie origin/main internal/plugin/host.js run under bun with a
preloaded fetch stub serving a 3-model catalog (init + providers, a
stored oauth account): with 0.1.4 gpt-6-luna, deepseek-v4-pro and
claude-haiku-5.5 all list reasoning=false variants=[] image=false;
with this change luna false/[]/image true, v4-pro true/[low high],
haiku true/[low high]/image true, url the amr-link base.
- refresh-models.mjs against the same stub: efforts kept per model.
- bun scripts/check.mjs: every package ok.
- TMPDIR/HOME isolated bun test (whole repo): 1526 pass, 0 fail. A first
run had 1 fail, packages/grok/login.test.mjs "a login's link is still
handed on" timing out at 5s with load average ~100; alone 3/3 pass and
the rerun of the whole repo passed. Untouched package; not filed.
Not tried: a real Open Design account (none here) or magpie's
`model efforts` command end to end; the levels rest on the reporter's
table.
Full suite: bun test (whole repo, with factory 0.1.30 below it): 1527 pass, 0 fail
New package @magpie-community/opencode-opendesign-auth 0.1.4, provider id `opendesign`: an Open Design Cloud account's Design Plan as a magpie provider (dbydd, #84).
Reviewed at this head (37ef688), as in the PR's last review: `HOME=<temp> bun test` for packages/opendesign, 19 pass; `bun scripts/check.mjs opendesign` ✓; the package loads under Node and Bun; `npm pack --dry-run` packs 5 files; a stubbed usage call sent its User-Agent to amr-api.open-design.ai only. The only hosts in it are amr-api.open-design.ai and amr-link.open-design.ai, with no install script, child process, or write outside OpenCode's auth store.
It no longer waits on its first npm publish: the publish workflow packs it onto the dist branch, and magpie 0.1.1243 and later install it from there until npm has it.