claude-code-best/src
James Feng f1c7f7dc74 feat: full merge of f2e9af49 autonomy PR #386 — source + tests
Source integration points (previously missing from CCP):
- useScheduledTasks: export createScheduledTaskQueuedCommand, autonomy-backed
  queue dedup with markAutonomyRunCancelled on dispose
- processUserInput: thread autonomy payload through to slash commands;
  expose deferAutonomyCompletion on ProcessUserInputBaseResult
- processSlashCommand: accept autonomy arg; allowBackgroundForkedSlashCommands
  test-only gate on ToolUseContext; defer/finalize autonomy in background fork
- handlePromptSubmit: claim stale autonomy commands before idle queue drain;
  finalize autonomy on error paths
- Tool.ts: add allowBackgroundForkedSlashCommands to ToolUseContext

Tests ported from upstream f2e9af49 (11 files, +97 assertions):
- autonomyAuthority.test.ts       —  authority parsing, prompt assembly
- autonomyFlows.test.ts           —  managed flow lifecycle
- autonomyPersistence.test.ts     —  file locking, active retention
- autonomyQueueLifecycle.test.ts  —  queue partition/claim/finalize
- autonomyRuns.test.ts            —  state machine, dedup, formatters
- queryAutonomyProviderBoundary.test.ts  — provider error finalization
- handlePromptSubmit.test.ts      —  stale autonomy filtering
- useScheduledTasks.test.ts       —  cron task → autonomy queue
- processSlashCommand.test.ts     —  slash command autonomy integration
- autonomy-lifecycle-user-flow.test.ts  — CLI subprocess integration
- RemoteTriggerTool.test.ts       —  merged upstream assertion improvements

3699 pass, 0 fail (was 3602)
2026-06-04 20:57:07 +08:00
..
__tests__ feat: full merge of f2e9af49 autonomy PR #386 — source + tests 2026-06-04 20:57:07 +08:00
assistant Enable coordinator swarm features 2026-06-01 20:33:29 +08:00
bootstrap fix: 修复 anthropic 煞笔的四个 bug (#352) 2026-06-04 14:59:49 +08:00
bridge fix: Batch 1a — WebFetchTool header 安全加固 + 核心运行时修复 (from upstream c2ac9a74) 2026-06-04 15:45:01 +08:00
buddy fix: 优化内存峰值与 CPU 性能,降低 100-300MB 内存占用 2026-06-04 12:36:59 +08:00
cli fix: Batch 1a — WebFetchTool header 安全加固 + 核心运行时修复 (from upstream c2ac9a74) 2026-06-04 15:45:01 +08:00
commands fix: 代码审查修复 — 安全、性能和正确性 2026-06-04 14:59:14 +08:00
components fix: add typeof TungstenPill guard (partial cherry-pick a02a9fc) 2026-06-04 14:58:21 +08:00
constants fix: 将 ExecuteExtraTool 加入 ASYNC_AGENT_ALLOWED_TOOLS 允许子代理执行延迟工具 2026-06-04 12:58:11 +08:00
context Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
coordinator Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
daemon Enable auto mode autonomy commands 2026-06-01 20:17:09 +08:00
entrypoints chore(typecheck-green): fix 28 tsc errors — baseline 62→34 2026-06-02 10:16:40 +08:00
environment-runner feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
hooks feat: full merge of f2e9af49 autonomy PR #386 — source + tests 2026-06-04 20:57:07 +08:00
jobs feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
keybindings fix: 修复 n 快捷键导致关闭的问题 2026-06-04 14:51:33 +08:00
memdir refactor: 精简系统提示词 — 合并沟通风格段落、精简 memory/工具描述、截断 gitStatus 2026-06-04 10:46:51 +08:00
migrations fix: 禁用 opus[1m] 自动迁移,尊重用户手动删除 [1m] 后缀的选择 2026-06-04 15:27:40 +08:00
moreright 更新大量 tsx 原始文件; 已经迁移 login panel; 部分 (#121) 2026-04-04 23:24:27 +08:00
native-ts fix: 修复 @ typeahead 文件搜索无结果的问题 2026-04-01 17:11:09 +08:00
outputStyles feat: build 2026-03-31 19:22:47 +08:00
plugins feat: build 2026-03-31 19:22:47 +08:00
proactive Enable coordinator swarm features 2026-06-01 20:33:29 +08:00
query fix: add missing FILE_WRITE_TOOL_NAME import + poorMode stub (regressions from P2 cherry-picks) 2026-06-04 13:16:05 +08:00
remote fix: resolve tsc errors (remaining upstream type fixes) 2026-06-01 19:01:38 +08:00
schemas feat: 完成stub 2026-03-31 20:40:16 +08:00
screens fix: Batch 1a — WebFetchTool header 安全加固 + 核心运行时修复 (from upstream c2ac9a74) 2026-06-04 15:45:01 +08:00
self-hosted-runner feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
server feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
services fix: backfill upstream OpenAI fixes (c82f5994, 901628b4) + regression tests 2026-06-04 20:21:14 +08:00
skills Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
ssh feat: 全面清理类型错误 — tsc 零错误,any 标注全部消除 2026-04-01 01:00:10 +08:00
state fix: 修复 voice provider 的问题 2026-06-04 14:07:37 +08:00
tasks feat(autofix-pr): 完整完成回流机制 (latent bug fix + completionChecker + 内容回流) (#1240) 2026-06-04 09:56:54 +08:00
tools fix: move ToolSearchTool from packages/builtin-tools/ to src/tools/ 2026-06-04 01:15:36 +08:00
types Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
upstreamproxy feat: 问就是封包 2026-03-31 23:32:58 +08:00
utils feat: full merge of f2e9af49 autonomy PR #386 — source + tests 2026-06-04 20:57:07 +08:00
vim feat: build 2026-03-31 19:22:47 +08:00
voice feat: build 2026-03-31 19:22:47 +08:00
commands.ts Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
context.ts refactor: 精简系统提示词 — 合并沟通风格段落、精简 memory/工具描述、截断 gitStatus 2026-06-04 10:46:51 +08:00
cost-tracker.ts feat: build 2026-03-31 19:22:47 +08:00
costHook.ts feat: build 2026-03-31 19:22:47 +08:00
dialogLaunchers.tsx Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
history.ts feat: build 2026-03-31 19:22:47 +08:00
interactiveHelpers.tsx Revert "Revert "feat: 第一个可以用的 ink 组件抽象 (#158)" (#175)" 2026-04-07 16:17:48 +08:00
main.tsx Phase 2a: mechanical dedup — import rewrite to canonical package 2026-06-03 13:54:22 +08:00
projectOnboardingState.ts feat: build 2026-03-31 19:22:47 +08:00
query.ts fix: 优化内存峰值与 CPU 性能,降低 100-300MB 内存占用 2026-06-04 12:36:59 +08:00
QueryEngine.ts fix: 修复 ACP 模式下 messageSelector require 失败导致 submitMessage 崩溃 2026-06-04 14:51:33 +08:00
replLauncher.tsx fix: 添加 React Error Boundary 防止生产环境渲染崩溃 2026-06-04 13:38:32 +08:00
setup.ts feat: build 2026-03-31 19:22:47 +08:00
Task.ts feat: build 2026-03-31 19:22:47 +08:00
tasks.ts Fix Vite runtime requires for restored features 2026-06-01 21:23:28 +08:00
Tool.ts feat: full merge of f2e9af49 autonomy PR #386 — source + tests 2026-06-04 20:57:07 +08:00
tools.ts fix: move ToolSearchTool from packages/builtin-tools/ to src/tools/ 2026-06-04 01:15:36 +08:00