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

WDIGI.VERSION = "1.1.0"

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

-- 2. Initialize all namespaces as empty tables FIRST
WDIGI.Commands = {}
WDIGI.DebugLevels = {}
WDIGI.Settings = {}
WDIGI.Navigation = {}
WDIGI.MapUtils = {}
WDIGI.Data = {}
WDIGI.Constants = {} -- Add this line!

-- 3. NOW you can safely assign values to them
WDIGI.Constants.US = string.char(31)
