Skip to main content

stackdeck_mcp_writes/
lib.rs

1#![doc = include_str!("../README.md")]
2
3pub mod error;
4pub mod guard;
5pub mod json;
6pub mod sha256;
7pub mod store;
8
9pub use error::{ErrorCode, HandlerError, WriteSafetyError};
10pub use guard::{
11    validate_idempotency_key, AuthorizeHook, ExecuteRequest, WriteContext, WriteGuard, WriteOutcome,
12    DEFAULT_LEASE_MS, DEFAULT_SCOPE, DEFAULT_TTL_MS,
13};
14pub use json::{canonical_binding_json, canonical_hash, canonical_json, parse_json, JsonValue};
15pub use sha256::sha256_hex;
16pub use store::{
17    build_redis_store_key, ClaimRequest, ClaimResult, CompleteRequest, ExtendLeaseRequest, InProgressRecord,
18    MemoryStore, ReleaseRequest, SucceededRecord, WriteStore, DEFAULT_SPENT_KEY_RETENTION_MS,
19    POSTGRES_SCHEMA_SQL, REDIS_CLAIM_LUA, REDIS_COMPLETE_LUA, REDIS_EXTEND_LEASE_LUA,
20    REDIS_RELEASE_LUA, SQLITE_SCHEMA_SQL,
21};