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

Function visible

packages/app/src/context/models.tsx:115–124  ·  view source on GitHub ↗
(model: ModelKey)

Source from the content-addressed store, hash-verified

113 }
114
115 const visible = (model: ModelKey) => {
116 const key = modelKey(model)
117 const state = visibility().get(key)
118 if (state === "hide") return false
119 if (state === "show") return true
120 if (latestSet().has(key)) return true
121 const date = release().get(key)
122 if (!date?.isValid) return true
123 return false
124 }
125
126 const setVisibility = (model: ModelKey, state: boolean) => {
127 update(model, state ? "show" : "hide")

Callers

nothing calls this directly

Calls 3

modelKeyFunction · 0.70
getMethod · 0.65
releaseFunction · 0.50

Tested by

no test coverage detected