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 { WS_METHODS } from "@akeru/contracts";
import { Atom } from "effect/unstable/reactivity";
import { createEnvironmentRpcCommand } from "./runtime.ts";
import type { EnvironmentRegistry } from "../connection/registry.ts";
export function createShellEnvironmentAtoms<R, E>(
runtime: Atom.AtomRuntime<EnvironmentRegistry | R, E>,
) {
return {
openInEditor: createEnvironmentRpcCommand(runtime, {
label: "environment-data:shell:open-in-editor",
tag: WS_METHODS.shellOpenInEditor,
}),
revealAttachment: createEnvironmentRpcCommand(runtime, {
label: "environment-data:shell:reveal-attachment",
tag: WS_METHODS.shellRevealAttachment,
}),
};
}