Metakit / @doeixd/metakit/language

ReadinessProfile

interface · packages/metakit/src/languageReadiness.ts:20

interface ReadinessProfile<Op extends Node.CoreOpId = Node.CoreOpId> {
  readonly _tag: 'profile'
  readonly id: string
  readonly operators: ReadonlyArray<Op>
  readonly nodes: ReadonlyArray<ProfileNode>
  readonly limits: ArtifactLimits
}

A named, bounded fragment of the language with exact semantics, which Language.readiness checks an expression against: the core operators and node kinds it admits and the size it allows. Its literals are a safe integer, a boolean, null or text with no NUL and no lone surrogate; a foreign call is outside it (expand derived operations first). It does not check kinds: readiness sees no Schema.

Members

ReadinessProfile._tag

property · packages/metakit/src/languageReadiness.ts:21

readonly _tag: 'profile'

ReadinessProfile.id

property · packages/metakit/src/languageReadiness.ts:23

readonly id: string

<owner>/<name>@<version>, as a bundle records it.

ReadinessProfile.operators

property · packages/metakit/src/languageReadiness.ts:24

readonly operators: ReadonlyArray<Op>

ReadinessProfile.nodes

property · packages/metakit/src/languageReadiness.ts:25

readonly nodes: ReadonlyArray<ProfileNode>

ReadinessProfile.limits

property · packages/metakit/src/languageReadiness.ts:27

readonly limits: ArtifactLimits

The size bound a bundle of this profile is held to, counted as the artifact codec counts.