(items []AgentRecord)
| 302 | } |
| 303 | |
| 304 | func 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 | |
| 349 | func agentBundle(item AgentRecord) outputBundle { |
| 350 | return outputBundle{ |
no test coverage detected