feat: enable PROACTIVE feature flag in default build

Add 'PROACTIVE' to DEFAULT_BUILD_FEATURES in scripts/defines.ts.
The proactive state machine (src/proactive/index.ts) and SleepTool
were already fully recovered; only the glue function
notifyAutomationStateChanged was missing — restored in d1d74d4a.

With PROACTIVE enabled, the autonomous agent can use SleepTool to
pause/resume its own tick cycle, saving tokens during idle periods.
This commit is contained in:
James Feng 2026-06-02 01:45:42 +08:00
parent d1d74d4a20
commit e26d4e61a3

View File

@ -56,6 +56,7 @@ export const DEFAULT_BUILD_FEATURES = [
'KAIROS_BRIEF', // Kairos 定时摘要(定时汇报当前状态)
'AWAY_SUMMARY', // 离线摘要(用户离开后生成总结)
'ULTRAPLAN', // 超级规划模式,深度分析后生成实施计划
'PROACTIVE', // 主动自主代理模式SleepTool 控制 tick 节奏,省 token
'DAEMON', // 守护进程模式,长驻 supervisor 管理后台 worker非 GB 级主因)
'ACP', // ACP 代理协议,支持外部 agent 接入
'WORKFLOW_SCRIPTS', // 工作流脚本(.claude/workflows/ 中的 YAML/MD