- Migrate favorite command from opencode to csc with /hub command - Rename /favorite → /cloud-enabled → /knowledge-hub → /hub - Auto-enable cloud favorites on startup without manual Update button - Toggle items immediately on check/uncheck without Update button - Add favorite REST routes and kh alias (later removed) - Fix UDS socket path length exceeding macOS sockaddr_un.sun_path limit - Add AbortController timeout to CoStrict fetch to prevent startup blocking - Fix build robustness (handle missing download-ripgrep script) - Merge server refactor: Hono-based HTTP API, session management, transcript reader - Add serve API docs, server module unit tests, and cloud command handler Signed-off-by: 林凯90331 <90331@sangfor.com> Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
19 lines
555 B
TypeScript
19 lines
555 B
TypeScript
import type { ServerConfig } from './types.js'
|
|
|
|
export function printBanner(
|
|
config: ServerConfig,
|
|
authToken: string | undefined,
|
|
actualPort: number,
|
|
): void {
|
|
const url = config.unix
|
|
? `unix:${config.unix}`
|
|
: `http://${config.host}:${actualPort}`
|
|
|
|
process.stderr.write(`\ncsc server listening on ${url}\n`)
|
|
|
|
// Auth token display intentionally disabled while serve auth is disabled.
|
|
|
|
process.stderr.write(`Max sessions: ${config.maxSessions ?? 32}\n`)
|
|
process.stderr.write(`Workspace: ${config.workspace || process.cwd()}\n\n`)
|
|
}
|