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

Function meta

packages/tui/src/feature-plugins/system/plugins.tsx:28–36  ·  view source on GitHub ↗
(item: TuiPluginStatus, width: number)

Source from the content-addressed store, hash-verified

26}
27
28function meta(item: TuiPluginStatus, width: number) {
29 if (item.source === "internal") {
30 if (width >= 120) return "Built-in plugin"
31 return "Built-in"
32 }
33 const next = source(item.spec)
34 if (next) return next
35 return item.spec
36}
37
38function Install(props: { api: TuiPluginApi }) {
39 const [global, setGlobal] = createSignal(false)

Callers 1

rowFunction · 0.70

Calls 1

sourceFunction · 0.70

Tested by

no test coverage detected