Repository navigation
NovelForge v0.1.6
NovelForge v0.1.6
正式版(0.1.5 → 0.1.6)— Agent 对话升级 + 上下文压缩优化
✨ 新增
- Agent 意图预路由:本地零 LLM 成本识别「写第三章」「润色第2章」「生成大纲」等意图,强命中直接触发创作工作流、弱命中澄清追问(用户原文转录保留)
- 对话分支:任意消息 fork 派生新会话 / rewind 回退可恢复(历史面板分支层级 + 生成期间守卫)
- Agent 循环加固:工具解析失败逐条反馈、read_file 读去重(file_unchanged 桩省 token)、注入上限 + offset/limit 分页
- 长工具结果写盘引用:>800 tokens 结果全文落盘,上下文只进路径 + 摘要,LLM 按需再读(确定性命名 + 写盘防重 + 空结果占位)
- 自适应上下文压缩:预算按模型窗口动态化 + 可恢复错误自动恢复阶梯(降档 → meta 消息 → 熔断)
- Embedding 超时兜底:API 挂起时 10s 内降级(不再 30s 卡死后处理管线)
🐛 修复
- restoreRewound 生成守卫、rewind 末条禁用
- 意图路由模式库扩展(中文数字范围 / 空格容忍 / 标题截断)
- 第 8 轮可恢复失败错误透传(恢复阶梯吞错回归)
⚠️ 调整
- .novelforge 目录改名:项目数据目录自动迁移(vela.db / vela:// / velaAPI 保留)
测试记录:850 测试全量通过 · Schema v16 · CI 全绿
完整更新日志:CHANGELOG
NovelForge v0.1.6
Official release (0.1.5 → 0.1.6) — Agent conversation upgrade + context compression optimization
✨ New Features
- Agent Intent Pre-Routing: zero-LLM local intent detection — strong hits trigger creative workflows directly, weak hits ask for clarification (user text preserved)
- Conversation Branching: fork from any message / rewind with recovery (branch hierarchy in history panel + generation guard)
- Agent Loop Hardening: per-item parse diagnostics, read_file dedupe (file_unchanged stub), injection cap + offset/limit paging
- Tool Result Spill-to-Disk: results >800 tokens stored to disk, context keeps path + summary, LLM re-reads on demand (deterministic naming + dedupe + empty-result placeholder)
- Adaptive Context Compression: budget scales with model window + withhold-then-recover retry ladder (compressed downgrade → meta message → circuit breaker)
- Embedding Timeout Guard: API hangs now degrade within 10s instead of stalling the post-process pipeline
🐛 Bug Fixes
- restoreRewound generation guard, last-message rewind disabled
- Intent routing pattern library extensions (Chinese numeral ranges / space tolerance / title truncation)
- Round-8 recoverable failure now surfaces errors instead of swallowing them
⚠️ Changes
- .novelforge Directory Rename: project data directory migrates automatically (vela.db / vela:// / velaAPI preserved)
Tests: 850 passing · Schema v16 · CI green
Full changelog: CHANGELOG