Repository navigation
Conversation
9a8a7e8 to
42f1fe5
Compare
|
Thanks, @not502. Before a line-by-line review, this needs the maintainer to look first. It handles credentials: there's a browser sign-in of its own, Two questions you can answer in the meantime:
|
|
Holding this one; it can't merge as it stands. Reviewed at 42f1fe5.
With those changes (its own sign-in only, the per-agent key, a visible confirm before anything goes to Trae's cloud), I'll review it again. |
|
Correction to point 3: the mirror runs from |
30cceff to
0c32845
Compare
|
Thanks for the review. All three points are addressed in 0.2.0, and I answered the two questions below.
Hosts the runtime can reach (the Trae account token is sent only to the Trae model API):
Sign-in renewal: Trae CN: only Tests: 32 pass; |
0c32845 to
5766c3e
Compare
|
Re-checked at 5766c3e. All three points I raised are fixed:
My hold for possible harm is lifted. The rest of the review can go ahead as usual. |
|
Thanks for lifting the hold. The Locally the package passes |
|
@not502 I ran 5766c3e on Linux (Bun 1.4.2, temp HOME): 31 pass, 1 fail. The code is right, and the test is what's wrong. I'll keep reviewing the rest after that push. One thing to know before it can merge: this is a new package, so its first npm publish (and the trusted-publisher setup) is done by the maintainer. |
Add
@magpie-community/agent-trae0.2.0Trae (ByteDance's AI IDE) as a Magpie agent, with a visible preview/confirm step before anything is written to Trae's cloud.
Changes since the review
trae-crypto.mjsand every read of Trae's credential store. The only credential source is the package's owntrae-agentbrowser sign-in (magpie plugin login trae-agent), stored by Magpie undertrae-agentinplugin-auth.json.gatewayKey()and all reads ofcaller-keys.json/settings.jsongateway keys. The gateway model list is read with the per-agent key Magpie writes intoconnection.json.User/mcp.json, only entries the plugin wrote.Hosts the runtime can reach
Trae model API (the account token is sent only to these):
https://coresg-normal.trae.aihttps://core-normal.trae.aihttps://coreva-normal.trae.aihttps://core-normal.traeapi.ushttps://core-normal.trae.cn~/.trae/magpie/trae-host.json(normally one of the above)Sign-in renewal:
https://growsg-normal.trae.aihttps://grow-normal.trae.cnOther:
connection.json(defaulthttp://127.0.0.1:3425; the per-agent key is used there, never the Trae account token);https://www.trae.ai/authorizationis opened in the browser by Magpie for sign-in; the plugin's runtime does not fetch it.No other network hosts are reachable by the code.
Trae CN sign-in
Only
trae-agent's own entry is read or refreshed. The plugin never readstrae-globalortrae-cn; the existing Trae CN subscription's saved sign-in is untouched.Testing
bun test packages/agent-trae→ 32 pass.bun scripts/check.mjs→ passes.model-state.jsonuntouched; the page preview listed the add/remove changes; confirming through the page added and later removed a model; no Trae window or extension involved.