Documentation
¶
Overview ¶
Command trae builds the CPA c-shared plugin library for TRAE.
Both files in this directory are package main: main.go carries the exported cgo ABI and plugin.go carries the abiboot.Plugin implementation. Keeping the plugin implementation in the same package is what lets `go build -buildmode=c-shared ./plugins/trae` (see scripts/build.sh) emit the shared object directly from this directory.
Command trae implements the CLIProxyAPI native plugin for ByteDance TRAE.
The package is split after plugins/codearts:
config.go provider keys, per-region endpoint sets, settings credential.go persisted credential shape, expiry session.go deterministic device/identity derivation headers.go SOLO / check-in / OAuth request headers oauth.go login session, callback parsing, ExchangeToken auth.go auth.parse / auth.login.* / auth.refresh translate.go the OpenAI <-> SOLO translation core models.go catalog parsing, model discovery and gating executor.go executor.* and request/response translation routes credits.go daily check-in, credit balance, quota provider errors.go upstream error classification plugin.go registration and the management route table pluginui.go the HTML pages served into CPA-Manager-Plus
Click to show internal directories.
Click to hide internal directories.