kimi-code/packages/oauth/test
Kai 821847cb4b
feat(managed-kimi-code): route anthropic protocol via beta api (#1186)
* feat(managed-kimi-code): route anthropic protocol via beta api

- kosong: add betaApi option to use client.beta.messages.create
- agent-core: thread alias betaApi into the anthropic provider config
- oauth: route managed models on the anthropic protocol through the beta Messages API

* feat(providers): add KIMI_CODE_CUSTOM_HEADERS support

- Add KIMI_CODE_CUSTOM_HEADERS env var for custom outbound LLM headers
- Send User-Agent to non-Kimi providers
- Forward Kimi identity headers to model catalog fetches
- Support defaultHeaders in Google GenAI provider

* feat(agent-core): add protocol attrs to turn and api error telemetry

- Add type/protocol/alias to api_error for per-protocol error attribution

- Add turn_ended event with reason/duration/mode/type/protocol

- Add type/protocol to turn_interrupted

* chore(oauth): remove hardcoded internal dev endpoint from shared OAuth base URLs

---------

Co-authored-by: haozhe.yang <yanghaozhe@moonshot.ai>
2026-06-29 14:24:01 +08:00
..
custom-registry.test.ts fix(oauth): fix multi-provider custom registry import losing providers (#335) 2026-06-02 20:05:00 +08:00
helpers.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
identity.test.ts feat(update): roll out automatic updates in staged batches via CDN manifest (#691) 2026-06-15 16:52:44 +08:00
managed-feedback-upload.test.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
managed-feedback.test.ts feat(feedback): support attaching logs and codebase (#1120) 2026-06-26 16:15:08 +08:00
managed-kimi-code.test.ts feat(managed-kimi-code): route anthropic protocol via beta api (#1186) 2026-06-29 14:24:01 +08:00
managed-usage.test.ts fix: Surface API-provided error messages for OAuth and managed API failures (#11) 2026-05-25 14:10:32 +08:00
oauth-manager-lock-failure.test.ts ci: run unit tests on windows (#1037) 2026-06-26 11:56:41 +08:00
oauth-manager-multi-process.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
oauth-manager.test.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
oauth.test.ts fix: classify OAuth token refresh errors by cause (#838) 2026-06-17 18:34:42 +08:00
open-platform.test.ts feat: support always-thinking models via supports_thinking_type (#662) 2026-06-11 23:16:02 +08:00
refresh-threshold.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
storage.test.ts ci: run unit tests on windows (#1037) 2026-06-26 11:56:41 +08:00
toolkit.test.ts feat(managed-kimi-code): support Anthropic-compatible protocol (#1170) 2026-06-28 13:04:03 +08:00