@bryan-thompson/inspector-assessment-cli 1.21.4 → 1.21.5

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.
@@ -25,7 +25,7 @@ import { generatePolicyComplianceReport } from "../../client/lib/services/assess
25
25
  import { compareAssessments } from "../../client/lib/lib/assessmentDiffer.js";
26
26
  import { formatDiffAsMarkdown } from "../../client/lib/lib/reportFormatters/DiffReportFormatter.js";
27
27
  import { AssessmentStateManager } from "./assessmentState.js";
28
- import { emitServerConnected, emitToolDiscovered, emitToolsDiscoveryComplete, emitAssessmentComplete, emitTestBatch, emitVulnerabilityFound, emitAnnotationMissing, emitAnnotationMisaligned, emitAnnotationReviewRecommended, } from "./lib/jsonl-events.js";
28
+ import { emitServerConnected, emitToolDiscovered, emitToolsDiscoveryComplete, emitAssessmentComplete, emitTestBatch, emitVulnerabilityFound, emitAnnotationMissing, emitAnnotationMisaligned, emitAnnotationReviewRecommended, emitAnnotationAligned, } from "./lib/jsonl-events.js";
29
29
  /**
30
30
  * Load server configuration from Claude Code's MCP settings
31
31
  */
@@ -578,6 +578,9 @@ async function runFullAssessment(options) {
578
578
  else if (event.type === "annotation_review_recommended") {
579
579
  emitAnnotationReviewRecommended(event.tool, event.title, event.description, event.parameters, event.field, event.actual, event.inferred, event.confidence, event.isAmbiguous, event.reason);
580
580
  }
581
+ else if (event.type === "annotation_aligned") {
582
+ emitAnnotationAligned(event.tool, event.confidence, event.annotations);
583
+ }
581
584
  // module_started and module_complete are handled by orchestrator directly
582
585
  };
583
586
  const context = {
@@ -155,3 +155,15 @@ export function emitAnnotationReviewRecommended(tool, title, description, parame
155
155
  reason,
156
156
  });
157
157
  }
158
+ /**
159
+ * Emit annotation_aligned event when tool annotations correctly match behavior.
160
+ * This provides real-time confirmation during annotation assessment.
161
+ */
162
+ export function emitAnnotationAligned(tool, confidence, annotations) {
163
+ emitJSONL({
164
+ event: "annotation_aligned",
165
+ tool,
166
+ confidence,
167
+ annotations,
168
+ });
169
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryan-thompson/inspector-assessment-cli",
3
- "version": "1.21.4",
3
+ "version": "1.21.5",
4
4
  "description": "CLI for the Enhanced MCP Inspector with assessment capabilities",
5
5
  "license": "MIT",
6
6
  "author": "Bryan Thompson <bryan@triepod.ai>",