This commit is contained in:
Frank 2025-09-18 10:59:01 -04:00
commit 4ceabdffa0
156 changed files with 443 additions and 445 deletions

View file

@ -0,0 +1,7 @@
import { Actor } from "@opencode/console-core/actor.js"
import { getActor } from "./auth"
export async function withActor<T>(fn: () => T, workspace?: string) {
const actor = await getActor(workspace)
return Actor.provide(actor.type, actor.properties, fn)
}