feat(cli): add effectCmd wrapper + convert models command (#25429)

This commit is contained in:
Kit Langton
2026-05-02 12:08:04 -04:00
committed by GitHub
parent 0d0ec7dc46
commit 146ff8ad85
4 changed files with 101 additions and 60 deletions

View File

@@ -105,6 +105,9 @@ export const AppLayer = Layer.mergeAll(
const rt = ManagedRuntime.make(AppLayer, { memoMap })
type Runtime = Pick<typeof rt, "runSync" | "runPromise" | "runPromiseExit" | "runFork" | "runCallback" | "dispose">
/** Services provided by AppRuntime — i.e. what an Effect run via AppRuntime.runPromise can yield. */
export type AppServices = ManagedRuntime.ManagedRuntime.Services<typeof rt>
const wrap = (effect: Parameters<typeof rt.runSync>[0]) => attach(effect as never) as never
export const AppRuntime: Runtime = {