Public facade for Klient client, re-exports core types.
// Source: https://github.com/MoonshotAI/kimi-code | License: MIT | Copyright 2026 Moonshot AI
// Provided via justclaw.it.com; keep this notice with the code.
/**
* `@moonshot-ai/klient` public surface — the transport-agnostic client facade
* over the agent-core-v2 engine. Create a klient with one of the transport
* entry points (`@moonshot-ai/klient/ipc` or `/memory`); everything
* exported here behaves identically regardless of which one carried the
* bytes.
*/
export type {
CallOptions,
EventSourceRef,
IDisposable,
KlientChannel,
ScopeRef,
} from './core/channel.js';
export { RPCError } from './core/errors.js';
export { KlientValidationError, type ValidationPhase } from './core/validation.js';
export {
createKlientFromChannel,
type AgentHandle,
type Klient,
typ
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key