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

Function workspaceAgentRows

internal/cli/workspace.go:559–581  ·  view source on GitHub ↗
(items []AgentRecord, human bool)

Source from the content-addressed store, hash-verified

557}
558
559func workspaceAgentRows(items []AgentRecord, human bool) [][]string {
560 rows := make([][]string, 0, len(items))
561 for _, item := range items {
562 row := []string{
563 item.Name,
564 item.Provider,
565 item.Model,
566 agentCategoryLabel(item.CategoryPath),
567 item.Permissions,
568 }
569 if human {
570 row = []string{
571 stringOrDash(item.Name),
572 stringOrDash(item.Provider),
573 stringOrDash(item.Model),
574 stringOrDash(agentCategoryLabel(item.CategoryPath)),
575 stringOrDash(item.Permissions),
576 }
577 }
578 rows = append(rows, row)
579 }
580 return rows
581}
582
583func workspaceSkillRows(items []WorkspaceSkillRecord, human bool) [][]string {
584 rows := make([][]string, 0, len(items))

Callers 2

Calls 3

agentCategoryLabelFunction · 0.85
stringOrDashFunction · 0.85
appendFunction · 0.85

Tested by

no test coverage detected