mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 16:31:50 +00:00
chore: generate
This commit is contained in:
parent
f8738c9002
commit
b3a7513765
2 changed files with 7 additions and 10 deletions
|
|
@ -127,12 +127,10 @@ export const layer: Layer.Layer<Service, never, AppFileSystem.Service | HttpClie
|
|||
)
|
||||
})
|
||||
|
||||
const loadFromDisk = fs
|
||||
.readJson(Flag.OPENCODE_MODELS_PATH ?? filepath)
|
||||
.pipe(
|
||||
Effect.catch(() => Effect.succeed(undefined)),
|
||||
Effect.map((v) => v as Record<string, Provider> | undefined),
|
||||
)
|
||||
const loadFromDisk = fs.readJson(Flag.OPENCODE_MODELS_PATH ?? filepath).pipe(
|
||||
Effect.catch(() => Effect.succeed(undefined)),
|
||||
Effect.map((v) => v as Record<string, Provider> | undefined),
|
||||
)
|
||||
|
||||
// Bundled at build time; absent in dev — `tryPromise` covers both.
|
||||
const loadSnapshot = Effect.tryPromise({
|
||||
|
|
|
|||
|
|
@ -154,10 +154,9 @@ describe("ModelsDev Service", () => {
|
|||
state,
|
||||
Effect.gen(function* () {
|
||||
const svc = yield* ModelsDev.Service
|
||||
return yield* Effect.all(
|
||||
[svc.get(), svc.get(), svc.get(), svc.get(), svc.get()],
|
||||
{ concurrency: "unbounded" },
|
||||
)
|
||||
return yield* Effect.all([svc.get(), svc.get(), svc.get(), svc.get(), svc.get()], {
|
||||
concurrency: "unbounded",
|
||||
})
|
||||
}),
|
||||
)
|
||||
for (const result of results) expect(result).toEqual(fixture)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue