package config import "vcom/internal/state" // Session types and functions are thin aliases over internal/state, kept so // the old UI compiles unchanged until stage 7. type ( SessionState = state.Session PaneSession = state.PaneSession ) // DefaultSessionPath returns the session file ($XDG_STATE_HOME/vcom/session.toml). func DefaultSessionPath() (string, error) { return state.File() } // LoadSession reads the session (migrating it from the old location once). func LoadSession() (SessionState, error) { return state.Load() } // SaveSession writes the session atomically. func SaveSession(s SessionState) error { return state.Save(s) }