@altopelago/aeon-sdk 0.12.0 → 0.13.0
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 +20 -1
- package/dist/index.d.ts +63 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +159 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -5,13 +5,20 @@ 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, readFilmDocument, 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);
|
|
19
|
+
|
|
20
|
+
const film = readFilmDocument(filmBytes);
|
|
21
|
+
console.log(film.finalized.document);
|
|
15
22
|
```
|
|
16
23
|
|
|
17
24
|
## What This Package Does
|
|
@@ -26,6 +33,14 @@ console.log(emitted.text);
|
|
|
26
33
|
- `readAeonChecked(input, options?)`
|
|
27
34
|
- `readAeonStrictCustom(input)`
|
|
28
35
|
- `writeAeon(object, options?)`
|
|
36
|
+
- `aeonToTelex(input, options?)`
|
|
37
|
+
- `readTelex(input, options?)`
|
|
38
|
+
- `readTelexChecked(input, options?)`
|
|
39
|
+
- `readTelexDocument(input, options?)`
|
|
40
|
+
- `readTelexDocumentChecked(input, options?)`
|
|
41
|
+
- `writeTelex(records, options?)`
|
|
42
|
+
- `readFilm(input, options?)`
|
|
43
|
+
- `readFilmDocument(input, options?)`
|
|
29
44
|
- `formatPath(path)`
|
|
30
45
|
- `indexEventsByPath(events)`
|
|
31
46
|
|
|
@@ -34,3 +49,7 @@ console.log(emitted.text);
|
|
|
34
49
|
- Prefer this package for simple application examples.
|
|
35
50
|
- Use `@altopelago/aeon-core` when you only need compile-only behavior.
|
|
36
51
|
- Use `@altopelago/aeon-runtime` when you need the full orchestrated runtime pipeline.
|
|
52
|
+
- Film is reader-only. This package deliberately exposes no Film writer or
|
|
53
|
+
AEON-to-Film conversion helper.
|
|
54
|
+
- `aeonicLimits` contributes its shared AES structural and processing values to
|
|
55
|
+
Film. Select Film-local byte ceilings separately with `filmLimits`.
|
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 EffectiveAesConfiguration, type EffectiveTelexConfiguration, type ParsedTelex, type PortableAesEvent, type TelexEncodeOptions, type TelexRecord, type TelexLimitOptions, type TelexValidationOptions, type TelexValidationResult, type FilmDecodeOptions, type FilmStream } 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,71 @@ 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 ReadFilmOptions extends FilmDecodeOptions {
|
|
35
|
+
/** Trusted, consumer-selected common limits document. */
|
|
36
|
+
readonly aeonicLimits?: AeonicLimitsV1;
|
|
37
|
+
}
|
|
38
|
+
export interface ReadFilmResult {
|
|
39
|
+
readonly stream: FilmStream;
|
|
40
|
+
readonly records: FilmStream['records'];
|
|
41
|
+
readonly effectiveLimits?: EffectiveAesConfiguration;
|
|
42
|
+
}
|
|
43
|
+
export interface ReadFilmDocumentOptions {
|
|
44
|
+
readonly film?: FilmDecodeOptions;
|
|
45
|
+
readonly finalize?: Omit<FinalizePortableJsonOptions, 'profile' | 'projection'>;
|
|
46
|
+
/** Trusted, consumer-selected common limits document. */
|
|
47
|
+
readonly aeonicLimits?: AeonicLimitsV1;
|
|
48
|
+
}
|
|
49
|
+
export interface ReadFilmDocumentResult extends ReadFilmResult {
|
|
50
|
+
readonly finalized: FinalizeJsonResult;
|
|
51
|
+
}
|
|
52
|
+
export interface AeonToTelexOptions extends CompileToTelexOptions {
|
|
53
|
+
/** Trusted, consumer-selected common limits document. */
|
|
54
|
+
readonly aeonicLimits?: AeonicLimitsV1;
|
|
55
|
+
}
|
|
56
|
+
export interface AeonToTelexResult extends CompileToTelexResult {
|
|
57
|
+
readonly effectiveLimits?: EffectiveTelexConfiguration;
|
|
58
|
+
}
|
|
15
59
|
export declare function readAeon(input: string, options?: ReadAeonOptions): ReadAeonResult;
|
|
16
60
|
export declare function indexEventsByPath(events: readonly CompileResult['events'][number][]): ReadonlyMap<string, CompileResult['events'][number]>;
|
|
17
61
|
export declare function readAeonChecked(input: string, options?: ReadAeonOptions): ReadAeonCheckedResult;
|
|
18
62
|
export declare function readAeonStrictCustom(input: string): ReadAeonCheckedResult;
|
|
19
63
|
export declare function writeAeon(object: Readonly<Record<string, unknown>>, options?: EmitObjectOptions): EmitResult;
|
|
64
|
+
/** Decode and validate an interoperable Telex stream. */
|
|
65
|
+
export declare function readTelex(input: string, options?: ReadTelexOptions): ReadTelexResult;
|
|
66
|
+
/** Decode Telex and throw when its default or declared AES profile is invalid. */
|
|
67
|
+
export declare function readTelexChecked(input: string, options?: ReadTelexOptions): ReadTelexResult;
|
|
68
|
+
/** Decode, validate, and materialize a complete Telex stream as JSON. */
|
|
69
|
+
export declare function readTelexDocument(input: string, options?: ReadTelexDocumentOptions): ReadTelexDocumentResult;
|
|
70
|
+
/** Decode and materialize Telex, throwing on AES or finalization errors. */
|
|
71
|
+
export declare function readTelexDocumentChecked(input: string, options?: ReadTelexDocumentOptions): ReadTelexDocumentResult;
|
|
72
|
+
/** Decode and completely validate a reader-first Film v1 stream. */
|
|
73
|
+
export declare function readFilm(input: Uint8Array, options?: ReadFilmOptions): ReadFilmResult;
|
|
74
|
+
/** Decode, validate, and materialize Film without exposing a Film writer. */
|
|
75
|
+
export declare function readFilmDocument(input: Uint8Array, options?: ReadFilmDocumentOptions): ReadFilmDocumentResult;
|
|
76
|
+
/** Encode portable AES records as a Telex stream. */
|
|
77
|
+
export declare function writeTelex(records: readonly (TelexRecord | PortableAesEvent)[], options?: TelexEncodeOptions): string;
|
|
78
|
+
/** Compile AEON source and export its portable event stream as Telex. */
|
|
79
|
+
export declare function aeonToTelex(input: string, options?: AeonToTelexOptions): AeonToTelexResult;
|
|
20
80
|
export { formatPath };
|
|
21
|
-
export type { CompileOptions, CompileResult, FinalizeOptions, FinalizeJsonResult, EmitObjectOptions, EmitResult, };
|
|
81
|
+
export type { CompileOptions, CompileResult, FinalizeOptions, FinalizeJsonResult, FinalizePortableJsonOptions, EmitObjectOptions, EmitResult, CompileToTelexOptions, CompileToTelexResult, ParsedTelex, PortableAesEvent, TelexEncodeOptions, TelexLimitOptions, TelexRecord, TelexValidationOptions, TelexValidationResult, FilmDecodeOptions, FilmStream, };
|
|
22
82
|
//# 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,EAQL,UAAU,EAGV,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAEhC,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAChB,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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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, decodeFilm, effectiveAesConfiguration, 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,161 @@ 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
|
+
/** Decode and completely validate a reader-first Film v1 stream. */
|
|
101
|
+
export function readFilm(input, options = {}) {
|
|
102
|
+
const { aeonicLimits, ...explicit } = options;
|
|
103
|
+
const effectiveLimits = resolveEffectiveAesConfiguration(aeonicLimits, explicit);
|
|
104
|
+
const stream = decodeFilm(input, effectiveLimits
|
|
105
|
+
? { ...explicit, aesLimits: effectiveLimits.aes }
|
|
106
|
+
: explicit);
|
|
107
|
+
return {
|
|
108
|
+
stream,
|
|
109
|
+
records: stream.records,
|
|
110
|
+
...(effectiveLimits ? { effectiveLimits } : {}),
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/** Decode, validate, and materialize Film without exposing a Film writer. */
|
|
114
|
+
export function readFilmDocument(input, options = {}) {
|
|
115
|
+
const effectiveLimits = resolveEffectiveAesConfiguration(options.aeonicLimits, options.film, options.finalize);
|
|
116
|
+
const result = readFilm(input, {
|
|
117
|
+
...(options.film ?? {}),
|
|
118
|
+
...(options.aeonicLimits ? { aeonicLimits: options.aeonicLimits } : {}),
|
|
119
|
+
});
|
|
120
|
+
const finalized = finalizePortableJson(result.records, {
|
|
121
|
+
...(effectiveLimits?.finalization ?? {}),
|
|
122
|
+
...(effectiveLimits?.aes ?? {}),
|
|
123
|
+
...filmAesValidationOptions(options.film),
|
|
124
|
+
...(options.finalize ?? {}),
|
|
125
|
+
profile: result.stream.profile,
|
|
126
|
+
projection: result.stream.projection,
|
|
127
|
+
});
|
|
128
|
+
return {
|
|
129
|
+
...result,
|
|
130
|
+
finalized,
|
|
131
|
+
...(effectiveLimits ? { effectiveLimits } : {}),
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function filmAesValidationOptions(options = {}) {
|
|
135
|
+
const { filmLimits: _filmLimits, maxInputBytes: _maxInputBytes, maxRecordBytes: _maxRecordBytes, maxFieldBytes: _maxFieldBytes, maxBufferedBytes: _maxBufferedBytes, aesLimits, limits, ...shared } = options;
|
|
136
|
+
return { ...shared, ...(limits ?? {}), ...(aesLimits ?? {}) };
|
|
137
|
+
}
|
|
138
|
+
function resolveEffectiveAesConfiguration(limits, filmOverrides, finalizationOverrides = undefined) {
|
|
139
|
+
if (!limits)
|
|
140
|
+
return undefined;
|
|
141
|
+
const selected = effectiveAesConfiguration(limits);
|
|
142
|
+
const aes = { ...selected.aes };
|
|
143
|
+
const finalization = { ...selected.finalization };
|
|
144
|
+
const overrides = filmAesValidationOptions(filmOverrides);
|
|
145
|
+
let overridesApplied = false;
|
|
146
|
+
for (const key of Object.keys(aes)) {
|
|
147
|
+
const override = overrides[key];
|
|
148
|
+
if (override !== undefined && override !== aes[key]) {
|
|
149
|
+
aes[key] = override;
|
|
150
|
+
overridesApplied = true;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
for (const key of ['maxReferenceDepth', 'maxMaterializedWeight']) {
|
|
154
|
+
const override = finalizationOverrides?.[key];
|
|
155
|
+
if (override !== undefined && override !== finalization[key]) {
|
|
156
|
+
finalization[key] = override;
|
|
157
|
+
overridesApplied = true;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return { ...selected, aes, finalization, overridesApplied };
|
|
161
|
+
}
|
|
162
|
+
/** Encode portable AES records as a Telex stream. */
|
|
163
|
+
export function writeTelex(records, options = {}) {
|
|
164
|
+
return encodeTelex(records, options);
|
|
165
|
+
}
|
|
166
|
+
/** Compile AEON source and export its portable event stream as Telex. */
|
|
167
|
+
export function aeonToTelex(input, options = {}) {
|
|
168
|
+
const { aeonicLimits, ...explicit } = options;
|
|
169
|
+
if (!aeonicLimits)
|
|
170
|
+
return compileToTelex(input, explicit);
|
|
171
|
+
const effectiveLimits = resolveEffectiveTelexConfiguration(aeonicLimits, explicit.telex);
|
|
172
|
+
const result = compileToTelex(input, {
|
|
173
|
+
...explicit,
|
|
174
|
+
compile: { ...aeonCompileLimits(aeonicLimits), ...(explicit.compile ?? {}) },
|
|
175
|
+
telex: { ...effectiveLimits?.telex, ...(explicit.telex ?? {}) },
|
|
176
|
+
});
|
|
177
|
+
return { ...result, effectiveLimits: effectiveLimits };
|
|
178
|
+
}
|
|
179
|
+
function resolveEffectiveTelexConfiguration(limits, telexOverrides, finalizationOverrides = undefined) {
|
|
180
|
+
if (!limits)
|
|
181
|
+
return undefined;
|
|
182
|
+
const selected = effectiveTelexConfiguration(limits);
|
|
183
|
+
const telex = { ...selected.telex };
|
|
184
|
+
const finalization = { ...selected.finalization };
|
|
185
|
+
let overridesApplied = false;
|
|
186
|
+
for (const key of Object.keys(telex)) {
|
|
187
|
+
const override = telexOverrides?.[key];
|
|
188
|
+
if (override !== undefined && override !== telex[key]) {
|
|
189
|
+
telex[key] = override;
|
|
190
|
+
overridesApplied = true;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
for (const key of ['maxReferenceDepth', 'maxMaterializedWeight']) {
|
|
194
|
+
const override = finalizationOverrides?.[key];
|
|
195
|
+
if (override !== undefined && override !== finalization[key]) {
|
|
196
|
+
finalization[key] = override;
|
|
197
|
+
overridesApplied = true;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
return { ...selected, telex, finalization, overridesApplied };
|
|
201
|
+
}
|
|
45
202
|
export { formatPath };
|
|
46
203
|
//# 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,E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AAK,CAA2B,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.
|
|
3
|
+
"version": "0.13.0",
|
|
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-
|
|
47
|
-
"@altopelago/aeon-
|
|
48
|
-
"@altopelago/aeon-
|
|
46
|
+
"@altopelago/aeon-core": "0.13.0",
|
|
47
|
+
"@altopelago/aeon-canonical": "0.13.0",
|
|
48
|
+
"@altopelago/aeon-finalize": "0.13.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "tsc -p tsconfig.json",
|