Skip to content

Releases: James-FE/CC_Pure

CC Pure v2.8.0 — Context Collapse

Choose a tag to compare

@James-FE James-FE released this 22 Jun 04:54

🧠 Context Collapse — 三层 Compaction 管线上线

当对话太长时自动折叠旧消息为智能摘要。

messagesForQuery
  → HISTORY_SNIP      [手术刀]  精准删除
  → CONTEXT_COLLAPSE  [调度脑]  智能折叠
  → autocompact       [断头台]  兜底压缩

核心实现

组件 说明
scheduler.ts 689 行状态机,staged → spawn → commit
ctx-agent queryHaiku 调用 DeepSeek v4 Flash,99%+ 压缩率
降级链 模型摘要 → 纯截断 → 滑窗切尾
测试 151 个测试,0 失败

触发策略

  • 90% token → 标记候选区间
  • 95% token → 触发压缩

代码规模

  • 3001 行 生产代码
  • 6 个模块:scheduler · store · registry · persist · operations · index
  • 151 个测试

📖 设计文档

v2.6.11-stable.2 — UDS_INBOX re-enabled

Choose a tag to compare

@James-FE James-FE released this 19 Jun 14:12

UDS_INBOX / LAN_PIPES now enabled

Previously disabled due to cold-start hang in no-split bundles. Two fixes:

Fix File What
Pipe gate setup.ts !getIsNonInteractiveSession() skips UDS startup in pipe mode
Lazy import print.ts await import('udsMessaging') — async dynamic load, no blocking
Cleanup print.ts unsubscribeUdsInboxQueueKick for session teardown

Verified

  • ✅ Pipe mode (ccp -p)
  • ✅ Interactive mode (ccp) — no hang, normal REPL

CC Pure v2.6.11 — Stable Release

Choose a tag to compare

@James-FE James-FE released this 19 Jun 12:35

修复内容

🐛 关键修复

  • 交互模式卡死:移除 createRequire(import.meta.url),该调用在 Bun no-split bundle 下阻塞模块解析
  • "1 MCP server failed":排除 CHICAGO_MCP (Computer Use MCP) 从 no-split 构建——该功能依赖 macOS 辅助功能 API,在 Linux 上必然失败
  • CI 测试失败:更新 getClaudeConfigHomeDir 测试断言,默认路径从 .claude 改为 .ccp

📦 构建

  • no-split bundle: dist-nosplit/cli.js (单文件)
  • code-split: dist/ (1160 文件,Vite)
  • 3986 测试通过,0 失败

🏷️ 标签

  • v2.6.11-stable — main 分支
  • v2.6.11-test-stable — test 分支