This commit is contained in:
Frank
2025-09-18 01:32:40 -04:00
parent f8c4f713a5
commit fc4f281408
155 changed files with 415 additions and 415 deletions

View File

@@ -0,0 +1,7 @@
import { Actor } from "@opencode/cloud-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)
}