mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 21:05:51 +00:00
* feat: 支持自托管的 remote-control-server (#214) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
21 lines
649 B
TypeScript
21 lines
649 B
TypeScript
/**
|
|
* 启动 Remote Control Server
|
|
*
|
|
* Usage:
|
|
* bun run scripts/rcs.ts
|
|
* RCS_API_KEYS=key1,key2 RCS_PORT=4000 bun run scripts/rcs.ts
|
|
*/
|
|
import { config } from "../packages/remote-control-server/src/config";
|
|
|
|
console.log(`[RCS] Starting Remote Control Server...`);
|
|
console.log(`[RCS] Port: ${config.port}`);
|
|
console.log(`[RCS] API Key configuration loaded`);
|
|
console.log(`[RCS] JWT Secret: ${config.jwtSecret === "change-me-in-production" ? "default (set RCS_JWT_SECRET)" : "custom"}`);
|
|
console.log(`[RCS] DB: ${config.dbPath}`);
|
|
|
|
const server = await import("../packages/remote-control-server/src/index.ts");
|
|
|
|
Bun.serve(
|
|
server.default
|
|
)
|