(t translations.TranslationHelperFunc)
| 240 | } |
| 241 | |
| 242 | func initGlobalToolScopeMap(t translations.TranslationHelperFunc) error { |
| 243 | // Build inventory with all tools to extract scope information |
| 244 | inv, err := inventory.NewBuilder(). |
| 245 | SetTools(github.AllTools(t)). |
| 246 | Build() |
| 247 | |
| 248 | if err != nil { |
| 249 | return fmt.Errorf("failed to build inventory for tool scope map: %w", err) |
| 250 | } |
| 251 | |
| 252 | // Initialize the global scope map |
| 253 | scopes.SetToolScopeMapFromInventory(inv) |
| 254 | |
| 255 | return nil |
| 256 | } |
| 257 | |
| 258 | // createHTTPFeatureChecker creates a feature checker that resolves static CLI |
| 259 | // features plus per-request header features and insiders mode. |
no test coverage detected