@dbx-tools/model-rs 0.6.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js ADDED
@@ -0,0 +1,548 @@
1
+ // src/_bindings-ffi.ts
2
+ import lib from "@ubjs/node";
3
+ var { UniffiNativeModule, FfiType, resolveLibPath } = lib;
4
+ var DEFINITIONS = {
5
+ symbols: {
6
+ rustbuffer_alloc: "ffi_dbx_tools_model_rustbuffer_alloc",
7
+ rustbuffer_free: "ffi_dbx_tools_model_rustbuffer_free",
8
+ rustbuffer_from_bytes: "ffi_dbx_tools_model_rustbuffer_from_bytes"
9
+ },
10
+ functions: {
11
+ ffi_dbx_tools_model_rust_future_poll_u8: {
12
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
13
+ ret: FfiType.Void,
14
+ hasRustCallStatus: false
15
+ },
16
+ ffi_dbx_tools_model_rust_future_cancel_u8: {
17
+ args: [FfiType.Handle],
18
+ ret: FfiType.Void,
19
+ hasRustCallStatus: false
20
+ },
21
+ ffi_dbx_tools_model_rust_future_complete_u8: {
22
+ args: [FfiType.Handle],
23
+ ret: FfiType.UInt8,
24
+ hasRustCallStatus: true
25
+ },
26
+ ffi_dbx_tools_model_rust_future_free_u8: {
27
+ args: [FfiType.Handle],
28
+ ret: FfiType.Void,
29
+ hasRustCallStatus: false
30
+ },
31
+ ffi_dbx_tools_model_rust_future_poll_i8: {
32
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
33
+ ret: FfiType.Void,
34
+ hasRustCallStatus: false
35
+ },
36
+ ffi_dbx_tools_model_rust_future_cancel_i8: {
37
+ args: [FfiType.Handle],
38
+ ret: FfiType.Void,
39
+ hasRustCallStatus: false
40
+ },
41
+ ffi_dbx_tools_model_rust_future_complete_i8: {
42
+ args: [FfiType.Handle],
43
+ ret: FfiType.Int8,
44
+ hasRustCallStatus: true
45
+ },
46
+ ffi_dbx_tools_model_rust_future_free_i8: {
47
+ args: [FfiType.Handle],
48
+ ret: FfiType.Void,
49
+ hasRustCallStatus: false
50
+ },
51
+ ffi_dbx_tools_model_rust_future_poll_u16: {
52
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
53
+ ret: FfiType.Void,
54
+ hasRustCallStatus: false
55
+ },
56
+ ffi_dbx_tools_model_rust_future_cancel_u16: {
57
+ args: [FfiType.Handle],
58
+ ret: FfiType.Void,
59
+ hasRustCallStatus: false
60
+ },
61
+ ffi_dbx_tools_model_rust_future_complete_u16: {
62
+ args: [FfiType.Handle],
63
+ ret: FfiType.UInt16,
64
+ hasRustCallStatus: true
65
+ },
66
+ ffi_dbx_tools_model_rust_future_free_u16: {
67
+ args: [FfiType.Handle],
68
+ ret: FfiType.Void,
69
+ hasRustCallStatus: false
70
+ },
71
+ ffi_dbx_tools_model_rust_future_poll_i16: {
72
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
73
+ ret: FfiType.Void,
74
+ hasRustCallStatus: false
75
+ },
76
+ ffi_dbx_tools_model_rust_future_cancel_i16: {
77
+ args: [FfiType.Handle],
78
+ ret: FfiType.Void,
79
+ hasRustCallStatus: false
80
+ },
81
+ ffi_dbx_tools_model_rust_future_complete_i16: {
82
+ args: [FfiType.Handle],
83
+ ret: FfiType.Int16,
84
+ hasRustCallStatus: true
85
+ },
86
+ ffi_dbx_tools_model_rust_future_free_i16: {
87
+ args: [FfiType.Handle],
88
+ ret: FfiType.Void,
89
+ hasRustCallStatus: false
90
+ },
91
+ ffi_dbx_tools_model_rust_future_poll_u32: {
92
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
93
+ ret: FfiType.Void,
94
+ hasRustCallStatus: false
95
+ },
96
+ ffi_dbx_tools_model_rust_future_cancel_u32: {
97
+ args: [FfiType.Handle],
98
+ ret: FfiType.Void,
99
+ hasRustCallStatus: false
100
+ },
101
+ ffi_dbx_tools_model_rust_future_complete_u32: {
102
+ args: [FfiType.Handle],
103
+ ret: FfiType.UInt32,
104
+ hasRustCallStatus: true
105
+ },
106
+ ffi_dbx_tools_model_rust_future_free_u32: {
107
+ args: [FfiType.Handle],
108
+ ret: FfiType.Void,
109
+ hasRustCallStatus: false
110
+ },
111
+ ffi_dbx_tools_model_rust_future_poll_i32: {
112
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
113
+ ret: FfiType.Void,
114
+ hasRustCallStatus: false
115
+ },
116
+ ffi_dbx_tools_model_rust_future_cancel_i32: {
117
+ args: [FfiType.Handle],
118
+ ret: FfiType.Void,
119
+ hasRustCallStatus: false
120
+ },
121
+ ffi_dbx_tools_model_rust_future_complete_i32: {
122
+ args: [FfiType.Handle],
123
+ ret: FfiType.Int32,
124
+ hasRustCallStatus: true
125
+ },
126
+ ffi_dbx_tools_model_rust_future_free_i32: {
127
+ args: [FfiType.Handle],
128
+ ret: FfiType.Void,
129
+ hasRustCallStatus: false
130
+ },
131
+ ffi_dbx_tools_model_rust_future_poll_u64: {
132
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
133
+ ret: FfiType.Void,
134
+ hasRustCallStatus: false
135
+ },
136
+ ffi_dbx_tools_model_rust_future_cancel_u64: {
137
+ args: [FfiType.Handle],
138
+ ret: FfiType.Void,
139
+ hasRustCallStatus: false
140
+ },
141
+ ffi_dbx_tools_model_rust_future_complete_u64: {
142
+ args: [FfiType.Handle],
143
+ ret: FfiType.Handle,
144
+ hasRustCallStatus: true
145
+ },
146
+ ffi_dbx_tools_model_rust_future_free_u64: {
147
+ args: [FfiType.Handle],
148
+ ret: FfiType.Void,
149
+ hasRustCallStatus: false
150
+ },
151
+ ffi_dbx_tools_model_rust_future_poll_i64: {
152
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
153
+ ret: FfiType.Void,
154
+ hasRustCallStatus: false
155
+ },
156
+ ffi_dbx_tools_model_rust_future_cancel_i64: {
157
+ args: [FfiType.Handle],
158
+ ret: FfiType.Void,
159
+ hasRustCallStatus: false
160
+ },
161
+ ffi_dbx_tools_model_rust_future_complete_i64: {
162
+ args: [FfiType.Handle],
163
+ ret: FfiType.Int64,
164
+ hasRustCallStatus: true
165
+ },
166
+ ffi_dbx_tools_model_rust_future_free_i64: {
167
+ args: [FfiType.Handle],
168
+ ret: FfiType.Void,
169
+ hasRustCallStatus: false
170
+ },
171
+ ffi_dbx_tools_model_rust_future_poll_f32: {
172
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
173
+ ret: FfiType.Void,
174
+ hasRustCallStatus: false
175
+ },
176
+ ffi_dbx_tools_model_rust_future_cancel_f32: {
177
+ args: [FfiType.Handle],
178
+ ret: FfiType.Void,
179
+ hasRustCallStatus: false
180
+ },
181
+ ffi_dbx_tools_model_rust_future_complete_f32: {
182
+ args: [FfiType.Handle],
183
+ ret: FfiType.Float32,
184
+ hasRustCallStatus: true
185
+ },
186
+ ffi_dbx_tools_model_rust_future_free_f32: {
187
+ args: [FfiType.Handle],
188
+ ret: FfiType.Void,
189
+ hasRustCallStatus: false
190
+ },
191
+ ffi_dbx_tools_model_rust_future_poll_f64: {
192
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
193
+ ret: FfiType.Void,
194
+ hasRustCallStatus: false
195
+ },
196
+ ffi_dbx_tools_model_rust_future_cancel_f64: {
197
+ args: [FfiType.Handle],
198
+ ret: FfiType.Void,
199
+ hasRustCallStatus: false
200
+ },
201
+ ffi_dbx_tools_model_rust_future_complete_f64: {
202
+ args: [FfiType.Handle],
203
+ ret: FfiType.Float64,
204
+ hasRustCallStatus: true
205
+ },
206
+ ffi_dbx_tools_model_rust_future_free_f64: {
207
+ args: [FfiType.Handle],
208
+ ret: FfiType.Void,
209
+ hasRustCallStatus: false
210
+ },
211
+ ffi_dbx_tools_model_rust_future_poll_rust_buffer: {
212
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
213
+ ret: FfiType.Void,
214
+ hasRustCallStatus: false
215
+ },
216
+ ffi_dbx_tools_model_rust_future_cancel_rust_buffer: {
217
+ args: [FfiType.Handle],
218
+ ret: FfiType.Void,
219
+ hasRustCallStatus: false
220
+ },
221
+ ffi_dbx_tools_model_rust_future_complete_rust_buffer: {
222
+ args: [FfiType.Handle],
223
+ ret: FfiType.RustBuffer,
224
+ hasRustCallStatus: true
225
+ },
226
+ ffi_dbx_tools_model_rust_future_free_rust_buffer: {
227
+ args: [FfiType.Handle],
228
+ ret: FfiType.Void,
229
+ hasRustCallStatus: false
230
+ },
231
+ ffi_dbx_tools_model_rust_future_poll_void: {
232
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
233
+ ret: FfiType.Void,
234
+ hasRustCallStatus: false
235
+ },
236
+ ffi_dbx_tools_model_rust_future_cancel_void: {
237
+ args: [FfiType.Handle],
238
+ ret: FfiType.Void,
239
+ hasRustCallStatus: false
240
+ },
241
+ ffi_dbx_tools_model_rust_future_complete_void: {
242
+ args: [FfiType.Handle],
243
+ ret: FfiType.Void,
244
+ hasRustCallStatus: true
245
+ },
246
+ ffi_dbx_tools_model_rust_future_free_void: {
247
+ args: [FfiType.Handle],
248
+ ret: FfiType.Void,
249
+ hasRustCallStatus: false
250
+ },
251
+ uniffi_dbx_tools_model_fn_func_chat_tool_reasoning_effort: {
252
+ args: [FfiType.RustBuffer],
253
+ ret: FfiType.RustBuffer,
254
+ hasRustCallStatus: true
255
+ },
256
+ uniffi_dbx_tools_model_fn_func_is_responses_only: {
257
+ args: [FfiType.RustBuffer],
258
+ ret: FfiType.Int8,
259
+ hasRustCallStatus: true
260
+ },
261
+ uniffi_dbx_tools_model_fn_func_model_serving_api: {
262
+ args: [FfiType.RustBuffer],
263
+ ret: FfiType.RustBuffer,
264
+ hasRustCallStatus: true
265
+ },
266
+ uniffi_dbx_tools_model_fn_func_reasoning_efforts_by_family: {
267
+ args: [FfiType.RustBuffer],
268
+ ret: FfiType.RustBuffer,
269
+ hasRustCallStatus: true
270
+ },
271
+ uniffi_dbx_tools_model_fn_func_supports_tools_by_family: {
272
+ args: [FfiType.RustBuffer],
273
+ ret: FfiType.Int8,
274
+ hasRustCallStatus: true
275
+ },
276
+ ffi_dbx_tools_model_uniffi_contract_version: {
277
+ args: [],
278
+ ret: FfiType.UInt32,
279
+ hasRustCallStatus: false
280
+ },
281
+ uniffi_dbx_tools_model_checksum_func_chat_tool_reasoning_effort: {
282
+ args: [],
283
+ ret: FfiType.UInt16,
284
+ hasRustCallStatus: false
285
+ },
286
+ uniffi_dbx_tools_model_checksum_func_is_responses_only: {
287
+ args: [],
288
+ ret: FfiType.UInt16,
289
+ hasRustCallStatus: false
290
+ },
291
+ uniffi_dbx_tools_model_checksum_func_model_serving_api: {
292
+ args: [],
293
+ ret: FfiType.UInt16,
294
+ hasRustCallStatus: false
295
+ },
296
+ uniffi_dbx_tools_model_checksum_func_reasoning_efforts_by_family: {
297
+ args: [],
298
+ ret: FfiType.UInt16,
299
+ hasRustCallStatus: false
300
+ },
301
+ uniffi_dbx_tools_model_checksum_func_supports_tools_by_family: {
302
+ args: [],
303
+ ret: FfiType.UInt16,
304
+ hasRustCallStatus: false
305
+ }
306
+ },
307
+ callbacks: {
308
+ RustFutureContinuationCallback: {
309
+ args: [FfiType.Handle, FfiType.Int8],
310
+ ret: FfiType.Void,
311
+ hasRustCallStatus: false
312
+ },
313
+ ForeignFutureDroppedCallback: {
314
+ args: [FfiType.Handle],
315
+ ret: FfiType.Void,
316
+ hasRustCallStatus: false
317
+ }
318
+ },
319
+ structs: {
320
+ ForeignFutureDroppedCallbackStruct: [
321
+ { name: "handle", type: FfiType.Handle },
322
+ { name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") }
323
+ ]
324
+ }
325
+ };
326
+ var _nativeModule;
327
+ var getter = () => {
328
+ if (!_nativeModule) {
329
+ const libPath = resolveLibPath({
330
+ crateName: "dbx_tools_model",
331
+ callerUrl: import.meta.url,
332
+ npmPackageBase: "@dbx-tools/model-rs-",
333
+ tripleStyle: "node"
334
+ });
335
+ const mod_ = UniffiNativeModule.open(libPath);
336
+ _nativeModule = mod_.register(DEFINITIONS);
337
+ }
338
+ return _nativeModule;
339
+ };
340
+ var _bindings_ffi_default = getter;
341
+
342
+ // src/_bindings.ts
343
+ import {
344
+ AbstractFfiConverterByteArray,
345
+ FfiConverterArray,
346
+ FfiConverterBool,
347
+ FfiConverterOptional,
348
+ UniffiInternalError,
349
+ UniffiRustCaller,
350
+ uniffiCreateFfiConverterString
351
+ } from "@ubjs/core";
352
+ var uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
353
+ var uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
354
+ function chatToolReasoningEffort(name) {
355
+ const __rb = uniffiCaller.rustCall((callStatus) => {
356
+ return _bindings_ffi_default().uniffi_dbx_tools_model_fn_func_chat_tool_reasoning_effort(FfiConverterString.lower(name, _bindings_ffi_default().rustbuffer_alloc), callStatus);
357
+ }, FfiConverterString.lift.bind(FfiConverterString));
358
+ try {
359
+ return FfiConverterOptionalTypeReasoningEffort.lift(__rb);
360
+ } finally {
361
+ _bindings_ffi_default().rustbuffer_free(__rb);
362
+ }
363
+ }
364
+ function isResponsesOnly(value) {
365
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
366
+ return _bindings_ffi_default().uniffi_dbx_tools_model_fn_func_is_responses_only(FfiConverterString.lower(value, _bindings_ffi_default().rustbuffer_alloc), callStatus);
367
+ }, FfiConverterString.lift.bind(FfiConverterString)));
368
+ }
369
+ function modelServingApi(value) {
370
+ const __rb = uniffiCaller.rustCall((callStatus) => {
371
+ return _bindings_ffi_default().uniffi_dbx_tools_model_fn_func_model_serving_api(FfiConverterString.lower(value, _bindings_ffi_default().rustbuffer_alloc), callStatus);
372
+ }, FfiConverterString.lift.bind(FfiConverterString));
373
+ try {
374
+ return FfiConverterTypeModelServingApi.lift(__rb);
375
+ } finally {
376
+ _bindings_ffi_default().rustbuffer_free(__rb);
377
+ }
378
+ }
379
+ function reasoningEffortsByFamily(name) {
380
+ const __rb = uniffiCaller.rustCall((callStatus) => {
381
+ return _bindings_ffi_default().uniffi_dbx_tools_model_fn_func_reasoning_efforts_by_family(FfiConverterString.lower(name, _bindings_ffi_default().rustbuffer_alloc), callStatus);
382
+ }, FfiConverterString.lift.bind(FfiConverterString));
383
+ try {
384
+ return FfiConverterSequenceTypeReasoningEffort.lift(__rb);
385
+ } finally {
386
+ _bindings_ffi_default().rustbuffer_free(__rb);
387
+ }
388
+ }
389
+ function supportsToolsByFamily(name) {
390
+ return FfiConverterBool.lift(uniffiCaller.rustCall((callStatus) => {
391
+ return _bindings_ffi_default().uniffi_dbx_tools_model_fn_func_supports_tools_by_family(FfiConverterString.lower(name, _bindings_ffi_default().rustbuffer_alloc), callStatus);
392
+ }, FfiConverterString.lift.bind(FfiConverterString)));
393
+ }
394
+ var ModelServingApi;
395
+ ((ModelServingApi2) => {
396
+ ModelServingApi2[ModelServingApi2["Chat"] = 0] = "Chat";
397
+ ModelServingApi2[ModelServingApi2["Responses"] = 1] = "Responses";
398
+ })(ModelServingApi ||= {});
399
+ var FfiConverterTypeModelServingApi = (() => {
400
+
401
+ class FFIConverter extends AbstractFfiConverterByteArray {
402
+ readFromCursor(c) {
403
+ switch (c.readI32()) {
404
+ case 1:
405
+ return 0 /* Chat */;
406
+ case 2:
407
+ return 1 /* Responses */;
408
+ default:
409
+ throw new UniffiInternalError.UnexpectedEnumCase;
410
+ }
411
+ }
412
+ writeIntoCursor(value, c) {
413
+ switch (value) {
414
+ case 0 /* Chat */:
415
+ return c.writeI32(1);
416
+ case 1 /* Responses */:
417
+ return c.writeI32(2);
418
+ }
419
+ }
420
+ allocationSize(value) {
421
+ return 4;
422
+ }
423
+ }
424
+ return new FFIConverter;
425
+ })();
426
+ var ReasoningEffort;
427
+ ((ReasoningEffort2) => {
428
+ ReasoningEffort2[ReasoningEffort2["None"] = 0] = "None";
429
+ ReasoningEffort2[ReasoningEffort2["Minimal"] = 1] = "Minimal";
430
+ ReasoningEffort2[ReasoningEffort2["Low"] = 2] = "Low";
431
+ ReasoningEffort2[ReasoningEffort2["Medium"] = 3] = "Medium";
432
+ ReasoningEffort2[ReasoningEffort2["High"] = 4] = "High";
433
+ ReasoningEffort2[ReasoningEffort2["Xhigh"] = 5] = "Xhigh";
434
+ ReasoningEffort2[ReasoningEffort2["Max"] = 6] = "Max";
435
+ })(ReasoningEffort ||= {});
436
+ var FfiConverterTypeReasoningEffort = (() => {
437
+
438
+ class FFIConverter extends AbstractFfiConverterByteArray {
439
+ readFromCursor(c) {
440
+ switch (c.readI32()) {
441
+ case 1:
442
+ return 0 /* None */;
443
+ case 2:
444
+ return 1 /* Minimal */;
445
+ case 3:
446
+ return 2 /* Low */;
447
+ case 4:
448
+ return 3 /* Medium */;
449
+ case 5:
450
+ return 4 /* High */;
451
+ case 6:
452
+ return 5 /* Xhigh */;
453
+ case 7:
454
+ return 6 /* Max */;
455
+ default:
456
+ throw new UniffiInternalError.UnexpectedEnumCase;
457
+ }
458
+ }
459
+ writeIntoCursor(value, c) {
460
+ switch (value) {
461
+ case 0 /* None */:
462
+ return c.writeI32(1);
463
+ case 1 /* Minimal */:
464
+ return c.writeI32(2);
465
+ case 2 /* Low */:
466
+ return c.writeI32(3);
467
+ case 3 /* Medium */:
468
+ return c.writeI32(4);
469
+ case 4 /* High */:
470
+ return c.writeI32(5);
471
+ case 5 /* Xhigh */:
472
+ return c.writeI32(6);
473
+ case 6 /* Max */:
474
+ return c.writeI32(7);
475
+ }
476
+ }
477
+ allocationSize(value) {
478
+ return 4;
479
+ }
480
+ }
481
+ return new FFIConverter;
482
+ })();
483
+ var stringConverter = (() => {
484
+ const encoder = new TextEncoder;
485
+ const decoder = new TextDecoder;
486
+ return {
487
+ stringToBytes: (s) => encoder.encode(s),
488
+ bytesToString: (ab) => decoder.decode(ab),
489
+ stringByteLength: (s) => encoder.encode(s).byteLength,
490
+ writeStringIntoBuffer: (s, buf, offset) => {
491
+ const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
492
+ return encoder.encodeInto(s, view).written;
493
+ },
494
+ readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
495
+ };
496
+ })();
497
+ var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
498
+ var FfiConverterOptionalTypeReasoningEffort = new FfiConverterOptional(FfiConverterTypeReasoningEffort);
499
+ var FfiConverterSequenceTypeReasoningEffort = new FfiConverterArray(FfiConverterTypeReasoningEffort);
500
+ function uniffiEnsureInitialized() {
501
+ const bindingsContractVersion = 30;
502
+ const scaffoldingContractVersion = _bindings_ffi_default().ffi_dbx_tools_model_uniffi_contract_version();
503
+ if (bindingsContractVersion !== scaffoldingContractVersion) {
504
+ throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
505
+ }
506
+ if (_bindings_ffi_default().uniffi_dbx_tools_model_checksum_func_chat_tool_reasoning_effort() !== 31707) {
507
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_model_checksum_func_chat_tool_reasoning_effort");
508
+ }
509
+ if (_bindings_ffi_default().uniffi_dbx_tools_model_checksum_func_is_responses_only() !== 5794) {
510
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_model_checksum_func_is_responses_only");
511
+ }
512
+ if (_bindings_ffi_default().uniffi_dbx_tools_model_checksum_func_model_serving_api() !== 54338) {
513
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_model_checksum_func_model_serving_api");
514
+ }
515
+ if (_bindings_ffi_default().uniffi_dbx_tools_model_checksum_func_reasoning_efforts_by_family() !== 49390) {
516
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_model_checksum_func_reasoning_efforts_by_family");
517
+ }
518
+ if (_bindings_ffi_default().uniffi_dbx_tools_model_checksum_func_supports_tools_by_family() !== 34147) {
519
+ throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_model_checksum_func_supports_tools_by_family");
520
+ }
521
+ }
522
+ var _bindings_default = Object.freeze({
523
+ initialize: uniffiEnsureInitialized,
524
+ converters: {
525
+ FfiConverterTypeModelServingApi,
526
+ FfiConverterTypeReasoningEffort
527
+ }
528
+ });
529
+ // src/bindings.ts
530
+ _bindings_default.initialize();
531
+ async function uniffiInitAsync() {}
532
+
533
+ // index.ts
534
+ var PACKAGE_IDENTIFIER = "@dbx-tools/model-rs";
535
+ var PACKAGE_VERSION = "0.6.221";
536
+ export {
537
+ _bindings_default as uniffiModule,
538
+ uniffiInitAsync,
539
+ supportsToolsByFamily,
540
+ reasoningEffortsByFamily,
541
+ modelServingApi,
542
+ isResponsesOnly,
543
+ chatToolReasoningEffort,
544
+ ReasoningEffort,
545
+ PACKAGE_VERSION,
546
+ PACKAGE_IDENTIFIER,
547
+ ModelServingApi
548
+ };
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@dbx-tools/model-rs",
3
+ "description": "Node bindings for dbx-tools-model",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/reggie-db/dbx-tools.git",
7
+ "directory": "packages/js/node/model-rs"
8
+ },
9
+ "dependencies": {
10
+ "@dbx-tools/core-rs": "0.6.221",
11
+ "@ubjs/core": "0.31.0-5",
12
+ "@ubjs/node": "0.31.0-5"
13
+ },
14
+ "main": "./lib/index.js",
15
+ "license": "Apache-2.0",
16
+ "version": "0.6.221",
17
+ "types": "./index.ts",
18
+ "type": "module",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./index.ts",
22
+ "default": "./lib/index.js"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
26
+ "files": [
27
+ "index.ts",
28
+ "src",
29
+ "lib"
30
+ ],
31
+ "optionalDependencies": {
32
+ "@dbx-tools/model-rs-linux-x64-gnu": "0.6.221",
33
+ "@dbx-tools/model-rs-linux-arm64-gnu": "0.6.221",
34
+ "@dbx-tools/model-rs-darwin-x64": "0.6.221",
35
+ "@dbx-tools/model-rs-darwin-arm64": "0.6.221",
36
+ "@dbx-tools/model-rs-win32-x64-msvc": "0.6.221",
37
+ "@dbx-tools/model-rs-win32-arm64-msvc": "0.6.221"
38
+ },
39
+ "dbxToolsConfig": {
40
+ "uniffi": true,
41
+ "tags": [
42
+ "node"
43
+ ]
44
+ },
45
+ "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"bunx projen\".",
46
+ "private": false
47
+ }