@bryan-thompson/inspector-assessment 1.43.2 → 1.43.4

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.
Files changed (50) hide show
  1. package/README.md +1062 -224
  2. package/cli/build/assess-full.js +532 -106
  3. package/cli/build/assess-security.js +54 -90
  4. package/cli/build/lib/cli-parser.js +14 -1
  5. package/cli/build/lib/cli-parserSchemas.js +1 -0
  6. package/cli/build/lib/result-output.js +21 -0
  7. package/cli/build/profiles.js +20 -0
  8. package/cli/build/validate-testbed.js +0 -0
  9. package/cli/package.json +1 -1
  10. package/client/dist/assets/{OAuthCallback-BS8-A1sU.js → OAuthCallback-Chi58kRc.js} +1 -1
  11. package/client/dist/assets/{OAuthDebugCallback-025_TM2i.js → OAuthDebugCallback-BluD_Wxg.js} +1 -1
  12. package/client/dist/assets/{index-DEhlIjy-.js → index-KW2LwGdp.js} +4 -4
  13. package/client/dist/index.html +1 -1
  14. package/client/lib/lib/assessment/configSchemas.d.ts +64 -64
  15. package/client/lib/lib/assessment/jsonlEventSchemas.d.ts +286 -286
  16. package/client/lib/lib/assessment/resultTypes.d.ts +10 -0
  17. package/client/lib/lib/assessment/resultTypes.d.ts.map +1 -1
  18. package/client/lib/lib/assessmentTypes.d.ts +1 -20
  19. package/client/lib/lib/assessmentTypes.d.ts.map +1 -1
  20. package/client/lib/lib/assessmentTypes.js +1 -20
  21. package/client/lib/services/assessment/AssessmentOrchestrator.d.ts +57 -104
  22. package/client/lib/services/assessment/AssessmentOrchestrator.d.ts.map +1 -1
  23. package/client/lib/services/assessment/AssessmentOrchestrator.js +298 -133
  24. package/client/lib/services/assessment/modules/ErrorHandlingAssessor.d.ts +25 -0
  25. package/client/lib/services/assessment/modules/ErrorHandlingAssessor.d.ts.map +1 -0
  26. package/client/lib/services/assessment/modules/ErrorHandlingAssessor.deprecated.js +1 -1
  27. package/client/lib/services/assessment/modules/ErrorHandlingAssessor.js +564 -0
  28. package/client/lib/services/assessment/modules/SecurityAssessor.d.ts +5 -0
  29. package/client/lib/services/assessment/modules/SecurityAssessor.d.ts.map +1 -1
  30. package/client/lib/services/assessment/modules/SecurityAssessor.js +62 -0
  31. package/client/lib/services/assessment/modules/index.d.ts +1 -1
  32. package/client/lib/services/assessment/modules/index.js +1 -1
  33. package/client/lib/services/assessment/modules/securityTests/SecurityPayloadTester.d.ts +15 -0
  34. package/client/lib/services/assessment/modules/securityTests/SecurityPayloadTester.d.ts.map +1 -1
  35. package/client/lib/services/assessment/modules/securityTests/SecurityPayloadTester.js +72 -0
  36. package/client/lib/services/assessment/modules/securityTests/factory.d.ts +2 -0
  37. package/client/lib/services/assessment/modules/securityTests/factory.d.ts.map +1 -1
  38. package/client/lib/services/assessment/modules/securityTests/factory.js +1 -0
  39. package/client/lib/services/assessment/registry/AssessorDefinitions.js +1 -1
  40. package/client/lib/services/assessment/responseValidatorSchemas.d.ts +12 -12
  41. package/client/package.json +3 -3
  42. package/package.json +4 -2
  43. package/server/package.json +1 -1
  44. package/cli/build/lib/__tests__/zodErrorFormatter.test.js +0 -282
  45. package/client/lib/services/assessment/modules/ProtocolComplianceAssessor.d.ts +0 -109
  46. package/client/lib/services/assessment/modules/ProtocolComplianceAssessor.d.ts.map +0 -1
  47. package/client/lib/services/assessment/modules/ProtocolComplianceAssessor.deprecated.d.ts +0 -109
  48. package/client/lib/services/assessment/modules/ProtocolComplianceAssessor.deprecated.d.ts.map +0 -1
  49. package/client/lib/services/assessment/modules/ProtocolComplianceAssessor.deprecated.js +0 -852
  50. package/client/lib/services/assessment/modules/ProtocolComplianceAssessor.js +0 -852
@@ -64,14 +64,14 @@ export declare const ToolParamSchema: z.ZodObject<{
64
64
  required: z.ZodBoolean;
65
65
  description: z.ZodOptional<z.ZodString>;
66
66
  }, "strip", z.ZodTypeAny, {
67
+ description?: string;
67
68
  name?: string;
68
69
  type?: string;
69
- description?: string;
70
70
  required?: boolean;
71
71
  }, {
72
+ description?: string;
72
73
  name?: string;
73
74
  type?: string;
74
- description?: string;
75
75
  required?: boolean;
76
76
  }>;
77
77
  export type ToolParam = z.infer<typeof ToolParamSchema>;
@@ -123,18 +123,18 @@ export declare const AUPViolationSampleSchema: z.ZodObject<{
123
123
  location: z.ZodEnum<["tool_name", "tool_description", "readme", "source_code"]>;
124
124
  confidence: z.ZodEnum<["high", "medium", "low"]>;
125
125
  }, "strip", z.ZodTypeAny, {
126
- category?: string;
127
126
  confidence?: "high" | "medium" | "low";
127
+ category?: string;
128
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
129
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
128
130
  categoryName?: string;
129
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
130
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
131
131
  matchedText?: string;
132
132
  }, {
133
- category?: string;
134
133
  confidence?: "high" | "medium" | "low";
134
+ category?: string;
135
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
136
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
135
137
  categoryName?: string;
136
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
137
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
138
138
  matchedText?: string;
139
139
  }>;
140
140
  export type AUPViolationSample = z.infer<typeof AUPViolationSampleSchema>;
@@ -150,14 +150,14 @@ export declare const AUPViolationMetricsSchema: z.ZodObject<{
150
150
  }, "strip", z.ZodTypeAny, {
151
151
  high?: number;
152
152
  medium?: number;
153
- critical?: number;
154
153
  total?: number;
154
+ critical?: number;
155
155
  byCategory?: Record<string, number>;
156
156
  }, {
157
157
  high?: number;
158
158
  medium?: number;
159
- critical?: number;
160
159
  total?: number;
160
+ critical?: number;
161
161
  byCategory?: Record<string, number>;
162
162
  }>;
163
163
  export type AUPViolationMetrics = z.infer<typeof AUPViolationMetricsSchema>;
@@ -170,14 +170,14 @@ export declare const AUPScannedLocationsSchema: z.ZodObject<{
170
170
  readme: z.ZodBoolean;
171
171
  sourceCode: z.ZodBoolean;
172
172
  }, "strip", z.ZodTypeAny, {
173
- readme?: boolean;
174
173
  toolNames?: boolean;
175
174
  toolDescriptions?: boolean;
175
+ readme?: boolean;
176
176
  sourceCode?: boolean;
177
177
  }, {
178
- readme?: boolean;
179
178
  toolNames?: boolean;
180
179
  toolDescriptions?: boolean;
180
+ readme?: boolean;
181
181
  sourceCode?: boolean;
182
182
  }>;
183
183
  export type AUPScannedLocations = z.infer<typeof AUPScannedLocationsSchema>;
@@ -212,16 +212,16 @@ export declare const ServerConnectedEventSchema: z.ZodObject<{
212
212
  transport: z.ZodEnum<["stdio", "http", "sse"]>;
213
213
  }, "strip", z.ZodTypeAny, {
214
214
  version?: string;
215
+ transport?: "stdio" | "http" | "sse";
215
216
  serverName?: string;
216
- event?: "server_connected";
217
217
  schemaVersion?: number;
218
- transport?: "http" | "stdio" | "sse";
218
+ event?: "server_connected";
219
219
  }, {
220
220
  version?: string;
221
+ transport?: "stdio" | "http" | "sse";
221
222
  serverName?: string;
222
- event?: "server_connected";
223
223
  schemaVersion?: number;
224
- transport?: "http" | "stdio" | "sse";
224
+ event?: "server_connected";
225
225
  }>;
226
226
  export type ServerConnectedEvent = z.infer<typeof ServerConnectedEventSchema>;
227
227
  /**
@@ -242,14 +242,14 @@ export declare const ToolDiscoveredEventSchema: z.ZodObject<{
242
242
  required: z.ZodBoolean;
243
243
  description: z.ZodOptional<z.ZodString>;
244
244
  }, "strip", z.ZodTypeAny, {
245
+ description?: string;
245
246
  name?: string;
246
247
  type?: string;
247
- description?: string;
248
248
  required?: boolean;
249
249
  }, {
250
+ description?: string;
250
251
  name?: string;
251
252
  type?: string;
252
- description?: string;
253
253
  required?: boolean;
254
254
  }>, "many">;
255
255
  annotations: z.ZodNullable<z.ZodObject<{
@@ -269,8 +269,6 @@ export declare const ToolDiscoveredEventSchema: z.ZodObject<{
269
269
  openWorldHint?: boolean;
270
270
  }>>;
271
271
  }, "strip", z.ZodTypeAny, {
272
- name?: string;
273
- version?: string;
274
272
  description?: string;
275
273
  annotations?: {
276
274
  readOnlyHint?: boolean;
@@ -278,17 +276,17 @@ export declare const ToolDiscoveredEventSchema: z.ZodObject<{
278
276
  idempotentHint?: boolean;
279
277
  openWorldHint?: boolean;
280
278
  };
281
- event?: "tool_discovered";
282
- schemaVersion?: number;
279
+ name?: string;
280
+ version?: string;
283
281
  params?: {
282
+ description?: string;
284
283
  name?: string;
285
284
  type?: string;
286
- description?: string;
287
285
  required?: boolean;
288
286
  }[];
287
+ schemaVersion?: number;
288
+ event?: "tool_discovered";
289
289
  }, {
290
- name?: string;
291
- version?: string;
292
290
  description?: string;
293
291
  annotations?: {
294
292
  readOnlyHint?: boolean;
@@ -296,14 +294,16 @@ export declare const ToolDiscoveredEventSchema: z.ZodObject<{
296
294
  idempotentHint?: boolean;
297
295
  openWorldHint?: boolean;
298
296
  };
299
- event?: "tool_discovered";
300
- schemaVersion?: number;
297
+ name?: string;
298
+ version?: string;
301
299
  params?: {
300
+ description?: string;
302
301
  name?: string;
303
302
  type?: string;
304
- description?: string;
305
303
  required?: boolean;
306
304
  }[];
305
+ schemaVersion?: number;
306
+ event?: "tool_discovered";
307
307
  }>;
308
308
  export type ToolDiscoveredEvent = z.infer<typeof ToolDiscoveredEventSchema>;
309
309
  /**
@@ -320,13 +320,13 @@ export declare const ToolsDiscoveryCompleteEventSchema: z.ZodObject<{
320
320
  }, "strip", z.ZodTypeAny, {
321
321
  version?: string;
322
322
  count?: number;
323
- event?: "tools_discovery_complete";
324
323
  schemaVersion?: number;
324
+ event?: "tools_discovery_complete";
325
325
  }, {
326
326
  version?: string;
327
327
  count?: number;
328
- event?: "tools_discovery_complete";
329
328
  schemaVersion?: number;
329
+ event?: "tools_discovery_complete";
330
330
  }>;
331
331
  export type ToolsDiscoveryCompleteEvent = z.infer<typeof ToolsDiscoveryCompleteEventSchema>;
332
332
  /**
@@ -346,15 +346,15 @@ export declare const ModulesConfiguredEventSchema: z.ZodObject<{
346
346
  version?: string;
347
347
  enabled?: string[];
348
348
  skipped?: string[];
349
- event?: "modules_configured";
350
349
  schemaVersion?: number;
350
+ event?: "modules_configured";
351
351
  reason?: "default" | "skip-modules" | "only-modules";
352
352
  }, {
353
353
  version?: string;
354
354
  enabled?: string[];
355
355
  skipped?: string[];
356
- event?: "modules_configured";
357
356
  schemaVersion?: number;
357
+ event?: "modules_configured";
358
358
  reason?: "default" | "skip-modules" | "only-modules";
359
359
  }>;
360
360
  export type ModulesConfiguredEvent = z.infer<typeof ModulesConfiguredEventSchema>;
@@ -374,15 +374,15 @@ export declare const ModuleStartedEventSchema: z.ZodObject<{
374
374
  }, "strip", z.ZodTypeAny, {
375
375
  version?: string;
376
376
  module?: string;
377
- event?: "module_started";
378
377
  schemaVersion?: number;
378
+ event?: "module_started";
379
379
  estimatedTests?: number;
380
380
  toolCount?: number;
381
381
  }, {
382
382
  version?: string;
383
383
  module?: string;
384
- event?: "module_started";
385
384
  schemaVersion?: number;
385
+ event?: "module_started";
386
386
  estimatedTests?: number;
387
387
  toolCount?: number;
388
388
  }>;
@@ -404,20 +404,20 @@ export declare const TestBatchEventSchema: z.ZodObject<{
404
404
  elapsed: z.ZodNumber;
405
405
  }, "strip", z.ZodTypeAny, {
406
406
  version?: string;
407
- completed?: number;
407
+ total?: number;
408
408
  module?: string;
409
- event?: "test_batch";
410
409
  schemaVersion?: number;
411
- total?: number;
410
+ event?: "test_batch";
411
+ completed?: number;
412
412
  batchSize?: number;
413
413
  elapsed?: number;
414
414
  }, {
415
415
  version?: string;
416
- completed?: number;
416
+ total?: number;
417
417
  module?: string;
418
- event?: "test_batch";
419
418
  schemaVersion?: number;
420
- total?: number;
419
+ event?: "test_batch";
420
+ completed?: number;
421
421
  batchSize?: number;
422
422
  elapsed?: number;
423
423
  }>;
@@ -446,18 +446,18 @@ export declare const ModuleCompleteEventSchema: z.ZodObject<{
446
446
  location: z.ZodEnum<["tool_name", "tool_description", "readme", "source_code"]>;
447
447
  confidence: z.ZodEnum<["high", "medium", "low"]>;
448
448
  }, "strip", z.ZodTypeAny, {
449
- category?: string;
450
449
  confidence?: "high" | "medium" | "low";
450
+ category?: string;
451
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
452
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
451
453
  categoryName?: string;
452
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
453
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
454
454
  matchedText?: string;
455
455
  }, {
456
- category?: string;
457
456
  confidence?: "high" | "medium" | "low";
457
+ category?: string;
458
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
459
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
458
460
  categoryName?: string;
459
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
460
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
461
461
  matchedText?: string;
462
462
  }>, "many">>;
463
463
  samplingNote: z.ZodOptional<z.ZodString>;
@@ -470,14 +470,14 @@ export declare const ModuleCompleteEventSchema: z.ZodObject<{
470
470
  }, "strip", z.ZodTypeAny, {
471
471
  high?: number;
472
472
  medium?: number;
473
- critical?: number;
474
473
  total?: number;
474
+ critical?: number;
475
475
  byCategory?: Record<string, number>;
476
476
  }, {
477
477
  high?: number;
478
478
  medium?: number;
479
- critical?: number;
480
479
  total?: number;
480
+ critical?: number;
481
481
  byCategory?: Record<string, number>;
482
482
  }>>;
483
483
  scannedLocations: z.ZodOptional<z.ZodObject<{
@@ -486,80 +486,80 @@ export declare const ModuleCompleteEventSchema: z.ZodObject<{
486
486
  readme: z.ZodBoolean;
487
487
  sourceCode: z.ZodBoolean;
488
488
  }, "strip", z.ZodTypeAny, {
489
- readme?: boolean;
490
489
  toolNames?: boolean;
491
490
  toolDescriptions?: boolean;
491
+ readme?: boolean;
492
492
  sourceCode?: boolean;
493
493
  }, {
494
- readme?: boolean;
495
494
  toolNames?: boolean;
496
495
  toolDescriptions?: boolean;
496
+ readme?: boolean;
497
497
  sourceCode?: boolean;
498
498
  }>>;
499
499
  highRiskDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
500
500
  }, "strip", z.ZodTypeAny, {
501
501
  version?: string;
502
502
  status?: "PASS" | "FAIL" | "NEED_MORE_INFO";
503
+ duration?: number;
504
+ scannedLocations?: {
505
+ toolNames?: boolean;
506
+ toolDescriptions?: boolean;
507
+ readme?: boolean;
508
+ sourceCode?: boolean;
509
+ };
503
510
  module?: string;
504
511
  score?: number;
512
+ schemaVersion?: number;
505
513
  event?: "module_complete";
506
514
  testsRun?: number;
507
- duration?: number;
508
- schemaVersion?: number;
509
515
  violationsSample?: {
510
- category?: string;
511
516
  confidence?: "high" | "medium" | "low";
517
+ category?: string;
518
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
519
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
512
520
  categoryName?: string;
513
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
514
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
515
521
  matchedText?: string;
516
522
  }[];
517
523
  samplingNote?: string;
518
524
  violationMetrics?: {
519
525
  high?: number;
520
526
  medium?: number;
521
- critical?: number;
522
527
  total?: number;
528
+ critical?: number;
523
529
  byCategory?: Record<string, number>;
524
530
  };
531
+ highRiskDomains?: string[];
532
+ }, {
533
+ version?: string;
534
+ status?: "PASS" | "FAIL" | "NEED_MORE_INFO";
535
+ duration?: number;
525
536
  scannedLocations?: {
526
- readme?: boolean;
527
537
  toolNames?: boolean;
528
538
  toolDescriptions?: boolean;
539
+ readme?: boolean;
529
540
  sourceCode?: boolean;
530
541
  };
531
- highRiskDomains?: string[];
532
- }, {
533
- version?: string;
534
- status?: "PASS" | "FAIL" | "NEED_MORE_INFO";
535
542
  module?: string;
536
543
  score?: number;
544
+ schemaVersion?: number;
537
545
  event?: "module_complete";
538
546
  testsRun?: number;
539
- duration?: number;
540
- schemaVersion?: number;
541
547
  violationsSample?: {
542
- category?: string;
543
548
  confidence?: "high" | "medium" | "low";
549
+ category?: string;
550
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
551
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
544
552
  categoryName?: string;
545
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
546
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
547
553
  matchedText?: string;
548
554
  }[];
549
555
  samplingNote?: string;
550
556
  violationMetrics?: {
551
557
  high?: number;
552
558
  medium?: number;
553
- critical?: number;
554
559
  total?: number;
560
+ critical?: number;
555
561
  byCategory?: Record<string, number>;
556
562
  };
557
- scannedLocations?: {
558
- readme?: boolean;
559
- toolNames?: boolean;
560
- toolDescriptions?: boolean;
561
- sourceCode?: boolean;
562
- };
563
563
  highRiskDomains?: string[];
564
564
  }>;
565
565
  export type ModuleCompleteEvent = z.infer<typeof ModuleCompleteEventSchema>;
@@ -581,25 +581,25 @@ export declare const VulnerabilityFoundEventSchema: z.ZodObject<{
581
581
  requiresReview: z.ZodBoolean;
582
582
  payload: z.ZodOptional<z.ZodString>;
583
583
  }, "strip", z.ZodTypeAny, {
584
- version?: string;
585
584
  evidence?: string;
586
585
  payload?: string;
587
- riskLevel?: "LOW" | "MEDIUM" | "HIGH";
586
+ riskLevel?: "HIGH" | "MEDIUM" | "LOW";
588
587
  confidence?: "high" | "medium" | "low";
589
588
  pattern?: string;
590
- event?: "vulnerability_found";
589
+ version?: string;
591
590
  schemaVersion?: number;
591
+ event?: "vulnerability_found";
592
592
  tool?: string;
593
593
  requiresReview?: boolean;
594
594
  }, {
595
- version?: string;
596
595
  evidence?: string;
597
596
  payload?: string;
598
- riskLevel?: "LOW" | "MEDIUM" | "HIGH";
597
+ riskLevel?: "HIGH" | "MEDIUM" | "LOW";
599
598
  confidence?: "high" | "medium" | "low";
600
599
  pattern?: string;
601
- event?: "vulnerability_found";
600
+ version?: string;
602
601
  schemaVersion?: number;
602
+ event?: "vulnerability_found";
603
603
  tool?: string;
604
604
  requiresReview?: boolean;
605
605
  }>;
@@ -624,25 +624,25 @@ export declare const TestValidityWarningEventSchema: z.ZodObject<{
624
624
  recommendedConfidence: z.ZodEnum<["high", "medium", "low"]>;
625
625
  }, "strip", z.ZodTypeAny, {
626
626
  version?: string;
627
+ detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
627
628
  module?: "security";
628
- event?: "test_validity_warning";
629
629
  schemaVersion?: number;
630
- detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
630
+ event?: "test_validity_warning";
631
631
  identicalResponseCount?: number;
632
632
  totalResponses?: number;
633
633
  percentageIdentical?: number;
634
- warningLevel?: "critical" | "warning";
634
+ warningLevel?: "warning" | "critical";
635
635
  recommendedConfidence?: "high" | "medium" | "low";
636
636
  }, {
637
637
  version?: string;
638
+ detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
638
639
  module?: "security";
639
- event?: "test_validity_warning";
640
640
  schemaVersion?: number;
641
- detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
641
+ event?: "test_validity_warning";
642
642
  identicalResponseCount?: number;
643
643
  totalResponses?: number;
644
644
  percentageIdentical?: number;
645
- warningLevel?: "critical" | "warning";
645
+ warningLevel?: "warning" | "critical";
646
646
  recommendedConfidence?: "high" | "medium" | "low";
647
647
  }>;
648
648
  export type TestValidityWarningEvent = z.infer<typeof TestValidityWarningEventSchema>;
@@ -665,14 +665,14 @@ export declare const AnnotationMissingEventSchema: z.ZodObject<{
665
665
  required: z.ZodBoolean;
666
666
  description: z.ZodOptional<z.ZodString>;
667
667
  }, "strip", z.ZodTypeAny, {
668
+ description?: string;
668
669
  name?: string;
669
670
  type?: string;
670
- description?: string;
671
671
  required?: boolean;
672
672
  }, {
673
+ description?: string;
673
674
  name?: string;
674
675
  type?: string;
675
- description?: string;
676
676
  required?: boolean;
677
677
  }>, "many">;
678
678
  inferredBehavior: z.ZodObject<{
@@ -689,16 +689,13 @@ export declare const AnnotationMissingEventSchema: z.ZodObject<{
689
689
  expectedDestructive?: boolean;
690
690
  }>;
691
691
  }, "strip", z.ZodTypeAny, {
692
- version?: string;
693
692
  description?: string;
694
693
  title?: string;
695
- event?: "annotation_missing";
696
- schemaVersion?: number;
697
- tool?: string;
694
+ version?: string;
698
695
  parameters?: {
696
+ description?: string;
699
697
  name?: string;
700
698
  type?: string;
701
- description?: string;
702
699
  required?: boolean;
703
700
  }[];
704
701
  inferredBehavior?: {
@@ -706,17 +703,17 @@ export declare const AnnotationMissingEventSchema: z.ZodObject<{
706
703
  expectedReadOnly?: boolean;
707
704
  expectedDestructive?: boolean;
708
705
  };
706
+ schemaVersion?: number;
707
+ event?: "annotation_missing";
708
+ tool?: string;
709
709
  }, {
710
- version?: string;
711
710
  description?: string;
712
711
  title?: string;
713
- event?: "annotation_missing";
714
- schemaVersion?: number;
715
- tool?: string;
712
+ version?: string;
716
713
  parameters?: {
714
+ description?: string;
717
715
  name?: string;
718
716
  type?: string;
719
- description?: string;
720
717
  required?: boolean;
721
718
  }[];
722
719
  inferredBehavior?: {
@@ -724,6 +721,9 @@ export declare const AnnotationMissingEventSchema: z.ZodObject<{
724
721
  expectedReadOnly?: boolean;
725
722
  expectedDestructive?: boolean;
726
723
  };
724
+ schemaVersion?: number;
725
+ event?: "annotation_missing";
726
+ tool?: string;
727
727
  }>;
728
728
  export type AnnotationMissingEvent = z.infer<typeof AnnotationMissingEventSchema>;
729
729
  /**
@@ -745,14 +745,14 @@ export declare const AnnotationMisalignedEventSchema: z.ZodObject<{
745
745
  required: z.ZodBoolean;
746
746
  description: z.ZodOptional<z.ZodString>;
747
747
  }, "strip", z.ZodTypeAny, {
748
+ description?: string;
748
749
  name?: string;
749
750
  type?: string;
750
- description?: string;
751
751
  required?: boolean;
752
752
  }, {
753
+ description?: string;
753
754
  name?: string;
754
755
  type?: string;
755
- description?: string;
756
756
  required?: boolean;
757
757
  }>, "many">;
758
758
  field: z.ZodEnum<["readOnlyHint", "destructiveHint"]>;
@@ -761,39 +761,39 @@ export declare const AnnotationMisalignedEventSchema: z.ZodObject<{
761
761
  confidence: z.ZodNumber;
762
762
  reason: z.ZodString;
763
763
  }, "strip", z.ZodTypeAny, {
764
- version?: string;
765
764
  description?: string;
766
765
  confidence?: number;
767
766
  title?: string;
768
- event?: "annotation_misaligned";
769
- schemaVersion?: number;
767
+ version?: string;
770
768
  expected?: boolean;
771
- reason?: string;
772
- tool?: string;
773
769
  parameters?: {
770
+ description?: string;
774
771
  name?: string;
775
772
  type?: string;
776
- description?: string;
777
773
  required?: boolean;
778
774
  }[];
775
+ schemaVersion?: number;
776
+ event?: "annotation_misaligned";
777
+ reason?: string;
778
+ tool?: string;
779
779
  field?: "readOnlyHint" | "destructiveHint";
780
780
  actual?: boolean;
781
781
  }, {
782
- version?: string;
783
782
  description?: string;
784
783
  confidence?: number;
785
784
  title?: string;
786
- event?: "annotation_misaligned";
787
- schemaVersion?: number;
785
+ version?: string;
788
786
  expected?: boolean;
789
- reason?: string;
790
- tool?: string;
791
787
  parameters?: {
788
+ description?: string;
792
789
  name?: string;
793
790
  type?: string;
794
- description?: string;
795
791
  required?: boolean;
796
792
  }[];
793
+ schemaVersion?: number;
794
+ event?: "annotation_misaligned";
795
+ reason?: string;
796
+ tool?: string;
797
797
  field?: "readOnlyHint" | "destructiveHint";
798
798
  actual?: boolean;
799
799
  }>;
@@ -817,14 +817,14 @@ export declare const AnnotationReviewRecommendedEventSchema: z.ZodObject<{
817
817
  required: z.ZodBoolean;
818
818
  description: z.ZodOptional<z.ZodString>;
819
819
  }, "strip", z.ZodTypeAny, {
820
+ description?: string;
820
821
  name?: string;
821
822
  type?: string;
822
- description?: string;
823
823
  required?: boolean;
824
824
  }, {
825
+ description?: string;
825
826
  name?: string;
826
827
  type?: string;
827
- description?: string;
828
828
  required?: boolean;
829
829
  }>, "many">;
830
830
  field: z.ZodEnum<["readOnlyHint", "destructiveHint"]>;
@@ -834,40 +834,40 @@ export declare const AnnotationReviewRecommendedEventSchema: z.ZodObject<{
834
834
  isAmbiguous: z.ZodBoolean;
835
835
  reason: z.ZodString;
836
836
  }, "strip", z.ZodTypeAny, {
837
- version?: string;
838
837
  description?: string;
839
- inferred?: boolean;
840
838
  confidence?: "high" | "medium" | "low";
841
839
  title?: string;
842
- event?: "annotation_review_recommended";
843
- schemaVersion?: number;
844
- reason?: string;
845
- tool?: string;
840
+ version?: string;
841
+ inferred?: boolean;
846
842
  parameters?: {
843
+ description?: string;
847
844
  name?: string;
848
845
  type?: string;
849
- description?: string;
850
846
  required?: boolean;
851
847
  }[];
848
+ schemaVersion?: number;
849
+ event?: "annotation_review_recommended";
850
+ reason?: string;
851
+ tool?: string;
852
852
  field?: "readOnlyHint" | "destructiveHint";
853
853
  actual?: boolean;
854
854
  isAmbiguous?: boolean;
855
855
  }, {
856
- version?: string;
857
856
  description?: string;
858
- inferred?: boolean;
859
857
  confidence?: "high" | "medium" | "low";
860
858
  title?: string;
861
- event?: "annotation_review_recommended";
862
- schemaVersion?: number;
863
- reason?: string;
864
- tool?: string;
859
+ version?: string;
860
+ inferred?: boolean;
865
861
  parameters?: {
862
+ description?: string;
866
863
  name?: string;
867
864
  type?: string;
868
- description?: string;
869
865
  required?: boolean;
870
866
  }[];
867
+ schemaVersion?: number;
868
+ event?: "annotation_review_recommended";
869
+ reason?: string;
870
+ tool?: string;
871
871
  field?: "readOnlyHint" | "destructiveHint";
872
872
  actual?: boolean;
873
873
  isAmbiguous?: boolean;
@@ -902,7 +902,6 @@ export declare const AnnotationAlignedEventSchema: z.ZodObject<{
902
902
  openWorldHint?: boolean;
903
903
  }>>;
904
904
  }, "strip", z.ZodTypeAny, {
905
- version?: string;
906
905
  confidence?: "high" | "medium" | "low";
907
906
  annotations?: {
908
907
  readOnlyHint?: boolean;
@@ -910,11 +909,11 @@ export declare const AnnotationAlignedEventSchema: z.ZodObject<{
910
909
  idempotentHint?: boolean;
911
910
  openWorldHint?: boolean;
912
911
  };
913
- event?: "annotation_aligned";
912
+ version?: string;
914
913
  schemaVersion?: number;
914
+ event?: "annotation_aligned";
915
915
  tool?: string;
916
916
  }, {
917
- version?: string;
918
917
  confidence?: "high" | "medium" | "low";
919
918
  annotations?: {
920
919
  readOnlyHint?: boolean;
@@ -922,8 +921,9 @@ export declare const AnnotationAlignedEventSchema: z.ZodObject<{
922
921
  idempotentHint?: boolean;
923
922
  openWorldHint?: boolean;
924
923
  };
925
- event?: "annotation_aligned";
924
+ version?: string;
926
925
  schemaVersion?: number;
926
+ event?: "annotation_aligned";
927
927
  tool?: string;
928
928
  }>;
929
929
  export type AnnotationAlignedEvent = z.infer<typeof AnnotationAlignedEventSchema>;
@@ -943,19 +943,19 @@ export declare const AssessmentCompleteEventSchema: z.ZodObject<{
943
943
  outputPath: z.ZodString;
944
944
  }, "strip", z.ZodTypeAny, {
945
945
  version?: string;
946
- event?: "assessment_complete";
947
- schemaVersion?: number;
946
+ totalTests?: number;
948
947
  overallStatus?: string;
949
948
  executionTime?: number;
950
- totalTests?: number;
949
+ schemaVersion?: number;
950
+ event?: "assessment_complete";
951
951
  outputPath?: string;
952
952
  }, {
953
953
  version?: string;
954
- event?: "assessment_complete";
955
- schemaVersion?: number;
954
+ totalTests?: number;
956
955
  overallStatus?: string;
957
956
  executionTime?: number;
958
- totalTests?: number;
957
+ schemaVersion?: number;
958
+ event?: "assessment_complete";
959
959
  outputPath?: string;
960
960
  }>;
961
961
  export type AssessmentCompleteEvent = z.infer<typeof AssessmentCompleteEventSchema>;
@@ -978,24 +978,24 @@ export declare const ToolTestCompleteEventSchema: z.ZodObject<{
978
978
  status: z.ZodEnum<["PASS", "FAIL", "ERROR"]>;
979
979
  executionTime: z.ZodNumber;
980
980
  }, "strip", z.ZodTypeAny, {
981
- version?: string;
982
981
  confidence?: "high" | "medium" | "low";
982
+ version?: string;
983
983
  status?: "PASS" | "FAIL" | "ERROR";
984
984
  module?: string;
985
- event?: "tool_test_complete";
986
- schemaVersion?: number;
987
985
  executionTime?: number;
986
+ schemaVersion?: number;
987
+ event?: "tool_test_complete";
988
988
  tool?: string;
989
989
  scenariosPassed?: number;
990
990
  scenariosExecuted?: number;
991
991
  }, {
992
- version?: string;
993
992
  confidence?: "high" | "medium" | "low";
993
+ version?: string;
994
994
  status?: "PASS" | "FAIL" | "ERROR";
995
995
  module?: string;
996
- event?: "tool_test_complete";
997
- schemaVersion?: number;
998
996
  executionTime?: number;
997
+ schemaVersion?: number;
998
+ event?: "tool_test_complete";
999
999
  tool?: string;
1000
1000
  scenariosPassed?: number;
1001
1001
  scenariosExecuted?: number;
@@ -1020,8 +1020,8 @@ export declare const ValidationSummaryEventSchema: z.ZodObject<{
1020
1020
  invalidValues: z.ZodNumber;
1021
1021
  }, "strip", z.ZodTypeAny, {
1022
1022
  version?: string;
1023
- event?: "validation_summary";
1024
1023
  schemaVersion?: number;
1024
+ event?: "validation_summary";
1025
1025
  tool?: string;
1026
1026
  wrongType?: number;
1027
1027
  missingRequired?: number;
@@ -1030,8 +1030,8 @@ export declare const ValidationSummaryEventSchema: z.ZodObject<{
1030
1030
  invalidValues?: number;
1031
1031
  }, {
1032
1032
  version?: string;
1033
- event?: "validation_summary";
1034
1033
  schemaVersion?: number;
1034
+ event?: "validation_summary";
1035
1035
  tool?: string;
1036
1036
  wrongType?: number;
1037
1037
  missingRequired?: number;
@@ -1054,13 +1054,13 @@ export declare const PhaseStartedEventSchema: z.ZodObject<{
1054
1054
  phase: z.ZodString;
1055
1055
  }, "strip", z.ZodTypeAny, {
1056
1056
  version?: string;
1057
- event?: "phase_started";
1058
1057
  schemaVersion?: number;
1058
+ event?: "phase_started";
1059
1059
  phase?: string;
1060
1060
  }, {
1061
1061
  version?: string;
1062
- event?: "phase_started";
1063
1062
  schemaVersion?: number;
1063
+ event?: "phase_started";
1064
1064
  phase?: string;
1065
1065
  }>;
1066
1066
  export type PhaseStartedEvent = z.infer<typeof PhaseStartedEventSchema>;
@@ -1079,15 +1079,15 @@ export declare const PhaseCompleteEventSchema: z.ZodObject<{
1079
1079
  duration: z.ZodNumber;
1080
1080
  }, "strip", z.ZodTypeAny, {
1081
1081
  version?: string;
1082
- event?: "phase_complete";
1083
1082
  duration?: number;
1084
1083
  schemaVersion?: number;
1084
+ event?: "phase_complete";
1085
1085
  phase?: string;
1086
1086
  }, {
1087
1087
  version?: string;
1088
- event?: "phase_complete";
1089
1088
  duration?: number;
1090
1089
  schemaVersion?: number;
1090
+ event?: "phase_complete";
1091
1091
  phase?: string;
1092
1092
  }>;
1093
1093
  export type PhaseCompleteEvent = z.infer<typeof PhaseCompleteEventSchema>;
@@ -1106,16 +1106,16 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1106
1106
  transport: z.ZodEnum<["stdio", "http", "sse"]>;
1107
1107
  }, "strip", z.ZodTypeAny, {
1108
1108
  version?: string;
1109
+ transport?: "stdio" | "http" | "sse";
1109
1110
  serverName?: string;
1110
- event?: "server_connected";
1111
1111
  schemaVersion?: number;
1112
- transport?: "http" | "stdio" | "sse";
1112
+ event?: "server_connected";
1113
1113
  }, {
1114
1114
  version?: string;
1115
+ transport?: "stdio" | "http" | "sse";
1115
1116
  serverName?: string;
1116
- event?: "server_connected";
1117
1117
  schemaVersion?: number;
1118
- transport?: "http" | "stdio" | "sse";
1118
+ event?: "server_connected";
1119
1119
  }>, z.ZodObject<{
1120
1120
  /** Inspector software version (e.g., "1.29.0") */
1121
1121
  version: z.ZodString;
@@ -1131,14 +1131,14 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1131
1131
  required: z.ZodBoolean;
1132
1132
  description: z.ZodOptional<z.ZodString>;
1133
1133
  }, "strip", z.ZodTypeAny, {
1134
+ description?: string;
1134
1135
  name?: string;
1135
1136
  type?: string;
1136
- description?: string;
1137
1137
  required?: boolean;
1138
1138
  }, {
1139
+ description?: string;
1139
1140
  name?: string;
1140
1141
  type?: string;
1141
- description?: string;
1142
1142
  required?: boolean;
1143
1143
  }>, "many">;
1144
1144
  annotations: z.ZodNullable<z.ZodObject<{
@@ -1158,8 +1158,6 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1158
1158
  openWorldHint?: boolean;
1159
1159
  }>>;
1160
1160
  }, "strip", z.ZodTypeAny, {
1161
- name?: string;
1162
- version?: string;
1163
1161
  description?: string;
1164
1162
  annotations?: {
1165
1163
  readOnlyHint?: boolean;
@@ -1167,17 +1165,17 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1167
1165
  idempotentHint?: boolean;
1168
1166
  openWorldHint?: boolean;
1169
1167
  };
1170
- event?: "tool_discovered";
1171
- schemaVersion?: number;
1168
+ name?: string;
1169
+ version?: string;
1172
1170
  params?: {
1171
+ description?: string;
1173
1172
  name?: string;
1174
1173
  type?: string;
1175
- description?: string;
1176
1174
  required?: boolean;
1177
1175
  }[];
1176
+ schemaVersion?: number;
1177
+ event?: "tool_discovered";
1178
1178
  }, {
1179
- name?: string;
1180
- version?: string;
1181
1179
  description?: string;
1182
1180
  annotations?: {
1183
1181
  readOnlyHint?: boolean;
@@ -1185,14 +1183,16 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1185
1183
  idempotentHint?: boolean;
1186
1184
  openWorldHint?: boolean;
1187
1185
  };
1188
- event?: "tool_discovered";
1189
- schemaVersion?: number;
1186
+ name?: string;
1187
+ version?: string;
1190
1188
  params?: {
1189
+ description?: string;
1191
1190
  name?: string;
1192
1191
  type?: string;
1193
- description?: string;
1194
1192
  required?: boolean;
1195
1193
  }[];
1194
+ schemaVersion?: number;
1195
+ event?: "tool_discovered";
1196
1196
  }>, z.ZodObject<{
1197
1197
  /** Inspector software version (e.g., "1.29.0") */
1198
1198
  version: z.ZodString;
@@ -1204,13 +1204,13 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1204
1204
  }, "strip", z.ZodTypeAny, {
1205
1205
  version?: string;
1206
1206
  count?: number;
1207
- event?: "tools_discovery_complete";
1208
1207
  schemaVersion?: number;
1208
+ event?: "tools_discovery_complete";
1209
1209
  }, {
1210
1210
  version?: string;
1211
1211
  count?: number;
1212
- event?: "tools_discovery_complete";
1213
1212
  schemaVersion?: number;
1213
+ event?: "tools_discovery_complete";
1214
1214
  }>, z.ZodObject<{
1215
1215
  /** Inspector software version (e.g., "1.29.0") */
1216
1216
  version: z.ZodString;
@@ -1225,15 +1225,15 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1225
1225
  version?: string;
1226
1226
  enabled?: string[];
1227
1227
  skipped?: string[];
1228
- event?: "modules_configured";
1229
1228
  schemaVersion?: number;
1229
+ event?: "modules_configured";
1230
1230
  reason?: "default" | "skip-modules" | "only-modules";
1231
1231
  }, {
1232
1232
  version?: string;
1233
1233
  enabled?: string[];
1234
1234
  skipped?: string[];
1235
- event?: "modules_configured";
1236
1235
  schemaVersion?: number;
1236
+ event?: "modules_configured";
1237
1237
  reason?: "default" | "skip-modules" | "only-modules";
1238
1238
  }>, z.ZodObject<{
1239
1239
  /** Inspector software version (e.g., "1.29.0") */
@@ -1248,15 +1248,15 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1248
1248
  }, "strip", z.ZodTypeAny, {
1249
1249
  version?: string;
1250
1250
  module?: string;
1251
- event?: "module_started";
1252
1251
  schemaVersion?: number;
1252
+ event?: "module_started";
1253
1253
  estimatedTests?: number;
1254
1254
  toolCount?: number;
1255
1255
  }, {
1256
1256
  version?: string;
1257
1257
  module?: string;
1258
- event?: "module_started";
1259
1258
  schemaVersion?: number;
1259
+ event?: "module_started";
1260
1260
  estimatedTests?: number;
1261
1261
  toolCount?: number;
1262
1262
  }>, z.ZodObject<{
@@ -1273,20 +1273,20 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1273
1273
  elapsed: z.ZodNumber;
1274
1274
  }, "strip", z.ZodTypeAny, {
1275
1275
  version?: string;
1276
- completed?: number;
1276
+ total?: number;
1277
1277
  module?: string;
1278
- event?: "test_batch";
1279
1278
  schemaVersion?: number;
1280
- total?: number;
1279
+ event?: "test_batch";
1280
+ completed?: number;
1281
1281
  batchSize?: number;
1282
1282
  elapsed?: number;
1283
1283
  }, {
1284
1284
  version?: string;
1285
- completed?: number;
1285
+ total?: number;
1286
1286
  module?: string;
1287
- event?: "test_batch";
1288
1287
  schemaVersion?: number;
1289
- total?: number;
1288
+ event?: "test_batch";
1289
+ completed?: number;
1290
1290
  batchSize?: number;
1291
1291
  elapsed?: number;
1292
1292
  }>, z.ZodObject<{
@@ -1309,18 +1309,18 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1309
1309
  location: z.ZodEnum<["tool_name", "tool_description", "readme", "source_code"]>;
1310
1310
  confidence: z.ZodEnum<["high", "medium", "low"]>;
1311
1311
  }, "strip", z.ZodTypeAny, {
1312
- category?: string;
1313
1312
  confidence?: "high" | "medium" | "low";
1313
+ category?: string;
1314
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
1315
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
1314
1316
  categoryName?: string;
1315
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
1316
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
1317
1317
  matchedText?: string;
1318
1318
  }, {
1319
- category?: string;
1320
1319
  confidence?: "high" | "medium" | "low";
1320
+ category?: string;
1321
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
1322
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
1321
1323
  categoryName?: string;
1322
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
1323
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
1324
1324
  matchedText?: string;
1325
1325
  }>, "many">>;
1326
1326
  samplingNote: z.ZodOptional<z.ZodString>;
@@ -1333,14 +1333,14 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1333
1333
  }, "strip", z.ZodTypeAny, {
1334
1334
  high?: number;
1335
1335
  medium?: number;
1336
- critical?: number;
1337
1336
  total?: number;
1337
+ critical?: number;
1338
1338
  byCategory?: Record<string, number>;
1339
1339
  }, {
1340
1340
  high?: number;
1341
1341
  medium?: number;
1342
- critical?: number;
1343
1342
  total?: number;
1343
+ critical?: number;
1344
1344
  byCategory?: Record<string, number>;
1345
1345
  }>>;
1346
1346
  scannedLocations: z.ZodOptional<z.ZodObject<{
@@ -1349,80 +1349,80 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1349
1349
  readme: z.ZodBoolean;
1350
1350
  sourceCode: z.ZodBoolean;
1351
1351
  }, "strip", z.ZodTypeAny, {
1352
- readme?: boolean;
1353
1352
  toolNames?: boolean;
1354
1353
  toolDescriptions?: boolean;
1354
+ readme?: boolean;
1355
1355
  sourceCode?: boolean;
1356
1356
  }, {
1357
- readme?: boolean;
1358
1357
  toolNames?: boolean;
1359
1358
  toolDescriptions?: boolean;
1359
+ readme?: boolean;
1360
1360
  sourceCode?: boolean;
1361
1361
  }>>;
1362
1362
  highRiskDomains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1363
1363
  }, "strip", z.ZodTypeAny, {
1364
1364
  version?: string;
1365
1365
  status?: "PASS" | "FAIL" | "NEED_MORE_INFO";
1366
+ duration?: number;
1367
+ scannedLocations?: {
1368
+ toolNames?: boolean;
1369
+ toolDescriptions?: boolean;
1370
+ readme?: boolean;
1371
+ sourceCode?: boolean;
1372
+ };
1366
1373
  module?: string;
1367
1374
  score?: number;
1375
+ schemaVersion?: number;
1368
1376
  event?: "module_complete";
1369
1377
  testsRun?: number;
1370
- duration?: number;
1371
- schemaVersion?: number;
1372
1378
  violationsSample?: {
1373
- category?: string;
1374
1379
  confidence?: "high" | "medium" | "low";
1380
+ category?: string;
1381
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
1382
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
1375
1383
  categoryName?: string;
1376
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
1377
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
1378
1384
  matchedText?: string;
1379
1385
  }[];
1380
1386
  samplingNote?: string;
1381
1387
  violationMetrics?: {
1382
1388
  high?: number;
1383
1389
  medium?: number;
1384
- critical?: number;
1385
1390
  total?: number;
1391
+ critical?: number;
1386
1392
  byCategory?: Record<string, number>;
1387
1393
  };
1394
+ highRiskDomains?: string[];
1395
+ }, {
1396
+ version?: string;
1397
+ status?: "PASS" | "FAIL" | "NEED_MORE_INFO";
1398
+ duration?: number;
1388
1399
  scannedLocations?: {
1389
- readme?: boolean;
1390
1400
  toolNames?: boolean;
1391
1401
  toolDescriptions?: boolean;
1402
+ readme?: boolean;
1392
1403
  sourceCode?: boolean;
1393
1404
  };
1394
- highRiskDomains?: string[];
1395
- }, {
1396
- version?: string;
1397
- status?: "PASS" | "FAIL" | "NEED_MORE_INFO";
1398
1405
  module?: string;
1399
1406
  score?: number;
1407
+ schemaVersion?: number;
1400
1408
  event?: "module_complete";
1401
1409
  testsRun?: number;
1402
- duration?: number;
1403
- schemaVersion?: number;
1404
1410
  violationsSample?: {
1405
- category?: string;
1406
1411
  confidence?: "high" | "medium" | "low";
1412
+ category?: string;
1413
+ location?: "readme" | "tool_name" | "tool_description" | "source_code";
1414
+ severity?: "HIGH" | "MEDIUM" | "CRITICAL";
1407
1415
  categoryName?: string;
1408
- location?: "tool_name" | "tool_description" | "readme" | "source_code";
1409
- severity?: "MEDIUM" | "HIGH" | "CRITICAL";
1410
1416
  matchedText?: string;
1411
1417
  }[];
1412
1418
  samplingNote?: string;
1413
1419
  violationMetrics?: {
1414
1420
  high?: number;
1415
1421
  medium?: number;
1416
- critical?: number;
1417
1422
  total?: number;
1423
+ critical?: number;
1418
1424
  byCategory?: Record<string, number>;
1419
1425
  };
1420
- scannedLocations?: {
1421
- readme?: boolean;
1422
- toolNames?: boolean;
1423
- toolDescriptions?: boolean;
1424
- sourceCode?: boolean;
1425
- };
1426
1426
  highRiskDomains?: string[];
1427
1427
  }>, z.ZodObject<{
1428
1428
  /** Inspector software version (e.g., "1.29.0") */
@@ -1439,25 +1439,25 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1439
1439
  requiresReview: z.ZodBoolean;
1440
1440
  payload: z.ZodOptional<z.ZodString>;
1441
1441
  }, "strip", z.ZodTypeAny, {
1442
- version?: string;
1443
1442
  evidence?: string;
1444
1443
  payload?: string;
1445
- riskLevel?: "LOW" | "MEDIUM" | "HIGH";
1444
+ riskLevel?: "HIGH" | "MEDIUM" | "LOW";
1446
1445
  confidence?: "high" | "medium" | "low";
1447
1446
  pattern?: string;
1448
- event?: "vulnerability_found";
1447
+ version?: string;
1449
1448
  schemaVersion?: number;
1449
+ event?: "vulnerability_found";
1450
1450
  tool?: string;
1451
1451
  requiresReview?: boolean;
1452
1452
  }, {
1453
- version?: string;
1454
1453
  evidence?: string;
1455
1454
  payload?: string;
1456
- riskLevel?: "LOW" | "MEDIUM" | "HIGH";
1455
+ riskLevel?: "HIGH" | "MEDIUM" | "LOW";
1457
1456
  confidence?: "high" | "medium" | "low";
1458
1457
  pattern?: string;
1459
- event?: "vulnerability_found";
1458
+ version?: string;
1460
1459
  schemaVersion?: number;
1460
+ event?: "vulnerability_found";
1461
1461
  tool?: string;
1462
1462
  requiresReview?: boolean;
1463
1463
  }>, z.ZodObject<{
@@ -1476,25 +1476,25 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1476
1476
  recommendedConfidence: z.ZodEnum<["high", "medium", "low"]>;
1477
1477
  }, "strip", z.ZodTypeAny, {
1478
1478
  version?: string;
1479
+ detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
1479
1480
  module?: "security";
1480
- event?: "test_validity_warning";
1481
1481
  schemaVersion?: number;
1482
- detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
1482
+ event?: "test_validity_warning";
1483
1483
  identicalResponseCount?: number;
1484
1484
  totalResponses?: number;
1485
1485
  percentageIdentical?: number;
1486
- warningLevel?: "critical" | "warning";
1486
+ warningLevel?: "warning" | "critical";
1487
1487
  recommendedConfidence?: "high" | "medium" | "low";
1488
1488
  }, {
1489
1489
  version?: string;
1490
+ detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
1490
1491
  module?: "security";
1491
- event?: "test_validity_warning";
1492
1492
  schemaVersion?: number;
1493
- detectedPattern?: "unknown" | "configuration_error" | "connection_error" | "timeout" | "empty_response" | "generic_error";
1493
+ event?: "test_validity_warning";
1494
1494
  identicalResponseCount?: number;
1495
1495
  totalResponses?: number;
1496
1496
  percentageIdentical?: number;
1497
- warningLevel?: "critical" | "warning";
1497
+ warningLevel?: "warning" | "critical";
1498
1498
  recommendedConfidence?: "high" | "medium" | "low";
1499
1499
  }>, z.ZodObject<{
1500
1500
  /** Inspector software version (e.g., "1.29.0") */
@@ -1512,14 +1512,14 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1512
1512
  required: z.ZodBoolean;
1513
1513
  description: z.ZodOptional<z.ZodString>;
1514
1514
  }, "strip", z.ZodTypeAny, {
1515
+ description?: string;
1515
1516
  name?: string;
1516
1517
  type?: string;
1517
- description?: string;
1518
1518
  required?: boolean;
1519
1519
  }, {
1520
+ description?: string;
1520
1521
  name?: string;
1521
1522
  type?: string;
1522
- description?: string;
1523
1523
  required?: boolean;
1524
1524
  }>, "many">;
1525
1525
  inferredBehavior: z.ZodObject<{
@@ -1536,16 +1536,13 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1536
1536
  expectedDestructive?: boolean;
1537
1537
  }>;
1538
1538
  }, "strip", z.ZodTypeAny, {
1539
- version?: string;
1540
1539
  description?: string;
1541
1540
  title?: string;
1542
- event?: "annotation_missing";
1543
- schemaVersion?: number;
1544
- tool?: string;
1541
+ version?: string;
1545
1542
  parameters?: {
1543
+ description?: string;
1546
1544
  name?: string;
1547
1545
  type?: string;
1548
- description?: string;
1549
1546
  required?: boolean;
1550
1547
  }[];
1551
1548
  inferredBehavior?: {
@@ -1553,17 +1550,17 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1553
1550
  expectedReadOnly?: boolean;
1554
1551
  expectedDestructive?: boolean;
1555
1552
  };
1553
+ schemaVersion?: number;
1554
+ event?: "annotation_missing";
1555
+ tool?: string;
1556
1556
  }, {
1557
- version?: string;
1558
1557
  description?: string;
1559
1558
  title?: string;
1560
- event?: "annotation_missing";
1561
- schemaVersion?: number;
1562
- tool?: string;
1559
+ version?: string;
1563
1560
  parameters?: {
1561
+ description?: string;
1564
1562
  name?: string;
1565
1563
  type?: string;
1566
- description?: string;
1567
1564
  required?: boolean;
1568
1565
  }[];
1569
1566
  inferredBehavior?: {
@@ -1571,6 +1568,9 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1571
1568
  expectedReadOnly?: boolean;
1572
1569
  expectedDestructive?: boolean;
1573
1570
  };
1571
+ schemaVersion?: number;
1572
+ event?: "annotation_missing";
1573
+ tool?: string;
1574
1574
  }>, z.ZodObject<{
1575
1575
  /** Inspector software version (e.g., "1.29.0") */
1576
1576
  version: z.ZodString;
@@ -1587,14 +1587,14 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1587
1587
  required: z.ZodBoolean;
1588
1588
  description: z.ZodOptional<z.ZodString>;
1589
1589
  }, "strip", z.ZodTypeAny, {
1590
+ description?: string;
1590
1591
  name?: string;
1591
1592
  type?: string;
1592
- description?: string;
1593
1593
  required?: boolean;
1594
1594
  }, {
1595
+ description?: string;
1595
1596
  name?: string;
1596
1597
  type?: string;
1597
- description?: string;
1598
1598
  required?: boolean;
1599
1599
  }>, "many">;
1600
1600
  field: z.ZodEnum<["readOnlyHint", "destructiveHint"]>;
@@ -1603,39 +1603,39 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1603
1603
  confidence: z.ZodNumber;
1604
1604
  reason: z.ZodString;
1605
1605
  }, "strip", z.ZodTypeAny, {
1606
- version?: string;
1607
1606
  description?: string;
1608
1607
  confidence?: number;
1609
1608
  title?: string;
1610
- event?: "annotation_misaligned";
1611
- schemaVersion?: number;
1609
+ version?: string;
1612
1610
  expected?: boolean;
1613
- reason?: string;
1614
- tool?: string;
1615
1611
  parameters?: {
1612
+ description?: string;
1616
1613
  name?: string;
1617
1614
  type?: string;
1618
- description?: string;
1619
1615
  required?: boolean;
1620
1616
  }[];
1617
+ schemaVersion?: number;
1618
+ event?: "annotation_misaligned";
1619
+ reason?: string;
1620
+ tool?: string;
1621
1621
  field?: "readOnlyHint" | "destructiveHint";
1622
1622
  actual?: boolean;
1623
1623
  }, {
1624
- version?: string;
1625
1624
  description?: string;
1626
1625
  confidence?: number;
1627
1626
  title?: string;
1628
- event?: "annotation_misaligned";
1629
- schemaVersion?: number;
1627
+ version?: string;
1630
1628
  expected?: boolean;
1631
- reason?: string;
1632
- tool?: string;
1633
1629
  parameters?: {
1630
+ description?: string;
1634
1631
  name?: string;
1635
1632
  type?: string;
1636
- description?: string;
1637
1633
  required?: boolean;
1638
1634
  }[];
1635
+ schemaVersion?: number;
1636
+ event?: "annotation_misaligned";
1637
+ reason?: string;
1638
+ tool?: string;
1639
1639
  field?: "readOnlyHint" | "destructiveHint";
1640
1640
  actual?: boolean;
1641
1641
  }>, z.ZodObject<{
@@ -1654,14 +1654,14 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1654
1654
  required: z.ZodBoolean;
1655
1655
  description: z.ZodOptional<z.ZodString>;
1656
1656
  }, "strip", z.ZodTypeAny, {
1657
+ description?: string;
1657
1658
  name?: string;
1658
1659
  type?: string;
1659
- description?: string;
1660
1660
  required?: boolean;
1661
1661
  }, {
1662
+ description?: string;
1662
1663
  name?: string;
1663
1664
  type?: string;
1664
- description?: string;
1665
1665
  required?: boolean;
1666
1666
  }>, "many">;
1667
1667
  field: z.ZodEnum<["readOnlyHint", "destructiveHint"]>;
@@ -1671,40 +1671,40 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1671
1671
  isAmbiguous: z.ZodBoolean;
1672
1672
  reason: z.ZodString;
1673
1673
  }, "strip", z.ZodTypeAny, {
1674
- version?: string;
1675
1674
  description?: string;
1676
- inferred?: boolean;
1677
1675
  confidence?: "high" | "medium" | "low";
1678
1676
  title?: string;
1679
- event?: "annotation_review_recommended";
1680
- schemaVersion?: number;
1681
- reason?: string;
1682
- tool?: string;
1677
+ version?: string;
1678
+ inferred?: boolean;
1683
1679
  parameters?: {
1680
+ description?: string;
1684
1681
  name?: string;
1685
1682
  type?: string;
1686
- description?: string;
1687
1683
  required?: boolean;
1688
1684
  }[];
1685
+ schemaVersion?: number;
1686
+ event?: "annotation_review_recommended";
1687
+ reason?: string;
1688
+ tool?: string;
1689
1689
  field?: "readOnlyHint" | "destructiveHint";
1690
1690
  actual?: boolean;
1691
1691
  isAmbiguous?: boolean;
1692
1692
  }, {
1693
- version?: string;
1694
1693
  description?: string;
1695
- inferred?: boolean;
1696
1694
  confidence?: "high" | "medium" | "low";
1697
1695
  title?: string;
1698
- event?: "annotation_review_recommended";
1699
- schemaVersion?: number;
1700
- reason?: string;
1701
- tool?: string;
1696
+ version?: string;
1697
+ inferred?: boolean;
1702
1698
  parameters?: {
1699
+ description?: string;
1703
1700
  name?: string;
1704
1701
  type?: string;
1705
- description?: string;
1706
1702
  required?: boolean;
1707
1703
  }[];
1704
+ schemaVersion?: number;
1705
+ event?: "annotation_review_recommended";
1706
+ reason?: string;
1707
+ tool?: string;
1708
1708
  field?: "readOnlyHint" | "destructiveHint";
1709
1709
  actual?: boolean;
1710
1710
  isAmbiguous?: boolean;
@@ -1734,7 +1734,6 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1734
1734
  openWorldHint?: boolean;
1735
1735
  }>>;
1736
1736
  }, "strip", z.ZodTypeAny, {
1737
- version?: string;
1738
1737
  confidence?: "high" | "medium" | "low";
1739
1738
  annotations?: {
1740
1739
  readOnlyHint?: boolean;
@@ -1742,11 +1741,11 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1742
1741
  idempotentHint?: boolean;
1743
1742
  openWorldHint?: boolean;
1744
1743
  };
1745
- event?: "annotation_aligned";
1744
+ version?: string;
1746
1745
  schemaVersion?: number;
1746
+ event?: "annotation_aligned";
1747
1747
  tool?: string;
1748
1748
  }, {
1749
- version?: string;
1750
1749
  confidence?: "high" | "medium" | "low";
1751
1750
  annotations?: {
1752
1751
  readOnlyHint?: boolean;
@@ -1754,8 +1753,9 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1754
1753
  idempotentHint?: boolean;
1755
1754
  openWorldHint?: boolean;
1756
1755
  };
1757
- event?: "annotation_aligned";
1756
+ version?: string;
1758
1757
  schemaVersion?: number;
1758
+ event?: "annotation_aligned";
1759
1759
  tool?: string;
1760
1760
  }>, z.ZodObject<{
1761
1761
  /** Inspector software version (e.g., "1.29.0") */
@@ -1770,19 +1770,19 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1770
1770
  outputPath: z.ZodString;
1771
1771
  }, "strip", z.ZodTypeAny, {
1772
1772
  version?: string;
1773
- event?: "assessment_complete";
1774
- schemaVersion?: number;
1773
+ totalTests?: number;
1775
1774
  overallStatus?: string;
1776
1775
  executionTime?: number;
1777
- totalTests?: number;
1776
+ schemaVersion?: number;
1777
+ event?: "assessment_complete";
1778
1778
  outputPath?: string;
1779
1779
  }, {
1780
1780
  version?: string;
1781
- event?: "assessment_complete";
1782
- schemaVersion?: number;
1781
+ totalTests?: number;
1783
1782
  overallStatus?: string;
1784
1783
  executionTime?: number;
1785
- totalTests?: number;
1784
+ schemaVersion?: number;
1785
+ event?: "assessment_complete";
1786
1786
  outputPath?: string;
1787
1787
  }>, z.ZodObject<{
1788
1788
  /** Inspector software version (e.g., "1.29.0") */
@@ -1799,24 +1799,24 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1799
1799
  status: z.ZodEnum<["PASS", "FAIL", "ERROR"]>;
1800
1800
  executionTime: z.ZodNumber;
1801
1801
  }, "strip", z.ZodTypeAny, {
1802
- version?: string;
1803
1802
  confidence?: "high" | "medium" | "low";
1803
+ version?: string;
1804
1804
  status?: "PASS" | "FAIL" | "ERROR";
1805
1805
  module?: string;
1806
- event?: "tool_test_complete";
1807
- schemaVersion?: number;
1808
1806
  executionTime?: number;
1807
+ schemaVersion?: number;
1808
+ event?: "tool_test_complete";
1809
1809
  tool?: string;
1810
1810
  scenariosPassed?: number;
1811
1811
  scenariosExecuted?: number;
1812
1812
  }, {
1813
- version?: string;
1814
1813
  confidence?: "high" | "medium" | "low";
1814
+ version?: string;
1815
1815
  status?: "PASS" | "FAIL" | "ERROR";
1816
1816
  module?: string;
1817
- event?: "tool_test_complete";
1818
- schemaVersion?: number;
1819
1817
  executionTime?: number;
1818
+ schemaVersion?: number;
1819
+ event?: "tool_test_complete";
1820
1820
  tool?: string;
1821
1821
  scenariosPassed?: number;
1822
1822
  scenariosExecuted?: number;
@@ -1835,8 +1835,8 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1835
1835
  invalidValues: z.ZodNumber;
1836
1836
  }, "strip", z.ZodTypeAny, {
1837
1837
  version?: string;
1838
- event?: "validation_summary";
1839
1838
  schemaVersion?: number;
1839
+ event?: "validation_summary";
1840
1840
  tool?: string;
1841
1841
  wrongType?: number;
1842
1842
  missingRequired?: number;
@@ -1845,8 +1845,8 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1845
1845
  invalidValues?: number;
1846
1846
  }, {
1847
1847
  version?: string;
1848
- event?: "validation_summary";
1849
1848
  schemaVersion?: number;
1849
+ event?: "validation_summary";
1850
1850
  tool?: string;
1851
1851
  wrongType?: number;
1852
1852
  missingRequired?: number;
@@ -1863,13 +1863,13 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1863
1863
  phase: z.ZodString;
1864
1864
  }, "strip", z.ZodTypeAny, {
1865
1865
  version?: string;
1866
- event?: "phase_started";
1867
1866
  schemaVersion?: number;
1867
+ event?: "phase_started";
1868
1868
  phase?: string;
1869
1869
  }, {
1870
1870
  version?: string;
1871
- event?: "phase_started";
1872
1871
  schemaVersion?: number;
1872
+ event?: "phase_started";
1873
1873
  phase?: string;
1874
1874
  }>, z.ZodObject<{
1875
1875
  /** Inspector software version (e.g., "1.29.0") */
@@ -1882,15 +1882,15 @@ export declare const JSONLEventSchema: z.ZodUnion<[z.ZodObject<{
1882
1882
  duration: z.ZodNumber;
1883
1883
  }, "strip", z.ZodTypeAny, {
1884
1884
  version?: string;
1885
- event?: "phase_complete";
1886
1885
  duration?: number;
1887
1886
  schemaVersion?: number;
1887
+ event?: "phase_complete";
1888
1888
  phase?: string;
1889
1889
  }, {
1890
1890
  version?: string;
1891
- event?: "phase_complete";
1892
1891
  duration?: number;
1893
1892
  schemaVersion?: number;
1893
+ event?: "phase_complete";
1894
1894
  phase?: string;
1895
1895
  }>]>;
1896
1896
  /**