kimi-code/packages/klient/package.json
7Sageer 9d544edfa5 fix: unblock CI typecheck, lint, and failing tests
- klient: declare @moonshot-ai/kap-server devDependency (and lockfile) so
  the e2e server-pair harness resolves on clean installs
- kap-server: import ProviderRefresh* from app/kosongConfig/discovery after
  the upstream kosong decoupling moved it; narrow journal readError to
  Error | undefined to satisfy no-redundant-type-constituents and
  no-base-to-string
- agent-core-v2: align plan-file write integration tests with the guard's
  pass-through adjudication (approval, deny rules, and fencing all apply)
- test harness: force synchronous activity-view instantiation so Delayed
  ignition cannot race a test turn and drop agent.activity.updated events
2026-07-23 12:15:58 +08:00

56 lines
1.9 KiB
JSON

{
"name": "@moonshot-ai/klient",
"version": "0.1.0",
"private": true,
"description": "Kimi client SDK — contract-driven facade over agent-core-v2, routable over ipc or in-memory transports.",
"license": "MIT",
"type": "module",
"imports": {
"#/*": "./src/*.ts"
},
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
},
"./ipc": {
"types": "./src/transports/ipc/index.ts",
"default": "./src/transports/ipc/index.ts"
},
"./memory": {
"types": "./src/transports/memory/index.ts",
"default": "./src/transports/memory/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 && pnpm typecheck:examples",
"typecheck:examples": "tsc -p tsconfig.examples.json --noEmit",
"test": "vitest run",
"smoke": "tsx --tsconfig ./tsconfig.examples.json --import ../../build/register-raw-text-loader.mjs examples/smoke.ts",
"smoke:boundary": "tsx --tsconfig ./tsconfig.examples.json --import ../../build/register-raw-text-loader.mjs examples/model-requester-boundary.ts",
"smoke:select-tools": "tsx --tsconfig ./tsconfig.examples.json --import ../../build/register-raw-text-loader.mjs examples/kimi-select-tools.ts",
"stress:kosong-config": "tsx --tsconfig ./tsconfig.examples.json --import ../../build/register-raw-text-loader.mjs examples/kosong-config-stress.ts",
"clean": "rm -rf dist",
"docker:e2e": "bash scripts/run-docker-e2e.sh"
},
"dependencies": {
"@moonshot-ai/agent-core-v2": "workspace:^",
"zod": "catalog:"
},
"devDependencies": {
"@moonshot-ai/kap-server": "workspace:^",
"@moonshot-ai/protocol": "workspace:^",
"@types/ws": "^8.18.0",
"ulid": "^3.0.1",
"ws": "^8.18.0"
}
}