kimi-code/packages/kosong/test/e2e
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
..
fixtures Kimi For Coding 2026-05-22 15:54:50 +08:00
abort-cleanup.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
abort-signal.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
anthropic-adapter.test.ts fix(kosong): isolate anthropic auth environment (#790) 2026-06-16 14:30:49 +08:00
cross-provider-consistency.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
error-recovery.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
extreme-streams.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
fake-provider-harness.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
fake-provider-harness.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
google-genai-adapter.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
google-genai-error-mapping.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
kimi-adapter-e2e.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
multi-step-agent-loop.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
openai-legacy-adapter-e2e.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
openai-responses-adapter-e2e.test.ts fix: send responses system prompts as instructions (#658) 2026-06-11 19:32:26 +08:00
parallel-tool-calls.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
provider-error-handling.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
provider-switching.test.ts Kimi For Coding 2026-05-22 15:54:50 +08:00
streaming-fidelity.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
streaming-providers.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
toolchain-bridges.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00
toolset-advanced.test.ts feat: flatten tool call records (#25) 2026-05-25 23:02:25 +08:00