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

Function provideContext

packages/arctic/src/project/instance.ts:41–48  ·  view source on GitHub ↗
(
    ctx: { directory: string; worktree: string; project: Project.Info; eventDirectory?: string },
    fn: () => R,
  )

Source from the content-addressed store, hash-verified

39 })
40 },
41 async provideContext<R>(
42 ctx: { directory: string; worktree: string; project: Project.Info; eventDirectory?: string },
43 fn: () => R,
44 ) {
45 return context.provide(ctx, async () => {
46 return fn()
47 })
48 },
49 get directory() {
50 return context.use().directory
51 },

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected