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

Function update

packages/arctic/src/session/todo.ts:27–30  ·  view source on GitHub ↗
(input: { sessionID: string; todos: Info[] })

Source from the content-addressed store, hash-verified

25 }
26
27 export async function update(input: { sessionID: string; todos: Info[] }) {
28 await Storage.write(["todo", input.sessionID], input.todos)
29 Bus.publish(Event.Updated, input)
30 }
31
32 export async function get(sessionID: string) {
33 return Storage.read<Info[]>(["todo", sessionID])

Callers

nothing calls this directly

Calls 1

publishMethod · 0.45

Tested by

no test coverage detected