sync
This commit is contained in:
parent
6ecd011e51
commit
6b972329fd
3 changed files with 24595 additions and 7722 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -173,7 +173,9 @@ describe("tool.read truncation", () => {
|
||||||
test("truncates large file by bytes and sets truncated metadata", async () => {
|
test("truncates large file by bytes and sets truncated metadata", async () => {
|
||||||
await using tmp = await tmpdir({
|
await using tmp = await tmpdir({
|
||||||
init: async (dir) => {
|
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)
|
await Bun.write(path.join(dir, "large.json"), content)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
11911
packages/sdk/js/openapi.json
Normal file
11911
packages/sdk/js/openapi.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue