Files
plugins/packages/trae/package.json
T
yetone 5ec8377093 trae 0.2.18: native tool turns (#257), a result with no output isn't empty (#251), no tools keeps the text form
Releases #257 (WuJian1421), #260 and #273 (moxuanchen), with three fixes on
top of #257's native tool turns:

- A tool result with no text went out as an empty text part. wangjianjq
  measured on live Trae CN (#251) that Trae then refuses the whole request
  with 4027 ("insufficient tool messages following tool_calls message"),
  for either of two parallel results; " " or "0" passes. An empty result
  now goes as "(no output)", or "(the result's image follows)" when its
  image rides the user turn after the run. Credit wangjianjq (#251).
- A request whose body names no tools (none sent, or tool_choice "none",
  such as a summary) still sends past calls and results as text, as 0.2.17
  did: every live run of the native turns carried the tools in the body.
- A tool result answering no call the history sends goes back as a user
  text turn ("Result of ... (call id)"), not as a tool turn naming no call.
- A Windows APPDATA spelled with other case, separators or a trailing
  separator is the same root as the home's AppData\Roaming (test for #273's
  fix; it fails on 0.2.17's clientStoragePaths).

Run at this commit on origin/main c7a7379: bun test in packages/trae 175
pass 0 fail; bun scripts/check.mjs trae ok. Broken by hand: with the
merged #257 index.mjs, the three new request tests and the image placeholder
test fail (4 of 28 in request+images); with 0.2.17's index.mjs the new
APPDATA case fails. Not tried against a live Trae account (none here); the
live evidence is the PR authors'.
2026-10-20 22:06:55 +08:00

13 lines
592 B
JSON

{
"name": "@magpie-community/opencode-trae-auth",
"version": "0.2.18",
"description": "OpenCode provider plugins for Trae: Trae CN (trae.cn) and Trae Global (trae.ai), free tier included, with Trae's own browser sign-in",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": ["index.mjs", "README.md"],
"keywords": ["opencode", "opencode-plugin", "magpie", "trae", "trae-cn", "trae-global", "bytedance"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/trae" }
}