#lib

10 files tagged lib.

_archivesource

Retry

import { RetryExhaustedError } from "../types/errors"; /** * Exponential backoff with FULL jitter (HC-6): delay = rand…

TS45 lines1,583 bytes
_archivesource

Ids

/** * Identity + hashing primitives shared by every loop. * Web Crypto only — identical behavior on workerd and Bun (H…

TS58 lines2,060 bytes
_archivesource

Logger

/** * Structured logger. The single sanctioned sink for log output — * bare console.log in logic paths is a lint-level…

TS37 lines1,354 bytes
_archivesource

Hmac

/** * HMAC-SHA256 approval tokens for destructive actions (H1.5 mint / H3.3 verify). * Web Crypto only — identical on …

TS94 lines3,290 bytes
_archivesource

Validate

import { Ajv, type ValidateFunction } from "ajv"; import addFormats from "ajv-formats"; import { ContractViolationError …

TS67 lines2,858 bytes
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