import { describe, expect, test } from "bun:test"; import { embeddingInputHash, embeddingInputText } from "./embeddings"; describe("embedding input helpers", () => { test("includes the command name in the embedding text", () => { expect(embeddingInputText("agent-browser", "CLI for browser automation.")).toBe( "agent-browser: CLI for browser automation.", ); }); test("changes the hash when the command name changes", () => { const description = "CLI for browser automation."; expect(embeddingInputHash("agent-browser", description)).not.toBe( embeddingInputHash("firefox", description), ); }); });