#lib
5 files tagged lib.
loom-sprint-scaffoldsource
Retry
import { RetryExhaustedError } from "../types/errors"; /** * Exponential backoff with FULL jitter (HC-6): delay = rand…
TS45 lines1,583 bytes
loom-sprint-scaffoldsource
Ids
/** * Identity + hashing primitives shared by every loop. * Web Crypto only — identical behavior on workerd and Bun (H…
TS58 lines2,060 bytes
loom-sprint-scaffoldsource
Logger
/** * Structured logger. The single sanctioned sink for log output — * bare console.log in logic paths is a lint-level…
TS37 lines1,354 bytes
loom-sprint-scaffoldsource
Hmac
/** * HMAC utilities shared by Loop 1 (token-mint) and Loop 3 (reversibility-gate). * WebCrypto only — workerd-compati…
TS77 lines2,257 bytes
loom-sprint-scaffoldsource
Validate
import { Ajv, type ValidateFunction } from "ajv"; import addFormats from "ajv-formats"; import { ContractViolationError …
TS67 lines2,858 bytes