mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
refactor: rename HAPI_BOT_URL to HAPI_SERVER_URL
The project is no longer primarily a bot - it now provides HTTP API, Socket.IO, SSE, and web app backend services. This rename reflects the broader scope of server functionality. Updates references in: - cli/src/configuration.ts (core config) - cli/src/ui/logger.ts (remote logging) - cli/src/ui/doctor.ts (diagnostics) - cli/src/commands/auth.ts (auth status) - cli/src/daemon/daemon.integration.test.ts (test comments) - README.md (quickstart docs) - cli/README.md (CLI docs) - cli/CLAUDE.md (dev docs)
This commit is contained in:
@@ -24,7 +24,7 @@ export function getEnvironmentInfo(): Record<string, any> {
|
||||
return {
|
||||
PWD: process.env.PWD,
|
||||
HAPI_HOME: process.env.HAPI_HOME,
|
||||
HAPI_BOT_URL: process.env.HAPI_BOT_URL,
|
||||
HAPI_SERVER_URL: process.env.HAPI_SERVER_URL,
|
||||
HAPI_PROJECT_ROOT: process.env.HAPI_PROJECT_ROOT,
|
||||
CLI_API_TOKEN_SET: Boolean(process.env.CLI_API_TOKEN),
|
||||
DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING: process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING,
|
||||
@@ -114,7 +114,7 @@ export async function runDoctorCommand(filter?: 'all' | 'daemon'): Promise<void>
|
||||
console.log(chalk.bold('\n🌍 Environment Variables'));
|
||||
const env = getEnvironmentInfo();
|
||||
console.log(`HAPI_HOME: ${env.HAPI_HOME ? chalk.green(env.HAPI_HOME) : chalk.gray('not set')}`);
|
||||
console.log(`HAPI_BOT_URL: ${env.HAPI_BOT_URL ? chalk.green(env.HAPI_BOT_URL) : chalk.gray('not set')}`);
|
||||
console.log(`HAPI_SERVER_URL: ${env.HAPI_SERVER_URL ? chalk.green(env.HAPI_SERVER_URL) : chalk.gray('not set')}`);
|
||||
console.log(`CLI_API_TOKEN: ${env.CLI_API_TOKEN_SET ? chalk.green('set') : chalk.gray('not set')}`);
|
||||
console.log(`DANGEROUSLY_LOG_TO_SERVER: ${env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING ? chalk.yellow('ENABLED') : chalk.gray('not set')}`);
|
||||
console.log(`DEBUG: ${env.DEBUG ? chalk.green(env.DEBUG) : chalk.gray('not set')}`);
|
||||
|
||||
@@ -51,9 +51,9 @@ class Logger {
|
||||
public readonly logFilePath = getSessionLogPath()
|
||||
) {
|
||||
// Remote logging enabled only when explicitly set with server URL
|
||||
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING
|
||||
&& process.env.HAPI_BOT_URL) {
|
||||
this.dangerouslyUnencryptedServerLoggingUrl = process.env.HAPI_BOT_URL
|
||||
if (process.env.DANGEROUSLY_LOG_TO_SERVER_FOR_AI_AUTO_DEBUGGING
|
||||
&& process.env.HAPI_SERVER_URL) {
|
||||
this.dangerouslyUnencryptedServerLoggingUrl = process.env.HAPI_SERVER_URL
|
||||
console.log(chalk.yellow('[REMOTE LOGGING] Sending logs to server for AI debugging'))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user