claude-code-best/scripts
Dosion 0c53796d15
feat: restore daemon supervisor and remoteControlServer command (#170)
Reverse-engineer the missing daemon + remoteControlServer implementation
by tracing the call chain from existing code:

- src/daemon/main.ts: restore from stub to full supervisor (spawn/monitor
  workers, exponential backoff restart, graceful shutdown)
- src/daemon/workerRegistry.ts: restore from stub to worker dispatcher
  (remoteControl kind → runBridgeHeadless())
- src/commands/remoteControlServer/: new slash command /remote-control-server
  (alias /rcs) for managing the daemon from REPL
- build.ts + scripts/dev.ts: enable DAEMON feature flag

Both official CLI 2.1.92 and our codebase had the command registered in
commands.ts but the directory and daemon implementation were missing.
The bottom layer (runBridgeHeadless in bridgeMain.ts) was already complete.

Co-authored-by: unraid <local@unraid.local>
2026-04-07 15:36:29 +08:00
..
defines.ts refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入 2026-04-02 09:51:48 +08:00
dev-debug.ts feat: 简化 debug 方式 2026-04-03 16:47:24 +08:00
dev.ts feat: restore daemon supervisor and remoteControlServer command (#170) 2026-04-07 15:36:29 +08:00
download-ripgrep.ts fix: 尝试修复 windows 下面没有 unzip 的问题 2026-04-04 17:02:39 +08:00
health-check.ts feat: 添加代码健康度检查脚本 2026-04-01 07:17:09 +08:00
postinstall.cjs feat: 支持简化版本的 rg 下载 2026-04-06 10:31:15 +08:00
verify-gates.ts feat: enable GrowthBook local gate defaults for P0/P1 features 2026-04-06 17:00:30 +08:00