()
| 152 | * Get user agents from the cache as LocalAgentInfo[] |
| 153 | */ |
| 154 | const getUserAgentsAsLocalInfo = (): LocalAgentInfo[] => { |
| 155 | return Object.values(userAgentsCache).map((def) => ({ |
| 156 | id: def.id, |
| 157 | displayName: def.displayName || def.id, |
| 158 | filePath: userAgentFilePaths.get(def.id) || '', |
| 159 | })) |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Get user agents from the cache as AgentDefinition[] |