SharedRegistry returns a package-level Registry instance that is reused across all tool resolutions within a docker agent session, avoiding repeated YAML parsing and HTTP fetches.
()
| 180 | // across all tool resolutions within a docker agent session, avoiding repeated |
| 181 | // YAML parsing and HTTP fetches. |
| 182 | func SharedRegistry() *Registry { |
| 183 | sharedRegistryOnce.Do(func() { |
| 184 | sharedRegistry = NewRegistry() |
| 185 | }) |
| 186 | return sharedRegistry |
| 187 | } |
| 188 | |
| 189 | // LookupByName searches the registry for a package by "owner/repo" identifier. |
| 190 | // Searches the full registry index first, then falls back to fetching the |
no test coverage detected