@altopelago/sansa 0.14.2 → 0.15.0-rc.3
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 +133 -1
- package/README.md +98 -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-bounded-expansion-2026-11-24.json +39 -0
- package/conformance/results/aeonic-anchor-capacity-bounded-expansion-2026-11-24.json +452 -0
- package/conformance/results/aeonic-anchor-capacity-rc3-2026-11-24.json +452 -0
- package/conformance/results/aeonic-anchor-capacity.json +452 -0
- package/conformance/results/aeonic-anchor-rc3-2026-11-24.json +39 -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-bounded-expansion-2026-11-24.json +49 -0
- package/conformance/results/aeonic-clock-all-rc3-2026-11-24.json +49 -0
- package/conformance/results/aeonic-clock-all-snapshot-0.1.json +49 -0
- package/conformance/results/aeonic-clock-arithmetic-bounded-expansion-2026-11-24.json +48 -0
- package/conformance/results/aeonic-clock-arithmetic-rc3-2026-11-24.json +48 -0
- package/conformance/results/aeonic-clock-arithmetic-snapshot-0.1.json +48 -0
- package/conformance/results/aeonic-clock-capacity-bounded-expansion-2026-11-24.json +326 -0
- package/conformance/results/aeonic-clock-capacity-rc3-2026-11-24.json +326 -0
- package/conformance/results/aeonic-clock-capacity.json +326 -0
- package/conformance/results/aeonic-clock-relations-bounded-expansion-2026-11-24.json +48 -0
- package/conformance/results/aeonic-clock-relations-rc3-2026-11-24.json +48 -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-bounded-expansion-2026-11-24.json +47 -0
- package/conformance/results/aeonic-datetime-all-rc3-2026-11-24.json +47 -0
- package/conformance/results/aeonic-datetime-all-snapshot-0.1.json +47 -0
- package/conformance/results/aeonic-datetime-arithmetic-bounded-expansion-2026-11-24.json +46 -0
- package/conformance/results/aeonic-datetime-arithmetic-rc3-2026-11-24.json +46 -0
- package/conformance/results/aeonic-datetime-arithmetic-snapshot-0.1.json +46 -0
- package/conformance/results/aeonic-datetime-capacity-bounded-expansion-2026-11-24.json +302 -0
- package/conformance/results/aeonic-datetime-capacity-rc3-2026-11-24.json +302 -0
- package/conformance/results/aeonic-datetime-capacity.json +302 -0
- package/conformance/results/aeonic-datetime-relations-bounded-expansion-2026-11-24.json +46 -0
- package/conformance/results/aeonic-datetime-relations-rc3-2026-11-24.json +46 -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-bounded-expansion-2026-11-24.json +39 -0
- package/conformance/results/aeonic-temporal-all-property-addressing-2026-11-16.json +39 -0
- package/conformance/results/aeonic-temporal-all-rc3-2026-11-24.json +39 -0
- package/conformance/results/aeonic-temporal-all-snapshot-0.1.json +39 -0
- package/conformance/results/aeonic-temporal-calendar-bounded-expansion-2026-11-24.json +38 -0
- package/conformance/results/aeonic-temporal-calendar-property-addressing-2026-11-16.json +38 -0
- package/conformance/results/aeonic-temporal-calendar-rc3-2026-11-24.json +38 -0
- package/conformance/results/aeonic-temporal-calendar-snapshot-0.1.json +38 -0
- package/conformance/results/aeonic-temporal-capacity-bounded-expansion-2026-11-24.json +136 -0
- package/conformance/results/aeonic-temporal-capacity-property-addressing-2026-11-16.json +136 -0
- package/conformance/results/aeonic-temporal-capacity-rc3-2026-11-24.json +136 -0
- package/conformance/results/aeonic-temporal-capacity.json +136 -0
- package/conformance/results/aeonic-temporal-relations-bounded-expansion-2026-11-24.json +38 -0
- package/conformance/results/aeonic-temporal-relations-property-addressing-2026-11-16.json +38 -0
- package/conformance/results/aeonic-temporal-relations-rc3-2026-11-24.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 +86 -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 +859 -190
- 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,398 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"suite_id": "property-query",
|
|
4
|
+
"lane": "sansa-properties",
|
|
5
|
+
"capability": "SANSA.Resolve",
|
|
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-query",
|
|
13
|
+
"title": "Property candidate query",
|
|
14
|
+
"tests": [
|
|
15
|
+
{
|
|
16
|
+
"id": "sansa-properties-query-current-key",
|
|
17
|
+
"description": "query current key",
|
|
18
|
+
"input": {
|
|
19
|
+
"operation": "query",
|
|
20
|
+
"namespace": "properties",
|
|
21
|
+
"source": "from $.document\nselect .&key(\"document\")"
|
|
22
|
+
},
|
|
23
|
+
"expected": {
|
|
24
|
+
"ok": true,
|
|
25
|
+
"records": [
|
|
26
|
+
{
|
|
27
|
+
"candidate": "doc",
|
|
28
|
+
"valueBindings": [
|
|
29
|
+
"doc"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
"calls": {
|
|
34
|
+
"scope": 1,
|
|
35
|
+
"key": 1
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"covers": [
|
|
39
|
+
"query"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"id": "sansa-properties-query-context-key",
|
|
44
|
+
"description": "query context key",
|
|
45
|
+
"input": {
|
|
46
|
+
"operation": "query",
|
|
47
|
+
"namespace": "properties",
|
|
48
|
+
"source": "from $.document\nselect ?&key(\"document\")"
|
|
49
|
+
},
|
|
50
|
+
"expected": {
|
|
51
|
+
"ok": true,
|
|
52
|
+
"records": [
|
|
53
|
+
{
|
|
54
|
+
"candidate": "doc",
|
|
55
|
+
"valueBindings": []
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"calls": {
|
|
59
|
+
"scope": 1,
|
|
60
|
+
"key": 0
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"covers": [
|
|
64
|
+
"query"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "sansa-properties-query-current-tag",
|
|
69
|
+
"description": "query current tag",
|
|
70
|
+
"input": {
|
|
71
|
+
"operation": "query",
|
|
72
|
+
"namespace": "properties",
|
|
73
|
+
"source": "from $.document\nselect .&tag(\"catalog\")"
|
|
74
|
+
},
|
|
75
|
+
"expected": {
|
|
76
|
+
"ok": true,
|
|
77
|
+
"records": [
|
|
78
|
+
{
|
|
79
|
+
"candidate": "doc",
|
|
80
|
+
"valueBindings": [
|
|
81
|
+
"doc"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"covers": [
|
|
87
|
+
"query"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "sansa-properties-query-empty-select",
|
|
92
|
+
"description": "query empty select",
|
|
93
|
+
"input": {
|
|
94
|
+
"operation": "query",
|
|
95
|
+
"namespace": "properties",
|
|
96
|
+
"source": "from $.document\nselect .&key(\"absent\")"
|
|
97
|
+
},
|
|
98
|
+
"expected": {
|
|
99
|
+
"ok": true,
|
|
100
|
+
"records": [
|
|
101
|
+
{
|
|
102
|
+
"candidate": "doc",
|
|
103
|
+
"valueBindings": []
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"covers": [
|
|
108
|
+
"query"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"id": "sansa-properties-query-where-removes",
|
|
113
|
+
"description": "query where removes",
|
|
114
|
+
"input": {
|
|
115
|
+
"operation": "query",
|
|
116
|
+
"namespace": "properties",
|
|
117
|
+
"source": "from $.document\nwhere exists(.&key(\"absent\"))\nselect ."
|
|
118
|
+
},
|
|
119
|
+
"expected": {
|
|
120
|
+
"ok": true,
|
|
121
|
+
"records": []
|
|
122
|
+
},
|
|
123
|
+
"covers": [
|
|
124
|
+
"query"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "sansa-properties-query-quoted-spaces",
|
|
129
|
+
"description": "query quoted spaces",
|
|
130
|
+
"input": {
|
|
131
|
+
"operation": "query",
|
|
132
|
+
"namespace": "properties",
|
|
133
|
+
"source": "from $.*&key(\"a b\")\nselect ."
|
|
134
|
+
},
|
|
135
|
+
"expected": {
|
|
136
|
+
"ok": true,
|
|
137
|
+
"records": [
|
|
138
|
+
{
|
|
139
|
+
"candidate": "space",
|
|
140
|
+
"valueBindings": [
|
|
141
|
+
"space"
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
"covers": [
|
|
147
|
+
"query"
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "sansa-properties-query-scope-from-context",
|
|
152
|
+
"description": "query scope from context",
|
|
153
|
+
"input": {
|
|
154
|
+
"operation": "query",
|
|
155
|
+
"namespace": "properties",
|
|
156
|
+
"source": "from ?\nselect .&key(\"document\")",
|
|
157
|
+
"contextualRoot": "doc"
|
|
158
|
+
},
|
|
159
|
+
"expected": {
|
|
160
|
+
"ok": true,
|
|
161
|
+
"records": [
|
|
162
|
+
{
|
|
163
|
+
"candidate": "doc",
|
|
164
|
+
"valueBindings": []
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"covers": [
|
|
169
|
+
"query"
|
|
170
|
+
]
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "sansa-properties-query-local-root",
|
|
174
|
+
"description": "query local root",
|
|
175
|
+
"input": {
|
|
176
|
+
"operation": "query",
|
|
177
|
+
"namespace": "properties",
|
|
178
|
+
"source": "from $.document.<\"private\">\nselect .&key(\"fakePrivate\")"
|
|
179
|
+
},
|
|
180
|
+
"expected": {
|
|
181
|
+
"ok": true,
|
|
182
|
+
"records": [
|
|
183
|
+
{
|
|
184
|
+
"candidate": "private",
|
|
185
|
+
"valueBindings": []
|
|
186
|
+
}
|
|
187
|
+
]
|
|
188
|
+
},
|
|
189
|
+
"covers": [
|
|
190
|
+
"query"
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"id": "sansa-properties-query-unsupported-empty",
|
|
195
|
+
"description": "query unsupported empty",
|
|
196
|
+
"input": {
|
|
197
|
+
"operation": "query",
|
|
198
|
+
"namespace": "properties",
|
|
199
|
+
"source": "from $.missing\nwhere false\nselect .&tag(\"catalog\")",
|
|
200
|
+
"omit": [
|
|
201
|
+
"nodeHeads"
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"expected": {
|
|
205
|
+
"ok": false,
|
|
206
|
+
"records": [],
|
|
207
|
+
"error": "SANSA_RESOLVE_UNSUPPORTED_TAG",
|
|
208
|
+
"calls": {
|
|
209
|
+
"scope": 0,
|
|
210
|
+
"children": 0
|
|
211
|
+
},
|
|
212
|
+
"phase": "policy"
|
|
213
|
+
},
|
|
214
|
+
"covers": [
|
|
215
|
+
"query"
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"id": "sansa-properties-query-shared-exact",
|
|
220
|
+
"description": "query shared exact",
|
|
221
|
+
"input": {
|
|
222
|
+
"operation": "query",
|
|
223
|
+
"namespace": "properties",
|
|
224
|
+
"source": "from $.*&key(\"document\")\nwhere exists(.&tag(\"catalog\"))\nselect .&key(\"document\")",
|
|
225
|
+
"options": {
|
|
226
|
+
"resolve": {
|
|
227
|
+
"maxPropertyInspections": 16
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"expected": {
|
|
232
|
+
"ok": true,
|
|
233
|
+
"records": [
|
|
234
|
+
{
|
|
235
|
+
"candidate": "doc",
|
|
236
|
+
"valueBindings": [
|
|
237
|
+
"doc"
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"calls": {
|
|
242
|
+
"scope": 16,
|
|
243
|
+
"key": 14
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"covers": [
|
|
247
|
+
"query"
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"id": "sansa-properties-query-shared-overflow",
|
|
252
|
+
"description": "query shared overflow",
|
|
253
|
+
"input": {
|
|
254
|
+
"operation": "query",
|
|
255
|
+
"namespace": "properties",
|
|
256
|
+
"source": "from $.*&key(\"document\")\nwhere exists(.&tag(\"catalog\"))\nselect .&key(\"document\")",
|
|
257
|
+
"options": {
|
|
258
|
+
"resolve": {
|
|
259
|
+
"maxPropertyInspections": 15
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"expected": {
|
|
264
|
+
"ok": false,
|
|
265
|
+
"records": [],
|
|
266
|
+
"error": "SANSA_RESOLVE_PROPERTY_LIMIT_EXCEEDED",
|
|
267
|
+
"limit": 15,
|
|
268
|
+
"observed": 16,
|
|
269
|
+
"budget": "maxPropertyInspections",
|
|
270
|
+
"phase": "select"
|
|
271
|
+
},
|
|
272
|
+
"covers": [
|
|
273
|
+
"query"
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "sansa-properties-query-repeated-predicates",
|
|
278
|
+
"description": "query repeated predicates",
|
|
279
|
+
"input": {
|
|
280
|
+
"operation": "query",
|
|
281
|
+
"namespace": "properties",
|
|
282
|
+
"source": "from $.document\nwhere exists(.&key(\"document\"))\nselect .&key(\"document\")",
|
|
283
|
+
"options": {
|
|
284
|
+
"resolve": {
|
|
285
|
+
"maxPropertyInspections": 2
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
},
|
|
289
|
+
"expected": {
|
|
290
|
+
"ok": true,
|
|
291
|
+
"records": [
|
|
292
|
+
{
|
|
293
|
+
"candidate": "doc",
|
|
294
|
+
"valueBindings": [
|
|
295
|
+
"doc"
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
"calls": {
|
|
300
|
+
"scope": 2,
|
|
301
|
+
"key": 2
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"covers": [
|
|
305
|
+
"query"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "sansa-properties-query-current-ast",
|
|
310
|
+
"description": "query current ast",
|
|
311
|
+
"input": {
|
|
312
|
+
"operation": "parse-query",
|
|
313
|
+
"source": "from $.document\nselect .&key(\"document\")"
|
|
314
|
+
},
|
|
315
|
+
"expected": {
|
|
316
|
+
"ok": true,
|
|
317
|
+
"canonical": "from $.document\nselect .&key(\"document\")",
|
|
318
|
+
"currentPropertyScope": "current",
|
|
319
|
+
"currentAddressRoot": "contextual"
|
|
320
|
+
},
|
|
321
|
+
"covers": [
|
|
322
|
+
"query",
|
|
323
|
+
"ast"
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"id": "sansa-properties-query-fresh-counters",
|
|
328
|
+
"description": "query fresh counters",
|
|
329
|
+
"input": {
|
|
330
|
+
"operation": "query",
|
|
331
|
+
"namespace": "properties",
|
|
332
|
+
"source": "from $.document\nselect .&key(\"document\")",
|
|
333
|
+
"repeat": 2,
|
|
334
|
+
"options": {
|
|
335
|
+
"resolve": {
|
|
336
|
+
"maxPropertyInspections": 1
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"expected": {
|
|
341
|
+
"ok": true,
|
|
342
|
+
"records": [
|
|
343
|
+
{
|
|
344
|
+
"candidate": "doc",
|
|
345
|
+
"valueBindings": [
|
|
346
|
+
"doc"
|
|
347
|
+
]
|
|
348
|
+
}
|
|
349
|
+
],
|
|
350
|
+
"calls": {
|
|
351
|
+
"scope": 2,
|
|
352
|
+
"key": 2
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"covers": [
|
|
356
|
+
"query"
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"id": "sansa-properties-query-reentrant-counters",
|
|
361
|
+
"description": "query reentrant counters",
|
|
362
|
+
"input": {
|
|
363
|
+
"operation": "query",
|
|
364
|
+
"namespace": "properties",
|
|
365
|
+
"source": "from $.document\nwhere exists(.&key(\"document\"))\nselect .&key(\"document\")",
|
|
366
|
+
"reenter": {
|
|
367
|
+
"callback": "key",
|
|
368
|
+
"source": "from $.document\nselect .&key(\"document\")",
|
|
369
|
+
"maxPropertyInspections": 1
|
|
370
|
+
},
|
|
371
|
+
"options": {
|
|
372
|
+
"resolve": {
|
|
373
|
+
"maxPropertyInspections": 2
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"expected": {
|
|
378
|
+
"ok": true,
|
|
379
|
+
"records": [
|
|
380
|
+
{
|
|
381
|
+
"candidate": "doc",
|
|
382
|
+
"valueBindings": [
|
|
383
|
+
"doc"
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
],
|
|
387
|
+
"calls": {
|
|
388
|
+
"scope": 3,
|
|
389
|
+
"key": 3
|
|
390
|
+
},
|
|
391
|
+
"nestedResultsOk": true
|
|
392
|
+
},
|
|
393
|
+
"covers": [
|
|
394
|
+
"query"
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
]
|
|
398
|
+
}
|