MCPcopy
hub / github.com/anomalyco/opencode / pull

Method pull

packages/opencode/test/lib/llm-server.ts:664–670  ·  view source on GitHub ↗
(hit: Hit)

Source from the content-addressed store, hash-verified

662 })
663
664 const pull = (hit: Hit) => {
665 const index = list.findIndex((entry) => !entry.match || entry.match(hit))
666 if (index === -1) return
667 const first = list[index]
668 list = [...list.slice(0, index), ...list.slice(index + 1)]
669 return first.item
670 }
671
672 const handle = Effect.fn("TestLLMServer.handle")(function* (mode: "chat" | "responses") {
673 const req = yield* HttpServerRequest.HttpServerRequest

Callers 4

pullFunction · 0.80
skill.tsFile · 0.80
discovery.test.tsFile · 0.80
index.tsFile · 0.80

Calls

no outgoing calls

Tested by 1

pullFunction · 0.64