MCPcopy Create free account
hub / github.com/compozy/agh / agentListBundle

Function agentListBundle

internal/cli/agent.go:304–347  ·  view source on GitHub ↗
(items []AgentRecord)

Source from the content-addressed store, hash-verified

302}
303
304func agentListBundle(items []AgentRecord) outputBundle {
305 return listBundle(
306 items,
307 items,
308 "Agents",
309 []string{
310 automationNameValue,
311 agentKernelProviderValue,
312 agentKernelModelValue,
313 agentCategoryValue,
314 toolOperatorToolsValue,
315 installPermissionsValue,
316 },
317 "agents",
318 []string{
319 automationNameKey,
320 cliProviderKey,
321 agentModelKey,
322 agentCategoryKey,
323 "tool_count",
324 configPermissionsKey,
325 },
326 func(item AgentRecord) []string {
327 return []string{
328 stringOrDash(item.Name),
329 stringOrDash(item.Provider),
330 stringOrDash(item.Model),
331 stringOrDash(agentCategoryLabel(item.CategoryPath)),
332 strconv.Itoa(len(item.Tools)),
333 stringOrDash(item.Permissions),
334 }
335 },
336 func(item AgentRecord) []string {
337 return []string{
338 item.Name,
339 item.Provider,
340 item.Model,
341 agentCategoryLabel(item.CategoryPath),
342 strconv.Itoa(len(item.Tools)),
343 item.Permissions,
344 }
345 },
346 )
347}
348
349func agentBundle(item AgentRecord) outputBundle {
350 return outputBundle{

Callers 1

newAgentListCommandFunction · 0.85

Calls 3

listBundleFunction · 0.85
stringOrDashFunction · 0.85
agentCategoryLabelFunction · 0.85

Tested by

no test coverage detected