MCPcopy Index your code
hub / github.com/anomalyco/opencode / response

Function response

packages/server/src/location.ts:15–27  ·  view source on GitHub ↗
(data: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

13) {}
14
15export function response<A, E, R>(data: Effect.Effect<A, E, R>) {
16 return Effect.gen(function* () {
17 const location = yield* Location.Service
18 return {
19 location: new Location.Info({
20 directory: location.directory,
21 workspaceID: location.workspaceID,
22 project: location.project,
23 }),
24 data: yield* data,
25 }
26 })
27}
28
29function ref(request: HttpServerRequest.HttpServerRequest): Location.Ref {
30 const query = new URL(request.url, "http://localhost").searchParams

Callers 11

permission.tsFile · 0.90
provider.tsFile · 0.90
fs.tsFile · 0.90
integration.tsFile · 0.90
model.tsFile · 0.90
command.tsFile · 0.90
skill.tsFile · 0.90
reference.tsFile · 0.90
agent.tsFile · 0.90
pty.tsFile · 0.90
question.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected