Commit Graph

1452 Commits

Author SHA1 Message Date
Ma fd87b04c3f chore(release): prepare v1.7.0 v1.7.0 2026-07-11 18:03:27 +08:00
Ma c202ce4a2d fix(studio): normalize uploaded project paths 2026-07-11 14:15:13 +08:00
Ma 3fcc6ef90b fix(core): recover stale book write locks 2026-07-11 01:47:37 +08:00
Ma d316c8e4fe feat(studio): complete translation review workflow 2026-07-10 02:39:16 +08:00
Ma 070e707766 test: cover txt translation ingestion 2026-07-08 14:07:04 +08:00
Ma 8ac666fbed feat: add translation workflow 2026-07-08 14:03:19 +08:00
Ma f71987cd0a docs: promote keaiapi in English and Japanese READMEs 2026-07-07 20:16:17 +08:00
Ma a4a9a26409 docs: full English CHANGELOG + README.en missing sections
新建 CHANGELOG.en.md(全 33 个版本逐条翻译,与中文版互链);
README.en 补配置排查(doctor + effective config mode 表)、15 家
服务商能力表、通知渠道纠正(补飞书/企业微信)、CLI 表 3 行与
一次性 LLM 覆盖参数、路线图平台格式导出项
2026-07-07 17:23:17 +08:00
Ma a3d73c2cbb feat(cli): environment language fallback + localize doctor/fanfic/config
resolveCliLanguage 增加环境回退(书籍语言优先,未设时看
INKOS_LOCALE/LC_ALL/LC_MESSAGES/LANG,默认 zh,与 TUI 对齐);
doctor 诊断/提示、fanfic 错误、config list-models 输出双语(原为
硬编码中文);genre 脚手架模板、init/short 示例、bootstrap 注释、
TUI 斜杠提示双语;doctor 错误关键词匹配补英文词
2026-07-07 17:23:17 +08:00
Ma 587bcdaaa1 feat(studio): server responses follow project language
服务端用户可见错误/提示与管线阶段、agent/工具标签按项目语言返回
(每次请求读取配置,切换语言即时生效);产线端点透传 language
2026-07-07 17:23:03 +08:00
Ma e895739dd3 feat(studio): bilingual film wizard and service management pages
影游向导/分析面板/故事树/流程图残留、服务商列表/详情/配置来源卡/
快捷链接/服务分组全部双语
2026-07-07 17:23:03 +08:00
Ma 81abb7a39d feat(studio): bilingual book sidebar, frame leftovers, truth-display
App 接线 setAppLanguage;侧栏各分区(角色/进度/摘要/伏笔/设定)、
Sidebar 会话操作与相对时间、导入页下拉项双语;truth-display 标签
按语言输出,去掉英文标签被强转中文的映射
2026-07-07 17:23:03 +08:00
Ma 2bd7e9ae22 feat(studio): bilingual chat dynamic content
新增 app-language 全局语言工具(tr/getAppLanguage,非 React 模块用);
工具执行块、工具状态、agent/工具徽标、聊天错误提示、生成物抽屉、
error-copy 全部双语。默认 zh,现有断言不变
2026-07-07 17:23:03 +08:00
Ma ff5cdd9809 feat(core): wire session language into production tools
short_fiction_run / script_create / storyboard_create / interactive_film_create /
sub_agent 按会话语言传入产线;play 与建书工具的运行时反馈文案双语化
2026-07-07 17:22:42 +08:00
Ma aec25f38a7 feat(core): English prompts for interactive film generation
story-graph 生成与影游 authoring 工具系统提示词双语;TypeBox 参数
description 按仓库规范改为英文。默认 zh 行为不变
2026-07-07 17:22:42 +08:00
Ma 83efc0a8be feat(core): English prompts for script and storyboard pipeline
剧本/分镜/互动影游包生成的规格与提示词增加英文分支;英文模式产出
英文段落头(解析器本就双语容忍);fallback 故事图与 graph premise
英文化。默认 zh 行为不变
2026-07-07 17:22:42 +08:00
Ma ba976f316f feat(core): English prompts and word-based lengths for short fiction
短篇产线全套提示词增加原生英文镜像(原为纯中文);长度统计按语言选
zh_chars/en_words,英文默认 650 词/章(600-800),与长篇 2/3 折算比例一致;
标题/渲染/解析兜底同步支持 Chapter N 格式。默认 zh 行为不变
2026-07-07 17:22:42 +08:00
Ma 981a6f4656 Merge branch 'issue-fixes-batch-20260707': issue batch fixes (#330) 2026-07-07 16:09:30 +08:00
Ma 5f98182418 fix(studio): prompt pack override path returned as posix relative path
Windows 上 relative() 产生反斜杠,prompt-packs 端点返回给前端的 path
字段与 posix 约定不一致(windows CI prompt-packs 两用例失败);
toPosixPath 从 core 包根导出供 studio 复用
2026-07-07 15:48:00 +08:00
Ma fdcfc1f85b test(core): make relative-dir rejection fixture Windows-safe
relative(process.cwd(), root) 在 Windows CI 上跨盘符(cwd 在 D:、临时目录在 C:)
时返回绝对路径,'拒绝相对路径'的断言意图失效;改用字面相对路径
2026-07-07 15:39:59 +08:00
Ma 47c605ba95 fix(core): close PlayRunner's self-created play.db connection
play_step / play_revise 构造的 PlayRunner 在构造函数里打开 play.db,
之前从不关闭:每次调用泄漏一个文件句柄,Windows 上导致会话临时目录
无法删除(EBUSY unlink play.db,windows CI agent-session 用例因此失败)。

- PlayRunner 新增 close():只关闭自己创建的 db(幂等;外部传入的 db
  由调用方负责,play_start 已有 closePlayDB 逻辑不变)
- play_step / play_revise 的所有返回路径 finally 关闭 runner
2026-07-07 15:39:59 +08:00
Ma 4327f35a28 fix(core): normalize project-relative paths to posix separators
Windows 上 join()/relative() 产生反斜杠,写进 manifest、返回结果或被 Studio
当 URL 用时与消费方(及测试断言)期待的 / 不一致,导致 windows CI 7 个测试失败。

- 新增共享工具 toPosixPath;materials ingest/retrieve、script-storyboard-runner
  所有返回/持久化的项目相对路径在源头归一化(纯文件系统操作的 join 不动)
- retrieve 对旧版本 Windows 写出的含反斜杠 manifest 做兼容归一化
- short-fiction-runner 的局部同款 helper 改用共享实现
2026-07-07 15:24:19 +08:00
Ma c43f8dc582 docs: changelog entries for issue-fix batch 2026-07-07 14:07:55 +08:00
Ma ed41b860de feat(cli): --notify flag on write/rewrite/auto/revise/audit (#308)
- 命令成功/失败后发送完成通知;通知发送失败只警告不影响退出码
- 与 runner 既有单章通知去重:单章成功场景跳过命令层通知,
  多章连写发批量摘要,audit/revise/所有失败场景由命令层负责
2026-07-07 14:07:24 +08:00
Ma 2be11cdb05 feat(core): notify channels support text format (#308)
- NotifyChannelSchema 增加 format: markdown|text(默认 markdown 向后兼容)
- text 模式:telegram 不发 parse_mode、企业微信 msgtype=text、飞书 msg_type=text、
  webhook payload 带 format 字段;正文剥除粗体/代码标记
2026-07-07 14:07:24 +08:00
Ma 059703ad1f feat(studio): wire revisionGate into revise endpoint (#326)
照 chapterReviewMode 模式按 bookIdForSettings 解析书级覆盖传入 pipeline config
2026-07-07 13:45:16 +08:00
Ma d9f8845472 feat(cli): wire revisionGate into inkos revise (#326)
书级 ?? 全局 ?? strict 解析后传入 pipeline;config set 键列表补 writing.revisionGate
2026-07-07 13:45:15 +08:00
Ma dfbee88a78 feat(core): configurable revision gate strict/lenient/always (#326)
- writing.revisionGate 三档:strict(默认,现状——不变差且至少改善一项才应用)、
  lenient(不变差即应用)、always(手动修订一律应用,审计只记录不拦截)
- 全局 inkos.json + 书级 book.json 覆盖,resolveRevisionGate 从包根导出
- revisionDiagnostics.standard 按档位描述实际使用的判断标准
2026-07-07 13:45:15 +08:00
Ma 9a5372874e feat(cli): honor per-book review mode + inkos auto command (#307)
- write next / write rewrite 解析书级 writing.reviewMode(回退全局),
  传入 chapterReviewMode——此前 CLI 永远自动审查,book.json 配置被无视
- 新增 inkos auto [book-id] <target-chapter>:强制自动审查连续写作到指定绝对章号,
  已达标直接提示;单章失败或 state-degraded 立即停止并以非零码退出
2026-07-07 13:26:23 +08:00
Ma c9c3939a80 feat(core): resolveChapterReviewMode reads book-level review override
book.json writing.reviewMode 优先,其次 inkos.json writing.reviewMode,默认 auto;
纯函数从包根导出,供 CLI 与 Studio 共用(#307)
2026-07-07 13:26:23 +08:00
Ma d7b4046f62 feat(core): import_chapters agent tool for chat-driven novel import (#324)
- 新增 import_chapters 工具:把本地文件/目录(含对话附件的 stored_path)导入为
  书籍真实章节,复用 PipelineRunner.importChapters(逆向生成设定 + 顺序重放)
- 目录/单文件读取与分章逻辑在 core 侧实现(chapter-import-source.ts),CLI 版不动
- 注册进 chat 与 book 模式,系统提示说明与 ingest_material(只存参考资料)的分工
- 书已有章节且未传 resumeFrom 时抛错提示
2026-07-07 13:22:35 +08:00
Ma 62c18d7c56 feat(studio): tool detail visibility preference + utility tool results (#306)
- 新增浏览器级偏好"操作详情默认展开"(默认展开,存 localStorage),
  项目设置页新增"对话界面"卡片即时生效
- pipeline 操作的"查看操作结果"块按偏好决定默认展开/收起,手动开合不受重渲染影响
- read/grep 等小工具行有结果时可展开查看正文(默认收起,保持对话流紧凑)
2026-07-07 13:17:40 +08:00
Ma a977661550 fix(core): keep MiniMax thinking out of chapter and chat text (#329)
- MiniMax OpenAI 兼容端点默认请求 reasoning_split: true,思考内容拆分到
  reasoning_content/reasoning_details,不再以 <think> 标签内联在 content 里
  (M2.x 的 thinking 无法关闭,之前会混进正文;M3 维持默认 thinking disabled)
- 新增起始 <think> 块剥离器兜底:非流式与流式都剥掉响应开头的完整 think 块,
  思考内容不并入正文、不经 onTextDelta 发给 UI;未闭合块原样保留避免丢数据
- 流式解析识别 delta.reasoning_details
2026-07-07 13:17:40 +08:00
Ma 22e5af59ae fix(core): stop falling back to delisted OpenRouter checkModel (#300)
- openrouter checkModel 换成长期存在的 openrouter/auto,静态清单删除已下架的 google/gemma-2-9b-it:free
- 动态模型清单的服务(openrouter/newapi/kkaiapi/ppio/siliconcloud,原有 ollama)放行未列出的模型 id,
  用户显式配置的模型不再被静默替换成 checkModel
- 严格服务的模型归属校验行为不变
2026-07-07 13:12:43 +08:00
Ma 68ae2274db test(core): align revision-gate assertion with new skippedReason wording v1.6.3 2026-07-07 13:08:30 +08:00
Ma 15fafc95d3 fix(release): repair npm manifests and MiniMax thinking defaults 2026-07-07 12:35:33 +08:00
Ma 84b61bd4d1 chore(release): prepare v1.6.2 v1.6.2 2026-07-05 23:18:07 +08:00
Ma 2635473411 chore(release): prepare v1.6.1 2026-07-05 02:11:39 +08:00
Ma 48f93a4033 fix(core): improve chat-driven chapter revision 2026-07-05 00:09:44 +08:00
Ma 98a9238dea Merge branch 'pi-ecosystem-capabilities-20260703' 2026-07-04 22:23:55 +08:00
Ma f820d07b22 feat(agent): retrieve archived materials with evidence traces 2026-07-03 19:33:01 +08:00
Ma 163e6dd0a9 feat(agent): ingest external materials 2026-07-03 18:46:52 +08:00
Ma d5aa2a4509 feat(agent): support chat aborts and attachments 2026-07-03 18:19:02 +08:00
Ma b29fde1fbd feat(studio): add prompt pack editor 2026-07-02 15:17:24 +08:00
Ma a12736001d test(core): fix release-blocking test fixtures v1.6.1 2026-07-02 01:44:21 +08:00
Ma 9ca56ce8b9 docs: refresh screenshots and archive artifacts 2026-07-01 21:56:42 +08:00
Ma a54d3d6c8d docs: sync skill docs and community image 2026-07-01 19:55:08 +08:00
Ma 113e8be395 feat: prepare v1.6.0 release v1.6.0 2026-07-01 18:45:54 +08:00
Ma c885d972f6 feat(studio): expose runtime skills in chat 2026-07-01 01:35:41 +08:00
Ma 3595f23e5a feat(core): wire runtime skills into chat 2026-06-30 19:39:12 +08:00