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

Function addSlot

packages/httpapi-codegen/src/index.ts:1083–1088  ·  view source on GitHub ↗
(schema: Schema.Top | undefined, name: string)

Source from the content-addressed store, hash-verified

1081 })
1082
1083 function addSlot(schema: Schema.Top | undefined, name: string) {
1084 if (schema === undefined) return undefined
1085 const slot = { name, schema }
1086 slots.push(slot)
1087 return slot
1088 }
1089
1090 function renderSuccess(schema: Schema.Top, name: string) {
1091 if (!isStreamSchema(schema)) return { source: addSlot(schema, name)!.name }

Callers 2

renderGroupFunction · 0.85
renderSuccessFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected