-- core.lua
local ADDON_NAME, WDIGI = ...
_G.WDIGI = WDIGI

local GetMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or GetAddOnMetadata
WDIGI.VERSION = GetMetadata(ADDON_NAME, "Version") or ""

-- Initialize the base Utils table
WDIGI.Utils = WDIGI.Utils or {}

-- Initialize all namespaces
WDIGI.Commands = {}
WDIGI.DebugLevels = {}
WDIGI.Settings = {}
WDIGI.Navigation = {}
WDIGI.MapUtils = {}
WDIGI.Data = {}
WDIGI.Constants = {}

WDIGI.Constants.RS = string.char(30) -- Record Separator (\x1e)
WDIGI.Constants.US = string.char(31) -- Unit Separator (\x1f)
