MCPcopy Create free account
hub / github.com/anomalyco/opencode / make

Function make

packages/core/test/plugin/provider-github-copilot.test.ts:29–32  ·  view source on GitHub ↗
(method: string)

Source from the content-addressed store, hash-verified

27
28function fakeSelectorSdk(calls: string[]) {
29 const make = (method: string) => (id: string) => {
30 calls.push(`${method}:${id}`)
31 return { modelId: id, provider: method, specificationVersion: "v3" } as unknown as LanguageModelV3
32 }
33 return {
34 responses: make("responses"),
35 messages: make("messages"),

Callers 1

fakeSelectorSdkFunction · 0.70

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected