docs(skill): 补充自动状态进度条 & detail.stageField:false 开关#2453
Closed
baozhoutao wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
|
改变方案:不走 skill 文档(一次加太多)。改为在 spec 的 |
The distributed objectstack-ui skill never mentioned that ObjectUI auto- synthesizes a detail page and auto-detects a status field for a top record:path stepper, nor the detail.stageField:false opt-out (objectstack-ai/objectui#2066). AI authors install framework's skills, so without this they re-hit the 'non-linear status rendered as an ordered path, can't disable it' trap. Adds, after the record:path example: the detectStatusField precedence and a detail:{ stageField:false } example, stressing it must live in the passthrough detail block (top-level unknown keys are rejected by ObjectSchema.create()). Closes #2452
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 开发场景:AI 作者装的是
objectstack-ai/framework的 skills。但分发的skills/objectstack-ui/SKILL.md完全没提:record:path;detail: { stageField: false }关闭开关。detail.stageField只靠 spec 的.passthrough()放行、没有 typed 键,所以也无类型/补全提示——对 AI 而言唯一可靠的发现渠道就是 skill。缺这段,别的 AI 会重复踩"非线性 status 被画成进度条且关不掉"的坑。方案
在
skills/objectstack-ui/SKILL.md的record:path示例之后补一段:detectStatusField探测优先级(含detail.stageField === false|null显式关闭);ObjectSchema.create({ detail: { stageField: false }, ... })示例,并强调必须放detail块、不能放顶层(顶层未知键被ObjectSchema.create()拒绝;detail是.passthrough()的 synth 提示落点)。仅改文档一处(+29 行),无代码/无包变更。
Closes #2452
配套:objectstack-ai/objectui#2066(行为实现)