import { Actor } from "@opencode/cloud-core/actor.js" import { getActor } from "./auth" import { getRequestEvent } from "solid-js/web" export async function withActor(fn: () => T) { const actor = await getActor() return Actor.provide(actor.type, actor.properties, fn) }