add external

This commit is contained in:
2025-12-17 22:32:08 +08:00
parent 22de8cad52
commit 8f29ddb449
4 changed files with 109 additions and 19 deletions

View File

@@ -9,7 +9,7 @@ import path from 'node:path'
import chalk from 'chalk';
import { AssistantApp } from './lib.ts';
import { getBunPath } from './module/get-bun-path.ts';
export const runServer = async (port?: number, listenPath = '127.0.0.1') => {
export const runServer = async (port: number = 51015, listenPath = '127.0.0.1') => {
let _port: number | undefined;
if (port) {
_port = await getPort({ port });