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

Function readWorkspaceTaskSessions

apps/cli/src/lib/task-history/index.ts:20–26  ·  view source on GitHub ↗
(
	workspacePath: string,
	storagePath = DEFAULT_CLI_TASK_STORAGE_PATH,
)

Source from the content-addressed store, hash-verified

18}
19
20export async function readWorkspaceTaskSessions(
21 workspacePath: string,
22 storagePath = DEFAULT_CLI_TASK_STORAGE_PATH,
23): Promise<TaskSessionEntry[]> {
24 const sessions = await readTaskSessionsFromStoragePath(storagePath)
25 return filterSessionsForWorkspace(sessions, workspacePath)
26}
27
28export function resolveWorkspaceResumeSessionId(sessions: TaskSessionEntry[], requestedSessionId?: string): string {
29 if (requestedSessionId) {

Callers 3

listSessionsFunction · 0.85
runFunction · 0.85
index.test.tsFile · 0.85

Calls 2

Tested by

no test coverage detected