@arcships/aimux 0.3.0 → 0.6.0
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 -69
- package/dist/error.js +72 -160
- package/dist/generated/ops.d.ts +75 -0
- package/dist/generated/ops.js +80 -0
- package/dist/generated/types.d.ts +5607 -0
- package/dist/{types/CallOptions.js → generated/types.js} +1 -0
- package/dist/index.d.ts +144 -184
- package/dist/index.js +314 -295
- package/dist/native.d.ts +30 -0
- package/dist/native.js +116 -0
- package/dist/types.d.ts +1 -139
- package/dist/types.js +0 -3
- package/index.d.ts +21 -469
- package/index.js +57 -107
- package/package.json +20 -17
- package/dist/types/AiMuxError.d.ts +0 -48
- package/dist/types/AiMuxError.js +0 -2
- package/dist/types/ApiCallError.d.ts +0 -65
- package/dist/types/ApiCallError.js +0 -3
- 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 -106
- package/dist/types/ContentPart.js +0 -2
- package/dist/types/EmbeddingCallOptions.d.ts +0 -24
- 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 -77
- 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 -23
- 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 -54
- 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 -14
- 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/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 -33
- 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/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 -46
- 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 -47
- 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 -161
- 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 -23
- 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 -33
- package/dist/types/ToolCall.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 -29
- 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 -69
- 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/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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0' && 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.0 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.0') {
|
|
652
|
+
throw new Error(`WASI binding package version mismatch, expected 0.6.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
653
653
|
}
|
|
654
654
|
}
|
|
655
655
|
wasiBinding = require('@arcships/aimux-wasm32-wasi')
|
|
@@ -700,56 +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.anthropic = nativeBinding.anthropic
|
|
717
|
-
module.exports.anthropicAws = nativeBinding.anthropicAws
|
|
718
|
-
module.exports.azure = nativeBinding.azure
|
|
719
|
-
module.exports.bedrock = nativeBinding.bedrock
|
|
720
|
-
module.exports.cohere = nativeBinding.cohere
|
|
721
|
-
module.exports.cohereEmbedding = nativeBinding.cohereEmbedding
|
|
722
|
-
module.exports.cohereReranking = nativeBinding.cohereReranking
|
|
723
|
-
module.exports.createProvider = nativeBinding.createProvider
|
|
724
|
-
module.exports.deepseek = nativeBinding.deepseek
|
|
725
|
-
module.exports.getModelSpecs = nativeBinding.getModelSpecs
|
|
726
|
-
module.exports.google = nativeBinding.google
|
|
727
|
-
module.exports.googleEmbedding = nativeBinding.googleEmbedding
|
|
728
|
-
module.exports.googleImage = nativeBinding.googleImage
|
|
729
|
-
module.exports.googleVideo = nativeBinding.googleVideo
|
|
730
|
-
module.exports.initLogging = nativeBinding.initLogging
|
|
731
|
-
module.exports.initProxy = nativeBinding.initProxy
|
|
732
|
-
module.exports.initRecording = nativeBinding.initRecording
|
|
733
|
-
module.exports.initRecordingRing = nativeBinding.initRecordingRing
|
|
734
|
-
module.exports.initSessionInfer = nativeBinding.initSessionInfer
|
|
735
|
-
module.exports.initSessionStore = nativeBinding.initSessionStore
|
|
736
|
-
module.exports.listSessions = nativeBinding.listSessions
|
|
737
|
-
module.exports.mistral = nativeBinding.mistral
|
|
738
|
-
module.exports.moa = nativeBinding.moa
|
|
739
|
-
module.exports.mockReplay = nativeBinding.mockReplay
|
|
740
|
-
module.exports.openai = nativeBinding.openai
|
|
741
|
-
module.exports.openaiEmbedding = nativeBinding.openaiEmbedding
|
|
742
|
-
module.exports.openaiFiles = nativeBinding.openaiFiles
|
|
743
|
-
module.exports.openaiImage = nativeBinding.openaiImage
|
|
744
|
-
module.exports.openaiSpeech = nativeBinding.openaiSpeech
|
|
745
|
-
module.exports.openaiTranscription = nativeBinding.openaiTranscription
|
|
746
|
-
module.exports.provider = nativeBinding.provider
|
|
747
|
-
module.exports.recordingFlush = nativeBinding.recordingFlush
|
|
748
|
-
module.exports.recordingStop = nativeBinding.recordingStop
|
|
749
|
-
module.exports.registerProviders = nativeBinding.registerProviders
|
|
750
|
-
module.exports.router = nativeBinding.router
|
|
751
|
-
module.exports.sessionCalls = nativeBinding.sessionCalls
|
|
752
|
-
module.exports.startTranscriptionSession = nativeBinding.startTranscriptionSession
|
|
753
|
-
module.exports.tavilySearch = nativeBinding.tavilySearch
|
|
754
|
-
module.exports.vertex = nativeBinding.vertex
|
|
755
|
-
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,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcships/aimux",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Unified LLM service layer — one API for
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"types": "index.d.ts",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Unified LLM service layer — one API for 327 AI providers (Rust core, Node.js binding)",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"index.js",
|
|
9
9
|
"index.d.ts",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"default": "./dist/index.js"
|
|
20
20
|
},
|
|
21
21
|
"./raw": {
|
|
22
|
-
"types": "./
|
|
23
|
-
"default": "./
|
|
22
|
+
"types": "./dist/native.d.ts",
|
|
23
|
+
"default": "./dist/native.js"
|
|
24
24
|
},
|
|
25
25
|
"./package.json": "./package.json"
|
|
26
26
|
},
|
|
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.0",
|
|
61
|
+
"@arcships/aimux-win32-arm64-msvc": "0.6.0",
|
|
62
|
+
"@arcships/aimux-darwin-x64": "0.6.0",
|
|
63
|
+
"@arcships/aimux-darwin-arm64": "0.6.0",
|
|
64
|
+
"@arcships/aimux-linux-x64-gnu": "0.6.0",
|
|
65
|
+
"@arcships/aimux-linux-arm64-gnu": "0.6.0"
|
|
63
66
|
}
|
|
64
67
|
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { ApiCallError } from "./ApiCallError";
|
|
2
|
-
/**
|
|
3
|
-
* Unified error type for all aimux operations.
|
|
4
|
-
*
|
|
5
|
-
* Variants are cut by *what the caller does about it*, not by where the
|
|
6
|
-
* failure came from. `ApiCall` carries the [`ApiCallError`] detail inline
|
|
7
|
-
* (unboxed, like async-openai's `ApiError(ApiError)`); the size guard in
|
|
8
|
-
* `error_value_golden_test` keeps the enum under clippy's
|
|
9
|
-
* `result_large_err` threshold.
|
|
10
|
-
*
|
|
11
|
-
* Constructed as a named struct literal everywhere
|
|
12
|
-
* (`ApiCallError { status_code: .., ..Default::default() }`), the same
|
|
13
|
-
* shape as the AI SDK's named-options constructor.
|
|
14
|
-
*/
|
|
15
|
-
export type AiMuxError = {
|
|
16
|
-
"ApiCall": ApiCallError;
|
|
17
|
-
} | {
|
|
18
|
-
"JsonParse": string;
|
|
19
|
-
} | {
|
|
20
|
-
"InvalidResponseData": string;
|
|
21
|
-
} | {
|
|
22
|
-
"Tool": string;
|
|
23
|
-
} | {
|
|
24
|
-
"InvalidArgument": string;
|
|
25
|
-
} | {
|
|
26
|
-
"InvalidPrompt": string;
|
|
27
|
-
} | {
|
|
28
|
-
"TokenExpired": string;
|
|
29
|
-
} | {
|
|
30
|
-
"UnsupportedFunctionality": string;
|
|
31
|
-
} | {
|
|
32
|
-
"NoSuchModel": {
|
|
33
|
-
model_id: string;
|
|
34
|
-
/**
|
|
35
|
-
* What kind of model was requested (`"languageModel"`,
|
|
36
|
-
* `"imageModel"`, …), the AI SDK's `modelType`.
|
|
37
|
-
*/
|
|
38
|
-
model_type: string;
|
|
39
|
-
};
|
|
40
|
-
} | {
|
|
41
|
-
"NoSuchProvider": {
|
|
42
|
-
provider_id: string;
|
|
43
|
-
};
|
|
44
|
-
} | {
|
|
45
|
-
"Timeout": string;
|
|
46
|
-
} | "Aborted" | {
|
|
47
|
-
"Other": string;
|
|
48
|
-
};
|
package/dist/types/AiMuxError.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* What a failed API call observed — the field set of the AI SDK's
|
|
3
|
-
* `APICallError` (`statusCode` / `responseBody`), which this project's error
|
|
4
|
-
* taxonomy mirrors (docs/internal/vercel-research/07-kernel-infrastructure.md).
|
|
5
|
-
*
|
|
6
|
-
* Carried by [`AiMuxError::ApiCall`] alone. There are no per-status
|
|
7
|
-
* variants: a 401, 404 or 429 is an `ApiCall` error whose classification is
|
|
8
|
-
* read from `status_code`, exactly as the AI SDK reads
|
|
9
|
-
* `APICallError.statusCode`. Transport failures (connection reset, DNS,
|
|
10
|
-
* body read) are `ApiCall` errors too — no response arrived, so
|
|
11
|
-
* `status_code` is `None` and `is_retryable` is `true`, exactly as the AI
|
|
12
|
-
* SDK's `handleFetchError` builds an `APICallError` with no `statusCode`
|
|
13
|
-
* and `isRetryable: true`. `message` holds the provider's text **only** —
|
|
14
|
-
* the status is a field, never baked into the string; `Display` composes
|
|
15
|
-
* the human-readable form from the fields at print time, so nothing
|
|
16
|
-
* downstream has to parse it back out.
|
|
17
|
-
*
|
|
18
|
-
* `APICallError` fields not carried in this round: `url` /
|
|
19
|
-
* `requestBodyValues` / `responseHeaders` (the request context is not
|
|
20
|
-
* available at the error-construction sites today; all fields are
|
|
21
|
-
* `#[serde(default)]`, so adding them later is not a breaking change).
|
|
22
|
-
*/
|
|
23
|
-
export type ApiCallError = {
|
|
24
|
-
/**
|
|
25
|
-
* HTTP status of the response, when it came from one
|
|
26
|
-
* (`APICallError.statusCode`). Always the *observed* status: the HTTP
|
|
27
|
-
* layer fills it for every response-derived error; errors built without
|
|
28
|
-
* an HTTP exchange leave it `None`.
|
|
29
|
-
*/
|
|
30
|
-
status_code: number | null;
|
|
31
|
-
/**
|
|
32
|
-
* Provider's machine-readable code (OpenAI's `code`/`type`,
|
|
33
|
-
* e.g. `"rate_limit_exceeded"` vs `"insufficient_quota"`). Never an HTTP
|
|
34
|
-
* status. Our normalized take on `APICallError.data`.
|
|
35
|
-
*/
|
|
36
|
-
provider_code: string | null;
|
|
37
|
-
/**
|
|
38
|
-
* The provider's message, verbatim. No status prefix.
|
|
39
|
-
*/
|
|
40
|
-
message: string;
|
|
41
|
-
/**
|
|
42
|
-
* The raw response body, verbatim (`APICallError.responseBody`) — the
|
|
43
|
-
* lossless evidence when `message`/`provider_code` are extractions.
|
|
44
|
-
* `None` when the error did not come from a response body.
|
|
45
|
-
*/
|
|
46
|
-
response_body: string | null;
|
|
47
|
-
/**
|
|
48
|
-
* Provider-assigned request id, from the `x-request-id` / `request-id`
|
|
49
|
-
* response header when one was sent. Filled by the shared HTTP layer.
|
|
50
|
-
*/
|
|
51
|
-
request_id: string | null;
|
|
52
|
-
/**
|
|
53
|
-
* Retry hint in milliseconds, distilled from the `retry-after-ms` /
|
|
54
|
-
* `retry-after` response headers on a 429. The classification lives in
|
|
55
|
-
* `status_code`; this is the matching action input.
|
|
56
|
-
*/
|
|
57
|
-
retry_after_ms: number | null;
|
|
58
|
-
/**
|
|
59
|
-
* Whether retrying can help (`APICallError.isRetryable`) — stored at
|
|
60
|
-
* construction, exactly like the AI SDK: the response path computes it
|
|
61
|
-
* from the status (408/409/429 or 5xx), and the transport path (no response, so
|
|
62
|
-
* no status to compute from) sets it to `true` explicitly.
|
|
63
|
-
*/
|
|
64
|
-
is_retryable: boolean;
|
|
65
|
-
};
|
|
@@ -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
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type BreakKind = "SystemChanged" | "ToolsChanged" | "ConversationReset" | "Unknown";
|
package/dist/types/BreakKind.js
DELETED