@testlease/protocol
v0.4.0
Published
Wire types, error codes and the framework-neutral API contract for TestLease
Downloads
618
Maintainers
Readme
@testlease/protocol
Wire types, stable error codes and the framework-neutral API contract of TestLease. No runtime dependencies.
import {
ErrorCodes,
isTestLeaseError,
type AcquireRequest,
type LeaseView,
type TestLeaseApi,
} from '@testlease/protocol';TestLeaseApi— what every adapter is written against (implemented over HTTP by@testlease/clientand in-process by@testlease/core).SecretsApi— deliberately separate, so components that must never see credentials (the MCP server) cannot reach it.TestLeaseErrorwithcodefromErrorCodes; switch on codes, not messages.
See the HTTP API reference.
