fn get_profile_table(lua: &Lua) -> Result<LuaTable>
Return the canonical profile table, falling back to the legacy agent global so existing scripts continue to work unchanged.
profile
agent