kimi-code/packages/kosong/test
7Sageer d0d5821900
fix(kosong): isolate anthropic auth environment (#790)
* fix(kosong): isolate anthropic auth environment

* fix(kosong): close remaining anthropic env fallbacks

Pass explicit nulls into the Anthropic SDK for unused auth/base URL overrides, keep adapter-owned auth headers authoritative, and add regression coverage for Anthropic shell env leakage.

* fix(kosong): block anthropic custom header env leakage

* docs(kosong): explain anthropic env-isolation intent + migration

Spell out that the SDK is used as a transport to arbitrary endpoints, so disabling its shell-env auto-discovery is the fix: the authToken/baseURL/header nulls are load-bearing, not redundant. Also document the behavior change (shell ANTHROPIC_* no longer read; use provider config) in the changeset. No logic change.
2026-06-16 14:30:49 +08:00
..
e2e fix(kosong): isolate anthropic auth environment (#790) 2026-06-16 14:30:49 +08:00
fixtures refactor: resolve model capabilities via a static table lookup (#776) 2026-06-15 17:58:08 +08:00
providers fix(kosong): repair mismatched schema types from Xcode 26.5 MCP (#343) 2026-06-15 20:47:15 +08:00
anthropic-errors.test.ts feat: agent swarm (#424) 2026-06-08 14:26:56 +08:00
anthropic.test.ts fix(kosong): isolate anthropic auth environment (#790) 2026-06-16 14:30:49 +08:00
capability-providers.test.ts refactor: resolve model capabilities via a static table lookup (#776) 2026-06-15 17:58:08 +08:00
capability.test.ts refactor: resolve model capabilities via a static table lookup (#776) 2026-06-15 17:58:08 +08:00
catalog.test.ts fix(catalog): preserve reasoning fields in custom model (#70) 2026-05-26 17:32:37 +08:00
echo-provider.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
errors.test.ts feat: agent swarm (#424) 2026-06-08 14:26:56 +08:00
finish-reason.test.ts fix: prevent streaming tool argument CPU spikes (#29) 2026-05-25 19:49:11 +08:00
generate.test.ts fix: show concise filtered response errors (#456) 2026-06-05 12:48:35 +08:00
google-genai.test.ts feat: agent swarm (#424) 2026-06-08 14:26:56 +08:00
kimi-files.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
kimi.test.ts fix: normalize tool call ids across providers (#327) 2026-06-02 16:42:40 +08:00
message.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
openai-common-errors.test.ts feat: agent swarm (#424) 2026-06-08 14:26:56 +08:00
openai-legacy.test.ts fix: stop silently dropping unsupported multimodal content in kosong providers (#632) 2026-06-10 21:39:03 +08:00
openai-responses.test.ts fix: send responses system prompts as instructions (#658) 2026-06-11 19:32:26 +08:00
provider.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
regression.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
scripted-echo-provider.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
simple-toolset.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
step.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
stress.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
tool-message-conversion.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
type-safety-negative.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
type-safety.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
typed-tool.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
usage.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00