@altopelago/sansa 0.14.2 → 0.15.0-rc.2
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/CHANGELOG.md +118 -1
- package/README.md +96 -1
- package/conformance/README.md +8 -0
- package/conformance/aeonic-anchor-claims.json +133 -0
- package/conformance/aeonic-arithmetic-claims.json +60 -0
- package/conformance/aeonic-clock-claims.json +123 -0
- package/conformance/aeonic-comparison-claims.json +37 -0
- package/conformance/aeonic-datetime-claims.json +110 -0
- package/conformance/aeonic-rational-arithmetic-claims.json +72 -0
- package/conformance/aeonic-temporal-claims.json +105 -0
- package/conformance/cts-claims.json +17 -3
- package/conformance/results/aeonic-anchor-capacity.json +452 -0
- package/conformance/results/aeonic-anchor-snapshot-0.1.json +39 -0
- package/conformance/results/aeonic-arithmetic-snapshot-0.1.json +28 -0
- package/conformance/results/aeonic-clock-all-snapshot-0.1.json +49 -0
- package/conformance/results/aeonic-clock-arithmetic-snapshot-0.1.json +48 -0
- package/conformance/results/aeonic-clock-capacity.json +326 -0
- package/conformance/results/aeonic-clock-relations-snapshot-0.1.json +48 -0
- package/conformance/results/aeonic-comparison-snapshot-0.1.json +19 -0
- package/conformance/results/aeonic-datetime-all-snapshot-0.1.json +47 -0
- package/conformance/results/aeonic-datetime-arithmetic-snapshot-0.1.json +46 -0
- package/conformance/results/aeonic-datetime-capacity.json +302 -0
- package/conformance/results/aeonic-datetime-relations-snapshot-0.1.json +46 -0
- package/conformance/results/aeonic-rational-arithmetic-capacity.json +100 -0
- package/conformance/results/aeonic-rational-arithmetic-snapshot-0.2.json +30 -0
- package/conformance/results/aeonic-temporal-all-property-addressing-2026-11-16.json +39 -0
- package/conformance/results/aeonic-temporal-all-snapshot-0.1.json +39 -0
- package/conformance/results/aeonic-temporal-calendar-property-addressing-2026-11-16.json +38 -0
- package/conformance/results/aeonic-temporal-calendar-snapshot-0.1.json +38 -0
- package/conformance/results/aeonic-temporal-capacity-property-addressing-2026-11-16.json +136 -0
- package/conformance/results/aeonic-temporal-capacity.json +136 -0
- package/conformance/results/aeonic-temporal-relations-property-addressing-2026-11-16.json +38 -0
- package/conformance/results/aeonic-temporal-relations-snapshot-0.1.json +38 -0
- package/docs/aeonic-arithmetic.md +126 -0
- package/docs/aeonic-comparison.md +123 -0
- package/docs/aeonic-rational-arithmetic.md +167 -0
- package/docs/aeonic-temporal-civil-anchor.md +89 -0
- package/docs/aeonic-temporal-civil-clock.md +100 -0
- package/docs/aeonic-temporal-civil-date.md +124 -0
- package/docs/aeonic-temporal-civil-datetime.md +122 -0
- package/docs/api-contract.md +130 -3
- package/docs/capabilities.json +106 -2
- package/docs/child-identity-activation.md +93 -0
- package/docs/child-identity-candidate.md +60 -0
- package/docs/child-identity-tooling.md +31 -0
- package/docs/child-identity-workflows.md +102 -0
- package/docs/empty-keys-candidate.md +29 -0
- package/docs/migration-0.15.0.md +75 -0
- package/docs/property-addressing-implementation.md +118 -0
- package/docs/property-resolve-implementation.md +105 -0
- package/docs/property-selector-support.md +65 -0
- package/docs/property-selectors-api.d.ts +43 -0
- package/docs/property-selectors-api.pyi +27 -0
- package/docs/property-selectors-api.rs +48 -0
- package/docs/property-selectors-contract.md +168 -0
- package/docs/query-tool.md +32 -1
- package/docs/selector-cursor.md +45 -0
- package/docs/unicode-hardening.md +41 -0
- package/fixtures/address-v1.json +4 -3
- package/fixtures/child-identity-workflows/README.md +9 -0
- package/fixtures/child-identity-workflows/moved.aeon +10 -0
- package/fixtures/child-identity-workflows/original.aeon +10 -0
- package/fixtures/child-identity-workflows/reordered.aeon +10 -0
- package/fixtures/child-identity-workflows/replacement.aeon +10 -0
- package/fixtures/child-identity-workflows/workflows.json +89 -0
- package/fixtures/property-namespace-candidate-v1.json +336 -0
- package/fixtures/property-parser-candidate-v1.json +705 -0
- package/fixtures/property-query-candidate-v1.json +398 -0
- package/fixtures/property-resolve-candidate-v1.json +2702 -0
- package/fixtures/unicode-hardening-v1.json +401 -0
- package/package.json +30 -3
- package/scripts/calibrate-aeonic-anchor-capacity.py +294 -0
- package/scripts/calibrate-aeonic-clock-capacity.py +62 -0
- package/scripts/calibrate-aeonic-datetime-capacity.py +76 -0
- package/scripts/calibrate-aeonic-rational-capacity.py +85 -0
- package/scripts/calibrate-aeonic-temporal-capacity.py +95 -0
- package/scripts/cts-address.mjs +6 -2
- package/scripts/cts-aeonic-anchor.mjs +21 -0
- package/scripts/cts-aeonic-arithmetic-adapter.mjs +25 -0
- package/scripts/cts-aeonic-arithmetic.mjs +24 -0
- package/scripts/cts-aeonic-clock.mjs +24 -0
- package/scripts/cts-aeonic-comparison-adapter.mjs +30 -0
- package/scripts/cts-aeonic-comparison.mjs +25 -0
- package/scripts/cts-aeonic-datetime.mjs +24 -0
- package/scripts/cts-aeonic-rational-arithmetic-adapter.mjs +25 -0
- package/scripts/cts-aeonic-rational-arithmetic.mjs +24 -0
- package/scripts/cts-aeonic-temporal-civil-anchor-adapter.mjs +26 -0
- package/scripts/cts-aeonic-temporal-civil-clock-adapter.mjs +28 -0
- package/scripts/cts-aeonic-temporal-civil-date-adapter.mjs +28 -0
- package/scripts/cts-aeonic-temporal-civil-datetime-adapter.mjs +28 -0
- package/scripts/cts-aeonic-temporal.mjs +24 -0
- package/scripts/cts-instruction.mjs +4 -2
- package/scripts/cts-mutate.mjs +3 -2
- package/scripts/cts-resolve.mjs +17 -2
- package/scripts/playground.mjs +110 -0
- package/src/aeonic-arithmetic-binding.js +61 -0
- package/src/aeonic-arithmetic.d.ts +84 -0
- package/src/aeonic-arithmetic.js +276 -0
- package/src/aeonic-comparison.d.ts +86 -0
- package/src/aeonic-comparison.js +274 -0
- package/src/aeonic-convenience.d.ts +30 -0
- package/src/aeonic-convenience.js +45 -0
- package/src/aeonic-exact-number.js +34 -0
- package/src/aeonic-json.js +45 -0
- package/src/aeonic-rational-arithmetic.d.ts +86 -0
- package/src/aeonic-rational-arithmetic.js +417 -0
- package/src/aeonic-rational-json.js +51 -0
- package/src/aeonic-temporal-civil-anchor.d.ts +54 -0
- package/src/aeonic-temporal-civil-anchor.js +316 -0
- package/src/aeonic-temporal-civil-clock.d.ts +124 -0
- package/src/aeonic-temporal-civil-clock.js +388 -0
- package/src/aeonic-temporal-civil-date.d.ts +123 -0
- package/src/aeonic-temporal-civil-date.js +310 -0
- package/src/aeonic-temporal-civil-datetime.d.ts +138 -0
- package/src/aeonic-temporal-civil-datetime.js +501 -0
- package/src/index.d.ts +84 -1
- package/src/index.js +828 -183
- package/src/property-address.js +196 -0
- package/src/property-resolve.js +132 -0
- package/src/query-metadata.d.ts +16 -0
- package/src/query-metadata.js +25 -0
- package/src/selector-cursor.d.ts +19 -0
- package/src/selector-cursor.js +79 -0
- package/stress-tests/address/invalid.sansa-cases +0 -2
- package/stress-tests/address/valid.sansa-cases +3 -0
- package/tools/mutate-web/examples.mjs +1 -1
- package/tools/mutate-web/runtime.mjs +0 -2
- package/tools/playground/README.md +165 -0
- package/tools/playground/accessibility.js +91 -0
- package/tools/playground/aeon-highlight.js +77 -0
- package/tools/playground/aeon-source-composer.js +1077 -0
- package/tools/playground/anchor-examples.mjs +16 -0
- package/tools/playground/arithmetic-evaluator.mjs +28 -0
- package/tools/playground/arithmetic-model.mjs +187 -0
- package/tools/playground/arithmetic-worker.mjs +14 -0
- package/tools/playground/arithmetic.css +1 -0
- package/tools/playground/arithmetic.html +29 -0
- package/tools/playground/arithmetic.mjs +110 -0
- package/tools/playground/clock-examples.mjs +16 -0
- package/tools/playground/datetime-examples.mjs +22 -0
- package/tools/playground/examples.mjs +46 -0
- package/tools/playground/index.html +174 -0
- package/tools/playground/local.css +25 -0
- package/tools/playground/namespace.mjs +39 -0
- package/tools/playground/sansa-playground.js +1565 -0
- package/tools/playground/site.css +3914 -0
- package/tools/playground/temporal-examples.mjs +20 -0
- package/tools/playground/walkthrough.js +90 -0
- package/tools/playground/website-origin.json +16 -0
- package/tools/query-web/IDENTITY_SELECTORS.md +44 -0
- package/tools/query-web/app.js +4 -0
- package/tools/query-web/index.html +4 -0
- package/tools/query-web/runtime.mjs +70 -19
- package/tools/workflows/property-playground-assertions.mjs +33 -0
- package/tools/workflows/verify-child-identities.mjs +137 -0
- package/tools/workflows/verify-property-playground.mjs +48 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "0.1",
|
|
3
|
+
"namespace": {
|
|
4
|
+
"id": "properties",
|
|
5
|
+
"root": "r",
|
|
6
|
+
"properties": {
|
|
7
|
+
"scope": true,
|
|
8
|
+
"key": true,
|
|
9
|
+
"nodeKind": true,
|
|
10
|
+
"nodeTag": true,
|
|
11
|
+
"nodeHeads": true
|
|
12
|
+
},
|
|
13
|
+
"bindings": [
|
|
14
|
+
{
|
|
15
|
+
"id": "r",
|
|
16
|
+
"address": "$",
|
|
17
|
+
"nodeKind": "Other",
|
|
18
|
+
"children": [
|
|
19
|
+
"doc",
|
|
20
|
+
"multi",
|
|
21
|
+
"zero",
|
|
22
|
+
"ordinary",
|
|
23
|
+
"empty",
|
|
24
|
+
"unicodeA",
|
|
25
|
+
"unicodeD",
|
|
26
|
+
"upper",
|
|
27
|
+
"lower",
|
|
28
|
+
"wild",
|
|
29
|
+
"escaped",
|
|
30
|
+
"space",
|
|
31
|
+
"list"
|
|
32
|
+
],
|
|
33
|
+
"key": "outsideRootName"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "doc",
|
|
37
|
+
"address": "$.document",
|
|
38
|
+
"nodeKind": "NodeLiteral",
|
|
39
|
+
"children": [
|
|
40
|
+
"docHead"
|
|
41
|
+
],
|
|
42
|
+
"key": "document",
|
|
43
|
+
"heads": [
|
|
44
|
+
"docHead"
|
|
45
|
+
],
|
|
46
|
+
"attributeSpace": "attrs",
|
|
47
|
+
"localSpaces": {
|
|
48
|
+
"private": "private"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"id": "docHead",
|
|
53
|
+
"address": "$.document[0]",
|
|
54
|
+
"nodeKind": "NodeHead",
|
|
55
|
+
"children": [
|
|
56
|
+
"apple",
|
|
57
|
+
"note",
|
|
58
|
+
"orange"
|
|
59
|
+
],
|
|
60
|
+
"tag": "catalog"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "apple",
|
|
64
|
+
"address": "$.document[0][0]",
|
|
65
|
+
"nodeKind": "NodeLiteral",
|
|
66
|
+
"children": [
|
|
67
|
+
"appleHead"
|
|
68
|
+
],
|
|
69
|
+
"heads": [
|
|
70
|
+
"appleHead"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"id": "appleHead",
|
|
75
|
+
"address": "$.document[0][0][0]",
|
|
76
|
+
"nodeKind": "NodeHead",
|
|
77
|
+
"children": [],
|
|
78
|
+
"tag": "product"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "note",
|
|
82
|
+
"address": "$.document[0][1]",
|
|
83
|
+
"nodeKind": "NodeLiteral",
|
|
84
|
+
"children": [
|
|
85
|
+
"noteHead"
|
|
86
|
+
],
|
|
87
|
+
"heads": [
|
|
88
|
+
"noteHead"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "noteHead",
|
|
93
|
+
"address": "$.document[0][1][0]",
|
|
94
|
+
"nodeKind": "NodeHead",
|
|
95
|
+
"children": [],
|
|
96
|
+
"tag": "note"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"id": "orange",
|
|
100
|
+
"address": "$.document[0][2]",
|
|
101
|
+
"nodeKind": "NodeLiteral",
|
|
102
|
+
"children": [
|
|
103
|
+
"orangeHead"
|
|
104
|
+
],
|
|
105
|
+
"heads": [
|
|
106
|
+
"orangeHead"
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"id": "orangeHead",
|
|
111
|
+
"address": "$.document[0][2][0]",
|
|
112
|
+
"nodeKind": "NodeHead",
|
|
113
|
+
"children": [],
|
|
114
|
+
"tag": "product"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "multi",
|
|
118
|
+
"address": "$.multi",
|
|
119
|
+
"nodeKind": "NodeLiteral",
|
|
120
|
+
"children": [
|
|
121
|
+
"left",
|
|
122
|
+
"right",
|
|
123
|
+
"right2"
|
|
124
|
+
],
|
|
125
|
+
"key": "multi",
|
|
126
|
+
"cachedTag": "stale",
|
|
127
|
+
"tag": "stale",
|
|
128
|
+
"heads": [
|
|
129
|
+
"left",
|
|
130
|
+
"right",
|
|
131
|
+
"right2"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "left",
|
|
136
|
+
"address": "$.multi[0]",
|
|
137
|
+
"nodeKind": "NodeHead",
|
|
138
|
+
"children": [],
|
|
139
|
+
"tag": "left"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "right",
|
|
143
|
+
"address": "$.multi[1]",
|
|
144
|
+
"nodeKind": "NodeHead",
|
|
145
|
+
"children": [],
|
|
146
|
+
"tag": "right"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"id": "right2",
|
|
150
|
+
"address": "$.multi[2]",
|
|
151
|
+
"nodeKind": "NodeHead",
|
|
152
|
+
"children": [],
|
|
153
|
+
"tag": "right"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"id": "zero",
|
|
157
|
+
"address": "$.zero",
|
|
158
|
+
"nodeKind": "NodeLiteral",
|
|
159
|
+
"children": [],
|
|
160
|
+
"key": "zero",
|
|
161
|
+
"heads": []
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"id": "ordinary",
|
|
165
|
+
"address": "$.ordinary",
|
|
166
|
+
"nodeKind": "Other",
|
|
167
|
+
"children": [
|
|
168
|
+
"plainTag"
|
|
169
|
+
],
|
|
170
|
+
"key": "ordinary",
|
|
171
|
+
"cachedTag": "product",
|
|
172
|
+
"tag": "product"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"id": "plainTag",
|
|
176
|
+
"address": "$.ordinary.tag",
|
|
177
|
+
"nodeKind": "Other",
|
|
178
|
+
"children": [],
|
|
179
|
+
"key": "tag",
|
|
180
|
+
"value": "product"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "empty",
|
|
184
|
+
"address": "$.[\"\"]",
|
|
185
|
+
"nodeKind": "Other",
|
|
186
|
+
"children": [
|
|
187
|
+
"emptyChild"
|
|
188
|
+
],
|
|
189
|
+
"key": "",
|
|
190
|
+
"identity": "emptyBinding"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "emptyChild",
|
|
194
|
+
"address": "$.[\"\"].[\"\"]",
|
|
195
|
+
"nodeKind": "Other",
|
|
196
|
+
"children": [],
|
|
197
|
+
"key": "",
|
|
198
|
+
"value": "\u0130\ud83d\ude00"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": "unicodeA",
|
|
202
|
+
"address": "$.[\"\u00e9\"]",
|
|
203
|
+
"nodeKind": "Other",
|
|
204
|
+
"children": [],
|
|
205
|
+
"key": "\u00e9"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "unicodeD",
|
|
209
|
+
"address": "$.[\"e\u0301\"]",
|
|
210
|
+
"nodeKind": "Other",
|
|
211
|
+
"children": [],
|
|
212
|
+
"key": "e\u0301"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"id": "upper",
|
|
216
|
+
"address": "$.[\"\u0130\"]",
|
|
217
|
+
"nodeKind": "Other",
|
|
218
|
+
"children": [],
|
|
219
|
+
"key": "\u0130"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "lower",
|
|
223
|
+
"address": "$.[\"i\"]",
|
|
224
|
+
"nodeKind": "Other",
|
|
225
|
+
"children": [],
|
|
226
|
+
"key": "i"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "wild",
|
|
230
|
+
"address": "$.[\"*?\"]",
|
|
231
|
+
"nodeKind": "Other",
|
|
232
|
+
"children": [],
|
|
233
|
+
"key": "*?"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"id": "escaped",
|
|
237
|
+
"address": "$.[\"a\\\"b\\\\c\"]",
|
|
238
|
+
"nodeKind": "Other",
|
|
239
|
+
"children": [],
|
|
240
|
+
"key": "a\"b\\c"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"id": "space",
|
|
244
|
+
"address": "$.[\"a b\"]",
|
|
245
|
+
"nodeKind": "Other",
|
|
246
|
+
"children": [],
|
|
247
|
+
"key": "a b"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "list",
|
|
251
|
+
"address": "$.list",
|
|
252
|
+
"nodeKind": "Other",
|
|
253
|
+
"children": [
|
|
254
|
+
"position"
|
|
255
|
+
],
|
|
256
|
+
"key": "list"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "position",
|
|
260
|
+
"address": "$.list[0]",
|
|
261
|
+
"nodeKind": "Other",
|
|
262
|
+
"children": [],
|
|
263
|
+
"index": 0,
|
|
264
|
+
"legacyName": "0"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "attrs",
|
|
268
|
+
"address": "$.document.@",
|
|
269
|
+
"nodeKind": "Other",
|
|
270
|
+
"children": [
|
|
271
|
+
"unit"
|
|
272
|
+
],
|
|
273
|
+
"key": "fakeAttributes"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"id": "unit",
|
|
277
|
+
"address": "$.document.@.unit",
|
|
278
|
+
"nodeKind": "Other",
|
|
279
|
+
"children": [],
|
|
280
|
+
"key": "unit"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "private",
|
|
284
|
+
"address": "$.document.<\"private\">",
|
|
285
|
+
"nodeKind": "Other",
|
|
286
|
+
"children": [
|
|
287
|
+
"secret"
|
|
288
|
+
],
|
|
289
|
+
"key": "fakePrivate"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"id": "secret",
|
|
293
|
+
"address": "$.document.<\"private\">.secret",
|
|
294
|
+
"nodeKind": "Other",
|
|
295
|
+
"children": [],
|
|
296
|
+
"key": "secret"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "foreign",
|
|
300
|
+
"address": "$.foreign",
|
|
301
|
+
"nodeKind": "NodeLiteral",
|
|
302
|
+
"children": [
|
|
303
|
+
"foreignHead"
|
|
304
|
+
],
|
|
305
|
+
"heads": [
|
|
306
|
+
"foreignHead"
|
|
307
|
+
]
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"id": "foreignHead",
|
|
311
|
+
"address": "$.foreign[0]",
|
|
312
|
+
"nodeKind": "NodeHead",
|
|
313
|
+
"children": [],
|
|
314
|
+
"tag": "right"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
"coverageRequirements": [
|
|
319
|
+
"syntax",
|
|
320
|
+
"unicode",
|
|
321
|
+
"ast",
|
|
322
|
+
"bounds",
|
|
323
|
+
"key",
|
|
324
|
+
"tag",
|
|
325
|
+
"scope",
|
|
326
|
+
"ownership",
|
|
327
|
+
"order-multiplicity",
|
|
328
|
+
"preflight",
|
|
329
|
+
"budget",
|
|
330
|
+
"iterator",
|
|
331
|
+
"query",
|
|
332
|
+
"consumer-denial",
|
|
333
|
+
"legacy",
|
|
334
|
+
"head-tag-split"
|
|
335
|
+
]
|
|
336
|
+
}
|