@runhalo/cli 0.4.1 → 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 +40 -2
- package/dist/index.js +587 -60
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ interface CLIOptions {
|
|
|
22
22
|
offline: boolean;
|
|
23
23
|
framework?: string;
|
|
24
24
|
astAnalysis?: boolean;
|
|
25
|
+
reviewBoard?: boolean;
|
|
26
|
+
licenseKey?: string;
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Format violations as SARIF output
|
|
@@ -53,7 +55,43 @@ declare function escapeHtml(text: string): string;
|
|
|
53
55
|
* Generate a government-procurement-grade PDF compliance report.
|
|
54
56
|
* Uses PDFKit — pure JS, no browser dependencies, CI-safe.
|
|
55
57
|
*/
|
|
56
|
-
|
|
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>;
|
|
57
95
|
/**
|
|
58
96
|
* Create a Halo engine instance
|
|
59
97
|
*/
|
|
@@ -194,7 +232,7 @@ interface InitOptions {
|
|
|
194
232
|
force: boolean;
|
|
195
233
|
}
|
|
196
234
|
/**
|
|
197
|
-
* Init command — generate IDE rules files
|
|
235
|
+
* Init command — detect framework, generate .halorc.json, .haloignore, and IDE rules files.
|
|
198
236
|
*/
|
|
199
237
|
declare function init(projectPath: string, options: InitOptions): Promise<number>;
|
|
200
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 };
|