#lib
10 files tagged lib.
Retry
import { RetryExhaustedError } from "../types/errors"; /** * Exponential backoff with FULL jitter (HC-6): delay = rand…
Ids
/** * Identity + hashing primitives shared by every loop. * Web Crypto only — identical behavior on workerd and Bun (H…
Logger
/** * Structured logger. The single sanctioned sink for log output — * bare console.log in logic paths is a lint-level…
Hmac
/** * HMAC-SHA256 approval tokens for destructive actions (H1.5 mint / H3.3 verify). * Web Crypto only — identical on …
Validate
import { Ajv, type ValidateFunction } from "ajv"; import addFormats from "ajv-formats"; import { ContractViolationError …
Retry
import { RetryExhaustedError } from "../types/errors"; /** * Exponential backoff with FULL jitter (HC-6): delay = rand…
Ids
/** * Identity + hashing primitives shared by every loop. * Web Crypto only — identical behavior on workerd and Bun (H…
Logger
/** * Structured logger. The single sanctioned sink for log output — * bare console.log in logic paths is a lint-level…
Hmac
/** * HMAC utilities shared by Loop 1 (token-mint) and Loop 3 (reversibility-gate). * WebCrypto only — workerd-compati…
Validate
import { Ajv, type ValidateFunction } from "ajv"; import addFormats from "ajv-formats"; import { ContractViolationError …