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

Function editCatalog

script/upgrade-opentui.ts:70–81  ·  view source on GitHub ↗
(obj: unknown)

Source from the content-addressed store, hash-verified

68}
69
70const editCatalog = (obj: unknown) => {
71 if (!obj || typeof obj !== "object") return false
72 const map = obj as Record<string, unknown>
73 return keys
74 .map((key) => {
75 const cur = map[key]
76 if (typeof cur !== "string" || cur === ver) return false
77 map[key] = ver
78 return true
79 })
80 .some(Boolean)
81}
82
83const editOverrides = (obj: unknown) => {
84 if (!obj || typeof obj !== "object") return false

Callers 1

upgrade-opentui.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected