The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { ORCHESTRATION_V2_WS_METHODS } from "@t3tools/contracts"; |
| 2 | import { createOrchestrationEnvironmentAtoms } from "@t3tools/client-runtime/state/orchestration"; |
| 3 | import { createEnvironmentRpcCommand } from "@t3tools/client-runtime/state/runtime"; |
| 4 | |
| 5 | import { connectionAtomRuntime } from "../connection/runtime"; |
| 6 | import { environmentShell } from "./shell"; |
| 7 | |
| 8 | export const orchestrationEnvironment = createOrchestrationEnvironmentAtoms(connectionAtomRuntime, { |
| 9 | shellState: environmentShell.stateValueAtom, |
| 10 | }); |
| 11 | |
| 12 | export const threadTitlesRead = createEnvironmentRpcCommand(connectionAtomRuntime, { |
| 13 | label: "environment-data:orchestration:thread-titles-read", |
| 14 | tag: ORCHESTRATION_V2_WS_METHODS.getThreadTitles, |
| 15 | }); |