chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-11 15:22:48 +00:00
parent 31c5454ee6
commit 6dd4d1473c
3 changed files with 13 additions and 48 deletions
+3 -1
View File
@@ -12,7 +12,9 @@ export const FileSystemHandler = HttpApiBuilder.group(Api, "server.fs", (handler
.handleRaw("fs.read", (ctx) =>
Effect.gen(function* () {
const file = yield* (yield* FileSystem.Service).read({
path: RelativePath.make(decodeURIComponent(new URL(ctx.request.url, "http://localhost").pathname.slice(13))),
path: RelativePath.make(
decodeURIComponent(new URL(ctx.request.url, "http://localhost").pathname.slice(13)),
),
})
return HttpServerResponse.uint8Array(file.content, { contentType: file.mime })
}),