Download apps/vis/server/src/index.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 671 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/server/src/index.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vis/server/src/index.ts
-
curl -L -o index.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/server/src/index.ts
671 Bytes
| import { KIMI_CODE_HOME, resolveHost, resolveVisAuthToken } from './config'; | |
| import { startVisServer } from './start'; | |
| import { formatStartupBanner } from './startup-banner'; | |
| async function main(): Promise<void> { | |
| const host = resolveHost(); | |
| const authToken = resolveVisAuthToken(host); | |
| const { port } = await startVisServer({ host, authToken }); | |
| process.stdout.write( | |
| formatStartupBanner({ authToken, host, kimiCodeHome: KIMI_CODE_HOME, port }), | |
| ); | |
| } | |
| try { | |
| await main(); | |
| } catch (error: unknown) { | |
| process.stderr.write( | |
| `[vis-server] fatal: ${error instanceof Error ? (error.stack ?? error.message) : String(error)}\n`, | |
| ); | |
| process.exit(1); | |
| } | |