"use strict";
var import_vitest = require("vitest");
var import_messageFormatting = require("./messageFormatting.js");
(0, import_vitest.describe)("formatToolHeader fallback args", () => {
  (0, import_vitest.it)("truncates from the start (not mid-string)", () => {
    const long = "with base path set to packages/server (or absolute if needed). Summarize key directories and notable config/source files.";
    const { header } = (0, import_messageFormatting.formatToolHeader)({
      toolName: "spawn_agent",
      args: {
        instructions: long + " ".repeat(10) + "X".repeat(500)
      }
    });
    (0, import_vitest.expect)(header).toContain("instructions=with base path set to packages/server");
    (0, import_vitest.expect)(header).toContain("...");
  });
});
