dslinter 0.0.31 → 0.0.33

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.
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>DSLinter</title>
7
- <script type="module" crossorigin src="/assets/index-BTfdBwuZ.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-BDok42uY.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-Dgfmp0Yv.css">
9
9
  </head>
10
10
  <body class="bg-background antialiased">
package/index.cjs CHANGED
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('@dslinter/binding-android-arm64')
79
79
  const bindingPackageVersion = require('@dslinter/binding-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
81
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
82
82
  }
83
83
  return binding
84
84
  } catch (e) {
@@ -93,8 +93,8 @@ function requireNative() {
93
93
  try {
94
94
  const binding = require('@dslinter/binding-android-arm-eabi')
95
95
  const bindingPackageVersion = require('@dslinter/binding-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
97
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
98
98
  }
99
99
  return binding
100
100
  } catch (e) {
@@ -114,8 +114,8 @@ function requireNative() {
114
114
  try {
115
115
  const binding = require('@dslinter/binding-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('@dslinter/binding-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
118
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
119
119
  }
120
120
  return binding
121
121
  } catch (e) {
@@ -130,8 +130,8 @@ function requireNative() {
130
130
  try {
131
131
  const binding = require('@dslinter/binding-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('@dslinter/binding-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
134
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
135
135
  }
136
136
  return binding
137
137
  } catch (e) {
@@ -147,8 +147,8 @@ function requireNative() {
147
147
  try {
148
148
  const binding = require('@dslinter/binding-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('@dslinter/binding-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
151
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
152
152
  }
153
153
  return binding
154
154
  } catch (e) {
@@ -163,8 +163,8 @@ function requireNative() {
163
163
  try {
164
164
  const binding = require('@dslinter/binding-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('@dslinter/binding-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
167
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
168
168
  }
169
169
  return binding
170
170
  } catch (e) {
@@ -182,8 +182,8 @@ function requireNative() {
182
182
  try {
183
183
  const binding = require('@dslinter/binding-darwin-universal')
184
184
  const bindingPackageVersion = require('@dslinter/binding-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
186
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
187
187
  }
188
188
  return binding
189
189
  } catch (e) {
@@ -198,8 +198,8 @@ function requireNative() {
198
198
  try {
199
199
  const binding = require('@dslinter/binding-darwin-x64')
200
200
  const bindingPackageVersion = require('@dslinter/binding-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
202
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
203
203
  }
204
204
  return binding
205
205
  } catch (e) {
@@ -214,8 +214,8 @@ function requireNative() {
214
214
  try {
215
215
  const binding = require('@dslinter/binding-darwin-arm64')
216
216
  const bindingPackageVersion = require('@dslinter/binding-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
218
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
219
219
  }
220
220
  return binding
221
221
  } catch (e) {
@@ -234,8 +234,8 @@ function requireNative() {
234
234
  try {
235
235
  const binding = require('@dslinter/binding-freebsd-x64')
236
236
  const bindingPackageVersion = require('@dslinter/binding-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
238
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
239
239
  }
240
240
  return binding
241
241
  } catch (e) {
@@ -250,8 +250,8 @@ function requireNative() {
250
250
  try {
251
251
  const binding = require('@dslinter/binding-freebsd-arm64')
252
252
  const bindingPackageVersion = require('@dslinter/binding-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
254
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
255
255
  }
256
256
  return binding
257
257
  } catch (e) {
@@ -271,8 +271,8 @@ function requireNative() {
271
271
  try {
272
272
  const binding = require('@dslinter/binding-linux-x64-musl')
273
273
  const bindingPackageVersion = require('@dslinter/binding-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
275
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
276
276
  }
277
277
  return binding
278
278
  } catch (e) {
@@ -287,8 +287,8 @@ function requireNative() {
287
287
  try {
288
288
  const binding = require('@dslinter/binding-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('@dslinter/binding-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
291
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
292
292
  }
293
293
  return binding
294
294
  } catch (e) {
@@ -305,8 +305,8 @@ function requireNative() {
305
305
  try {
306
306
  const binding = require('@dslinter/binding-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('@dslinter/binding-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
309
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
310
310
  }
311
311
  return binding
312
312
  } catch (e) {
@@ -321,8 +321,8 @@ function requireNative() {
321
321
  try {
322
322
  const binding = require('@dslinter/binding-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('@dslinter/binding-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
325
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
326
326
  }
327
327
  return binding
328
328
  } catch (e) {
@@ -339,8 +339,8 @@ function requireNative() {
339
339
  try {
340
340
  const binding = require('@dslinter/binding-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('@dslinter/binding-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
343
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
344
344
  }
345
345
  return binding
346
346
  } catch (e) {
@@ -355,8 +355,8 @@ function requireNative() {
355
355
  try {
356
356
  const binding = require('@dslinter/binding-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('@dslinter/binding-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
359
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
360
360
  }
361
361
  return binding
362
362
  } catch (e) {
@@ -373,8 +373,8 @@ function requireNative() {
373
373
  try {
374
374
  const binding = require('@dslinter/binding-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('@dslinter/binding-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
377
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
378
378
  }
379
379
  return binding
380
380
  } catch (e) {
@@ -389,8 +389,8 @@ function requireNative() {
389
389
  try {
390
390
  const binding = require('@dslinter/binding-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('@dslinter/binding-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
393
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
394
394
  }
395
395
  return binding
396
396
  } catch (e) {
@@ -407,8 +407,8 @@ function requireNative() {
407
407
  try {
408
408
  const binding = require('@dslinter/binding-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('@dslinter/binding-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
411
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
412
412
  }
413
413
  return binding
414
414
  } catch (e) {
@@ -423,8 +423,8 @@ function requireNative() {
423
423
  try {
424
424
  const binding = require('@dslinter/binding-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('@dslinter/binding-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
427
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
428
428
  }
429
429
  return binding
430
430
  } catch (e) {
@@ -440,8 +440,8 @@ function requireNative() {
440
440
  try {
441
441
  const binding = require('@dslinter/binding-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('@dslinter/binding-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
444
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
445
445
  }
446
446
  return binding
447
447
  } catch (e) {
@@ -456,8 +456,8 @@ function requireNative() {
456
456
  try {
457
457
  const binding = require('@dslinter/binding-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('@dslinter/binding-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
460
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
461
461
  }
462
462
  return binding
463
463
  } catch (e) {
@@ -476,8 +476,8 @@ function requireNative() {
476
476
  try {
477
477
  const binding = require('@dslinter/binding-openharmony-arm64')
478
478
  const bindingPackageVersion = require('@dslinter/binding-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
480
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
481
481
  }
482
482
  return binding
483
483
  } catch (e) {
@@ -492,8 +492,8 @@ function requireNative() {
492
492
  try {
493
493
  const binding = require('@dslinter/binding-openharmony-x64')
494
494
  const bindingPackageVersion = require('@dslinter/binding-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
496
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
497
497
  }
498
498
  return binding
499
499
  } catch (e) {
@@ -508,8 +508,8 @@ function requireNative() {
508
508
  try {
509
509
  const binding = require('@dslinter/binding-openharmony-arm')
510
510
  const bindingPackageVersion = require('@dslinter/binding-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '0.0.31' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
- throw new Error(`Native binding package version mismatch, expected 0.0.31 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.0.33' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
512
+ throw new Error(`Native binding package version mismatch, expected 0.0.33 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dslinter",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "DSLinter dashboard UI: playground shell, token wall, and governance panels (consumes dslint-report.json).",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -108,11 +108,11 @@
108
108
  "vitest": "^3.2.4"
109
109
  },
110
110
  "optionalDependencies": {
111
- "@dslinter/binding-darwin-arm64": "0.0.31",
112
- "@dslinter/binding-darwin-x64": "0.0.31",
113
- "@dslinter/binding-linux-arm64-gnu": "0.0.31",
114
- "@dslinter/binding-linux-x64-gnu": "0.0.31",
115
- "@dslinter/binding-win32-x64-msvc": "0.0.31"
111
+ "@dslinter/binding-darwin-arm64": "0.0.33",
112
+ "@dslinter/binding-darwin-x64": "0.0.33",
113
+ "@dslinter/binding-linux-arm64-gnu": "0.0.33",
114
+ "@dslinter/binding-linux-x64-gnu": "0.0.33",
115
+ "@dslinter/binding-win32-x64-msvc": "0.0.33"
116
116
  },
117
117
  "scripts": {
118
118
  "build:napi": "napi build --platform --release --cwd ../.. --output-dir packages/dashboard --package-json-path packages/dashboard/package.json --js-package-name @dslinter/binding --js index.cjs --no-default-features --features napi",
@@ -9,11 +9,11 @@ import {
9
9
  CommandList,
10
10
  } from "@/components/ui/command";
11
11
 
12
- import type { PlaygroundEntry } from "../types/playground";
13
12
  import type { HashRoute } from "../shell/hashRoute";
14
13
 
15
14
  type Props = {
16
- entries: PlaygroundEntry[];
15
+ catalogNames: string[];
16
+ playgroundIds: Set<string>;
17
17
  onNavigate: (next: HashRoute) => void;
18
18
  open: boolean;
19
19
  onOpenChange: (open: boolean) => void;
@@ -26,41 +26,21 @@ function eventTargetIsEditable(target: EventTarget | null): boolean {
26
26
  return tag === "INPUT" || tag === "TEXTAREA" || tag === "SELECT";
27
27
  }
28
28
 
29
- type ComponentChunk = {
30
- heading: string;
31
- entries: PlaygroundEntry[];
32
- };
33
-
34
- function chunkPlaygroundEntries(entries: PlaygroundEntry[]): ComponentChunk[] {
35
- if (entries.length === 0) return [];
36
- const chunks: ComponentChunk[] = [];
37
- let chunk: PlaygroundEntry[] = [];
38
- let heading = "Components";
39
-
40
- for (let i = 0; i < entries.length; i++) {
41
- const e = entries[i];
42
- const prev = i > 0 ? entries[i - 1] : undefined;
43
- const showGroup =
44
- Boolean(e.meta.group) &&
45
- (prev == null || prev.meta.group !== e.meta.group);
46
-
47
- if (showGroup && chunk.length > 0) {
48
- chunks.push({ heading, entries: chunk });
49
- chunk = [];
50
- heading = e.meta.group ?? "Components";
51
- } else if (showGroup && chunk.length === 0) {
52
- heading = e.meta.group ?? "Components";
53
- }
54
- chunk.push(e);
55
- }
56
- if (chunk.length > 0) {
57
- chunks.push({ heading, entries: chunk });
29
+ function navigateToCatalogName(
30
+ name: string,
31
+ playgroundIds: Set<string>,
32
+ onNavigate: (next: HashRoute) => void,
33
+ ) {
34
+ if (playgroundIds.has(name)) {
35
+ onNavigate({ view: "component", componentId: name });
36
+ } else {
37
+ onNavigate({ view: "governance", catalog: name });
58
38
  }
59
- return chunks;
60
39
  }
61
40
 
62
41
  export function DashboardCommandPalette({
63
- entries,
42
+ catalogNames,
43
+ playgroundIds,
64
44
  onNavigate,
65
45
  open,
66
46
  onOpenChange,
@@ -78,8 +58,6 @@ export function DashboardCommandPalette({
78
58
  return () => document.removeEventListener("keydown", onKeyDown);
79
59
  }, [open, onOpenChange]);
80
60
 
81
- const componentChunks = chunkPlaygroundEntries(entries);
82
-
83
61
  return (
84
62
  <CommandDialog
85
63
  open={open}
@@ -101,22 +79,22 @@ export function DashboardCommandPalette({
101
79
  Governance
102
80
  </CommandItem>
103
81
  </CommandGroup>
104
- {componentChunks.map((c, chunkIndex) => (
105
- <CommandGroup key={`${c.heading}-${chunkIndex}`} heading={c.heading}>
106
- {c.entries.map((entry) => (
82
+ {catalogNames.length > 0 ? (
83
+ <CommandGroup heading="Components">
84
+ {catalogNames.map((name) => (
107
85
  <CommandItem
108
- key={entry.id}
109
- value={`${entry.id} ${entry.meta.title} ${entry.meta.group ?? ""}`}
86
+ key={name}
87
+ value={name}
110
88
  onSelect={() => {
111
- onNavigate({ view: "component", componentId: entry.id });
89
+ navigateToCatalogName(name, playgroundIds, onNavigate);
112
90
  close();
113
91
  }}
114
92
  >
115
- {entry.meta.title}
93
+ {name}
116
94
  </CommandItem>
117
95
  ))}
118
96
  </CommandGroup>
119
- ))}
97
+ ) : null}
120
98
  <CommandGroup heading="System">
121
99
  <CommandItem
122
100
  value="tokens design system colors"
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import { componentCatalogNamesFromReport } from "../dashboard/aggregate";
2
3
  import { DashboardBody } from "../dashboard/DashboardBody";
3
4
  import type { DslinterReportState } from "../dashboard/useWorkspaceReport";
4
5
 
@@ -8,6 +9,7 @@ type Props = {
8
9
  reportUrl?: string;
9
10
  dslinterReportHint?: string;
10
11
  dslinterReport: DslinterReportState;
12
+ focusName?: string;
11
13
  };
12
14
 
13
15
  export function GovernancePane({
@@ -15,8 +17,12 @@ export function GovernancePane({
15
17
  reportUrl: _reportUrl = "/dslint-report.json",
16
18
  dslinterReportHint = "npm run dslint:report",
17
19
  dslinterReport,
20
+ focusName,
18
21
  }: Props) {
19
22
  const { report, error, loading } = dslinterReport;
23
+ const componentCatalogCount = report
24
+ ? componentCatalogNamesFromReport(report).length
25
+ : 0;
20
26
 
21
27
  if (error) {
22
28
  return (
@@ -63,6 +69,10 @@ export function GovernancePane({
63
69
  </p>
64
70
  <h1 className="mt-1 text-lg font-semibold tracking-tight text-foreground">
65
71
  Governance
72
+ <span className="font-normal text-muted-foreground">
73
+ {" "}
74
+ · {componentCatalogCount} components
75
+ </span>
66
76
  </h1>
67
77
  <p className="text-sm text-muted-foreground">
68
78
  Scores, component catalog, token wall, and findings from the latest
@@ -70,7 +80,7 @@ export function GovernancePane({
70
80
  </p>
71
81
  </header>
72
82
  <div className="min-w-0 w-full px-6 py-8">
73
- <DashboardBody report={report} />
83
+ <DashboardBody report={report} focusName={focusName} />
74
84
  </div>
75
85
  </div>
76
86
  );
@@ -1,13 +1,17 @@
1
- import { useEffect, useState } from "react";
1
+ import { useEffect, useMemo, useState } from "react";
2
2
  import { IconMoon, IconSearch, IconSun } from "@/components/icons";
3
3
  import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
4
4
 
5
- import type { PlaygroundEntry } from "../types/playground";
5
+ import { componentCatalogNamesFromReport } from "../dashboard/aggregate";
6
+ import type { WorkspaceReport } from "../types/report";
6
7
  import type { HashRoute } from "../shell/hashRoute";
7
8
  import type { DashboardThemePreference } from "../shell/DashboardLayout";
8
9
 
9
10
  type Props = {
10
- entries: PlaygroundEntry[];
11
+ report: WorkspaceReport | null;
12
+ playgroundIds: Set<string>;
13
+ reportLoading: boolean;
14
+ reportError: string | null;
11
15
  route: HashRoute;
12
16
  onNavigate: (next: HashRoute) => void;
13
17
  onOpenCommandPalette: () => void;
@@ -45,13 +49,20 @@ function sectionLabel(text: string) {
45
49
  }
46
50
 
47
51
  export function Sidebar({
48
- entries,
52
+ report,
53
+ playgroundIds,
54
+ reportLoading,
55
+ reportError,
49
56
  route,
50
57
  onNavigate,
51
58
  onOpenCommandPalette,
52
59
  theme,
53
60
  onThemeChange,
54
61
  }: Props) {
62
+ const catalogNames = useMemo(
63
+ () => componentCatalogNamesFromReport(report),
64
+ [report],
65
+ );
55
66
  const tokensActive = route.view === "tokens";
56
67
  const governanceActive = route.view === "governance";
57
68
 
@@ -139,28 +150,44 @@ export function Sidebar({
139
150
  Design tokens
140
151
  </button>
141
152
 
142
- {sectionLabel("Components")}
153
+ {sectionLabel(
154
+ catalogNames.length > 0
155
+ ? `Components (${catalogNames.length})`
156
+ : "Components",
157
+ )}
143
158
  <div className="space-y-0.5">
144
- {entries.map((e, i) => {
159
+ {reportLoading && catalogNames.length === 0 ? (
160
+ <p className="px-2.5 py-1.5 text-sm text-sidebar-foreground/50">
161
+ Loading components…
162
+ </p>
163
+ ) : null}
164
+ {reportError && catalogNames.length === 0 ? (
165
+ <p className="px-2.5 py-1.5 text-sm text-sidebar-foreground/50">
166
+ Could not load report
167
+ </p>
168
+ ) : null}
169
+ {!reportLoading && !reportError && catalogNames.length === 0 ? (
170
+ <p className="px-2.5 py-1.5 text-sm text-sidebar-foreground/50">
171
+ No components in scan
172
+ </p>
173
+ ) : null}
174
+ {catalogNames.map((name) => {
145
175
  const active =
146
- route.view === "component" && route.componentId === e.id;
147
- const prev = entries[i - 1];
148
- const showGroup =
149
- Boolean(e.meta.group) &&
150
- (!prev || prev.meta.group !== e.meta.group);
176
+ (route.view === "component" && route.componentId === name) ||
177
+ (route.view === "governance" && route.catalog === name);
151
178
  return (
152
- <div key={e.id}>
153
- {showGroup && e.meta.group ? sectionLabel(e.meta.group) : null}
154
- <button
155
- type="button"
156
- onClick={() =>
157
- onNavigate({ view: "component", componentId: e.id })
158
- }
159
- className={navButtonClass(active)}
160
- >
161
- {e.meta.title}
162
- </button>
163
- </div>
179
+ <button
180
+ key={name}
181
+ type="button"
182
+ onClick={() =>
183
+ playgroundIds.has(name)
184
+ ? onNavigate({ view: "component", componentId: name })
185
+ : onNavigate({ view: "governance", catalog: name })
186
+ }
187
+ className={navButtonClass(active)}
188
+ >
189
+ {name}
190
+ </button>
164
191
  );
165
192
  })}
166
193
  </div>
@@ -1,4 +1,4 @@
1
- import { useMemo } from "react";
1
+ import { useEffect, useMemo } from "react";
2
2
  import {
3
3
  HoverCard,
4
4
  HoverCardContent,
@@ -16,6 +16,7 @@ import {
16
16
  aggregateDeclaredProps,
17
17
  aggregateDefinitions,
18
18
  catalogComponentNames,
19
+ catalogRowDomId,
19
20
  usageMap,
20
21
  } from "./aggregate";
21
22
  import { shortPath } from "./paths";
@@ -146,7 +147,13 @@ function CatalogAppUsageHover({
146
147
  );
147
148
  }
148
149
 
149
- export function ComponentCatalog({ report }: { report: WorkspaceReport }) {
150
+ export function ComponentCatalog({
151
+ report,
152
+ focusName,
153
+ }: {
154
+ report: WorkspaceReport;
155
+ focusName?: string;
156
+ }) {
150
157
  const defs = aggregateDefinitions(report);
151
158
  const usages = usageMap(report);
152
159
  const names = catalogComponentNames(defs, usages);
@@ -156,6 +163,12 @@ export function ComponentCatalog({ report }: { report: WorkspaceReport }) {
156
163
  [report],
157
164
  );
158
165
 
166
+ useEffect(() => {
167
+ if (!focusName || !names.includes(focusName)) return;
168
+ const el = document.getElementById(catalogRowDomId(focusName));
169
+ el?.scrollIntoView({ block: "nearest", behavior: "smooth" });
170
+ }, [focusName, names]);
171
+
159
172
  return (
160
173
  <Table>
161
174
  <TableHeader>
@@ -174,7 +187,7 @@ export function ComponentCatalog({ report }: { report: WorkspaceReport }) {
174
187
  ).length;
175
188
 
176
189
  return (
177
- <TableRow key={name}>
190
+ <TableRow key={name} id={catalogRowDomId(name)}>
178
191
  <TableCell>{name}</TableCell>
179
192
 
180
193
  <TableCell>