Thing/packages/eve-contracts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-14 13:13:29 +02:00
..
dist Define provider action bar suggestions 2026-07-17 05:13:45 +01:00
scripts Define view-direction input values 2026-07-17 04:46:49 +01:00
src Define provider action bar suggestions 2026-07-17 05:13:45 +01:00
test Add Model Atlas surface conformance fixture 2026-08-14 13:13:29 +02:00
package-lock.json Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
package.json Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
README.md Define view-direction input values 2026-07-17 04:46:49 +01:00
tsconfig.json Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00

@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.