mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-08-23 23:56:41 +00:00
- replace per-method actionMap (resource:action) with a channel registry: each Service registers once by decorator id and all methods are invoked by reflection - routes move from /api/v2/:sa to /api/v2/:service/:method across HTTP routes and the WS protocol - add @moonshot-ai/klient: typed core/session/agent client over the HTTP channel that reuses agent-core-v2 service interfaces - register klient in flake.nix and pnpm-lock; refresh kap-server tests, e2e, and the apiSurface snapshot
37 lines
811 B
JSON
37 lines
811 B
JSON
{
|
|
"name": "@moonshot-ai/klient",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "Kimi client SDK — reuse agent-core-v2 service interfaces over the /api/v2 HTTP channel.",
|
|
"license": "MIT",
|
|
"type": "module",
|
|
"imports": {
|
|
"#/*": [
|
|
"./src/*.ts",
|
|
"./src/*/index.ts"
|
|
]
|
|
},
|
|
"exports": {
|
|
".": {
|
|
"types": "./src/index.ts",
|
|
"default": "./src/index.ts"
|
|
},
|
|
"./package.json": {
|
|
"types": "./package.json",
|
|
"default": "./package.json"
|
|
},
|
|
"./*": {
|
|
"types": "./src/*.ts",
|
|
"default": "./src/*.ts"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsdown",
|
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
"test": "vitest run",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"dependencies": {
|
|
"@moonshot-ai/agent-core-v2": "workspace:^"
|
|
}
|
|
}
|