GHHG10's picture
download
raw
552 Bytes
import { Location } from "@opencode-ai/core/location"
import { Effect } from "effect"
import { HttpApiBuilder } from "effect/unstable/httpapi"
import { Api } from "../api"
export const LocationHandler = HttpApiBuilder.group(Api, "server.location", (handlers) =>
handlers.handle(
"location.get",
Effect.fn(function* () {
const location = yield* Location.Service
return new Location.Info({
directory: location.directory,
workspaceID: location.workspaceID,
project: location.project,
})
}),
),
)

Xet Storage Details

Size:
552 Bytes
·
Xet hash:
59bbff67229b0805993ac747f9129275ab80aa1252ddb7d32c225a3a61e27198

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