chore: generate

This commit is contained in:
opencode-agent[bot]
2026-05-14 00:33:32 +00:00
parent aa8a41d1b8
commit 10c90eb445
3 changed files with 13 additions and 10 deletions

View File

@@ -101,10 +101,7 @@ describe("AppProcess", () => {
"truncates stderr when maxErrorBytes is set",
Effect.gen(function* () {
const svc = yield* AppProcess.Service
const result = yield* svc.run(
cmd("-e", "process.stderr.write('0123456789')"),
{ maxErrorBytes: 5 },
)
const result = yield* svc.run(cmd("-e", "process.stderr.write('0123456789')"), { maxErrorBytes: 5 })
expect(result.exitCode).toBe(0)
expect(result.stdoutTruncated).toBe(false)
expect(result.stderrTruncated).toBe(true)

View File

@@ -633,11 +633,13 @@ export const maybeParseApplyPatchVerified = Effect.fn("Patch.maybeParseApplyPatc
case "update": {
const updatePath = path.resolve(effectiveCwd, hunk.path)
const originalText = yield* fs.readFileString(updatePath).pipe(
Effect.catch((cause) =>
Effect.succeed(new Error(`Failed to read file ${updatePath}: ${cause}`, { cause })),
),
)
const originalText = yield* fs
.readFileString(updatePath)
.pipe(
Effect.catch((cause) =>
Effect.succeed(new Error(`Failed to read file ${updatePath}: ${cause}`, { cause })),
),
)
if (originalText instanceof Error) {
return {
type: MaybeApplyPatchVerified.CorrectnessError,

View File

@@ -119,7 +119,11 @@ export const ApplyPatchTool = Tool.define(
// Apply the update chunks to get new content
try {
const fileUpdate = Patch.deriveNewContentsFromChunks(filePath, hunk.chunks, Bom.join(source.text, source.bom))
const fileUpdate = Patch.deriveNewContentsFromChunks(
filePath,
hunk.chunks,
Bom.join(source.text, source.bom),
)
newContent = fileUpdate.content
bom = fileUpdate.bom
} catch (error) {