package envcompat

// Alias describes one env var rename: New is the current name, Legacy holds
// the prior names still tolerated for backward compatibility.
type Alias struct {
	New    string
	Legacy []string
}

// Registry is the project-wide rename table. Order is informational.
//
// Add new renames here as the project evolves. Lookup callers pass the
// matching legacy names explicitly as well; centralizing the table lets
// WarnLegacyOnce report every outstanding legacy usage at startup.
var Registry = []Alias{
	{New: "AGENTTEAM_DATABASE_DSN", Legacy: []string{"AGENTTEAM_CORE_STORAGE_DSN"}},
	{New: "MESHX_AGS_EMBEDDING_API_KEY", Legacy: []string{"EMBEDDING_API_KEY"}},
	{New: "MESHX_AGS_EMBEDDING_BASE_URL", Legacy: []string{"EMBEDDING_BASE_URL"}},
	{New: "MESHX_AGS_EMBEDDING_MODEL", Legacy: []string{"EMBEDDING_MODEL"}},
	{New: "MESHX_AGS_EMBEDDING_DIMENSIONS", Legacy: []string{"EMBEDDING_DIMENSIONS"}},
	{New: "AGENTTEAM_WEB_SERVE_ENABLED", Legacy: []string{"AGENTTEAM_SERVE_WEB"}},
	{New: "AGENTTEAM_MESSAGES_RETENTION_DAYS", Legacy: []string{"AGENTTEAM_MESSAGE_HISTORY_DAYS"}},
}
