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

Function use

packages/arctic/src/util/context.ts:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 const storage = new AsyncLocalStorage<T>()
12 return {
13 use() {
14 const result = storage.getStore()
15 if (!result) {
16 throw new NotFound(name)
17 }
18 return result
19 },
20 provide<R>(value: T, fn: () => R) {
21 return storage.run(value, fn)
22 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected