@altopelago/aeon-aes
v0.13.0
Published
Assignment Event Stream emission and canonical path utilities for AEON.
Maintainers
Readme
@altopelago/aeon-aes
Assignment Event Stream emission, portable projection, Telex v1 codec, and reader-only Film v1 decoding.
Installation
pnpm add @altopelago/aeon-aesUsage
import { emitAssignmentEvents } from '@altopelago/aeon-aes';
const result = emitAssignmentEvents('answer = 42');
if (result.errors.length === 0) {
console.log(result.events);
}What This Package Does
- emits Assignment Events from AEON source or parsed syntax
- formats and works with canonical AEON paths
- exposes event-level data used by AEOS validation, finalization, and tooling
- parses, validates, encodes, and canonicalizes
telex.aesv1 streams - decodes one-shot and incremental
film.aesv1 streams, withholding complete acceptance until portable AES validation succeeds - splits compact Telex datatypes into
datatype,generics, andclarifiers
API
emitAssignmentEvents(input, options?)projectPortableEvents(events)emits the default body-only portable projectionadaptTypeScriptAssignmentEventsToPortableAes(events, options?)returns the namedaeon.typescript.assignment-events.v0-to-aes.events.v1compatibility result and its conversion report; optional exactsourceBytesderive a SHA-256 origin and convert native UTF-16 ranges to UTF-8 byte spans;includeHeaders: trueselectsaeon.document.v1parseTelex(input, options?)encodeTelex(records, options?)canonicalizeTelex(input, options?)validateTelex(input, options?)validateTelexRecords(records, options?)decodeFilmSyntax(input, options?)for provisional inspectiondecodeFilm(input, options?)for complete validated readsIncrementalFilmDecoder- canonical path helpers
- Assignment Event Stream types
- emitted native events carry
sourcePlane: 'header' | 'body'; consumers must not infer control-plane identity from anaeon:key prefix
- emitted native events carry
- reconstructed candidate AES types:
CandidateAESCandidateAssignmentEventCandidateAttributeEntryCandidateValue
When To Use It
Use this package when you need direct access to assignment events or the
encoding-neutral portable AES/Telex boundary.
If you want the stable application-facing entry point, prefer @altopelago/aeon-core.
Notes
- AES is the structural event layer between parsing and downstream validation.
- Candidate AES types describe reconstructed validation input for speculative post-commit state. They do not define substrate materialization policy.
- This package does not materialize application objects.
- Film support is reader-only. No Film encoder or durable-writer surface is exported.
- Film byte limits (
maxInputBytes,maxRecordBytes,maxFieldBytes, andmaxBufferedBytes) are format-local. Shared event and structural limits may be supplied flat or throughaesLimits; Telex framing limits are never imported as Film byte policy. - Schema validation belongs in
@altopelago/aeos-core. - JSON or map materialization belongs in
@altopelago/aeon-finalize.
