kimi-code/packages/server-v2/package.json
haozhe.yang 4d103c5d76 feat(server-v2): add auth and request security hardening
- add persistent bearer-token auth (token store, credentials, password hashing)
- gate HTTP and WebSocket (bearer subprotocol) upgrades behind auth
- classify loopback vs non-loopback binds and validate hostnames/origin
- add rate limiting and security headers middleware
- add GUI store service and routes
- add process file locking
2026-07-01 11:44:20 +08:00

40 lines
1.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "@moonshot-ai/server-v2",
"version": "0.0.0",
"private": true,
"description": "Kimi Code server backed by the DI × Scope agent engine (agent-core-v2)",
"type": "module",
"exports": {
".": {
"types": "./src/index.ts",
"default": "./src/index.ts"
}
},
"scripts": {
"build": "tsdown",
"dev": "tsx --tsconfig ./tsconfig.dev.json --import ../../build/register-raw-text-loader.mjs --import ../../build/register-hash-imports-loader.mjs ./src/main.ts",
"typecheck": "tsc -p tsconfig.json --noEmit",
"test": "vitest run",
"clean": "rm -rf dist"
},
"dependencies": {
"@moonshot-ai/agent-core-v2": "workspace:^",
"@moonshot-ai/protocol": "workspace:^",
"@fastify/multipart": "^10.0.0",
"@fastify/swagger": "^9.7.0",
"bcryptjs": "2.4.3",
"fastify": "^5.1.0",
"node-pty": "^1.1.0",
"pino": "^9.5.0",
"pino-pretty": "^13.0.0",
"smol-toml": "1.6.1",
"ulid": "^3.0.1",
"ws": "^8.20.0",
"zod": "catalog:"
},
"devDependencies": {
"@types/bcryptjs": "2.4.6",
"@types/ws": "^8.18.0",
"tsx": "^4.21.0"
}
}