upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/grasp-audit/src/lib.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 10:50:59 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 10:50:59 +0000
commitcd01c7379f23d9189beef840ddc523a3c90a9a10 (patch)
treed1a83d2b3cd8813f3ec586694158be70a026e091 /grasp-audit/src/lib.rs
parent7f71a2e75a66bcacad9057f5e339e511e689b828 (diff)
add probe subcommand for end-to-end relay health checks
Implements grasp-audit probe with full write path (publish events, poll for repo init, push, verify refs match state) and read-only fallback (find existing announcement, fetch refs). Supports --nsec for whitelisted relays, --json output, and --watch for continuous monitoring.
Diffstat (limited to 'grasp-audit/src/lib.rs')
-rw-r--r--grasp-audit/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/grasp-audit/src/lib.rs b/grasp-audit/src/lib.rs
index 655ee83..33d0990 100644
--- a/grasp-audit/src/lib.rs
+++ b/grasp-audit/src/lib.rs
@@ -32,6 +32,7 @@ pub mod audit;
32pub mod client; 32pub mod client;
33pub mod fixtures; 33pub mod fixtures;
34pub mod isolation; 34pub mod isolation;
35pub mod probe;
35pub mod result; 36pub mod result;
36pub mod specs; 37pub mod specs;
37 38
@@ -43,6 +44,7 @@ pub use fixtures::{
43 create_commit, 44 create_commit,
44 create_deterministic_commit, 45 create_deterministic_commit,
45 create_deterministic_commit_with_variant, 46 create_deterministic_commit_with_variant,
47 init_local_repo,
46 // Verification helpers 48 // Verification helpers
47 send_and_verify_accepted, 49 send_and_verify_accepted,
48 send_and_verify_rejected, 50 send_and_verify_rejected,
@@ -58,6 +60,7 @@ pub use fixtures::{
58 PR_TEST_COMMIT_HASH, 60 PR_TEST_COMMIT_HASH,
59 RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH, 61 RECURSIVE_MAINTAINER_DETERMINISTIC_COMMIT_HASH,
60}; 62};
63pub use probe::{run_probe, ProbeCheck, ProbeReport};
61pub use result::{AuditResult, TestResult}; 64pub use result::{AuditResult, TestResult};
62 65
63// Re-export commonly used types 66// Re-export commonly used types