feat(cli): make clb web the primary web command

This commit is contained in:
digua committed 2026-08-12 12:47:00 +08:00
1 parent c6db9f0c4c
commit 47299a94cb
64 files changed
+264 -270

No files matched your search

+1 -11
View File
@@ -3,17 +3,7 @@ import { spawnSync } from 'node:child_process'
export function createChatlabStartCommand({ serverDir, backendPort, nodeExecutable = process.execPath }) {
return {
command: nodeExecutable,
args: [
'--watch',
'--import',
'tsx',
'src/cli.ts',
'start',
'--headless',
'--no-open',
'--port',
String(backendPort),
],
args: ['--watch', '--import', 'tsx', 'src/cli.ts', 'web', '--headless', '--no-open', '--port', String(backendPort)],
options: {
cwd: serverDir,
stdio: ['ignore', 'pipe', 'pipe'],