@agentlighthouse/core 0.1.0-alpha.0

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 (78) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/dist/analyzers/mcp.d.ts +8 -0
  4. package/dist/analyzers/mcp.d.ts.map +1 -0
  5. package/dist/analyzers/mcp.js +214 -0
  6. package/dist/analyzers/openapi.d.ts +7 -0
  7. package/dist/analyzers/openapi.d.ts.map +1 -0
  8. package/dist/analyzers/openapi.js +344 -0
  9. package/dist/analyzers/readiness.d.ts +8 -0
  10. package/dist/analyzers/readiness.d.ts.map +1 -0
  11. package/dist/analyzers/readiness.js +766 -0
  12. package/dist/analyzers/tasks.d.ts +3 -0
  13. package/dist/analyzers/tasks.d.ts.map +1 -0
  14. package/dist/analyzers/tasks.js +140 -0
  15. package/dist/changes/files.d.ts +5 -0
  16. package/dist/changes/files.d.ts.map +1 -0
  17. package/dist/changes/files.js +71 -0
  18. package/dist/comparison/compare.d.ts +14 -0
  19. package/dist/comparison/compare.d.ts.map +1 -0
  20. package/dist/comparison/compare.js +323 -0
  21. package/dist/config/profile.d.ts +16 -0
  22. package/dist/config/profile.d.ts.map +1 -0
  23. package/dist/config/profile.js +47 -0
  24. package/dist/detection/project.d.ts +4 -0
  25. package/dist/detection/project.d.ts.map +1 -0
  26. package/dist/detection/project.js +225 -0
  27. package/dist/findings/helpers.d.ts +36 -0
  28. package/dist/findings/helpers.d.ts.map +1 -0
  29. package/dist/findings/helpers.js +115 -0
  30. package/dist/findings/locations.d.ts +4 -0
  31. package/dist/findings/locations.d.ts.map +1 -0
  32. package/dist/findings/locations.js +117 -0
  33. package/dist/generators/artifacts.d.ts +6 -0
  34. package/dist/generators/artifacts.d.ts.map +1 -0
  35. package/dist/generators/artifacts.js +255 -0
  36. package/dist/index.d.ts +486 -0
  37. package/dist/index.d.ts.map +1 -0
  38. package/dist/index.js +451 -0
  39. package/dist/probes/commands.d.ts +7 -0
  40. package/dist/probes/commands.d.ts.map +1 -0
  41. package/dist/probes/commands.js +198 -0
  42. package/dist/reporters/cli.d.ts +4 -0
  43. package/dist/reporters/cli.d.ts.map +1 -0
  44. package/dist/reporters/cli.js +42 -0
  45. package/dist/reporters/comparison.d.ts +13 -0
  46. package/dist/reporters/comparison.d.ts.map +1 -0
  47. package/dist/reporters/comparison.js +227 -0
  48. package/dist/reporters/github-summary.d.ts +4 -0
  49. package/dist/reporters/github-summary.d.ts.map +1 -0
  50. package/dist/reporters/github-summary.js +4 -0
  51. package/dist/reporters/json.d.ts +3 -0
  52. package/dist/reporters/json.d.ts.map +1 -0
  53. package/dist/reporters/json.js +3 -0
  54. package/dist/reporters/markdown.d.ts +3 -0
  55. package/dist/reporters/markdown.d.ts.map +1 -0
  56. package/dist/reporters/markdown.js +146 -0
  57. package/dist/reporters/pr-summary.d.ts +8 -0
  58. package/dist/reporters/pr-summary.d.ts.map +1 -0
  59. package/dist/reporters/pr-summary.js +38 -0
  60. package/dist/reporters/sarif.d.ts +3 -0
  61. package/dist/reporters/sarif.d.ts.map +1 -0
  62. package/dist/reporters/sarif.js +119 -0
  63. package/dist/reporters/shared.d.ts +8 -0
  64. package/dist/reporters/shared.d.ts.map +1 -0
  65. package/dist/reporters/shared.js +26 -0
  66. package/dist/scanners/filesystem.d.ts +6 -0
  67. package/dist/scanners/filesystem.d.ts.map +1 -0
  68. package/dist/scanners/filesystem.js +231 -0
  69. package/dist/schemas/types.d.ts +6652 -0
  70. package/dist/schemas/types.d.ts.map +1 -0
  71. package/dist/schemas/types.js +383 -0
  72. package/dist/scoring/calibration.d.ts +18 -0
  73. package/dist/scoring/calibration.d.ts.map +1 -0
  74. package/dist/scoring/calibration.js +231 -0
  75. package/dist/scoring/model.d.ts +21 -0
  76. package/dist/scoring/model.d.ts.map +1 -0
  77. package/dist/scoring/model.js +109 -0
  78. package/package.json +58 -0
@@ -0,0 +1,486 @@
1
+ import type { ScanOptions, ScanResult } from "./schemas/types.js";
2
+ export declare const agentLighthouseVersion = "0.1.0-alpha.0";
3
+ export * from "./schemas/types.js";
4
+ export * from "./analyzers/mcp.js";
5
+ export * from "./analyzers/openapi.js";
6
+ export * from "./analyzers/readiness.js";
7
+ export * from "./analyzers/tasks.js";
8
+ export * from "./changes/files.js";
9
+ export * from "./config/profile.js";
10
+ export * from "./comparison/compare.js";
11
+ export * from "./detection/project.js";
12
+ export * from "./findings/helpers.js";
13
+ export * from "./findings/locations.js";
14
+ export * from "./generators/artifacts.js";
15
+ export * from "./probes/commands.js";
16
+ export * from "./reporters/cli.js";
17
+ export * from "./reporters/comparison.js";
18
+ export * from "./reporters/github-summary.js";
19
+ export * from "./reporters/json.js";
20
+ export * from "./reporters/markdown.js";
21
+ export * from "./reporters/pr-summary.js";
22
+ export * from "./reporters/sarif.js";
23
+ export * from "./reporters/shared.js";
24
+ export * from "./scanners/filesystem.js";
25
+ export * from "./scoring/model.js";
26
+ export declare function scanProject(projectPath: string, options?: ScanOptions): Promise<ScanResult>;
27
+ export declare function generateStarterArtifacts(projectPath: string, options?: ScanOptions): Promise<{
28
+ path: string;
29
+ description: string;
30
+ content: string;
31
+ }[]>;
32
+ export declare const sampleScanResult: ScanResult;
33
+ export declare const sampleComparisonResult: {
34
+ summary: {
35
+ recommendedActions: string[];
36
+ verdict: "improved" | "regressed" | "unchanged" | "mixed" | "inconclusive";
37
+ regressionDetected: boolean;
38
+ improvementDetected: boolean;
39
+ topRegressions: string[];
40
+ topImprovements: string[];
41
+ caveats: string[];
42
+ };
43
+ findings: {
44
+ improved: {
45
+ id: string;
46
+ ruleId: string;
47
+ title: string;
48
+ severity: "critical" | "high" | "medium" | "low" | "info";
49
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
50
+ description: string;
51
+ evidence: string[];
52
+ recommendation: string;
53
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
54
+ locationKey?: string | undefined;
55
+ subject?: string | undefined;
56
+ fingerprint?: string | undefined;
57
+ identityParts?: string[] | undefined;
58
+ affectedFile?: string | undefined;
59
+ location?: {
60
+ file: string;
61
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
62
+ symbol?: string | undefined;
63
+ startLine?: number | undefined;
64
+ startColumn?: number | undefined;
65
+ endLine?: number | undefined;
66
+ endColumn?: number | undefined;
67
+ locationKey?: string | undefined;
68
+ subject?: string | undefined;
69
+ } | undefined;
70
+ agentFailureMode?: string | undefined;
71
+ fixExample?: string | undefined;
72
+ docsLinks?: string[] | undefined;
73
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
74
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
75
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
76
+ }[];
77
+ unchanged: {
78
+ id: string;
79
+ ruleId: string;
80
+ title: string;
81
+ severity: "critical" | "high" | "medium" | "low" | "info";
82
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
83
+ description: string;
84
+ evidence: string[];
85
+ recommendation: string;
86
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
87
+ locationKey?: string | undefined;
88
+ subject?: string | undefined;
89
+ fingerprint?: string | undefined;
90
+ identityParts?: string[] | undefined;
91
+ affectedFile?: string | undefined;
92
+ location?: {
93
+ file: string;
94
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
95
+ symbol?: string | undefined;
96
+ startLine?: number | undefined;
97
+ startColumn?: number | undefined;
98
+ endLine?: number | undefined;
99
+ endColumn?: number | undefined;
100
+ locationKey?: string | undefined;
101
+ subject?: string | undefined;
102
+ } | undefined;
103
+ agentFailureMode?: string | undefined;
104
+ fixExample?: string | undefined;
105
+ docsLinks?: string[] | undefined;
106
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
107
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
108
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
109
+ }[];
110
+ new: {
111
+ id: string;
112
+ ruleId: string;
113
+ title: string;
114
+ severity: "critical" | "high" | "medium" | "low" | "info";
115
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
116
+ description: string;
117
+ evidence: string[];
118
+ recommendation: string;
119
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
120
+ locationKey?: string | undefined;
121
+ subject?: string | undefined;
122
+ fingerprint?: string | undefined;
123
+ identityParts?: string[] | undefined;
124
+ affectedFile?: string | undefined;
125
+ location?: {
126
+ file: string;
127
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
128
+ symbol?: string | undefined;
129
+ startLine?: number | undefined;
130
+ startColumn?: number | undefined;
131
+ endLine?: number | undefined;
132
+ endColumn?: number | undefined;
133
+ locationKey?: string | undefined;
134
+ subject?: string | undefined;
135
+ } | undefined;
136
+ agentFailureMode?: string | undefined;
137
+ fixExample?: string | undefined;
138
+ docsLinks?: string[] | undefined;
139
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
140
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
141
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
142
+ }[];
143
+ resolved: {
144
+ id: string;
145
+ ruleId: string;
146
+ title: string;
147
+ severity: "critical" | "high" | "medium" | "low" | "info";
148
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
149
+ description: string;
150
+ evidence: string[];
151
+ recommendation: string;
152
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
153
+ locationKey?: string | undefined;
154
+ subject?: string | undefined;
155
+ fingerprint?: string | undefined;
156
+ identityParts?: string[] | undefined;
157
+ affectedFile?: string | undefined;
158
+ location?: {
159
+ file: string;
160
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
161
+ symbol?: string | undefined;
162
+ startLine?: number | undefined;
163
+ startColumn?: number | undefined;
164
+ endLine?: number | undefined;
165
+ endColumn?: number | undefined;
166
+ locationKey?: string | undefined;
167
+ subject?: string | undefined;
168
+ } | undefined;
169
+ agentFailureMode?: string | undefined;
170
+ fixExample?: string | undefined;
171
+ docsLinks?: string[] | undefined;
172
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
173
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
174
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
175
+ }[];
176
+ worsened: {
177
+ id: string;
178
+ ruleId: string;
179
+ title: string;
180
+ severity: "critical" | "high" | "medium" | "low" | "info";
181
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
182
+ description: string;
183
+ evidence: string[];
184
+ recommendation: string;
185
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
186
+ locationKey?: string | undefined;
187
+ subject?: string | undefined;
188
+ fingerprint?: string | undefined;
189
+ identityParts?: string[] | undefined;
190
+ affectedFile?: string | undefined;
191
+ location?: {
192
+ file: string;
193
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
194
+ symbol?: string | undefined;
195
+ startLine?: number | undefined;
196
+ startColumn?: number | undefined;
197
+ endLine?: number | undefined;
198
+ endColumn?: number | undefined;
199
+ locationKey?: string | undefined;
200
+ subject?: string | undefined;
201
+ } | undefined;
202
+ agentFailureMode?: string | undefined;
203
+ fixExample?: string | undefined;
204
+ docsLinks?: string[] | undefined;
205
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
206
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
207
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
208
+ }[];
209
+ };
210
+ comparisonId: string;
211
+ baseline: {
212
+ score: number;
213
+ confidence: "high" | "medium" | "low";
214
+ scanId: string;
215
+ scannedPath: string;
216
+ completedAt: string;
217
+ profile: "default" | "devtool" | "api" | "mcp" | "docs" | "library" | "internal";
218
+ coverage: number;
219
+ confidenceScore: number;
220
+ };
221
+ current: {
222
+ score: number;
223
+ confidence: "high" | "medium" | "low";
224
+ scanId: string;
225
+ scannedPath: string;
226
+ completedAt: string;
227
+ profile: "default" | "devtool" | "api" | "mcp" | "docs" | "library" | "internal";
228
+ coverage: number;
229
+ confidenceScore: number;
230
+ };
231
+ deltas: {
232
+ scoreDelta: number;
233
+ confidenceDelta: number;
234
+ coverageDelta: number;
235
+ findingCountDelta: number;
236
+ severityCountDeltas: Record<string, number>;
237
+ };
238
+ metadata: {
239
+ agentLighthouseVersion: string;
240
+ comparisonModelVersion: string;
241
+ };
242
+ prImpact?: {
243
+ summary: string;
244
+ changedFiles: {
245
+ path: string;
246
+ status: "added" | "modified" | "deleted" | "renamed" | "copied" | "unknown";
247
+ source: "unknown" | "explicit" | "git" | "github";
248
+ oldPath?: string | undefined;
249
+ }[];
250
+ changedFileCount: number;
251
+ newFindingsOnChangedFiles: {
252
+ id: string;
253
+ ruleId: string;
254
+ title: string;
255
+ severity: "critical" | "high" | "medium" | "low" | "info";
256
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
257
+ description: string;
258
+ evidence: string[];
259
+ recommendation: string;
260
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
261
+ locationKey?: string | undefined;
262
+ subject?: string | undefined;
263
+ fingerprint?: string | undefined;
264
+ identityParts?: string[] | undefined;
265
+ affectedFile?: string | undefined;
266
+ location?: {
267
+ file: string;
268
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
269
+ symbol?: string | undefined;
270
+ startLine?: number | undefined;
271
+ startColumn?: number | undefined;
272
+ endLine?: number | undefined;
273
+ endColumn?: number | undefined;
274
+ locationKey?: string | undefined;
275
+ subject?: string | undefined;
276
+ } | undefined;
277
+ agentFailureMode?: string | undefined;
278
+ fixExample?: string | undefined;
279
+ docsLinks?: string[] | undefined;
280
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
281
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
282
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
283
+ }[];
284
+ resolvedFindingsOnChangedFiles: {
285
+ id: string;
286
+ ruleId: string;
287
+ title: string;
288
+ severity: "critical" | "high" | "medium" | "low" | "info";
289
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
290
+ description: string;
291
+ evidence: string[];
292
+ recommendation: string;
293
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
294
+ locationKey?: string | undefined;
295
+ subject?: string | undefined;
296
+ fingerprint?: string | undefined;
297
+ identityParts?: string[] | undefined;
298
+ affectedFile?: string | undefined;
299
+ location?: {
300
+ file: string;
301
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
302
+ symbol?: string | undefined;
303
+ startLine?: number | undefined;
304
+ startColumn?: number | undefined;
305
+ endLine?: number | undefined;
306
+ endColumn?: number | undefined;
307
+ locationKey?: string | undefined;
308
+ subject?: string | undefined;
309
+ } | undefined;
310
+ agentFailureMode?: string | undefined;
311
+ fixExample?: string | undefined;
312
+ docsLinks?: string[] | undefined;
313
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
314
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
315
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
316
+ }[];
317
+ unchangedFindingsOnChangedFiles: {
318
+ id: string;
319
+ ruleId: string;
320
+ title: string;
321
+ severity: "critical" | "high" | "medium" | "low" | "info";
322
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
323
+ description: string;
324
+ evidence: string[];
325
+ recommendation: string;
326
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
327
+ locationKey?: string | undefined;
328
+ subject?: string | undefined;
329
+ fingerprint?: string | undefined;
330
+ identityParts?: string[] | undefined;
331
+ affectedFile?: string | undefined;
332
+ location?: {
333
+ file: string;
334
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
335
+ symbol?: string | undefined;
336
+ startLine?: number | undefined;
337
+ startColumn?: number | undefined;
338
+ endLine?: number | undefined;
339
+ endColumn?: number | undefined;
340
+ locationKey?: string | undefined;
341
+ subject?: string | undefined;
342
+ } | undefined;
343
+ agentFailureMode?: string | undefined;
344
+ fixExample?: string | undefined;
345
+ docsLinks?: string[] | undefined;
346
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
347
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
348
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
349
+ }[];
350
+ globalNewFindings: {
351
+ id: string;
352
+ ruleId: string;
353
+ title: string;
354
+ severity: "critical" | "high" | "medium" | "low" | "info";
355
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
356
+ description: string;
357
+ evidence: string[];
358
+ recommendation: string;
359
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
360
+ locationKey?: string | undefined;
361
+ subject?: string | undefined;
362
+ fingerprint?: string | undefined;
363
+ identityParts?: string[] | undefined;
364
+ affectedFile?: string | undefined;
365
+ location?: {
366
+ file: string;
367
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
368
+ symbol?: string | undefined;
369
+ startLine?: number | undefined;
370
+ startColumn?: number | undefined;
371
+ endLine?: number | undefined;
372
+ endColumn?: number | undefined;
373
+ locationKey?: string | undefined;
374
+ subject?: string | undefined;
375
+ } | undefined;
376
+ agentFailureMode?: string | undefined;
377
+ fixExample?: string | undefined;
378
+ docsLinks?: string[] | undefined;
379
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
380
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
381
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
382
+ }[];
383
+ globalResolvedFindings: {
384
+ id: string;
385
+ ruleId: string;
386
+ title: string;
387
+ severity: "critical" | "high" | "medium" | "low" | "info";
388
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
389
+ description: string;
390
+ evidence: string[];
391
+ recommendation: string;
392
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
393
+ locationKey?: string | undefined;
394
+ subject?: string | undefined;
395
+ fingerprint?: string | undefined;
396
+ identityParts?: string[] | undefined;
397
+ affectedFile?: string | undefined;
398
+ location?: {
399
+ file: string;
400
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
401
+ symbol?: string | undefined;
402
+ startLine?: number | undefined;
403
+ startColumn?: number | undefined;
404
+ endLine?: number | undefined;
405
+ endColumn?: number | undefined;
406
+ locationKey?: string | undefined;
407
+ subject?: string | undefined;
408
+ } | undefined;
409
+ agentFailureMode?: string | undefined;
410
+ fixExample?: string | undefined;
411
+ docsLinks?: string[] | undefined;
412
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
413
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
414
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
415
+ }[];
416
+ unknownLocationFindings: {
417
+ id: string;
418
+ ruleId: string;
419
+ title: string;
420
+ severity: "critical" | "high" | "medium" | "low" | "info";
421
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
422
+ description: string;
423
+ evidence: string[];
424
+ recommendation: string;
425
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
426
+ locationKey?: string | undefined;
427
+ subject?: string | undefined;
428
+ fingerprint?: string | undefined;
429
+ identityParts?: string[] | undefined;
430
+ affectedFile?: string | undefined;
431
+ location?: {
432
+ file: string;
433
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
434
+ symbol?: string | undefined;
435
+ startLine?: number | undefined;
436
+ startColumn?: number | undefined;
437
+ endLine?: number | undefined;
438
+ endColumn?: number | undefined;
439
+ locationKey?: string | undefined;
440
+ subject?: string | undefined;
441
+ } | undefined;
442
+ agentFailureMode?: string | undefined;
443
+ fixExample?: string | undefined;
444
+ docsLinks?: string[] | undefined;
445
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
446
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
447
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
448
+ }[];
449
+ unrelatedExistingFindings: {
450
+ id: string;
451
+ ruleId: string;
452
+ title: string;
453
+ severity: "critical" | "high" | "medium" | "low" | "info";
454
+ category: "agent_instructions" | "documentation" | "api_schema" | "mcp_tools" | "examples" | "setup_and_tests" | "security_and_privacy" | "task_benchmarks" | "repo_structure" | "freshness_and_consistency";
455
+ description: string;
456
+ evidence: string[];
457
+ recommendation: string;
458
+ suggestedFixType: "create_file" | "update_file" | "add_section" | "add_script" | "add_example" | "review_manually" | "none";
459
+ locationKey?: string | undefined;
460
+ subject?: string | undefined;
461
+ fingerprint?: string | undefined;
462
+ identityParts?: string[] | undefined;
463
+ affectedFile?: string | undefined;
464
+ location?: {
465
+ file: string;
466
+ sourceKind: "mcp" | "unknown" | "markdown" | "openapi" | "task" | "config" | "project";
467
+ symbol?: string | undefined;
468
+ startLine?: number | undefined;
469
+ startColumn?: number | undefined;
470
+ endLine?: number | undefined;
471
+ endColumn?: number | undefined;
472
+ locationKey?: string | undefined;
473
+ subject?: string | undefined;
474
+ } | undefined;
475
+ agentFailureMode?: string | undefined;
476
+ fixExample?: string | undefined;
477
+ docsLinks?: string[] | undefined;
478
+ previousSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
479
+ currentSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
480
+ prImpactClassification?: "unknown" | "touched" | "related" | "global" | "unrelated" | undefined;
481
+ }[];
482
+ filesWithAgentReadinessImpact: string[];
483
+ highestChangedFileSeverity?: "critical" | "high" | "medium" | "low" | "info" | undefined;
484
+ } | undefined;
485
+ };
486
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAKV,WAAW,EACX,UAAU,EAEX,MAAM,oBAAoB,CAAC;AAe5B,eAAO,MAAM,sBAAsB,kBAAkB,CAAC;AAEtD,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AAEnC,wBAAsB,WAAW,CAC/B,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,WAAgB,GACxB,OAAO,CAAC,UAAU,CAAC,CAiFrB;AAED,wBAAsB,wBAAwB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;;;;KAK5F;AAiFD,eAAO,MAAM,gBAAgB,EAAE,UA0O9B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqClC,CAAC"}