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

Function outputSessionsText

apps/cli/src/commands/cli/list.ts:98–103  ·  view source on GitHub ↗
(sessions: SessionLike[])

Source from the content-addressed store, hash-verified

96}
97
98function outputSessionsText(sessions: SessionLike[]): void {
99 for (const session of sessions) {
100 const startedAt = Number.isFinite(session.ts) ? new Date(session.ts).toISOString() : "unknown-time"
101 process.stdout.write(`${session.id}\t${startedAt}\t${formatSessionTitle(session.task)}\n`)
102 }
103}
104
105async function createListHost(options: BaseListOptions, hostOptions: ListHostOptions): Promise<ExtensionHost> {
106 const workspacePath = resolveWorkspacePath(options.workspace)

Callers 1

listSessionsFunction · 0.85

Calls 2

formatSessionTitleFunction · 0.85
writeMethod · 0.65

Tested by

no test coverage detected