claude-code-best/src/types
claude-code-best 28e40ddc67 refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入
- 删除 cli.tsx 顶部的 globalThis.MACRO / BUILD_* / feature polyfill
- 新增 scripts/defines.ts 作为 MACRO define 映射的单一来源
- 新增 scripts/dev.ts,通过 bun run -d 在转译时注入 MACRO 常量
- build.ts 引用 getMacroDefines() 实现构建时内联
- 清理 global.d.ts (移除 BUILD_*, MACRO 函数声明)
- 55 个 MACRO 消费文件零改动

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-02 09:51:48 +08:00
..
generated feat: build 2026-03-31 19:22:47 +08:00
src feat: 完成stub 2026-03-31 20:40:16 +08:00
command.ts feat: build 2026-03-31 19:22:47 +08:00
connectorText.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
fileSuggestion.ts feat: 完成stub 2026-03-31 20:40:16 +08:00
global.d.ts refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入 2026-04-02 09:51:48 +08:00
hooks.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
ids.ts feat: build 2026-03-31 19:22:47 +08:00
ink-elements.d.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
ink-jsx.d.ts feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
internal-modules.d.ts refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入 2026-04-02 09:51:48 +08:00
logs.ts feat: build 2026-03-31 19:22:47 +08:00
message.ts feat: 大规模清理 claude 的类型问题及依赖 2026-03-31 22:21:35 +08:00
messageQueueTypes.ts feat: 完成大部分操作 2026-03-31 21:40:37 +08:00
notebook.ts feat: 完成stub 2026-03-31 20:40:16 +08:00
permissions.ts feat: build 2026-03-31 19:22:47 +08:00
plugin.ts feat: build 2026-03-31 19:22:47 +08:00
react-compiler-runtime.d.ts feat: 完成stub 2026-03-31 20:40:16 +08:00
sdk-stubs.d.ts feat: 完成大部分操作 2026-03-31 21:40:37 +08:00
statusLine.ts feat: 完成stub 2026-03-31 20:40:16 +08:00
textInputTypes.ts feat: build 2026-03-31 19:22:47 +08:00
tools.ts feat: 完成stub 2026-03-31 20:40:16 +08:00
utils.ts feat: 完成stub 2026-03-31 20:40:16 +08:00