Download packages/kap-server/src/protocol/messages/hello.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 282 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/messages/hello.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/kap-server/src/protocol/messages/hello.ts
-
curl -L -o hello.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/kap-server/src/protocol/messages/hello.ts
282 Bytes
| import { z } from 'zod'; | |
| export const helloMessageSchema = z.object({ | |
| type: z.literal('hello'), | |
| protocol_version: z.string().min(1), | |
| server_id: z.string().min(1), | |
| capabilities: z.array(z.string().min(1)), | |
| }); | |
| export type HelloMessage = z.infer<typeof helloMessageSchema>; | |