mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-08 10:10:58 +00:00
sync
This commit is contained in:
parent
6ecd011e51
commit
6b972329fd
3 changed files with 20245 additions and 3372 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 () => {
|
||||
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
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