完善创作节点循环与等待态交互,并大幅打磨 Web 壳与会话运行时。
- 节点循环:配方开局直坐 DAG 第一步;验收后先问下一步意向,再确认开干并可钉编排参数;「按意见修改」只重跑当前节点。 - 询问分流:能力 opening 走说话面引导,可跳过追问按题干去重;追问与产物同轮挂载,避免拆成两段历史。 - 运行时:补强 revision 重跑、创作流程合并/进度指针、工具循环与 worker 执行;新增运行日志与 web:watch。 - 前端:统一等待态文案与底栏主按钮,完善询问卡/产物验收/呈现壳样式与交互。 - 同步世界模拟器模块提示、编排文档与相关测试。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -4,6 +4,8 @@ import {
|
||||
projectFragmentContent,
|
||||
contextFragmentToView,
|
||||
extractFragmentAskSidecar,
|
||||
isUsableContextFragment,
|
||||
expectsContextFragmentTag,
|
||||
} from "../src/skills/context-fragment.js";
|
||||
import {
|
||||
parseContextOrder,
|
||||
@@ -74,6 +76,26 @@ describe("context-fragment.v1", () => {
|
||||
"其它",
|
||||
]);
|
||||
});
|
||||
|
||||
it("isUsableContextFragment requires non-empty 正文", () => {
|
||||
expect(
|
||||
isUsableContextFragment({
|
||||
schema: "context-fragment.v1",
|
||||
技能: "美学纲领与交互范式",
|
||||
brief: "孤立免疫",
|
||||
正文: { 美学纲领: { 体验内核: "特权" } },
|
||||
}),
|
||||
).toBe(true);
|
||||
expect(
|
||||
isUsableContextFragment({
|
||||
schema: "context-fragment.v1",
|
||||
技能: "美学纲领与交互范式",
|
||||
brief: "孤立免疫",
|
||||
}),
|
||||
).toBe(false);
|
||||
expect(expectsContextFragmentTag("设计.美学纲领与交互范式")).toBe(true);
|
||||
expect(expectsContextFragmentTag("设计.创作流程")).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe("context-order.v1", () => {
|
||||
|
||||
Reference in New Issue
Block a user