| 87 | }); |
| 88 | |
| 89 | export class NetworkOptimizeTool extends Tool<z.infer<typeof Args>> { |
| 90 | name = 'network_optimize'; |
| 91 | description = 'Diagnose a slow/restricted network and pick the fastest reachable package mirror for npm, pip, HuggingFace and GitHub. Probes official vs known mirrors concurrently (through any configured proxy), ranks by reachability + latency, and returns the exact config to use. Set apply:true to write ~/.npmrc / pip.conf / git proxy automatically. Use this when installs time out (the recurring [NO_RESULTS] / npm-hang situation).'; |
| 92 | isReadOnly = false; // probing is read-only; apply writes config files |
nothing calls this directly
no outgoing calls
no test coverage detected