mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
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.
11 lines
264 B
Bash
Executable File
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 "$@"
|