GHHG10's picture
download
raw
265 Bytes
import { Actor } from "@opencode-ai/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)
}

Xet Storage Details

Size:
265 Bytes
·
Xet hash:
9738c668352a8e517e346e92493131b5a4ecc84510fc534b6c3ee4baf9b6c6ff

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.