kimi-code/packages/server-e2e/package.json
haozhe.yang 61ef35b302 feat(server-e2e): add typed v2 ServerClient SDK with drift test
- add ServerClient under src/v2: typed /api/v2 resource tree over HTTP
  plus events over WebSocket, with core/session/agent scopes and a v1
  escape hatch for the legacy REST surface
- add resource modules (core/session/agent/events), a manifest mirroring
  the server-v2 actionMap, shared types, and transport (HttpRpc,
  rpcProxy, V2Socket)
- expose @moonshot-ai/server-v2/contract (actionMap + channel helpers)
  so the SDK drift test stays in lockstep with the server surface
- add an in-process smoke test and the vitest raw-text/hash-imports
  plugins needed to import server-v2 source from the e2e tests
- add optional bearer token support to the legacy HttpClient and document
  the two-client package layout
2026-07-02 01:06:16 +08:00

48 lines
1.2 KiB
JSON

{
"name": "@moonshot-ai/server-e2e",
"version": "0.1.0",
"private": true,
"description": "Wire-level E2E test client for the kimi-code server (HTTP + WS). Powers scenario scripts and self-tests against a real server process.",
"license": "MIT",
"author": "Moonshot AI",
"repository": {
"type": "git",
"url": "git+https://github.com/MoonshotAI/kimi-code.git",
"directory": "packages/server-e2e"
},
"bugs": {
"url": "https://github.com/MoonshotAI/kimi-code/issues"
},
"type": "module",
"imports": {
"#/*": [
"./src/*.ts",
"./src/*/index.ts"
]
},
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "tsdown",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"test:scenarios": "tsx scripts/run-scenarios.ts",
"docker:e2e": "bash scripts/run-docker-e2e.sh",
"clean": "rm -rf dist"
},
"dependencies": {
"@moonshot-ai/protocol": "workspace:^",
"ulid": "^3.0.1",
"ws": "^8.18.0",
"zod": "catalog:"
},
"devDependencies": {
"@moonshot-ai/agent-core-v2": "workspace:^",
"@moonshot-ai/server-v2": "workspace:^",
"@types/ws": "^8.18.0"
}
}