blazen 0.1.120 → 0.1.121

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.d.ts +59 -244
  2. package/index.js +53 -55
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -52,13 +52,13 @@ export type JsChatMessage = ChatMessage
52
52
  */
53
53
  export declare class CompletionModel {
54
54
  /** Create an `OpenAI` completion model. */
55
- static openai(apiKey: string, model?: string | undefined | null): CompletionModel
55
+ static openai(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
56
56
  /** Create an Anthropic completion model. */
57
- static anthropic(apiKey: string, model?: string | undefined | null): CompletionModel
57
+ static anthropic(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
58
58
  /** Create a Google Gemini completion model. */
59
- static gemini(apiKey: string, model?: string | undefined | null): CompletionModel
59
+ static gemini(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
60
60
  /** Create an Azure `OpenAI` completion model. */
61
- static azure(apiKey: string, resourceName: string, deploymentName: string): CompletionModel
61
+ static azure(apiKey: string, options: JsAzureOptions): CompletionModel
62
62
  /**
63
63
  * Create a fal.ai completion model.
64
64
  *
@@ -68,25 +68,25 @@ export declare class CompletionModel {
68
68
  */
69
69
  static fal(apiKey: string, options?: JsFalOptions | undefined | null): CompletionModel
70
70
  /** Create an `OpenRouter` completion model. */
71
- static openrouter(apiKey: string, model?: string | undefined | null): CompletionModel
71
+ static openrouter(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
72
72
  /** Create a Groq completion model. */
73
- static groq(apiKey: string, model?: string | undefined | null): CompletionModel
73
+ static groq(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
74
74
  /** Create a Together AI completion model. */
75
- static together(apiKey: string, model?: string | undefined | null): CompletionModel
75
+ static together(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
76
76
  /** Create a Mistral AI completion model. */
77
- static mistral(apiKey: string, model?: string | undefined | null): CompletionModel
77
+ static mistral(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
78
78
  /** Create a `DeepSeek` completion model. */
79
- static deepseek(apiKey: string, model?: string | undefined | null): CompletionModel
79
+ static deepseek(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
80
80
  /** Create a Fireworks AI completion model. */
81
- static fireworks(apiKey: string, model?: string | undefined | null): CompletionModel
81
+ static fireworks(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
82
82
  /** Create a Perplexity completion model. */
83
- static perplexity(apiKey: string, model?: string | undefined | null): CompletionModel
83
+ static perplexity(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
84
84
  /** Create an xAI (Grok) completion model. */
85
- static xai(apiKey: string, model?: string | undefined | null): CompletionModel
85
+ static xai(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
86
86
  /** Create a Cohere completion model. */
87
- static cohere(apiKey: string, model?: string | undefined | null): CompletionModel
87
+ static cohere(apiKey: string, options?: JsProviderOptions | undefined | null): CompletionModel
88
88
  /** Create an AWS Bedrock completion model. */
89
- static bedrock(apiKey: string, region: string, model?: string | undefined | null): CompletionModel
89
+ static bedrock(apiKey: string, options: JsBedrockOptions): CompletionModel
90
90
  /** Get the model ID. */
91
91
  get modelId(): string
92
92
  /**
@@ -783,29 +783,6 @@ export declare function countMessageTokens(messages: Array<ChatMessage>, context
783
783
  */
784
784
  export declare function estimateTokens(text: string, contextSize?: number | undefined | null): number
785
785
 
786
- /**
787
- * The fal.ai LLM endpoint family.
788
- *
789
- * Selects which fal LLM URL/body schema to use. Defaults to `OpenAiChat`
790
- * (the OpenAI-compatible chat-completions surface on fal).
791
- */
792
- export declare const enum FalLlmEndpoint {
793
- /** OpenAI-compatible chat-completions endpoint (default). */
794
- OpenAiChat = 'openai_chat',
795
- /** OpenAI-compatible Responses endpoint. */
796
- OpenAiResponses = 'openai_responses',
797
- /** OpenAI-compatible embeddings endpoint. */
798
- OpenAiEmbeddings = 'openai_embeddings',
799
- /** `OpenRouter` proxy via fal. */
800
- OpenRouter = 'openrouter',
801
- /** `OpenRouter` proxy via fal (enterprise/SOC2 tier). */
802
- OpenRouterEnterprise = 'openrouter_enterprise',
803
- /** fal-ai/any-llm proxy. */
804
- AnyLlm = 'any_llm',
805
- /** fal-ai/any-llm proxy (enterprise/SOC2 tier). */
806
- AnyLlmEnterprise = 'any_llm_enterprise'
807
- }
808
-
809
786
  /** An entry to add to the memory store (used by `addMany`). */
810
787
  export interface JsAddEntry {
811
788
  /** Unique identifier. If empty, one will be generated. */
@@ -900,18 +877,33 @@ export interface JsAudioContent {
900
877
  durationSeconds?: number
901
878
  }
902
879
 
903
- /** Result of an audio generation or TTS operation. */
904
880
  export interface JsAudioResult {
905
- /** The generated audio clips. */
906
881
  audio: Array<JsGeneratedAudio>
907
- /** Request timing breakdown. */
908
- timing?: JsComputeTiming
909
- /** Cost in USD, if reported by the provider. */
882
+ timing: JsRequestTiming
910
883
  cost?: number
911
- /** Arbitrary provider-specific metadata. */
912
884
  metadata: any
913
885
  }
914
886
 
887
+ export interface JsAzureOptions {
888
+ model?: string
889
+ baseUrl?: string
890
+ resourceName: string
891
+ deploymentName: string
892
+ apiVersion?: string
893
+ }
894
+
895
+ export interface JsBackgroundRemovalRequest {
896
+ imageUrl: string
897
+ model?: string
898
+ parameters?: any
899
+ }
900
+
901
+ export interface JsBedrockOptions {
902
+ model?: string
903
+ baseUrl?: string
904
+ region: string
905
+ }
906
+
915
907
  /** Configuration for the `withCache` decorator. */
916
908
  export interface JsCacheConfig {
917
909
  /** How long a cached response remains valid, in seconds. */
@@ -972,40 +964,20 @@ export interface JsCompletionResponse {
972
964
  metadata: any
973
965
  }
974
966
 
975
- /** Input for a generic compute job. */
976
967
  export interface JsComputeRequest {
977
- /** The model/endpoint to run (e.g., "fal-ai/flux/dev"). */
978
968
  model: string
979
- /** Input parameters as JSON (model-specific). */
980
969
  input: any
981
- /** Optional webhook URL for async completion notification. */
982
970
  webhook?: string
983
971
  }
984
972
 
985
- /** Result of a completed compute job. */
986
973
  export interface JsComputeResult {
987
- /** The job handle that produced this result, if available. */
988
974
  job?: JsJobHandle
989
- /** Output data (model-specific JSON). */
990
975
  output: any
991
- /** Request timing breakdown. */
992
- timing?: JsComputeTiming
993
- /** Cost in USD, if reported by the provider. */
976
+ timing: JsRequestTiming
994
977
  cost?: number
995
- /** Raw provider-specific metadata. */
996
978
  metadata: any
997
979
  }
998
980
 
999
- /** Timing breakdown for a compute request. */
1000
- export interface JsComputeTiming {
1001
- /** Time spent waiting in queue, in milliseconds. */
1002
- queueMs?: number
1003
- /** Time spent executing, in milliseconds. */
1004
- executionMs?: number
1005
- /** Total wall-clock time, in milliseconds. */
1006
- totalMs?: number
1007
- }
1008
-
1009
981
  /**
1010
982
  * A single part in a multi-part message.
1011
983
  *
@@ -1036,29 +1008,19 @@ export interface JsEmbeddingResponse {
1036
1008
  metadata: any
1037
1009
  }
1038
1010
 
1039
- /**
1040
- * Configuration options for [`JsFalProvider`].
1041
- *
1042
- * ```typescript
1043
- * const fal = FalProvider.create("fal-key-...", {
1044
- * model: "anthropic/claude-sonnet-4.5",
1045
- * endpoint: "openai_chat",
1046
- * enterprise: false,
1047
- * autoRouteModality: true,
1048
- * });
1049
- * ```
1050
- */
1011
+ export declare const enum JsFalLlmEndpointKind {
1012
+ OpenAiChat = 'open_ai_chat',
1013
+ OpenAiResponses = 'open_ai_responses',
1014
+ OpenAiEmbeddings = 'open_ai_embeddings',
1015
+ OpenRouter = 'open_router',
1016
+ AnyLlm = 'any_llm'
1017
+ }
1018
+
1051
1019
  export interface JsFalOptions {
1052
- /** Underlying LLM model name (e.g. `"anthropic/claude-sonnet-4.5"`). */
1053
1020
  model?: string
1054
- /** The fal endpoint family to target. Defaults to `OpenAiChat`. */
1055
- endpoint?: FalLlmEndpoint
1056
- /** Promote the endpoint to its enterprise / SOC2-eligible variant. */
1021
+ baseUrl?: string
1022
+ endpoint?: JsFalLlmEndpointKind
1057
1023
  enterprise?: boolean
1058
- /**
1059
- * Auto-route the request to the matching vision/audio/video variant
1060
- * when the message content contains media. Defaults to `true`.
1061
- */
1062
1024
  autoRouteModality?: boolean
1063
1025
  }
1064
1026
 
@@ -1086,53 +1048,32 @@ export interface JsFinishReason {
1086
1048
  value: string
1087
1049
  }
1088
1050
 
1089
- /** A single generated 3D model with optional mesh metadata. */
1090
1051
  export interface JsGenerated3DModel {
1091
- /** The 3D model media output. */
1092
1052
  media: JsMediaOutput
1093
- /** Total vertex count, if known. */
1094
1053
  vertexCount?: number
1095
- /** Total face/triangle count, if known. */
1096
1054
  faceCount?: number
1097
- /** Whether the model includes texture data. */
1098
1055
  hasTextures: boolean
1099
- /** Whether the model includes animation data. */
1100
1056
  hasAnimations: boolean
1101
1057
  }
1102
1058
 
1103
- /** A single generated audio clip with optional metadata. */
1104
1059
  export interface JsGeneratedAudio {
1105
- /** The audio media output. */
1106
1060
  media: JsMediaOutput
1107
- /** Duration in seconds, if known. */
1108
1061
  durationSeconds?: number
1109
- /** Sample rate in Hz, if known. */
1110
1062
  sampleRate?: number
1111
- /** Number of audio channels, if known. */
1112
1063
  channels?: number
1113
1064
  }
1114
1065
 
1115
- /** A single generated image with optional dimension metadata. */
1116
1066
  export interface JsGeneratedImage {
1117
- /** The image media output. */
1118
1067
  media: JsMediaOutput
1119
- /** Image width in pixels, if known. */
1120
1068
  width?: number
1121
- /** Image height in pixels, if known. */
1122
1069
  height?: number
1123
1070
  }
1124
1071
 
1125
- /** A single generated video with optional metadata. */
1126
1072
  export interface JsGeneratedVideo {
1127
- /** The video media output. */
1128
1073
  media: JsMediaOutput
1129
- /** Video width in pixels, if known. */
1130
1074
  width?: number
1131
- /** Video height in pixels, if known. */
1132
1075
  height?: number
1133
- /** Duration in seconds, if known. */
1134
1076
  durationSeconds?: number
1135
- /** Frames per second, if known. */
1136
1077
  fps?: number
1137
1078
  }
1138
1079
 
@@ -1142,33 +1083,20 @@ export interface JsImageContent {
1142
1083
  mediaType?: string
1143
1084
  }
1144
1085
 
1145
- /** Request to generate images from a text prompt. */
1146
1086
  export interface JsImageRequest {
1147
- /** The text prompt describing the desired image. */
1148
1087
  prompt: string
1149
- /** Negative prompt (things to avoid in the image). */
1150
1088
  negativePrompt?: string
1151
- /** Desired image width in pixels. */
1152
1089
  width?: number
1153
- /** Desired image height in pixels. */
1154
1090
  height?: number
1155
- /** Number of images to generate. */
1156
1091
  numImages?: number
1157
- /** Model override (provider-specific model identifier). */
1158
1092
  model?: string
1159
- /** Additional provider-specific parameters. */
1160
1093
  parameters?: any
1161
1094
  }
1162
1095
 
1163
- /** Result of an image generation or upscale operation. */
1164
1096
  export interface JsImageResult {
1165
- /** The generated or upscaled images. */
1166
1097
  images: Array<JsGeneratedImage>
1167
- /** Request timing breakdown. */
1168
- timing?: JsComputeTiming
1169
- /** Cost in USD, if reported by the provider. */
1098
+ timing: JsRequestTiming
1170
1099
  cost?: number
1171
- /** Arbitrary provider-specific metadata. */
1172
1100
  metadata: any
1173
1101
  }
1174
1102
 
@@ -1179,15 +1107,10 @@ export interface JsImageSource {
1179
1107
  data?: string
1180
1108
  }
1181
1109
 
1182
- /** A handle to a submitted compute job. */
1183
1110
  export interface JsJobHandle {
1184
- /** Provider-assigned job/request identifier. */
1185
1111
  id: string
1186
- /** Provider name (e.g., "fal", "replicate", "runpod"). */
1187
1112
  provider: string
1188
- /** The model/endpoint that was invoked. */
1189
1113
  model: string
1190
- /** When the job was submitted (ISO 8601). */
1191
1114
  submittedAt: string
1192
1115
  }
1193
1116
 
@@ -1205,54 +1128,15 @@ export declare const enum JsJobStatus {
1205
1128
  Cancelled = 'cancelled'
1206
1129
  }
1207
1130
 
1208
- /** A single piece of generated media content. */
1209
1131
  export interface JsMediaOutput {
1210
- /** URL where the media can be downloaded. */
1211
1132
  url?: string
1212
- /** Base64-encoded media data. */
1213
1133
  base64?: string
1214
- /** Raw text content for text-based formats (SVG, OBJ, GLTF JSON). */
1215
1134
  rawContent?: string
1216
- /** The MIME type of the media (e.g. "image/png", "video/mp4"). */
1217
1135
  mediaType: string
1218
- /** File size in bytes, if known. */
1219
1136
  fileSize?: number
1220
- /** Arbitrary provider-specific metadata. */
1221
1137
  metadata: any
1222
1138
  }
1223
1139
 
1224
- /** Map of friendly format names to their MIME type strings. */
1225
- export interface JsMediaTypeMap {
1226
- png: string
1227
- jpeg: string
1228
- webp: string
1229
- gif: string
1230
- svg: string
1231
- bmp: string
1232
- tiff: string
1233
- avif: string
1234
- ico: string
1235
- mp4: string
1236
- webm: string
1237
- mov: string
1238
- avi: string
1239
- mkv: string
1240
- mp3: string
1241
- wav: string
1242
- ogg: string
1243
- flac: string
1244
- aac: string
1245
- m4A: string
1246
- glb: string
1247
- gltf: string
1248
- obj: string
1249
- fbx: string
1250
- usdz: string
1251
- stl: string
1252
- ply: string
1253
- pdf: string
1254
- }
1255
-
1256
1140
  /** A stored entry retrieved from the memory store. */
1257
1141
  export interface JsMemoryEntry {
1258
1142
  /** The entry id. */
@@ -1275,18 +1159,18 @@ export interface JsMemoryResult {
1275
1159
  metadata: any
1276
1160
  }
1277
1161
 
1278
- /** Request to generate music or sound effects. */
1279
1162
  export interface JsMusicRequest {
1280
- /** Text prompt describing the desired audio. */
1281
1163
  prompt: string
1282
- /** Desired duration in seconds. */
1283
1164
  durationSeconds?: number
1284
- /** Model override. */
1285
1165
  model?: string
1286
- /** Additional provider-specific parameters. */
1287
1166
  parameters?: any
1288
1167
  }
1289
1168
 
1169
+ export interface JsProviderOptions {
1170
+ model?: string
1171
+ baseUrl?: string
1172
+ }
1173
+
1290
1174
  /**
1291
1175
  * Chain-of-thought / extended-thinking trace from a model that exposes one.
1292
1176
  *
@@ -1307,7 +1191,6 @@ export interface JsReasoningTrace {
1307
1191
  effort?: string
1308
1192
  }
1309
1193
 
1310
- /** Timing metadata for a completion request. */
1311
1194
  export interface JsRequestTiming {
1312
1195
  queueMs?: number
1313
1196
  executionMs?: number
@@ -1350,21 +1233,13 @@ export declare const enum JsRole {
1350
1233
  Tool = 'tool'
1351
1234
  }
1352
1235
 
1353
- /** Request to generate speech from text (TTS). */
1354
1236
  export interface JsSpeechRequest {
1355
- /** The text to synthesize into speech. */
1356
1237
  text: string
1357
- /** Voice identifier (provider-specific). */
1358
1238
  voice?: string
1359
- /** URL to a reference voice sample for voice cloning. */
1360
1239
  voiceUrl?: string
1361
- /** Language code (e.g. "en", "fr", "ja"). */
1362
1240
  language?: string
1363
- /** Speech speed multiplier (1.0 = normal). */
1364
1241
  speed?: number
1365
- /** Model override. */
1366
1242
  model?: string
1367
- /** Additional provider-specific parameters. */
1368
1243
  parameters?: any
1369
1244
  }
1370
1245
 
@@ -1404,40 +1279,31 @@ export interface JsStreamChunk {
1404
1279
  artifacts: Array<JsArtifact>
1405
1280
  }
1406
1281
 
1407
- /** Request to generate a 3D model. */
1408
1282
  export interface JsThreeDRequest {
1409
- /** Text prompt describing the desired 3D model. */
1410
1283
  prompt?: string
1411
- /** Source image URL for image-to-3D generation. */
1412
1284
  imageUrl?: string
1413
- /** Desired output format (e.g. "glb", "obj", "usdz"). */
1414
1285
  format?: string
1415
- /** Model override. */
1416
1286
  model?: string
1417
- /** Additional provider-specific parameters. */
1418
1287
  parameters?: any
1419
1288
  }
1420
1289
 
1421
- /** Result of a 3D model generation operation. */
1422
1290
  export interface JsThreeDResult {
1423
- /** The generated 3D models. */
1424
1291
  models: Array<JsGenerated3DModel>
1425
- /** Request timing breakdown. */
1426
- timing?: JsComputeTiming
1427
- /** Cost in USD, if reported by the provider. */
1292
+ timing: JsRequestTiming
1428
1293
  cost?: number
1429
- /** Arbitrary provider-specific metadata. */
1430
1294
  metadata: any
1431
1295
  }
1432
1296
 
1433
- /** Token usage statistics for a completion request. */
1434
1297
  export interface JsTokenUsage {
1435
1298
  promptTokens: number
1436
1299
  completionTokens: number
1437
1300
  totalTokens: number
1301
+ reasoningTokens?: number
1302
+ cachedInputTokens?: number
1303
+ audioInputTokens?: number
1304
+ audioOutputTokens?: number
1438
1305
  }
1439
1306
 
1440
- /** A tool invocation requested by the model. */
1441
1307
  export interface JsToolCall {
1442
1308
  id: string
1443
1309
  name: string
@@ -1454,64 +1320,40 @@ export interface JsToolDef {
1454
1320
  parameters: any
1455
1321
  }
1456
1322
 
1457
- /** Describes a tool that the model may invoke during a conversation. */
1458
1323
  export interface JsToolDefinition {
1459
1324
  name: string
1460
1325
  description: string
1461
1326
  parameters: any
1462
1327
  }
1463
1328
 
1464
- /** Request to transcribe audio to text. */
1465
1329
  export interface JsTranscriptionRequest {
1466
- /** URL of the audio file to transcribe. */
1467
1330
  audioUrl: string
1468
- /** Language hint (e.g. "en", "fr"). */
1469
1331
  language?: string
1470
- /** Whether to perform speaker diarization. */
1471
1332
  diarize?: boolean
1472
- /** Model override. */
1473
1333
  model?: string
1474
- /** Additional provider-specific parameters. */
1475
1334
  parameters?: any
1476
1335
  }
1477
1336
 
1478
- /** Result of a transcription operation. */
1479
1337
  export interface JsTranscriptionResult {
1480
- /** The full transcribed text. */
1481
1338
  text: string
1482
- /** Time-aligned segments, if available. */
1483
1339
  segments: Array<JsTranscriptionSegment>
1484
- /** Detected or specified language code (e.g. "en", "fr"). */
1485
1340
  language?: string
1486
- /** Request timing breakdown. */
1487
- timing?: JsComputeTiming
1488
- /** Cost in USD, if reported by the provider. */
1341
+ timing: JsRequestTiming
1489
1342
  cost?: number
1490
- /** Arbitrary provider-specific metadata. */
1491
1343
  metadata: any
1492
1344
  }
1493
1345
 
1494
- /** A single segment within a transcription. */
1495
1346
  export interface JsTranscriptionSegment {
1496
- /** The transcribed text for this segment. */
1497
1347
  text: string
1498
- /** Start time in seconds. */
1499
1348
  start: number
1500
- /** End time in seconds. */
1501
1349
  end: number
1502
- /** Speaker label, if diarization was enabled. */
1503
1350
  speaker?: string
1504
1351
  }
1505
1352
 
1506
- /** Request to upscale an image. */
1507
1353
  export interface JsUpscaleRequest {
1508
- /** URL of the image to upscale. */
1509
1354
  imageUrl: string
1510
- /** Scale factor (e.g., 2.0 for 2x, 4.0 for 4x). */
1511
1355
  scale: number
1512
- /** Model override. */
1513
1356
  model?: string
1514
- /** Additional provider-specific parameters. */
1515
1357
  parameters?: any
1516
1358
  }
1517
1359
 
@@ -1522,35 +1364,21 @@ export interface JsVideoContent {
1522
1364
  durationSeconds?: number
1523
1365
  }
1524
1366
 
1525
- /** Request to generate a video. */
1526
1367
  export interface JsVideoRequest {
1527
- /** Text prompt describing the desired video. */
1528
1368
  prompt: string
1529
- /** Source image URL for image-to-video generation. */
1530
1369
  imageUrl?: string
1531
- /** Desired duration in seconds. */
1532
1370
  durationSeconds?: number
1533
- /** Negative prompt (things to avoid). */
1534
1371
  negativePrompt?: string
1535
- /** Desired video width in pixels. */
1536
1372
  width?: number
1537
- /** Desired video height in pixels. */
1538
1373
  height?: number
1539
- /** Model override. */
1540
1374
  model?: string
1541
- /** Additional provider-specific parameters. */
1542
1375
  parameters?: any
1543
1376
  }
1544
1377
 
1545
- /** Result of a video generation operation. */
1546
1378
  export interface JsVideoResult {
1547
- /** The generated videos. */
1548
1379
  videos: Array<JsGeneratedVideo>
1549
- /** Request timing breakdown. */
1550
- timing?: JsComputeTiming
1551
- /** Cost in USD, if reported by the provider. */
1380
+ timing: JsRequestTiming
1552
1381
  cost?: number
1553
- /** Arbitrary provider-specific metadata. */
1554
1382
  metadata: any
1555
1383
  }
1556
1384
 
@@ -1562,19 +1390,6 @@ export interface JsWorkflowResult {
1562
1390
  data: any
1563
1391
  }
1564
1392
 
1565
- /**
1566
- * Returns an object mapping friendly names to MIME type strings.
1567
- *
1568
- * ```typescript
1569
- * import { mediaTypes } from 'blazen';
1570
- *
1571
- * const types = mediaTypes();
1572
- * console.log(types.png); // "image/png"
1573
- * console.log(types.mp4); // "video/mp4"
1574
- * ```
1575
- */
1576
- export declare function mediaTypes(): JsMediaTypeMap
1577
-
1578
1393
  /**
1579
1394
  * Run an agentic tool execution loop.
1580
1395
  *
package/index.js CHANGED
@@ -77,8 +77,8 @@ function requireNative() {
77
77
  try {
78
78
  const binding = require('blazen-android-arm64')
79
79
  const bindingPackageVersion = require('blazen-android-arm64/package.json').version
80
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
80
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-android-arm-eabi')
95
95
  const bindingPackageVersion = require('blazen-android-arm-eabi/package.json').version
96
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
96
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-win32-x64-gnu')
116
116
  const bindingPackageVersion = require('blazen-win32-x64-gnu/package.json').version
117
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
117
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-win32-x64-msvc')
132
132
  const bindingPackageVersion = require('blazen-win32-x64-msvc/package.json').version
133
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
133
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-win32-ia32-msvc')
149
149
  const bindingPackageVersion = require('blazen-win32-ia32-msvc/package.json').version
150
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
150
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-win32-arm64-msvc')
165
165
  const bindingPackageVersion = require('blazen-win32-arm64-msvc/package.json').version
166
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
166
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-darwin-universal')
184
184
  const bindingPackageVersion = require('blazen-darwin-universal/package.json').version
185
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
185
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-darwin-x64')
200
200
  const bindingPackageVersion = require('blazen-darwin-x64/package.json').version
201
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
201
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-darwin-arm64')
216
216
  const bindingPackageVersion = require('blazen-darwin-arm64/package.json').version
217
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
217
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-freebsd-x64')
236
236
  const bindingPackageVersion = require('blazen-freebsd-x64/package.json').version
237
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
237
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-freebsd-arm64')
252
252
  const bindingPackageVersion = require('blazen-freebsd-arm64/package.json').version
253
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
253
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-x64-musl')
273
273
  const bindingPackageVersion = require('blazen-linux-x64-musl/package.json').version
274
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
274
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-x64-gnu')
289
289
  const bindingPackageVersion = require('blazen-linux-x64-gnu/package.json').version
290
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
290
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-arm64-musl')
307
307
  const bindingPackageVersion = require('blazen-linux-arm64-musl/package.json').version
308
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
308
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-arm64-gnu')
323
323
  const bindingPackageVersion = require('blazen-linux-arm64-gnu/package.json').version
324
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
324
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-arm-musleabihf')
341
341
  const bindingPackageVersion = require('blazen-linux-arm-musleabihf/package.json').version
342
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
342
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-arm-gnueabihf')
357
357
  const bindingPackageVersion = require('blazen-linux-arm-gnueabihf/package.json').version
358
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
358
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-loong64-musl')
375
375
  const bindingPackageVersion = require('blazen-linux-loong64-musl/package.json').version
376
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
376
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-loong64-gnu')
391
391
  const bindingPackageVersion = require('blazen-linux-loong64-gnu/package.json').version
392
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
392
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-riscv64-musl')
409
409
  const bindingPackageVersion = require('blazen-linux-riscv64-musl/package.json').version
410
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
410
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-riscv64-gnu')
425
425
  const bindingPackageVersion = require('blazen-linux-riscv64-gnu/package.json').version
426
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
426
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-ppc64-gnu')
442
442
  const bindingPackageVersion = require('blazen-linux-ppc64-gnu/package.json').version
443
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
443
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-linux-s390x-gnu')
458
458
  const bindingPackageVersion = require('blazen-linux-s390x-gnu/package.json').version
459
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
459
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-openharmony-arm64')
478
478
  const bindingPackageVersion = require('blazen-openharmony-arm64/package.json').version
479
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
479
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-openharmony-x64')
494
494
  const bindingPackageVersion = require('blazen-openharmony-x64/package.json').version
495
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
495
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 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('blazen-openharmony-arm')
510
510
  const bindingPackageVersion = require('blazen-openharmony-arm/package.json').version
511
- if (bindingPackageVersion !== '0.1.120' && 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.1.120 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
511
+ if (bindingPackageVersion !== '0.1.121' && 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.1.121 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
513
513
  }
514
514
  return binding
515
515
  } catch (e) {
@@ -606,10 +606,8 @@ module.exports.WorkflowHandler = nativeBinding.WorkflowHandler
606
606
  module.exports.JsWorkflowHandler = nativeBinding.JsWorkflowHandler
607
607
  module.exports.countMessageTokens = nativeBinding.countMessageTokens
608
608
  module.exports.estimateTokens = nativeBinding.estimateTokens
609
- module.exports.FalLlmEndpoint = nativeBinding.FalLlmEndpoint
610
- module.exports.JsFalLlmEndpoint = nativeBinding.JsFalLlmEndpoint
609
+ module.exports.JsFalLlmEndpointKind = nativeBinding.JsFalLlmEndpointKind
611
610
  module.exports.JsJobStatus = nativeBinding.JsJobStatus
612
611
  module.exports.JsRole = nativeBinding.JsRole
613
- module.exports.mediaTypes = nativeBinding.mediaTypes
614
612
  module.exports.runAgent = nativeBinding.runAgent
615
613
  module.exports.version = nativeBinding.version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blazen",
3
- "version": "0.1.120",
3
+ "version": "0.1.121",
4
4
  "description": "Blazen - Event-driven AI workflow framework for Node.js/TypeScript",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",