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

Function save

packages/opencode/src/plugin/tui/runtime.ts:272–275  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271 await Flock.withLock(`tui-theme:${dest}`, async () => {
272 const save = async () => {
273 plugin.themes[name] = info
274 await PluginMeta.setTheme(plugin.id, name, info).catch(() => {})
275 }
276
277 const exists = hasTheme(name)
278 const prev = plugin.themes[name]

Callers 1

createThemeInstallerFunction · 0.70

Calls 1

setThemeMethod · 0.80

Tested by

no test coverage detected