From e26d4e61a3643b9fd148f7a7a7583bcb1999531e Mon Sep 17 00:00:00 2001 From: James Feng <47167674+GhostDragon124@users.noreply.github.com> Date: Tue, 2 Jun 2026 01:45:42 +0800 Subject: [PATCH] feat: enable PROACTIVE feature flag in default build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- scripts/defines.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/defines.ts b/scripts/defines.ts index fb0a3b17c..6964c4a0e 100644 --- a/scripts/defines.ts +++ b/scripts/defines.ts @@ -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)