package consts

// App Info
const APP_NAME = "DreamCreator"
const APP_NAME_WINDOWS = "Dream Creator"
const APP_ID = "dreamcreator"
const APP_DESC = "DreamCreator is a comprehensive multilingual video download manager with a fluid user experience and powerful content processing capabilities.\n\nCopyright 2025"
const BBOLT_DB_NAME = "dreamcreator.db"

var APP_VERSION = "dev"

// Telemetry defaults are injected at build time via -ldflags. They remain empty in dev
// builds unless explicitly overridden during compilation.
var TelemetryAppID = ""
var TelemetryEndpoint = ""

// App Config File
const PREFERENCES_FILE_NAME = "preferences.yaml"

// App Size
const DEFAULT_WINDOW_WIDTH = 900
const DEFAULT_WINDOW_HEIGHT = 600
const MIN_WINDOW_WIDTH = 900
const MIN_WINDOW_HEIGHT = 600

// App Upgrade URL
const CHECK_UPDATE_URL = "https://api.github.com/repos/arnoldhao/dreamcreator/releases/latest"

// Task
const (
	TASK_TYPE_CUSTOM = "custom"
	TASK_TYPE_QUICK  = "quick"
	TASK_TYPE_MCP    = "mcp"
)

// listend port
const (
	WS_PORT         = 34444
	MCP_SERVER_PORT = 34445
)

// HTTP
const (
	USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
)
