@altopelago/aeon-sdk 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/dist/index.d.ts +41 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +97 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,13 +5,17 @@ Application-facing convenience layer for common AEON read/write flows.
|
|
|
5
5
|
## Quick Start
|
|
6
6
|
|
|
7
7
|
```ts
|
|
8
|
-
import { readAeonChecked, writeAeon } from '@altopelago/aeon-sdk';
|
|
8
|
+
import { aeonToTelex, readAeonChecked, readTelexDocumentChecked, writeAeon } from '@altopelago/aeon-sdk';
|
|
9
9
|
|
|
10
10
|
const parsed = readAeonChecked('greeting:string = "Hello"');
|
|
11
11
|
console.log(parsed.finalized.document);
|
|
12
12
|
|
|
13
13
|
const emitted = writeAeon({ app: 'todo', version: 1 });
|
|
14
14
|
console.log(emitted.text);
|
|
15
|
+
|
|
16
|
+
const wire = aeonToTelex('answer = 42').telex!;
|
|
17
|
+
const imported = readTelexDocumentChecked(wire);
|
|
18
|
+
console.log(imported.finalized.document);
|
|
15
19
|
```
|
|
16
20
|
|
|
17
21
|
## What This Package Does
|
|
@@ -26,6 +30,12 @@ console.log(emitted.text);
|
|
|
26
30
|
- `readAeonChecked(input, options?)`
|
|
27
31
|
- `readAeonStrictCustom(input)`
|
|
28
32
|
- `writeAeon(object, options?)`
|
|
33
|
+
- `aeonToTelex(input, options?)`
|
|
34
|
+
- `readTelex(input, options?)`
|
|
35
|
+
- `readTelexChecked(input, options?)`
|
|
36
|
+
- `readTelexDocument(input, options?)`
|
|
37
|
+
- `readTelexDocumentChecked(input, options?)`
|
|
38
|
+
- `writeTelex(records, options?)`
|
|
29
39
|
- `formatPath(path)`
|
|
30
40
|
- `indexEventsByPath(events)`
|
|
31
41
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { formatPath, type CompileOptions, type CompileResult } from '@altopelago/aeon-core';
|
|
2
|
-
import { type FinalizeJsonResult, type FinalizeOptions } from '@altopelago/aeon-finalize';
|
|
1
|
+
import { formatPath, type CompileOptions, type CompileResult, type CompileToTelexOptions, type CompileToTelexResult, type AeonicLimitsV1, type EffectiveTelexConfiguration, type ParsedTelex, type PortableAesEvent, type TelexEncodeOptions, type TelexRecord, type TelexLimitOptions, type TelexValidationOptions, type TelexValidationResult } from '@altopelago/aeon-core';
|
|
2
|
+
import { type FinalizeJsonResult, type FinalizeOptions, type FinalizePortableJsonOptions } from '@altopelago/aeon-finalize';
|
|
3
3
|
import { type EmitObjectOptions, type EmitResult } from '@altopelago/aeon-canonical';
|
|
4
4
|
export interface ReadAeonOptions {
|
|
5
5
|
readonly compile?: CompileOptions;
|
|
@@ -12,11 +12,49 @@ export interface ReadAeonResult {
|
|
|
12
12
|
export interface ReadAeonCheckedResult extends ReadAeonResult {
|
|
13
13
|
readonly eventsByPath: ReadonlyMap<string, CompileResult['events'][number]>;
|
|
14
14
|
}
|
|
15
|
+
export interface ReadTelexResult {
|
|
16
|
+
readonly parsed: ParsedTelex;
|
|
17
|
+
readonly records: ParsedTelex['records'];
|
|
18
|
+
readonly validation: TelexValidationResult;
|
|
19
|
+
readonly effectiveLimits?: EffectiveTelexConfiguration;
|
|
20
|
+
}
|
|
21
|
+
export interface ReadTelexOptions extends TelexValidationOptions {
|
|
22
|
+
/** Trusted, consumer-selected common limits document. */
|
|
23
|
+
readonly aeonicLimits?: AeonicLimitsV1;
|
|
24
|
+
}
|
|
25
|
+
export interface ReadTelexDocumentOptions {
|
|
26
|
+
readonly telex?: TelexValidationOptions;
|
|
27
|
+
readonly finalize?: Omit<FinalizePortableJsonOptions, 'profile' | 'projection'>;
|
|
28
|
+
/** Trusted, consumer-selected common limits document. */
|
|
29
|
+
readonly aeonicLimits?: AeonicLimitsV1;
|
|
30
|
+
}
|
|
31
|
+
export interface ReadTelexDocumentResult extends ReadTelexResult {
|
|
32
|
+
readonly finalized: FinalizeJsonResult;
|
|
33
|
+
}
|
|
34
|
+
export interface AeonToTelexOptions extends CompileToTelexOptions {
|
|
35
|
+
/** Trusted, consumer-selected common limits document. */
|
|
36
|
+
readonly aeonicLimits?: AeonicLimitsV1;
|
|
37
|
+
}
|
|
38
|
+
export interface AeonToTelexResult extends CompileToTelexResult {
|
|
39
|
+
readonly effectiveLimits?: EffectiveTelexConfiguration;
|
|
40
|
+
}
|
|
15
41
|
export declare function readAeon(input: string, options?: ReadAeonOptions): ReadAeonResult;
|
|
16
42
|
export declare function indexEventsByPath(events: readonly CompileResult['events'][number][]): ReadonlyMap<string, CompileResult['events'][number]>;
|
|
17
43
|
export declare function readAeonChecked(input: string, options?: ReadAeonOptions): ReadAeonCheckedResult;
|
|
18
44
|
export declare function readAeonStrictCustom(input: string): ReadAeonCheckedResult;
|
|
19
45
|
export declare function writeAeon(object: Readonly<Record<string, unknown>>, options?: EmitObjectOptions): EmitResult;
|
|
46
|
+
/** Decode and validate an interoperable Telex stream. */
|
|
47
|
+
export declare function readTelex(input: string, options?: ReadTelexOptions): ReadTelexResult;
|
|
48
|
+
/** Decode Telex and throw when its default or declared AES profile is invalid. */
|
|
49
|
+
export declare function readTelexChecked(input: string, options?: ReadTelexOptions): ReadTelexResult;
|
|
50
|
+
/** Decode, validate, and materialize a complete Telex stream as JSON. */
|
|
51
|
+
export declare function readTelexDocument(input: string, options?: ReadTelexDocumentOptions): ReadTelexDocumentResult;
|
|
52
|
+
/** Decode and materialize Telex, throwing on AES or finalization errors. */
|
|
53
|
+
export declare function readTelexDocumentChecked(input: string, options?: ReadTelexDocumentOptions): ReadTelexDocumentResult;
|
|
54
|
+
/** Encode portable AES records as a Telex stream. */
|
|
55
|
+
export declare function writeTelex(records: readonly (TelexRecord | PortableAesEvent)[], options?: TelexEncodeOptions): string;
|
|
56
|
+
/** Compile AEON source and export its portable event stream as Telex. */
|
|
57
|
+
export declare function aeonToTelex(input: string, options?: AeonToTelexOptions): AeonToTelexResult;
|
|
20
58
|
export { formatPath };
|
|
21
|
-
export type { CompileOptions, CompileResult, FinalizeOptions, FinalizeJsonResult, EmitObjectOptions, EmitResult, };
|
|
59
|
+
export type { CompileOptions, CompileResult, FinalizeOptions, FinalizeJsonResult, FinalizePortableJsonOptions, EmitObjectOptions, EmitResult, CompileToTelexOptions, CompileToTelexResult, ParsedTelex, PortableAesEvent, TelexEncodeOptions, TelexLimitOptions, TelexRecord, TelexValidationOptions, TelexValidationResult, };
|
|
22
60
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,UAAU,EAGV,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAEhC,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,2BAA2B,EACjC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAkB,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAErG,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,QAAQ,CAAC,EAAE,eAAe,CAAC;CACrC;AAED,MAAM,WAAW,cAAc;IAC7B,QAA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kBAAkB,EAClB,2BAA2B,EAC3B,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACrB,oBAAoB,EACpB,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,sBAAsB,EACtB,qBAAqB,GACtB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { compile, formatPath } from '@altopelago/aeon-core';
|
|
2
|
-
import { finalizeJson } from '@altopelago/aeon-finalize';
|
|
1
|
+
import { compile, compileToTelex, aeonCompileLimits, encodeTelex, effectiveTelexConfiguration, formatPath, parseTelex, validateTelex, } from '@altopelago/aeon-core';
|
|
2
|
+
import { finalizeJson, finalizePortableJson, } from '@altopelago/aeon-finalize';
|
|
3
3
|
import { emitFromObject } from '@altopelago/aeon-canonical';
|
|
4
4
|
export function readAeon(input, options = {}) {
|
|
5
5
|
const compileResult = compile(input, {
|
|
@@ -8,6 +8,7 @@ export function readAeon(input, options = {}) {
|
|
|
8
8
|
const finalized = finalizeJson(compileResult.events, {
|
|
9
9
|
mode: 'strict',
|
|
10
10
|
...(options.finalize ?? {}),
|
|
11
|
+
...(compileResult.header ? { header: compileResult.header } : {}),
|
|
11
12
|
});
|
|
12
13
|
return {
|
|
13
14
|
compile: compileResult,
|
|
@@ -42,5 +43,99 @@ export function readAeonStrictCustom(input) {
|
|
|
42
43
|
export function writeAeon(object, options = {}) {
|
|
43
44
|
return emitFromObject(object, options);
|
|
44
45
|
}
|
|
46
|
+
/** Decode and validate an interoperable Telex stream. */
|
|
47
|
+
export function readTelex(input, options = {}) {
|
|
48
|
+
const { aeonicLimits, ...explicit } = options;
|
|
49
|
+
const effectiveLimits = resolveEffectiveTelexConfiguration(aeonicLimits, explicit);
|
|
50
|
+
const codecOptions = effectiveLimits ? { ...effectiveLimits.telex, ...explicit } : explicit;
|
|
51
|
+
const parsed = parseTelex(input, codecOptions);
|
|
52
|
+
const validation = validateTelex(parsed, {
|
|
53
|
+
...codecOptions,
|
|
54
|
+
profile: parsed.profile,
|
|
55
|
+
projection: parsed.projection,
|
|
56
|
+
});
|
|
57
|
+
return { parsed, records: parsed.records, validation, ...(effectiveLimits ? { effectiveLimits } : {}) };
|
|
58
|
+
}
|
|
59
|
+
/** Decode Telex and throw when its default or declared AES profile is invalid. */
|
|
60
|
+
export function readTelexChecked(input, options = {}) {
|
|
61
|
+
const result = readTelex(input, options);
|
|
62
|
+
if (!result.validation.valid) {
|
|
63
|
+
const summary = result.validation.diagnostics.map((diagnostic) => `${diagnostic.code}: ${diagnostic.message}`).join('\n');
|
|
64
|
+
throw new Error(`Telex validation failed with ${result.validation.diagnostics.length} error(s):\n${summary}`);
|
|
65
|
+
}
|
|
66
|
+
return result;
|
|
67
|
+
}
|
|
68
|
+
/** Decode, validate, and materialize a complete Telex stream as JSON. */
|
|
69
|
+
export function readTelexDocument(input, options = {}) {
|
|
70
|
+
const effectiveLimits = resolveEffectiveTelexConfiguration(options.aeonicLimits, options.telex, options.finalize);
|
|
71
|
+
const result = readTelex(input, effectiveLimits
|
|
72
|
+
? { ...effectiveLimits.telex, ...(options.telex ?? {}) }
|
|
73
|
+
: options.telex);
|
|
74
|
+
const finalized = finalizePortableJson(result.records, {
|
|
75
|
+
...(effectiveLimits?.finalization ?? {}),
|
|
76
|
+
...(options.finalize ?? {}),
|
|
77
|
+
profile: result.parsed.profile,
|
|
78
|
+
projection: result.parsed.projection,
|
|
79
|
+
});
|
|
80
|
+
return {
|
|
81
|
+
...result,
|
|
82
|
+
finalized,
|
|
83
|
+
...(effectiveLimits ? { effectiveLimits } : {}),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/** Decode and materialize Telex, throwing on AES or finalization errors. */
|
|
87
|
+
export function readTelexDocumentChecked(input, options = {}) {
|
|
88
|
+
const result = readTelexDocument(input, options);
|
|
89
|
+
if (!result.validation.valid) {
|
|
90
|
+
const summary = result.validation.diagnostics.map((diagnostic) => `${diagnostic.code}: ${diagnostic.message}`).join('\n');
|
|
91
|
+
throw new Error(`Telex validation failed with ${result.validation.diagnostics.length} error(s):\n${summary}`);
|
|
92
|
+
}
|
|
93
|
+
const finalizeErrors = result.finalized.meta?.errors ?? [];
|
|
94
|
+
if (finalizeErrors.length > 0) {
|
|
95
|
+
const summary = finalizeErrors.map((diagnostic) => `${diagnostic.code ?? 'FINALIZE_ERROR'}: ${diagnostic.message}`).join('\n');
|
|
96
|
+
throw new Error(`Telex finalization failed with ${finalizeErrors.length} error(s):\n${summary}`);
|
|
97
|
+
}
|
|
98
|
+
return result;
|
|
99
|
+
}
|
|
100
|
+
/** Encode portable AES records as a Telex stream. */
|
|
101
|
+
export function writeTelex(records, options = {}) {
|
|
102
|
+
return encodeTelex(records, options);
|
|
103
|
+
}
|
|
104
|
+
/** Compile AEON source and export its portable event stream as Telex. */
|
|
105
|
+
export function aeonToTelex(input, options = {}) {
|
|
106
|
+
const { aeonicLimits, ...explicit } = options;
|
|
107
|
+
if (!aeonicLimits)
|
|
108
|
+
return compileToTelex(input, explicit);
|
|
109
|
+
const effectiveLimits = resolveEffectiveTelexConfiguration(aeonicLimits, explicit.telex);
|
|
110
|
+
const result = compileToTelex(input, {
|
|
111
|
+
...explicit,
|
|
112
|
+
compile: { ...aeonCompileLimits(aeonicLimits), ...(explicit.compile ?? {}) },
|
|
113
|
+
telex: { ...effectiveLimits?.telex, ...(explicit.telex ?? {}) },
|
|
114
|
+
});
|
|
115
|
+
return { ...result, effectiveLimits: effectiveLimits };
|
|
116
|
+
}
|
|
117
|
+
function resolveEffectiveTelexConfiguration(limits, telexOverrides, finalizationOverrides = undefined) {
|
|
118
|
+
if (!limits)
|
|
119
|
+
return undefined;
|
|
120
|
+
const selected = effectiveTelexConfiguration(limits);
|
|
121
|
+
const telex = { ...selected.telex };
|
|
122
|
+
const finalization = { ...selected.finalization };
|
|
123
|
+
let overridesApplied = false;
|
|
124
|
+
for (const key of Object.keys(telex)) {
|
|
125
|
+
const override = telexOverrides?.[key];
|
|
126
|
+
if (override !== undefined && override !== telex[key]) {
|
|
127
|
+
telex[key] = override;
|
|
128
|
+
overridesApplied = true;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
for (const key of ['maxReferenceDepth', 'maxMaterializedWeight']) {
|
|
132
|
+
const override = finalizationOverrides?.[key];
|
|
133
|
+
if (override !== undefined && override !== finalization[key]) {
|
|
134
|
+
finalization[key] = override;
|
|
135
|
+
overridesApplied = true;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return { ...selected, telex, finalization, overridesApplied };
|
|
139
|
+
}
|
|
45
140
|
export { formatPath };
|
|
46
141
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,WAAW,EACX,2BAA2B,EAC3B,UAAU,EACV,UAAU,EACV,aAAa,GAed,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EACZ,oBAAoB,GAIrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAA2C,MAAM,4BAA4B,CAAC;AAgDrG,MAAM,UAAU,QAAQ,CAAC,KAAa,EAAE,OAAO,GAAoB,EAAE;IACnE,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,EAAE;QACnC,GAAG,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;KAC3B,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,YAAY,CAAC,aAAa,CAAC,MAAM,EAAE;QACnD,IAAI,EAAE,QAAQ;QACd,GAAG,CAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC;QAC3B,GAAG,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,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A2B,EAAE,CAAC;QAC/D,MAAM,QAAQ,GAAG,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC;QACvC,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC;YACtB,gBAAgB,GAAG,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,KAAK,MAAM,GAAG,IAAI,CAAC,mBAAmB,EAAE,uBAAuB,CAAU,EAAE,CAAC;QAC1E,MAAM,QAAQ,GAAG,qBAAqB,EAAE,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7D,YAAY,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC;YAC7B,gBAAgB,GAAG,IAAI,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,OAAO,EAAE,GAAG,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAChE,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altopelago/aeon-sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Public TypeScript SDK facade for AEON document workflows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@altopelago/aeon-finalize": "0.12.
|
|
47
|
-
"@altopelago/aeon-
|
|
48
|
-
"@altopelago/aeon-
|
|
46
|
+
"@altopelago/aeon-finalize": "0.12.1",
|
|
47
|
+
"@altopelago/aeon-canonical": "0.12.1",
|
|
48
|
+
"@altopelago/aeon-core": "0.12.1"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsc -p tsconfig.json",
|