MCPcopy Index your code
hub / github.com/callstack/agent-device / listSessions

Function listSessions

src/client/client.ts:88–92  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

86 };
87
88 const listSessions = async (options = {}) => {
89 const data = await execute(INTERNAL_COMMANDS.sessionList, [], options);
90 const sessions = Array.isArray(data.sessions) ? data.sessions : [];
91 return sessions.map(normalizeSession);
92 };
93
94 const executeCommand = async <T>(
95 command: DaemonCommandName,

Callers 1

createAgentDeviceClientFunction · 0.85

Calls 1

executeFunction · 0.70

Tested by

no test coverage detected