MCPcopy Index your code
hub / github.com/anomalyco/opencode / syncPluginThemes

Function syncPluginThemes

packages/opencode/src/plugin/tui/runtime.ts:377–386  ·  view source on GitHub ↗
(plugin: PluginEntry)

Source from the content-addressed store, hash-verified

375}
376
377async function syncPluginThemes(plugin: PluginEntry) {
378 if (!plugin.load.theme_files.length) return
379 if (plugin.meta.state === "same") return
380 const install = createThemeInstaller(plugin.load.origin, plugin.load.plugin_root, plugin.load.spec, plugin)
381 for (const file of plugin.load.theme_files) {
382 await install(file).catch((error) => {
383 warn("failed to sync tui plugin oc-themes", { path: plugin.load.spec, id: plugin.id, theme: file, error })
384 })
385 }
386}
387
388function createPluginScope(load: PluginLoad, id: string, disposeTimeoutMs: number) {
389 const ctrl = new AbortController()

Callers 1

activatePluginEntryFunction · 0.85

Calls 3

createThemeInstallerFunction · 0.85
warnFunction · 0.85
installFunction · 0.70

Tested by

no test coverage detected