@altopelago/aeon-sdk 0.13.0 → 0.14.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 +66 -0
- package/dist/sansa.d.ts +54 -0
- package/dist/sansa.d.ts.map +1 -0
- package/dist/sansa.js +412 -0
- package/dist/sansa.js.map +1 -0
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -21,6 +21,67 @@ const film = readFilmDocument(filmBytes);
|
|
|
21
21
|
console.log(film.finalized.document);
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
+
### Query AEON with SANSA
|
|
25
|
+
|
|
26
|
+
The optional `@altopelago/aeon-sdk/sansa` entry point converts compiled AEON
|
|
27
|
+
events into the resolver namespace expected by `@altopelago/sansa`:
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { readAeonNamespace } from '@altopelago/aeon-sdk/sansa';
|
|
31
|
+
import { evaluateQuery } from '@altopelago/sansa';
|
|
32
|
+
|
|
33
|
+
const { namespace } = readAeonNamespace(`
|
|
34
|
+
inventory = {
|
|
35
|
+
items = [
|
|
36
|
+
{ sku = "A-100" active = true }
|
|
37
|
+
{ sku = "B-200" active = false }
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
`);
|
|
41
|
+
|
|
42
|
+
const result = evaluateQuery(
|
|
43
|
+
'from $.inventory.items.* where .active == true select { sku = .sku }',
|
|
44
|
+
namespace,
|
|
45
|
+
);
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
`readAeonNamespace()` requires successful compilation before returning. It
|
|
49
|
+
keeps finalization diagnostics alongside the lossless AES-backed namespace, so
|
|
50
|
+
AEON values that are not representable in strict JSON remain queryable. The
|
|
51
|
+
namespace exposes payload bindings by default; pass
|
|
52
|
+
`{ namespace: { scope: 'header' | 'full' } }` to select another document plane.
|
|
53
|
+
Full scope exposes explicit `$.header` and `$.body` roots so valid bindings with
|
|
54
|
+
the same canonical path in both planes remain independently addressable.
|
|
55
|
+
Use `createAeonNamespace(events)` when the source has already been compiled.
|
|
56
|
+
|
|
57
|
+
#### Semantics and limits
|
|
58
|
+
|
|
59
|
+
- `candidateAddress` is a locator in the namespace's current structure, not a
|
|
60
|
+
durable identity. Positional addresses can move after edits. A binding's
|
|
61
|
+
`identity`, when present, is separate opaque structural-occurrence metadata;
|
|
62
|
+
SANSA mutation adapters can combine it with observed-state checks to reject
|
|
63
|
+
stale targets.
|
|
64
|
+
- AES retains the source numeric lexeme. The namespace exposes finite AEON
|
|
65
|
+
numbers as canonical strings by default and supplies the same lexeme to
|
|
66
|
+
SANSA's exact numeric comparator. Pass
|
|
67
|
+
`{ numericMaterialization: 'native' }` to `createAeonNamespace()`, or under
|
|
68
|
+
the `namespace` option of `readAeonNamespace()`, to opt into JavaScript
|
|
69
|
+
numbers while retaining exact comparison metadata.
|
|
70
|
+
- AEON `decimal` is the representation-preserving `radix[10]` alias. The
|
|
71
|
+
adapter keeps its radix payload as text; numeric decimal interpretation and
|
|
72
|
+
ordering require an explicit trusted value-semantics profile. Radix-family
|
|
73
|
+
bindings expose their resolved `radixBase` for `decimal`, the reserved radix
|
|
74
|
+
aliases, and `radix[2]` through `radix[64]`, allowing SANSA's explicit
|
|
75
|
+
same-base radix-numeric profile to compare them without host-number coercion.
|
|
76
|
+
They also expose `radixScale`, the represented fractional digit count excluding
|
|
77
|
+
visual `_` separators: `%19.9900` reports 4 and `%19.99` reports 2. Scale is
|
|
78
|
+
representation metadata and does not alter either comparison mode.
|
|
79
|
+
- This integration provides bounded, deterministic, in-process resolution and
|
|
80
|
+
query evaluation over compiled events. It does not add persistence, indexes,
|
|
81
|
+
transactions, or a cost-based query optimizer.
|
|
82
|
+
- Query projections use AEON assignment syntax (`{ sku = .sku }`). `:` remains
|
|
83
|
+
reserved for datatype annotations.
|
|
84
|
+
|
|
24
85
|
## What This Package Does
|
|
25
86
|
|
|
26
87
|
- wraps common read flows around `@altopelago/aeon-core` and `@altopelago/aeon-finalize`
|
|
@@ -43,6 +104,11 @@ console.log(film.finalized.document);
|
|
|
43
104
|
- `readFilmDocument(input, options?)`
|
|
44
105
|
- `formatPath(path)`
|
|
45
106
|
- `indexEventsByPath(events)`
|
|
107
|
+
- `createAeonNamespace(events, options?)` from `@altopelago/aeon-sdk/sansa`
|
|
108
|
+
- `readAeonNamespace(input, options?)` from `@altopelago/aeon-sdk/sansa`
|
|
109
|
+
|
|
110
|
+
`CreateAeonNamespaceOptions` accepts `scope` and `numericMaterialization`.
|
|
111
|
+
The latter is `lossless` by default and may be set to `native` explicitly.
|
|
46
112
|
|
|
47
113
|
## Notes
|
|
48
114
|
|
package/dist/sansa.d.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { type CompileResult } from '@altopelago/aeon-core';
|
|
2
|
+
import type { SansaResolveBinding, SansaResolveNamespace } from '@altopelago/sansa';
|
|
3
|
+
import { type ReadAeonResult, type ReadAeonOptions } from './index.js';
|
|
4
|
+
export type AeonAssignmentEvent = CompileResult['events'][number];
|
|
5
|
+
export type AeonNamespaceScope = 'payload' | 'header' | 'full';
|
|
6
|
+
export type AeonNumericMaterialization = 'lossless' | 'native';
|
|
7
|
+
export interface CreateAeonNamespaceOptions {
|
|
8
|
+
/** Select the AEON document plane exposed at the SANSA root. Defaults to `payload`. */
|
|
9
|
+
readonly scope?: AeonNamespaceScope;
|
|
10
|
+
/** Materialize finite numbers as canonical strings or JavaScript numbers. Defaults to `lossless`. */
|
|
11
|
+
readonly numericMaterialization?: AeonNumericMaterialization;
|
|
12
|
+
}
|
|
13
|
+
export interface ReadAeonNamespaceOptions extends ReadAeonOptions {
|
|
14
|
+
readonly namespace?: CreateAeonNamespaceOptions;
|
|
15
|
+
}
|
|
16
|
+
export interface AeonSansaBinding extends SansaResolveBinding {
|
|
17
|
+
address: string;
|
|
18
|
+
identity?: string;
|
|
19
|
+
name?: string;
|
|
20
|
+
index?: number;
|
|
21
|
+
semanticType?: string;
|
|
22
|
+
representationKind?: string;
|
|
23
|
+
scalarKind?: string;
|
|
24
|
+
nullReason?: string;
|
|
25
|
+
numericLexeme?: string;
|
|
26
|
+
radixBase?: number;
|
|
27
|
+
radixScale?: number;
|
|
28
|
+
value?: unknown;
|
|
29
|
+
children: AeonSansaBinding[];
|
|
30
|
+
attributeSpace?: AeonSansaBinding;
|
|
31
|
+
nodeTag?: string;
|
|
32
|
+
sourcePlane?: 'header' | 'body';
|
|
33
|
+
}
|
|
34
|
+
export type AeonSansaNamespace = SansaResolveNamespace<AeonSansaBinding> & {
|
|
35
|
+
readonly root: AeonSansaBinding;
|
|
36
|
+
readonly numericLexeme: (binding: AeonSansaBinding) => string | undefined;
|
|
37
|
+
readonly radixBase: (binding: AeonSansaBinding) => number | undefined;
|
|
38
|
+
readonly radixScale: (binding: AeonSansaBinding) => number | undefined;
|
|
39
|
+
};
|
|
40
|
+
export interface ReadAeonNamespaceResult extends ReadAeonResult {
|
|
41
|
+
readonly eventsByPath: ReadonlyMap<string, AeonAssignmentEvent>;
|
|
42
|
+
readonly namespace: AeonSansaNamespace;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Adapt compiled AEON assignment events into a queryable SANSA namespace.
|
|
46
|
+
*
|
|
47
|
+
* Scalar AST values are exposed without losing finite-number precision while
|
|
48
|
+
* AEON datatype, representation, null, identity, and attribute metadata are
|
|
49
|
+
* kept on the corresponding binding.
|
|
50
|
+
*/
|
|
51
|
+
export declare function createAeonNamespace(events: readonly AeonAssignmentEvent[], options?: CreateAeonNamespaceOptions): AeonSansaNamespace;
|
|
52
|
+
/** Compile and adapt AEON source into a SANSA namespace. */
|
|
53
|
+
export declare function readAeonNamespace(input: string, options?: ReadAeonNamespaceOptions): ReadAeonNamespaceResult;
|
|
54
|
+
//# sourceMappingURL=sansa.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sansa.d.ts","sourceRoot":"","sources":["../src/sansa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAA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AE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;CACjC;AAED,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,gBAAgB,CAAC,GAAG;IACzE,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IAC1E,QAAQ,CAAC,SAAS,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;IACtE,QAAQ,CAAC,UAAU,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,MAAM,GAAG,SAAS,CAAC;CACxE,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAChE,QAAQ,CAAC,SAAS,EAAE,kBAAkB,CAAC;CACxC;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,SAAS,mBAAmB,EAAE,EACtC,OAAO,GAAE,0BAA+B,GACvC,kBAAkB,CAqEpB;AAED,4DAA4D;AAC5D,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,wBAA6B,GACrC,uBAAuB,CAYzB"}
|
package/dist/sansa.js
ADDED
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { aeonRadixBaseFromDatatype, aeonRadixScale, formatPath } from '@altopelago/aeon-core';
|
|
2
|
+
import { indexEventsByPath, readAeon, } from './index.js';
|
|
3
|
+
/**
|
|
4
|
+
* Adapt compiled AEON assignment events into a queryable SANSA namespace.
|
|
5
|
+
*
|
|
6
|
+
* Scalar AST values are exposed without losing finite-number precision while
|
|
7
|
+
* AEON datatype, representation, null, identity, and attribute metadata are
|
|
8
|
+
* kept on the corresponding binding.
|
|
9
|
+
*/
|
|
10
|
+
export function createAeonNamespace(events, options = {}) {
|
|
11
|
+
const scope = options.scope ?? 'payload';
|
|
12
|
+
const numericMaterialization = options.numericMaterialization ?? 'lossless';
|
|
13
|
+
const root = {
|
|
14
|
+
address: '$',
|
|
15
|
+
representationKind: 'object',
|
|
16
|
+
children: [],
|
|
17
|
+
};
|
|
18
|
+
const byAddress = new Map([['$', root]]);
|
|
19
|
+
const parents = new Map([[root, undefined]]);
|
|
20
|
+
if (scope === 'full') {
|
|
21
|
+
for (const sourcePlane of ['header', 'body']) {
|
|
22
|
+
const address = appendMember('$', sourcePlane);
|
|
23
|
+
const planeRoot = {
|
|
24
|
+
address,
|
|
25
|
+
name: sourcePlane,
|
|
26
|
+
sourcePlane,
|
|
27
|
+
representationKind: 'object',
|
|
28
|
+
children: [],
|
|
29
|
+
};
|
|
30
|
+
root.children.push(planeRoot);
|
|
31
|
+
byAddress.set(address, planeRoot);
|
|
32
|
+
parents.set(planeRoot, root);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
for (const event of events) {
|
|
36
|
+
if (!eventIsInScope(event, scope))
|
|
37
|
+
continue;
|
|
38
|
+
const sourcePlane = event.sourcePlane === 'header' ? 'header' : 'body';
|
|
39
|
+
const eventAddress = formatPath(event.path);
|
|
40
|
+
const eventParentAddress = parentPathAddress(event.path);
|
|
41
|
+
const address = scope === 'full' ? addressInPlane(sourcePlane, eventAddress) : eventAddress;
|
|
42
|
+
const parentAddress = scope === 'full' ? addressInPlane(sourcePlane, eventParentAddress) : eventParentAddress;
|
|
43
|
+
const parent = byAddress.get(parentAddress);
|
|
44
|
+
if (!parent) {
|
|
45
|
+
throw new Error(`AEON event '${address}' has no parent binding '${parentAddress}' in the selected '${scope}' scope.`);
|
|
46
|
+
}
|
|
47
|
+
const existing = byAddress.get(address);
|
|
48
|
+
if (existing) {
|
|
49
|
+
throw new Error(`AEON events contain more than one binding at '${address}'.`);
|
|
50
|
+
}
|
|
51
|
+
const binding = bindingFromEvent(event, address, parents, numericMaterialization);
|
|
52
|
+
byAddress.set(address, binding);
|
|
53
|
+
parents.set(binding, parent);
|
|
54
|
+
parent.children.push(binding);
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
root,
|
|
58
|
+
children: (binding) => binding.children,
|
|
59
|
+
parent: (binding) => parents.get(binding),
|
|
60
|
+
member: (binding, name) => binding.children.find((child) => child.name === name),
|
|
61
|
+
position: (binding, index) => binding.children.find((child) => child.index === index),
|
|
62
|
+
attributeSpace: (binding) => binding.attributeSpace,
|
|
63
|
+
name: (binding) => binding.name,
|
|
64
|
+
index: (binding) => binding.index,
|
|
65
|
+
semanticType: (binding) => binding.semanticType,
|
|
66
|
+
representationKind: (binding) => binding.representationKind,
|
|
67
|
+
value: (binding) => binding.value,
|
|
68
|
+
nullReason: (binding) => binding.nullReason,
|
|
69
|
+
numericLexeme: (binding) => binding.numericLexeme,
|
|
70
|
+
radixBase: (binding) => binding.radixBase,
|
|
71
|
+
radixScale: (binding) => binding.radixScale,
|
|
72
|
+
representationKindMatches: (binding, expected) => representationKindMatches(binding.representationKind, expected),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/** Compile and adapt AEON source into a SANSA namespace. */
|
|
76
|
+
export function readAeonNamespace(input, options = {}) {
|
|
77
|
+
const { namespace: namespaceOptions, ...readOptions } = options;
|
|
78
|
+
const result = readAeon(input, readOptions);
|
|
79
|
+
if (result.compile.errors.length > 0) {
|
|
80
|
+
const summary = result.compile.errors.map((error) => `${error.code}: ${error.message}`).join('\n');
|
|
81
|
+
throw new Error(`AEON compile failed with ${result.compile.errors.length} error(s):\n${summary}`);
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
...result,
|
|
85
|
+
eventsByPath: indexEventsByPath(result.compile.events),
|
|
86
|
+
namespace: createAeonNamespace(result.compile.events, namespaceOptions),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
function eventIsInScope(event, scope) {
|
|
90
|
+
if (scope === 'full')
|
|
91
|
+
return true;
|
|
92
|
+
if (scope === 'header')
|
|
93
|
+
return event.sourcePlane === 'header';
|
|
94
|
+
return event.sourcePlane !== 'header';
|
|
95
|
+
}
|
|
96
|
+
function parentPathAddress(path) {
|
|
97
|
+
if (path.segments.length <= 1)
|
|
98
|
+
return '$';
|
|
99
|
+
return formatPath({ segments: path.segments.slice(0, -1) });
|
|
100
|
+
}
|
|
101
|
+
function addressInPlane(sourcePlane, address) {
|
|
102
|
+
const planeRoot = appendMember('$', sourcePlane);
|
|
103
|
+
return address === '$' ? planeRoot : `${planeRoot}${address.slice(1)}`;
|
|
104
|
+
}
|
|
105
|
+
function bindingFromEvent(event, address, parents, numericMaterialization) {
|
|
106
|
+
const segment = event.path.segments[event.path.segments.length - 1];
|
|
107
|
+
const semanticType = event.datatype ?? semanticTypeFromValue(event.value);
|
|
108
|
+
const binding = {
|
|
109
|
+
address,
|
|
110
|
+
children: [],
|
|
111
|
+
representationKind: representationKindFromValue(event.value, semanticType),
|
|
112
|
+
...(event.structuralId !== undefined && event.structuralId !== null ? { identity: event.structuralId } : {}),
|
|
113
|
+
...(event.sourcePlane ? { sourcePlane: event.sourcePlane } : {}),
|
|
114
|
+
...(semanticType ? { semanticType } : {}),
|
|
115
|
+
};
|
|
116
|
+
if (segment?.type === 'member')
|
|
117
|
+
binding.name = segment.key;
|
|
118
|
+
if (segment?.type === 'index')
|
|
119
|
+
binding.index = segment.index;
|
|
120
|
+
const scalarKind = scalarKindFromValue(event.value, semanticType);
|
|
121
|
+
if (scalarKind !== undefined)
|
|
122
|
+
binding.scalarKind = scalarKind;
|
|
123
|
+
const nullReason = nullReasonFromValue(event.value);
|
|
124
|
+
if (nullReason !== undefined)
|
|
125
|
+
binding.nullReason = nullReason;
|
|
126
|
+
const numericLexeme = numericLexemeFromValue(event.value);
|
|
127
|
+
if (numericLexeme !== undefined)
|
|
128
|
+
binding.numericLexeme = numericLexeme;
|
|
129
|
+
const radixBase = radixBaseFromValue(event.value, semanticType);
|
|
130
|
+
if (radixBase !== undefined)
|
|
131
|
+
binding.radixBase = radixBase;
|
|
132
|
+
const radixScale = radixScaleFromValue(event.value, radixBase);
|
|
133
|
+
if (radixScale !== undefined)
|
|
134
|
+
binding.radixScale = radixScale;
|
|
135
|
+
const scalar = scalarFromAeonValue(event.value, numericMaterialization);
|
|
136
|
+
if (scalar.ok)
|
|
137
|
+
binding.value = scalar.value;
|
|
138
|
+
const unwrapped = unwrapTypedValue(event.value);
|
|
139
|
+
if (unwrapped.type === 'NodeLiteral')
|
|
140
|
+
binding.nodeTag = unwrapped.tag;
|
|
141
|
+
if (event.annotations?.size) {
|
|
142
|
+
binding.attributeSpace = buildAttributeSpace(address, event.annotations, binding, parents, numericMaterialization);
|
|
143
|
+
}
|
|
144
|
+
return binding;
|
|
145
|
+
}
|
|
146
|
+
function buildAttributeSpace(ownerAddress, annotations, owner, parents, numericMaterialization) {
|
|
147
|
+
const space = {
|
|
148
|
+
address: `${ownerAddress}.@`,
|
|
149
|
+
representationKind: 'attributeSpace',
|
|
150
|
+
children: [],
|
|
151
|
+
};
|
|
152
|
+
for (const [name, entry] of annotations) {
|
|
153
|
+
const semanticType = entry.datatype ?? semanticTypeFromValue(entry.value);
|
|
154
|
+
const binding = {
|
|
155
|
+
address: appendMember(space.address, name),
|
|
156
|
+
name,
|
|
157
|
+
children: [],
|
|
158
|
+
representationKind: representationKindFromValue(entry.value, semanticType),
|
|
159
|
+
...(entry.structuralId !== undefined && entry.structuralId !== null ? { identity: entry.structuralId } : {}),
|
|
160
|
+
...(semanticType ? { semanticType } : {}),
|
|
161
|
+
};
|
|
162
|
+
const scalarKind = scalarKindFromValue(entry.value, semanticType);
|
|
163
|
+
if (scalarKind !== undefined)
|
|
164
|
+
binding.scalarKind = scalarKind;
|
|
165
|
+
const nullReason = nullReasonFromValue(entry.value);
|
|
166
|
+
if (nullReason !== undefined)
|
|
167
|
+
binding.nullReason = nullReason;
|
|
168
|
+
const numericLexeme = numericLexemeFromValue(entry.value);
|
|
169
|
+
if (numericLexeme !== undefined)
|
|
170
|
+
binding.numericLexeme = numericLexeme;
|
|
171
|
+
const radixBase = radixBaseFromValue(entry.value, binding.semanticType);
|
|
172
|
+
if (radixBase !== undefined)
|
|
173
|
+
binding.radixBase = radixBase;
|
|
174
|
+
const radixScale = radixScaleFromValue(entry.value, radixBase);
|
|
175
|
+
if (radixScale !== undefined)
|
|
176
|
+
binding.radixScale = radixScale;
|
|
177
|
+
const scalar = scalarFromAeonValue(entry.value, numericMaterialization);
|
|
178
|
+
if (scalar.ok)
|
|
179
|
+
binding.value = scalar.value;
|
|
180
|
+
if (entry.annotations?.size) {
|
|
181
|
+
binding.attributeSpace = buildAttributeSpace(binding.address, entry.annotations, binding, parents, numericMaterialization);
|
|
182
|
+
}
|
|
183
|
+
parents.set(binding, space);
|
|
184
|
+
space.children.push(binding);
|
|
185
|
+
}
|
|
186
|
+
parents.set(space, owner);
|
|
187
|
+
return space;
|
|
188
|
+
}
|
|
189
|
+
function unwrapTypedValue(value) {
|
|
190
|
+
return value.type === 'TypedValue' ? unwrapTypedValue(value.value) : value;
|
|
191
|
+
}
|
|
192
|
+
function semanticTypeFromValue(value) {
|
|
193
|
+
const unwrapped = unwrapTypedValue(value);
|
|
194
|
+
switch (unwrapped.type) {
|
|
195
|
+
case 'StringLiteral': return 'string';
|
|
196
|
+
case 'NumberLiteral': return 'number';
|
|
197
|
+
case 'InfinityLiteral': return 'infinity';
|
|
198
|
+
case 'NaNLiteral': return 'nan';
|
|
199
|
+
case 'BooleanLiteral': return 'boolean';
|
|
200
|
+
case 'NullLiteral': return 'null';
|
|
201
|
+
case 'ToggleLiteral': return 'toggle';
|
|
202
|
+
case 'HexLiteral': return 'hex';
|
|
203
|
+
case 'RadixLiteral': return 'radix';
|
|
204
|
+
case 'EncodingLiteral': return 'encoding';
|
|
205
|
+
case 'SeparatorLiteral': return 'sep';
|
|
206
|
+
case 'SymbolicLiteral': return 'symbol';
|
|
207
|
+
case 'SansaAddressLiteral': return 'sansa';
|
|
208
|
+
case 'DateLiteral': return 'date';
|
|
209
|
+
case 'TimeLiteral': return 'time';
|
|
210
|
+
case 'DateTimeLiteral': return unwrapped.raw.includes('&') ? 'wtc' : 'datetime';
|
|
211
|
+
case 'ObjectNode':
|
|
212
|
+
case 'ListNode':
|
|
213
|
+
case 'TupleLiteral':
|
|
214
|
+
case 'NodeLiteral':
|
|
215
|
+
case 'CloneReference':
|
|
216
|
+
case 'PointerReference':
|
|
217
|
+
return undefined;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function representationKindFromValue(value, semanticType) {
|
|
221
|
+
const unwrapped = unwrapTypedValue(value);
|
|
222
|
+
switch (unwrapped.type) {
|
|
223
|
+
case 'ObjectNode': return 'object';
|
|
224
|
+
case 'ListNode': return 'list';
|
|
225
|
+
case 'TupleLiteral': return 'tuple';
|
|
226
|
+
case 'NodeLiteral': return 'node';
|
|
227
|
+
case 'StringLiteral': return 'string';
|
|
228
|
+
case 'NumberLiteral': return 'number';
|
|
229
|
+
case 'InfinityLiteral': return 'infinity';
|
|
230
|
+
case 'NaNLiteral': return 'nan';
|
|
231
|
+
case 'BooleanLiteral': return 'boolean';
|
|
232
|
+
case 'NullLiteral': return 'null';
|
|
233
|
+
case 'ToggleLiteral': return 'toggle';
|
|
234
|
+
case 'HexLiteral': return 'hex';
|
|
235
|
+
case 'RadixLiteral': return 'radix';
|
|
236
|
+
case 'EncodingLiteral': return 'encoding';
|
|
237
|
+
case 'SeparatorLiteral': return 'separator';
|
|
238
|
+
case 'SymbolicLiteral': return 'symbol';
|
|
239
|
+
case 'SansaAddressLiteral': return 'sansa';
|
|
240
|
+
case 'DateLiteral': return 'date';
|
|
241
|
+
case 'TimeLiteral': return temporalKindFromSemanticType(semanticType);
|
|
242
|
+
case 'DateTimeLiteral': return temporalKindFromSemanticType(semanticType);
|
|
243
|
+
case 'CloneReference': return 'cloneReference';
|
|
244
|
+
case 'PointerReference': return 'pointerReference';
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
function scalarKindFromValue(value, semanticType) {
|
|
248
|
+
const unwrapped = unwrapTypedValue(value);
|
|
249
|
+
switch (unwrapped.type) {
|
|
250
|
+
case 'NullLiteral': return 'null';
|
|
251
|
+
case 'InfinityLiteral': return 'infinity';
|
|
252
|
+
case 'NaNLiteral': return 'nan';
|
|
253
|
+
case 'ToggleLiteral': return 'toggle';
|
|
254
|
+
case 'HexLiteral': return 'hex';
|
|
255
|
+
case 'RadixLiteral': return 'radix';
|
|
256
|
+
case 'EncodingLiteral': return 'encoding';
|
|
257
|
+
case 'SeparatorLiteral': return 'separator';
|
|
258
|
+
case 'SymbolicLiteral': return 'symbol';
|
|
259
|
+
case 'SansaAddressLiteral': return 'sansaAddress';
|
|
260
|
+
case 'NumberLiteral': return 'number';
|
|
261
|
+
case 'DateLiteral': return 'date';
|
|
262
|
+
case 'TimeLiteral': return temporalKindFromSemanticType(semanticType);
|
|
263
|
+
case 'DateTimeLiteral': return temporalKindFromSemanticType(semanticType);
|
|
264
|
+
case 'CloneReference':
|
|
265
|
+
case 'PointerReference':
|
|
266
|
+
return 'referenceForm';
|
|
267
|
+
case 'StringLiteral':
|
|
268
|
+
case 'BooleanLiteral':
|
|
269
|
+
case 'ObjectNode':
|
|
270
|
+
case 'ListNode':
|
|
271
|
+
case 'TupleLiteral':
|
|
272
|
+
case 'NodeLiteral':
|
|
273
|
+
return undefined;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
function scalarFromAeonValue(value, numericMaterialization) {
|
|
277
|
+
const unwrapped = unwrapTypedValue(value);
|
|
278
|
+
switch (unwrapped.type) {
|
|
279
|
+
case 'StringLiteral':
|
|
280
|
+
case 'DateLiteral':
|
|
281
|
+
case 'DateTimeLiteral':
|
|
282
|
+
case 'TimeLiteral':
|
|
283
|
+
case 'HexLiteral':
|
|
284
|
+
case 'RadixLiteral':
|
|
285
|
+
case 'EncodingLiteral':
|
|
286
|
+
case 'SeparatorLiteral':
|
|
287
|
+
case 'SymbolicLiteral':
|
|
288
|
+
case 'ToggleLiteral':
|
|
289
|
+
return { ok: true, value: unwrapped.value };
|
|
290
|
+
case 'NumberLiteral':
|
|
291
|
+
return {
|
|
292
|
+
ok: true,
|
|
293
|
+
value: numericMaterialization === 'native' ? Number(unwrapped.value) : unwrapped.value,
|
|
294
|
+
};
|
|
295
|
+
case 'InfinityLiteral':
|
|
296
|
+
return { ok: true, value: unwrapped.value === '-Infinity' ? -Infinity : Infinity };
|
|
297
|
+
case 'NaNLiteral':
|
|
298
|
+
return { ok: true, value: Number.NaN };
|
|
299
|
+
case 'BooleanLiteral':
|
|
300
|
+
return { ok: true, value: unwrapped.value };
|
|
301
|
+
case 'NullLiteral':
|
|
302
|
+
return { ok: true, value: null };
|
|
303
|
+
case 'SansaAddressLiteral':
|
|
304
|
+
return {
|
|
305
|
+
ok: true,
|
|
306
|
+
value: {
|
|
307
|
+
type: 'SansaAddressLiteral',
|
|
308
|
+
address: unwrapped.canonical,
|
|
309
|
+
canonical: unwrapped.canonical,
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
case 'CloneReference':
|
|
313
|
+
case 'PointerReference':
|
|
314
|
+
return {
|
|
315
|
+
ok: true,
|
|
316
|
+
value: {
|
|
317
|
+
type: unwrapped.type,
|
|
318
|
+
path: unwrapped.path,
|
|
319
|
+
canonical: `${unwrapped.type === 'PointerReference' ? '~>' : '~'}${formatReferencePath(unwrapped.path)}`,
|
|
320
|
+
},
|
|
321
|
+
};
|
|
322
|
+
case 'ObjectNode':
|
|
323
|
+
case 'ListNode':
|
|
324
|
+
case 'TupleLiteral':
|
|
325
|
+
case 'NodeLiteral':
|
|
326
|
+
return { ok: false };
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function numericLexemeFromValue(value) {
|
|
330
|
+
const unwrapped = unwrapTypedValue(value);
|
|
331
|
+
return unwrapped.type === 'NumberLiteral' ? unwrapped.value : undefined;
|
|
332
|
+
}
|
|
333
|
+
function radixBaseFromValue(value, semanticType) {
|
|
334
|
+
const unwrapped = unwrapTypedValue(value);
|
|
335
|
+
return unwrapped.type === 'RadixLiteral' ? aeonRadixBaseFromDatatype(semanticType) : undefined;
|
|
336
|
+
}
|
|
337
|
+
function radixScaleFromValue(value, radixBase) {
|
|
338
|
+
const unwrapped = unwrapTypedValue(value);
|
|
339
|
+
if (unwrapped.type !== 'RadixLiteral')
|
|
340
|
+
return undefined;
|
|
341
|
+
return aeonRadixScale(unwrapped.value, radixBase) ?? undefined;
|
|
342
|
+
}
|
|
343
|
+
function nullReasonFromValue(value) {
|
|
344
|
+
const unwrapped = unwrapTypedValue(value);
|
|
345
|
+
return unwrapped.type === 'NullLiteral' ? unwrapped.value : undefined;
|
|
346
|
+
}
|
|
347
|
+
function temporalKindFromSemanticType(semanticType) {
|
|
348
|
+
const base = semanticType?.split(/[<[]/u, 1)[0];
|
|
349
|
+
return base && ['date', 'time', 'datetime', 'wtc'].includes(base) ? base : 'datetime';
|
|
350
|
+
}
|
|
351
|
+
function representationKindMatches(actual, expected) {
|
|
352
|
+
if (!actual)
|
|
353
|
+
return false;
|
|
354
|
+
return actual === expected || lowerFirst(actual) === expected || representationAlias(actual) === expected;
|
|
355
|
+
}
|
|
356
|
+
function representationAlias(kind) {
|
|
357
|
+
switch (kind) {
|
|
358
|
+
case 'StringLiteral': return 'string';
|
|
359
|
+
case 'NumberLiteral': return 'number';
|
|
360
|
+
case 'InfinityLiteral': return 'infinity';
|
|
361
|
+
case 'NaNLiteral': return 'nan';
|
|
362
|
+
case 'NullLiteral': return 'null';
|
|
363
|
+
case 'BooleanLiteral': return 'boolean';
|
|
364
|
+
case 'ToggleLiteral': return 'toggle';
|
|
365
|
+
case 'HexLiteral': return 'hex';
|
|
366
|
+
case 'RadixLiteral': return 'radix';
|
|
367
|
+
case 'EncodingLiteral': return 'encoding';
|
|
368
|
+
case 'SeparatorLiteral': return 'separator';
|
|
369
|
+
case 'SymbolicLiteral': return 'symbol';
|
|
370
|
+
case 'SansaAddressLiteral': return 'sansa';
|
|
371
|
+
case 'DateLiteral': return 'date';
|
|
372
|
+
case 'TimeLiteral': return 'time';
|
|
373
|
+
case 'DateTimeLiteral': return 'datetime';
|
|
374
|
+
case 'ObjectNode': return 'object';
|
|
375
|
+
case 'ListNode': return 'list';
|
|
376
|
+
case 'TupleLiteral': return 'tuple';
|
|
377
|
+
case 'NodeLiteral': return 'node';
|
|
378
|
+
case 'CloneReference': return 'cloneReference';
|
|
379
|
+
case 'PointerReference': return 'pointerReference';
|
|
380
|
+
default: return undefined;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
function lowerFirst(value) {
|
|
384
|
+
return value.length === 0 ? value : `${value[0].toLowerCase()}${value.slice(1)}`;
|
|
385
|
+
}
|
|
386
|
+
function appendMember(base, name) {
|
|
387
|
+
return /^[A-Za-z_][A-Za-z0-9_]*$/u.test(name)
|
|
388
|
+
? `${base}.${name}`
|
|
389
|
+
: `${base}.[${JSON.stringify(name)}]`;
|
|
390
|
+
}
|
|
391
|
+
function formatReferencePath(path) {
|
|
392
|
+
let output = '';
|
|
393
|
+
for (let index = 0; index < path.length; index += 1) {
|
|
394
|
+
const segment = path[index];
|
|
395
|
+
if (typeof segment === 'number') {
|
|
396
|
+
output += `[${segment}]`;
|
|
397
|
+
continue;
|
|
398
|
+
}
|
|
399
|
+
if (typeof segment === 'object') {
|
|
400
|
+
output += /^[A-Za-z_][A-Za-z0-9_]*$/u.test(segment.key)
|
|
401
|
+
? `.@.${segment.key}`
|
|
402
|
+
: `.@.[${JSON.stringify(segment.key)}]`;
|
|
403
|
+
continue;
|
|
404
|
+
}
|
|
405
|
+
const rendered = /^[A-Za-z_][A-Za-z0-9_]*$/u.test(segment)
|
|
406
|
+
? segment
|
|
407
|
+
: `[${JSON.stringify(segment)}]`;
|
|
408
|
+
output += index === 0 ? rendered : `.${rendered}`;
|
|
409
|
+
}
|
|
410
|
+
return output;
|
|
411
|
+
}
|
|
412
|
+
//# sourceMappingURL=sansa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C/G,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAE,CAAC;QAC7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,MAAM,IAAI,IAAI,OAAO,GAAG,CAAC;YACzB,SAAS;QACX,CAAC;QACD,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;YAChC,MAAM,IAAI,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;gBACrD,CAAC,CAAC,MAAM,OAAO,CAAC,GAAG,EAAE;gBACrB,CAAC,CAAC,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;YAC1C,SAAS;QACX,CAAC;QACD,MAAM,QAAQ,GAAG,2BAA2B,CAAC,IAAI,CAAC,OAAO,CAAC;YACxD,CAAC,CAAC,OAAO;YACT,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC;QACnC,MAAM,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC;IACpD,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@altopelago/aeon-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Public TypeScript SDK facade for AEON document workflows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
".": {
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"import": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./sansa": {
|
|
15
|
+
"types": "./dist/sansa.d.ts",
|
|
16
|
+
"import": "./dist/sansa.js"
|
|
13
17
|
}
|
|
14
18
|
},
|
|
15
19
|
"files": [
|
|
@@ -43,9 +47,10 @@
|
|
|
43
47
|
"access": "public"
|
|
44
48
|
},
|
|
45
49
|
"dependencies": {
|
|
46
|
-
"@altopelago/
|
|
47
|
-
"@altopelago/aeon-
|
|
48
|
-
"@altopelago/aeon-finalize": "0.
|
|
50
|
+
"@altopelago/sansa": "0.12.0",
|
|
51
|
+
"@altopelago/aeon-core": "0.14.0",
|
|
52
|
+
"@altopelago/aeon-finalize": "0.14.0",
|
|
53
|
+
"@altopelago/aeon-canonical": "0.14.0"
|
|
49
54
|
},
|
|
50
55
|
"scripts": {
|
|
51
56
|
"build": "tsc -p tsconfig.json",
|