MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / listSessions

Function listSessions

apps/cli/src/commands/cli/list.ts:305–316  ·  view source on GitHub ↗
(options: BaseListOptions)

Source from the content-addressed store, hash-verified

303}
304
305export async function listSessions(options: BaseListOptions): Promise<void> {
306 const format = parseFormat(options.format)
307 const workspacePath = resolveWorkspacePath(options.workspace)
308 const sessions = await readWorkspaceTaskSessions(workspacePath)
309
310 if (format === "json") {
311 outputJson({ workspace: workspacePath, sessions })
312 return
313 }
314
315 outputSessionsText(sessions)
316}

Callers 2

index.tsFile · 0.50
list.test.tsFile · 0.50

Calls 5

parseFormatFunction · 0.85
outputJsonFunction · 0.85
outputSessionsTextFunction · 0.85
resolveWorkspacePathFunction · 0.70

Tested by

no test coverage detected