The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { WS_METHODS } from "@t3tools/contracts"; |
| 2 | import { |
| 3 | createEnvironmentRpcCommand, |
| 4 | createEnvironmentRpcQueryAtomFamily, |
| 5 | } from "@t3tools/client-runtime/state/runtime"; |
| 6 | |
| 7 | import { connectionAtomRuntime } from "../connection/runtime"; |
| 8 | |
| 9 | export const agentSessionScan = createEnvironmentRpcQueryAtomFamily(connectionAtomRuntime, { |
| 10 | label: "environment-data:agent-sessions:scan", |
| 11 | tag: WS_METHODS.agentSessionsScan, |
| 12 | staleTimeMs: 30_000, |
| 13 | idleTtlMs: 5 * 60_000, |
| 14 | }); |
| 15 | |
| 16 | export const agentSessionImport = createEnvironmentRpcCommand(connectionAtomRuntime, { |
| 17 | label: "environment-data:agent-sessions:import", |
| 18 | tag: WS_METHODS.agentSessionsImport, |
| 19 | }); |