(items []AgentRecord, human bool)
| 557 | } |
| 558 | |
| 559 | func 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 | |
| 583 | func workspaceSkillRows(items []WorkspaceSkillRecord, human bool) [][]string { |
| 584 | rows := make([][]string, 0, len(items)) |
no test coverage detected