@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 19 lines 654 Bytes
Raw
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 });