@runhalo/cli 0.4.0 → 0.5.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.
package/dist/index.d.ts CHANGED
@@ -17,8 +17,13 @@ interface CLIOptions {
17
17
  report: string | boolean;
18
18
  aiAudit: boolean;
19
19
  sectorAuSbd: boolean;
20
+ sectorAuOsa: boolean;
20
21
  pack: string[];
21
22
  offline: boolean;
23
+ framework?: string;
24
+ astAnalysis?: boolean;
25
+ reviewBoard?: boolean;
26
+ licenseKey?: string;
22
27
  }
23
28
  /**
24
29
  * Format violations as SARIF output
@@ -50,7 +55,43 @@ declare function escapeHtml(text: string): string;
50
55
  * Generate a government-procurement-grade PDF compliance report.
51
56
  * Uses PDFKit — pure JS, no browser dependencies, CI-safe.
52
57
  */
53
- declare function generatePdfReport(results: ScanResult[], scoreResult: any, fileCount: number, projectPath: string, history?: ScanHistoryEntry[]): Promise<Buffer>;
58
+ interface ReviewBoardData {
59
+ results: Array<{
60
+ ruleId: string;
61
+ verdict: string;
62
+ clinicalContext: string;
63
+ evidenceRefs: string[];
64
+ remediationGuidance: string;
65
+ ageGroupImpact: string[];
66
+ cached: boolean;
67
+ regulatoryContext?: {
68
+ regulation: string;
69
+ enforcement_priority: string;
70
+ penalty_exposure: string;
71
+ urgency_score: number;
72
+ recent_case?: string;
73
+ };
74
+ }>;
75
+ summary: {
76
+ total: number;
77
+ confirmed: number;
78
+ downgraded: number;
79
+ escalated: number;
80
+ dismissed: number;
81
+ cache_hits: number;
82
+ };
83
+ marshall_summary?: {
84
+ enriched_count: number;
85
+ avg_urgency: number;
86
+ highest_risk_rule?: string;
87
+ active_enforcement_count: number;
88
+ };
89
+ cost: {
90
+ estimated_usd: number;
91
+ };
92
+ latency_ms: number;
93
+ }
94
+ declare function generatePdfReport(results: ScanResult[], scoreResult: any, fileCount: number, projectPath: string, history?: ScanHistoryEntry[], reviewData?: ReviewBoardData): Promise<Buffer>;
54
95
  /**
55
96
  * Create a Halo engine instance
56
97
  */
@@ -96,7 +137,7 @@ declare function writeRulesCache(etag: string | null, packs: string[], rules: JS
96
137
  declare function loadBaselineRules(packs: string[]): JSONRule[] | null;
97
138
  /**
98
139
  * Map CLI options to pack IDs.
99
- * --pack takes precedence. Legacy flags (--ethical-preview, --ai-audit, --sector-au-sbd) are mapped.
140
+ * --pack takes precedence. Legacy flags (--ethical-preview, --ai-audit, --sector-au-sbd, --sector-au-osa) are mapped.
100
141
  */
101
142
  declare function resolvePacks(options: CLIOptions): string[];
102
143
  /**
@@ -119,6 +160,7 @@ interface ScanHistoryEntry {
119
160
  score: number;
120
161
  grade: string;
121
162
  totalViolations: number;
163
+ suppressedCount: number;
122
164
  bySeverity: {
123
165
  critical: number;
124
166
  high: number;
@@ -190,7 +232,7 @@ interface InitOptions {
190
232
  force: boolean;
191
233
  }
192
234
  /**
193
- * Init command — generate IDE rules files and project configuration.
235
+ * Init command — detect framework, generate .halorc.json, .haloignore, and IDE rules files.
194
236
  */
195
237
  declare function init(projectPath: string, options: InitOptions): Promise<number>;
196
238
  export { scan, fix, init, scanFile, scanDirectory, createEngine, formatSARIF, formatJSON, formatText, loadConfig, saveConfig, firstRunPrompt, loadHistory, saveHistory, formatTrend, generateHtmlReport, generatePdfReport, escapeHtml, validateLicenseKey, activateLicense, checkScanLimit, checkProFeature, resolvePacks, resolveRules, fetchRulesFromAPI, readRulesCache, writeRulesCache, loadBaselineRules, FREE_SCAN_LIMIT, HALO_CONFIG_DIR, HALO_CONFIG_PATH, HALO_HISTORY_PATH, MAX_HISTORY_ENTRIES, RULES_CACHE_PATH };