| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .. | ||
| dist | ||
| scripts | ||
| src | ||
| test | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
@gamecult/eve-contracts
Canonical TypeScript types and runtime validators for Eve provider boundaries.
The generated sources come from the JSON Schemas in ../../schemas; run
npm run generate after changing an authoritative schema. npm test rejects
schema drift.
import {
parseEveProviderAdvertisement,
parseEveSurfaceDocument,
parseEveCommandInvocation,
parseEveInputCapability,
} from "@gamecult/eve-contracts";
const provider = parseEveProviderAdvertisement(untrustedAdvertisement);
const surface = parseEveSurfaceDocument(untrustedSurface);
const command = parseEveCommandInvocation(untrustedCommand);
const input = parseEveInputCapability(untrustedInputCapability);
Providers own their state, surfaces, command acceptance, and receipts. This package owns only the portable contract and validation boundary.