@exploitlens/verify 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +83 -2
- package/dist/cli.js +1989 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1919 -0
- package/package.json +59 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** Package identity, asserted against package.json by the workspace structure test. */
|
|
2
|
+
export declare const PACKAGE_NAME: "@exploitlens/verify";
|
|
3
|
+
/** The kind of check that produced an issue. Mirrors the verifier's own union. */
|
|
4
|
+
export type VerificationCheck = "required-file" | "schema" | "hash" | "internal-reference" | "gate-consistency" | "receipt-scope";
|
|
5
|
+
/** One thing wrong with a bundle. */
|
|
6
|
+
export interface VerificationIssue {
|
|
7
|
+
check: VerificationCheck;
|
|
8
|
+
/** Bundle-relative path (or a pointer into one) the issue concerns. */
|
|
9
|
+
path: string;
|
|
10
|
+
message: string;
|
|
11
|
+
}
|
|
12
|
+
/** The result of verifying a bundle. `ok` is true only when `issues` is empty. */
|
|
13
|
+
export interface VerificationReport {
|
|
14
|
+
bundleDir: string;
|
|
15
|
+
ok: boolean;
|
|
16
|
+
issues: VerificationIssue[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Verify one evidence-bundle directory offline.
|
|
20
|
+
*
|
|
21
|
+
* Resolves to a report listing every inconsistency found, not just the
|
|
22
|
+
* first, so a tampered or incomplete bundle shows its whole picture. Never
|
|
23
|
+
* rejects for a bundle that is merely invalid; it rejects only for an I/O
|
|
24
|
+
* failure it cannot attribute to the bundle's contents.
|
|
25
|
+
*/
|
|
26
|
+
export declare function verifyBundle(bundleDir: string): Promise<VerificationReport>;
|
|
27
|
+
/** Render a report as plain lines, the same wording the ExploitLens CLI prints. */
|
|
28
|
+
export declare function formatReport(report: VerificationReport): string[];
|