singularity-forge/packages
ace-pm 1fc62582ed feat(anthropic): support longcat as Bearer-auth Anthropic-compatible provider
LongCat (Meituan) ships an Anthropic-compatible endpoint at
https://api.longcat.chat/anthropic that authenticates via
`Authorization: Bearer $KEY` instead of Anthropic's native `x-api-key`
header. Without this change, pi sends x-api-key and LongCat replies
with 401 invalid_api_key / missing_api_key.

Same topology as the existing alibaba-coding-plan / minimax /
minimax-cn entries (#3783).

- Add "longcat" to usesAnthropicBearerAuth() so createClient routes
  the key through authToken.
- Add "longcat": "LONGCAT_API_KEY" to env-api-keys.ts envMap so
  getEnvApiKey() can resolve it when options.apiKey is absent.
- Add "longcat" to KnownProvider so the === literal check type-checks.
- Extend anthropic-auth.test.ts to assert usesAnthropicBearerAuth
  returns true for longcat.
2026-04-15 08:54:52 +02:00
..
daemon fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
mcp-server feat(graph): parse LEARNINGS.md into knowledge graph and rebuild after extraction 2026-04-15 04:52:52 +02:00
native fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
pi-agent-core fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
pi-ai feat(anthropic): support longcat as Bearer-auth Anthropic-compatible provider 2026-04-15 08:54:52 +02:00
pi-coding-agent fix(chat): preserve claude MCP thinking visibility during tool windows 2026-04-14 23:09:20 -05:00
pi-tui fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00
rpc-client fix(release): sync all workspace versions and harden release scripts 2026-04-14 19:35:28 -05:00