Ant.version = import.meta.env.VERSION; Ant.target = import.meta.env.TARGET; Ant.revision = import.meta.env.GIT_HASH; Ant.buildDate = import.meta.env.BUILD_TIMESTAMP; Ant.host = import.meta.env.HOST as AntHost; Ant.typeof = function (t) { const value = Ant.raw.typeof(t); const types = { T_OBJ: 'object', T_PROP: 'prop', T_STR: 'string', T_UNDEF: 'undefined', T_NULL: 'null', T_NUM: 'number', T_BOOL: 'boolean', T_FUNC: 'function', T_CODEREF: 'coderef', T_CFUNC: 'cfunc', T_ERR: 'err', T_ARR: 'array', T_PROMISE: 'promise', T_TYPEDARRAY: 'typedarray', T_BIGINT: 'bigint', T_PROPREF: 'propref', T_SYMBOL: 'symbol', T_GENERATOR: 'generator', T_FFI: 'ffi', T_NTARG: 'ntarg' } as const; const names = Object.values(types); return value < names.length ? names[value] : '??'; }; Ant.inspect = (...args) => console.inspect(...args);