Repository navigation
制度:表单去掉写给 AI 的说明,现行版本不在表单里手填 - #43
Merged
Merged
Conversation
- 状态、制度分类、目录摘要去掉说明(目录摘要只留一句); - 现行版本由版本设为现行时自动填写,加 hidden,不进表单;列表照常显示; - 状态取值含义、摘要可能为空、现行版本怎么读正文和版本号,写进制度问询技能。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RKKVniLvsfBswNHAfKKTVi
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.
「全部制度」的新建表单里,字段下面显示的是写给 AI 看的说明(
published = 已发布…、get_record 读这条版本即得正文 body_md…),用户看不懂。现行版本是系统自动填写的,却也出现在表单里。改动
src/objects/policy.object.ts:hidden,不再出现在表单里。hidden只影响界面,接口照常读写,「制度库」列表也照常显示这一列。src/skills/policy-inquiry.skill.ts:从界面上删掉的说明里,AI 作答要用的部分写进制度问询技能,包括:状态取值的含义、目录摘要可能为空,以及引用时把版本号写在制度名之后。验证
os validate、tsc通过,pnpm test116 个通过。os dev浏览器实测:Refs #13
Generated by Claude Code