@bryan-thompson/inspector-assessment-client 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 (38) hide show
  1. package/dist/assets/{OAuthCallback-BS8-A1sU.js → OAuthCallback-Chi58kRc.js} +1 -1
  2. package/dist/assets/{OAuthDebugCallback-025_TM2i.js → OAuthDebugCallback-BluD_Wxg.js} +1 -1
  3. package/dist/assets/{index-DEhlIjy-.js → index-KW2LwGdp.js} +4 -4
  4. package/dist/index.html +1 -1
  5. package/lib/lib/assessment/configSchemas.d.ts +64 -64
  6. package/lib/lib/assessment/jsonlEventSchemas.d.ts +286 -286
  7. package/lib/lib/assessment/resultTypes.d.ts +10 -0
  8. package/lib/lib/assessment/resultTypes.d.ts.map +1 -1
  9. package/lib/lib/assessmentTypes.d.ts +1 -20
  10. package/lib/lib/assessmentTypes.d.ts.map +1 -1
  11. package/lib/lib/assessmentTypes.js +1 -20
  12. package/lib/services/assessment/AssessmentOrchestrator.d.ts +57 -104
  13. package/lib/services/assessment/AssessmentOrchestrator.d.ts.map +1 -1
  14. package/lib/services/assessment/AssessmentOrchestrator.js +298 -133
  15. package/lib/services/assessment/modules/ErrorHandlingAssessor.d.ts +25 -0
  16. package/lib/services/assessment/modules/ErrorHandlingAssessor.d.ts.map +1 -0
  17. package/lib/services/assessment/modules/ErrorHandlingAssessor.deprecated.js +1 -1
  18. package/lib/services/assessment/modules/ErrorHandlingAssessor.js +564 -0
  19. package/lib/services/assessment/modules/SecurityAssessor.d.ts +5 -0
  20. package/lib/services/assessment/modules/SecurityAssessor.d.ts.map +1 -1
  21. package/lib/services/assessment/modules/SecurityAssessor.js +62 -0
  22. package/lib/services/assessment/modules/index.d.ts +1 -1
  23. package/lib/services/assessment/modules/index.js +1 -1
  24. package/lib/services/assessment/modules/securityTests/SecurityPayloadTester.d.ts +15 -0
  25. package/lib/services/assessment/modules/securityTests/SecurityPayloadTester.d.ts.map +1 -1
  26. package/lib/services/assessment/modules/securityTests/SecurityPayloadTester.js +72 -0
  27. package/lib/services/assessment/modules/securityTests/factory.d.ts +2 -0
  28. package/lib/services/assessment/modules/securityTests/factory.d.ts.map +1 -1
  29. package/lib/services/assessment/modules/securityTests/factory.js +1 -0
  30. package/lib/services/assessment/registry/AssessorDefinitions.js +1 -1
  31. package/lib/services/assessment/responseValidatorSchemas.d.ts +12 -12
  32. package/package.json +3 -3
  33. package/lib/services/assessment/modules/ProtocolComplianceAssessor.d.ts +0 -109
  34. package/lib/services/assessment/modules/ProtocolComplianceAssessor.d.ts.map +0 -1
  35. package/lib/services/assessment/modules/ProtocolComplianceAssessor.deprecated.d.ts +0 -109
  36. package/lib/services/assessment/modules/ProtocolComplianceAssessor.deprecated.d.ts.map +0 -1
  37. package/lib/services/assessment/modules/ProtocolComplianceAssessor.deprecated.js +0 -852
  38. package/lib/services/assessment/modules/ProtocolComplianceAssessor.js +0 -852
@@ -1,4 +1,4 @@
1
- import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-DEhlIjy-.js";
1
+ import { u as useToast, r as reactExports, j as jsxRuntimeExports, p as parseOAuthCallbackParams, g as generateOAuthErrorDescription, S as SESSION_KEYS, I as InspectorOAuthClientProvider, a as auth } from "./index-KW2LwGdp.js";
2
2
  const OAuthCallback = ({ onConnect }) => {
3
3
  const { toast } = useToast();
4
4
  const hasProcessedRef = reactExports.useRef(false);
@@ -1,4 +1,4 @@
1
- import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-DEhlIjy-.js";
1
+ import { r as reactExports, S as SESSION_KEYS, p as parseOAuthCallbackParams, j as jsxRuntimeExports, g as generateOAuthErrorDescription } from "./index-KW2LwGdp.js";
2
2
  const OAuthDebugCallback = ({ onConnect }) => {
3
3
  reactExports.useEffect(() => {
4
4
  let isProcessed = false;
@@ -16373,7 +16373,7 @@ object({
16373
16373
  token_type_hint: string().optional()
16374
16374
  }).strip();
16375
16375
  const name = "@bryan-thompson/inspector-assessment-client";
16376
- const version$1 = "1.43.2";
16376
+ const version$1 = "1.43.4";
16377
16377
  const packageJson = {
16378
16378
  name,
16379
16379
  version: version$1
@@ -49456,7 +49456,7 @@ const useTheme = () => {
49456
49456
  [theme, setThemeWithSideEffect]
49457
49457
  );
49458
49458
  };
49459
- const version = "1.43.2";
49459
+ const version = "1.43.4";
49460
49460
  var [createTooltipContext] = createContextScope("Tooltip", [
49461
49461
  createPopperScope
49462
49462
  ]);
@@ -52799,13 +52799,13 @@ const App = () => {
52799
52799
  };
52800
52800
  if (window.location.pathname === "/oauth/callback") {
52801
52801
  const OAuthCallback = React.lazy(
52802
- () => __vitePreload(() => import("./OAuthCallback-BS8-A1sU.js"), true ? [] : void 0)
52802
+ () => __vitePreload(() => import("./OAuthCallback-Chi58kRc.js"), true ? [] : void 0)
52803
52803
  );
52804
52804
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthCallback, { onConnect: onOAuthConnect }) });
52805
52805
  }
52806
52806
  if (window.location.pathname === "/oauth/callback/debug") {
52807
52807
  const OAuthDebugCallback = React.lazy(
52808
- () => __vitePreload(() => import("./OAuthDebugCallback-025_TM2i.js"), true ? [] : void 0)
52808
+ () => __vitePreload(() => import("./OAuthDebugCallback-BluD_Wxg.js"), true ? [] : void 0)
52809
52809
  );
52810
52810
  return /* @__PURE__ */ jsxRuntimeExports.jsx(reactExports.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(OAuthDebugCallback, { onConnect: onOAuthDebugConnect }) });
52811
52811
  }
package/dist/index.html CHANGED
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/mcp.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>MCP Inspector</title>
8
- <script type="module" crossorigin src="/assets/index-DEhlIjy-.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-KW2LwGdp.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/index-BoUA5OL1.css">
10
10
  </head>
11
11
  <body>
@@ -18,12 +18,12 @@ export declare const LoggingConfigSchema: z.ZodObject<{
18
18
  format: z.ZodOptional<z.ZodEnum<["text", "json"]>>;
19
19
  includeTimestamp: z.ZodOptional<z.ZodBoolean>;
20
20
  }, "strip", z.ZodTypeAny, {
21
- level?: "silent" | "error" | "warn" | "info" | "debug";
22
21
  format?: "text" | "json";
22
+ level?: "silent" | "error" | "warn" | "info" | "debug";
23
23
  includeTimestamp?: boolean;
24
24
  }, {
25
- level?: "silent" | "error" | "warn" | "info" | "debug";
26
25
  format?: "text" | "json";
26
+ level?: "silent" | "error" | "warn" | "info" | "debug";
27
27
  includeTimestamp?: boolean;
28
28
  }>;
29
29
  /**
@@ -100,73 +100,73 @@ export declare const ClaudeCodeConfigSchema: z.ZodEffects<z.ZodObject<{
100
100
  headers?: Record<string, string>;
101
101
  }>>;
102
102
  }, "strip", z.ZodTypeAny, {
103
- timeout?: number;
104
103
  features?: {
105
104
  intelligentTestGeneration?: boolean;
106
105
  aupSemanticAnalysis?: boolean;
107
106
  annotationInference?: boolean;
108
107
  documentationQuality?: boolean;
109
108
  };
109
+ timeout?: number;
110
+ transport?: "http" | "cli";
110
111
  enabled?: boolean;
111
- transport?: "cli" | "http";
112
+ workingDir?: string;
112
113
  maxRetries?: number;
113
114
  httpConfig?: {
114
115
  baseUrl?: string;
115
116
  apiKey?: string;
116
117
  headers?: Record<string, string>;
117
118
  };
118
- workingDir?: string;
119
119
  }, {
120
- timeout?: number;
121
120
  features?: {
122
121
  intelligentTestGeneration?: boolean;
123
122
  aupSemanticAnalysis?: boolean;
124
123
  annotationInference?: boolean;
125
124
  documentationQuality?: boolean;
126
125
  };
126
+ timeout?: number;
127
+ transport?: "http" | "cli";
127
128
  enabled?: boolean;
128
- transport?: "cli" | "http";
129
+ workingDir?: string;
129
130
  maxRetries?: number;
130
131
  httpConfig?: {
131
132
  baseUrl?: string;
132
133
  apiKey?: string;
133
134
  headers?: Record<string, string>;
134
135
  };
135
- workingDir?: string;
136
136
  }>, {
137
- timeout?: number;
138
137
  features?: {
139
138
  intelligentTestGeneration?: boolean;
140
139
  aupSemanticAnalysis?: boolean;
141
140
  annotationInference?: boolean;
142
141
  documentationQuality?: boolean;
143
142
  };
143
+ timeout?: number;
144
+ transport?: "http" | "cli";
144
145
  enabled?: boolean;
145
- transport?: "cli" | "http";
146
+ workingDir?: string;
146
147
  maxRetries?: number;
147
148
  httpConfig?: {
148
149
  baseUrl?: string;
149
150
  apiKey?: string;
150
151
  headers?: Record<string, string>;
151
152
  };
152
- workingDir?: string;
153
153
  }, {
154
- timeout?: number;
155
154
  features?: {
156
155
  intelligentTestGeneration?: boolean;
157
156
  aupSemanticAnalysis?: boolean;
158
157
  annotationInference?: boolean;
159
158
  documentationQuality?: boolean;
160
159
  };
160
+ timeout?: number;
161
+ transport?: "http" | "cli";
161
162
  enabled?: boolean;
162
- transport?: "cli" | "http";
163
+ workingDir?: string;
163
164
  maxRetries?: number;
164
165
  httpConfig?: {
165
166
  baseUrl?: string;
166
167
  apiKey?: string;
167
168
  headers?: Record<string, string>;
168
169
  };
169
- workingDir?: string;
170
170
  }>;
171
171
  /**
172
172
  * Schema for assessment categories flags.
@@ -305,73 +305,73 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
305
305
  headers?: Record<string, string>;
306
306
  }>>;
307
307
  }, "strip", z.ZodTypeAny, {
308
- timeout?: number;
309
308
  features?: {
310
309
  intelligentTestGeneration?: boolean;
311
310
  aupSemanticAnalysis?: boolean;
312
311
  annotationInference?: boolean;
313
312
  documentationQuality?: boolean;
314
313
  };
314
+ timeout?: number;
315
+ transport?: "http" | "cli";
315
316
  enabled?: boolean;
316
- transport?: "cli" | "http";
317
+ workingDir?: string;
317
318
  maxRetries?: number;
318
319
  httpConfig?: {
319
320
  baseUrl?: string;
320
321
  apiKey?: string;
321
322
  headers?: Record<string, string>;
322
323
  };
323
- workingDir?: string;
324
324
  }, {
325
- timeout?: number;
326
325
  features?: {
327
326
  intelligentTestGeneration?: boolean;
328
327
  aupSemanticAnalysis?: boolean;
329
328
  annotationInference?: boolean;
330
329
  documentationQuality?: boolean;
331
330
  };
331
+ timeout?: number;
332
+ transport?: "http" | "cli";
332
333
  enabled?: boolean;
333
- transport?: "cli" | "http";
334
+ workingDir?: string;
334
335
  maxRetries?: number;
335
336
  httpConfig?: {
336
337
  baseUrl?: string;
337
338
  apiKey?: string;
338
339
  headers?: Record<string, string>;
339
340
  };
340
- workingDir?: string;
341
341
  }>, {
342
- timeout?: number;
343
342
  features?: {
344
343
  intelligentTestGeneration?: boolean;
345
344
  aupSemanticAnalysis?: boolean;
346
345
  annotationInference?: boolean;
347
346
  documentationQuality?: boolean;
348
347
  };
348
+ timeout?: number;
349
+ transport?: "http" | "cli";
349
350
  enabled?: boolean;
350
- transport?: "cli" | "http";
351
+ workingDir?: string;
351
352
  maxRetries?: number;
352
353
  httpConfig?: {
353
354
  baseUrl?: string;
354
355
  apiKey?: string;
355
356
  headers?: Record<string, string>;
356
357
  };
357
- workingDir?: string;
358
358
  }, {
359
- timeout?: number;
360
359
  features?: {
361
360
  intelligentTestGeneration?: boolean;
362
361
  aupSemanticAnalysis?: boolean;
363
362
  annotationInference?: boolean;
364
363
  documentationQuality?: boolean;
365
364
  };
365
+ timeout?: number;
366
+ transport?: "http" | "cli";
366
367
  enabled?: boolean;
367
- transport?: "cli" | "http";
368
+ workingDir?: string;
368
369
  maxRetries?: number;
369
370
  httpConfig?: {
370
371
  baseUrl?: string;
371
372
  apiKey?: string;
372
373
  headers?: Record<string, string>;
373
374
  };
374
- workingDir?: string;
375
375
  }>>;
376
376
  temporalInvocations: z.ZodOptional<z.ZodNumber>;
377
377
  logging: z.ZodOptional<z.ZodObject<{
@@ -379,12 +379,12 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
379
379
  format: z.ZodOptional<z.ZodEnum<["text", "json"]>>;
380
380
  includeTimestamp: z.ZodOptional<z.ZodBoolean>;
381
381
  }, "strip", z.ZodTypeAny, {
382
- level?: "silent" | "error" | "warn" | "info" | "debug";
383
382
  format?: "text" | "json";
383
+ level?: "silent" | "error" | "warn" | "info" | "debug";
384
384
  includeTimestamp?: boolean;
385
385
  }, {
386
- level?: "silent" | "error" | "warn" | "info" | "debug";
387
386
  format?: "text" | "json";
387
+ level?: "silent" | "error" | "warn" | "info" | "debug";
388
388
  includeTimestamp?: boolean;
389
389
  }>>;
390
390
  assessmentCategories: z.ZodOptional<z.ZodObject<{
@@ -457,7 +457,6 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
457
457
  dependencyVulnerability?: boolean;
458
458
  }>>;
459
459
  }, "strip", z.ZodTypeAny, {
460
- mcpProtocolVersion?: string;
461
460
  assessmentCategories?: {
462
461
  functionality?: boolean;
463
462
  security?: boolean;
@@ -481,6 +480,12 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
481
480
  fileModularization?: boolean;
482
481
  dependencyVulnerability?: boolean;
483
482
  };
483
+ logging?: {
484
+ format?: "text" | "json";
485
+ level?: "silent" | "error" | "warn" | "info" | "debug";
486
+ includeTimestamp?: boolean;
487
+ };
488
+ mcpProtocolVersion?: string;
484
489
  configVersion?: number;
485
490
  testTimeout?: number;
486
491
  securityTestTimeout?: number;
@@ -500,31 +505,25 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
500
505
  enableSourceCodeAnalysis?: boolean;
501
506
  patternConfigPath?: string;
502
507
  claudeCode?: {
503
- timeout?: number;
504
508
  features?: {
505
509
  intelligentTestGeneration?: boolean;
506
510
  aupSemanticAnalysis?: boolean;
507
511
  annotationInference?: boolean;
508
512
  documentationQuality?: boolean;
509
513
  };
514
+ timeout?: number;
515
+ transport?: "http" | "cli";
510
516
  enabled?: boolean;
511
- transport?: "cli" | "http";
517
+ workingDir?: string;
512
518
  maxRetries?: number;
513
519
  httpConfig?: {
514
520
  baseUrl?: string;
515
521
  apiKey?: string;
516
522
  headers?: Record<string, string>;
517
523
  };
518
- workingDir?: string;
519
524
  };
520
525
  temporalInvocations?: number;
521
- logging?: {
522
- level?: "silent" | "error" | "warn" | "info" | "debug";
523
- format?: "text" | "json";
524
- includeTimestamp?: boolean;
525
- };
526
526
  }, {
527
- mcpProtocolVersion?: string;
528
527
  assessmentCategories?: {
529
528
  functionality?: boolean;
530
529
  security?: boolean;
@@ -548,6 +547,12 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
548
547
  fileModularization?: boolean;
549
548
  dependencyVulnerability?: boolean;
550
549
  };
550
+ logging?: {
551
+ format?: "text" | "json";
552
+ level?: "silent" | "error" | "warn" | "info" | "debug";
553
+ includeTimestamp?: boolean;
554
+ };
555
+ mcpProtocolVersion?: string;
551
556
  configVersion?: number;
552
557
  testTimeout?: number;
553
558
  securityTestTimeout?: number;
@@ -567,29 +572,24 @@ export declare const AssessmentConfigurationSchema: z.ZodObject<{
567
572
  enableSourceCodeAnalysis?: boolean;
568
573
  patternConfigPath?: string;
569
574
  claudeCode?: {
570
- timeout?: number;
571
575
  features?: {
572
576
  intelligentTestGeneration?: boolean;
573
577
  aupSemanticAnalysis?: boolean;
574
578
  annotationInference?: boolean;
575
579
  documentationQuality?: boolean;
576
580
  };
581
+ timeout?: number;
582
+ transport?: "http" | "cli";
577
583
  enabled?: boolean;
578
- transport?: "cli" | "http";
584
+ workingDir?: string;
579
585
  maxRetries?: number;
580
586
  httpConfig?: {
581
587
  baseUrl?: string;
582
588
  apiKey?: string;
583
589
  headers?: Record<string, string>;
584
590
  };
585
- workingDir?: string;
586
591
  };
587
592
  temporalInvocations?: number;
588
- logging?: {
589
- level?: "silent" | "error" | "warn" | "info" | "debug";
590
- format?: "text" | "json";
591
- includeTimestamp?: boolean;
592
- };
593
593
  }>;
594
594
  /**
595
595
  * Inferred type from LoggingConfigSchema.
@@ -622,7 +622,6 @@ export declare function parseAssessmentConfig(config: unknown): AssessmentConfig
622
622
  * @returns SafeParseResult with success status and data/error
623
623
  */
624
624
  export declare function safeParseAssessmentConfig(config: unknown): z.SafeParseReturnType<{
625
- mcpProtocolVersion?: string;
626
625
  assessmentCategories?: {
627
626
  functionality?: boolean;
628
627
  security?: boolean;
@@ -646,6 +645,12 @@ export declare function safeParseAssessmentConfig(config: unknown): z.SafeParseR
646
645
  fileModularization?: boolean;
647
646
  dependencyVulnerability?: boolean;
648
647
  };
648
+ logging?: {
649
+ format?: "text" | "json";
650
+ level?: "silent" | "error" | "warn" | "info" | "debug";
651
+ includeTimestamp?: boolean;
652
+ };
653
+ mcpProtocolVersion?: string;
649
654
  configVersion?: number;
650
655
  testTimeout?: number;
651
656
  securityTestTimeout?: number;
@@ -665,31 +670,25 @@ export declare function safeParseAssessmentConfig(config: unknown): z.SafeParseR
665
670
  enableSourceCodeAnalysis?: boolean;
666
671
  patternConfigPath?: string;
667
672
  claudeCode?: {
668
- timeout?: number;
669
673
  features?: {
670
674
  intelligentTestGeneration?: boolean;
671
675
  aupSemanticAnalysis?: boolean;
672
676
  annotationInference?: boolean;
673
677
  documentationQuality?: boolean;
674
678
  };
679
+ timeout?: number;
680
+ transport?: "http" | "cli";
675
681
  enabled?: boolean;
676
- transport?: "cli" | "http";
682
+ workingDir?: string;
677
683
  maxRetries?: number;
678
684
  httpConfig?: {
679
685
  baseUrl?: string;
680
686
  apiKey?: string;
681
687
  headers?: Record<string, string>;
682
688
  };
683
- workingDir?: string;
684
689
  };
685
690
  temporalInvocations?: number;
686
- logging?: {
687
- level?: "silent" | "error" | "warn" | "info" | "debug";
688
- format?: "text" | "json";
689
- includeTimestamp?: boolean;
690
- };
691
691
  }, {
692
- mcpProtocolVersion?: string;
693
692
  assessmentCategories?: {
694
693
  functionality?: boolean;
695
694
  security?: boolean;
@@ -713,6 +712,12 @@ export declare function safeParseAssessmentConfig(config: unknown): z.SafeParseR
713
712
  fileModularization?: boolean;
714
713
  dependencyVulnerability?: boolean;
715
714
  };
715
+ logging?: {
716
+ format?: "text" | "json";
717
+ level?: "silent" | "error" | "warn" | "info" | "debug";
718
+ includeTimestamp?: boolean;
719
+ };
720
+ mcpProtocolVersion?: string;
716
721
  configVersion?: number;
717
722
  testTimeout?: number;
718
723
  securityTestTimeout?: number;
@@ -732,29 +737,24 @@ export declare function safeParseAssessmentConfig(config: unknown): z.SafeParseR
732
737
  enableSourceCodeAnalysis?: boolean;
733
738
  patternConfigPath?: string;
734
739
  claudeCode?: {
735
- timeout?: number;
736
740
  features?: {
737
741
  intelligentTestGeneration?: boolean;
738
742
  aupSemanticAnalysis?: boolean;
739
743
  annotationInference?: boolean;
740
744
  documentationQuality?: boolean;
741
745
  };
746
+ timeout?: number;
747
+ transport?: "http" | "cli";
742
748
  enabled?: boolean;
743
- transport?: "cli" | "http";
749
+ workingDir?: string;
744
750
  maxRetries?: number;
745
751
  httpConfig?: {
746
752
  baseUrl?: string;
747
753
  apiKey?: string;
748
754
  headers?: Record<string, string>;
749
755
  };
750
- workingDir?: string;
751
756
  };
752
757
  temporalInvocations?: number;
753
- logging?: {
754
- level?: "silent" | "error" | "warn" | "info" | "debug";
755
- format?: "text" | "json";
756
- includeTimestamp?: boolean;
757
- };
758
758
  }>;
759
759
  /**
760
760
  * Validate an assessment configuration and return error messages.