Buckets:
| import { Location } from "@opencode-ai/core/location" | |
| import { Reference } from "@opencode-ai/core/reference" | |
| import { Schema } from "effect" | |
| import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/unstable/httpapi" | |
| import { LocationMiddleware, LocationQuery, locationQueryOpenApi } from "./location" | |
| export const ReferenceGroup = HttpApiGroup.make("server.reference") | |
| .add( | |
| HttpApiEndpoint.get("reference.list", "/api/reference", { | |
| query: LocationQuery, | |
| success: Location.response(Schema.Array(Reference.Info)), | |
| }) | |
| .annotateMerge(locationQueryOpenApi) | |
| .annotateMerge( | |
| OpenApi.annotations({ | |
| identifier: "v2.reference.list", | |
| summary: "List references", | |
| description: "List references available in the requested location.", | |
| }), | |
| ), | |
| ) | |
| .annotateMerge( | |
| OpenApi.annotations({ | |
| title: "reference", | |
| description: "Location-scoped project references.", | |
| }), | |
| ) | |
| .middleware(LocationMiddleware) | |
Xet Storage Details
- Size:
- 1 kB
- Xet hash:
- fe8546378fb830381d8a7d5dfa4c069afc5fc9b419b016d926b12bb74bb0b474
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.