ybc
56af1ea091
feat: parallel service discovery + unit tests for auth-headers
- Optimize loadPlugins to discover HTTP servers in parallel (sync.WaitGroup)
when multiple remote servers exist, reducing startup time from sequential
N*10s to parallel max(10s)
- Add auth_registry_test.go with 7 unit tests covering:
- PluginAuth registry CRUD and multi-product isolation
- deriveToolCLIName conversion (6 cases)
- registerPluginAuthFromHeaders extraction and registration
- buildPluginAuthClient with/without Authorization header
- Add 3 test cases to plugin_test.go covering:
- Headers -> AuthHeaders conversion with env var expansion
- No-headers descriptor produces nil AuthHeaders
- ParseManifest correctly parses headers field from plugin.json
2026-04-16 09:38:18 +08:00
..
2026-04-16 09:38:18 +08:00
2026-04-16 09:33:20 +08:00
2026-04-16 09:34:52 +08:00
2026-04-16 09:38:18 +08:00
2026-04-16 09:38:18 +08:00
2026-04-16 09:33:20 +08:00