import { describe, expect, test } from "bun:test" import { CATEGORY_PROMPT_APPENDS } from "./builtin-categories" import { createDelegateTaskPresentation } from "./tool-description" describe("createDelegateTaskPresentation", () => { test("#given caller-directed category guidance #when presentation is built #then guidance reaches only the caller", () => { //#given const callerDirectedCategories = ["quick", "unspecified-low", "unspecified-high"] //#when const presentation = createDelegateTaskPresentation({}) //#then expect(presentation.description).toContain("") expect(presentation.description).toContain("") for (const category of callerDirectedCategories) { expect(CATEGORY_PROMPT_APPENDS[category]).toContain("") expect(CATEGORY_PROMPT_APPENDS[category]).not.toContain("") expect(CATEGORY_PROMPT_APPENDS[category]).not.toContain("") } }) })