Type d'évaluation
Mise en situation réelle
Analyse
Intelligence Artificielle
Compétences ciblées
Scénario Technique
Context A developer toolchain CLI must support third-party plugins that add new commands without modifying the core CLI source code. The Problem All commands are hard-coded in the main CLI file, requiring a version bump and republish to add new functionality. Constraints Design a plugin discovery mechanism that loads command modules from a configured directory or from installed npm packages matching a naming pattern. Each plugin exports a command definition (name, description, handler). Implement help generation from registered plugins dynamically. Expected Deliverable A Node.js CLI framework with dynamic plugin loading, auto-generated help from plugin metadata, and a sample plugin demonstrating the extension API.
Prêt à évaluer ce talent ?
Accédez à l'interface de test complète pour soumettre votre architecture ou votre code.