claude-code-best/packages
James Feng 9538ebd243 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:56:53 +08:00
..
@ant feat(bridge): tsc 全绿 — 补齐 Bridge/UDS/TCP/ACP 远程控制链类型 2026-06-02 11:26:11 +08:00
acp-link feat(acp): 补充 promptConversion 模块 + 修复 build 2026-06-04 18:22:41 +08:00
agent-tools feat: pull in Vite build system + complete packages/builtin-tools/ 2026-06-01 18:18:03 +08:00
audio-capture-napi feat: enable /voice mode with native audio binaries 2026-04-03 21:14:44 +08:00
builtin-tools feat: full merge of f2e9af49 autonomy PR #386 — source + tests 2026-06-04 20:56:53 +08:00
color-diff-napi fix: highlight 缓存改用 LRUCache 降低内存开销 2026-06-04 12:37:11 +08:00
image-processor-napi feat: 实现 4 个 NAPI 包 — modifiers/image-processor/audio-capture/url-handler 2026-04-01 01:07:42 +08:00
mcp-client feat: pull in Vite build system + complete packages/builtin-tools/ 2026-06-01 18:18:03 +08:00
modifiers-napi feat: 完成最新的可构建版本 2026-04-01 10:42:53 +08:00
remote-control-server Phase 1: security do-now — redaction helpers + RCS defaults hardened 2026-06-03 13:43:38 +08:00
url-handler-napi feat: 实现 4 个 NAPI 包 — modifiers/image-processor/audio-capture/url-handler 2026-04-01 01:07:42 +08:00
weixin feat: pull in Vite build system + complete packages/builtin-tools/ 2026-06-01 18:18:03 +08:00
tsconfig.json feat: merge 4 upstream improvements (effort + sideQuery routing + agent hints + plan/paste fixes) 2026-06-02 02:29:54 +08:00