This commit is contained in:
Dax Raad
2026-01-31 01:58:20 -05:00
parent 6ecd011e51
commit 6b972329fd
3 changed files with 20245 additions and 3372 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -173,7 +173,9 @@ describe("tool.read truncation", () => {
test("truncates large file by bytes and sets truncated metadata", async () => {
await using tmp = await tmpdir({
init: async (dir) => {
const content = await Bun.file(path.join(FIXTURES_DIR, "models-api.json")).text()
const base = await Bun.file(path.join(FIXTURES_DIR, "models-api.json")).text()
const target = 60 * 1024
const content = base.length >= target ? base : base.repeat(Math.ceil(target / base.length))
await Bun.write(path.join(dir, "large.json"), content)
},
})

11911
packages/sdk/js/openapi.json Normal file

File diff suppressed because it is too large Load Diff