@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,705 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"suite_id": "property-parser",
|
|
4
|
+
"lane": "sansa-properties",
|
|
5
|
+
"capability": "SANSA.Addressing",
|
|
6
|
+
"profile": "sansa-properties-read-only-candidate-0.2",
|
|
7
|
+
"sut_protocol": "sansa-properties-preparation-v0.1",
|
|
8
|
+
"spec_refs": [
|
|
9
|
+
"aeonite-specs/sources/sansa/v1/property-selectors-v1.aeon"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
"id": "property-parser",
|
|
13
|
+
"title": "Property candidate parser",
|
|
14
|
+
"tests": [
|
|
15
|
+
{
|
|
16
|
+
"id": "sansa-properties-root-key",
|
|
17
|
+
"description": "root key",
|
|
18
|
+
"input": {
|
|
19
|
+
"operation": "parse-address",
|
|
20
|
+
"source": "$&key(\"\")"
|
|
21
|
+
},
|
|
22
|
+
"expected": {
|
|
23
|
+
"ok": true,
|
|
24
|
+
"canonical": "$&key(\"\")",
|
|
25
|
+
"isExact": false
|
|
26
|
+
},
|
|
27
|
+
"covers": [
|
|
28
|
+
"syntax"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"id": "sansa-properties-member-tag",
|
|
33
|
+
"description": "member tag",
|
|
34
|
+
"input": {
|
|
35
|
+
"operation": "parse-address",
|
|
36
|
+
"source": "$.document&tag(\"catalog\")"
|
|
37
|
+
},
|
|
38
|
+
"expected": {
|
|
39
|
+
"ok": true,
|
|
40
|
+
"canonical": "$.document&tag(\"catalog\")",
|
|
41
|
+
"isExact": false
|
|
42
|
+
},
|
|
43
|
+
"covers": [
|
|
44
|
+
"syntax"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "sansa-properties-chained",
|
|
49
|
+
"description": "chained",
|
|
50
|
+
"input": {
|
|
51
|
+
"operation": "parse-address",
|
|
52
|
+
"source": "$.document&key(\"document\")&tag(\"catalog\")[0]"
|
|
53
|
+
},
|
|
54
|
+
"expected": {
|
|
55
|
+
"ok": true,
|
|
56
|
+
"canonical": "$.document&key(\"document\")&tag(\"catalog\")[0]",
|
|
57
|
+
"isExact": false
|
|
58
|
+
},
|
|
59
|
+
"covers": [
|
|
60
|
+
"syntax"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "sansa-properties-unicode-escape",
|
|
65
|
+
"description": "unicode escape",
|
|
66
|
+
"input": {
|
|
67
|
+
"operation": "parse-address",
|
|
68
|
+
"source": "$&key(\"\\u{1F600}\")"
|
|
69
|
+
},
|
|
70
|
+
"expected": {
|
|
71
|
+
"ok": true,
|
|
72
|
+
"canonical": "$&key(\"\ud83d\ude00\")",
|
|
73
|
+
"isExact": false
|
|
74
|
+
},
|
|
75
|
+
"covers": [
|
|
76
|
+
"syntax",
|
|
77
|
+
"unicode"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "sansa-properties-unicode-codepoint",
|
|
82
|
+
"description": "unicode codepoint",
|
|
83
|
+
"input": {
|
|
84
|
+
"operation": "parse-address",
|
|
85
|
+
"source": "$&key(\"\u00e9\")"
|
|
86
|
+
},
|
|
87
|
+
"expected": {
|
|
88
|
+
"ok": true,
|
|
89
|
+
"canonical": "$&key(\"\u00e9\")",
|
|
90
|
+
"isExact": false
|
|
91
|
+
},
|
|
92
|
+
"covers": [
|
|
93
|
+
"syntax",
|
|
94
|
+
"unicode"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "sansa-properties-literal-wildcards",
|
|
99
|
+
"description": "literal wildcards",
|
|
100
|
+
"input": {
|
|
101
|
+
"operation": "parse-address",
|
|
102
|
+
"source": "$&key(\"*?\")"
|
|
103
|
+
},
|
|
104
|
+
"expected": {
|
|
105
|
+
"ok": true,
|
|
106
|
+
"canonical": "$&key(\"*?\")",
|
|
107
|
+
"isExact": false
|
|
108
|
+
},
|
|
109
|
+
"covers": [
|
|
110
|
+
"syntax"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "sansa-properties-argument-spaces",
|
|
115
|
+
"description": "argument spaces",
|
|
116
|
+
"input": {
|
|
117
|
+
"operation": "parse-address",
|
|
118
|
+
"source": "$&key(\"a b\")"
|
|
119
|
+
},
|
|
120
|
+
"expected": {
|
|
121
|
+
"ok": true,
|
|
122
|
+
"canonical": "$&key(\"a b\")",
|
|
123
|
+
"isExact": false
|
|
124
|
+
},
|
|
125
|
+
"covers": [
|
|
126
|
+
"syntax"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"id": "sansa-properties-escape-quote",
|
|
131
|
+
"description": "escape quote",
|
|
132
|
+
"input": {
|
|
133
|
+
"operation": "parse-address",
|
|
134
|
+
"source": "$&key(\"a\\\"b\\\\c\")"
|
|
135
|
+
},
|
|
136
|
+
"expected": {
|
|
137
|
+
"ok": true,
|
|
138
|
+
"canonical": "$&key(\"a\\\"b\\\\c\")",
|
|
139
|
+
"isExact": false
|
|
140
|
+
},
|
|
141
|
+
"covers": [
|
|
142
|
+
"syntax",
|
|
143
|
+
"unicode"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "sansa-properties-empty-tag",
|
|
148
|
+
"description": "empty tag",
|
|
149
|
+
"input": {
|
|
150
|
+
"operation": "parse-address",
|
|
151
|
+
"source": "$&tag(\"\")"
|
|
152
|
+
},
|
|
153
|
+
"expected": {
|
|
154
|
+
"ok": true,
|
|
155
|
+
"canonical": "$&tag(\"\")",
|
|
156
|
+
"isExact": false
|
|
157
|
+
},
|
|
158
|
+
"covers": [
|
|
159
|
+
"syntax"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "sansa-properties-unknown",
|
|
164
|
+
"description": "unknown",
|
|
165
|
+
"input": {
|
|
166
|
+
"operation": "parse-address",
|
|
167
|
+
"source": "$&Key(\"x\")"
|
|
168
|
+
},
|
|
169
|
+
"expected": {
|
|
170
|
+
"ok": false,
|
|
171
|
+
"error": "SANSA_UNKNOWN_PROPERTY_SELECTOR"
|
|
172
|
+
},
|
|
173
|
+
"covers": [
|
|
174
|
+
"syntax"
|
|
175
|
+
]
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "sansa-properties-unknown-position",
|
|
179
|
+
"description": "unknown position",
|
|
180
|
+
"input": {
|
|
181
|
+
"operation": "parse-address",
|
|
182
|
+
"source": "$.*&first"
|
|
183
|
+
},
|
|
184
|
+
"expected": {
|
|
185
|
+
"ok": false,
|
|
186
|
+
"error": "SANSA_UNKNOWN_PROPERTY_SELECTOR"
|
|
187
|
+
},
|
|
188
|
+
"covers": [
|
|
189
|
+
"syntax"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "sansa-properties-missing-argument",
|
|
194
|
+
"description": "missing argument",
|
|
195
|
+
"input": {
|
|
196
|
+
"operation": "parse-address",
|
|
197
|
+
"source": "$&key()"
|
|
198
|
+
},
|
|
199
|
+
"expected": {
|
|
200
|
+
"ok": false,
|
|
201
|
+
"error": "SANSA_EXPECTED_PROPERTY_ARGUMENT"
|
|
202
|
+
},
|
|
203
|
+
"covers": [
|
|
204
|
+
"syntax"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "sansa-properties-numeric-argument",
|
|
209
|
+
"description": "numeric argument",
|
|
210
|
+
"input": {
|
|
211
|
+
"operation": "parse-address",
|
|
212
|
+
"source": "$&key(1)"
|
|
213
|
+
},
|
|
214
|
+
"expected": {
|
|
215
|
+
"ok": false,
|
|
216
|
+
"error": "SANSA_EXPECTED_PROPERTY_ARGUMENT"
|
|
217
|
+
},
|
|
218
|
+
"covers": [
|
|
219
|
+
"syntax"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "sansa-properties-single-quote",
|
|
224
|
+
"description": "single quote",
|
|
225
|
+
"input": {
|
|
226
|
+
"operation": "parse-address",
|
|
227
|
+
"source": "$&key('x')"
|
|
228
|
+
},
|
|
229
|
+
"expected": {
|
|
230
|
+
"ok": false,
|
|
231
|
+
"error": "SANSA_EXPECTED_PROPERTY_ARGUMENT"
|
|
232
|
+
},
|
|
233
|
+
"covers": [
|
|
234
|
+
"syntax"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "sansa-properties-extra-argument",
|
|
239
|
+
"description": "extra argument",
|
|
240
|
+
"input": {
|
|
241
|
+
"operation": "parse-address",
|
|
242
|
+
"source": "$&tag(\"x\",\"y\")"
|
|
243
|
+
},
|
|
244
|
+
"expected": {
|
|
245
|
+
"ok": false,
|
|
246
|
+
"error": "SANSA_EXPECTED_TOKEN"
|
|
247
|
+
},
|
|
248
|
+
"covers": [
|
|
249
|
+
"syntax"
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "sansa-properties-unfinished-call",
|
|
254
|
+
"description": "unfinished call",
|
|
255
|
+
"input": {
|
|
256
|
+
"operation": "parse-address",
|
|
257
|
+
"source": "$&key(\"x\""
|
|
258
|
+
},
|
|
259
|
+
"expected": {
|
|
260
|
+
"ok": false,
|
|
261
|
+
"error": "SANSA_EXPECTED_TOKEN"
|
|
262
|
+
},
|
|
263
|
+
"covers": [
|
|
264
|
+
"syntax"
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"id": "sansa-properties-unfinished-string",
|
|
269
|
+
"description": "unfinished string",
|
|
270
|
+
"input": {
|
|
271
|
+
"operation": "parse-address",
|
|
272
|
+
"source": "$&key(\"x"
|
|
273
|
+
},
|
|
274
|
+
"expected": {
|
|
275
|
+
"ok": false,
|
|
276
|
+
"error": "SANSA_UNTERMINATED_QUOTED_PAYLOAD"
|
|
277
|
+
},
|
|
278
|
+
"covers": [
|
|
279
|
+
"syntax"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "sansa-properties-bad-escape",
|
|
284
|
+
"description": "bad escape",
|
|
285
|
+
"input": {
|
|
286
|
+
"operation": "parse-address",
|
|
287
|
+
"source": "$&key(\"\\q\")"
|
|
288
|
+
},
|
|
289
|
+
"expected": {
|
|
290
|
+
"ok": false,
|
|
291
|
+
"error": "SANSA_INVALID_ESCAPE"
|
|
292
|
+
},
|
|
293
|
+
"covers": [
|
|
294
|
+
"syntax"
|
|
295
|
+
]
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
"id": "sansa-properties-surrogate",
|
|
299
|
+
"description": "surrogate",
|
|
300
|
+
"input": {
|
|
301
|
+
"operation": "parse-address",
|
|
302
|
+
"source": "$&key(\"\\uD800\")"
|
|
303
|
+
},
|
|
304
|
+
"expected": {
|
|
305
|
+
"ok": false,
|
|
306
|
+
"error": "SANSA_INVALID_UNICODE_SCALAR"
|
|
307
|
+
},
|
|
308
|
+
"covers": [
|
|
309
|
+
"syntax"
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "sansa-properties-outside-space",
|
|
314
|
+
"description": "outside space",
|
|
315
|
+
"input": {
|
|
316
|
+
"operation": "parse-address",
|
|
317
|
+
"source": "$&key( \"x\")"
|
|
318
|
+
},
|
|
319
|
+
"expected": {
|
|
320
|
+
"ok": false,
|
|
321
|
+
"error": "SANSA_UNEXPECTED_WHITESPACE"
|
|
322
|
+
},
|
|
323
|
+
"covers": [
|
|
324
|
+
"syntax"
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"id": "sansa-properties-standalone-current",
|
|
329
|
+
"description": "standalone current",
|
|
330
|
+
"input": {
|
|
331
|
+
"operation": "parse-address",
|
|
332
|
+
"source": ".&key(\"x\")"
|
|
333
|
+
},
|
|
334
|
+
"expected": {
|
|
335
|
+
"ok": false,
|
|
336
|
+
"error": "SANSA_EXPECTED_ROOT"
|
|
337
|
+
},
|
|
338
|
+
"covers": [
|
|
339
|
+
"syntax"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "sansa-properties-quoted-ampersand",
|
|
344
|
+
"description": "quoted ampersand",
|
|
345
|
+
"input": {
|
|
346
|
+
"operation": "parse-address",
|
|
347
|
+
"source": "$.[\"&key(\\\"x\\\")\"]"
|
|
348
|
+
},
|
|
349
|
+
"expected": {
|
|
350
|
+
"ok": true,
|
|
351
|
+
"canonical": "$.[\"&key(\\\"x\\\")\"]",
|
|
352
|
+
"isExact": true
|
|
353
|
+
},
|
|
354
|
+
"covers": [
|
|
355
|
+
"legacy"
|
|
356
|
+
]
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"id": "sansa-properties-ordinary-qualifier",
|
|
360
|
+
"description": "ordinary qualifier",
|
|
361
|
+
"input": {
|
|
362
|
+
"operation": "parse-address",
|
|
363
|
+
"source": "$.item:thing[\"&tag\"]"
|
|
364
|
+
},
|
|
365
|
+
"expected": {
|
|
366
|
+
"ok": true,
|
|
367
|
+
"canonical": "$.item:thing[\"&tag\"]",
|
|
368
|
+
"isExact": true
|
|
369
|
+
},
|
|
370
|
+
"covers": [
|
|
371
|
+
"legacy"
|
|
372
|
+
]
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "sansa-properties-payload-bound-0",
|
|
376
|
+
"description": "payload bound 0",
|
|
377
|
+
"input": {
|
|
378
|
+
"operation": "parse-address",
|
|
379
|
+
"generate": {
|
|
380
|
+
"kind": "payload",
|
|
381
|
+
"count": 4096,
|
|
382
|
+
"form": "text"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"expected": {
|
|
386
|
+
"ok": true,
|
|
387
|
+
"isExact": false
|
|
388
|
+
},
|
|
389
|
+
"covers": [
|
|
390
|
+
"bounds"
|
|
391
|
+
]
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
"id": "sansa-properties-payload-bound-1",
|
|
395
|
+
"description": "payload bound 1",
|
|
396
|
+
"input": {
|
|
397
|
+
"operation": "parse-address",
|
|
398
|
+
"generate": {
|
|
399
|
+
"kind": "payload",
|
|
400
|
+
"count": 4097,
|
|
401
|
+
"form": "text"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"expected": {
|
|
405
|
+
"ok": false,
|
|
406
|
+
"error": "SANSA_PROPERTY_LIMIT_EXCEEDED",
|
|
407
|
+
"limitKind": "payloadScalars",
|
|
408
|
+
"limit": 4096,
|
|
409
|
+
"observed": 4097
|
|
410
|
+
},
|
|
411
|
+
"covers": [
|
|
412
|
+
"bounds"
|
|
413
|
+
]
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"id": "sansa-properties-selectors-bound-0",
|
|
417
|
+
"description": "selectors bound 0",
|
|
418
|
+
"input": {
|
|
419
|
+
"operation": "parse-address",
|
|
420
|
+
"generate": {
|
|
421
|
+
"kind": "selectors",
|
|
422
|
+
"count": 256,
|
|
423
|
+
"form": "text"
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
"expected": {
|
|
427
|
+
"ok": true,
|
|
428
|
+
"isExact": false
|
|
429
|
+
},
|
|
430
|
+
"covers": [
|
|
431
|
+
"bounds"
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"id": "sansa-properties-selectors-bound-1",
|
|
436
|
+
"description": "selectors bound 1",
|
|
437
|
+
"input": {
|
|
438
|
+
"operation": "parse-address",
|
|
439
|
+
"generate": {
|
|
440
|
+
"kind": "selectors",
|
|
441
|
+
"count": 257,
|
|
442
|
+
"form": "text"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"expected": {
|
|
446
|
+
"ok": false,
|
|
447
|
+
"error": "SANSA_PROPERTY_LIMIT_EXCEEDED",
|
|
448
|
+
"limitKind": "selectors",
|
|
449
|
+
"limit": 256,
|
|
450
|
+
"observed": 257
|
|
451
|
+
},
|
|
452
|
+
"covers": [
|
|
453
|
+
"bounds"
|
|
454
|
+
]
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"id": "sansa-properties-canonical-bound-0",
|
|
458
|
+
"description": "canonical bound 0",
|
|
459
|
+
"input": {
|
|
460
|
+
"operation": "parse-address",
|
|
461
|
+
"generate": {
|
|
462
|
+
"kind": "canonical",
|
|
463
|
+
"count": 65536,
|
|
464
|
+
"form": "text"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"expected": {
|
|
468
|
+
"ok": true,
|
|
469
|
+
"isExact": false
|
|
470
|
+
},
|
|
471
|
+
"covers": [
|
|
472
|
+
"bounds"
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "sansa-properties-canonical-bound-1",
|
|
477
|
+
"description": "canonical bound 1",
|
|
478
|
+
"input": {
|
|
479
|
+
"operation": "parse-address",
|
|
480
|
+
"generate": {
|
|
481
|
+
"kind": "canonical",
|
|
482
|
+
"count": 65537,
|
|
483
|
+
"form": "text"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
486
|
+
"expected": {
|
|
487
|
+
"ok": false,
|
|
488
|
+
"error": "SANSA_PROPERTY_LIMIT_EXCEEDED",
|
|
489
|
+
"limitKind": "canonicalScalars",
|
|
490
|
+
"limit": 65536,
|
|
491
|
+
"observed": 65537
|
|
492
|
+
},
|
|
493
|
+
"covers": [
|
|
494
|
+
"bounds"
|
|
495
|
+
]
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"id": "sansa-properties-increased-position",
|
|
499
|
+
"description": "increased position",
|
|
500
|
+
"input": {
|
|
501
|
+
"operation": "parse-address",
|
|
502
|
+
"source": "$.items[1000001]&key(\"x\")",
|
|
503
|
+
"options": {
|
|
504
|
+
"parse": {
|
|
505
|
+
"maxPositionIndex": 2000000
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
},
|
|
509
|
+
"expected": {
|
|
510
|
+
"ok": true,
|
|
511
|
+
"canonical": "$.items[1000001]&key(\"x\")",
|
|
512
|
+
"isExact": false
|
|
513
|
+
},
|
|
514
|
+
"covers": [
|
|
515
|
+
"syntax"
|
|
516
|
+
]
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"id": "sansa-properties-astral-bound-raw-0",
|
|
520
|
+
"description": "astral bound raw 0",
|
|
521
|
+
"input": {
|
|
522
|
+
"operation": "parse-address",
|
|
523
|
+
"generate": {
|
|
524
|
+
"kind": "payload",
|
|
525
|
+
"count": 4096,
|
|
526
|
+
"form": "text",
|
|
527
|
+
"scalar": "\ud83d\ude00",
|
|
528
|
+
"encoding": "raw"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
"expected": {
|
|
532
|
+
"ok": true,
|
|
533
|
+
"isExact": false
|
|
534
|
+
},
|
|
535
|
+
"covers": [
|
|
536
|
+
"bounds",
|
|
537
|
+
"unicode"
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"id": "sansa-properties-astral-bound-raw-1",
|
|
542
|
+
"description": "astral bound raw 1",
|
|
543
|
+
"input": {
|
|
544
|
+
"operation": "parse-address",
|
|
545
|
+
"generate": {
|
|
546
|
+
"kind": "payload",
|
|
547
|
+
"count": 4097,
|
|
548
|
+
"form": "text",
|
|
549
|
+
"scalar": "\ud83d\ude00",
|
|
550
|
+
"encoding": "raw"
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"expected": {
|
|
554
|
+
"ok": false,
|
|
555
|
+
"error": "SANSA_PROPERTY_LIMIT_EXCEEDED",
|
|
556
|
+
"limitKind": "payloadScalars",
|
|
557
|
+
"limit": 4096,
|
|
558
|
+
"observed": 4097
|
|
559
|
+
},
|
|
560
|
+
"covers": [
|
|
561
|
+
"bounds",
|
|
562
|
+
"unicode"
|
|
563
|
+
]
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"id": "sansa-properties-astral-bound-escaped-0",
|
|
567
|
+
"description": "astral bound escaped 0",
|
|
568
|
+
"input": {
|
|
569
|
+
"operation": "parse-address",
|
|
570
|
+
"generate": {
|
|
571
|
+
"kind": "payload",
|
|
572
|
+
"count": 4096,
|
|
573
|
+
"form": "text",
|
|
574
|
+
"scalar": "\ud83d\ude00",
|
|
575
|
+
"encoding": "escaped"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"expected": {
|
|
579
|
+
"ok": true,
|
|
580
|
+
"isExact": false
|
|
581
|
+
},
|
|
582
|
+
"covers": [
|
|
583
|
+
"bounds",
|
|
584
|
+
"unicode"
|
|
585
|
+
]
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"id": "sansa-properties-astral-bound-escaped-1",
|
|
589
|
+
"description": "astral bound escaped 1",
|
|
590
|
+
"input": {
|
|
591
|
+
"operation": "parse-address",
|
|
592
|
+
"generate": {
|
|
593
|
+
"kind": "payload",
|
|
594
|
+
"count": 4097,
|
|
595
|
+
"form": "text",
|
|
596
|
+
"scalar": "\ud83d\ude00",
|
|
597
|
+
"encoding": "escaped"
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"expected": {
|
|
601
|
+
"ok": false,
|
|
602
|
+
"error": "SANSA_PROPERTY_LIMIT_EXCEEDED",
|
|
603
|
+
"limitKind": "payloadScalars",
|
|
604
|
+
"limit": 4096,
|
|
605
|
+
"observed": 4097
|
|
606
|
+
},
|
|
607
|
+
"covers": [
|
|
608
|
+
"bounds",
|
|
609
|
+
"unicode"
|
|
610
|
+
]
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"id": "sansa-properties-member-tag-head-tag",
|
|
614
|
+
"description": "member tag",
|
|
615
|
+
"input": {
|
|
616
|
+
"operation": "parse-address",
|
|
617
|
+
"source": "$.document&headTag(\"catalog\")"
|
|
618
|
+
},
|
|
619
|
+
"expected": {
|
|
620
|
+
"ok": true,
|
|
621
|
+
"canonical": "$.document&headTag(\"catalog\")",
|
|
622
|
+
"isExact": false
|
|
623
|
+
},
|
|
624
|
+
"covers": [
|
|
625
|
+
"head-tag-split"
|
|
626
|
+
]
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"id": "sansa-properties-empty-tag-head-tag",
|
|
630
|
+
"description": "empty tag",
|
|
631
|
+
"input": {
|
|
632
|
+
"operation": "parse-address",
|
|
633
|
+
"source": "$&headTag(\"\")"
|
|
634
|
+
},
|
|
635
|
+
"expected": {
|
|
636
|
+
"ok": true,
|
|
637
|
+
"canonical": "$&headTag(\"\")",
|
|
638
|
+
"isExact": false
|
|
639
|
+
},
|
|
640
|
+
"covers": [
|
|
641
|
+
"head-tag-split"
|
|
642
|
+
]
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"id": "sansa-properties-unknown-headtag",
|
|
646
|
+
"description": "unknown",
|
|
647
|
+
"input": {
|
|
648
|
+
"operation": "parse-address",
|
|
649
|
+
"source": "$&headtag(\"x\")"
|
|
650
|
+
},
|
|
651
|
+
"expected": {
|
|
652
|
+
"ok": false,
|
|
653
|
+
"error": "SANSA_UNKNOWN_PROPERTY_SELECTOR"
|
|
654
|
+
},
|
|
655
|
+
"covers": [
|
|
656
|
+
"head-tag-split"
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"id": "sansa-properties-unknown-headtag-case",
|
|
661
|
+
"description": "unknown",
|
|
662
|
+
"input": {
|
|
663
|
+
"operation": "parse-address",
|
|
664
|
+
"source": "$&HeadTag(\"x\")"
|
|
665
|
+
},
|
|
666
|
+
"expected": {
|
|
667
|
+
"ok": false,
|
|
668
|
+
"error": "SANSA_UNKNOWN_PROPERTY_SELECTOR"
|
|
669
|
+
},
|
|
670
|
+
"covers": [
|
|
671
|
+
"head-tag-split"
|
|
672
|
+
]
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"id": "sansa-properties-unknown-tag-head",
|
|
676
|
+
"description": "unknown",
|
|
677
|
+
"input": {
|
|
678
|
+
"operation": "parse-address",
|
|
679
|
+
"source": "$&tagHead(\"x\")"
|
|
680
|
+
},
|
|
681
|
+
"expected": {
|
|
682
|
+
"ok": false,
|
|
683
|
+
"error": "SANSA_UNKNOWN_PROPERTY_SELECTOR"
|
|
684
|
+
},
|
|
685
|
+
"covers": [
|
|
686
|
+
"head-tag-split"
|
|
687
|
+
]
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"id": "sansa-properties-unknown-tag-children",
|
|
691
|
+
"description": "unknown",
|
|
692
|
+
"input": {
|
|
693
|
+
"operation": "parse-address",
|
|
694
|
+
"source": "$&tagChildren(\"x\")"
|
|
695
|
+
},
|
|
696
|
+
"expected": {
|
|
697
|
+
"ok": false,
|
|
698
|
+
"error": "SANSA_UNKNOWN_PROPERTY_SELECTOR"
|
|
699
|
+
},
|
|
700
|
+
"covers": [
|
|
701
|
+
"head-tag-split"
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
]
|
|
705
|
+
}
|