Files
ChatLab/scripts/dev-serve.sh
T
digua 78e41a65b5 refactor: migrate CLI from packages/server to apps/cli
Move the CLI application from packages/server/ to apps/cli/ to align
with the monorepo convention (apps/ for deployable applications,
packages/ for shared libraries). Rename package to @openchatlab/chatlab.

Also fix a bug in ensureToken() that used raw string manipulation to
write config.toml, causing duplicate token fields that corrupted the
TOML file. This led to config parse failures and user_data_dir being
overwritten with defaults. Now uses writeConfigField() for safe writes.
2026-05-19 21:33:00 +08:00

11 lines
264 B
Bash
Executable File

#!/usr/bin/env bash
# Dev server with tsx watch — monitors workspace packages for changes.
set -e
pnpm run ensure:server-native
exec tsx watch \
--include 'packages/core/src/**' \
--include 'packages/node-runtime/src/**' \
apps/cli/src/cli.ts serve "$@"