@qvac/sdk 0.11.0 → 0.12.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/NOTICE +1423 -43
- package/README.md +2 -0
- package/dist/client/api/classify.d.ts +23 -0
- package/dist/client/api/classify.js +43 -0
- package/dist/client/api/get-model-info.d.ts +1 -1
- package/dist/client/api/index.d.ts +4 -0
- package/dist/client/api/index.js +4 -0
- package/dist/client/api/load-model.js +24 -1
- package/dist/client/api/transcribe.d.ts +3 -0
- package/dist/client/api/transcribe.js +13 -2
- package/dist/client/api/video.d.ts +64 -0
- package/dist/client/api/video.js +147 -0
- package/dist/client/api/vla-helpers.d.ts +45 -0
- package/dist/client/api/vla-helpers.js +130 -0
- package/dist/client/api/vla.d.ts +65 -0
- package/dist/client/api/vla.js +109 -0
- package/dist/client/config-loader/resolve-config.node.d.ts +16 -0
- package/dist/client/config-loader/resolve-config.node.js +77 -23
- package/dist/client/plugins-factory.d.ts +8 -0
- package/dist/client/plugins-factory.js +10 -0
- package/dist/client/rpc/bare-client.d.ts +1 -0
- package/dist/client/rpc/bare-client.js +66 -66
- package/dist/client/rpc/ensure-worker-ready.d.ts +9 -0
- package/dist/client/rpc/ensure-worker-ready.js +17 -0
- package/dist/client/rpc/expo-rpc-client.d.ts +1 -0
- package/dist/client/rpc/expo-rpc-client.js +4 -0
- package/dist/client/rpc/node-rpc-client.d.ts +1 -0
- package/dist/client/rpc/node-rpc-client.js +97 -5
- package/dist/client/rpc/rpc-client.js +115 -8
- package/dist/client/rpc/rpc-error.js +14 -1
- package/dist/commands/bundle/bare-pack.d.ts +13 -0
- package/dist/commands/bundle/bare-pack.js +54 -0
- package/dist/commands/bundle/constants.d.ts +7 -0
- package/dist/commands/bundle/constants.js +23 -0
- package/dist/commands/bundle/entry-gen.d.ts +2 -0
- package/dist/commands/bundle/entry-gen.js +48 -0
- package/dist/commands/bundle/index.d.ts +20 -0
- package/dist/commands/bundle/index.js +141 -0
- package/dist/commands/bundle/manifest.d.ts +21 -0
- package/dist/commands/bundle/manifest.js +193 -0
- package/dist/commands/bundle/plugins.d.ts +9 -0
- package/dist/commands/bundle/plugins.js +51 -0
- package/dist/commands/index.d.ts +5 -0
- package/dist/commands/index.js +2 -0
- package/dist/commands/verify/abi.d.ts +52 -0
- package/dist/commands/verify/abi.js +125 -0
- package/dist/commands/verify/addon-source.d.ts +43 -0
- package/dist/commands/verify/addon-source.js +75 -0
- package/dist/commands/verify/bundle-source.d.ts +12 -0
- package/dist/commands/verify/bundle-source.js +53 -0
- package/dist/commands/verify/index.d.ts +59 -0
- package/dist/commands/verify/index.js +371 -0
- package/dist/commands/verify/node-modules-source.d.ts +11 -0
- package/dist/commands/verify/node-modules-source.js +76 -0
- package/dist/commands/verify/prebuilds.d.ts +15 -0
- package/dist/commands/verify/prebuilds.js +39 -0
- package/dist/examples/classification/classify-image.d.ts +2 -0
- package/dist/examples/classification/classify-image.js +23 -0
- package/dist/examples/diffusion-txt2vid.d.ts +2 -0
- package/dist/examples/diffusion-txt2vid.js +81 -0
- package/dist/examples/plugins.js +3 -7
- package/dist/examples/tools/llamacpp-tools-gemma4.js +2 -5
- package/dist/examples/tools/llamacpp-tools-qwen35.js +2 -3
- package/dist/examples/transcription/parakeet-ctc-filesystem.js +18 -12
- package/dist/examples/transcription/parakeet-microphone-record.js +7 -12
- package/dist/examples/transcription/parakeet-microphone-stream.d.ts +2 -0
- package/dist/examples/transcription/parakeet-microphone-stream.js +79 -0
- package/dist/examples/transcription/parakeet-sortformer-streaming.d.ts +2 -0
- package/dist/examples/transcription/parakeet-sortformer-streaming.js +121 -0
- package/dist/examples/transcription/parakeet-sortformer.js +58 -55
- package/dist/examples/transcription/parakeet-tdt-filesystem.js +18 -15
- package/dist/examples/transcription/whispercpp-microphone-conversation.js +6 -1
- package/dist/examples/tts/chatterbox.js +7 -16
- package/dist/examples/tts/llm-to-tts-streaming.js +3 -10
- package/dist/examples/tts/supertonic-multilingual.js +4 -12
- package/dist/examples/tts/supertonic.js +5 -12
- package/dist/examples/vla-smolvla.d.ts +2 -0
- package/dist/examples/vla-smolvla.js +75 -0
- package/dist/examples/voice-assistant/voice-assistant.js +3 -10
- package/dist/expo/plugins/find-in-ancestor-node-modules.d.ts +14 -0
- package/dist/expo/plugins/find-in-ancestor-node-modules.js +24 -0
- package/dist/expo/plugins/get-project-root.d.ts +22 -0
- package/dist/expo/plugins/get-project-root.js +23 -0
- package/dist/expo/plugins/index.d.ts +4 -0
- package/dist/expo/plugins/index.js +4 -0
- package/dist/expo/plugins/resolve-sdk-package-dir.d.ts +9 -2
- package/dist/expo/plugins/resolve-sdk-package-dir.js +38 -11
- package/dist/expo/plugins/withDeviceInfo.js +2 -1
- package/dist/expo/plugins/withMobileBundle.d.ts +2 -17
- package/dist/expo/plugins/withMobileBundle.js +31 -85
- package/dist/index.d.ts +5 -3
- package/dist/index.js +9 -3
- package/dist/models/registry/models.d.ts +3711 -368
- package/dist/models/registry/models.js +7066 -3562
- package/dist/models/update-models/naming.js +22 -8
- package/dist/pear/pre.js +6 -2
- package/dist/schemas/cancel.d.ts +5 -0
- package/dist/schemas/cancel.js +1 -0
- package/dist/schemas/classification.d.ts +53 -0
- package/dist/schemas/classification.js +33 -0
- package/dist/schemas/common.d.ts +1001 -1739
- package/dist/schemas/common.js +6 -1
- package/dist/schemas/completion-event.d.ts +3 -0
- package/dist/schemas/completion-event.js +1 -0
- package/dist/schemas/completion-stream.d.ts +1 -0
- package/dist/schemas/download-asset.d.ts +13 -3
- package/dist/schemas/engine-addon-map.d.ts +3 -0
- package/dist/schemas/engine-addon-map.js +18 -5
- package/dist/schemas/get-model-info.d.ts +4 -0
- package/dist/schemas/get-model-info.js +2 -0
- package/dist/schemas/index.d.ts +3 -0
- package/dist/schemas/index.js +3 -0
- package/dist/schemas/llamacpp-config.d.ts +12 -2
- package/dist/schemas/load-model.d.ts +6152 -10764
- package/dist/schemas/load-model.js +75 -7
- package/dist/schemas/model-src-utils.d.ts +22 -2
- package/dist/schemas/model-types.d.ts +46 -6
- package/dist/schemas/model-types.js +28 -5
- package/dist/schemas/ocr.d.ts +5 -0
- package/dist/schemas/plugin.d.ts +20 -5
- package/dist/schemas/plugin.js +21 -4
- package/dist/schemas/registry.d.ts +44 -0
- package/dist/schemas/registry.js +5 -0
- package/dist/schemas/reload-config.d.ts +22 -2
- package/dist/schemas/sdcpp-config.d.ts +316 -1
- package/dist/schemas/sdcpp-config.js +232 -33
- package/dist/schemas/sdk-config.d.ts +654 -1324
- package/dist/schemas/sdk-config.js +16 -1
- package/dist/schemas/sdk-errors-client.d.ts +7 -0
- package/dist/schemas/sdk-errors-client.js +36 -1
- package/dist/schemas/sdk-errors-server.d.ts +3 -1
- package/dist/schemas/sdk-errors-server.js +20 -5
- package/dist/schemas/text-to-speech.d.ts +79 -696
- package/dist/schemas/text-to-speech.js +46 -19
- package/dist/schemas/transcription-config.d.ts +37 -226
- package/dist/schemas/transcription-config.js +76 -15
- package/dist/schemas/transcription.d.ts +63 -11
- package/dist/schemas/transcription.js +56 -2
- package/dist/schemas/translation-config.d.ts +60 -10
- package/dist/schemas/vla.d.ts +87 -0
- package/dist/schemas/vla.js +108 -0
- package/dist/scripts/run-unit-tests.js +8 -2
- package/dist/server/bare/ops/transcribe.d.ts +2 -1
- package/dist/server/bare/ops/transcribe.js +59 -34
- package/dist/server/bare/plugins/ggml-classification/ops/classify.d.ts +6 -0
- package/dist/server/bare/plugins/ggml-classification/ops/classify.js +30 -0
- package/dist/server/bare/plugins/ggml-classification/plugin.d.ts +32 -0
- package/dist/server/bare/plugins/ggml-classification/plugin.js +55 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-hparams.d.ts +3 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-hparams.js +12 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.d.ts +3 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.js +75 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.d.ts +54 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.js +57 -0
- package/dist/server/bare/plugins/index.d.ts +3 -1
- package/dist/server/bare/plugins/index.js +3 -1
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.js +3 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/context-overflow.d.ts +29 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/context-overflow.js +65 -0
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +6 -0
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +26 -0
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +25 -0
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +5 -0
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +67 -246
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +66 -97
- package/dist/server/bare/plugins/sdcpp-generation/ops/video.d.ts +3 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/video.js +199 -0
- package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +200 -2
- package/dist/server/bare/plugins/sdcpp-generation/plugin.js +61 -8
- package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech-stream.js +2 -15
- package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech.js +2 -1
- package/dist/server/bare/plugins/tts-ggml/plugin.d.ts +75 -0
- package/dist/server/bare/plugins/tts-ggml/plugin.js +189 -0
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +29 -4
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +12 -1
- package/dist/server/bare/registry/model-config-utils.js +7 -0
- package/dist/server/bare/runtime/request-context.d.ts +1 -1
- package/dist/server/bare/runtime-lifecycle.js +9 -9
- package/dist/server/bare/types/addon-responses.d.ts +1 -0
- package/dist/server/env.js +4 -1
- package/dist/server/plugins/index.d.ts +1 -1
- package/dist/server/plugins/index.js +1 -1
- package/dist/server/plugins/registry.d.ts +1 -0
- package/dist/server/plugins/registry.js +5 -0
- package/dist/server/rpc/handler-registry.js +4 -0
- package/dist/server/rpc/handler-selection.d.ts +9 -0
- package/dist/server/rpc/handler-selection.js +14 -0
- package/dist/server/rpc/handler-utils.js +5 -13
- package/dist/server/rpc/handlers/classify.d.ts +3 -0
- package/dist/server/rpc/handlers/classify.js +4 -0
- package/dist/server/rpc/handlers/index.d.ts +2 -0
- package/dist/server/rpc/handlers/index.js +2 -0
- package/dist/server/rpc/handlers/load-model/handler.js +4 -1
- package/dist/server/rpc/handlers/load-model/resolve.js +9 -0
- package/dist/server/rpc/handlers/video-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/video-stream.js +4 -0
- package/dist/server/rpc/profiling/operation-metrics.js +23 -0
- package/dist/server/utils/config-transform.js +1 -1
- package/dist/server/utils/tools/parsers/qwen35.js +7 -3
- package/dist/server/worker.js +14 -11
- package/dist/utils/errors-client.d.ts +23 -0
- package/dist/utils/errors-client.js +40 -0
- package/dist/utils/errors-server.d.ts +30 -2
- package/dist/utils/errors-server.js +51 -3
- package/package.json +66 -80
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +0 -490
- package/dist/server/bare/plugins/onnx-tts/plugin.js +0 -272
- package/dist/server/bare/plugins/onnx-tts/wav-helper.d.ts +0 -14
- package/dist/server/bare/plugins/onnx-tts/wav-helper.js +0 -107
- /package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech-stream.d.ts +0 -0
- /package/dist/server/bare/plugins/{onnx-tts → tts-ggml}/ops/text-to-speech.d.ts +0 -0
package/dist/schemas/common.js
CHANGED
|
@@ -19,13 +19,14 @@ import { deleteCacheRequestSchema, deleteCacheResponseSchema, } from "./delete-c
|
|
|
19
19
|
import { getModelInfoRequestSchema, getModelInfoResponseSchema, } from "./get-model-info.js";
|
|
20
20
|
import { getLoadedModelInfoRequestSchema, getLoadedModelInfoResponseSchema, } from "./get-loaded-model-info.js";
|
|
21
21
|
import { ocrStreamRequestSchema, ocrStreamResponseSchema } from "./ocr.js";
|
|
22
|
-
import { diffusionStreamRequestSchema, diffusionStreamResponseSchema, upscaleStreamRequestSchema, upscaleStreamResponseSchema, } from "./sdcpp-config.js";
|
|
22
|
+
import { diffusionStreamRequestSchema, diffusionStreamResponseSchema, videoStreamRequestSchema, videoStreamResponseSchema, upscaleStreamRequestSchema, upscaleStreamResponseSchema, } from "./sdcpp-config.js";
|
|
23
23
|
import { finetuneRequestSchema, finetuneResponseSchema, finetuneProgressResponseSchema, } from "./finetune.js";
|
|
24
24
|
import { pluginInvokeRequestSchema, pluginInvokeResponseSchema, pluginInvokeStreamRequestSchema, pluginInvokeStreamResponseSchema, } from "./plugin.js";
|
|
25
25
|
import { modelRegistryListRequestSchema, modelRegistryListResponseSchema, modelRegistrySearchRequestSchema, modelRegistrySearchResponseSchema, modelRegistryGetModelRequestSchema, modelRegistryGetModelResponseSchema, } from "./registry.js";
|
|
26
26
|
import { suspendRequestSchema, suspendResponseSchema } from "./suspend.js";
|
|
27
27
|
import { resumeRequestSchema, resumeResponseSchema } from "./resume.js";
|
|
28
28
|
import { stateRequestSchema, stateResponseSchema } from "./state.js";
|
|
29
|
+
import { classifyRequestSchema, classifyResponseSchema, } from "./classification.js";
|
|
29
30
|
export const requestSchema = z.union([
|
|
30
31
|
heartbeatRequestSchema,
|
|
31
32
|
loadModelRequestSchema,
|
|
@@ -48,6 +49,7 @@ export const requestSchema = z.union([
|
|
|
48
49
|
getLoadedModelInfoRequestSchema,
|
|
49
50
|
ocrStreamRequestSchema,
|
|
50
51
|
diffusionStreamRequestSchema,
|
|
52
|
+
videoStreamRequestSchema,
|
|
51
53
|
upscaleStreamRequestSchema,
|
|
52
54
|
finetuneRequestSchema,
|
|
53
55
|
pluginInvokeRequestSchema,
|
|
@@ -58,6 +60,7 @@ export const requestSchema = z.union([
|
|
|
58
60
|
suspendRequestSchema,
|
|
59
61
|
resumeRequestSchema,
|
|
60
62
|
stateRequestSchema,
|
|
63
|
+
classifyRequestSchema,
|
|
61
64
|
]);
|
|
62
65
|
export const responseSchema = z.discriminatedUnion("type", [
|
|
63
66
|
heartbeatResponseSchema,
|
|
@@ -84,6 +87,7 @@ export const responseSchema = z.discriminatedUnion("type", [
|
|
|
84
87
|
getLoadedModelInfoResponseSchema,
|
|
85
88
|
ocrStreamResponseSchema,
|
|
86
89
|
diffusionStreamResponseSchema,
|
|
90
|
+
videoStreamResponseSchema,
|
|
87
91
|
upscaleStreamResponseSchema,
|
|
88
92
|
finetuneResponseSchema,
|
|
89
93
|
finetuneProgressResponseSchema,
|
|
@@ -95,6 +99,7 @@ export const responseSchema = z.discriminatedUnion("type", [
|
|
|
95
99
|
suspendResponseSchema,
|
|
96
100
|
resumeResponseSchema,
|
|
97
101
|
stateResponseSchema,
|
|
102
|
+
classifyResponseSchema,
|
|
98
103
|
]);
|
|
99
104
|
export const rpcOptionsSchema = z.object({
|
|
100
105
|
timeout: z
|
|
@@ -5,6 +5,7 @@ export declare const completionStatsSchema: z.ZodObject<{
|
|
|
5
5
|
timeToFirstToken: z.ZodOptional<z.ZodNumber>;
|
|
6
6
|
tokensPerSecond: z.ZodOptional<z.ZodNumber>;
|
|
7
7
|
cacheTokens: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
8
9
|
generatedTokens: z.ZodOptional<z.ZodNumber>;
|
|
9
10
|
backendDevice: z.ZodOptional<z.ZodEnum<{
|
|
10
11
|
cpu: "cpu";
|
|
@@ -58,6 +59,7 @@ export declare const statsEventSchema: z.ZodObject<{
|
|
|
58
59
|
timeToFirstToken: z.ZodOptional<z.ZodNumber>;
|
|
59
60
|
tokensPerSecond: z.ZodOptional<z.ZodNumber>;
|
|
60
61
|
cacheTokens: z.ZodOptional<z.ZodNumber>;
|
|
62
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
61
63
|
generatedTokens: z.ZodOptional<z.ZodNumber>;
|
|
62
64
|
backendDevice: z.ZodOptional<z.ZodEnum<{
|
|
63
65
|
cpu: "cpu";
|
|
@@ -137,6 +139,7 @@ export declare const completionEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
137
139
|
timeToFirstToken: z.ZodOptional<z.ZodNumber>;
|
|
138
140
|
tokensPerSecond: z.ZodOptional<z.ZodNumber>;
|
|
139
141
|
cacheTokens: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
140
143
|
generatedTokens: z.ZodOptional<z.ZodNumber>;
|
|
141
144
|
backendDevice: z.ZodOptional<z.ZodEnum<{
|
|
142
145
|
cpu: "cpu";
|
|
@@ -4,6 +4,7 @@ export const completionStatsSchema = z.object({
|
|
|
4
4
|
timeToFirstToken: z.number().optional(),
|
|
5
5
|
tokensPerSecond: z.number().optional(),
|
|
6
6
|
cacheTokens: z.number().optional(),
|
|
7
|
+
promptTokens: z.number().optional(),
|
|
7
8
|
generatedTokens: z.number().optional(),
|
|
8
9
|
backendDevice: z.enum(["cpu", "gpu"]).optional(),
|
|
9
10
|
});
|
|
@@ -238,6 +238,7 @@ export declare const completionStreamResponseSchema: z.ZodObject<{
|
|
|
238
238
|
timeToFirstToken: z.ZodOptional<z.ZodNumber>;
|
|
239
239
|
tokensPerSecond: z.ZodOptional<z.ZodNumber>;
|
|
240
240
|
cacheTokens: z.ZodOptional<z.ZodNumber>;
|
|
241
|
+
promptTokens: z.ZodOptional<z.ZodNumber>;
|
|
241
242
|
generatedTokens: z.ZodOptional<z.ZodNumber>;
|
|
242
243
|
backendDevice: z.ZodOptional<z.ZodEnum<{
|
|
243
244
|
cpu: "cpu";
|
|
@@ -17,18 +17,23 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
17
17
|
diffusion: "diffusion";
|
|
18
18
|
tts: "tts";
|
|
19
19
|
ocr: "ocr";
|
|
20
|
+
vla: "vla";
|
|
20
21
|
"llamacpp-completion": "llamacpp-completion";
|
|
21
22
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
22
23
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
23
24
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
24
25
|
"onnx-tts": "onnx-tts";
|
|
26
|
+
"tts-ggml": "tts-ggml";
|
|
25
27
|
"parakeet-transcription": "parakeet-transcription";
|
|
26
28
|
"onnx-ocr": "onnx-ocr";
|
|
27
29
|
"sdcpp-generation": "sdcpp-generation";
|
|
30
|
+
"ggml-vla": "ggml-vla";
|
|
31
|
+
"ggml-classification": "ggml-classification";
|
|
28
32
|
llm: "llm";
|
|
29
33
|
whisper: "whisper";
|
|
30
34
|
nmt: "nmt";
|
|
31
35
|
parakeet: "parakeet";
|
|
36
|
+
classification: "classification";
|
|
32
37
|
}>, z.ZodLiteral<"vad">]>>;
|
|
33
38
|
}, z.core.$strip>]>;
|
|
34
39
|
seed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -45,7 +50,7 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
45
50
|
engine?: string | undefined;
|
|
46
51
|
expectedSize?: number | undefined;
|
|
47
52
|
sha256Checksum?: string | undefined;
|
|
48
|
-
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
53
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
49
54
|
};
|
|
50
55
|
}, {
|
|
51
56
|
assetSrc: string | {
|
|
@@ -59,7 +64,7 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
59
64
|
engine?: string | undefined;
|
|
60
65
|
expectedSize?: number | undefined;
|
|
61
66
|
sha256Checksum?: string | undefined;
|
|
62
|
-
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
67
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
63
68
|
};
|
|
64
69
|
seed?: boolean | undefined;
|
|
65
70
|
}>>;
|
|
@@ -80,18 +85,23 @@ export declare const downloadAssetOptionsToRequestSchema: z.ZodPipe<z.ZodObject<
|
|
|
80
85
|
diffusion: "diffusion";
|
|
81
86
|
tts: "tts";
|
|
82
87
|
ocr: "ocr";
|
|
88
|
+
vla: "vla";
|
|
83
89
|
"llamacpp-completion": "llamacpp-completion";
|
|
84
90
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
85
91
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
86
92
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
87
93
|
"onnx-tts": "onnx-tts";
|
|
94
|
+
"tts-ggml": "tts-ggml";
|
|
88
95
|
"parakeet-transcription": "parakeet-transcription";
|
|
89
96
|
"onnx-ocr": "onnx-ocr";
|
|
90
97
|
"sdcpp-generation": "sdcpp-generation";
|
|
98
|
+
"ggml-vla": "ggml-vla";
|
|
99
|
+
"ggml-classification": "ggml-classification";
|
|
91
100
|
llm: "llm";
|
|
92
101
|
whisper: "whisper";
|
|
93
102
|
nmt: "nmt";
|
|
94
103
|
parakeet: "parakeet";
|
|
104
|
+
classification: "classification";
|
|
95
105
|
}>, z.ZodLiteral<"vad">]>>;
|
|
96
106
|
}, z.core.$strip>]>;
|
|
97
107
|
seed: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -116,7 +126,7 @@ export declare const downloadAssetOptionsToRequestSchema: z.ZodPipe<z.ZodObject<
|
|
|
116
126
|
engine?: string | undefined;
|
|
117
127
|
expectedSize?: number | undefined;
|
|
118
128
|
sha256Checksum?: string | undefined;
|
|
119
|
-
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
129
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
120
130
|
};
|
|
121
131
|
seed?: boolean | undefined;
|
|
122
132
|
onProgress?: unknown;
|
|
@@ -5,9 +5,12 @@ export declare const ENGINE_TO_ADDON: {
|
|
|
5
5
|
readonly "llamacpp-embedding": "embeddings";
|
|
6
6
|
readonly "nmtcpp-translation": "nmt";
|
|
7
7
|
readonly "onnx-tts": "tts";
|
|
8
|
+
readonly "tts-ggml": "tts";
|
|
8
9
|
readonly "onnx-ocr": "ocr";
|
|
9
10
|
readonly "parakeet-transcription": "parakeet";
|
|
10
11
|
readonly "sdcpp-generation": "diffusion";
|
|
12
|
+
readonly "ggml-vla": "vla";
|
|
13
|
+
readonly "ggml-classification": "classification";
|
|
11
14
|
readonly "onnx-vad": "vad";
|
|
12
15
|
};
|
|
13
16
|
export declare function resolveCanonicalEngine(engine: string): ModelRegistryEngine | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ModelType } from "./model-types.js";
|
|
2
|
-
import { ADDON_DIFFUSION, ADDON_EMBEDDING, ADDON_LLM, ADDON_NMT, ADDON_OCR, ADDON_PARAKEET, ADDON_TTS, ADDON_WHISPER, } from "./plugin.js";
|
|
2
|
+
import { ADDON_CLASSIFICATION, ADDON_DIFFUSION, ADDON_EMBEDDING, ADDON_LLM, ADDON_NMT, ADDON_OCR, ADDON_PARAKEET, ADDON_TTS, ADDON_VLA, ADDON_WHISPER, } from "./plugin.js";
|
|
3
3
|
import { modelRegistryEngineSchema, } from "./registry.js";
|
|
4
4
|
// Canonical engine → addon mapping (exhaustive). `as const` preserves
|
|
5
5
|
// per-key literals so the addon can be derived from the engine at the type level.
|
|
@@ -9,9 +9,12 @@ export const ENGINE_TO_ADDON = {
|
|
|
9
9
|
[ModelType.llamacppEmbedding]: "embeddings",
|
|
10
10
|
[ModelType.nmtcppTranslation]: "nmt",
|
|
11
11
|
[ModelType.onnxTts]: "tts",
|
|
12
|
+
[ModelType.ttsGgml]: "tts",
|
|
12
13
|
[ModelType.onnxOcr]: "ocr",
|
|
13
14
|
[ModelType.parakeetTranscription]: "parakeet",
|
|
14
15
|
[ModelType.sdcppGeneration]: "diffusion",
|
|
16
|
+
[ModelType.ggmlVla]: "vla",
|
|
17
|
+
[ModelType.ggmlClassification]: "classification",
|
|
15
18
|
"onnx-vad": "vad",
|
|
16
19
|
};
|
|
17
20
|
// Legacy engine names → canonical engine.
|
|
@@ -21,29 +24,39 @@ const LEGACY_ENGINE_TO_CANONICAL = {
|
|
|
21
24
|
[ADDON_WHISPER]: ModelType.whispercppTranscription,
|
|
22
25
|
[ADDON_EMBEDDING]: ModelType.llamacppEmbedding,
|
|
23
26
|
[ADDON_NMT]: ModelType.nmtcppTranslation,
|
|
24
|
-
[ADDON_TTS]: ModelType.
|
|
27
|
+
[ADDON_TTS]: ModelType.ttsGgml,
|
|
25
28
|
[ADDON_OCR]: ModelType.onnxOcr,
|
|
26
29
|
[ADDON_PARAKEET]: ModelType.parakeetTranscription,
|
|
27
30
|
"@qvac/translation-llamacpp": ModelType.nmtcppTranslation,
|
|
28
31
|
"@qvac/vad-silero": "onnx-vad",
|
|
29
|
-
|
|
32
|
+
// Legacy package / tag names from the ONNX era — resolve to the GGML engine.
|
|
33
|
+
"@qvac/tts": ModelType.ttsGgml,
|
|
34
|
+
"@qvac/tts-onnx": ModelType.ttsGgml,
|
|
30
35
|
// Tag-style names (used by some older registry entries)
|
|
31
36
|
generation: ModelType.llamacppCompletion,
|
|
32
37
|
transcription: ModelType.whispercppTranscription,
|
|
33
38
|
embedding: ModelType.llamacppEmbedding,
|
|
34
39
|
translation: ModelType.nmtcppTranslation,
|
|
35
40
|
vad: "onnx-vad",
|
|
36
|
-
tts: ModelType.
|
|
41
|
+
tts: ModelType.ttsGgml,
|
|
37
42
|
ocr: ModelType.onnxOcr,
|
|
38
43
|
[ADDON_DIFFUSION]: ModelType.sdcppGeneration,
|
|
39
44
|
diffusion: ModelType.sdcppGeneration,
|
|
45
|
+
[ADDON_VLA]: ModelType.ggmlVla,
|
|
46
|
+
vla: ModelType.ggmlVla,
|
|
47
|
+
[ADDON_CLASSIFICATION]: ModelType.ggmlClassification,
|
|
48
|
+
classification: ModelType.ggmlClassification,
|
|
40
49
|
};
|
|
41
50
|
// Resolves any engine string (legacy or canonical) to a validated canonical engine.
|
|
42
51
|
// Returns null if the engine is not recognized.
|
|
43
52
|
export function resolveCanonicalEngine(engine) {
|
|
44
53
|
const direct = modelRegistryEngineSchema.safeParse(engine);
|
|
45
|
-
if (direct.success)
|
|
54
|
+
if (direct.success) {
|
|
55
|
+
// Registry rows and cached metadata may still say "onnx-tts"; route to GGML.
|
|
56
|
+
if (direct.data === ModelType.onnxTts)
|
|
57
|
+
return ModelType.ttsGgml;
|
|
46
58
|
return direct.data;
|
|
59
|
+
}
|
|
47
60
|
const canonical = LEGACY_ENGINE_TO_CANONICAL[engine];
|
|
48
61
|
if (canonical)
|
|
49
62
|
return canonical;
|
|
@@ -39,10 +39,12 @@ export declare const modelInfoSchema: z.ZodObject<{
|
|
|
39
39
|
diffusion: "diffusion";
|
|
40
40
|
tts: "tts";
|
|
41
41
|
ocr: "ocr";
|
|
42
|
+
vla: "vla";
|
|
42
43
|
llm: "llm";
|
|
43
44
|
whisper: "whisper";
|
|
44
45
|
nmt: "nmt";
|
|
45
46
|
parakeet: "parakeet";
|
|
47
|
+
classification: "classification";
|
|
46
48
|
vad: "vad";
|
|
47
49
|
other: "other";
|
|
48
50
|
}>;
|
|
@@ -86,10 +88,12 @@ export declare const getModelInfoResponseSchema: z.ZodObject<{
|
|
|
86
88
|
diffusion: "diffusion";
|
|
87
89
|
tts: "tts";
|
|
88
90
|
ocr: "ocr";
|
|
91
|
+
vla: "vla";
|
|
89
92
|
llm: "llm";
|
|
90
93
|
whisper: "whisper";
|
|
91
94
|
nmt: "nmt";
|
|
92
95
|
parakeet: "parakeet";
|
|
96
|
+
classification: "classification";
|
|
93
97
|
vad: "vad";
|
|
94
98
|
other: "other";
|
|
95
99
|
}>;
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export * from "./error";
|
|
|
26
26
|
export * from "./rag";
|
|
27
27
|
export * from "./ocr";
|
|
28
28
|
export * from "./sdcpp-config";
|
|
29
|
+
export * from "./vla";
|
|
30
|
+
export * from "./classification";
|
|
29
31
|
export * from "./shard";
|
|
30
32
|
export * from "./suspend";
|
|
31
33
|
export * from "./resume";
|
|
@@ -33,6 +35,7 @@ export * from "./state";
|
|
|
33
35
|
export { SDK_CLIENT_ERROR_CODES } from "./sdk-errors-client";
|
|
34
36
|
export { SDK_SERVER_ERROR_CODES } from "./sdk-errors-server";
|
|
35
37
|
export { REGISTRY_ERROR_CODES } from "./sdk-errors-registry";
|
|
38
|
+
export { ERR_CODES as RAG_ERROR_CODES } from "@qvac/rag/errors";
|
|
36
39
|
export { qvacConfigSchema, deviceMatchSchema, deviceConfigDefaultsSchema, devicePatternSchema, type QvacConfig, type DeviceMatch, type DeviceConfigDefaults, type DevicePattern, } from "./sdk-config";
|
|
37
40
|
export { PROFILING_KEY, PROFILING_TRAILER_KEY, DELEGATION_BREAKDOWN_KEY, OPERATION_EVENT_KEY, MODEL_EXECUTION_KEY, profilerModeSchema, serverBreakdownSchema, delegationBreakdownSchema, operationEventSchema, profilingRequestMetaSchema, profilingResponseMetaSchema, perCallProfilingSchema, type ProfilerMode, type ServerBreakdown, type DelegationBreakdown, type OperationEvent, type ProfilingRequestMeta, type ProfilingResponseMeta, type PerCallProfiling, } from "./profiling";
|
|
38
41
|
export { runtimeContextSchema, type RuntimeContext } from "./runtime-context";
|
package/dist/schemas/index.js
CHANGED
|
@@ -27,6 +27,8 @@ export * from "./error.js";
|
|
|
27
27
|
export * from "./rag.js";
|
|
28
28
|
export * from "./ocr.js";
|
|
29
29
|
export * from "./sdcpp-config.js";
|
|
30
|
+
export * from "./vla.js";
|
|
31
|
+
export * from "./classification.js";
|
|
30
32
|
export * from "./shard.js";
|
|
31
33
|
export * from "./suspend.js";
|
|
32
34
|
export * from "./resume.js";
|
|
@@ -34,6 +36,7 @@ export * from "./state.js";
|
|
|
34
36
|
export { SDK_CLIENT_ERROR_CODES } from "./sdk-errors-client.js";
|
|
35
37
|
export { SDK_SERVER_ERROR_CODES } from "./sdk-errors-server.js";
|
|
36
38
|
export { REGISTRY_ERROR_CODES } from "./sdk-errors-registry.js";
|
|
39
|
+
export { ERR_CODES as RAG_ERROR_CODES } from "@qvac/rag/errors.js";
|
|
37
40
|
export { qvacConfigSchema, deviceMatchSchema, deviceConfigDefaultsSchema, devicePatternSchema, } from "./sdk-config.js";
|
|
38
41
|
export { PROFILING_KEY, PROFILING_TRAILER_KEY, DELEGATION_BREAKDOWN_KEY, OPERATION_EVENT_KEY, MODEL_EXECUTION_KEY, profilerModeSchema, serverBreakdownSchema, delegationBreakdownSchema, operationEventSchema, profilingRequestMetaSchema, profilingResponseMetaSchema, perCallProfilingSchema, } from "./profiling.js";
|
|
39
42
|
export { runtimeContextSchema } from "./runtime-context.js";
|
|
@@ -58,18 +58,23 @@ export declare const llmConfigBaseSchema: z.ZodObject<{
|
|
|
58
58
|
diffusion: "diffusion";
|
|
59
59
|
tts: "tts";
|
|
60
60
|
ocr: "ocr";
|
|
61
|
+
vla: "vla";
|
|
61
62
|
"llamacpp-completion": "llamacpp-completion";
|
|
62
63
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
63
64
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
64
65
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
65
66
|
"onnx-tts": "onnx-tts";
|
|
67
|
+
"tts-ggml": "tts-ggml";
|
|
66
68
|
"parakeet-transcription": "parakeet-transcription";
|
|
67
69
|
"onnx-ocr": "onnx-ocr";
|
|
68
70
|
"sdcpp-generation": "sdcpp-generation";
|
|
71
|
+
"ggml-vla": "ggml-vla";
|
|
72
|
+
"ggml-classification": "ggml-classification";
|
|
69
73
|
llm: "llm";
|
|
70
74
|
whisper: "whisper";
|
|
71
75
|
nmt: "nmt";
|
|
72
76
|
parakeet: "parakeet";
|
|
77
|
+
classification: "classification";
|
|
73
78
|
}>, z.ZodLiteral<"vad">]>>;
|
|
74
79
|
}, z.core.$strip>]>>;
|
|
75
80
|
}, z.core.$strip>;
|
|
@@ -133,18 +138,23 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
133
138
|
diffusion: "diffusion";
|
|
134
139
|
tts: "tts";
|
|
135
140
|
ocr: "ocr";
|
|
141
|
+
vla: "vla";
|
|
136
142
|
"llamacpp-completion": "llamacpp-completion";
|
|
137
143
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
138
144
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
139
145
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
140
146
|
"onnx-tts": "onnx-tts";
|
|
147
|
+
"tts-ggml": "tts-ggml";
|
|
141
148
|
"parakeet-transcription": "parakeet-transcription";
|
|
142
149
|
"onnx-ocr": "onnx-ocr";
|
|
143
150
|
"sdcpp-generation": "sdcpp-generation";
|
|
151
|
+
"ggml-vla": "ggml-vla";
|
|
152
|
+
"ggml-classification": "ggml-classification";
|
|
144
153
|
llm: "llm";
|
|
145
154
|
whisper: "whisper";
|
|
146
155
|
nmt: "nmt";
|
|
147
156
|
parakeet: "parakeet";
|
|
157
|
+
classification: "classification";
|
|
148
158
|
}>, z.ZodLiteral<"vad">]>>;
|
|
149
159
|
}, z.core.$strip>]>>;
|
|
150
160
|
}, z.core.$strip>, z.ZodTransform<{
|
|
@@ -185,7 +195,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
185
195
|
engine?: string | undefined;
|
|
186
196
|
expectedSize?: number | undefined;
|
|
187
197
|
sha256Checksum?: string | undefined;
|
|
188
|
-
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
198
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
189
199
|
} | undefined;
|
|
190
200
|
}, {
|
|
191
201
|
ctx_size?: number | undefined;
|
|
@@ -225,7 +235,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
225
235
|
engine?: string | undefined;
|
|
226
236
|
expectedSize?: number | undefined;
|
|
227
237
|
sha256Checksum?: string | undefined;
|
|
228
|
-
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "llm" | "whisper" | "nmt" | "parakeet" | "vad" | undefined;
|
|
238
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
229
239
|
} | undefined;
|
|
230
240
|
}>>;
|
|
231
241
|
export type LlmConfig = z.infer<typeof llmConfigSchema>;
|