Honlnk/dev - #17
Merged
Merged
Conversation
- ProjectConfig.settings 新增 activeScenePromptPath 字段,支持持久化激活场景 - 新增 readScenePrompt,路径为空或文件缺失时安全返回空字符串 - buildAgentSystemPrompt 扩展为接收 systemPrompt 与 scenePrompt,场景内容拼接到系统消息 - runTurn 读取配置并透传 scenePrompt 到 Agent 消息组装链路
- 删除 TestLabView 与 SessionTestView 两个调试视图 - router 同步移除 /test 与 /session-test 路由 - 正式工作台已覆盖生成、配置、RAG 等能力,测试页不再需要
- 移除 chat store 中仅被 SessionTestView 调用的 syncDefaultTarget 与 resetSession - 同步移除 defaultTarget、currentTarget 及 deriveTargetFromPath 引用 - runServiceTurn 等 ChatPanel 正式路径使用的方法予以保留
- 新增 extractor-llm,复用 streamChatCompletion 让模型输出六类要素 JSON - 解析层支持直接 JSON、代码块、花括号截取三级容错,非法项自动跳过 - element-service 改为先 LLM 后正则,未配置或失败时自动降级到规则提取 - ContentPanel 传入 projectId 并区分 AI 提取与规则提取来源 - 补充 extractor-llm 解析行为单测,覆盖正常、代码块、缺字段与非法输入
- 移除 element-service 中的正则降级逻辑,LLM 不可用时直接抛错 - 删除临时正则提取器 extractor.ts 及其测试用例 - 正则会生成大量低质量误匹配内容,对创作有害无益,不再作为兜底 - 清理仅在降级场景使用的 __source 字段 - ContentPanel 错误文案改为提示用户检查 LLM 配置
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.