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

Function access

packages/httpapi-codegen/src/index.ts:507–508  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

505 : `input${endpoint.operation.inputMode === "optional" ? "?" : ""}: ${prefix}Input, requestOptions?: RequestOptions`
506 const path = promisePath(endpoint.endpoint.path, endpoint.input)
507 const access = (name: string) =>
508 `input${endpoint.operation.inputMode === "optional" ? "?." : ""}[${JSON.stringify(name)}]`
509 const part = (source: InputField["source"]) => {
510 const inputs = endpoint.input.filter((field) => field.source === source)
511 return inputs.length === 0

Callers 2

partFunction · 0.70
existsFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected