GHHG10's picture
download
raw
578 Bytes
import { AgentV2 } from "@opencode-ai/core/agent"
import { PluginBoot } from "@opencode-ai/core/plugin/boot"
import { Effect } from "effect"
import { HttpApiBuilder } from "effect/unstable/httpapi"
import { Api } from "../api"
import { response } from "../groups/location"
export const AgentHandler = HttpApiBuilder.group(Api, "server.agent", (handlers) =>
handlers.handle("agent.list", () =>
Effect.gen(function* () {
yield* PluginBoot.Service.use((plugin) => plugin.wait())
return yield* response(AgentV2.Service.use((agent) => agent.all()))
}),
),
)

Xet Storage Details

Size:
578 Bytes
·
Xet hash:
1985d1778aa2418567c19b3b2bda5cc8f747c83f6afcd8c4fe38d1a034116728

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