/** * Application constants definition */ import path from "path"; import os from "os"; /** * Application data storage directory * Used to store debug logs, command history and other data */ export const DATA_DIRECTORY = path.join(os.homedir(), ".wave"); /** * Prompt history file path */ export const PROMPT_HISTORY_FILE = path.join(DATA_DIRECTORY, "history.jsonl"); /** * Error log directory path */ export const ERROR_LOG_DIRECTORY = path.join(DATA_DIRECTORY, "error-logs"); /** * User-level memory file path */ export const USER_MEMORY_FILE = path.join(DATA_DIRECTORY, "AGENTS.md"); /** * AI related constants */ export const DEFAULT_WAVE_MAX_INPUT_TOKENS = 200000; // Default token limit export const DEFAULT_WAVE_MAX_OUTPUT_TOKENS = 32000; // Default output token limit (aligned with Claude Code) /** * Default server URL for SSO authentication. * Overridden by WAVE_SERVER_URL env var or programmatic AgentOptions.serverUrl. */ export const DEFAULT_SERVER_URL = "https://codechat.codewave.163.com";