mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-10 01:39:25 +00:00
- Rename camelCase telemetry keys to snake_case on compaction_finished, compaction_failed, micro_compaction_finished, and the tool error event (tokens_before, tokens_after, compacted_count, retry_count, thinking_level, error_type, input_tokens/output_tokens, and the micro compaction config/effect keys). - Emit a fixed client-attribution key set (client_id/name/version/ui_mode, null when absent) from both session_started producers (core-impl and kimi-harness) so they share a stable schema. - Drop the duplicate current/latest keys on update_prompted and the redundant ui_mode on server_started. - Additive fields: login.method=oauth and question_answered.answered. Telemetry-only change; no changeset. |
||
|---|---|---|
| .. | ||
| 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