@mlx-node/core 0.0.12 → 0.0.15

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.
Files changed (3) hide show
  1. package/index.cjs +55 -54
  2. package/index.d.cts +29 -18
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -78,12 +78,12 @@ function requireNative() {
78
78
  const binding = require('@mlx-node/core-android-arm64');
79
79
  const bindingPackageVersion = require('@mlx-node/core-android-arm64/package.json').version;
80
80
  if (
81
- bindingPackageVersion !== '0.0.12' &&
81
+ bindingPackageVersion !== '0.0.15' &&
82
82
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
83
83
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
84
84
  ) {
85
85
  throw new Error(
86
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
86
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
87
87
  );
88
88
  }
89
89
  return binding;
@@ -100,12 +100,12 @@ function requireNative() {
100
100
  const binding = require('@mlx-node/core-android-arm-eabi');
101
101
  const bindingPackageVersion = require('@mlx-node/core-android-arm-eabi/package.json').version;
102
102
  if (
103
- bindingPackageVersion !== '0.0.12' &&
103
+ bindingPackageVersion !== '0.0.15' &&
104
104
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
105
105
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
106
106
  ) {
107
107
  throw new Error(
108
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
108
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
109
109
  );
110
110
  }
111
111
  return binding;
@@ -130,12 +130,12 @@ function requireNative() {
130
130
  const binding = require('@mlx-node/core-win32-x64-gnu');
131
131
  const bindingPackageVersion = require('@mlx-node/core-win32-x64-gnu/package.json').version;
132
132
  if (
133
- bindingPackageVersion !== '0.0.12' &&
133
+ bindingPackageVersion !== '0.0.15' &&
134
134
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
135
135
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
136
136
  ) {
137
137
  throw new Error(
138
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
138
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
139
139
  );
140
140
  }
141
141
  return binding;
@@ -152,12 +152,12 @@ function requireNative() {
152
152
  const binding = require('@mlx-node/core-win32-x64-msvc');
153
153
  const bindingPackageVersion = require('@mlx-node/core-win32-x64-msvc/package.json').version;
154
154
  if (
155
- bindingPackageVersion !== '0.0.12' &&
155
+ bindingPackageVersion !== '0.0.15' &&
156
156
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
157
157
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
158
158
  ) {
159
159
  throw new Error(
160
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
160
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
161
161
  );
162
162
  }
163
163
  return binding;
@@ -175,12 +175,12 @@ function requireNative() {
175
175
  const binding = require('@mlx-node/core-win32-ia32-msvc');
176
176
  const bindingPackageVersion = require('@mlx-node/core-win32-ia32-msvc/package.json').version;
177
177
  if (
178
- bindingPackageVersion !== '0.0.12' &&
178
+ bindingPackageVersion !== '0.0.15' &&
179
179
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
180
180
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
181
181
  ) {
182
182
  throw new Error(
183
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
183
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
184
184
  );
185
185
  }
186
186
  return binding;
@@ -197,12 +197,12 @@ function requireNative() {
197
197
  const binding = require('@mlx-node/core-win32-arm64-msvc');
198
198
  const bindingPackageVersion = require('@mlx-node/core-win32-arm64-msvc/package.json').version;
199
199
  if (
200
- bindingPackageVersion !== '0.0.12' &&
200
+ bindingPackageVersion !== '0.0.15' &&
201
201
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
202
202
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
203
203
  ) {
204
204
  throw new Error(
205
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
205
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
206
206
  );
207
207
  }
208
208
  return binding;
@@ -222,12 +222,12 @@ function requireNative() {
222
222
  const binding = require('@mlx-node/core-darwin-universal');
223
223
  const bindingPackageVersion = require('@mlx-node/core-darwin-universal/package.json').version;
224
224
  if (
225
- bindingPackageVersion !== '0.0.12' &&
225
+ bindingPackageVersion !== '0.0.15' &&
226
226
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
227
227
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
228
228
  ) {
229
229
  throw new Error(
230
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
230
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
231
231
  );
232
232
  }
233
233
  return binding;
@@ -244,12 +244,12 @@ function requireNative() {
244
244
  const binding = require('@mlx-node/core-darwin-x64');
245
245
  const bindingPackageVersion = require('@mlx-node/core-darwin-x64/package.json').version;
246
246
  if (
247
- bindingPackageVersion !== '0.0.12' &&
247
+ bindingPackageVersion !== '0.0.15' &&
248
248
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
249
249
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
250
250
  ) {
251
251
  throw new Error(
252
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
252
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
253
253
  );
254
254
  }
255
255
  return binding;
@@ -266,12 +266,12 @@ function requireNative() {
266
266
  const binding = require('@mlx-node/core-darwin-arm64');
267
267
  const bindingPackageVersion = require('@mlx-node/core-darwin-arm64/package.json').version;
268
268
  if (
269
- bindingPackageVersion !== '0.0.12' &&
269
+ bindingPackageVersion !== '0.0.15' &&
270
270
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
271
271
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
272
272
  ) {
273
273
  throw new Error(
274
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
274
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
275
275
  );
276
276
  }
277
277
  return binding;
@@ -292,12 +292,12 @@ function requireNative() {
292
292
  const binding = require('@mlx-node/core-freebsd-x64');
293
293
  const bindingPackageVersion = require('@mlx-node/core-freebsd-x64/package.json').version;
294
294
  if (
295
- bindingPackageVersion !== '0.0.12' &&
295
+ bindingPackageVersion !== '0.0.15' &&
296
296
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
297
297
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
298
298
  ) {
299
299
  throw new Error(
300
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
300
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
301
301
  );
302
302
  }
303
303
  return binding;
@@ -314,12 +314,12 @@ function requireNative() {
314
314
  const binding = require('@mlx-node/core-freebsd-arm64');
315
315
  const bindingPackageVersion = require('@mlx-node/core-freebsd-arm64/package.json').version;
316
316
  if (
317
- bindingPackageVersion !== '0.0.12' &&
317
+ bindingPackageVersion !== '0.0.15' &&
318
318
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
319
319
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
320
320
  ) {
321
321
  throw new Error(
322
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
322
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
323
323
  );
324
324
  }
325
325
  return binding;
@@ -341,12 +341,12 @@ function requireNative() {
341
341
  const binding = require('@mlx-node/core-linux-x64-musl');
342
342
  const bindingPackageVersion = require('@mlx-node/core-linux-x64-musl/package.json').version;
343
343
  if (
344
- bindingPackageVersion !== '0.0.12' &&
344
+ bindingPackageVersion !== '0.0.15' &&
345
345
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
346
346
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
347
347
  ) {
348
348
  throw new Error(
349
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
349
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
350
350
  );
351
351
  }
352
352
  return binding;
@@ -363,12 +363,12 @@ function requireNative() {
363
363
  const binding = require('@mlx-node/core-linux-x64-gnu');
364
364
  const bindingPackageVersion = require('@mlx-node/core-linux-x64-gnu/package.json').version;
365
365
  if (
366
- bindingPackageVersion !== '0.0.12' &&
366
+ bindingPackageVersion !== '0.0.15' &&
367
367
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
368
368
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
369
369
  ) {
370
370
  throw new Error(
371
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
371
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
372
372
  );
373
373
  }
374
374
  return binding;
@@ -387,12 +387,12 @@ function requireNative() {
387
387
  const binding = require('@mlx-node/core-linux-arm64-musl');
388
388
  const bindingPackageVersion = require('@mlx-node/core-linux-arm64-musl/package.json').version;
389
389
  if (
390
- bindingPackageVersion !== '0.0.12' &&
390
+ bindingPackageVersion !== '0.0.15' &&
391
391
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
392
392
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
393
393
  ) {
394
394
  throw new Error(
395
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
395
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
396
396
  );
397
397
  }
398
398
  return binding;
@@ -409,12 +409,12 @@ function requireNative() {
409
409
  const binding = require('@mlx-node/core-linux-arm64-gnu');
410
410
  const bindingPackageVersion = require('@mlx-node/core-linux-arm64-gnu/package.json').version;
411
411
  if (
412
- bindingPackageVersion !== '0.0.12' &&
412
+ bindingPackageVersion !== '0.0.15' &&
413
413
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
414
414
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
415
415
  ) {
416
416
  throw new Error(
417
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
417
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
418
418
  );
419
419
  }
420
420
  return binding;
@@ -433,12 +433,12 @@ function requireNative() {
433
433
  const binding = require('@mlx-node/core-linux-arm-musleabihf');
434
434
  const bindingPackageVersion = require('@mlx-node/core-linux-arm-musleabihf/package.json').version;
435
435
  if (
436
- bindingPackageVersion !== '0.0.12' &&
436
+ bindingPackageVersion !== '0.0.15' &&
437
437
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
438
438
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
439
439
  ) {
440
440
  throw new Error(
441
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
441
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
442
442
  );
443
443
  }
444
444
  return binding;
@@ -455,12 +455,12 @@ function requireNative() {
455
455
  const binding = require('@mlx-node/core-linux-arm-gnueabihf');
456
456
  const bindingPackageVersion = require('@mlx-node/core-linux-arm-gnueabihf/package.json').version;
457
457
  if (
458
- bindingPackageVersion !== '0.0.12' &&
458
+ bindingPackageVersion !== '0.0.15' &&
459
459
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
460
460
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
461
461
  ) {
462
462
  throw new Error(
463
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
463
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
464
464
  );
465
465
  }
466
466
  return binding;
@@ -479,12 +479,12 @@ function requireNative() {
479
479
  const binding = require('@mlx-node/core-linux-loong64-musl');
480
480
  const bindingPackageVersion = require('@mlx-node/core-linux-loong64-musl/package.json').version;
481
481
  if (
482
- bindingPackageVersion !== '0.0.12' &&
482
+ bindingPackageVersion !== '0.0.15' &&
483
483
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
484
484
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
485
485
  ) {
486
486
  throw new Error(
487
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
487
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
488
488
  );
489
489
  }
490
490
  return binding;
@@ -501,12 +501,12 @@ function requireNative() {
501
501
  const binding = require('@mlx-node/core-linux-loong64-gnu');
502
502
  const bindingPackageVersion = require('@mlx-node/core-linux-loong64-gnu/package.json').version;
503
503
  if (
504
- bindingPackageVersion !== '0.0.12' &&
504
+ bindingPackageVersion !== '0.0.15' &&
505
505
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
506
506
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
507
507
  ) {
508
508
  throw new Error(
509
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
509
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
510
510
  );
511
511
  }
512
512
  return binding;
@@ -525,12 +525,12 @@ function requireNative() {
525
525
  const binding = require('@mlx-node/core-linux-riscv64-musl');
526
526
  const bindingPackageVersion = require('@mlx-node/core-linux-riscv64-musl/package.json').version;
527
527
  if (
528
- bindingPackageVersion !== '0.0.12' &&
528
+ bindingPackageVersion !== '0.0.15' &&
529
529
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
530
530
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
531
531
  ) {
532
532
  throw new Error(
533
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
533
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
534
534
  );
535
535
  }
536
536
  return binding;
@@ -547,12 +547,12 @@ function requireNative() {
547
547
  const binding = require('@mlx-node/core-linux-riscv64-gnu');
548
548
  const bindingPackageVersion = require('@mlx-node/core-linux-riscv64-gnu/package.json').version;
549
549
  if (
550
- bindingPackageVersion !== '0.0.12' &&
550
+ bindingPackageVersion !== '0.0.15' &&
551
551
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
552
552
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
553
553
  ) {
554
554
  throw new Error(
555
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
555
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
556
556
  );
557
557
  }
558
558
  return binding;
@@ -570,12 +570,12 @@ function requireNative() {
570
570
  const binding = require('@mlx-node/core-linux-ppc64-gnu');
571
571
  const bindingPackageVersion = require('@mlx-node/core-linux-ppc64-gnu/package.json').version;
572
572
  if (
573
- bindingPackageVersion !== '0.0.12' &&
573
+ bindingPackageVersion !== '0.0.15' &&
574
574
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
575
575
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
576
576
  ) {
577
577
  throw new Error(
578
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
578
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
579
579
  );
580
580
  }
581
581
  return binding;
@@ -592,12 +592,12 @@ function requireNative() {
592
592
  const binding = require('@mlx-node/core-linux-s390x-gnu');
593
593
  const bindingPackageVersion = require('@mlx-node/core-linux-s390x-gnu/package.json').version;
594
594
  if (
595
- bindingPackageVersion !== '0.0.12' &&
595
+ bindingPackageVersion !== '0.0.15' &&
596
596
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
597
597
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
598
598
  ) {
599
599
  throw new Error(
600
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
600
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
601
601
  );
602
602
  }
603
603
  return binding;
@@ -618,12 +618,12 @@ function requireNative() {
618
618
  const binding = require('@mlx-node/core-openharmony-arm64');
619
619
  const bindingPackageVersion = require('@mlx-node/core-openharmony-arm64/package.json').version;
620
620
  if (
621
- bindingPackageVersion !== '0.0.12' &&
621
+ bindingPackageVersion !== '0.0.15' &&
622
622
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
623
623
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
624
624
  ) {
625
625
  throw new Error(
626
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
626
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
627
627
  );
628
628
  }
629
629
  return binding;
@@ -640,12 +640,12 @@ function requireNative() {
640
640
  const binding = require('@mlx-node/core-openharmony-x64');
641
641
  const bindingPackageVersion = require('@mlx-node/core-openharmony-x64/package.json').version;
642
642
  if (
643
- bindingPackageVersion !== '0.0.12' &&
643
+ bindingPackageVersion !== '0.0.15' &&
644
644
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
645
645
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
646
646
  ) {
647
647
  throw new Error(
648
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
648
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
649
649
  );
650
650
  }
651
651
  return binding;
@@ -662,12 +662,12 @@ function requireNative() {
662
662
  const binding = require('@mlx-node/core-openharmony-arm');
663
663
  const bindingPackageVersion = require('@mlx-node/core-openharmony-arm/package.json').version;
664
664
  if (
665
- bindingPackageVersion !== '0.0.12' &&
665
+ bindingPackageVersion !== '0.0.15' &&
666
666
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK &&
667
667
  process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0'
668
668
  ) {
669
669
  throw new Error(
670
- `Native binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
670
+ `Native binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
671
671
  );
672
672
  }
673
673
  return binding;
@@ -797,9 +797,9 @@ if (!nativeBinding || forceWasi) {
797
797
  if (!candidateFailed) {
798
798
  if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
799
799
  const bindingPackageVersion = require('@mlx-node/core-wasm32-wasi/package.json').version;
800
- if (bindingPackageVersion !== '0.0.12') {
800
+ if (bindingPackageVersion !== '0.0.15') {
801
801
  throw new Error(
802
- `WASI binding package version mismatch, expected 0.0.12 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
802
+ `WASI binding package version mismatch, expected 0.0.15 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`,
803
803
  );
804
804
  }
805
805
  }
@@ -919,6 +919,7 @@ module.exports.parsePaddleResponse = nativeBinding.parsePaddleResponse;
919
919
  module.exports.parseToolCallsFromText = nativeBinding.parseToolCallsFromText;
920
920
  module.exports.parseVlmOutput = nativeBinding.parseVlmOutput;
921
921
  module.exports.preflightMuseDflashGguf = nativeBinding.preflightMuseDflashGguf;
922
+ module.exports.prepareMuseGlimmerGguf = nativeBinding.prepareMuseGlimmerGguf;
922
923
  module.exports.quantizedQmvMicrobench = nativeBinding.quantizedQmvMicrobench;
923
924
  module.exports.qwen3AsrAudioDevices = nativeBinding.qwen3AsrAudioDevices;
924
925
  module.exports.Qwen3AsrCaptureSource = nativeBinding.Qwen3AsrCaptureSource;
package/index.d.cts CHANGED
@@ -187,7 +187,6 @@ export declare class Gemma4Model {
187
187
  */
188
188
  hasBlockPagedCache(): boolean;
189
189
  maxConcurrentSequences(): number;
190
- schedulerStats(): Promise<SchedulerStats>;
191
190
  /**
192
191
  * Whether this loaded instance can execute image-bearing chat turns.
193
192
  * Config-only stubs and incomplete/non-paged physical paths return false.
@@ -209,6 +208,8 @@ export declare class Gemma4Model {
209
208
  hasMtpWeights(): boolean;
210
209
  /** Load a Gemma4 model from a directory. */
211
210
  static load(modelPath: string, options?: Gemma4LoadOptions | undefined | null): Promise<Gemma4Model>;
211
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
212
+ schedulerStats(): Promise<SchedulerStats>;
212
213
  /**
213
214
  * Reset all caches and clear cached token history. Async so a reset
214
215
  * queued behind an in-flight turn parks a tokio future, never the
@@ -561,10 +562,10 @@ export declare class Lfm2Model {
561
562
  getConfig(): Lfm2Config;
562
563
  /** Native admission capacity for the server's per-model semaphore. */
563
564
  maxConcurrentSequences(): number;
564
- /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
565
- schedulerStats(): Promise<SchedulerStats>;
566
565
  /** Estimated number of model parameters. */
567
566
  numParameters(): number;
567
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
568
+ schedulerStats(): Promise<SchedulerStats>;
568
569
  /**
569
570
  * Reset all caches and clear cached token history. Async so a reset
570
571
  * queued behind an in-flight turn parks a tokio future, never the
@@ -645,6 +646,8 @@ export declare class Lfm2Model {
645
646
 
646
647
  export declare class MuseGlimmerModel {
647
648
  static load(modelPath: string): Promise<MuseGlimmerModel>;
649
+ /** Resolved tokenizer/config directory, including the native cache after a GGUF load. */
650
+ modelAssetsPath(): string;
648
651
  hasMtpWeights(): boolean;
649
652
  autoEnablesMtp(): boolean;
650
653
  hasBlockPagedCache(): boolean;
@@ -654,6 +657,7 @@ export declare class MuseGlimmerModel {
654
657
  * `effective_window_tokens` is min(trained, live pool).
655
658
  */
656
659
  contextLimits(): MuseGlimmerContextLimits;
660
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
657
661
  schedulerStats(): Promise<SchedulerStats>;
658
662
  /**
659
663
  * Reset all caches and clear cached token history. Async so a reset
@@ -1043,10 +1047,10 @@ export declare class NemotronHModel {
1043
1047
  * models and forced-serial processes report 1.
1044
1048
  */
1045
1049
  maxConcurrentSequences(): number;
1046
- /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
1047
- schedulerStats(): Promise<SchedulerStats>;
1048
1050
  /** Estimated number of model parameters. */
1049
1051
  numParameters(): number;
1052
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
1053
+ schedulerStats(): Promise<SchedulerStats>;
1050
1054
  /**
1051
1055
  * Reset all caches and clear cached token history. Async so a reset
1052
1056
  * queued behind an in-flight turn parks a tokio future, never the
@@ -1434,8 +1438,6 @@ export declare class Qwen35Model {
1434
1438
  * lane by the scheduler.
1435
1439
  */
1436
1440
  maxConcurrentSequences(): number;
1437
- /** Snapshot scheduler occupancy plus unified block/recurrent admission. */
1438
- schedulerStats(): Promise<SchedulerStats>;
1439
1441
  /**
1440
1442
  * Whether this instance has an inline MTP head or external DFlash2
1441
1443
  * companion. Snapshotted at load time so `ChatSession` can auto-default
@@ -1491,6 +1493,8 @@ export declare class Qwen35Model {
1491
1493
  * Dispatches to model thread.
1492
1494
  */
1493
1495
  saveModel(savePath: string): Promise<undefined>;
1496
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
1497
+ schedulerStats(): Promise<SchedulerStats>;
1494
1498
  /**
1495
1499
  * Reset all caches and clear cached token history. Async so a reset
1496
1500
  * queued behind an in-flight turn parks a tokio future, never the
@@ -1598,8 +1602,6 @@ export declare class Qwen35MoeModel {
1598
1602
  * decode lane.
1599
1603
  */
1600
1604
  maxConcurrentSequences(): number;
1601
- /** Snapshot scheduler occupancy plus unified block/recurrent admission. */
1602
- schedulerStats(): Promise<SchedulerStats>;
1603
1605
  /**
1604
1606
  * Whether this checkpoint shipped an MTP head (module loaded by
1605
1607
  * `persistence::apply_weights_moe_inner`). Snapshotted at load time from
@@ -1644,6 +1646,8 @@ export declare class Qwen35MoeModel {
1644
1646
  * Dispatches to model thread.
1645
1647
  */
1646
1648
  saveModel(savePath: string): Promise<undefined>;
1649
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
1650
+ schedulerStats(): Promise<SchedulerStats>;
1647
1651
  /**
1648
1652
  * Reset all caches and clear cached token history. Async so a reset
1649
1653
  * queued behind an in-flight turn parks a tokio future, never the
@@ -1782,11 +1786,6 @@ export declare class Qwen3Model {
1782
1786
  * report one so the server retains its exclusive dispatch lane.
1783
1787
  */
1784
1788
  maxConcurrentSequences(): number;
1785
- /**
1786
- * Snapshot continuous-batching scheduler counters after all commands
1787
- * already ahead of this query have drained.
1788
- */
1789
- schedulerStats(): Promise<SchedulerStats>;
1790
1789
  /** Get model configuration */
1791
1790
  getConfig(): Qwen3Config;
1792
1791
  /**
@@ -1879,7 +1878,10 @@ export declare class Qwen3Model {
1879
1878
  addGenerationPrompt?: boolean | undefined | null,
1880
1879
  tools?: Array<ToolDefinition> | undefined | null,
1881
1880
  enableThinking?: boolean | undefined | null,
1881
+ reasoningEffort?: string | undefined | null,
1882
1882
  ): Promise<Uint32Array>;
1883
+ /** Snapshot scheduler occupancy and paged-pool admission telemetry. */
1884
+ schedulerStats(): Promise<SchedulerStats>;
1883
1885
  /**
1884
1886
  * Reset all caches and clear cached token history. Async so a reset
1885
1887
  * queued behind an in-flight turn parks a tokio future, never the
@@ -2119,6 +2121,7 @@ export declare class Qwen3Tokenizer {
2119
2121
  enableThinking?: boolean | undefined | null,
2120
2122
  contentOrder?: MultimodalContentOrder | undefined | null,
2121
2123
  existingImagePlaceholder?: string | undefined | null,
2124
+ reasoningEffort?: string | undefined | null,
2122
2125
  ): Promise<Uint32Array>;
2123
2126
  /** Get vocabulary size */
2124
2127
  vocabSize(): number;
@@ -2686,9 +2689,10 @@ export interface ChatConfig {
2686
2689
  tools?: Array<ToolDefinition>;
2687
2690
  /**
2688
2691
  * Reasoning effort level. Controls whether the model thinks before answering.
2689
- * - "none" / "low": thinking disabled (template injects closed think block).
2692
+ * - "none": thinking disabled (template injects closed think block).
2690
2693
  * "none" also sets includeReasoning to false by default.
2691
- * - "medium" / "high": thinking enabled (default behavior).
2694
+ * - "minimal" / "low" / "medium" / "high" / "xhigh" / "max": thinking enabled.
2695
+ * The checkpoint template receives the effort independently from the token cap.
2692
2696
  * - Not set: thinking enabled (model thinks naturally).
2693
2697
  */
2694
2698
  reasoningEffort?: string | undefined;
@@ -3262,7 +3266,7 @@ export declare function createQianfanOcrConfig(): QianfanOcrConfig;
3262
3266
  * Create a random-init Qwen3.5 model and save it to disk.
3263
3267
  *
3264
3268
  * Spawns a dedicated `ModelThread<Qwen35Cmd>` whose init builds a fresh
3265
- * random-weight `Qwen35Inner` directly, then dispatches `Qwen35Cmd::SaveModel`
3269
+ * random-weight `Qwen35Inner` directly, then dispatches `Qwen35FamilyCommand::SaveModel`
3266
3270
  * on that thread. The thread is dropped at the end of the promise, so the
3267
3271
  * in-memory model is released once the checkpoint has been written. Used by
3268
3272
  * TypeScript test fixtures that need an on-disk checkpoint without keeping a
@@ -3286,7 +3290,7 @@ export declare function createRandomQwen35MoeCheckpoint(config: Qwen35MoeConfig,
3286
3290
  * Create a random-init Qwen3 model and save it to disk.
3287
3291
  *
3288
3292
  * Spawns a dedicated `ModelThread<Qwen3Cmd>` whose init builds a fresh
3289
- * random-weight `Qwen3Inner` directly, then dispatches `Qwen3Cmd::SaveModel`
3293
+ * random-weight `Qwen3Inner` directly, then dispatches `Qwen3FamilyCommand::SaveModel`
3290
3294
  * on that thread. The thread is dropped at the end of the promise, so the
3291
3295
  * in-memory model is released once the checkpoint has been written. Used by
3292
3296
  * TypeScript test fixtures that need an on-disk checkpoint without keeping a
@@ -4588,6 +4592,13 @@ export interface PhaseProfile {
4588
4592
  */
4589
4593
  export declare function preflightMuseDflashGguf(inputPath: string, targetConfigDir: string): void;
4590
4594
 
4595
+ /**
4596
+ * Prepare a Muse-Glimmer GGUF target and its optional DFlash companion in the
4597
+ * native cache without loading the model. Hosts can apply per-session config
4598
+ * overrides to this directory without modifying sources or repacking weights.
4599
+ */
4600
+ export declare function prepareMuseGlimmerGguf(modelPath: string): Promise<string>;
4601
+
4591
4602
  /**
4592
4603
  * Per-call Viterbi calibration overrides.
4593
4604
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlx-node/core",
3
- "version": "0.0.12",
3
+ "version": "0.0.15",
4
4
  "description": "Internal native bindings - import from @mlx-node/lm or @mlx-node/trl instead",
5
5
  "homepage": "https://github.com/mlx-node/mlx-node",
6
6
  "bugs": {
@@ -37,7 +37,7 @@
37
37
  "vite-plus": "0.3.0"
38
38
  },
39
39
  "optionalDependencies": {
40
- "@mlx-node/core-darwin-arm64": "0.0.12"
40
+ "@mlx-node/core-darwin-arm64": "0.0.15"
41
41
  },
42
42
  "napi": {
43
43
  "binaryName": "mlx-core",