25 lines · 923 B · TypeScript
RawDownload
import { WS_METHODS } from "@t3tools/contracts";import {  createEnvironmentRpcCommand,  createEnvironmentRpcQueryAtomFamily,} from "@t3tools/client-runtime/state/runtime"; import { connectionAtomRuntime } from "../connection/runtime"; /** * Scan of Claude Code / Codex home directories on an environment, surfacing * project candidates for the welcome wizard's import step. The scan walks the * filesystem server-side, so results are cached briefly and refreshed when the * import step remounts. */export const agentSessionScan = createEnvironmentRpcQueryAtomFamily(connectionAtomRuntime, {  label: "environment-data:agent-sessions:scan",  tag: WS_METHODS.agentSessionsScan,  staleTimeMs: 30_000,  idleTtlMs: 5 * 60_000,}); export const agentSessionImport = createEnvironmentRpcCommand(connectionAtomRuntime, {  label: "environment-data:agent-sessions:import",  tag: WS_METHODS.agentSessionsImport,});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t