skill-checker 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -11,7 +11,18 @@ interface CheckResult {
11
11
  message: string;
12
12
  line?: number;
13
13
  snippet?: string;
14
+ reducedFrom?: Severity;
15
+ occurrences?: number;
14
16
  }
17
+ /**
18
+ * Reduce severity by one level with audit trail.
19
+ * Safety floor: a CRITICAL-origin finding never drops below MEDIUM.
20
+ */
21
+ declare function reduceSeverity(original: Severity, reason: string): {
22
+ severity: Severity;
23
+ reducedFrom: Severity;
24
+ annotation: string;
25
+ };
15
26
  interface SkillFrontmatter {
16
27
  name?: string;
17
28
  description?: string;
@@ -36,6 +47,8 @@ interface ParsedSkill {
36
47
  bodyStartLine: number;
37
48
  /** Other files in the skill directory */
38
49
  files: SkillFile[];
50
+ /** Warnings about skipped directories/files during parsing */
51
+ warnings: string[];
39
52
  }
40
53
  interface SkillFile {
41
54
  path: string;
@@ -157,4 +170,4 @@ declare function loadIOC(): IOCDatabase;
157
170
  */
158
171
  declare function resetIOCCache(): void;
159
172
 
160
- export { type CheckCategory, type CheckModule, type CheckResult, DEFAULT_CONFIG, type Grade, type HookAction, type ParsedSkill, type PolicyLevel, SEVERITY_SCORES, type ScanReport, type Severity, type SkillCheckerConfig, type SkillFile, type SkillFrontmatter, computeGrade, formatJsonReport, formatTerminalReport, generateHookResponse, getHookAction, loadConfig, loadIOC, parseSkill, parseSkillContent, resetIOCCache, runAllChecks, scanSkillContent, scanSkillDirectory, worstSeverity };
173
+ export { type CheckCategory, type CheckModule, type CheckResult, DEFAULT_CONFIG, type Grade, type HookAction, type ParsedSkill, type PolicyLevel, SEVERITY_SCORES, type ScanReport, type Severity, type SkillCheckerConfig, type SkillFile, type SkillFrontmatter, computeGrade, formatJsonReport, formatTerminalReport, generateHookResponse, getHookAction, loadConfig, loadIOC, parseSkill, parseSkillContent, reduceSeverity, resetIOCCache, runAllChecks, scanSkillContent, scanSkillDirectory, worstSeverity };