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

Function read

packages/arctic/src/file/time.ts:17–22  ·  view source on GitHub ↗
(sessionID: string, file: string)

Source from the content-addressed store, hash-verified

15 })
16
17 export function read(sessionID: string, file: string) {
18 log.info("read", { sessionID, file })
19 const { read } = state()
20 read[sessionID] = read[sessionID] || {}
21 read[sessionID][file] = new Date()
22 }
23
24 export function get(sessionID: string, file: string) {
25 return state().read[sessionID]?.[file]

Callers

nothing calls this directly

Calls 1

stateFunction · 0.85

Tested by

no test coverage detected