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

Function row

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

Source from the content-addressed store, hash-verified

133}
134
135function row(api: TuiPluginApi, item: TuiPluginStatus, width: number): DialogSelectOption<string> {
136 return {
137 title: item.id,
138 value: item.id,
139 category: item.source === "internal" ? "Internal" : "External",
140 description: meta(item, width),
141 footer: state(api, item),
142 disabled: item.id === id,
143 }
144}
145
146function showInstall(api: TuiPluginApi) {
147 api.ui.dialog.replace(() => <Install api={api} />)

Callers 1

ViewFunction · 0.70

Calls 2

metaFunction · 0.70
stateFunction · 0.70

Tested by

no test coverage detected