chore: generate

This commit is contained in:
opencode-agent[bot]
2026-04-11 01:22:01 +00:00
parent 5cd4c6eb22
commit 605559b165
2 changed files with 4 additions and 7 deletions
+3 -3
View File
@@ -586,9 +586,9 @@ export namespace Session {
}) })
const diff = Effect.fn("Session.diff")(function* (sessionID: SessionID) { const diff = Effect.fn("Session.diff")(function* (sessionID: SessionID) {
return yield* storage.read<Snapshot.FileDiff[]>(["session_diff", sessionID]).pipe( return yield* storage
Effect.orElseSucceed((): Snapshot.FileDiff[] => []), .read<Snapshot.FileDiff[]>(["session_diff", sessionID])
) .pipe(Effect.orElseSucceed((): Snapshot.FileDiff[] => []))
}) })
const messages = Effect.fn("Session.messages")(function* (input: { sessionID: SessionID; limit?: number }) { const messages = Effect.fn("Session.messages")(function* (input: { sessionID: SessionID; limit?: number }) {
@@ -11,9 +11,7 @@ import { testEffect } from "../lib/effect"
const dir = path.join(Global.Path.data, "storage") const dir = path.join(Global.Path.data, "storage")
const it = testEffect( const it = testEffect(Layer.mergeAll(Storage.defaultLayer, AppFileSystem.defaultLayer, CrossSpawnSpawner.defaultLayer))
Layer.mergeAll(Storage.defaultLayer, AppFileSystem.defaultLayer, CrossSpawnSpawner.defaultLayer),
)
const scope = Effect.fnUntraced(function* () { const scope = Effect.fnUntraced(function* () {
const root = ["storage_test", crypto.randomUUID()] const root = ["storage_test", crypto.randomUUID()]
@@ -293,4 +291,3 @@ describe("Storage", () => {
}), }),
) )
}) })