Repository navigation
Conversation
… channel A second package for the Trae channel, listed beside @magpie-community/opencode-trae-auth. Same accounts, different way of talking to the service: it is built on the trae channel of llm-api, so it sends the SOLO llm_utils_chat request with its AES-256-GCM encrypted body (x-request-pin / x-requested-at) instead of the relay's plain envelope, and reads the model table's real capability fields (context window, output limit, images, credits rate, reasoning levels) rather than a fixed list. It also differs in what it does around the chat: the IDE version headers are probed (the local install's product.json, else Trae's own update check) instead of pinned to a constant, the check-in uses the 15-digit device id that endpoint accepts, and errors are classified (1001/20101 lapsed, 4008/1005/4011 quota) so a lapsed sign-in asks for a new one instead of surfacing a 502.
|
Note on the version this listing points at: |
Adds
magpie-traecodetoregistry.jsonbeside the existing Trae entry(
@magpie-community/opencode-trae-auth). Both sign in to the same Traeaccounts; this one differs in how it talks to the service, which is what
this note is for.
What it shares
trae.cn) and Trae Global (trae.ai), providerids
trae-cn/trae-global.What it does differently
opencode-trae-authmagpie-traecodex-request-pin/x-requested-at), as the IDE sends itinternal/relay/channel/trae(the channel that runs in production)product.json, else Trae's own update check1001/20101→ re-sign-in,4008/1005/4011→ 429Verification
npm test: 115 unit cases on a local fake upstream, asserting the bytesactually sent (the ciphertext is decrypted with the response's own pin/at).
scripts/e2e-live.mjs): model list (20 models with thecapability fields above), streaming and non-streaming chat, tool calls,
check-in status and credits.
llm-api's Go
DecryptBody, and its SOLO header set matchesapplySoloHeaderskey for key.(via proxycli): the IDE's encrypted request body decrypts with this
package's
decryptBody.Listing
magpie-traecode(npm, public)trae-cn,trae-globaltrae(bundled)