claude-code-best/scripts
unraid 1b47333d72 feat: enable GrowthBook local gate defaults for P0/P1 features
Add LOCAL_GATE_DEFAULTS mapping in growthbook.ts with 27 feature gate
defaults (25 boolean + 2 object config). Insert local defaults into the
fallback chain of all getter functions so they work regardless of whether
GrowthBook is enabled or disabled:

  env overrides → config overrides → in-memory cache → disk cache
  → LOCAL_GATE_DEFAULTS → caller defaultValue

P0 (local): keybindings, streaming tool exec, cron, JSON tools,
ultrathink, explore/plan agents, deep link, immediate model switch
P1 (API): session memory, auto memory, prompt suggestions, brief mode,
verification agent, away summary, auto dream, idle return prompt
Kill switches: 10 gates kept true to prevent remote disable

New compile flags: AGENT_TRIGGERS, ULTRATHINK, BUILTIN_EXPLORE_PLAN_AGENTS,
LODESTONE, EXTRACT_MEMORIES, VERIFICATION_AGENT, KAIROS_BRIEF, AWAY_SUMMARY

Bypass all local defaults: CLAUDE_CODE_DISABLE_LOCAL_GATES=1
2026-04-06 17:00:30 +08:00
..
defines.ts refactor: 用 Bun 原生 define 替换 cli.tsx 中的 globalThis 注入 2026-04-02 09:51:48 +08:00
dev-debug.ts feat: 简化 debug 方式 2026-04-03 16:47:24 +08:00
dev.ts feat: enable GrowthBook local gate defaults for P0/P1 features 2026-04-06 17:00:30 +08:00
download-ripgrep.ts fix: 尝试修复 windows 下面没有 unzip 的问题 2026-04-04 17:02:39 +08:00
health-check.ts feat: 添加代码健康度检查脚本 2026-04-01 07:17:09 +08:00
postinstall.cjs feat: 支持简化版本的 rg 下载 2026-04-06 10:31:15 +08:00
verify-gates.ts feat: enable GrowthBook local gate defaults for P0/P1 features 2026-04-06 17:00:30 +08:00