- session page shows the agent.plan TodoList (drawer: one-line progress); options and approval cards sit at their step; composer has a "先看方案再执行" toggle instead of the mode switch - settings expose option timeout, timeout action and approval validity; quick goals follow glossary Co-Authored-By: Claude Opus 5.5 <[email protected]>
14 lines
593 B
TypeScript
14 lines
593 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { quickGoalsFor } from "./quick-goals.ts";
|
|
|
|
describe("抽屉快捷目标", () => {
|
|
it("按页面给 3 个相关目标", () => {
|
|
expect(quickGoalsFor("/console/library/abc")[0]).toBe("检查这部作品缺什么版本");
|
|
expect(quickGoalsFor("/console/sites/hdsky")[0]).toBe("从这个站点找 ");
|
|
expect(quickGoalsFor("/console/tasks/t1")[0]).toBe("看看为什么没进展");
|
|
for (const p of ["/console", "/console/library", "/console/files", "/nope"]) {
|
|
expect(quickGoalsFor(p)).toHaveLength(3);
|
|
}
|
|
});
|
|
});
|