mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-01 12:34:55 +00:00
* fix: scope Anthropic effort fallback profile to non-Kimi providers Managed Kimi models routed through the Anthropic protocol (protocol = "anthropic", no catalog-declared think_efforts) inherited the inferred latest-Opus effort profile, so the UI showed reasoning effort choices the server never declared. The fallback now applies only when the provider type is known, non-kimi, and the effective wire protocol is Anthropic; Kimi providers keep catalog-declared efforts only, and callers without provider context fall back to name matching. * fix: align v2 catalog with resolver for providerless Anthropic models Flat models (inline base_url, no named provider) and providers without a declared type now fall back to the model's own protocol when deciding the Anthropic fallback effort profile, so the model catalog stays consistent with runtime resolution. * fix: keep flat Anthropic model effort metadata in TUI and ACP catalogs Flat models without a named provider (inline base_url, protocol: "anthropic") have no provider entry to look up; fall back to the model's own protocol as the provider identity so the effort picker and ACP catalog stay consistent with runtime resolution. * style: move v2 anthropic fallback rationale into the modelAuth header The v2 comment convention keeps comments in the top-of-file block only; drop the inline explanations added beside functions and statements. |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| CHANGELOG.md | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@moonshot-ai/acp-adapter
Agent Client Protocol adapter for kimi-code. Exposes the kimi-code agent over the Agent Client Protocol so that ACP-compatible clients (editors, IDEs, custom front-ends) can drive a kimi-code session over stdio.
Part of the Kimi Code monorepo.
Minimum usage
import { createKimiHarness } from '@moonshot-ai/kimi-code-sdk';
import { runAcpServer } from '@moonshot-ai/acp-adapter';
const harness = await createKimiHarness();
await runAcpServer(harness);
runAcpServer reads JSON-RPC from process.stdin, writes to process.stdout, and resolves when the client closes the connection. SIGINT and SIGTERM trigger a graceful drain that calls harness.close() before the process exits.
See docs/zh/reference/kimi-acp.md for the full capability matrix (which Agent methods are wired, which extensions are stubbed, image / MCP support) and docs/zh/guides/ides.md for Zed and JetBrains setup.
License
MIT