Commit Graph
1534 Commits
Author SHA1 Message Date
Ma 7c98a1ebbe feat(tui): unify agent surfaces and confirmations 2026-08-16 23:27:45 +08:00
Ma e7c0446557 refactor(core): unify production harness and context flow 2026-08-16 17:49:43 +08:00
Ma d1d6d8ec13 refactor: center creation workflows on pi harness 2026-08-16 11:35:00 +08:00
Ma 35bb2efdb6 refactor(core): run production workers through pi harness 2026-08-14 22:36:34 +08:00
Ma 6651fa7e5f feat(skills): bind production modes to dedicated expertise 2026-08-14 15:33:26 +08:00
Ma 7f3bdd59c4 refactor(studio): enforce structured actions and expose context 2026-08-14 13:42:50 +08:00
Ma c56586ecb3 refactor(core): unify pi harness retrieval and skills 2026-08-14 13:41:59 +08:00
Ma 493df3a82e chore: require node 22 runtime 2026-08-14 13:41:28 +08:00
Ma 8dee4cb236 feat(skills): ship professional story skill pack 2026-08-14 01:08:03 +08:00
Ma bac7abcc2d fix(studio): isolate import navigation from click events 2026-08-14 00:38:24 +08:00
Ma 90852c503f fix(core): preserve bounded long-form stream latency 2026-08-14 00:38:24 +08:00
Ma a728b6e876 test(cli): align publish tests with workspace dependencies 2026-08-14 00:37:54 +08:00
Ma 2e0e22ac38 feat(core): bind project references to long-form books 2026-08-14 00:37:54 +08:00
Ma 6f1819bcf3 feat(studio): persist model catalogs and import external canon 2026-08-14 00:37:54 +08:00
Ma 43cc24ce91 fix(core): repair stale state and bound inactive streams 2026-08-14 00:37:41 +08:00
Ma 1941101d82 fix(packages): link internal workspace dependencies 2026-08-14 00:36:09 +08:00
Ma 4e25bb6fb4 feat(core): emit standard agent trajectory metadata 2026-08-13 22:40:00 +08:00
Ma a6e05d4d45 docs: update Kimi K3 sponsorship copy 2026-08-03 16:46:49 +08:00
Ma 0da8637099 fix(studio): stop replayed production tasks 2026-08-02 01:09:55 +08:00
Ma efe44dfdbd fix(core): persist chapter state atomically 2026-08-01 23:59:49 +08:00
Ma fc294385f1 fix(studio): close setup and chapter workspace gaps 2026-07-30 00:39:31 +08:00
Ma d08bbed005 test(studio): account for LM Studio provider 2026-07-29 22:11:06 +08:00
Ma 66fad52bc4 fix(studio): widen chapter preview on large screens 2026-07-29 21:51:27 +08:00
Ma cf40d4f923 feat(studio): allow custom cover base URLs 2026-07-29 21:50:58 +08:00
Ma 863d916272 feat(llm): add LM Studio local provider 2026-07-29 21:30:59 +08:00
Ma 7a0b1a7054 feat(studio): add safe chapter rewrite workspace 2026-07-29 21:15:32 +08:00
Ma 66449f05c4 fix(agent): run multi-chapter writes as one sequential task 2026-07-29 19:59:18 +08:00
Ma b0cc9a54fc docs(skill): state memory and credential boundaries 2026-07-28 18:08:17 +08:00
Ma d5ba18ce4d docs(skill): narrow agent-visible maintenance surface 2026-07-28 18:03:43 +08:00
Ma 39b8619628 docs(skill): clarify security boundaries 2026-07-28 17:54:26 +08:00
Ma c7851b94ad chore(release): prepare v1.7.2 v1.7.2 2026-07-28 17:18:39 +08:00
Ma 6e4ce0050e refactor(skills): replace legacy capability system 2026-07-27 12:01:14 +08:00
Ma d674c214cf docs: document AgentSkills compatibility 2026-07-27 00:57:05 +08:00
Ma 41a1138fbd feat(studio): import external skill folders 2026-07-27 00:56:00 +08:00
Ma 4b81fbba77 feat(core): add intent-driven AgentSkills runtime 2026-07-27 00:54:42 +08:00
Ma 1a2fd09b50 chore: remove internal planning documents 2026-07-23 09:20:11 +08:00
Ma f19f428a56 docs: lead v1.7 with model configuration 2026-07-21 12:43:54 +08:00
Ma a713a2e87c docs: consolidate v1.7 highlights v1.7.1 2026-07-20 19:52:12 +08:00
Ma 6a16a61977 chore(release): prepare v1.7.1 2026-07-16 14:08:53 +08:00
Ma 9f1945926e docs: keep product intro above sponsorship 2026-07-16 11:44:37 +08:00
Ma ac7764283b docs: retain Kimi open source partner banners 2026-07-16 02:23:02 +08:00
Ma 6c6574ff52 docs: add Kimi sponsorship banners 2026-07-16 02:21:30 +08:00
Ma d3f6ae7e84 test(core): use shared timeout for root import 2026-07-16 01:27:27 +08:00
Ma eb6c8f88bd fix(core): restore direct terminal tool cards 2026-07-16 01:07:07 +08:00
Ma 6ac708a9c8 docs: document narrative forecast workflow 2026-07-16 00:27:18 +08:00
Ma b98252bb49 feat(studio): compare narrative forecasts in book chat 2026-07-16 00:26:04 +08:00
Ma b38f6039c2 docs: design Studio narrative forecast comparison 2026-07-15 23:20:07 +08:00
Ma 7dce957485 fix(core): fingerprint every context input the narrative forecast reads
根因:buildForecastContext 把 story_frame、volume_map、角色卡、支线看板、
章节摘要等内容读进推演提示词,但 contextFingerprint 只哈希了基准章节号、
story/state/*.json 和四个控制文档。于是修改 story_frame.md 等正史输入后,
get_narrative_forecast 仍然返回 stale:false,旧推演被误判为新鲜。

修复:新增 collectFingerprintFiles,枚举 context builder(含其 helper 的
legacy 回退路径 story_bible.md / volume_outline.md / character_matrix.md)
实际读取的全部输入文件,把「相对路径 + 内容」一起纳入哈希:
- 固定路径:book.json、四个控制文档、chapter_summaries.md、
  subplot_board.md、story_frame.md、volume_map.md 及三个 legacy 回退文件
- 枚举目录:story/state/*.json、story/roles/{主要角色,次要角色,major,minor}/*.md
- 缺失文件不产生条目、空文件产生 ["path",""],因此新增/删除输入文件
  也会改变指纹,且空文件与不存在可区分
- story/runtime/(含推演自身目录)不在枚举范围内,防止自引用
- 保持原有性质:内容哈希不用 mtime,条目按路径排序与读取顺序无关

兼容性影响:旧 forecast.json 里存的是旧算法指纹,在新算法下必然 mismatch,
已有推演会全部判为 stale。这是正确且期望的行为——旧指纹本来就无法证明
这些推演仍然新鲜,无需迁移逻辑。
2026-07-15 19:10:13 +08:00
Ma 7dd07f49e8 test(core): keep narrative forecast tools available while a production task runs
rebase 到 master 后与工具门控(a975fb5)的集成裁决:叙事推演三工具只读写
story/runtime/narrative-forecasts/ 下的非正史产物,不修改正史章节与状态,
不属于门控要拦的会改书工具——suppressProductionTools 期间保留,flag 关闭
后的完整工具表断言同步补上这三个工具。
2026-07-15 16:27:17 +08:00
Ma 148b158348 feat(cli): add inkos forecast create/show/select commands
- commands/forecast.ts:
  - inkos forecast create [bookId] --divergence <text> --branches N
    --horizon N [--model/--llm-base-url/--json]:从当前正史生成非正史
    多分支推演,进度信息在非 JSON 模式下逐条输出
  - inkos forecast show [bookId] <forecastId> --json:读取推演并对照当前
    正史重新校验指纹,正史变化时提示已过期(同时持久化 stale 标记)
  - inkos forecast select [bookId] <forecastId> <branchId> --json:只写
    selected-branch-plan.md,输出明确提示不修改正史
  - bookId 位置参数可省略(复用 resolveBookId 的单书自动识别);show 与
    select 用变长参数手动解析以兼容 RFC 里"可选 bookId 在前"的写法,
    解析函数导出供测试
  - 出错时按 --json 与否输出结构化错误或 logError,并设置 exitCode=1
- program.ts:注册 forecast 命令
- 测试:命令与子命令注册、选项齐全(--divergence 必填)、位置参数解析
  的四种形态与报错
2026-07-15 16:23:10 +08:00