diff --git a/scripts/build.ts b/scripts/build.ts index 57473e1bdc..32bb5e023e 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -146,6 +146,7 @@ result = await Bun.build({ JSON.stringify('https://github.com/Gitlawb/openclaude/issues'), 'MACRO.PACKAGE_URL': JSON.stringify('@gitlawb/openclaude'), 'MACRO.NATIVE_PACKAGE_URL': 'undefined', + 'MACRO.VERSION_CHANGELOG': 'undefined', }, plugins: [ noTelemetryPlugin, @@ -494,6 +495,7 @@ sdkResult = await Bun.build({ JSON.stringify('https://github.com/Gitlawb/openclaude/issues'), 'MACRO.PACKAGE_URL': JSON.stringify('@gitlawb/openclaude'), 'MACRO.NATIVE_PACKAGE_URL': 'undefined', + 'MACRO.VERSION_CHANGELOG': 'undefined', }, // External: everything TUI-related + native modules external: SDK_EXTERNALS, diff --git a/src/global.d.ts b/src/global.d.ts index 2d2aaaf10b..8c96f04ec9 100644 --- a/src/global.d.ts +++ b/src/global.d.ts @@ -11,6 +11,13 @@ declare const MACRO: { DISPLAY_VERSION: string BUILD_TIME: string ISSUES_EXPLAINER: string + FEEDBACK_CHANNEL: string PACKAGE_URL: string NATIVE_PACKAGE_URL: string | undefined + VERSION_CHANGELOG: string | undefined +} + +declare module '*.md' { + const content: string + export default content }