Qlty config and code cleanup !1

merged merged by cmc on 2026-10-30 05:53 UTC · audit-labs/gh-attest:cleanup into main

7 files changed, +543 −502

Layout: unified · split

.qlty/.gitignore added +7
@@ -0,0 +1,7 @@
1*
2!configs
3!configs/**
4!hooks
5!hooks/**
6!qlty.toml
7!.gitignore
.qlty/qlty.toml added +46
@@ -0,0 +1,46 @@
1config_version = "0"
2
3exclude_patterns = [
4 "**/vendor/**",
5 "**/node_modules/**",
6 "**/testdata/**",
7 "**/dist/**",
8 "**/.build/**",
9 "**/build/**",
10 "**/*.min.*",
11 "**/generated/**",
12 ".claude/**",
13 "**/Pods/**",
14]
15
16test_patterns = [
17 "**/test/**",
18 "**/tests/**",
19 "**/Tests/**",
20 "**/*_test.*",
21 "**/test_*.*",
22 "**/*.test.*",
23 "**/*Tests.swift",
24 "e2e/**",
25]
26
27[[source]]
28name = "default"
29default = true
30
31[[plugin]]
32name = "osv-scanner"
33
34[[plugin]]
35name = "trufflehog"
36
37# Early returns are guard clauses, which keep the happy path unindented.
38[smells.return_statements]
39enabled = false
40
41# Function and file complexity are left to review rather than counted.
42[smells.function_complexity]
43enabled = false
44
45[smells.file_complexity]
46enabled = false
package-lock.json +319 −314
@@ -27,10 +27,26 @@
27 "node": ">=22.0.0" 27 "node": ">=22.0.0"
28 } 28 }
29 }, 29 },
30 "node_modules/@cloudflare/unenv-preset": {
31 "version": "2.16.2",
32 "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.2.tgz",
33 "integrity": "sha512-JBP1+Z7ZSNG/d4mRP+y8VC5dka3tZVMLEZRvS+rzQ4DGV1EoxRFQckcJTTkXbHSQiTj0DtNI01Zwb/V2fX0mvQ==",
34 "dev": true,
35 "license": "MIT OR Apache-2.0",
36 "peerDependencies": {
37 "unenv": "2.0.0-rc.24",
38 "workerd": ">1.20260305.0 <2.0.0-0"
39 },
40 "peerDependenciesMeta": {
41 "workerd": {
42 "optional": true
43 }
44 }
45 },
30 "node_modules/@cloudflare/workerd-darwin-64": { 46 "node_modules/@cloudflare/workerd-darwin-64": {
31 "version": "1.20260815.1", 47 "version": "1.20261019.1",
32 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20260815.1.tgz", 48 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-64/-/workerd-darwin-64-1.20261019.1.tgz",
33 "integrity": "sha512-7PsLdcz6pT9EMd1EJGZEgMyYRfs0CHxGs62PS2L1w3s6+xGmQcRXKm/zoMftmqZF45JBa4MzFeownRKbRt/x5g==", 49 "integrity": "sha512-5ZILbAta/fBQvhmAYeCE7dKMMYIr7N9wJEX50fEGLKSIwGtvT0HzSfHNIK/O7cBQ4gHQ2WfIiPClvwcye6E0fA==",
34 "cpu": [ 50 "cpu": [
35 "x64" 51 "x64"
36 ], 52 ],
@@ -45,9 +61,9 @@
45 } 61 }
46 }, 62 },
47 "node_modules/@cloudflare/workerd-darwin-arm64": { 63 "node_modules/@cloudflare/workerd-darwin-arm64": {
48 "version": "1.20260815.1", 64 "version": "1.20261019.1",
49 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20260815.1.tgz", 65 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-darwin-arm64/-/workerd-darwin-arm64-1.20261019.1.tgz",
50 "integrity": "sha512-60wtg8ng7FVWeOg/UMbZ9Ye0sslpRRAKoftPbdtuH2volq676quxVr6Zm2EjVULH/JFZeCn72dbLlrnbh0Mpcw==", 66 "integrity": "sha512-cww2Ab6lVMxpTiEEjKmPI58p5EMo0vYTZSH+3WkqXJdQgc3ES66GuL247+U2B2YWajhhu2tqj7jySrXneU749g==",
51 "cpu": [ 67 "cpu": [
52 "arm64" 68 "arm64"
53 ], 69 ],
@@ -62,9 +78,9 @@
62 } 78 }
63 }, 79 },
64 "node_modules/@cloudflare/workerd-linux-64": { 80 "node_modules/@cloudflare/workerd-linux-64": {
65 "version": "1.20260815.1", 81 "version": "1.20261019.1",
66 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20260815.1.tgz", 82 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-64/-/workerd-linux-64-1.20261019.1.tgz",
67 "integrity": "sha512-MuqKIHPo0Qyo8MZMmy0lP2B5PeAL7f4T9Fu4Usk3QdbV4JIrKG/OoybN3Ign7m/Dff+L1Oo/ZHydB+hEg1ueFw==", 83 "integrity": "sha512-4++VRi9vkQROYqrpZYOixIJuVDmujkwrT4kszsxNFlvcmsX6Mr2GumvxIN3gIixS3vJUh3Umdtkthqj5X0S3Xw==",
68 "cpu": [ 84 "cpu": [
69 "x64" 85 "x64"
70 ], 86 ],
@@ -79,9 +95,9 @@
79 } 95 }
80 }, 96 },
81 "node_modules/@cloudflare/workerd-linux-arm64": { 97 "node_modules/@cloudflare/workerd-linux-arm64": {
82 "version": "1.20260815.1", 98 "version": "1.20261019.1",
83 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20260815.1.tgz", 99 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-linux-arm64/-/workerd-linux-arm64-1.20261019.1.tgz",
84 "integrity": "sha512-XNFtJ5rIqJxnY6ISjkfbhT/ODiWJ6LcBvNbntuPD6I/F2k7aZeKgPaXrvWvKde66LXyzFKzc8Hn+Ydx4shevQg==", 100 "integrity": "sha512-75PVtJOwfjScQ53sbLtQXI7D8yP1c21t+WEUPaYbqkzaz4ZqfR5wAd+zuWs8G5Q7kOj2SQIvEfY5Sn8Y+UVrnA==",
85 "cpu": [ 101 "cpu": [
86 "arm64" 102 "arm64"
87 ], 103 ],
@@ -96,9 +112,9 @@
96 } 112 }
97 }, 113 },
98 "node_modules/@cloudflare/workerd-windows-64": { 114 "node_modules/@cloudflare/workerd-windows-64": {
99 "version": "1.20260815.1", 115 "version": "1.20261019.1",
100 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20260815.1.tgz", 116 "resolved": "https://registry.npmjs.org/@cloudflare/workerd-windows-64/-/workerd-windows-64-1.20261019.1.tgz",
101 "integrity": "sha512-PiIUWrhbMg3quolwjgMvPOd75vKESjT4aDm7nL6mSjL5IOgmpO/zKstXnYfnEH3pq7sC0UCvKlF8ZPcfsh8NMw==", 117 "integrity": "sha512-z49fvKTETMCnG6wnMcQwxx9CpryFceiKz04FRjq26EkhCyzRNJ6c3UXhyZz3r5f1CXnnBZc5DcU8ZouPkUJCqw==",
102 "cpu": [ 118 "cpu": [
103 "x64" 119 "x64"
104 ], 120 ],
@@ -137,9 +153,9 @@
137 } 153 }
138 }, 154 },
139 "node_modules/@esbuild/aix-ppc64": { 155 "node_modules/@esbuild/aix-ppc64": {
140 "version": "0.28.1", 156 "version": "0.28.2",
141 "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz", 157 "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz",
142 "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==", 158 "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==",
143 "cpu": [ 159 "cpu": [
144 "ppc64" 160 "ppc64"
145 ], 161 ],
@@ -154,9 +170,9 @@
154 } 170 }
155 }, 171 },
156 "node_modules/@esbuild/android-arm": { 172 "node_modules/@esbuild/android-arm": {
157 "version": "0.28.1", 173 "version": "0.28.2",
158 "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz", 174 "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz",
159 "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==", 175 "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==",
160 "cpu": [ 176 "cpu": [
161 "arm" 177 "arm"
162 ], 178 ],
@@ -171,9 +187,9 @@
171 } 187 }
172 }, 188 },
173 "node_modules/@esbuild/android-arm64": { 189 "node_modules/@esbuild/android-arm64": {
174 "version": "0.28.1", 190 "version": "0.28.2",
175 "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz", 191 "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz",
176 "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==", 192 "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==",
177 "cpu": [ 193 "cpu": [
178 "arm64" 194 "arm64"
179 ], 195 ],
@@ -188,9 +204,9 @@
188 } 204 }
189 }, 205 },
190 "node_modules/@esbuild/android-x64": { 206 "node_modules/@esbuild/android-x64": {
191 "version": "0.28.1", 207 "version": "0.28.2",
192 "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz", 208 "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz",
193 "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==", 209 "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==",
194 "cpu": [ 210 "cpu": [
195 "x64" 211 "x64"
196 ], 212 ],
@@ -205,9 +221,9 @@
205 } 221 }
206 }, 222 },
207 "node_modules/@esbuild/darwin-arm64": { 223 "node_modules/@esbuild/darwin-arm64": {
208 "version": "0.28.1", 224 "version": "0.28.2",
209 "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz", 225 "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz",
210 "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==", 226 "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==",
211 "cpu": [ 227 "cpu": [
212 "arm64" 228 "arm64"
213 ], 229 ],
@@ -222,9 +238,9 @@
222 } 238 }
223 }, 239 },
224 "node_modules/@esbuild/darwin-x64": { 240 "node_modules/@esbuild/darwin-x64": {
225 "version": "0.28.1", 241 "version": "0.28.2",
226 "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz", 242 "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz",
227 "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==", 243 "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==",
228 "cpu": [ 244 "cpu": [
229 "x64" 245 "x64"
230 ], 246 ],
@@ -239,9 +255,9 @@
239 } 255 }
240 }, 256 },
241 "node_modules/@esbuild/freebsd-arm64": { 257 "node_modules/@esbuild/freebsd-arm64": {
242 "version": "0.28.1", 258 "version": "0.28.2",
243 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz", 259 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz",
244 "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==", 260 "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==",
245 "cpu": [ 261 "cpu": [
246 "arm64" 262 "arm64"
247 ], 263 ],
@@ -256,9 +272,9 @@
256 } 272 }
257 }, 273 },
258 "node_modules/@esbuild/freebsd-x64": { 274 "node_modules/@esbuild/freebsd-x64": {
259 "version": "0.28.1", 275 "version": "0.28.2",
260 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz", 276 "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz",
261 "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==", 277 "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==",
262 "cpu": [ 278 "cpu": [
263 "x64" 279 "x64"
264 ], 280 ],
@@ -273,9 +289,9 @@
273 } 289 }
274 }, 290 },
275 "node_modules/@esbuild/linux-arm": { 291 "node_modules/@esbuild/linux-arm": {
276 "version": "0.28.1", 292 "version": "0.28.2",
277 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz", 293 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz",
278 "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==", 294 "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==",
279 "cpu": [ 295 "cpu": [
280 "arm" 296 "arm"
281 ], 297 ],
@@ -290,9 +306,9 @@
290 } 306 }
291 }, 307 },
292 "node_modules/@esbuild/linux-arm64": { 308 "node_modules/@esbuild/linux-arm64": {
293 "version": "0.28.1", 309 "version": "0.28.2",
294 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz", 310 "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz",
295 "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==", 311 "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==",
296 "cpu": [ 312 "cpu": [
297 "arm64" 313 "arm64"
298 ], 314 ],
@@ -307,9 +323,9 @@
307 } 323 }
308 }, 324 },
309 "node_modules/@esbuild/linux-ia32": { 325 "node_modules/@esbuild/linux-ia32": {
310 "version": "0.28.1", 326 "version": "0.28.2",
311 "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz", 327 "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz",
312 "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==", 328 "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==",
313 "cpu": [ 329 "cpu": [
314 "ia32" 330 "ia32"
315 ], 331 ],
@@ -324,9 +340,9 @@
324 } 340 }
325 }, 341 },
326 "node_modules/@esbuild/linux-loong64": { 342 "node_modules/@esbuild/linux-loong64": {
327 "version": "0.28.1", 343 "version": "0.28.2",
328 "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz", 344 "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz",
329 "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==", 345 "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==",
330 "cpu": [ 346 "cpu": [
331 "loong64" 347 "loong64"
332 ], 348 ],
@@ -341,9 +357,9 @@
341 } 357 }
342 }, 358 },
343 "node_modules/@esbuild/linux-mips64el": { 359 "node_modules/@esbuild/linux-mips64el": {
344 "version": "0.28.1", 360 "version": "0.28.2",
345 "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz", 361 "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz",
346 "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==", 362 "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==",
347 "cpu": [ 363 "cpu": [
348 "mips64el" 364 "mips64el"
349 ], 365 ],
@@ -358,9 +374,9 @@
358 } 374 }
359 }, 375 },
360 "node_modules/@esbuild/linux-ppc64": { 376 "node_modules/@esbuild/linux-ppc64": {
361 "version": "0.28.1", 377 "version": "0.28.2",
362 "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz", 378 "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz",
363 "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==", 379 "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==",
364 "cpu": [ 380 "cpu": [
365 "ppc64" 381 "ppc64"
366 ], 382 ],
@@ -375,9 +391,9 @@
375 } 391 }
376 }, 392 },
377 "node_modules/@esbuild/linux-riscv64": { 393 "node_modules/@esbuild/linux-riscv64": {
378 "version": "0.28.1", 394 "version": "0.28.2",
379 "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz", 395 "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz",
380 "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==", 396 "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==",
381 "cpu": [ 397 "cpu": [
382 "riscv64" 398 "riscv64"
383 ], 399 ],
@@ -392,9 +408,9 @@
392 } 408 }
393 }, 409 },
394 "node_modules/@esbuild/linux-s390x": { 410 "node_modules/@esbuild/linux-s390x": {
395 "version": "0.28.1", 411 "version": "0.28.2",
396 "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz", 412 "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz",
397 "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==", 413 "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==",
398 "cpu": [ 414 "cpu": [
399 "s390x" 415 "s390x"
400 ], 416 ],
@@ -409,9 +425,9 @@
409 } 425 }
410 }, 426 },
411 "node_modules/@esbuild/linux-x64": { 427 "node_modules/@esbuild/linux-x64": {
412 "version": "0.28.1", 428 "version": "0.28.2",
413 "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz", 429 "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz",
414 "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==", 430 "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==",
415 "cpu": [ 431 "cpu": [
416 "x64" 432 "x64"
417 ], 433 ],
@@ -425,10 +441,27 @@
425 "node": ">=18" 441 "node": ">=18"
426 } 442 }
427 }, 443 },
444 "node_modules/@esbuild/netbsd-arm64": {
445 "version": "0.28.2",
446 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz",
447 "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==",
448 "cpu": [
449 "arm64"
450 ],
451 "dev": true,
452 "license": "MIT",
453 "optional": true,
454 "os": [
455 "netbsd"
456 ],
457 "engines": {
458 "node": ">=18"
459 }
460 },
428 "node_modules/@esbuild/netbsd-x64": { 461 "node_modules/@esbuild/netbsd-x64": {
429 "version": "0.28.1", 462 "version": "0.28.2",
430 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz", 463 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz",
431 "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==", 464 "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==",
432 "cpu": [ 465 "cpu": [
433 "x64" 466 "x64"
434 ], 467 ],
@@ -442,10 +475,27 @@
442 "node": ">=18" 475 "node": ">=18"
443 } 476 }
444 }, 477 },
478 "node_modules/@esbuild/openbsd-arm64": {
479 "version": "0.28.2",
480 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz",
481 "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==",
482 "cpu": [
483 "arm64"
484 ],
485 "dev": true,
486 "license": "MIT",
487 "optional": true,
488 "os": [
489 "openbsd"
490 ],
491 "engines": {
492 "node": ">=18"
493 }
494 },
445 "node_modules/@esbuild/openbsd-x64": { 495 "node_modules/@esbuild/openbsd-x64": {
446 "version": "0.28.1", 496 "version": "0.28.2",
447 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz", 497 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz",
448 "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==", 498 "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==",
449 "cpu": [ 499 "cpu": [
450 "x64" 500 "x64"
451 ], 501 ],
@@ -460,9 +510,9 @@
460 } 510 }
461 }, 511 },
462 "node_modules/@esbuild/openharmony-arm64": { 512 "node_modules/@esbuild/openharmony-arm64": {
463 "version": "0.28.1", 513 "version": "0.28.2",
464 "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz", 514 "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz",
465 "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==", 515 "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==",
466 "cpu": [ 516 "cpu": [
467 "arm64" 517 "arm64"
468 ], 518 ],
@@ -477,9 +527,9 @@
477 } 527 }
478 }, 528 },
479 "node_modules/@esbuild/sunos-x64": { 529 "node_modules/@esbuild/sunos-x64": {
480 "version": "0.28.1", 530 "version": "0.28.2",
481 "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz", 531 "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz",
482 "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==", 532 "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==",
483 "cpu": [ 533 "cpu": [
484 "x64" 534 "x64"
485 ], 535 ],
@@ -494,9 +544,9 @@
494 } 544 }
495 }, 545 },
496 "node_modules/@esbuild/win32-arm64": { 546 "node_modules/@esbuild/win32-arm64": {
497 "version": "0.28.1", 547 "version": "0.28.2",
498 "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz", 548 "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz",
499 "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==", 549 "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==",
500 "cpu": [ 550 "cpu": [
501 "arm64" 551 "arm64"
502 ], 552 ],
@@ -511,9 +561,9 @@
511 } 561 }
512 }, 562 },
513 "node_modules/@esbuild/win32-ia32": { 563 "node_modules/@esbuild/win32-ia32": {
514 "version": "0.28.1", 564 "version": "0.28.2",
515 "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz", 565 "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz",
516 "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==", 566 "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==",
517 "cpu": [ 567 "cpu": [
518 "ia32" 568 "ia32"
519 ], 569 ],
@@ -528,9 +578,9 @@
528 } 578 }
529 }, 579 },
530 "node_modules/@esbuild/win32-x64": { 580 "node_modules/@esbuild/win32-x64": {
531 "version": "0.28.1", 581 "version": "0.28.2",
532 "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz", 582 "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz",
533 "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==", 583 "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==",
534 "cpu": [ 584 "cpu": [
535 "x64" 585 "x64"
536 ], 586 ],
@@ -555,9 +605,9 @@
555 } 605 }
556 }, 606 },
557 "node_modules/@img/sharp-darwin-arm64": { 607 "node_modules/@img/sharp-darwin-arm64": {
558 "version": "0.35.2", 608 "version": "0.35.5",
559 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.2.tgz", 609 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.35.5.tgz",
560 "integrity": "sha512-eEieHsMksAW4IiO5NzauESRl2D2qz3J/kwUxUrSfV06A93eEaRfMpHXyUb1mAqrR7i8U9A0GRqE9pjn6u1Jjpg==", 610 "integrity": "sha512-QRUlFQ0WxvdWyqqG/WtI3iupfD5rBzmCHXSdPsY91sAtVtTo7Q4cb6zOccZ3gqEqkr0f1As1ehLqmEpDsRf+lg==",
561 "cpu": [ 611 "cpu": [
562 "arm64" 612 "arm64"
563 ], 613 ],
@@ -574,13 +624,13 @@
574 "url": "https://opencollective.com/libvips" 624 "url": "https://opencollective.com/libvips"
575 }, 625 },
576 "optionalDependencies": { 626 "optionalDependencies": {
577 "@img/sharp-libvips-darwin-arm64": "1.3.1" 627 "@img/sharp-libvips-darwin-arm64": "1.3.4"
578 } 628 }
579 }, 629 },
580 "node_modules/@img/sharp-darwin-x64": { 630 "node_modules/@img/sharp-darwin-x64": {
581 "version": "0.35.2", 631 "version": "0.35.5",
582 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.2.tgz", 632 "resolved": "https://registry.npmjs.org/@img/sharp-darwin-x64/-/sharp-darwin-x64-0.35.5.tgz",
583 "integrity": "sha512-BaktuGPCeHJMARpodR8jK4uKiZrPAy9WrfQW0sdI37clracq8Bp01AYS3SZgi5FS/y5twa9t4+LIuuxQjqRrWw==", 633 "integrity": "sha512-+BR255RhDlpygUpOc/Jdt1nT6DQ3XG/ERo5wbcdOf5Q320dKtPCKPLR1LJs9VGXRaMa8l1uUa0tkCNOXiAxZUw==",
584 "cpu": [ 634 "cpu": [
585 "x64" 635 "x64"
586 ], 636 ],
@@ -597,13 +647,13 @@
597 "url": "https://opencollective.com/libvips" 647 "url": "https://opencollective.com/libvips"
598 }, 648 },
599 "optionalDependencies": { 649 "optionalDependencies": {
600 "@img/sharp-libvips-darwin-x64": "1.3.1" 650 "@img/sharp-libvips-darwin-x64": "1.3.4"
601 } 651 }
602 }, 652 },
603 "node_modules/@img/sharp-freebsd-wasm32": { 653 "node_modules/@img/sharp-freebsd-wasm32": {
604 "version": "0.35.2", 654 "version": "0.35.5",
605 "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.2.tgz", 655 "resolved": "https://registry.npmjs.org/@img/sharp-freebsd-wasm32/-/sharp-freebsd-wasm32-0.35.5.tgz",
606 "integrity": "sha512-YoAxdnd8hPUkvLHd3bWY+YA8nw3xM/RyRopYucNsWHVSan8NLVM3X2volsfoRDcXdUJPg6tXahSd7HXPK7lRnw==", 656 "integrity": "sha512-Y/z91nEZ4uIBX5X3nfTovjU9lHNKFYbL2lpHCLVNmXQK03VIZvXBBt0KxbPGp2SdGSF+2mQU4e+hQaWOt86iAw==",
607 "dev": true, 657 "dev": true,
608 "license": "Apache-2.0", 658 "license": "Apache-2.0",
609 "optional": true, 659 "optional": true,
@@ -611,7 +661,7 @@
611 "freebsd" 661 "freebsd"
612 ], 662 ],
613 "dependencies": { 663 "dependencies": {
614 "@img/sharp-wasm32": "0.35.2" 664 "@img/sharp-wasm32": "0.35.5"
615 }, 665 },
616 "engines": { 666 "engines": {
617 "node": ">=20.9.0" 667 "node": ">=20.9.0"
@@ -621,9 +671,9 @@
621 } 671 }
622 }, 672 },
623 "node_modules/@img/sharp-libvips-darwin-arm64": { 673 "node_modules/@img/sharp-libvips-darwin-arm64": {
624 "version": "1.3.1", 674 "version": "1.3.4",
625 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.1.tgz", 675 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.3.4.tgz",
626 "integrity": "sha512-4V/M3roRMTYjiwZY9IOVQOE8OyeCxFAkYmyZDrZl51uOKjibm3oeEJ4WAmLxutAfzFbC9jqUiPs2gbnGflH+7g==", 676 "integrity": "sha512-5R89nBYiRdUlSWJxPhO+GVtaXzXSxKnRu/xqMn3KTA3L9EB9Oy/P+Nn2f2vlhPuUdy/Zusb2DarbyTpGCfEDuw==",
627 "cpu": [ 677 "cpu": [
628 "arm64" 678 "arm64"
629 ], 679 ],
@@ -638,9 +688,9 @@
638 } 688 }
639 }, 689 },
640 "node_modules/@img/sharp-libvips-darwin-x64": { 690 "node_modules/@img/sharp-libvips-darwin-x64": {
641 "version": "1.3.1", 691 "version": "1.3.4",
642 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.1.tgz", 692 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-x64/-/sharp-libvips-darwin-x64-1.3.4.tgz",
643 "integrity": "sha512-c0/DxItpJv2+dGhgycJBBgotdqruGYDvA79drdh0MD1dFpy7JzJ/PlXwi1H4rFf0eTy8tgbI91aHDnZIceY3jQ==", 693 "integrity": "sha512-iR2OKH80yi0U+dUplyh3/xdpFvps6YkCwsXenIJxqxR1v9o+xtKTGbS9H7cps+2Vxjc8B1j96p75NmTGjIhtpQ==",
644 "cpu": [ 694 "cpu": [
645 "x64" 695 "x64"
646 ], 696 ],
@@ -655,9 +705,9 @@
655 } 705 }
656 }, 706 },
657 "node_modules/@img/sharp-libvips-linux-arm": { 707 "node_modules/@img/sharp-libvips-linux-arm": {
658 "version": "1.3.1", 708 "version": "1.3.4",
659 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.1.tgz", 709 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm/-/sharp-libvips-linux-arm-1.3.4.tgz",
660 "integrity": "sha512-aGGy9aWzXgHBG7HNyQPWorZthlp7+x6fDRoPAQbGO3ThcttuTyKIx3NuSHb6zb4gBNq6/yNn9f1cy9nFKS/Vmg==", 710 "integrity": "sha512-LmRtTsOHuvM2+wlO2Db37dx5MiZhB0FvSunciw48YjdOkZz9KAiRbm8ujeMOA1INqmei5NapFxYEK1D1ZSidmw==",
661 "cpu": [ 711 "cpu": [
662 "arm" 712 "arm"
663 ], 713 ],
@@ -675,9 +725,9 @@
675 } 725 }
676 }, 726 },
677 "node_modules/@img/sharp-libvips-linux-arm64": { 727 "node_modules/@img/sharp-libvips-linux-arm64": {
678 "version": "1.3.1", 728 "version": "1.3.4",
679 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.1.tgz", 729 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-arm64/-/sharp-libvips-linux-arm64-1.3.4.tgz",
680 "integrity": "sha512-JznefmcK9j1JKPz8AkQDh89kjojubyfOasWBPKfzMIhPwsgDy9evpE/naJTXXXmghS1iFwR8u/kTwh/I2/+GCw==", 730 "integrity": "sha512-Y3dgX/6lE2QhQb+Gxy0WZxfg9MEm/JBjamZpS2IklP7xIQoKN4hzAm7KcMVGtaVDt3neE9OKBC7vAfonA/Lr1A==",
681 "cpu": [ 731 "cpu": [
682 "arm64" 732 "arm64"
683 ], 733 ],
@@ -695,9 +745,9 @@
695 } 745 }
696 }, 746 },
697 "node_modules/@img/sharp-libvips-linux-ppc64": { 747 "node_modules/@img/sharp-libvips-linux-ppc64": {
698 "version": "1.3.1", 748 "version": "1.3.4",
699 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.1.tgz", 749 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-ppc64/-/sharp-libvips-linux-ppc64-1.3.4.tgz",
700 "integrity": "sha512-1EkwGNCZk6iWNCMWqrvdJ+r1j0PT1zIz60CNPhYnJlK/zyeWqlsPZIe+ocBVqPF8k/Ssee/NCk+tE9Ryrko6ng==", 750 "integrity": "sha512-Le6boB8Tai0Nis+gIxIpKx68UDVVIqdR8Tin5Yf1z2LJJQLDJvCDRqRu+jC2qCoD+eIomonmOwB4smBRxfVpYQ==",
701 "cpu": [ 751 "cpu": [
702 "ppc64" 752 "ppc64"
703 ], 753 ],
@@ -715,9 +765,9 @@
715 } 765 }
716 }, 766 },
717 "node_modules/@img/sharp-libvips-linux-riscv64": { 767 "node_modules/@img/sharp-libvips-linux-riscv64": {
718 "version": "1.3.1", 768 "version": "1.3.4",
719 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.1.tgz", 769 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-riscv64/-/sharp-libvips-linux-riscv64-1.3.4.tgz",
720 "integrity": "sha512-Ilays+w2bXdnxzxtQdmXR62u8o8GYa3eL4+Gr+1KiE4xperMZUslRaVPJwwPkzlHEjGfXAfRVAa/7CYCtSqsBw==", 770 "integrity": "sha512-aHkkIEHPRdQEegJN20MLmGtxYD9R2wQr3Cwpddnu5+YKMt6Uzax7S9h5gpZTo8wyrGuZSlfQ63OevL5mTyOC7Q==",
721 "cpu": [ 771 "cpu": [
722 "riscv64" 772 "riscv64"
723 ], 773 ],
@@ -735,9 +785,9 @@
735 } 785 }
736 }, 786 },
737 "node_modules/@img/sharp-libvips-linux-s390x": { 787 "node_modules/@img/sharp-libvips-linux-s390x": {
738 "version": "1.3.1", 788 "version": "1.3.4",
739 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.1.tgz", 789 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-s390x/-/sharp-libvips-linux-s390x-1.3.4.tgz",
740 "integrity": "sha512-VfBwVHQTbRoj4XlpA/KLZ7ltgMpz+4WSejFzQ+GnoImjo1PtEJ59QB2qR1xQEeRPYIkNrPIm2L4cICMvz4C2ew==", 790 "integrity": "sha512-ra/mB6MikESDUO7Yg+Mi95bFBb9GsObURuhnOv3OqknjGe9sZrG8tCe9q0xSIGrtLgvgw0gKnFWcK4blSgQOuQ==",
741 "cpu": [ 791 "cpu": [
742 "s390x" 792 "s390x"
743 ], 793 ],
@@ -755,9 +805,9 @@
755 } 805 }
756 }, 806 },
757 "node_modules/@img/sharp-libvips-linux-x64": { 807 "node_modules/@img/sharp-libvips-linux-x64": {
758 "version": "1.3.1", 808 "version": "1.3.4",
759 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.1.tgz", 809 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linux-x64/-/sharp-libvips-linux-x64-1.3.4.tgz",
760 "integrity": "sha512-+c8ukgwU62DS54nCAjw7keOfHUkmr0B5QHEdcOqRnodF/MNXJbVI8Eopoj4B/0H8Asr65I+A4Amrn7a85/md6A==", 810 "integrity": "sha512-GJ//SSXbnwSDes02umB3nDJLFcQzw8a18V8fyhqr6tV515tOEMdImjjxj1AoafMRz56F3PHgftnj1QEKSU1zkw==",
761 "cpu": [ 811 "cpu": [
762 "x64" 812 "x64"
763 ], 813 ],
@@ -775,9 +825,9 @@
775 } 825 }
776 }, 826 },
777 "node_modules/@img/sharp-libvips-linuxmusl-arm64": { 827 "node_modules/@img/sharp-libvips-linuxmusl-arm64": {
778 "version": "1.3.1", 828 "version": "1.3.4",
779 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.1.tgz", 829 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-arm64/-/sharp-libvips-linuxmusl-arm64-1.3.4.tgz",
780 "integrity": "sha512-qlKb/pwbkAi1WMsJrYHk7CuDrd12s27U2QnRhFYUoJNrRCmkosMTttuRFat/DDB3IlDm5qE1TJgZ4JDnHX8Ldw==", 830 "integrity": "sha512-hvulFwtjUcagsis6BBxHwGFwWoNZjgYmULGVrZcyfNbjA8hKILbRxGg15/7w5HDyXHXUos/j6baAWqnCyQ2DWA==",
781 "cpu": [ 831 "cpu": [
782 "arm64" 832 "arm64"
783 ], 833 ],
@@ -795,9 +845,9 @@
795 } 845 }
796 }, 846 },
797 "node_modules/@img/sharp-libvips-linuxmusl-x64": { 847 "node_modules/@img/sharp-libvips-linuxmusl-x64": {
798 "version": "1.3.1", 848 "version": "1.3.4",
799 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.1.tgz", 849 "resolved": "https://registry.npmjs.org/@img/sharp-libvips-linuxmusl-x64/-/sharp-libvips-linuxmusl-x64-1.3.4.tgz",
800 "integrity": "sha512-yO21HwoUVLN8Qa+/SBjQLMYwBWAVJjeGPNe+hc0OUeMeifEtJqu5a1c4HayE1nNpDih9y3/KkoltfkDodmKAlg==", 850 "integrity": "sha512-6zXKeE/p39I1AmA3cJG35eyBGNqNddLnUXjhwBnsGjFPWqf5VKkDBEqaEkPDoTEtkxwi2vv8Tcr2mDyP4So7Fg==",
801 "cpu": [ 851 "cpu": [
802 "x64" 852 "x64"
803 ], 853 ],
@@ -815,9 +865,9 @@
815 } 865 }
816 }, 866 },
817 "node_modules/@img/sharp-linux-arm": { 867 "node_modules/@img/sharp-linux-arm": {
818 "version": "0.35.2", 868 "version": "0.35.5",
819 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.2.tgz", 869 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm/-/sharp-linux-arm-0.35.5.tgz",
820 "integrity": "sha512-SE4kzF2mepn6z+6E7L6lsV8FzuLL6IPQdyX8ZiwROAG/G8td+hP/m7FsFPwidtrF19gvajuC9l6TxAVcsA4S7A==", 870 "integrity": "sha512-LEaXK2WdXVK5ykcw0buWyPMsmLLL2vpHLD6yrNSW+JGEL3BZPA4tpKN6iaMc4AxTTAoaX/sU1rOL51lcIz48ZQ==",
821 "cpu": [ 871 "cpu": [
822 "arm" 872 "arm"
823 ], 873 ],
@@ -837,13 +887,13 @@
837 "url": "https://opencollective.com/libvips" 887 "url": "https://opencollective.com/libvips"
838 }, 888 },
839 "optionalDependencies": { 889 "optionalDependencies": {
840 "@img/sharp-libvips-linux-arm": "1.3.1" 890 "@img/sharp-libvips-linux-arm": "1.3.4"
841 } 891 }
842 }, 892 },
843 "node_modules/@img/sharp-linux-arm64": { 893 "node_modules/@img/sharp-linux-arm64": {
844 "version": "0.35.2", 894 "version": "0.35.5",
845 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.2.tgz", 895 "resolved": "https://registry.npmjs.org/@img/sharp-linux-arm64/-/sharp-linux-arm64-0.35.5.tgz",
846 "integrity": "sha512-af12Pnd0ZGu2HfP8NayB0kk6eC/lrfbQE6HlR4jD+34wdJ1Vw9TF6TMn6ZvffT+WgqVsl0hRbmNvz2u/23VmwA==", 896 "integrity": "sha512-LYVx5JTsOM2CBzmxreh+nl64/3H6Xb09iSLknqH47z2T2DFFxDeFLP5y4dJwe6H7uGQlHPyEEtIqyo3DYsRwdQ==",
847 "cpu": [ 897 "cpu": [
848 "arm64" 898 "arm64"
849 ], 899 ],
@@ -863,13 +913,13 @@
863 "url": "https://opencollective.com/libvips" 913 "url": "https://opencollective.com/libvips"
864 }, 914 },
865 "optionalDependencies": { 915 "optionalDependencies": {
866 "@img/sharp-libvips-linux-arm64": "1.3.1" 916 "@img/sharp-libvips-linux-arm64": "1.3.4"
867 } 917 }
868 }, 918 },
869 "node_modules/@img/sharp-linux-ppc64": { 919 "node_modules/@img/sharp-linux-ppc64": {
870 "version": "0.35.2", 920 "version": "0.35.5",
871 "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.2.tgz", 921 "resolved": "https://registry.npmjs.org/@img/sharp-linux-ppc64/-/sharp-linux-ppc64-0.35.5.tgz",
872 "integrity": "sha512-hYSBm7zcNtDCozCxQHYZJiu63b/bXsgRZuOxCIBZsStMM9Vap47iFHdbX4kCvQsblPB/k+clhELpdQJHQLSHvg==", 922 "integrity": "sha512-QVxAAq8evVRI9ia2vqgwrmWucn5Dfv+JdWzj75pD8omHLPSP7f8p20O8jxzjCcuCEQEOtYOZUmX1hkiZ0kdevA==",
873 "cpu": [ 923 "cpu": [
874 "ppc64" 924 "ppc64"
875 ], 925 ],
@@ -889,13 +939,13 @@
889 "url": "https://opencollective.com/libvips" 939 "url": "https://opencollective.com/libvips"
890 }, 940 },
891 "optionalDependencies": { 941 "optionalDependencies": {
892 "@img/sharp-libvips-linux-ppc64": "1.3.1" 942 "@img/sharp-libvips-linux-ppc64": "1.3.4"
893 } 943 }
894 }, 944 },
895 "node_modules/@img/sharp-linux-riscv64": { 945 "node_modules/@img/sharp-linux-riscv64": {
896 "version": "0.35.2", 946 "version": "0.35.5",
897 "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.2.tgz", 947 "resolved": "https://registry.npmjs.org/@img/sharp-linux-riscv64/-/sharp-linux-riscv64-0.35.5.tgz",
898 "integrity": "sha512-qQt0Kc13+Hoan/Awq/qMSQw3L+RI1NCRPgD5cUJ/1WSSmIoysLOc72jlRM3E0OHN9Yr313jgeQ2T+zW+F03QFA==", 948 "integrity": "sha512-LtdreXguaavKODPIfzJ4kffx7UNt1omwtK0rch4EBbbSTXPnxWmYSayXdLJw0fJzQ97kHt1gL/yh4tvU+nCyRQ==",
899 "cpu": [ 949 "cpu": [
900 "riscv64" 950 "riscv64"
901 ], 951 ],
@@ -915,13 +965,13 @@
915 "url": "https://opencollective.com/libvips" 965 "url": "https://opencollective.com/libvips"
916 }, 966 },
917 "optionalDependencies": { 967 "optionalDependencies": {
918 "@img/sharp-libvips-linux-riscv64": "1.3.1" 968 "@img/sharp-libvips-linux-riscv64": "1.3.4"
919 } 969 }
920 }, 970 },
921 "node_modules/@img/sharp-linux-s390x": { 971 "node_modules/@img/sharp-linux-s390x": {
922 "version": "0.35.2", 972 "version": "0.35.5",
923 "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.2.tgz", 973 "resolved": "https://registry.npmjs.org/@img/sharp-linux-s390x/-/sharp-linux-s390x-0.35.5.tgz",
924 "integrity": "sha512-E4fLLfRPzDLlEeDaTzI98OFLcv++WL5ChLLMwPoVd0CIoZQqupBSNbOisPL5am9XsbQ9T84+iiMpUvbFtkunbA==", 974 "integrity": "sha512-UZasTOFiYzotTsGOCu42BfUzP6Tu6Do/947iRm1RsLKvlllxwGcn4RN27LibGWceix4Y+Pmw3jsnTcCQIgWjqA==",
925 "cpu": [ 975 "cpu": [
926 "s390x" 976 "s390x"
927 ], 977 ],
@@ -941,13 +991,13 @@
941 "url": "https://opencollective.com/libvips" 991 "url": "https://opencollective.com/libvips"
942 }, 992 },
943 "optionalDependencies": { 993 "optionalDependencies": {
944 "@img/sharp-libvips-linux-s390x": "1.3.1" 994 "@img/sharp-libvips-linux-s390x": "1.3.4"
945 } 995 }
946 }, 996 },
947 "node_modules/@img/sharp-linux-x64": { 997 "node_modules/@img/sharp-linux-x64": {
948 "version": "0.35.2", 998 "version": "0.35.5",
949 "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.2.tgz", 999 "resolved": "https://registry.npmjs.org/@img/sharp-linux-x64/-/sharp-linux-x64-0.35.5.tgz",
950 "integrity": "sha512-gi0zFJJRLswfCZmHtJdikXPOc5u7qamSOS3NHedLqLd4W8Q0NqjdBr6TTRIgsfFjqfTsHFgdfvJ9LwqSgcHiAA==", 1000 "integrity": "sha512-SxFtLTeJInhAA9Q836kux2vZNeOBQEx658qvbboZScr0wIARym3IcGmW7KpVD5sbVg0Ojy+udFQdayYIZyoNog==",
951 "cpu": [ 1001 "cpu": [
952 "x64" 1002 "x64"
953 ], 1003 ],
@@ -967,13 +1017,13 @@
967 "url": "https://opencollective.com/libvips" 1017 "url": "https://opencollective.com/libvips"
968 }, 1018 },
969 "optionalDependencies": { 1019 "optionalDependencies": {
970 "@img/sharp-libvips-linux-x64": "1.3.1" 1020 "@img/sharp-libvips-linux-x64": "1.3.4"
971 } 1021 }
972 }, 1022 },
973 "node_modules/@img/sharp-linuxmusl-arm64": { 1023 "node_modules/@img/sharp-linuxmusl-arm64": {
974 "version": "0.35.2", 1024 "version": "0.35.5",
975 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.2.tgz", 1025 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-arm64/-/sharp-linuxmusl-arm64-0.35.5.tgz",
976 "integrity": "sha512-siWbOW1u6HFnFLrp0waKyW7VEf7jYvcDWdrXEFa8AkdAQgEvuu5Fz8/Y70w9EeqAdwDtfU012BhEHHaDqvQNzg==", 1026 "integrity": "sha512-9HbMclmI1zlNkFRs3z9/eBtDjfD0sGlrX1z6b1qwmiFY5ElDLh4BC0LPBdVp7z1DXFiKlIcznf+ZlsuZzLxQqg==",
977 "cpu": [ 1027 "cpu": [
978 "arm64" 1028 "arm64"
979 ], 1029 ],
@@ -993,13 +1043,13 @@
993 "url": "https://opencollective.com/libvips" 1043 "url": "https://opencollective.com/libvips"
994 }, 1044 },
995 "optionalDependencies": { 1045 "optionalDependencies": {
996 "@img/sharp-libvips-linuxmusl-arm64": "1.3.1" 1046 "@img/sharp-libvips-linuxmusl-arm64": "1.3.4"
997 } 1047 }
998 }, 1048 },
999 "node_modules/@img/sharp-linuxmusl-x64": { 1049 "node_modules/@img/sharp-linuxmusl-x64": {
1000 "version": "0.35.2", 1050 "version": "0.35.5",
1001 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.2.tgz", 1051 "resolved": "https://registry.npmjs.org/@img/sharp-linuxmusl-x64/-/sharp-linuxmusl-x64-0.35.5.tgz",
1002 "integrity": "sha512-YBqMMcjDi4QGYiSn4vNOYBhmlC4z5AXqkOUUqI2e0AFA4urNv4ESgOgwNl3K+4etQhha0twXlzeF20bbULm9Yg==", 1052 "integrity": "sha512-4KOphqB035HrVdqLZfCgMzzERrQkkzOwRhl4OAkRO1YCldbaFjySXMaK534Mo0V+LndnlJk+sbUyLeU0ULyD1A==",
1003 "cpu": [ 1053 "cpu": [
1004 "x64" 1054 "x64"
1005 ], 1055 ],
@@ -1019,18 +1069,18 @@
1019 "url": "https://opencollective.com/libvips" 1069 "url": "https://opencollective.com/libvips"
1020 }, 1070 },
1021 "optionalDependencies": { 1071 "optionalDependencies": {
1022 "@img/sharp-libvips-linuxmusl-x64": "1.3.1" 1072 "@img/sharp-libvips-linuxmusl-x64": "1.3.4"
1023 } 1073 }
1024 }, 1074 },
1025 "node_modules/@img/sharp-wasm32": { 1075 "node_modules/@img/sharp-wasm32": {
1026 "version": "0.35.2", 1076 "version": "0.35.5",
1027 "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.2.tgz", 1077 "resolved": "https://registry.npmjs.org/@img/sharp-wasm32/-/sharp-wasm32-0.35.5.tgz",
1028 "integrity": "sha512-Mrv4JQNYVQ94xH+jzZ9r+gowleN8mv2FTgKT+PI6bx5C0G8TdNYndu161pg2i7uoBwxy2ImPMHrJOM2LZef7Bw==", 1078 "integrity": "sha512-Ptsga1su4tQx+LLF1ECS9U6nz5kmrXKo6XVbtR48Ke3ZRxxgaWBu7IDtEe1quo8hiupwm6WFqxVlXaSf7IINGQ==",
1029 "dev": true, 1079 "dev": true,
1030 "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", 1080 "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT",
1031 "optional": true, 1081 "optional": true,
1032 "dependencies": { 1082 "dependencies": {
1033 "@emnapi/runtime": "^1.11.1" 1083 "@emnapi/runtime": "^1.11.3"
1034 }, 1084 },
1035 "engines": { 1085 "engines": {
1036 "node": ">=20.9.0" 1086 "node": ">=20.9.0"
@@ -1040,9 +1090,9 @@
1040 } 1090 }
1041 }, 1091 },
1042 "node_modules/@img/sharp-webcontainers-wasm32": { 1092 "node_modules/@img/sharp-webcontainers-wasm32": {
1043 "version": "0.35.2", 1093 "version": "0.35.5",
1044 "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.2.tgz", 1094 "resolved": "https://registry.npmjs.org/@img/sharp-webcontainers-wasm32/-/sharp-webcontainers-wasm32-0.35.5.tgz",
1045 "integrity": "sha512-QNV27pxs9wpApEiCfvHM1RDoP1w1+2KrUWWDPEhEwg+latvOrfuhWrHWZKwdSFwU6jh3myjw/yOCRsUIuOft3g==", 1095 "integrity": "sha512-hfhF/FmoQyTUkA0bIKFOtw536BQSeBMe6BF6QyWlrPxT754+TFLaZ7sKKTfvvM0yJgKgaYTwnFCIZ/GuDw5SUA==",
1046 "cpu": [ 1096 "cpu": [
1047 "wasm32" 1097 "wasm32"
1048 ], 1098 ],
@@ -1050,7 +1100,7 @@
1050 "license": "Apache-2.0", 1100 "license": "Apache-2.0",
1051 "optional": true, 1101 "optional": true,
1052 "dependencies": { 1102 "dependencies": {
1053 "@img/sharp-wasm32": "0.35.2" 1103 "@img/sharp-wasm32": "0.35.5"
1054 }, 1104 },
1055 "engines": { 1105 "engines": {
1056 "node": ">=20.9.0" 1106 "node": ">=20.9.0"
@@ -1060,9 +1110,9 @@
1060 } 1110 }
1061 }, 1111 },
1062 "node_modules/@img/sharp-win32-arm64": { 1112 "node_modules/@img/sharp-win32-arm64": {
1063 "version": "0.35.2", 1113 "version": "0.35.5",
1064 "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.2.tgz", 1114 "resolved": "https://registry.npmjs.org/@img/sharp-win32-arm64/-/sharp-win32-arm64-0.35.5.tgz",
1065 "integrity": "sha512-BiVRYc/t6/Vl3e1hBx0hugG4oN9Pydf4fgMSpxTQJmwGUg/YoXTWHiFeRymHfCZzifxu4F4rpk/I67D0LQ20wQ==", 1115 "integrity": "sha512-X4t7g+7ZA5DKblCBEXGjUqqemj4vczING/5viFwAL8h4N3qYeyjwdCvRLHi4EdOUI+2Z7UFlp1VM+p/AuEtm6Q==",
1066 "cpu": [ 1116 "cpu": [
1067 "arm64" 1117 "arm64"
1068 ], 1118 ],
@@ -1080,9 +1130,9 @@
1080 } 1130 }
1081 }, 1131 },
1082 "node_modules/@img/sharp-win32-ia32": { 1132 "node_modules/@img/sharp-win32-ia32": {
1083 "version": "0.35.2", 1133 "version": "0.35.5",
1084 "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.2.tgz", 1134 "resolved": "https://registry.npmjs.org/@img/sharp-win32-ia32/-/sharp-win32-ia32-0.35.5.tgz",
1085 "integrity": "sha512-YYEhx9PImCC7T0tI8JDMi4DB9LwLCXCU5OWNYEXAxh5Q1ShKkyC6byxzoBJ3gEFDnH2lQckWuDe70G7mB2XJog==", 1135 "integrity": "sha512-5Zm82LoBc43nhwNybZlG7Y1KO//Zhsn306fQl29ZOuStHLGTo3BWL83q3cznX0poxSAMuYL1On/BHBxkBeKr6A==",
1086 "cpu": [ 1136 "cpu": [
1087 "ia32" 1137 "ia32"
1088 ], 1138 ],
@@ -1100,9 +1150,9 @@
1100 } 1150 }
1101 }, 1151 },
1102 "node_modules/@img/sharp-win32-x64": { 1152 "node_modules/@img/sharp-win32-x64": {
1103 "version": "0.35.2", 1153 "version": "0.35.5",
1104 "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.2.tgz", 1154 "resolved": "https://registry.npmjs.org/@img/sharp-win32-x64/-/sharp-win32-x64-0.35.5.tgz",
1105 "integrity": "sha512-imoOyBcoM/iiUr4J6VPpCNjPnjvP/Gks95898yB8YqoGGYmHYbOyCuNv9FMhFgtaiHFGbHW8bxKqRV6VjtXThQ==", 1155 "integrity": "sha512-x76eH0vEiHlcMQu8Y8IenntaACtddpT6W0wmXtWrnKcnKI7ME5DdgqhAD6SEWOEl1v2zDvkZDhFA9KnURwpfqg==",
1106 "cpu": [ 1156 "cpu": [
1107 "x64" 1157 "x64"
1108 ], 1158 ],
@@ -1130,9 +1180,9 @@
1130 } 1180 }
1131 }, 1181 },
1132 "node_modules/@jridgewell/sourcemap-codec": { 1182 "node_modules/@jridgewell/sourcemap-codec": {
1133 "version": "1.5.5", 1183 "version": "1.6.0",
1134 "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", 1184 "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz",
1135 "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", 1185 "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==",
1136 "dev": true, 1186 "dev": true,
1137 "license": "MIT" 1187 "license": "MIT"
1138 }, 1188 },
@@ -1606,9 +1656,9 @@
1606 } 1656 }
1607 }, 1657 },
1608 "node_modules/esbuild": { 1658 "node_modules/esbuild": {
1609 "version": "0.28.1", 1659 "version": "0.28.2",
1610 "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz", 1660 "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz",
1611 "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==", 1661 "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==",
1612 "dev": true, 1662 "dev": true,
1613 "hasInstallScript": true, 1663 "hasInstallScript": true,
1614 "license": "MIT", 1664 "license": "MIT",
@@ -1619,66 +1669,32 @@
1619 "node": ">=18" 1669 "node": ">=18"
1620 }, 1670 },
1621 "optionalDependencies": { 1671 "optionalDependencies": {
1622 "@esbuild/aix-ppc64": "0.28.1", 1672 "@esbuild/aix-ppc64": "0.28.2",
1623 "@esbuild/android-arm": "0.28.1", 1673 "@esbuild/android-arm": "0.28.2",
1624 "@esbuild/android-arm64": "0.28.1", 1674 "@esbuild/android-arm64": "0.28.2",
1625 "@esbuild/android-x64": "0.28.1", 1675 "@esbuild/android-x64": "0.28.2",
1626 "@esbuild/darwin-arm64": "0.28.1", 1676 "@esbuild/darwin-arm64": "0.28.2",
1627 "@esbuild/darwin-x64": "0.28.1", 1677 "@esbuild/darwin-x64": "0.28.2",
1628 "@esbuild/freebsd-arm64": "0.28.1", 1678 "@esbuild/freebsd-arm64": "0.28.2",
1629 "@esbuild/freebsd-x64": "0.28.1", 1679 "@esbuild/freebsd-x64": "0.28.2",
1630 "@esbuild/linux-arm": "0.28.1", 1680 "@esbuild/linux-arm": "0.28.2",
1631 "@esbuild/linux-arm64": "0.28.1", 1681 "@esbuild/linux-arm64": "0.28.2",
1632 "@esbuild/linux-ia32": "0.28.1", 1682 "@esbuild/linux-ia32": "0.28.2",
1633 "@esbuild/linux-loong64": "0.28.1", 1683 "@esbuild/linux-loong64": "0.28.2",
1634 "@esbuild/linux-mips64el": "0.28.1", 1684 "@esbuild/linux-mips64el": "0.28.2",
1635 "@esbuild/linux-ppc64": "0.28.1", 1685 "@esbuild/linux-ppc64": "0.28.2",
1636 "@esbuild/linux-riscv64": "0.28.1", 1686 "@esbuild/linux-riscv64": "0.28.2",
1637 "@esbuild/linux-s390x": "0.28.1", 1687 "@esbuild/linux-s390x": "0.28.2",
1638 "@esbuild/linux-x64": "0.28.1", 1688 "@esbuild/linux-x64": "0.28.2",
1639 "@esbuild/netbsd-arm64": "0.28.1", 1689 "@esbuild/netbsd-arm64": "0.28.2",
1640 "@esbuild/netbsd-x64": "0.28.1", 1690 "@esbuild/netbsd-x64": "0.28.2",
1641 "@esbuild/openbsd-arm64": "0.28.1", 1691 "@esbuild/openbsd-arm64": "0.28.2",
1642 "@esbuild/openbsd-x64": "0.28.1", 1692 "@esbuild/openbsd-x64": "0.28.2",
1643 "@esbuild/openharmony-arm64": "0.28.1", 1693 "@esbuild/openharmony-arm64": "0.28.2",
1644 "@esbuild/sunos-x64": "0.28.1", 1694 "@esbuild/sunos-x64": "0.28.2",
1645 "@esbuild/win32-arm64": "0.28.1", 1695 "@esbuild/win32-arm64": "0.28.2",
1646 "@esbuild/win32-ia32": "0.28.1", 1696 "@esbuild/win32-ia32": "0.28.2",
1647 "@esbuild/win32-x64": "0.28.1" 1697 "@esbuild/win32-x64": "0.28.2"
1648 }
1649 },
1650 "node_modules/esbuild/node_modules/@esbuild/netbsd-arm64": {
1651 "version": "0.28.1",
1652 "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz",
1653 "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==",
1654 "cpu": [
1655 "arm64"
1656 ],
1657 "dev": true,
1658 "license": "MIT",
1659 "optional": true,
1660 "os": [
1661 "netbsd"
1662 ],
1663 "engines": {
1664 "node": ">=18"
1665 }
1666 },
1667 "node_modules/esbuild/node_modules/@esbuild/openbsd-arm64": {
1668 "version": "0.28.1",
1669 "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz",
1670 "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==",
1671 "cpu": [
1672 "arm64"
1673 ],
1674 "dev": true,
1675 "license": "MIT",
1676 "optional": true,
1677 "os": [
1678 "openbsd"
1679 ],
1680 "engines": {
1681 "node": ">=18"
1682 } 1698 }
1683 }, 1699 },
1684 "node_modules/fsevents": { 1700 "node_modules/fsevents": {
@@ -1716,16 +1732,16 @@
1716 } 1732 }
1717 }, 1733 },
1718 "node_modules/miniflare": { 1734 "node_modules/miniflare": {
1719 "version": "5.20260815.0-alpha", 1735 "version": "5.20261019.2-beta",
1720 "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20260815.0-alpha.tgz", 1736 "resolved": "https://registry.npmjs.org/miniflare/-/miniflare-5.20261019.2-beta.tgz",
1721 "integrity": "sha512-YAaGj4Sh5f4fqHKiMQ8zRHDOOM5IGUVtMhnLIeyjuQfU+9P6hcOTrHUVtbfj/ZPay9Kzik4pWELB39pGgefjiQ==", 1737 "integrity": "sha512-QNgCA/axizZ7kv7RV3nwbRoz+w4watBlwIsyXjwgYHw4eSw5BrR1F2152s3Kz+Bzy/YxjKFHrZl3LzBRbPgYoQ==",
1722 "dev": true, 1738 "dev": true,
1723 "license": "MIT", 1739 "license": "MIT",
1724 "dependencies": { 1740 "dependencies": {
1725 "@cspotcode/source-map-support": "0.8.1", 1741 "@cspotcode/source-map-support": "0.8.1",
1726 "sharp": "0.35.2", 1742 "sharp": "0.35.5",
1727 "undici": "7.29.0", 1743 "undici": "7.29.1",
1728 "workerd": "1.20260815.1", 1744 "workerd": "1.20261019.1",
1729 "ws": "8.21.0", 1745 "ws": "8.21.0",
1730 "youch": "4.1.0-beta.10" 1746 "youch": "4.1.0-beta.10"
1731 }, 1747 },
@@ -1785,15 +1801,15 @@
1785 } 1801 }
1786 }, 1802 },
1787 "node_modules/sharp": { 1803 "node_modules/sharp": {
1788 "version": "0.35.2", 1804 "version": "0.35.5",
1789 "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.2.tgz", 1805 "resolved": "https://registry.npmjs.org/sharp/-/sharp-0.35.5.tgz",
1790 "integrity": "sha512-FVtFjtBCMiJS6yb5CX7Sop45WFMpeGw6oRKuJnXYgf/f1ms/D7LE/ZUSNxnW7rZ/dbslQWYkoqFHGPaDBtaK4w==", 1806 "integrity": "sha512-Ywn4OnzGukp7CDMrp08RQ50YKmuwG47brZgIVPTvBaaAfQlRlygrRqSrxdCiL9M+LlzLBiJ68IR1QqvzHyjC7g==",
1791 "dev": true, 1807 "dev": true,
1792 "license": "Apache-2.0", 1808 "license": "Apache-2.0",
1793 "dependencies": { 1809 "dependencies": {
1794 "@img/colour": "^1.1.0", 1810 "@img/colour": "^1.1.0",
1795 "detect-libc": "^2.1.2", 1811 "detect-libc": "^2.1.2",
1796 "semver": "^7.8.4" 1812 "semver": "^7.8.5"
1797 }, 1813 },
1798 "engines": { 1814 "engines": {
1799 "node": ">=20.9.0" 1815 "node": ">=20.9.0"
@@ -1802,31 +1818,36 @@
1802 "url": "https://opencollective.com/libvips" 1818 "url": "https://opencollective.com/libvips"
1803 }, 1819 },
1804 "optionalDependencies": { 1820 "optionalDependencies": {
1805 "@img/sharp-darwin-arm64": "0.35.2", 1821 "@img/sharp-darwin-arm64": "0.35.5",
1806 "@img/sharp-darwin-x64": "0.35.2", 1822 "@img/sharp-darwin-x64": "0.35.5",
1807 "@img/sharp-freebsd-wasm32": "0.35.2", 1823 "@img/sharp-freebsd-wasm32": "0.35.5",
1808 "@img/sharp-libvips-darwin-arm64": "1.3.1", 1824 "@img/sharp-libvips-darwin-arm64": "1.3.4",
1809 "@img/sharp-libvips-darwin-x64": "1.3.1", 1825 "@img/sharp-libvips-darwin-x64": "1.3.4",
1810 "@img/sharp-libvips-linux-arm": "1.3.1", 1826 "@img/sharp-libvips-linux-arm": "1.3.4",
1811 "@img/sharp-libvips-linux-arm64": "1.3.1", 1827 "@img/sharp-libvips-linux-arm64": "1.3.4",
1812 "@img/sharp-libvips-linux-ppc64": "1.3.1", 1828 "@img/sharp-libvips-linux-ppc64": "1.3.4",
1813 "@img/sharp-libvips-linux-riscv64": "1.3.1", 1829 "@img/sharp-libvips-linux-riscv64": "1.3.4",
1814 "@img/sharp-libvips-linux-s390x": "1.3.1", 1830 "@img/sharp-libvips-linux-s390x": "1.3.4",
1815 "@img/sharp-libvips-linux-x64": "1.3.1", 1831 "@img/sharp-libvips-linux-x64": "1.3.4",
1816 "@img/sharp-libvips-linuxmusl-arm64": "1.3.1", 1832 "@img/sharp-libvips-linuxmusl-arm64": "1.3.4",
1817 "@img/sharp-libvips-linuxmusl-x64": "1.3.1", 1833 "@img/sharp-libvips-linuxmusl-x64": "1.3.4",
1818 "@img/sharp-linux-arm": "0.35.2", 1834 "@img/sharp-linux-arm": "0.35.5",
1819 "@img/sharp-linux-arm64": "0.35.2", 1835 "@img/sharp-linux-arm64": "0.35.5",
1820 "@img/sharp-linux-ppc64": "0.35.2", 1836 "@img/sharp-linux-ppc64": "0.35.5",
1821 "@img/sharp-linux-riscv64": "0.35.2", 1837 "@img/sharp-linux-riscv64": "0.35.5",
1822 "@img/sharp-linux-s390x": "0.35.2", 1838 "@img/sharp-linux-s390x": "0.35.5",
1823 "@img/sharp-linux-x64": "0.35.2", 1839 "@img/sharp-linux-x64": "0.35.5",
1824 "@img/sharp-linuxmusl-arm64": "0.35.2", 1840 "@img/sharp-linuxmusl-arm64": "0.35.5",
1825 "@img/sharp-linuxmusl-x64": "0.35.2", 1841 "@img/sharp-linuxmusl-x64": "0.35.5",
1826 "@img/sharp-webcontainers-wasm32": "0.35.2", 1842 "@img/sharp-webcontainers-wasm32": "0.35.5",
1827 "@img/sharp-win32-arm64": "0.35.2", 1843 "@img/sharp-win32-arm64": "0.35.5",
1828 "@img/sharp-win32-ia32": "0.35.2", 1844 "@img/sharp-win32-ia32": "0.35.5",
1829 "@img/sharp-win32-x64": "0.35.2" 1845 "@img/sharp-win32-x64": "0.35.5"
1846 },
1847 "peerDependenciesMeta": {
1848 "@types/node": {
1849 "optional": true
1850 }
1830 } 1851 }
1831 }, 1852 },
1832 "node_modules/supports-color": { 1853 "node_modules/supports-color": {
@@ -1886,9 +1907,9 @@
1886 } 1907 }
1887 }, 1908 },
1888 "node_modules/undici": { 1909 "node_modules/undici": {
1889 "version": "7.29.0", 1910 "version": "7.29.1",
1890 "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.0.tgz", 1911 "resolved": "https://registry.npmjs.org/undici/-/undici-7.29.1.tgz",
1891 "integrity": "sha512-IDxfleLmmbSskfWSUATiN1nfn2rDuvnMOqb5CWR92iIfojA0Ud+ulOAAEQ57LPr9rWmsreUyf5lwyao+7GNNVw==", 1912 "integrity": "sha512-RYONW2MeafgYlkVOKYKkA/Ag7BmXqgIWCa8t1m0JcxrQg9pI9lEqRhAOruOBCbAohOa/gkCF+iPi9hrgvTzu6Q==",
1892 "dev": true, 1913 "dev": true,
1893 "license": "MIT", 1914 "license": "MIT",
1894 "engines": { 1915 "engines": {
@@ -1913,9 +1934,9 @@
1913 } 1934 }
1914 }, 1935 },
1915 "node_modules/workerd": { 1936 "node_modules/workerd": {
1916 "version": "1.20260815.1", 1937 "version": "1.20261019.1",
1917 "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20260815.1.tgz", 1938 "resolved": "https://registry.npmjs.org/workerd/-/workerd-1.20261019.1.tgz",
1918 "integrity": "sha512-8bArFkHmlp7qFEKVPyNzDzHzS35gc2fg0PYBcDtaNLF7UCDryCX2BQnpkUkTHYIy824IRrHOTwOEoTj0sUO2Fg==", 1939 "integrity": "sha512-UUYRUq/7DmeCl11YriNbcVbjUZVLtt8uuCXFu+nz77hGFf8d4DEVXoCYtnA+MlBatE4+wxoj47DVqzK3xGBAiw==",
1919 "dev": true, 1940 "dev": true,
1920 "hasInstallScript": true, 1941 "hasInstallScript": true,
1921 "license": "Apache-2.0", 1942 "license": "Apache-2.0",
@@ -1926,28 +1947,28 @@
1926 "node": ">=16" 1947 "node": ">=16"
1927 }, 1948 },
1928 "optionalDependencies": { 1949 "optionalDependencies": {
1929 "@cloudflare/workerd-darwin-64": "1.20260815.1", 1950 "@cloudflare/workerd-darwin-64": "1.20261019.1",
1930 "@cloudflare/workerd-darwin-arm64": "1.20260815.1", 1951 "@cloudflare/workerd-darwin-arm64": "1.20261019.1",
1931 "@cloudflare/workerd-linux-64": "1.20260815.1", 1952 "@cloudflare/workerd-linux-64": "1.20261019.1",
1932 "@cloudflare/workerd-linux-arm64": "1.20260815.1", 1953 "@cloudflare/workerd-linux-arm64": "1.20261019.1",
1933 "@cloudflare/workerd-windows-64": "1.20260815.1" 1954 "@cloudflare/workerd-windows-64": "1.20261019.1"
1934 } 1955 }
1935 }, 1956 },
1936 "node_modules/wrangler": { 1957 "node_modules/wrangler": {
1937 "version": "4.124.0", 1958 "version": "4.152.0",
1938 "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.124.0.tgz", 1959 "resolved": "https://registry.npmjs.org/wrangler/-/wrangler-4.152.0.tgz",
1939 "integrity": "sha512-75euoZKjVTJYFy+Xhctt/5JlZL4M6A4xmovZsUlep+6GHcCm14n9VtdGzNIybOW2t8wuNxRj5iMUwjT5E7Ctog==", 1960 "integrity": "sha512-lmXTF1sCDEqBaEMpreGczvg/x3AIh1d/qxc4BN7utQ4jEDwdA4YG0L6kr3ev0TtVLHRb6QLySNAOAunwn+dHeA==",
1940 "dev": true, 1961 "dev": true,
1941 "license": "MIT OR Apache-2.0", 1962 "license": "MIT OR Apache-2.0",
1942 "dependencies": { 1963 "dependencies": {
1943 "@cloudflare/kv-asset-handler": "0.5.0", 1964 "@cloudflare/kv-asset-handler": "0.5.0",
1944 "@cloudflare/unenv-preset": "2.16.1", 1965 "@cloudflare/unenv-preset": "2.16.2",
1945 "blake3-wasm": "2.1.5", 1966 "blake3-wasm": "2.1.5",
1946 "esbuild": "0.28.1", 1967 "esbuild": "0.28.2",
1947 "miniflare": "5.20260815.0-alpha", 1968 "miniflare": "5.20261019.2-beta",
1948 "path-to-regexp": "6.3.0", 1969 "path-to-regexp": "6.3.0",
1949 "unenv": "2.0.0-rc.24", 1970 "unenv": "2.0.0-rc.24",
1950 "workerd": "1.20260815.1" 1971 "workerd": "1.20261019.1"
1951 }, 1972 },
1952 "bin": { 1973 "bin": {
1953 "cf-wrangler": "bin/cf-wrangler.js", 1974 "cf-wrangler": "bin/cf-wrangler.js",
@@ -1961,7 +1982,7 @@
1961 "fsevents": "2.3.3" 1982 "fsevents": "2.3.3"
1962 }, 1983 },
1963 "peerDependencies": { 1984 "peerDependencies": {
1964 "@cloudflare/workers-types": "^5.20260815.1" 1985 "@cloudflare/workers-types": "^5.20261019.1"
1965 }, 1986 },
1966 "peerDependenciesMeta": { 1987 "peerDependenciesMeta": {
1967 "@cloudflare/workers-types": { 1988 "@cloudflare/workers-types": {
@@ -1969,22 +1990,6 @@
1969 } 1990 }
1970 } 1991 }
1971 }, 1992 },
1972 "node_modules/wrangler/node_modules/@cloudflare/unenv-preset": {
1973 "version": "2.16.1",
1974 "resolved": "https://registry.npmjs.org/@cloudflare/unenv-preset/-/unenv-preset-2.16.1.tgz",
1975 "integrity": "sha512-ECxObrMfyTl5bhQf/lZCXwo5G6xX9IAUo+nDMKK4SZ8m4Jvvxp52vilxyySSWh2YTZz8+HQ07qGH/2rEom1vDw==",
1976 "dev": true,
1977 "license": "MIT OR Apache-2.0",
1978 "peerDependencies": {
1979 "unenv": "2.0.0-rc.24",
1980 "workerd": ">1.20260305.0 <2.0.0-0"
1981 },
1982 "peerDependenciesMeta": {
1983 "workerd": {
1984 "optional": true
1985 }
1986 }
1987 },
1988 "node_modules/ws": { 1993 "node_modules/ws": {
1989 "version": "8.21.0", 1994 "version": "8.21.0",
1990 "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz", 1995 "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
scripts/check-mappings.mjs +3 −3
@@ -26,7 +26,7 @@ const NULL_STATUS = "·";
26// The rationale is part of the key: it is the auditor-facing string in every 26// The rationale is part of the key: it is the auditor-facing string in every
27// export, so the doc's copy drifting from the SQL is as much a lie as a 27// export, so the doc's copy drifting from the SQL is as much a lie as a
28// wrong posture. 28// wrong posture.
29const key = (resource, status, framework, control, posture, rationale) => 29const key = ({ resource, status, framework, control, posture, rationale }) =>
30 `${resource}|${status ?? NULL_STATUS}|${framework}|${control}|${posture}|${rationale}`; 30 `${resource}|${status ?? NULL_STATUS}|${framework}|${control}|${posture}|${rationale}`;
31 31
32// --- 1. Source of truth: apply migrations, read control_mappings. --- 32// --- 1. Source of truth: apply migrations, read control_mappings. ---
@@ -42,7 +42,7 @@ function rowsFromMigrations() {
42 .prepare("SELECT resource, status, framework, control_id, posture, rationale FROM control_mappings") 42 .prepare("SELECT resource, status, framework, control_id, posture, rationale FROM control_mappings")
43 .all(); 43 .all();
44 db.close(); 44 db.close();
45 return new Set(rows.map((r) => key(r.resource, r.status, r.framework, r.control_id, r.posture, r.rationale))); 45 return new Set(rows.map((r) => key({ ...r, control: r.control_id })));
46} 46}
47 47
48// --- 2. Human-readable copy: parse the doc's reference table. --- 48// --- 2. Human-readable copy: parse the doc's reference table. ---
@@ -66,7 +66,7 @@ function rowsFromDoc() {
66 const framework = FRAMEWORK_LABELS[frameworkLabel]; 66 const framework = FRAMEWORK_LABELS[frameworkLabel];
67 if (!framework || !POSTURES.has(posture) || !BACKTICKED.test(resource ?? "")) continue; 67 if (!framework || !POSTURES.has(posture) || !BACKTICKED.test(resource ?? "")) continue;
68 const status = statusCell.replaceAll("`", ""); // "·" for NULL 68 const status = statusCell.replaceAll("`", ""); // "·" for NULL
69 set.add(key(resource.replaceAll("`", ""), status, framework, control, posture, rationale ?? "")); 69 set.add(key({ resource: resource.replaceAll("`", ""), status, framework, control, posture, rationale: rationale ?? "" }));
70 } 70 }
71 return set; 71 return set;
72} 72}
src/dashboard.ts +49 −43
@@ -114,79 +114,85 @@ const STYLE = `
114 code { background: #eef0f3; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.85em; } 114 code { background: #eef0f3; padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.85em; }
115`; 115`;
116 116
117export function renderDashboard(data: DashboardData): string { 117function postureCounts(rows: EvidenceRow[]) {
118 const counts = { positive: 0, negative: 0, informational: 0 }; 118 const counts = { positive: 0, negative: 0, informational: 0 };
119 const repos = new Set<string>(); 119 const repos = new Set<string>();
120 for (const r of data.rows) { 120 for (const r of rows) {
121 counts[r.posture as keyof typeof counts] = (counts[r.posture as keyof typeof counts] ?? 0) + 1; 121 counts[r.posture as keyof typeof counts] = (counts[r.posture as keyof typeof counts] ?? 0) + 1;
122 if (r.repo) repos.add(r.repo); 122 if (r.repo) repos.add(r.repo);
123 } 123 }
124 return { counts, repos };
125}
124 126
125 // Cards count the whole framework view, so the numbers stay stable while a 127function evidenceRowHtml(r: EvidenceRow): string {
126 // posture filter is applied — otherwise clicking "Gaps" would zero the other 128 return `<tr>
127 // two cards and there would be nothing left to click.
128 const href = (framework: Framework, posture: Posture | null) =>
129 `/?framework=${framework}${posture ? `&posture=${posture}` : ""}`;
130
131 const frameworkTab = (value: Framework, label: string) =>
132 `<a href="${href(value, data.posture)}" class="${data.framework === value ? "active" : ""}">${label}</a>`;
133
134 // Clicking the active card clears the filter rather than reapplying it.
135 const postureCard = (posture: Posture, label: string) => {
136 const active = data.posture === posture;
137 return `<a class="card${active ? " active" : ""}" href="${href(data.framework, active ? null : posture)}"
138 aria-pressed="${active}"><div class="n ${posture}">${counts[posture]}</div><div class="l">${label}</div></a>`;
139 };
140
141 const visibleRows = data.posture ? data.rows.filter((r) => r.posture === data.posture) : data.rows;
142
143 const evidenceRows = visibleRows
144 .map(
145 (r) => `<tr>
146 <td>${esc(r.framework)}</td> 129 <td>${esc(r.framework)}</td>
147 <td>${esc(r.control_id)}</td> 130 <td>${esc(r.control_id)}</td>
148 <td class="posture ${esc(r.posture)}">${esc(r.posture)}</td> 131 <td class="posture ${esc(r.posture)}">${esc(r.posture)}</td>
149 <td>${esc(r.repo ?? r.subject ?? "—")}</td> 132 <td>${esc(r.repo ?? r.subject ?? "—")}</td>
150 <td>${esc(r.resource)}</td> 133 <td>${esc(r.resource)}</td>
151 <td>${esc(r.status)}</td> 134 <td>${esc(r.status)}</td>
152 </tr>`, 135 </tr>`;
153 ) 136}
154 .join("");
155 137
156 const exportRows = data.exports 138function exportRowHtml(e: ExportListRow): string {
157 .map((e) => { 139 const done = e.status === "done";
158 const done = e.status === "done"; 140 const cell = done
159 const cell = done 141 ? `<a href="/exports/${esc(e.id)}/download">Download ${esc(e.format.toUpperCase())}</a>`
160 ? `<a href="/exports/${esc(e.id)}/download">Download ${esc(e.format.toUpperCase())}</a>` 142 : `<span class="muted" data-export-id="${esc(e.id)}">${esc(e.status)}…</span>`;
161 : `<span class="muted" data-export-id="${esc(e.id)}">${esc(e.status)}…</span>`; 143 return `<tr>
162 return `<tr>
163 <td>${esc(e.created_at)}</td> 144 <td>${esc(e.created_at)}</td>
164 <td>${esc(e.framework)}</td> 145 <td>${esc(e.framework)}</td>
165 <td>${esc(e.format.toUpperCase())}</td> 146 <td>${esc(e.format.toUpperCase())}</td>
166 <td class="export-status">${cell}</td> 147 <td class="export-status">${cell}</td>
167 </tr>`; 148 </tr>`;
168 }) 149}
169 .join("");
170 150
171 const excludeForm = data.excludableRepos.length 151function excludeFormHtml(excludableRepos: string[]): string {
152 return excludableRepos.length
172 ? `<div class="bar"><form method="post" action="/exclusions"> 153 ? `<div class="bar"><form method="post" action="/exclusions">
173 <select name="repo">${data.excludableRepos.map((r) => `<option value="${esc(r)}">${esc(r)}</option>`).join("")}</select> 154 <select name="repo">${excludableRepos.map((r) => `<option value="${esc(r)}">${esc(r)}</option>`).join("")}</select>
174 <button type="submit">Exclude</button> 155 <button type="submit">Exclude</button>
175 </form></div>` 156 </form></div>`
176 : `<p class="muted">No repositories left to exclude.</p>`; 157 : `<p class="muted">No repositories left to exclude.</p>`;
158}
177 159
178 const exclusionRows = data.excludedRepos 160function exclusionRowHtml(repo: string): string {
179 .map( 161 return `<tr>
180 (repo) => `<tr>
181 <td>${esc(repo)}</td> 162 <td>${esc(repo)}</td>
182 <td><form method="post" action="/exclusions"> 163 <td><form method="post" action="/exclusions">
183 <input type="hidden" name="repo" value="${esc(repo)}"> 164 <input type="hidden" name="repo" value="${esc(repo)}">
184 <input type="hidden" name="action" value="remove"> 165 <input type="hidden" name="action" value="remove">
185 <button class="secondary" type="submit">Include again</button> 166 <button class="secondary" type="submit">Include again</button>
186 </form></td> 167 </form></td>
187 </tr>`, 168 </tr>`;
188 ) 169}
189 .join(""); 170
171export function renderDashboard(data: DashboardData): string {
172 const { counts, repos } = postureCounts(data.rows);
173
174 // Cards count the whole framework view, so the numbers stay stable while a
175 // posture filter is applied — otherwise clicking "Gaps" would zero the other
176 // two cards and there would be nothing left to click.
177 const href = (framework: Framework, posture: Posture | null) =>
178 `/?framework=${framework}${posture ? `&posture=${posture}` : ""}`;
179
180 const frameworkTab = (value: Framework, label: string) =>
181 `<a href="${href(value, data.posture)}" class="${data.framework === value ? "active" : ""}">${label}</a>`;
182
183 // Clicking the active card clears the filter rather than reapplying it.
184 const postureCard = (posture: Posture, label: string) => {
185 const active = data.posture === posture;
186 return `<a class="card${active ? " active" : ""}" href="${href(data.framework, active ? null : posture)}"
187 aria-pressed="${active}"><div class="n ${posture}">${counts[posture]}</div><div class="l">${label}</div></a>`;
188 };
189
190 const visibleRows = data.posture ? data.rows.filter((r) => r.posture === data.posture) : data.rows;
191
192 const evidenceRows = visibleRows.map(evidenceRowHtml).join("");
193 const exportRows = data.exports.map(exportRowHtml).join("");
194 const excludeForm = excludeFormHtml(data.excludableRepos);
195 const exclusionRows = data.excludedRepos.map(exclusionRowHtml).join("");
190 196
191 return `<!doctype html> 197 return `<!doctype html>
192<html lang="en"> 198<html lang="en">
src/index.ts +37 −55
@@ -43,65 +43,47 @@ const CONTENT_TYPE: Record<ExportFormat, string> = {
43const SNAPSHOT_RETENTION_DAYS = 396; // ~13 months: an annual audit period + buffer 43const SNAPSHOT_RETENTION_DAYS = 396; // ~13 months: an annual audit period + buffer
44const EXPORT_RETENTION_DAYS = 90; 44const EXPORT_RETENTION_DAYS = 90;
45 45
46type Route = (request: Request, env: Env) => Promise<Response> | Response;
47
48const ROUTES = new Map<string, Route>([
49 ["POST /webhooks/github", handleWebhook],
50 ["POST /webhooks/marketplace", handleMarketplaceWebhook],
51 ["GET /login", handleLogin],
52 ["GET /callback", handleCallback],
53 ["GET /logout", () => handleLogout()],
54 ["POST /admin/poll", handleAdminPoll],
55 ["POST /admin/export", handleAdminExport],
56 ["POST /admin/cleanup", handleAdminCleanup],
57 ["POST /admin/purge", handleAdminPurge],
58 // Dashboard (session-authed) surfaces.
59 ["POST /resync", handleResync],
60 ["POST /exports", handleCreateExport],
61 ["POST /switch", handleSwitchInstallation],
62 ["POST /exclusions", handleExclusion],
63 ["GET /access-review", handleAccessReview],
64 ["GET /", handleDashboard],
65]);
66
67// GET /admin/export/<id>[/download] (admin token) and /exports/<id>[/download]
68// (session).
69const EXPORT_JOB_ROUTES = [
70 { pattern: /^\/admin\/export\/([0-9a-f-]+)(\/download)?$/, handler: handleAdminExportGet },
71 { pattern: /^\/exports\/([0-9a-f-]+)(\/download)?$/, handler: handleSessionExportGet },
72];
73
46export default { 74export default {
47 async fetch(request: Request, env: Env): Promise<Response> { 75 async fetch(request: Request, env: Env): Promise<Response> {
48 const url = new URL(request.url); 76 const url = new URL(request.url);
49 77
50 if (request.method === "POST" && url.pathname === "/webhooks/github") { 78 const route = ROUTES.get(`${request.method} ${url.pathname}`);
51 return handleWebhook(request, env); 79 if (route) return route(request, env);
52 } 80
53 if (request.method === "POST" && url.pathname === "/webhooks/marketplace") { 81 if (request.method === "GET") {
54 return handleMarketplaceWebhook(request, env); 82 for (const { pattern, handler } of EXPORT_JOB_ROUTES) {
55 } 83 const match = url.pathname.match(pattern);
56 if (request.method === "GET" && url.pathname === "/login") { 84 const [, jobId, downloadSuffix] = match ?? [];
57 return handleLogin(request, env); 85 if (jobId) return handler(request, env, jobId, downloadSuffix === "/download");
58 } 86 }
59 if (request.method === "GET" && url.pathname === "/callback") {
60 return handleCallback(request, env);
61 }
62 if (request.method === "GET" && url.pathname === "/logout") {
63 return handleLogout();
64 }
65 if (request.method === "POST" && url.pathname === "/admin/poll") {
66 return handleAdminPoll(request, env);
67 }
68 if (request.method === "POST" && url.pathname === "/admin/export") {
69 return handleAdminExport(request, env);
70 }
71 if (request.method === "POST" && url.pathname === "/admin/cleanup") {
72 return handleAdminCleanup(request, env);
73 }
74 if (request.method === "POST" && url.pathname === "/admin/purge") {
75 return handleAdminPurge(request, env);
76 }
77 const adminExportMatch = url.pathname.match(/^\/admin\/export\/([0-9a-f-]+)(\/download)?$/);
78 if (request.method === "GET" && adminExportMatch) {
79 const [, jobId, downloadSuffix] = adminExportMatch;
80 if (jobId) return handleAdminExportGet(request, env, jobId, downloadSuffix === "/download");
81 }
82 // Dashboard (session-authed) surfaces.
83 if (request.method === "POST" && url.pathname === "/resync") {
84 return handleResync(request, env);
85 }
86 if (request.method === "POST" && url.pathname === "/exports") {
87 return handleCreateExport(request, env);
88 }
89 if (request.method === "POST" && url.pathname === "/switch") {
90 return handleSwitchInstallation(request, env);
91 }
92 if (request.method === "POST" && url.pathname === "/exclusions") {
93 return handleExclusion(request, env);
94 }
95 const exportMatch = url.pathname.match(/^\/exports\/([0-9a-f-]+)(\/download)?$/);
96 if (request.method === "GET" && exportMatch) {
97 const [, jobId, downloadSuffix] = exportMatch;
98 if (jobId) return handleSessionExportGet(request, env, jobId, downloadSuffix === "/download");
99 }
100 if (request.method === "GET" && url.pathname === "/access-review") {
101 return handleAccessReview(request, env);
102 }
103 if (request.method === "GET" && url.pathname === "/") {
104 return handleDashboard(request, env);
105 } 87 }
106 88
107 return new Response("Not found", { status: 404 }); 89 return new Response("Not found", { status: 404 });
src/webhook.ts +82 −87
@@ -33,96 +33,91 @@ interface ExtractedFact {
33 subject: string | null; 33 subject: string | null;
34} 34}
35 35
36type Payload = Record<string, unknown>;
37type Extractor = (payload: Payload, action: string | undefined) => ExtractedFact;
38
39function record(value: unknown): Payload | undefined {
40 return value as Payload | undefined;
41}
42
43function stringField(obj: Payload | undefined, field: string): string | null {
44 const value = obj?.[field];
45 return typeof value === "string" ? value : null;
46}
47
36// Minimal resource/status extraction per event type. Control-ID mapping 48// Minimal resource/status extraction per event type. Control-ID mapping
37// (resource+status -> SOC 2 / ISO 27001 control) is a separate, later step. 49// (resource+status -> SOC 2 / ISO 27001 control) is a separate, later step.
38export function extractFact(eventType: string, payload: Record<string, unknown>): ExtractedFact { 50const EXTRACTORS: Record<string, Extractor> = {
39 const action = typeof payload.action === "string" ? payload.action : undefined; 51 // The event is scoped to one rule, which may target any branch. Only a
40 52 // rule whose pattern is exactly the default branch changes the repo's
41 switch (eventType) { 53 // protection state (normalized to the enabled/disabled vocabulary the
42 // The event is scoped to one rule, which may target any branch. Only a 54 // poller shares); any other rule is recorded as an unmapped trail event,
43 // rule whose pattern is exactly the default branch changes the repo's 55 // with the hourly poll authoritative for current state.
44 // protection state (normalized to the enabled/disabled vocabulary the 56 branch_protection_rule: (payload, action) => {
45 // poller shares); any other rule is recorded as an unmapped trail event, 57 const pattern = stringField(record(payload.rule), "name");
46 // with the hourly poll authoritative for current state. 58 const defaultBranch = stringField(record(payload.repository), "default_branch") ?? undefined;
47 case "branch_protection_rule": { 59 if (pattern !== null && pattern === defaultBranch) {
48 const rule = payload.rule as Record<string, unknown> | undefined; 60 return { resource: "branch_protection", status: action === "deleted" ? "disabled" : "enabled", subject: null };
49 const repository = payload.repository as Record<string, unknown> | undefined;
50 const pattern = typeof rule?.name === "string" ? rule.name : null;
51 const defaultBranch = typeof repository?.default_branch === "string" ? repository.default_branch : undefined;
52 if (pattern !== null && pattern === defaultBranch) {
53 return { resource: "branch_protection", status: action === "deleted" ? "disabled" : "enabled", subject: null };
54 }
55 return { resource: "branch_protection_rule_event", status: action ?? "unknown", subject: pattern };
56 }
57 // Ruleset events are ruleset-scoped: one ruleset being created or deleted
58 // says nothing about whether *other* active rulesets still cover the
59 // default branch, so this is trail-only; current repository_ruleset state
60 // comes from the poller's /rules/branches/{default-branch} check.
61 case "repository_ruleset": {
62 const ruleset = payload.repository_ruleset as Record<string, unknown> | undefined;
63 const id = typeof ruleset?.id === "number" ? String(ruleset.id) : null;
64 return { resource: "repository_ruleset_event", status: action ?? "unknown", subject: id };
65 }
66 case "dependabot_alert":
67 case "code_scanning_alert": {
68 const alert = payload.alert as Record<string, unknown> | undefined;
69 const state = typeof alert?.state === "string" ? alert.state : undefined;
70 return { resource: eventType, status: state ?? action ?? "unknown", subject: alertNumber(alert) };
71 } 61 }
72 // Unlike the two alert payloads above, the secret-scanning webhook alert 62 return { resource: "branch_protection_rule_event", status: action ?? "unknown", subject: pattern };
73 // carries no `state` field — only `resolution`, which is set iff the 63 },
74 // alert is resolved. Derive open/resolved from that (falling back to 64 // Ruleset events are ruleset-scoped: one ruleset being created or deleted
75 // `state` should GitHub ever add it). 65 // says nothing about whether *other* active rulesets still cover the
76 case "secret_scanning_alert": { 66 // default branch, so this is trail-only; current repository_ruleset state
77 const alert = payload.alert as Record<string, unknown> | undefined; 67 // comes from the poller's /rules/branches/{default-branch} check.
78 const state = typeof alert?.state === "string" ? alert.state : undefined; 68 repository_ruleset: (payload, action) => {
79 return { 69 const ruleset = record(payload.repository_ruleset);
80 resource: eventType, 70 const id = typeof ruleset?.id === "number" ? String(ruleset.id) : null;
81 status: state ?? (alert?.resolution ? "resolved" : "open"), 71 return { resource: "repository_ruleset_event", status: action ?? "unknown", subject: id };
82 subject: alertNumber(alert), 72 },
83 }; 73 dependabot_alert: (payload, action) => stateAlert("dependabot_alert", payload, action),
84 } 74 code_scanning_alert: (payload, action) => stateAlert("code_scanning_alert", payload, action),
85 // Repository collaborators. Org-level membership arrives on the 75 // Unlike the two alert payloads above, the secret-scanning webhook alert
86 // `organization` event below, not here. 76 // carries no `state` field — only `resolution`, which is set iff the
87 case "member": { 77 // alert is resolved. Derive open/resolved from that (falling back to
88 const member = payload.member as Record<string, unknown> | undefined; 78 // `state` should GitHub ever add it).
89 return { 79 secret_scanning_alert: (payload) => {
90 resource: "member_access", 80 const alert = record(payload.alert);
91 status: action ?? "unknown", 81 return {
92 subject: typeof member?.login === "string" ? member.login : null, 82 resource: "secret_scanning_alert",
93 }; 83 status: stringField(alert, "state") ?? (alert?.resolution ? "resolved" : "open"),
94 } 84 subject: alertNumber(alert),
95 case "team": { 85 };
96 const team = payload.team as Record<string, unknown> | undefined; 86 },
97 return { 87 // Repository collaborators. Org-level membership arrives on the
98 resource: "team", 88 // `organization` event below, not here.
99 status: action ?? "unknown", 89 member: (payload, action) => ({
100 subject: typeof team?.slug === "string" ? team.slug : null, 90 resource: "member_access",
101 }; 91 status: action ?? "unknown",
102 } 92 subject: stringField(record(payload.member), "login"),
103 case "organization": { 93 }),
104 const membership = payload.membership as Record<string, unknown> | undefined; 94 team: (payload, action) => ({
105 const user = membership?.user as Record<string, unknown> | undefined; 95 resource: "team",
106 // member_invited identifies the invitee via `invitation` (login for 96 status: action ?? "unknown",
107 // existing users, email otherwise) rather than `membership`. 97 subject: stringField(record(payload.team), "slug"),
108 const invitation = payload.invitation as Record<string, unknown> | undefined; 98 }),
109 const subject = 99 // member_invited identifies the invitee via `invitation` (login for
110 typeof user?.login === "string" 100 // existing users, email otherwise) rather than `membership`.
111 ? user.login 101 organization: (payload, action) => {
112 : typeof invitation?.login === "string" 102 const user = record(record(payload.membership)?.user);
113 ? invitation.login 103 const invitation = record(payload.invitation);
114 : typeof invitation?.email === "string" 104 const subject =
115 ? invitation.email 105 stringField(user, "login") ?? stringField(invitation, "login") ?? stringField(invitation, "email");
116 : null; 106 return { resource: "org_membership", status: action ?? "unknown", subject };
117 return { resource: "org_membership", status: action ?? "unknown", subject }; 107 },
118 } 108 repository: (_payload, action) => ({ resource: "repository", status: action ?? "unknown", subject: null }),
119 case "repository": 109 push: () => ({ resource: "push", status: "received", subject: null }),
120 return { resource: "repository", status: action ?? "unknown", subject: null }; 110};
121 case "push": 111
122 return { resource: "push", status: "received", subject: null }; 112function stateAlert(resource: string, payload: Payload, action: string | undefined): ExtractedFact {
123 default: 113 const alert = record(payload.alert);
124 return { resource: eventType, status: action ?? "received", subject: null }; 114 return { resource, status: stringField(alert, "state") ?? action ?? "unknown", subject: alertNumber(alert) };
125 } 115}
116
117export function extractFact(eventType: string, payload: Payload): ExtractedFact {
118 const action = typeof payload.action === "string" ? payload.action : undefined;
119 const extract = Object.hasOwn(EXTRACTORS, eventType) ? EXTRACTORS[eventType] : undefined;
120 return extract ? extract(payload, action) : { resource: eventType, status: action ?? "received", subject: null };
126} 121}
127 122
128function alertNumber(alert: Record<string, unknown> | undefined): string | null { 123function alertNumber(alert: Record<string, unknown> | undefined): string | null {