44 */
55
66// ============================================================================
7- // MACRO — Bun compile-time macro function (from bun:bundle)
8- // Expands the function body at build time and removes the call in production.
9- // Also supports property access like MACRO.VERSION (compile-time constants).
7+ // MACRO — Bun compile-time constants injected via bunfig.toml [define] (dev)
8+ // and Bun.build({ define }) (production). See bunfig.toml & build.ts.
109declare namespace MACRO {
1110 export const VERSION : string
1211 export const BUILD_TIME : string
@@ -16,7 +15,6 @@ declare namespace MACRO {
1615 export const PACKAGE_URL : string
1716 export const VERSION_CHANGELOG : string
1817}
19- declare function MACRO < T > ( fn : ( ) => T ) : T
2018
2119// ============================================================================
2220// Internal Anthropic-only identifiers (dead-code eliminated in open-source)
@@ -62,11 +60,7 @@ declare type T = unknown
6260declare function TungstenPill ( props ?: { key ?: string ; selected ?: boolean } ) : JSX . Element | null
6361
6462// ============================================================================
65- // Build-time constants — replaced by Bun bundler, polyfilled at runtime
66- // Using `string` (not literal types) so comparisons don't produce TS2367
67- declare const BUILD_TARGET : string
68- declare const BUILD_ENV : string
69- declare const INTERFACE_TYPE : string
63+ // Build-time constants BUILD_TARGET/BUILD_ENV/INTERFACE_TYPE — removed (zero runtime usage)
7064
7165// ============================================================================
7266// Ink custom JSX intrinsic elements — see src/types/ink-jsx.d.ts
0 commit comments