@arcships/aimux 0.2.0 → 0.2.1
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/LICENSE +21 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/types/ProviderName.d.ts +1 -0
- package/dist/types/ProviderName.js +1 -0
- package/index.d.ts +73 -35
- package/index.js +63 -54
- package/package.json +7 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 arcships
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Model } from '../index.js';
|
|
2
2
|
import type { GenerateTextOptions, GenerateTextResult, StreamPart, ModelMessage, Tool, ToolChoice, ToolCall, ToolResult, Usage, FinishReason, Warning, Role, MessageContent, ContentPart, ResponseFormat, ReasoningEffort, AiMuxError, GenerateResult, FunctionTool } from './types';
|
|
3
|
-
export { Model, StreamTextGenerator, AbortBridge, openai, anthropic, deepseek, google, cohere, mistral, xai, bedrock, vertex, anthropicAws, azure, provider, } from '../index.js';
|
|
3
|
+
export { Model, StreamTextGenerator, AbortBridge, initLogging, openai, anthropic, deepseek, google, cohere, mistral, xai, bedrock, vertex, anthropicAws, azure, provider, } from '../index.js';
|
|
4
4
|
export type { ProviderName } from './types/ProviderName';
|
|
5
5
|
export type { GenerateTextOptions, GenerateTextResult, StreamPart, ModelMessage, Tool, ToolChoice, ToolCall, ToolResult, Usage, FinishReason, Warning, Role, MessageContent, ContentPart, ResponseFormat, ReasoningEffort, AiMuxError, GenerateResult, FunctionTool, };
|
|
6
6
|
/**
|
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
// The raw napi API (`index.js` / `index.d.ts`, auto-generated) is untouched.
|
|
14
14
|
// This is purely an extra TypeScript layer on top.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.provider = exports.azure = exports.anthropicAws = exports.vertex = exports.bedrock = exports.xai = exports.mistral = exports.cohere = exports.google = exports.deepseek = exports.anthropic = exports.openai = exports.AbortBridge = exports.StreamTextGenerator = exports.Model = void 0;
|
|
16
|
+
exports.provider = exports.azure = exports.anthropicAws = exports.vertex = exports.bedrock = exports.xai = exports.mistral = exports.cohere = exports.google = exports.deepseek = exports.anthropic = exports.openai = exports.initLogging = exports.AbortBridge = exports.StreamTextGenerator = exports.Model = void 0;
|
|
17
17
|
exports.generateText = generateText;
|
|
18
18
|
exports.streamText = streamText;
|
|
19
19
|
const index_js_1 = require("../index.js");
|
|
@@ -23,6 +23,7 @@ var index_js_2 = require("../index.js");
|
|
|
23
23
|
Object.defineProperty(exports, "Model", { enumerable: true, get: function () { return index_js_2.Model; } });
|
|
24
24
|
Object.defineProperty(exports, "StreamTextGenerator", { enumerable: true, get: function () { return index_js_2.StreamTextGenerator; } });
|
|
25
25
|
Object.defineProperty(exports, "AbortBridge", { enumerable: true, get: function () { return index_js_2.AbortBridge; } });
|
|
26
|
+
Object.defineProperty(exports, "initLogging", { enumerable: true, get: function () { return index_js_2.initLogging; } });
|
|
26
27
|
Object.defineProperty(exports, "openai", { enumerable: true, get: function () { return index_js_2.openai; } });
|
|
27
28
|
Object.defineProperty(exports, "anthropic", { enumerable: true, get: function () { return index_js_2.anthropic; } });
|
|
28
29
|
Object.defineProperty(exports, "deepseek", { enumerable: true, get: function () { return index_js_2.deepseek; } });
|
|
@@ -109,6 +109,7 @@ export declare const ProviderName: {
|
|
|
109
109
|
readonly inception: "inception";
|
|
110
110
|
readonly inceptron: "inceptron";
|
|
111
111
|
readonly inference_net: "inference_net";
|
|
112
|
+
readonly inferencehub: "inferencehub";
|
|
112
113
|
readonly inferx: "inferx";
|
|
113
114
|
readonly infinity: "infinity";
|
|
114
115
|
readonly io_net: "io_net";
|
package/index.d.ts
CHANGED
|
@@ -9,6 +9,25 @@ declare global {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* A bridge from a JS `AbortSignal` to the core's runtime cancellation.
|
|
14
|
+
*
|
|
15
|
+
* napi's own `AbortSignal` is not `Send` (it holds `Rc`), so it cannot be a
|
|
16
|
+
* parameter of an async napi method. This class is created synchronously
|
|
17
|
+
* (registering the abort callback on the JS thread) and then passed to
|
|
18
|
+
* `generateText` / `streamText` — it only holds an `Arc` and is `Send`.
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* const bridge = signal ? new AbortBridge(signal) : undefined
|
|
22
|
+
* await model.generateText(prompt, options, bridge)
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare class AbortBridge {
|
|
26
|
+
constructor(signal: AbortSignal)
|
|
27
|
+
/** Returns `true` once the underlying JS signal has been aborted. */
|
|
28
|
+
aborted(): boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
12
31
|
export declare class EmbeddingModel {
|
|
13
32
|
/**
|
|
14
33
|
* Generate embeddings. `values_json` is a JSON array of strings.
|
|
@@ -30,28 +49,20 @@ export declare class Files {
|
|
|
30
49
|
export declare class ImageModel {
|
|
31
50
|
/**
|
|
32
51
|
* Generate images. `opts_json` is JSON-serialized ImageCallOptions.
|
|
33
|
-
*
|
|
52
|
+
* `bridge` — optional `AbortBridge`; aborting the wrapped signal cancels
|
|
53
|
+
* the call. Returns JSON-serialized ImageResult (images as base64 in JSON).
|
|
34
54
|
*/
|
|
35
55
|
generate(optsJson: string, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
36
56
|
}
|
|
37
57
|
|
|
38
|
-
export declare class AbortBridge {
|
|
39
|
-
/**
|
|
40
|
-
* Bridge a JS `AbortSignal` to the core's runtime cancellation.
|
|
41
|
-
* Pass the result to `Model.generateText` / `Model.streamText`.
|
|
42
|
-
*/
|
|
43
|
-
constructor(signal: AbortSignal)
|
|
44
|
-
/** Returns `true` once the underlying JS signal has been aborted. */
|
|
45
|
-
aborted(): boolean
|
|
46
|
-
}
|
|
47
|
-
|
|
48
58
|
export declare class Model {
|
|
49
59
|
/**
|
|
50
60
|
* Generate text (non-streaming).
|
|
51
61
|
*
|
|
52
62
|
* `prompt` — a JSON string: bare prompt (`"text"` or `[{...}]`) or `{"prompt": ...}`.
|
|
53
63
|
* `options` — optional JSON-serialized `GenerateTextOptions`.
|
|
54
|
-
* `bridge` — optional `AbortBridge
|
|
64
|
+
* `bridge` — optional `AbortBridge` (wrap a JS `AbortSignal` in one);
|
|
65
|
+
* aborting the signal cancels the call.
|
|
55
66
|
* Returns a JSON-serialized `GenerateTextResult`.
|
|
56
67
|
*/
|
|
57
68
|
generateText(prompt: string, options?: string | undefined | null, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
@@ -68,7 +79,8 @@ export declare class RerankingModel {
|
|
|
68
79
|
/**
|
|
69
80
|
* Rerank documents. `query` is the search query, `docs_json` is a JSON
|
|
70
81
|
* array of documents, `opts_json` is optional JSON options.
|
|
71
|
-
*
|
|
82
|
+
* `bridge` — optional `AbortBridge`; aborting the wrapped signal cancels
|
|
83
|
+
* the call. Returns JSON-serialized RerankingResult.
|
|
72
84
|
*/
|
|
73
85
|
rerank(query: string, docsJson: string, optsJson?: string | undefined | null, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
74
86
|
}
|
|
@@ -76,7 +88,8 @@ export declare class RerankingModel {
|
|
|
76
88
|
export declare class SearchModel {
|
|
77
89
|
/**
|
|
78
90
|
* Search. `query` is the search query, `opts_json` is optional JSON options.
|
|
79
|
-
*
|
|
91
|
+
* `bridge` — optional `AbortBridge`; aborting the wrapped signal cancels
|
|
92
|
+
* the call. Returns JSON-serialized SearchResult.
|
|
80
93
|
*/
|
|
81
94
|
search(query: string, optsJson?: string | undefined | null, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
82
95
|
}
|
|
@@ -84,7 +97,8 @@ export declare class SearchModel {
|
|
|
84
97
|
export declare class SpeechModel {
|
|
85
98
|
/**
|
|
86
99
|
* Generate speech audio. `opts_json` is JSON-serialized SpeechCallOptions.
|
|
87
|
-
*
|
|
100
|
+
* `bridge` — optional `AbortBridge`; aborting the wrapped signal cancels
|
|
101
|
+
* the call. Returns JSON-serialized SpeechResult (audio as base64 in JSON).
|
|
88
102
|
*/
|
|
89
103
|
generate(optsJson: string, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
90
104
|
}
|
|
@@ -110,7 +124,8 @@ export declare class TranscriptionModel {
|
|
|
110
124
|
/**
|
|
111
125
|
* Transcribe audio. `audio_base64` is base64-encoded audio data.
|
|
112
126
|
* `media_type` is e.g. "audio/mp3". `opts_json` is optional JSON options.
|
|
113
|
-
*
|
|
127
|
+
* `bridge` — optional `AbortBridge`; aborting the wrapped signal cancels
|
|
128
|
+
* the call. Returns JSON-serialized TranscriptionResult.
|
|
114
129
|
*/
|
|
115
130
|
generate(audioBase64: string, mediaType: string, optsJson?: string | undefined | null, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
116
131
|
}
|
|
@@ -118,7 +133,8 @@ export declare class TranscriptionModel {
|
|
|
118
133
|
export declare class VideoModel {
|
|
119
134
|
/**
|
|
120
135
|
* Generate video. `opts_json` is JSON-serialized VideoCallOptions.
|
|
121
|
-
*
|
|
136
|
+
* `bridge` — optional `AbortBridge`; aborting the wrapped signal cancels
|
|
137
|
+
* the call. Returns JSON-serialized VideoResult (typically contains a URL).
|
|
122
138
|
*/
|
|
123
139
|
generate(optsJson: string, bridge?: AbortBridge | undefined | null): Promise<string>
|
|
124
140
|
}
|
|
@@ -126,42 +142,40 @@ export declare class VideoModel {
|
|
|
126
142
|
/** Create an Anthropic model instance. */
|
|
127
143
|
export declare function anthropic(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
128
144
|
|
|
129
|
-
/** Create an Anthropic-on-AWS model instance (API key + region). */
|
|
145
|
+
/** Create an Anthropic-on-AWS language model instance (API key + region). */
|
|
130
146
|
export declare function anthropicAws(apiKey: string, region: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
131
147
|
|
|
132
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* Create an Azure OpenAI language model instance (API key + resource name).
|
|
150
|
+
*
|
|
151
|
+
* The deployment name is passed as `model_id`; `api_version` is optional.
|
|
152
|
+
*/
|
|
133
153
|
export declare function azure(apiKey: string, resourceName: string, deployment: string, apiVersion?: string | undefined | null, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
134
154
|
|
|
135
|
-
/** Create a Bedrock model instance (AWS SigV4 credentials). */
|
|
155
|
+
/** Create a Bedrock language model instance (AWS SigV4 credentials). */
|
|
136
156
|
export declare function bedrock(accessKeyId: string, secretAccessKey: string, region: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
137
157
|
|
|
138
|
-
/** Create a Cohere model instance. */
|
|
158
|
+
/** Create a Cohere language model instance. */
|
|
139
159
|
export declare function cohere(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
140
160
|
|
|
141
|
-
/** Create a Mistral model instance. */
|
|
142
|
-
export declare function mistral(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
143
|
-
|
|
144
|
-
/** Create a Vertex AI model instance (GCP bearer token). */
|
|
145
|
-
export declare function vertex(accessToken: string, project: string, location: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
146
|
-
|
|
147
|
-
/** Create an xAI model instance. */
|
|
148
|
-
export declare function xai(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
149
|
-
|
|
150
161
|
/** Create a Cohere embedding model instance. */
|
|
151
162
|
export declare function cohereEmbedding(apiKey: string, modelId: string, baseUrl?: string | undefined | null): Promise<EmbeddingModel>
|
|
152
163
|
|
|
153
164
|
/** Create a Cohere reranking model instance. */
|
|
154
165
|
export declare function cohereReranking(apiKey: string, modelId: string, baseUrl?: string | undefined | null): Promise<RerankingModel>
|
|
155
166
|
|
|
156
|
-
/** Create a DeepSeek model instance. */
|
|
167
|
+
/** Create a DeepSeek model instance (registry-backed since RFC-0017 phase 4). */
|
|
157
168
|
export declare function deepseek(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
158
169
|
|
|
159
|
-
/**
|
|
170
|
+
/**
|
|
171
|
+
* Create a Google Gemini language model instance.
|
|
172
|
+
*
|
|
173
|
+
* Google speaks the native `generateContent` protocol (not OpenAI-compatible),
|
|
174
|
+
* so it is **not** registry-backed — `provider("google", ...)` fails with
|
|
175
|
+
* `UnknownProvider`. This factory is the only entry point.
|
|
176
|
+
*/
|
|
160
177
|
export declare function google(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
161
178
|
|
|
162
|
-
/** Create a language model from the built-in registry by provider name (RFC-0017 phase 4). */
|
|
163
|
-
export declare function provider(name: string, apiKey?: string | undefined | null, modelId: string, config?: ProviderConfig | undefined | null): Promise<Model>
|
|
164
|
-
|
|
165
179
|
/** Create a Google embedding model instance. */
|
|
166
180
|
export declare function googleEmbedding(apiKey: string, modelId: string, baseUrl?: string | undefined | null): Promise<EmbeddingModel>
|
|
167
181
|
|
|
@@ -171,6 +185,17 @@ export declare function googleImage(apiKey: string, modelId: string, baseUrl?: s
|
|
|
171
185
|
/** Create a Google video model instance. */
|
|
172
186
|
export declare function googleVideo(apiKey: string, modelId: string, baseUrl?: string | undefined | null): Promise<VideoModel>
|
|
173
187
|
|
|
188
|
+
/**
|
|
189
|
+
* 初始化全局日志(RFC-0014)。幂等:多次调用无副作用;宿主已自建
|
|
190
|
+
* subscriber 时 no-op。级别:off|error|warn|info|debug|trace(空串回退
|
|
191
|
+
* warn)。`AIMUX_LOG` / `AIMUX_LOG_LEVEL` 环境变量优先级更高。
|
|
192
|
+
* 日志输出到 stderr。
|
|
193
|
+
*/
|
|
194
|
+
export declare function initLogging(level: string): void
|
|
195
|
+
|
|
196
|
+
/** Create a Mistral language model instance. */
|
|
197
|
+
export declare function mistral(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
198
|
+
|
|
174
199
|
/** Create an OpenAI model instance. */
|
|
175
200
|
export declare function openai(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
176
201
|
|
|
@@ -189,6 +214,13 @@ export declare function openaiSpeech(apiKey: string, modelId: string, baseUrl?:
|
|
|
189
214
|
/** Create an OpenAI transcription model instance. */
|
|
190
215
|
export declare function openaiTranscription(apiKey: string, modelId: string, baseUrl?: string | undefined | null): Promise<TranscriptionModel>
|
|
191
216
|
|
|
217
|
+
/**
|
|
218
|
+
* Create a language model from the built-in registry by provider name
|
|
219
|
+
* (RFC-0017 phase 4). `api_key` may be empty/null to read the provider's env
|
|
220
|
+
* var from the registry entry.
|
|
221
|
+
*/
|
|
222
|
+
export declare function provider(name: string, apiKey: string | undefined | null, modelId: string, config?: ProviderConfig | undefined | null): Promise<Model>
|
|
223
|
+
|
|
192
224
|
/**
|
|
193
225
|
* Optional provider configuration accepted by factory functions.
|
|
194
226
|
*
|
|
@@ -221,3 +253,9 @@ export interface ProviderConfig {
|
|
|
221
253
|
|
|
222
254
|
/** Create a Tavily search model instance. */
|
|
223
255
|
export declare function tavilySearch(apiKey: string, baseUrl?: string | undefined | null): Promise<SearchModel>
|
|
256
|
+
|
|
257
|
+
/** Create a Vertex AI language model instance (GCP bearer token). */
|
|
258
|
+
export declare function vertex(accessToken: string, project: string, location: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
|
259
|
+
|
|
260
|
+
/** Create an xAI language model instance. */
|
|
261
|
+
export declare function xai(apiKey: string, modelId: string, config?: string | ProviderConfig | undefined | null): Promise<Model>
|
package/index.js
CHANGED
|
@@ -77,8 +77,8 @@ function requireNative() {
|
|
|
77
77
|
try {
|
|
78
78
|
const binding = require('@arcships/aimux-android-arm64')
|
|
79
79
|
const bindingPackageVersion = require('@arcships/aimux-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.1
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
80
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-android-arm-eabi')
|
|
95
95
|
const bindingPackageVersion = require('@arcships/aimux-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.1
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
96
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-win32-x64-gnu')
|
|
116
116
|
const bindingPackageVersion = require('@arcships/aimux-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '0.1
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
117
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-win32-x64-msvc')
|
|
132
132
|
const bindingPackageVersion = require('@arcships/aimux-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.1
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
133
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-win32-ia32-msvc')
|
|
149
149
|
const bindingPackageVersion = require('@arcships/aimux-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.1
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
150
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-win32-arm64-msvc')
|
|
165
165
|
const bindingPackageVersion = require('@arcships/aimux-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.1
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
166
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-darwin-universal')
|
|
184
184
|
const bindingPackageVersion = require('@arcships/aimux-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.1
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
185
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-darwin-x64')
|
|
200
200
|
const bindingPackageVersion = require('@arcships/aimux-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.1
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
201
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-darwin-arm64')
|
|
216
216
|
const bindingPackageVersion = require('@arcships/aimux-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.1
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
217
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-freebsd-x64')
|
|
236
236
|
const bindingPackageVersion = require('@arcships/aimux-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.1
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
237
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-freebsd-arm64')
|
|
252
252
|
const bindingPackageVersion = require('@arcships/aimux-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.1
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
253
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-x64-musl')
|
|
273
273
|
const bindingPackageVersion = require('@arcships/aimux-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.1
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
274
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-x64-gnu')
|
|
289
289
|
const bindingPackageVersion = require('@arcships/aimux-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.1
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
290
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-arm64-musl')
|
|
307
307
|
const bindingPackageVersion = require('@arcships/aimux-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.1
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
308
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-arm64-gnu')
|
|
323
323
|
const bindingPackageVersion = require('@arcships/aimux-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.1
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
324
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-arm-musleabihf')
|
|
341
341
|
const bindingPackageVersion = require('@arcships/aimux-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.1
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
342
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-arm-gnueabihf')
|
|
357
357
|
const bindingPackageVersion = require('@arcships/aimux-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.1
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
358
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-loong64-musl')
|
|
375
375
|
const bindingPackageVersion = require('@arcships/aimux-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.1
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
376
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-loong64-gnu')
|
|
391
391
|
const bindingPackageVersion = require('@arcships/aimux-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.1
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
392
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-riscv64-musl')
|
|
409
409
|
const bindingPackageVersion = require('@arcships/aimux-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.1
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
410
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-riscv64-gnu')
|
|
425
425
|
const bindingPackageVersion = require('@arcships/aimux-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.1
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
426
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-ppc64-gnu')
|
|
442
442
|
const bindingPackageVersion = require('@arcships/aimux-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.1
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
443
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-linux-s390x-gnu')
|
|
458
458
|
const bindingPackageVersion = require('@arcships/aimux-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.1
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
459
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-openharmony-arm64')
|
|
478
478
|
const bindingPackageVersion = require('@arcships/aimux-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.1
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
479
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-openharmony-x64')
|
|
494
494
|
const bindingPackageVersion = require('@arcships/aimux-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.1
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
495
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 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('@arcships/aimux-openharmony-arm')
|
|
510
510
|
const bindingPackageVersion = require('@arcships/aimux-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.1
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.1
|
|
511
|
+
if (bindingPackageVersion !== '0.2.1' && 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.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -648,8 +648,8 @@ if (!nativeBinding || forceWasi) {
|
|
|
648
648
|
if (!candidateFailed) {
|
|
649
649
|
if (process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
650
650
|
const bindingPackageVersion = require('@arcships/aimux-wasm32-wasi/package.json').version
|
|
651
|
-
if (bindingPackageVersion !== '0.1
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 0.1
|
|
651
|
+
if (bindingPackageVersion !== '0.2.1') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 0.2.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
wasiBinding = require('@arcships/aimux-wasm32-wasi')
|
|
@@ -700,6 +700,7 @@ if (!nativeBinding) {
|
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
module.exports = nativeBinding
|
|
703
|
+
module.exports.AbortBridge = nativeBinding.AbortBridge
|
|
703
704
|
module.exports.EmbeddingModel = nativeBinding.EmbeddingModel
|
|
704
705
|
module.exports.Files = nativeBinding.Files
|
|
705
706
|
module.exports.ImageModel = nativeBinding.ImageModel
|
|
@@ -711,6 +712,10 @@ module.exports.StreamTextGenerator = nativeBinding.StreamTextGenerator
|
|
|
711
712
|
module.exports.TranscriptionModel = nativeBinding.TranscriptionModel
|
|
712
713
|
module.exports.VideoModel = nativeBinding.VideoModel
|
|
713
714
|
module.exports.anthropic = nativeBinding.anthropic
|
|
715
|
+
module.exports.anthropicAws = nativeBinding.anthropicAws
|
|
716
|
+
module.exports.azure = nativeBinding.azure
|
|
717
|
+
module.exports.bedrock = nativeBinding.bedrock
|
|
718
|
+
module.exports.cohere = nativeBinding.cohere
|
|
714
719
|
module.exports.cohereEmbedding = nativeBinding.cohereEmbedding
|
|
715
720
|
module.exports.cohereReranking = nativeBinding.cohereReranking
|
|
716
721
|
module.exports.deepseek = nativeBinding.deepseek
|
|
@@ -718,6 +723,8 @@ module.exports.google = nativeBinding.google
|
|
|
718
723
|
module.exports.googleEmbedding = nativeBinding.googleEmbedding
|
|
719
724
|
module.exports.googleImage = nativeBinding.googleImage
|
|
720
725
|
module.exports.googleVideo = nativeBinding.googleVideo
|
|
726
|
+
module.exports.initLogging = nativeBinding.initLogging
|
|
727
|
+
module.exports.mistral = nativeBinding.mistral
|
|
721
728
|
module.exports.openai = nativeBinding.openai
|
|
722
729
|
module.exports.openaiEmbedding = nativeBinding.openaiEmbedding
|
|
723
730
|
module.exports.openaiFiles = nativeBinding.openaiFiles
|
|
@@ -726,3 +733,5 @@ module.exports.openaiSpeech = nativeBinding.openaiSpeech
|
|
|
726
733
|
module.exports.openaiTranscription = nativeBinding.openaiTranscription
|
|
727
734
|
module.exports.provider = nativeBinding.provider
|
|
728
735
|
module.exports.tavilySearch = nativeBinding.tavilySearch
|
|
736
|
+
module.exports.vertex = nativeBinding.vertex
|
|
737
|
+
module.exports.xai = nativeBinding.xai
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcships/aimux",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Unified LLM service layer — one API for 325 AI providers (Rust core, Node.js binding)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
},
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"optionalDependencies": {
|
|
56
|
-
"@arcships/aimux-win32-x64-msvc": "0.2.
|
|
57
|
-
"@arcships/aimux-win32-arm64-msvc": "0.2.
|
|
58
|
-
"@arcships/aimux-darwin-x64": "0.2.
|
|
59
|
-
"@arcships/aimux-darwin-arm64": "0.2.
|
|
60
|
-
"@arcships/aimux-linux-x64-gnu": "0.2.
|
|
61
|
-
"@arcships/aimux-linux-arm64-gnu": "0.2.
|
|
56
|
+
"@arcships/aimux-win32-x64-msvc": "0.2.1",
|
|
57
|
+
"@arcships/aimux-win32-arm64-msvc": "0.2.1",
|
|
58
|
+
"@arcships/aimux-darwin-x64": "0.2.1",
|
|
59
|
+
"@arcships/aimux-darwin-arm64": "0.2.1",
|
|
60
|
+
"@arcships/aimux-linux-x64-gnu": "0.2.1",
|
|
61
|
+
"@arcships/aimux-linux-arm64-gnu": "0.2.1"
|
|
62
62
|
}
|
|
63
63
|
}
|