Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import * as Effect from "effect/Effect";
import {
CommandAvailability,
type CommandAvailabilityChecker,
WindowsShellEnvironment,
type WindowsShellEnvironmentReader,
} from "./shell.ts";
export const withWindowsEnvironmentMocks = <A, E, R>(
effect: Effect.Effect<A, E, R>,
readEnvironment: WindowsShellEnvironmentReader,
commandAvailable: CommandAvailabilityChecker,
) =>
effect.pipe(
Effect.provideService(WindowsShellEnvironment, readEnvironment),
Effect.provideService(CommandAvailability, commandAvailable),
);