cui-server
Version:
Web UI Agent Platform based on Claude Code
20 lines • 776 B
JavaScript
/**
* Display server startup information with rocket emoji and open browser
*/
export function displayServerStartup(options) {
const { host, port, authToken, skipAuthToken, logger } = options;
const serverUrl = `http://${host}:${port}`;
let authUrl = `http://localhost:${port}#token=${authToken}`;
if (host !== '0.0.0.0') {
authUrl = `http://${host}:${port}#token=${authToken}`;
}
if (!skipAuthToken && authToken) {
logger.info(`🚀 Server listening on ${serverUrl}`);
logger.info(`🔗 Access with auth token: ${authUrl}`);
}
else {
logger.info(`🚀 Server listening on ${serverUrl}`);
logger.info('Authentication is disabled (--skip-auth-token)');
}
}
//# sourceMappingURL=server-startup.js.map