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

Function readThemeFiles

packages/opencode/src/plugin/tui/runtime.ts:363–375  ·  view source on GitHub ↗
(spec: string, pkg?: PluginPackage)

Source from the content-addressed store, hash-verified

361}
362
363async function readThemeFiles(spec: string, pkg?: PluginPackage) {
364 if (!pkg) return [] as string[]
365 return Promise.resolve()
366 .then(() => readPackageThemes(spec, pkg))
367 .catch((error) => {
368 warn("invalid tui plugin oc-themes", {
369 path: spec,
370 pkg: pkg.pkg,
371 error,
372 })
373 return [] as string[]
374 })
375}
376
377async function syncPluginThemes(plugin: PluginEntry) {
378 if (!plugin.load.theme_files.length) return

Callers 1

resolveExternalPluginsFunction · 0.85

Calls 2

readPackageThemesFunction · 0.90
warnFunction · 0.85

Tested by

no test coverage detected