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::{
15    canonical_binding_json, canonical_binding_json_with_context, canonical_hash, canonical_hash_with_context,
16    canonical_json, parse_json, JsonValue,
17};
18pub use sha256::sha256_hex;
19pub use store::{
20    build_redis_store_key, ClaimRequest, ClaimResult, CompleteRequest, ExtendLeaseRequest, InProgressRecord,
21    MemoryStore, ReleaseRequest, SucceededRecord, WriteStore, DEFAULT_SPENT_KEY_RETENTION_MS,
22    POSTGRES_SCHEMA_SQL, REDIS_CLAIM_LUA, REDIS_COMPLETE_LUA, REDIS_EXTEND_LEASE_LUA,
23    REDIS_RELEASE_LUA, SQLITE_SCHEMA_SQL,
24};