@bryan-thompson/inspector-assessment-cli 1.23.0 → 1.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -386,6 +386,11 @@ function buildConfig(options) {
386
386
  if (options.patternConfigPath) {
387
387
  config.patternConfigPath = options.patternConfigPath;
388
388
  }
389
+ // Logging configuration
390
+ // Precedence: CLI flags > LOG_LEVEL env var > default (info)
391
+ const envLogLevel = process.env.LOG_LEVEL;
392
+ const logLevel = options.logLevel ?? envLogLevel ?? "info";
393
+ config.logging = { level: logLevel };
389
394
  return config;
390
395
  }
391
396
  /**
@@ -835,7 +840,29 @@ function parseArgs() {
835
840
  case "--verbose":
836
841
  case "-v":
837
842
  options.verbose = true;
843
+ options.logLevel = "debug";
838
844
  break;
845
+ case "--silent":
846
+ options.logLevel = "silent";
847
+ break;
848
+ case "--log-level": {
849
+ const levelValue = args[++i];
850
+ const validLevels = [
851
+ "silent",
852
+ "error",
853
+ "warn",
854
+ "info",
855
+ "debug",
856
+ ];
857
+ if (!validLevels.includes(levelValue)) {
858
+ console.error(`Invalid log level: ${levelValue}. Valid options: ${validLevels.join(", ")}`);
859
+ setTimeout(() => process.exit(1), 10);
860
+ options.helpRequested = true;
861
+ return options;
862
+ }
863
+ options.logLevel = levelValue;
864
+ break;
865
+ }
839
866
  case "--json":
840
867
  options.jsonOnly = true;
841
868
  break;
@@ -969,7 +996,10 @@ Options:
969
996
  --skip-modules <list> Skip specific modules (comma-separated)
970
997
  --only-modules <list> Run only specific modules (comma-separated)
971
998
  --json Output only JSON path (no console summary)
972
- --verbose, -v Enable verbose logging
999
+ --verbose, -v Enable verbose logging (same as --log-level debug)
1000
+ --silent Suppress all diagnostic logging
1001
+ --log-level <level> Set log level: silent, error, warn, info (default), debug
1002
+ Also supports LOG_LEVEL environment variable
973
1003
  --help, -h Show this help message
974
1004
 
975
1005
  Module Selection:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryan-thompson/inspector-assessment-cli",
3
- "version": "1.23.0",
3
+ "version": "1.23.2",
4
4
  "description": "CLI for the Enhanced MCP Inspector with assessment capabilities",
5
5
  "license": "MIT",
6
6
  "author": "Bryan Thompson <bryan@triepod.ai>",