import { describe, it, expect } from "vitest";
import { buildTextRepresentation } from "../memory-write.js";
describe("buildTextRepresentation bounding", () => {
    it("caps total output length", () => {
        const out = buildTextRepresentation(["Message"], { body: "z".repeat(50_000) });
        expect(out.length).toBeLessThanOrEqual(8200); // label preamble + total cap
    });
    it("caps each value so one huge prop cannot crowd out later props", () => {
        const out = buildTextRepresentation(["Person"], {
            bio: "z".repeat(50_000),
            givenName: "Ada",
        });
        expect(out).toContain("givenName: Ada");
    });
    it("leaves a small representation unchanged", () => {
        const out = buildTextRepresentation(["Person"], { givenName: "Ada", familyName: "Lovelace" });
        expect(out).toBe("[Person] | givenName: Ada | familyName: Lovelace");
    });
});
//# sourceMappingURL=build-text-representation-bound.test.js.map