MCPcopy Index your code
hub / github.com/anomalyco/opencode / withActor

Function withActor

packages/console/app/src/context/auth.withActor.ts:4–7  ·  view source on GitHub ↗
(fn: () => T, workspace?: string)

Source from the content-addressed store, hash-verified

2import { getActor } from "./auth"
3
4export async function withActor<T>(fn: () => T, workspace?: string) {
5 const actor = await getActor(workspace)
6 return Actor.provide(actor.type, actor.properties, fn)
7}

Callers 15

go-referral.tsxFile · 0.90
workspace.tsxFile · 0.90
getLastSeenWorkspaceIDFunction · 0.90
common.tsxFile · 0.90
model-section.tsxFile · 0.90
lite-section.tsxFile · 0.90
getUsageInfoFunction · 0.90
getCostsFunction · 0.90

Calls 1

getActorFunction · 0.90

Tested by

no test coverage detected