@arcships/aimux 0.5.0 → 0.6.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/README.md +92 -0
- package/dist/error.d.ts +28 -137
- package/dist/error.js +71 -100
- package/dist/generated/ops.d.ts +75 -0
- package/dist/generated/ops.js +80 -0
- package/dist/generated/types.d.ts +5613 -0
- package/dist/{types/CallOptions.js → generated/types.js} +1 -0
- package/dist/index.d.ts +144 -211
- package/dist/index.js +314 -344
- package/dist/native.d.ts +29 -1
- package/dist/native.js +99 -29
- package/dist/types.d.ts +1 -144
- package/dist/types.js +0 -3
- package/index.d.ts +21 -545
- package/index.js +57 -112
- package/package.json +16 -13
- package/dist/types/AiMuxError.d.ts +0 -66
- package/dist/types/AiMuxError.js +0 -2
- package/dist/types/ApiCallError.d.ts +0 -75
- package/dist/types/ApiCallError.js +0 -2
- package/dist/types/AspectRatio.d.ts +0 -11
- package/dist/types/AspectRatio.js +0 -3
- package/dist/types/AudioChunk.d.ts +0 -8
- package/dist/types/AudioChunk.js +0 -3
- package/dist/types/AudioData.d.ts +0 -11
- package/dist/types/AudioData.js +0 -3
- package/dist/types/AudioInput.d.ts +0 -8
- package/dist/types/AudioInput.js +0 -3
- package/dist/types/BreakKind.d.ts +0 -1
- package/dist/types/BreakKind.js +0 -3
- package/dist/types/CallOptions.d.ts +0 -117
- package/dist/types/CatalogueSource.d.ts +0 -4
- package/dist/types/CatalogueSource.js +0 -3
- package/dist/types/ChatCompletion.d.ts +0 -16
- package/dist/types/ChatCompletion.js +0 -2
- package/dist/types/ChatCompletionChoice.d.ts +0 -8
- package/dist/types/ChatCompletionChoice.js +0 -2
- package/dist/types/ChatCompletionChunk.d.ts +0 -15
- package/dist/types/ChatCompletionChunk.js +0 -2
- package/dist/types/ChatCompletionChunkChoice.d.ts +0 -8
- package/dist/types/ChatCompletionChunkChoice.js +0 -2
- package/dist/types/ChatCompletionChunkFunction.d.ts +0 -4
- package/dist/types/ChatCompletionChunkFunction.js +0 -3
- package/dist/types/ChatCompletionChunkToolCall.d.ts +0 -7
- package/dist/types/ChatCompletionChunkToolCall.js +0 -2
- package/dist/types/ChatCompletionDelta.d.ts +0 -7
- package/dist/types/ChatCompletionDelta.js +0 -2
- package/dist/types/ChatCompletionFunction.d.ts +0 -4
- package/dist/types/ChatCompletionFunction.js +0 -3
- package/dist/types/ChatCompletionMessage.d.ts +0 -9
- package/dist/types/ChatCompletionMessage.js +0 -2
- package/dist/types/ChatCompletionToolCall.d.ts +0 -6
- package/dist/types/ChatCompletionToolCall.js +0 -2
- package/dist/types/ChatCompletionUsage.d.ts +0 -9
- package/dist/types/ChatCompletionUsage.js +0 -2
- package/dist/types/CompletionTokensDetails.d.ts +0 -3
- package/dist/types/CompletionTokensDetails.js +0 -3
- package/dist/types/ContentPart.d.ts +0 -112
- package/dist/types/ContentPart.js +0 -2
- package/dist/types/EmbeddingCallOptions.d.ts +0 -33
- package/dist/types/EmbeddingCallOptions.js +0 -2
- package/dist/types/EmbeddingResponse.d.ts +0 -16
- package/dist/types/EmbeddingResponse.js +0 -2
- package/dist/types/EmbeddingResult.d.ts +0 -33
- package/dist/types/EmbeddingResult.js +0 -2
- package/dist/types/EmbeddingUsage.d.ts +0 -9
- package/dist/types/EmbeddingUsage.js +0 -3
- package/dist/types/FileBytes.d.ts +0 -12
- package/dist/types/FileBytes.js +0 -3
- package/dist/types/FileData.d.ts +0 -25
- package/dist/types/FileData.js +0 -2
- package/dist/types/FilePart.d.ts +0 -8
- package/dist/types/FilePart.js +0 -2
- package/dist/types/Fingerprint.d.ts +0 -21
- package/dist/types/Fingerprint.js +0 -3
- package/dist/types/FinishReason.d.ts +0 -14
- package/dist/types/FinishReason.js +0 -2
- package/dist/types/FinishReasonUnified.d.ts +0 -4
- package/dist/types/FinishReasonUnified.js +0 -3
- package/dist/types/FunctionTool.d.ts +0 -35
- package/dist/types/FunctionTool.js +0 -2
- package/dist/types/GenerateContent.d.ts +0 -88
- package/dist/types/GenerateContent.js +0 -2
- package/dist/types/GenerateObjectResult.d.ts +0 -48
- package/dist/types/GenerateObjectResult.js +0 -2
- package/dist/types/GenerateResult.d.ts +0 -45
- package/dist/types/GenerateResult.js +0 -2
- package/dist/types/GenerateTextOptions.d.ts +0 -62
- package/dist/types/GenerateTextOptions.js +0 -2
- package/dist/types/GenerateTextResult.d.ts +0 -81
- package/dist/types/GenerateTextResult.js +0 -2
- package/dist/types/HttpExchange.d.ts +0 -34
- package/dist/types/HttpExchange.js +0 -2
- package/dist/types/HttpRecord.d.ts +0 -12
- package/dist/types/HttpRecord.js +0 -3
- package/dist/types/ImageCallOptions.d.ts +0 -63
- package/dist/types/ImageCallOptions.js +0 -2
- package/dist/types/ImageFile.d.ts +0 -25
- package/dist/types/ImageFile.js +0 -2
- package/dist/types/ImageFileData.d.ts +0 -8
- package/dist/types/ImageFileData.js +0 -3
- package/dist/types/ImageOutputs.d.ts +0 -14
- package/dist/types/ImageOutputs.js +0 -3
- package/dist/types/ImageResponse.d.ts +0 -19
- package/dist/types/ImageResponse.js +0 -3
- package/dist/types/ImageResult.d.ts +0 -34
- package/dist/types/ImageResult.js +0 -2
- package/dist/types/ImageUsage.d.ts +0 -19
- package/dist/types/ImageUsage.js +0 -3
- package/dist/types/InputAudioFormat.d.ts +0 -13
- package/dist/types/InputAudioFormat.js +0 -3
- package/dist/types/InputRecord.d.ts +0 -16
- package/dist/types/InputRecord.js +0 -2
- package/dist/types/LanguageModelPromptMessage.d.ts +0 -20
- package/dist/types/LanguageModelPromptMessage.js +0 -2
- package/dist/types/MessageContent.d.ts +0 -5
- package/dist/types/MessageContent.js +0 -2
- package/dist/types/Modality.d.ts +0 -4
- package/dist/types/Modality.js +0 -3
- package/dist/types/ModelCapabilities.d.ts +0 -21
- package/dist/types/ModelCapabilities.js +0 -3
- package/dist/types/ModelCost.d.ts +0 -10
- package/dist/types/ModelCost.js +0 -3
- package/dist/types/ModelId.d.ts +0 -7
- package/dist/types/ModelId.js +0 -3
- package/dist/types/ModelLimits.d.ts +0 -17
- package/dist/types/ModelLimits.js +0 -3
- package/dist/types/ModelMessage.d.ts +0 -9
- package/dist/types/ModelMessage.js +0 -2
- package/dist/types/ModelModalities.d.ts +0 -8
- package/dist/types/ModelModalities.js +0 -2
- package/dist/types/ModelPrompt.d.ts +0 -7
- package/dist/types/ModelPrompt.js +0 -2
- package/dist/types/ModelSpec.d.ts +0 -33
- package/dist/types/ModelSpec.js +0 -2
- package/dist/types/ModelType.d.ts +0 -4
- package/dist/types/ModelType.js +0 -3
- package/dist/types/OutcomeRecord.d.ts +0 -19
- package/dist/types/OutcomeRecord.js +0 -2
- package/dist/types/OutcomeStatus.d.ts +0 -4
- package/dist/types/OutcomeStatus.js +0 -3
- package/dist/types/PrefixBreak.d.ts +0 -11
- package/dist/types/PrefixBreak.js +0 -2
- package/dist/types/PromptTokensDetails.d.ts +0 -4
- package/dist/types/PromptTokensDetails.js +0 -3
- package/dist/types/ProviderAuditSpec.d.ts +0 -33
- package/dist/types/ProviderAuditSpec.js +0 -2
- package/dist/types/ProviderFamily.d.ts +0 -5
- package/dist/types/ProviderFamily.js +0 -3
- package/dist/types/ProviderName.d.ts +0 -258
- package/dist/types/ProviderName.js +0 -262
- package/dist/types/ProviderRecord.d.ts +0 -30
- package/dist/types/ProviderRecord.js +0 -2
- package/dist/types/ProviderTool.d.ts +0 -24
- package/dist/types/ProviderTool.js +0 -2
- package/dist/types/RawToolCall.d.ts +0 -16
- package/dist/types/RawToolCall.js +0 -2
- package/dist/types/ReasoningEffort.d.ts +0 -7
- package/dist/types/ReasoningEffort.js +0 -3
- package/dist/types/ReasoningMode.d.ts +0 -4
- package/dist/types/ReasoningMode.js +0 -3
- package/dist/types/ReasoningPart.d.ts +0 -9
- package/dist/types/ReasoningPart.js +0 -3
- package/dist/types/ReasoningSpec.d.ts +0 -39
- package/dist/types/ReasoningSpec.js +0 -2
- package/dist/types/ReasoningVisibility.d.ts +0 -4
- package/dist/types/ReasoningVisibility.js +0 -3
- package/dist/types/Recording.d.ts +0 -56
- package/dist/types/Recording.js +0 -2
- package/dist/types/RequestCacheHints.d.ts +0 -9
- package/dist/types/RequestCacheHints.js +0 -3
- package/dist/types/RequestInfo.d.ts +0 -12
- package/dist/types/RequestInfo.js +0 -2
- package/dist/types/RerankingCallOptions.d.ts +0 -42
- package/dist/types/RerankingCallOptions.js +0 -2
- package/dist/types/RerankingDocuments.d.ts +0 -15
- package/dist/types/RerankingDocuments.js +0 -2
- package/dist/types/RerankingRank.d.ts +0 -13
- package/dist/types/RerankingRank.js +0 -3
- package/dist/types/RerankingResponse.d.ts +0 -28
- package/dist/types/RerankingResponse.js +0 -2
- package/dist/types/RerankingResult.d.ts +0 -31
- package/dist/types/RerankingResult.js +0 -2
- package/dist/types/ResponseFormat.d.ts +0 -11
- package/dist/types/ResponseFormat.js +0 -2
- package/dist/types/ResponseInfo.d.ts +0 -30
- package/dist/types/ResponseInfo.js +0 -2
- package/dist/types/ResponseMetadata.d.ts +0 -8
- package/dist/types/ResponseMetadata.js +0 -3
- package/dist/types/ResponseRecord.d.ts +0 -13
- package/dist/types/ResponseRecord.js +0 -3
- package/dist/types/RetryError.d.ts +0 -9
- package/dist/types/RetryError.js +0 -2
- package/dist/types/RetryErrorReason.d.ts +0 -4
- package/dist/types/RetryErrorReason.js +0 -3
- package/dist/types/Role.d.ts +0 -4
- package/dist/types/Role.js +0 -3
- package/dist/types/RuntimeModel.d.ts +0 -22
- package/dist/types/RuntimeModel.js +0 -3
- package/dist/types/SearchCallOptions.d.ts +0 -55
- package/dist/types/SearchCallOptions.js +0 -2
- package/dist/types/SearchResponse.d.ts +0 -16
- package/dist/types/SearchResponse.js +0 -2
- package/dist/types/SearchResult.d.ts +0 -32
- package/dist/types/SearchResult.js +0 -2
- package/dist/types/SearchResultItem.d.ts +0 -33
- package/dist/types/SearchResultItem.js +0 -2
- package/dist/types/SessionCall.d.ts +0 -20
- package/dist/types/SessionCall.js +0 -3
- package/dist/types/SessionChainView.d.ts +0 -10
- package/dist/types/SessionChainView.js +0 -2
- package/dist/types/SessionSource.d.ts +0 -4
- package/dist/types/SessionSource.js +0 -3
- package/dist/types/SessionStepStat.d.ts +0 -27
- package/dist/types/SessionStepStat.js +0 -2
- package/dist/types/SessionView.d.ts +0 -16
- package/dist/types/SessionView.js +0 -2
- package/dist/types/Size.d.ts +0 -11
- package/dist/types/Size.js +0 -3
- package/dist/types/SourcePart.d.ts +0 -9
- package/dist/types/SourcePart.js +0 -3
- package/dist/types/SpeechCallOptions.d.ts +0 -56
- package/dist/types/SpeechCallOptions.js +0 -2
- package/dist/types/SpeechRequest.d.ts +0 -10
- package/dist/types/SpeechRequest.js +0 -2
- package/dist/types/SpeechResponse.d.ts +0 -24
- package/dist/types/SpeechResponse.js +0 -2
- package/dist/types/SpeechResult.d.ts +0 -34
- package/dist/types/SpeechResult.js +0 -2
- package/dist/types/StreamPart.d.ts +0 -173
- package/dist/types/StreamPart.js +0 -2
- package/dist/types/StreamTextResultAggregated.d.ts +0 -74
- package/dist/types/StreamTextResultAggregated.js +0 -2
- package/dist/types/TimeoutConfiguration.d.ts +0 -32
- package/dist/types/TimeoutConfiguration.js +0 -3
- package/dist/types/TimingRecord.d.ts +0 -7
- package/dist/types/TimingRecord.js +0 -3
- package/dist/types/TokenUsage.d.ts +0 -29
- package/dist/types/TokenUsage.js +0 -3
- package/dist/types/Tool.d.ts +0 -12
- package/dist/types/Tool.js +0 -2
- package/dist/types/ToolCall.d.ts +0 -48
- package/dist/types/ToolCall.js +0 -2
- package/dist/types/ToolCallRepairReply.d.ts +0 -19
- package/dist/types/ToolCallRepairReply.js +0 -2
- package/dist/types/ToolChoice.d.ts +0 -12
- package/dist/types/ToolChoice.js +0 -3
- package/dist/types/ToolResult.d.ts +0 -22
- package/dist/types/ToolResult.js +0 -2
- package/dist/types/TraceFilter.d.ts +0 -9
- package/dist/types/TraceFilter.js +0 -3
- package/dist/types/TraceRecord.d.ts +0 -54
- package/dist/types/TraceRecord.js +0 -2
- package/dist/types/TraceStats.d.ts +0 -20
- package/dist/types/TraceStats.js +0 -3
- package/dist/types/TranscriptionCallOptions.d.ts +0 -38
- package/dist/types/TranscriptionCallOptions.js +0 -2
- package/dist/types/TranscriptionRequest.d.ts +0 -9
- package/dist/types/TranscriptionRequest.js +0 -3
- package/dist/types/TranscriptionResponse.d.ts +0 -24
- package/dist/types/TranscriptionResponse.js +0 -2
- package/dist/types/TranscriptionResult.d.ts +0 -46
- package/dist/types/TranscriptionResult.js +0 -2
- package/dist/types/TranscriptionSegment.d.ts +0 -17
- package/dist/types/TranscriptionSegment.js +0 -3
- package/dist/types/TranscriptionStreamPart.d.ts +0 -70
- package/dist/types/TranscriptionStreamPart.js +0 -2
- package/dist/types/UploadFileCallOptions.d.ts +0 -27
- package/dist/types/UploadFileCallOptions.js +0 -2
- package/dist/types/UploadFileData.d.ts +0 -17
- package/dist/types/UploadFileData.js +0 -2
- package/dist/types/UploadFileResult.d.ts +0 -35
- package/dist/types/UploadFileResult.js +0 -2
- package/dist/types/Usage.d.ts +0 -13
- package/dist/types/Usage.js +0 -2
- package/dist/types/UsageSnapshot.d.ts +0 -18
- package/dist/types/UsageSnapshot.js +0 -2
- package/dist/types/Verdict.d.ts +0 -23
- package/dist/types/Verdict.js +0 -2
- package/dist/types/VerdictConfidence.d.ts +0 -4
- package/dist/types/VerdictConfidence.js +0 -3
- package/dist/types/VerdictKind.d.ts +0 -4
- package/dist/types/VerdictKind.js +0 -3
- package/dist/types/VideoCallOptions.d.ts +0 -84
- package/dist/types/VideoCallOptions.js +0 -2
- package/dist/types/VideoData.d.ts +0 -22
- package/dist/types/VideoData.js +0 -3
- package/dist/types/VideoFile.d.ts +0 -29
- package/dist/types/VideoFile.js +0 -2
- package/dist/types/VideoFileData.d.ts +0 -8
- package/dist/types/VideoFileData.js +0 -3
- package/dist/types/VideoFrameImage.d.ts +0 -17
- package/dist/types/VideoFrameImage.js +0 -2
- package/dist/types/VideoFrameType.d.ts +0 -6
- package/dist/types/VideoFrameType.js +0 -3
- package/dist/types/VideoPollOptions.d.ts +0 -13
- package/dist/types/VideoPollOptions.js +0 -3
- package/dist/types/VideoResponse.d.ts +0 -19
- package/dist/types/VideoResponse.js +0 -3
- package/dist/types/VideoResult.d.ts +0 -29
- package/dist/types/VideoResult.js +0 -2
- package/dist/types/Warning.d.ts +0 -23
- package/dist/types/Warning.js +0 -3
- package/dist/types/serde_json/JsonValue.d.ts +0 -3
- package/dist/types/serde_json/JsonValue.js +0 -3
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.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
80
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
96
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
117
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
133
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
150
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
166
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
185
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
201
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
217
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
237
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
253
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
274
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
290
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
308
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
324
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
342
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
358
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
376
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
392
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
410
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
426
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
443
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
459
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
479
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
495
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
511
|
+
if (bindingPackageVersion !== '0.6.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.6.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.
|
|
652
|
-
throw new Error(`WASI binding package version mismatch, expected 0.
|
|
651
|
+
if (bindingPackageVersion !== '0.6.1') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 0.6.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,61 +700,6 @@ if (!nativeBinding) {
|
|
|
700
700
|
}
|
|
701
701
|
|
|
702
702
|
module.exports = nativeBinding
|
|
703
|
-
module.exports.
|
|
704
|
-
module.exports.
|
|
705
|
-
module.exports.
|
|
706
|
-
module.exports.ImageModel = nativeBinding.ImageModel
|
|
707
|
-
module.exports.Model = nativeBinding.Model
|
|
708
|
-
module.exports.ProviderHandle = nativeBinding.ProviderHandle
|
|
709
|
-
module.exports.RerankingModel = nativeBinding.RerankingModel
|
|
710
|
-
module.exports.SearchModel = nativeBinding.SearchModel
|
|
711
|
-
module.exports.SpeechModel = nativeBinding.SpeechModel
|
|
712
|
-
module.exports.StreamTextGenerator = nativeBinding.StreamTextGenerator
|
|
713
|
-
module.exports.TranscriptionModel = nativeBinding.TranscriptionModel
|
|
714
|
-
module.exports.TranscriptionSession = nativeBinding.TranscriptionSession
|
|
715
|
-
module.exports.VideoModel = nativeBinding.VideoModel
|
|
716
|
-
module.exports.__registerErrorClasses = nativeBinding.__registerErrorClasses
|
|
717
|
-
module.exports.anthropic = nativeBinding.anthropic
|
|
718
|
-
module.exports.anthropicAws = nativeBinding.anthropicAws
|
|
719
|
-
module.exports.applyToolCallRepair = nativeBinding.applyToolCallRepair
|
|
720
|
-
module.exports.applyToolCallRepairToResult = nativeBinding.applyToolCallRepairToResult
|
|
721
|
-
module.exports.azure = nativeBinding.azure
|
|
722
|
-
module.exports.bedrock = nativeBinding.bedrock
|
|
723
|
-
module.exports.cohere = nativeBinding.cohere
|
|
724
|
-
module.exports.cohereEmbedding = nativeBinding.cohereEmbedding
|
|
725
|
-
module.exports.cohereReranking = nativeBinding.cohereReranking
|
|
726
|
-
module.exports.createProvider = nativeBinding.createProvider
|
|
727
|
-
module.exports.deepseek = nativeBinding.deepseek
|
|
728
|
-
module.exports.getModelSpecs = nativeBinding.getModelSpecs
|
|
729
|
-
module.exports.google = nativeBinding.google
|
|
730
|
-
module.exports.googleEmbedding = nativeBinding.googleEmbedding
|
|
731
|
-
module.exports.googleImage = nativeBinding.googleImage
|
|
732
|
-
module.exports.googleVideo = nativeBinding.googleVideo
|
|
733
|
-
module.exports.initLogging = nativeBinding.initLogging
|
|
734
|
-
module.exports.initProxy = nativeBinding.initProxy
|
|
735
|
-
module.exports.initRecording = nativeBinding.initRecording
|
|
736
|
-
module.exports.initRecordingRing = nativeBinding.initRecordingRing
|
|
737
|
-
module.exports.initSessionInfer = nativeBinding.initSessionInfer
|
|
738
|
-
module.exports.initSessionStore = nativeBinding.initSessionStore
|
|
739
|
-
module.exports.listSessions = nativeBinding.listSessions
|
|
740
|
-
module.exports.mistral = nativeBinding.mistral
|
|
741
|
-
module.exports.moa = nativeBinding.moa
|
|
742
|
-
module.exports.mockReplay = nativeBinding.mockReplay
|
|
743
|
-
module.exports.openai = nativeBinding.openai
|
|
744
|
-
module.exports.openaiEmbedding = nativeBinding.openaiEmbedding
|
|
745
|
-
module.exports.openaiFiles = nativeBinding.openaiFiles
|
|
746
|
-
module.exports.openaiImage = nativeBinding.openaiImage
|
|
747
|
-
module.exports.openaiSpeech = nativeBinding.openaiSpeech
|
|
748
|
-
module.exports.openaiTranscription = nativeBinding.openaiTranscription
|
|
749
|
-
module.exports.provider = nativeBinding.provider
|
|
750
|
-
module.exports.recordingFlush = nativeBinding.recordingFlush
|
|
751
|
-
module.exports.recordingStop = nativeBinding.recordingStop
|
|
752
|
-
module.exports.recordingTryFlush = nativeBinding.recordingTryFlush
|
|
753
|
-
module.exports.registerProviders = nativeBinding.registerProviders
|
|
754
|
-
module.exports.router = nativeBinding.router
|
|
755
|
-
module.exports.sessionCalls = nativeBinding.sessionCalls
|
|
756
|
-
module.exports.startTranscriptionSession = nativeBinding.startTranscriptionSession
|
|
757
|
-
module.exports.tavilySearch = nativeBinding.tavilySearch
|
|
758
|
-
module.exports.toolCallRepairContext = nativeBinding.toolCallRepairContext
|
|
759
|
-
module.exports.vertex = nativeBinding.vertex
|
|
760
|
-
module.exports.xai = nativeBinding.xai
|
|
703
|
+
module.exports.Abort = nativeBinding.Abort
|
|
704
|
+
module.exports.FrameIterator = nativeBinding.FrameIterator
|
|
705
|
+
module.exports.Runtime = nativeBinding.Runtime
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcships/aimux",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Unified LLM service layer — one API for
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"description": "Unified LLM service layer — one API for 327 AI providers (Rust core, Node.js binding)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"napi": {
|
|
28
28
|
"binaryName": "aimux",
|
|
29
29
|
"packageName": "@arcships/aimux",
|
|
30
|
-
"dtsHeader": "/* auto-generated by NAPI-RS */\n/* eslint-disable */\
|
|
30
|
+
"dtsHeader": "/* auto-generated by NAPI-RS */\n/* eslint-disable */\nexport type WireResult<T> = T\n",
|
|
31
31
|
"targets": [
|
|
32
32
|
"x86_64-pc-windows-msvc",
|
|
33
33
|
"aarch64-pc-windows-msvc",
|
|
@@ -40,13 +40,16 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "napi build --platform --release",
|
|
42
42
|
"build:debug": "napi build --platform",
|
|
43
|
-
"build:typed": "tsc -p tsconfig.json",
|
|
44
|
-
"test": "
|
|
45
|
-
"prepublishOnly": "npm run build:typed && napi prepublish -t npm --no-gh-release"
|
|
43
|
+
"build:typed": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.json",
|
|
44
|
+
"test": "node --experimental-strip-types --test __test__/*.test.ts __test__/*.native.ts __test__/*.spec.ts",
|
|
45
|
+
"prepublishOnly": "npm run build:typed && napi prepublish -t npm --no-gh-release",
|
|
46
|
+
"test:native": "node --experimental-strip-types --test __test__/*.native.ts",
|
|
47
|
+
"test:facade": "node --experimental-strip-types --test __test__/*.test.ts",
|
|
48
|
+
"test:lifecycle": "node --experimental-strip-types --test __test__/event_loop.spec.ts",
|
|
49
|
+
"test:c-parity": "node --experimental-strip-types --test __test__/abi.parity.ts"
|
|
46
50
|
},
|
|
47
51
|
"devDependencies": {
|
|
48
52
|
"@napi-rs/cli": "3.8.2",
|
|
49
|
-
"ava": "^6.0.0",
|
|
50
53
|
"typescript": "^5.7.0"
|
|
51
54
|
},
|
|
52
55
|
"engines": {
|
|
@@ -54,11 +57,11 @@
|
|
|
54
57
|
},
|
|
55
58
|
"license": "MIT",
|
|
56
59
|
"optionalDependencies": {
|
|
57
|
-
"@arcships/aimux-win32-x64-msvc": "0.
|
|
58
|
-
"@arcships/aimux-win32-arm64-msvc": "0.
|
|
59
|
-
"@arcships/aimux-darwin-x64": "0.
|
|
60
|
-
"@arcships/aimux-darwin-arm64": "0.
|
|
61
|
-
"@arcships/aimux-linux-x64-gnu": "0.
|
|
62
|
-
"@arcships/aimux-linux-arm64-gnu": "0.
|
|
60
|
+
"@arcships/aimux-win32-x64-msvc": "0.6.1",
|
|
61
|
+
"@arcships/aimux-win32-arm64-msvc": "0.6.1",
|
|
62
|
+
"@arcships/aimux-darwin-x64": "0.6.1",
|
|
63
|
+
"@arcships/aimux-darwin-arm64": "0.6.1",
|
|
64
|
+
"@arcships/aimux-linux-x64-gnu": "0.6.1",
|
|
65
|
+
"@arcships/aimux-linux-arm64-gnu": "0.6.1"
|
|
63
66
|
}
|
|
64
67
|
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import type { ApiCallError } from "./ApiCallError";
|
|
2
|
-
import type { RetryError } from "./RetryError";
|
|
3
|
-
/**
|
|
4
|
-
* Unified error type for all aimux operations.
|
|
5
|
-
*
|
|
6
|
-
* Variants are cut by *what the caller does about it*, not by where the
|
|
7
|
-
* failure came from. `ApiCallError` is boxed only to keep the Rust enum
|
|
8
|
-
* compact; serde and every binding still observe the same object shape.
|
|
9
|
-
*/
|
|
10
|
-
export type AiMuxError = {
|
|
11
|
-
"ApiCall": ApiCallError;
|
|
12
|
-
} | {
|
|
13
|
-
"Retry": RetryError;
|
|
14
|
-
} | {
|
|
15
|
-
"JsonParse": string;
|
|
16
|
-
} | {
|
|
17
|
-
"InvalidResponseData": string;
|
|
18
|
-
} | {
|
|
19
|
-
"NoSuchTool": {
|
|
20
|
-
tool_name: string;
|
|
21
|
-
available_tools?: Array<string> | null;
|
|
22
|
-
/**
|
|
23
|
-
* Original argument text, when supplied by the provider. Absent in
|
|
24
|
-
* older serialized errors and errors constructed without a call.
|
|
25
|
-
*/
|
|
26
|
-
tool_input?: string | null;
|
|
27
|
-
};
|
|
28
|
-
} | {
|
|
29
|
-
"InvalidToolInput": {
|
|
30
|
-
tool_name: string;
|
|
31
|
-
tool_input: string;
|
|
32
|
-
cause: string;
|
|
33
|
-
};
|
|
34
|
-
} | {
|
|
35
|
-
"ToolCallRepair": {
|
|
36
|
-
original_error: AiMuxError;
|
|
37
|
-
cause: AiMuxError;
|
|
38
|
-
};
|
|
39
|
-
} | {
|
|
40
|
-
"InvalidArgument": string;
|
|
41
|
-
} | {
|
|
42
|
-
"InvalidPrompt": string;
|
|
43
|
-
} | {
|
|
44
|
-
"TokenExpired": string;
|
|
45
|
-
} | {
|
|
46
|
-
"UnsupportedFunctionality": string;
|
|
47
|
-
} | {
|
|
48
|
-
"NoSuchModel": {
|
|
49
|
-
model_id: string;
|
|
50
|
-
/**
|
|
51
|
-
* What kind of model was requested (`"languageModel"`,
|
|
52
|
-
* `"imageModel"`, …), the AI SDK's `modelType`.
|
|
53
|
-
*/
|
|
54
|
-
model_type: string;
|
|
55
|
-
};
|
|
56
|
-
} | {
|
|
57
|
-
"NoSuchProvider": {
|
|
58
|
-
provider_id: string;
|
|
59
|
-
};
|
|
60
|
-
} | {
|
|
61
|
-
"Timeout": string;
|
|
62
|
-
} | {
|
|
63
|
-
"Aborted": string;
|
|
64
|
-
} | {
|
|
65
|
-
"Other": string;
|
|
66
|
-
};
|
package/dist/types/AiMuxError.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type { JsonValue } from "./serde_json/JsonValue";
|
|
2
|
-
/**
|
|
3
|
-
* What a failed API call observed — the field set of the AI SDK's
|
|
4
|
-
* `APICallError` (`statusCode` / `responseBody`), which this project's error
|
|
5
|
-
* taxonomy mirrors (docs/internal/vercel-research/07-kernel-infrastructure.md).
|
|
6
|
-
*
|
|
7
|
-
* Carried by [`AiMuxError::ApiCall`] alone. There are no per-status
|
|
8
|
-
* variants: a 401, 404 or 429 is an `ApiCall` error whose classification is
|
|
9
|
-
* read from `status_code`, exactly as the AI SDK reads
|
|
10
|
-
* `APICallError.statusCode`. Transport failures (connection reset, DNS,
|
|
11
|
-
* body read) are `ApiCall` errors too — no response arrived, so
|
|
12
|
-
* `status_code` is `None` and `is_retryable` is `true`, exactly as the AI
|
|
13
|
-
* SDK's `handleFetchError` builds an `APICallError` with no `statusCode`
|
|
14
|
-
* and `isRetryable: true`. `message` holds the provider's text verbatim when
|
|
15
|
-
* one is available; transport and parsing failures use a library message
|
|
16
|
-
* with the source detail appended. The HTTP status is always a field, never
|
|
17
|
-
* baked into the string; `Display` composes the human-readable form from the
|
|
18
|
-
* fields at print time, so nothing downstream has to parse it back out.
|
|
19
|
-
*
|
|
20
|
-
* Every producer must provide the sanitized request URL and request values.
|
|
21
|
-
* This keeps transport and response failures self-contained and matches the
|
|
22
|
-
* AI SDK's `APICallError` contract.
|
|
23
|
-
*/
|
|
24
|
-
export type ApiCallError = {
|
|
25
|
-
/**
|
|
26
|
-
* Sanitized request URL. Required for every API-derived failure.
|
|
27
|
-
*/
|
|
28
|
-
url: string;
|
|
29
|
-
/**
|
|
30
|
-
* Sanitized request values used to create the API request.
|
|
31
|
-
*/
|
|
32
|
-
request_body_values: JsonValue;
|
|
33
|
-
/**
|
|
34
|
-
* HTTP status of the response, when it came from one
|
|
35
|
-
* (`APICallError.statusCode`). Always the *observed* status: the HTTP
|
|
36
|
-
* layer fills it for every response-derived error; errors built without
|
|
37
|
-
* an HTTP exchange leave it `None`.
|
|
38
|
-
*/
|
|
39
|
-
status_code: number | null;
|
|
40
|
-
/**
|
|
41
|
-
* Provider's machine-readable code (OpenAI's `code`/`type`,
|
|
42
|
-
* e.g. `"rate_limit_exceeded"` vs `"insufficient_quota"`). Never an HTTP
|
|
43
|
-
* status. Our normalized take on `APICallError.data`.
|
|
44
|
-
*/
|
|
45
|
-
provider_code: string | null;
|
|
46
|
-
/**
|
|
47
|
-
* Human-readable failure text. Provider text is verbatim when available;
|
|
48
|
-
* locally detected transport/parse failures include their source detail.
|
|
49
|
-
* Never includes an HTTP status prefix.
|
|
50
|
-
*/
|
|
51
|
-
message: string;
|
|
52
|
-
/**
|
|
53
|
-
* The raw response body, verbatim (`APICallError.responseBody`) — the
|
|
54
|
-
* lossless evidence when `message`/`provider_code` are extractions.
|
|
55
|
-
* `None` when the error did not come from a response body.
|
|
56
|
-
*/
|
|
57
|
-
response_body: string | null;
|
|
58
|
-
/**
|
|
59
|
-
* Sanitized response headers.
|
|
60
|
-
*/
|
|
61
|
-
response_headers: {
|
|
62
|
-
[key in string]: string;
|
|
63
|
-
} | null;
|
|
64
|
-
/**
|
|
65
|
-
* Parsed provider error data.
|
|
66
|
-
*/
|
|
67
|
-
data: JsonValue | null;
|
|
68
|
-
/**
|
|
69
|
-
* Whether retrying can help (`APICallError.isRetryable`) — stored at
|
|
70
|
-
* construction, exactly like the AI SDK: the response path computes it
|
|
71
|
-
* from the status (408/409/429 or 5xx), and the transport path (no response, so
|
|
72
|
-
* no status to compute from) sets it to `true` explicitly.
|
|
73
|
-
*/
|
|
74
|
-
is_retryable: boolean;
|
|
75
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Aspect ratio in `{width}:{height}` format (e.g. `"16:9"`).
|
|
3
|
-
*
|
|
4
|
-
* Newtype that enforces the `W:H` format used by V4 image and video
|
|
5
|
-
* `aspectRatio` options. Aligned with the TS template-literal type
|
|
6
|
-
* `` `${number}:${number}` ``.
|
|
7
|
-
*/
|
|
8
|
-
export type AspectRatio = {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
};
|
package/dist/types/AudioChunk.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated audio: a base64-encoded string or raw binary bytes.
|
|
3
|
-
*
|
|
4
|
-
* The TS result type is `string | Uint8Array`. Providers should return data
|
|
5
|
-
* without unnecessary conversion.
|
|
6
|
-
*/
|
|
7
|
-
export type AudioData = {
|
|
8
|
-
"Base64": string;
|
|
9
|
-
} | {
|
|
10
|
-
"Binary": Array<number>;
|
|
11
|
-
};
|
package/dist/types/AudioData.js
DELETED
package/dist/types/AudioInput.js
DELETED