@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 16 lines 513 Bytes
Raw
1 import { WS_METHODS } from "@t3tools/contracts";
2 import { Atom } from "effect/reactivity";
3
4 import { createEnvironmentRpcCommand } from "./runtime.ts";
5 import type { EnvironmentRegistry } from "../connection/registry.ts";
6
7 export function createShellEnvironmentAtoms<R, E>(
8 runtime: Atom.AtomRuntime<EnvironmentRegistry | R, E>,
9 ) {
10 return {
11 openInEditor: createEnvironmentRpcCommand(runtime, {
12 label: "environment-data:shell:open-in-editor",
13 tag: WS_METHODS.shellOpenInEditor,
14 }),
15 };
16 }