@altopelago/sansa 0.9.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/CHANGELOG.md +41 -0
- package/CODE_OF_CONDUCT.md +28 -0
- package/CONTRIBUTING.md +52 -0
- package/GOVERNANCE.md +35 -0
- package/LICENSE +21 -0
- package/README.md +146 -0
- package/SECURITY.md +38 -0
- package/docs/api-contract.md +788 -0
- package/docs/capabilities.json +80 -0
- package/docs/query-tool.md +228 -0
- package/docs/releasing.md +37 -0
- package/fixtures/address-v1.json +316 -0
- package/fixtures/query-inventory.aeon +69 -0
- package/fixtures/query-inventory.json +671 -0
- package/fixtures/query-params-single.json +10 -0
- package/package.json +70 -0
- package/scripts/cts-address.mjs +107 -0
- package/scripts/cts-query.mjs +271 -0
- package/scripts/cts-resolve.mjs +151 -0
- package/scripts/cts-value-semantics.mjs +83 -0
- package/scripts/query-web.mjs +145 -0
- package/scripts/query.mjs +579 -0
- package/scripts/stress-addresses.mjs +65 -0
- package/src/index.d.ts +575 -0
- package/src/index.js +3389 -0
- package/stress-tests/README.md +19 -0
- package/stress-tests/address/invalid.sansa-cases +60 -0
- package/stress-tests/address/valid.sansa-cases +76 -0
- package/tools/query-web/app.js +266 -0
- package/tools/query-web/examples.mjs +478 -0
- package/tools/query-web/index.html +117 -0
- package/tools/query-web/runtime.mjs +796 -0
- package/tools/query-web/styles.css +251 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
color-scheme: light;
|
|
3
|
+
--bg: #f4f1ea;
|
|
4
|
+
--panel: #fffdf8;
|
|
5
|
+
--ink: #20231d;
|
|
6
|
+
--muted: #666a5f;
|
|
7
|
+
--line: #d7d3c9;
|
|
8
|
+
--accent: #245b4f;
|
|
9
|
+
--accent-dark: #183e36;
|
|
10
|
+
--danger: #9b2f2f;
|
|
11
|
+
--code: #161a18;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
* {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
body {
|
|
19
|
+
margin: 0;
|
|
20
|
+
min-width: 320px;
|
|
21
|
+
background: var(--bg);
|
|
22
|
+
color: var(--ink);
|
|
23
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
button,
|
|
27
|
+
select,
|
|
28
|
+
textarea,
|
|
29
|
+
input {
|
|
30
|
+
font: inherit;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.app-shell {
|
|
34
|
+
min-height: 100vh;
|
|
35
|
+
display: grid;
|
|
36
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.topbar {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: end;
|
|
42
|
+
justify-content: space-between;
|
|
43
|
+
gap: 24px;
|
|
44
|
+
padding: 20px 24px;
|
|
45
|
+
border-bottom: 1px solid var(--line);
|
|
46
|
+
background: #fbfaf5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
h1 {
|
|
50
|
+
margin: 0;
|
|
51
|
+
font-family: ui-serif, Georgia, "Times New Roman", serif;
|
|
52
|
+
font-size: 32px;
|
|
53
|
+
line-height: 1.1;
|
|
54
|
+
letter-spacing: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
p {
|
|
58
|
+
margin: 6px 0 0;
|
|
59
|
+
color: var(--muted);
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.topbar-actions {
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-wrap: wrap;
|
|
66
|
+
justify-content: flex-end;
|
|
67
|
+
gap: 8px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
button,
|
|
71
|
+
select {
|
|
72
|
+
min-height: 40px;
|
|
73
|
+
border: 1px solid var(--line);
|
|
74
|
+
border-radius: 6px;
|
|
75
|
+
background: var(--panel);
|
|
76
|
+
color: var(--ink);
|
|
77
|
+
padding: 0 12px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
button {
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
font-weight: 700;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
#runButton {
|
|
86
|
+
border-color: var(--accent);
|
|
87
|
+
background: var(--accent);
|
|
88
|
+
color: white;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
#runButton:hover {
|
|
92
|
+
background: var(--accent-dark);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.workspace {
|
|
96
|
+
min-height: 0;
|
|
97
|
+
display: grid;
|
|
98
|
+
grid-template-columns: minmax(360px, 1fr) minmax(420px, 1fr);
|
|
99
|
+
gap: 14px;
|
|
100
|
+
padding: 14px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.panel {
|
|
104
|
+
min-height: 0;
|
|
105
|
+
display: grid;
|
|
106
|
+
border: 1px solid var(--line);
|
|
107
|
+
border-radius: 8px;
|
|
108
|
+
background: var(--panel);
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.source-panel {
|
|
113
|
+
grid-template-rows: auto auto minmax(180px, 0.72fr) auto minmax(120px, 0.28fr);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.query-panel {
|
|
117
|
+
grid-template-rows: auto minmax(140px, 0.55fr) auto auto auto minmax(180px, 0.45fr);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.panel-head {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: space-between;
|
|
124
|
+
gap: 16px;
|
|
125
|
+
min-height: 42px;
|
|
126
|
+
padding: 10px 14px;
|
|
127
|
+
border-bottom: 1px solid var(--line);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.results-head {
|
|
131
|
+
border-top: 1px solid var(--line);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.params-head {
|
|
135
|
+
border-top: 1px solid var(--line);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
label,
|
|
139
|
+
.panel-head span {
|
|
140
|
+
font-size: 12px;
|
|
141
|
+
font-weight: 800;
|
|
142
|
+
letter-spacing: 0.08em;
|
|
143
|
+
text-transform: uppercase;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.panel-head span {
|
|
147
|
+
color: var(--muted);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
textarea,
|
|
151
|
+
pre {
|
|
152
|
+
width: 100%;
|
|
153
|
+
min-width: 0;
|
|
154
|
+
min-height: 0;
|
|
155
|
+
margin: 0;
|
|
156
|
+
border: 0;
|
|
157
|
+
outline: 0;
|
|
158
|
+
resize: none;
|
|
159
|
+
background: var(--code);
|
|
160
|
+
color: #f5f1e8;
|
|
161
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
|
|
162
|
+
font-size: 13px;
|
|
163
|
+
line-height: 1.55;
|
|
164
|
+
letter-spacing: 0;
|
|
165
|
+
tab-size: 2;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
textarea {
|
|
169
|
+
padding: 14px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
textarea:focus {
|
|
173
|
+
box-shadow: inset 0 0 0 2px #3478d4;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
pre {
|
|
177
|
+
overflow: auto;
|
|
178
|
+
padding: 14px;
|
|
179
|
+
white-space: pre-wrap;
|
|
180
|
+
word-break: break-word;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.mode-row,
|
|
184
|
+
.budget-row,
|
|
185
|
+
.source-mode-row {
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: 16px;
|
|
189
|
+
min-height: 42px;
|
|
190
|
+
padding: 0 14px;
|
|
191
|
+
border-top: 1px solid var(--line);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.source-mode-row {
|
|
195
|
+
border-top: 0;
|
|
196
|
+
border-bottom: 1px solid var(--line);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.mode-row label,
|
|
200
|
+
.budget-row label,
|
|
201
|
+
.source-mode-row label {
|
|
202
|
+
display: inline-flex;
|
|
203
|
+
align-items: center;
|
|
204
|
+
gap: 6px;
|
|
205
|
+
color: var(--muted);
|
|
206
|
+
letter-spacing: 0;
|
|
207
|
+
text-transform: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.mode-row input,
|
|
211
|
+
.source-mode-row input {
|
|
212
|
+
accent-color: var(--accent);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.budget-row {
|
|
216
|
+
flex-wrap: wrap;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.budget-row label {
|
|
220
|
+
gap: 8px;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.budget-row input {
|
|
224
|
+
width: 96px;
|
|
225
|
+
min-height: 30px;
|
|
226
|
+
border: 1px solid var(--line);
|
|
227
|
+
border-radius: 6px;
|
|
228
|
+
background: #fffdf8;
|
|
229
|
+
color: var(--ink);
|
|
230
|
+
padding: 0 8px;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@media (max-width: 860px) {
|
|
234
|
+
.topbar {
|
|
235
|
+
align-items: stretch;
|
|
236
|
+
flex-direction: column;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.topbar-actions {
|
|
240
|
+
justify-content: stretch;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.topbar-actions > * {
|
|
244
|
+
flex: 1 1 140px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.workspace {
|
|
248
|
+
grid-template-columns: minmax(0, 1fr);
|
|
249
|
+
grid-template-rows: minmax(520px, 52vh) minmax(520px, 1fr);
|
|
250
|
+
}
|
|
251
|
+
}
|