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

Function find

packages/app/src/context/models.tsx:104–104  ·  view source on GitHub ↗
(key: ModelKey)

Source from the content-addressed store, hash-verified

102 )
103
104 const find = (key: ModelKey) => list().find((m) => m.id === key.modelID && m.provider.id === key.providerID)
105
106 function update(model: ModelKey, state: Visibility) {
107 const index = store.user.findIndex((x) => x.modelID === model.modelID && x.providerID === model.providerID)

Callers

nothing calls this directly

Calls 2

listFunction · 0.70
findMethod · 0.65

Tested by

no test coverage detected