MCPcopy Create free account
hub / github.com/arctic-cli/interface / formatSessionJSON

Function formatSessionJSON

packages/arctic/src/cli/cmd/session.ts:123–133  ·  view source on GitHub ↗
(sessions: Session.Info[])

Source from the content-addressed store, hash-verified

121}
122
123function formatSessionJSON(sessions: Session.Info[]): string {
124 const jsonData = sessions.map((session) => ({
125 id: session.id,
126 title: session.title,
127 updated: session.time.updated,
128 created: session.time.created,
129 projectId: session.projectID,
130 directory: session.directory,
131 }))
132 return JSON.stringify(jsonData, null, 2)
133}

Callers 1

session.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected