mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
ignore: cloud solid fixes
This commit is contained in:
parent
7f5e5fccc8
commit
4496cd4b64
9 changed files with 206 additions and 351 deletions
7
cloud/app/src/context/auth.withActor.ts
Normal file
7
cloud/app/src/context/auth.withActor.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { Actor } from "@opencode/cloud-core/actor.js"
|
||||
import { getActor } from "./auth"
|
||||
|
||||
export async function withActor<T>(fn: () => T) {
|
||||
const actor = await getActor()
|
||||
return Actor.provide(actor.type, actor.properties, fn)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue