@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
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { llmConfigBaseSchema, embedConfigBaseSchema, } from "./llamacpp-config.js";
|
|
3
|
-
import { whisperConfigSchema,
|
|
3
|
+
import { whisperConfigSchema, parakeetLoadConfigSchema, } from "./transcription-config.js";
|
|
4
4
|
import { delegateSchema } from "./delegate.js";
|
|
5
5
|
import { nmtConfigSchema } from "./translation-config.js";
|
|
6
6
|
import { ttsConfigSchema } from "./text-to-speech.js";
|
|
7
7
|
import { ocrConfigSchema } from "./ocr.js";
|
|
8
8
|
import { modelSrcInputSchema, modelInputToSrcSchema, modelInputToNameSchema, } from "./model-src-utils.js";
|
|
9
|
-
import { llmModelTypeSchema, whisperModelTypeSchema, parakeetModelTypeSchema, embeddingsModelTypeSchema, nmtModelTypeSchema, ttsModelTypeSchema, ocrModelTypeSchema, diffusionModelTypeSchema, ModelType, ModelTypeAliases, } from "./model-types.js";
|
|
9
|
+
import { llmModelTypeSchema, whisperModelTypeSchema, parakeetModelTypeSchema, embeddingsModelTypeSchema, nmtModelTypeSchema, ttsModelTypeSchema, ocrModelTypeSchema, diffusionModelTypeSchema, vlaModelTypeSchema, classificationModelTypeSchema, ModelType, ModelTypeAliases, } from "./model-types.js";
|
|
10
10
|
import { sdcppConfigSchema } from "./sdcpp-config.js";
|
|
11
|
+
import { vlaConfigSchema } from "./vla.js";
|
|
12
|
+
import { classificationConfigSchema } from "./classification.js";
|
|
11
13
|
// Set of all built-in model types (canonical + aliases) for catch-all exclusion
|
|
12
14
|
const builtInModelTypes = new Set([
|
|
13
15
|
...Object.values(ModelType),
|
|
@@ -45,7 +47,7 @@ export const loadBuiltinModelOptionsBaseSchema = z.union([
|
|
|
45
47
|
.object({
|
|
46
48
|
...loadModelCommonFields,
|
|
47
49
|
modelType: parakeetModelTypeSchema,
|
|
48
|
-
modelConfig:
|
|
50
|
+
modelConfig: parakeetLoadConfigSchema.optional(),
|
|
49
51
|
})
|
|
50
52
|
.strict(),
|
|
51
53
|
z
|
|
@@ -83,6 +85,21 @@ export const loadBuiltinModelOptionsBaseSchema = z.union([
|
|
|
83
85
|
modelConfig: sdcppConfigSchema.strict().optional(),
|
|
84
86
|
})
|
|
85
87
|
.strict(),
|
|
88
|
+
z
|
|
89
|
+
.object({
|
|
90
|
+
...loadModelCommonFields,
|
|
91
|
+
modelType: vlaModelTypeSchema,
|
|
92
|
+
modelConfig: vlaConfigSchema.strict().optional(),
|
|
93
|
+
})
|
|
94
|
+
.strict(),
|
|
95
|
+
z
|
|
96
|
+
.object({
|
|
97
|
+
...loadModelCommonFields,
|
|
98
|
+
modelSrc: modelSrcInputSchema.optional(),
|
|
99
|
+
modelType: classificationModelTypeSchema,
|
|
100
|
+
modelConfig: classificationConfigSchema.strict().optional(),
|
|
101
|
+
})
|
|
102
|
+
.strict(),
|
|
86
103
|
]);
|
|
87
104
|
// Custom plugin catch-all: any modelType string EXCEPT built-ins.
|
|
88
105
|
export const loadCustomPluginModelOptionsBaseSchema = z.object({
|
|
@@ -141,7 +158,7 @@ const loadModelOptionsToRequestBaseSchema = z.union([
|
|
|
141
158
|
.object({
|
|
142
159
|
...loadModelRequestCommonFields,
|
|
143
160
|
modelType: parakeetModelTypeSchema,
|
|
144
|
-
modelConfig:
|
|
161
|
+
modelConfig: parakeetLoadConfigSchema.optional(),
|
|
145
162
|
})
|
|
146
163
|
.strict()
|
|
147
164
|
.transform((data) => ({
|
|
@@ -208,7 +225,7 @@ const loadModelOptionsToRequestBaseSchema = z.union([
|
|
|
208
225
|
.strict()
|
|
209
226
|
.transform((data) => ({
|
|
210
227
|
type: "loadModel",
|
|
211
|
-
modelType: ModelType.
|
|
228
|
+
modelType: ModelType.ttsGgml,
|
|
212
229
|
modelSrc: modelInputToSrcSchema.parse(data.modelSrc),
|
|
213
230
|
modelName: modelInputToNameSchema.parse(data.modelSrc),
|
|
214
231
|
modelConfig: data.modelConfig,
|
|
@@ -253,6 +270,43 @@ const loadModelOptionsToRequestBaseSchema = z.union([
|
|
|
253
270
|
delegate: data.delegate,
|
|
254
271
|
...(data.requestId !== undefined && { requestId: data.requestId }),
|
|
255
272
|
})),
|
|
273
|
+
z
|
|
274
|
+
.object({
|
|
275
|
+
...loadModelRequestCommonFields,
|
|
276
|
+
modelType: vlaModelTypeSchema,
|
|
277
|
+
modelConfig: vlaConfigSchema.strict().optional(),
|
|
278
|
+
})
|
|
279
|
+
.strict()
|
|
280
|
+
.transform((data) => ({
|
|
281
|
+
type: "loadModel",
|
|
282
|
+
modelType: ModelType.ggmlVla,
|
|
283
|
+
modelSrc: modelInputToSrcSchema.parse(data.modelSrc),
|
|
284
|
+
modelName: modelInputToNameSchema.parse(data.modelSrc),
|
|
285
|
+
modelConfig: data.modelConfig ?? {},
|
|
286
|
+
seed: data.seed ?? false,
|
|
287
|
+
withProgress: data.withProgress ?? !!data.onProgress,
|
|
288
|
+
delegate: data.delegate,
|
|
289
|
+
...(data.requestId !== undefined && { requestId: data.requestId }),
|
|
290
|
+
})),
|
|
291
|
+
z
|
|
292
|
+
.object({
|
|
293
|
+
...loadModelRequestCommonFields,
|
|
294
|
+
modelSrc: modelSrcInputSchema.optional(),
|
|
295
|
+
modelType: classificationModelTypeSchema,
|
|
296
|
+
modelConfig: classificationConfigSchema.strict().optional(),
|
|
297
|
+
})
|
|
298
|
+
.strict()
|
|
299
|
+
.transform((data) => ({
|
|
300
|
+
type: "loadModel",
|
|
301
|
+
modelType: ModelType.ggmlClassification,
|
|
302
|
+
modelSrc: data.modelSrc ? modelInputToSrcSchema.parse(data.modelSrc) : "",
|
|
303
|
+
modelName: data.modelSrc ? modelInputToNameSchema.parse(data.modelSrc) : undefined,
|
|
304
|
+
modelConfig: data.modelConfig ?? {},
|
|
305
|
+
seed: data.seed ?? false,
|
|
306
|
+
withProgress: data.withProgress ?? !!data.onProgress,
|
|
307
|
+
delegate: data.delegate,
|
|
308
|
+
...(data.requestId !== undefined && { requestId: data.requestId }),
|
|
309
|
+
})),
|
|
256
310
|
z
|
|
257
311
|
.object({
|
|
258
312
|
...loadModelRequestCommonFields,
|
|
@@ -305,7 +359,7 @@ export const loadWhisperModelRequestSchema = commonModelConfigSchema
|
|
|
305
359
|
export const loadParakeetModelRequestSchema = commonModelConfigSchema
|
|
306
360
|
.extend({
|
|
307
361
|
modelType: z.literal(ModelType.parakeetTranscription),
|
|
308
|
-
modelConfig:
|
|
362
|
+
modelConfig: parakeetLoadConfigSchema.optional(),
|
|
309
363
|
})
|
|
310
364
|
.strict();
|
|
311
365
|
export const loadEmbeddingsModelRequestSchema = commonModelConfigSchema
|
|
@@ -322,7 +376,7 @@ export const loadNmtModelRequestSchema = commonModelConfigSchema
|
|
|
322
376
|
.strict();
|
|
323
377
|
export const loadTtsModelRequestSchema = commonModelConfigSchema
|
|
324
378
|
.extend({
|
|
325
|
-
modelType: z.literal(ModelType.
|
|
379
|
+
modelType: z.literal(ModelType.ttsGgml),
|
|
326
380
|
modelConfig: ttsConfigSchema,
|
|
327
381
|
})
|
|
328
382
|
.strict();
|
|
@@ -338,6 +392,18 @@ export const loadDiffusionModelRequestSchema = commonModelConfigSchema
|
|
|
338
392
|
modelConfig: sdcppConfigSchema.optional(),
|
|
339
393
|
})
|
|
340
394
|
.strict();
|
|
395
|
+
export const loadVlaModelRequestSchema = commonModelConfigSchema
|
|
396
|
+
.extend({
|
|
397
|
+
modelType: z.literal(ModelType.ggmlVla),
|
|
398
|
+
modelConfig: vlaConfigSchema.optional(),
|
|
399
|
+
})
|
|
400
|
+
.strict();
|
|
401
|
+
export const loadClassificationModelRequestSchema = commonModelConfigSchema
|
|
402
|
+
.extend({
|
|
403
|
+
modelType: z.literal(ModelType.ggmlClassification),
|
|
404
|
+
modelConfig: classificationConfigSchema.optional(),
|
|
405
|
+
})
|
|
406
|
+
.strict();
|
|
341
407
|
// Custom plugin catch-all: accepts any modelType string EXCEPT built-ins
|
|
342
408
|
export const loadCustomPluginModelRequestSchema = commonModelConfigSchema.extend({
|
|
343
409
|
modelType: z.string().refine((val) => !builtInModelTypes.has(val), {
|
|
@@ -356,6 +422,8 @@ export const loadModelSrcRequestSchema = z
|
|
|
356
422
|
loadTtsModelRequestSchema,
|
|
357
423
|
loadOcrModelRequestSchema,
|
|
358
424
|
loadDiffusionModelRequestSchema,
|
|
425
|
+
loadVlaModelRequestSchema,
|
|
426
|
+
loadClassificationModelRequestSchema,
|
|
359
427
|
loadCustomPluginModelRequestSchema,
|
|
360
428
|
])
|
|
361
429
|
.transform((data) => ({
|
|
@@ -15,18 +15,23 @@ export declare const modelDescriptorSchema: z.ZodObject<{
|
|
|
15
15
|
diffusion: "diffusion";
|
|
16
16
|
tts: "tts";
|
|
17
17
|
ocr: "ocr";
|
|
18
|
+
vla: "vla";
|
|
18
19
|
"llamacpp-completion": "llamacpp-completion";
|
|
19
20
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
20
21
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
21
22
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
22
23
|
"onnx-tts": "onnx-tts";
|
|
24
|
+
"tts-ggml": "tts-ggml";
|
|
23
25
|
"parakeet-transcription": "parakeet-transcription";
|
|
24
26
|
"onnx-ocr": "onnx-ocr";
|
|
25
27
|
"sdcpp-generation": "sdcpp-generation";
|
|
28
|
+
"ggml-vla": "ggml-vla";
|
|
29
|
+
"ggml-classification": "ggml-classification";
|
|
26
30
|
llm: "llm";
|
|
27
31
|
whisper: "whisper";
|
|
28
32
|
nmt: "nmt";
|
|
29
33
|
parakeet: "parakeet";
|
|
34
|
+
classification: "classification";
|
|
30
35
|
}>, z.ZodLiteral<"vad">]>>;
|
|
31
36
|
}, z.core.$strip>;
|
|
32
37
|
export declare const modelSrcInputSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -45,18 +50,23 @@ export declare const modelSrcInputSchema: z.ZodUnion<readonly [z.ZodString, z.Zo
|
|
|
45
50
|
diffusion: "diffusion";
|
|
46
51
|
tts: "tts";
|
|
47
52
|
ocr: "ocr";
|
|
53
|
+
vla: "vla";
|
|
48
54
|
"llamacpp-completion": "llamacpp-completion";
|
|
49
55
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
50
56
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
51
57
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
52
58
|
"onnx-tts": "onnx-tts";
|
|
59
|
+
"tts-ggml": "tts-ggml";
|
|
53
60
|
"parakeet-transcription": "parakeet-transcription";
|
|
54
61
|
"onnx-ocr": "onnx-ocr";
|
|
55
62
|
"sdcpp-generation": "sdcpp-generation";
|
|
63
|
+
"ggml-vla": "ggml-vla";
|
|
64
|
+
"ggml-classification": "ggml-classification";
|
|
56
65
|
llm: "llm";
|
|
57
66
|
whisper: "whisper";
|
|
58
67
|
nmt: "nmt";
|
|
59
68
|
parakeet: "parakeet";
|
|
69
|
+
classification: "classification";
|
|
60
70
|
}>, z.ZodLiteral<"vad">]>>;
|
|
61
71
|
}, z.core.$strip>]>;
|
|
62
72
|
export type ModelDescriptor = z.infer<typeof modelDescriptorSchema>;
|
|
@@ -81,18 +91,23 @@ export declare const modelInputToSrcSchema: z.ZodPipe<z.ZodUnion<readonly [z.Zod
|
|
|
81
91
|
diffusion: "diffusion";
|
|
82
92
|
tts: "tts";
|
|
83
93
|
ocr: "ocr";
|
|
94
|
+
vla: "vla";
|
|
84
95
|
"llamacpp-completion": "llamacpp-completion";
|
|
85
96
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
86
97
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
87
98
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
88
99
|
"onnx-tts": "onnx-tts";
|
|
100
|
+
"tts-ggml": "tts-ggml";
|
|
89
101
|
"parakeet-transcription": "parakeet-transcription";
|
|
90
102
|
"onnx-ocr": "onnx-ocr";
|
|
91
103
|
"sdcpp-generation": "sdcpp-generation";
|
|
104
|
+
"ggml-vla": "ggml-vla";
|
|
105
|
+
"ggml-classification": "ggml-classification";
|
|
92
106
|
llm: "llm";
|
|
93
107
|
whisper: "whisper";
|
|
94
108
|
nmt: "nmt";
|
|
95
109
|
parakeet: "parakeet";
|
|
110
|
+
classification: "classification";
|
|
96
111
|
}>, z.ZodLiteral<"vad">]>>;
|
|
97
112
|
}, z.core.$strip>]>, z.ZodTransform<string, string | {
|
|
98
113
|
src: string;
|
|
@@ -105,7 +120,7 @@ export declare const modelInputToSrcSchema: z.ZodPipe<z.ZodUnion<readonly [z.Zod
|
|
|
105
120
|
engine?: string | undefined;
|
|
106
121
|
expectedSize?: number | undefined;
|
|
107
122
|
sha256Checksum?: string | undefined;
|
|
108
|
-
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;
|
|
123
|
+
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;
|
|
109
124
|
}>>;
|
|
110
125
|
/**
|
|
111
126
|
* Schema that transforms ModelSrc to its optional name
|
|
@@ -127,18 +142,23 @@ export declare const modelInputToNameSchema: z.ZodPipe<z.ZodUnion<readonly [z.Zo
|
|
|
127
142
|
diffusion: "diffusion";
|
|
128
143
|
tts: "tts";
|
|
129
144
|
ocr: "ocr";
|
|
145
|
+
vla: "vla";
|
|
130
146
|
"llamacpp-completion": "llamacpp-completion";
|
|
131
147
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
132
148
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
133
149
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
134
150
|
"onnx-tts": "onnx-tts";
|
|
151
|
+
"tts-ggml": "tts-ggml";
|
|
135
152
|
"parakeet-transcription": "parakeet-transcription";
|
|
136
153
|
"onnx-ocr": "onnx-ocr";
|
|
137
154
|
"sdcpp-generation": "sdcpp-generation";
|
|
155
|
+
"ggml-vla": "ggml-vla";
|
|
156
|
+
"ggml-classification": "ggml-classification";
|
|
138
157
|
llm: "llm";
|
|
139
158
|
whisper: "whisper";
|
|
140
159
|
nmt: "nmt";
|
|
141
160
|
parakeet: "parakeet";
|
|
161
|
+
classification: "classification";
|
|
142
162
|
}>, z.ZodLiteral<"vad">]>>;
|
|
143
163
|
}, z.core.$strip>]>, z.ZodTransform<string | undefined, string | {
|
|
144
164
|
src: string;
|
|
@@ -151,7 +171,7 @@ export declare const modelInputToNameSchema: z.ZodPipe<z.ZodUnion<readonly [z.Zo
|
|
|
151
171
|
engine?: string | undefined;
|
|
152
172
|
expectedSize?: number | undefined;
|
|
153
173
|
sha256Checksum?: string | undefined;
|
|
154
|
-
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;
|
|
174
|
+
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;
|
|
155
175
|
}>>;
|
|
156
176
|
export declare function inferModelTypeFromModelSrc(modelSrc: unknown): string | undefined;
|
|
157
177
|
//# sourceMappingURL=model-src-utils.d.ts.map
|
|
@@ -10,9 +10,12 @@ export declare const ModelType: {
|
|
|
10
10
|
readonly llamacppEmbedding: "llamacpp-embedding";
|
|
11
11
|
readonly nmtcppTranslation: "nmtcpp-translation";
|
|
12
12
|
readonly onnxTts: "onnx-tts";
|
|
13
|
+
readonly ttsGgml: "tts-ggml";
|
|
13
14
|
readonly parakeetTranscription: "parakeet-transcription";
|
|
14
15
|
readonly onnxOcr: "onnx-ocr";
|
|
15
16
|
readonly sdcppGeneration: "sdcpp-generation";
|
|
17
|
+
readonly ggmlVla: "ggml-vla";
|
|
18
|
+
readonly ggmlClassification: "ggml-classification";
|
|
16
19
|
};
|
|
17
20
|
/**
|
|
18
21
|
* Alias mappings for backward compatibility.
|
|
@@ -24,9 +27,11 @@ export declare const ModelTypeAliases: {
|
|
|
24
27
|
readonly embeddings: "llamacpp-embedding";
|
|
25
28
|
readonly nmt: "nmtcpp-translation";
|
|
26
29
|
readonly parakeet: "parakeet-transcription";
|
|
27
|
-
readonly tts: "
|
|
30
|
+
readonly tts: "tts-ggml";
|
|
28
31
|
readonly ocr: "onnx-ocr";
|
|
29
32
|
readonly diffusion: "sdcpp-generation";
|
|
33
|
+
readonly vla: "ggml-vla";
|
|
34
|
+
readonly classification: "ggml-classification";
|
|
30
35
|
};
|
|
31
36
|
export type CanonicalModelType = (typeof ModelType)[keyof typeof ModelType];
|
|
32
37
|
export type AliasKey = keyof typeof ModelTypeAliases;
|
|
@@ -53,17 +58,22 @@ export declare const PUBLIC_MODEL_TYPES: {
|
|
|
53
58
|
readonly embeddings: "llamacpp-embedding";
|
|
54
59
|
readonly nmt: "nmtcpp-translation";
|
|
55
60
|
readonly parakeet: "parakeet-transcription";
|
|
56
|
-
readonly tts: "
|
|
61
|
+
readonly tts: "tts-ggml";
|
|
57
62
|
readonly ocr: "onnx-ocr";
|
|
58
63
|
readonly diffusion: "sdcpp-generation";
|
|
64
|
+
readonly vla: "ggml-vla";
|
|
65
|
+
readonly classification: "ggml-classification";
|
|
59
66
|
readonly llamacppCompletion: "llamacpp-completion";
|
|
60
67
|
readonly whispercppTranscription: "whispercpp-transcription";
|
|
61
68
|
readonly llamacppEmbedding: "llamacpp-embedding";
|
|
62
69
|
readonly nmtcppTranslation: "nmtcpp-translation";
|
|
63
70
|
readonly onnxTts: "onnx-tts";
|
|
71
|
+
readonly ttsGgml: "tts-ggml";
|
|
64
72
|
readonly parakeetTranscription: "parakeet-transcription";
|
|
65
73
|
readonly onnxOcr: "onnx-ocr";
|
|
66
74
|
readonly sdcppGeneration: "sdcpp-generation";
|
|
75
|
+
readonly ggmlVla: "ggml-vla";
|
|
76
|
+
readonly ggmlClassification: "ggml-classification";
|
|
67
77
|
};
|
|
68
78
|
/** Schema accepting both canonical and alias model type inputs */
|
|
69
79
|
export declare const modelTypeInputSchema: z.ZodEnum<{
|
|
@@ -71,18 +81,23 @@ export declare const modelTypeInputSchema: z.ZodEnum<{
|
|
|
71
81
|
diffusion: "diffusion";
|
|
72
82
|
tts: "tts";
|
|
73
83
|
ocr: "ocr";
|
|
84
|
+
vla: "vla";
|
|
74
85
|
"llamacpp-completion": "llamacpp-completion";
|
|
75
86
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
76
87
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
77
88
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
78
89
|
"onnx-tts": "onnx-tts";
|
|
90
|
+
"tts-ggml": "tts-ggml";
|
|
79
91
|
"parakeet-transcription": "parakeet-transcription";
|
|
80
92
|
"onnx-ocr": "onnx-ocr";
|
|
81
93
|
"sdcpp-generation": "sdcpp-generation";
|
|
94
|
+
"ggml-vla": "ggml-vla";
|
|
95
|
+
"ggml-classification": "ggml-classification";
|
|
82
96
|
llm: "llm";
|
|
83
97
|
whisper: "whisper";
|
|
84
98
|
nmt: "nmt";
|
|
85
99
|
parakeet: "parakeet";
|
|
100
|
+
classification: "classification";
|
|
86
101
|
}>;
|
|
87
102
|
/** Schema that transforms input to canonical model type */
|
|
88
103
|
export declare const modelTypeSchema: z.ZodPipe<z.ZodEnum<{
|
|
@@ -90,19 +105,24 @@ export declare const modelTypeSchema: z.ZodPipe<z.ZodEnum<{
|
|
|
90
105
|
diffusion: "diffusion";
|
|
91
106
|
tts: "tts";
|
|
92
107
|
ocr: "ocr";
|
|
108
|
+
vla: "vla";
|
|
93
109
|
"llamacpp-completion": "llamacpp-completion";
|
|
94
110
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
95
111
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
96
112
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
97
113
|
"onnx-tts": "onnx-tts";
|
|
114
|
+
"tts-ggml": "tts-ggml";
|
|
98
115
|
"parakeet-transcription": "parakeet-transcription";
|
|
99
116
|
"onnx-ocr": "onnx-ocr";
|
|
100
117
|
"sdcpp-generation": "sdcpp-generation";
|
|
118
|
+
"ggml-vla": "ggml-vla";
|
|
119
|
+
"ggml-classification": "ggml-classification";
|
|
101
120
|
llm: "llm";
|
|
102
121
|
whisper: "whisper";
|
|
103
122
|
nmt: "nmt";
|
|
104
123
|
parakeet: "parakeet";
|
|
105
|
-
|
|
124
|
+
classification: "classification";
|
|
125
|
+
}>, z.ZodTransform<"llamacpp-completion" | "whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification", "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">>;
|
|
106
126
|
/**
|
|
107
127
|
* Normalize model type input to canonical form.
|
|
108
128
|
* Custom plugin types (not in built-ins) are returned as-is.
|
|
@@ -170,12 +190,12 @@ export declare const nmtModelTypeSchema: z.ZodEnum<{
|
|
|
170
190
|
export type NmtModelTypeInput = z.infer<typeof nmtModelTypeSchema>;
|
|
171
191
|
/**
|
|
172
192
|
* TTS model type schema.
|
|
173
|
-
* - Alias: `"tts"` → resolves to `"
|
|
174
|
-
* - Canonical: `"
|
|
193
|
+
* - Alias: `"tts"` → resolves to `"tts-ggml"`
|
|
194
|
+
* - Canonical: `"tts-ggml"`
|
|
175
195
|
*/
|
|
176
196
|
export declare const ttsModelTypeSchema: z.ZodEnum<{
|
|
177
197
|
tts: "tts";
|
|
178
|
-
"
|
|
198
|
+
"tts-ggml": "tts-ggml";
|
|
179
199
|
}>;
|
|
180
200
|
export type TtsModelTypeInput = z.infer<typeof ttsModelTypeSchema>;
|
|
181
201
|
/**
|
|
@@ -198,4 +218,24 @@ export declare const diffusionModelTypeSchema: z.ZodEnum<{
|
|
|
198
218
|
"sdcpp-generation": "sdcpp-generation";
|
|
199
219
|
}>;
|
|
200
220
|
export type DiffusionModelTypeInput = z.infer<typeof diffusionModelTypeSchema>;
|
|
221
|
+
/**
|
|
222
|
+
* VLA (vision-language-action) model type schema.
|
|
223
|
+
* - Alias: `"vla"` → resolves to `"ggml-vla"`
|
|
224
|
+
* - Canonical: `"ggml-vla"`
|
|
225
|
+
*/
|
|
226
|
+
export declare const vlaModelTypeSchema: z.ZodEnum<{
|
|
227
|
+
vla: "vla";
|
|
228
|
+
"ggml-vla": "ggml-vla";
|
|
229
|
+
}>;
|
|
230
|
+
export type VlaModelTypeInput = z.infer<typeof vlaModelTypeSchema>;
|
|
231
|
+
/**
|
|
232
|
+
* Image Classification model type schema.
|
|
233
|
+
* - Alias: `"classification"` → resolves to `"ggml-classification"`
|
|
234
|
+
* - Canonical: `"ggml-classification"`
|
|
235
|
+
*/
|
|
236
|
+
export declare const classificationModelTypeSchema: z.ZodEnum<{
|
|
237
|
+
"ggml-classification": "ggml-classification";
|
|
238
|
+
classification: "classification";
|
|
239
|
+
}>;
|
|
240
|
+
export type ClassificationModelTypeInput = z.infer<typeof classificationModelTypeSchema>;
|
|
201
241
|
//# sourceMappingURL=model-types.d.ts.map
|
|
@@ -11,9 +11,12 @@ export const ModelType = {
|
|
|
11
11
|
llamacppEmbedding: "llamacpp-embedding",
|
|
12
12
|
nmtcppTranslation: "nmtcpp-translation",
|
|
13
13
|
onnxTts: "onnx-tts",
|
|
14
|
+
ttsGgml: "tts-ggml",
|
|
14
15
|
parakeetTranscription: "parakeet-transcription",
|
|
15
16
|
onnxOcr: "onnx-ocr",
|
|
16
17
|
sdcppGeneration: "sdcpp-generation",
|
|
18
|
+
ggmlVla: "ggml-vla",
|
|
19
|
+
ggmlClassification: "ggml-classification",
|
|
17
20
|
};
|
|
18
21
|
// === INTERNAL: Alias keys (backward compat names) ===
|
|
19
22
|
const AliasKeys = {
|
|
@@ -25,6 +28,8 @@ const AliasKeys = {
|
|
|
25
28
|
tts: "tts",
|
|
26
29
|
ocr: "ocr",
|
|
27
30
|
diffusion: "diffusion",
|
|
31
|
+
vla: "vla",
|
|
32
|
+
classification: "classification",
|
|
28
33
|
};
|
|
29
34
|
// === INTERNAL: Aliases (backward compat mapping) ===
|
|
30
35
|
/**
|
|
@@ -37,9 +42,11 @@ export const ModelTypeAliases = {
|
|
|
37
42
|
[AliasKeys.embeddings]: ModelType.llamacppEmbedding,
|
|
38
43
|
[AliasKeys.nmt]: ModelType.nmtcppTranslation,
|
|
39
44
|
[AliasKeys.parakeet]: ModelType.parakeetTranscription,
|
|
40
|
-
[AliasKeys.tts]: ModelType.
|
|
45
|
+
[AliasKeys.tts]: ModelType.ttsGgml,
|
|
41
46
|
[AliasKeys.ocr]: ModelType.onnxOcr,
|
|
42
47
|
[AliasKeys.diffusion]: ModelType.sdcppGeneration,
|
|
48
|
+
[AliasKeys.vla]: ModelType.ggmlVla,
|
|
49
|
+
[AliasKeys.classification]: ModelType.ggmlClassification,
|
|
43
50
|
};
|
|
44
51
|
// Set of canonical values for quick lookup
|
|
45
52
|
const canonicalValuesSet = new Set(Object.values(ModelType));
|
|
@@ -155,12 +162,12 @@ export const nmtModelTypeSchema = modelTypeInputSchema
|
|
|
155
162
|
.describe('NMT model type: "nmt" (alias) or "nmtcpp-translation" (canonical)');
|
|
156
163
|
/**
|
|
157
164
|
* TTS model type schema.
|
|
158
|
-
* - Alias: `"tts"` → resolves to `"
|
|
159
|
-
* - Canonical: `"
|
|
165
|
+
* - Alias: `"tts"` → resolves to `"tts-ggml"`
|
|
166
|
+
* - Canonical: `"tts-ggml"`
|
|
160
167
|
*/
|
|
161
168
|
export const ttsModelTypeSchema = modelTypeInputSchema
|
|
162
|
-
.extract([AliasKeys.tts, ModelType.
|
|
163
|
-
.describe('TTS model type: "tts" (alias) or "
|
|
169
|
+
.extract([AliasKeys.tts, ModelType.ttsGgml])
|
|
170
|
+
.describe('TTS model type: "tts" (alias) or "tts-ggml" (canonical)');
|
|
164
171
|
/**
|
|
165
172
|
* OCR model type schema.
|
|
166
173
|
* - Alias: `"ocr"` → resolves to `"onnx-ocr"`
|
|
@@ -177,3 +184,19 @@ export const ocrModelTypeSchema = modelTypeInputSchema
|
|
|
177
184
|
export const diffusionModelTypeSchema = modelTypeInputSchema
|
|
178
185
|
.extract([AliasKeys.diffusion, ModelType.sdcppGeneration])
|
|
179
186
|
.describe('Diffusion model type: "diffusion" (alias) or "sdcpp-generation" (canonical)');
|
|
187
|
+
/**
|
|
188
|
+
* VLA (vision-language-action) model type schema.
|
|
189
|
+
* - Alias: `"vla"` → resolves to `"ggml-vla"`
|
|
190
|
+
* - Canonical: `"ggml-vla"`
|
|
191
|
+
*/
|
|
192
|
+
export const vlaModelTypeSchema = modelTypeInputSchema
|
|
193
|
+
.extract([AliasKeys.vla, ModelType.ggmlVla])
|
|
194
|
+
.describe('VLA model type: "vla" (alias) or "ggml-vla" (canonical)');
|
|
195
|
+
/**
|
|
196
|
+
* Image Classification model type schema.
|
|
197
|
+
* - Alias: `"classification"` → resolves to `"ggml-classification"`
|
|
198
|
+
* - Canonical: `"ggml-classification"`
|
|
199
|
+
*/
|
|
200
|
+
export const classificationModelTypeSchema = modelTypeInputSchema
|
|
201
|
+
.extract([AliasKeys.classification, ModelType.ggmlClassification])
|
|
202
|
+
.describe('Classification model type: "classification" (alias) or "ggml-classification" (canonical)');
|
package/dist/schemas/ocr.d.ts
CHANGED
|
@@ -33,18 +33,23 @@ export declare const ocrConfigSchema: z.ZodObject<{
|
|
|
33
33
|
diffusion: "diffusion";
|
|
34
34
|
tts: "tts";
|
|
35
35
|
ocr: "ocr";
|
|
36
|
+
vla: "vla";
|
|
36
37
|
"llamacpp-completion": "llamacpp-completion";
|
|
37
38
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
38
39
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
39
40
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
40
41
|
"onnx-tts": "onnx-tts";
|
|
42
|
+
"tts-ggml": "tts-ggml";
|
|
41
43
|
"parakeet-transcription": "parakeet-transcription";
|
|
42
44
|
"onnx-ocr": "onnx-ocr";
|
|
43
45
|
"sdcpp-generation": "sdcpp-generation";
|
|
46
|
+
"ggml-vla": "ggml-vla";
|
|
47
|
+
"ggml-classification": "ggml-classification";
|
|
44
48
|
llm: "llm";
|
|
45
49
|
whisper: "whisper";
|
|
46
50
|
nmt: "nmt";
|
|
47
51
|
parakeet: "parakeet";
|
|
52
|
+
classification: "classification";
|
|
48
53
|
}>, z.ZodLiteral<"vad">]>>;
|
|
49
54
|
}, z.core.$strip>]>>;
|
|
50
55
|
}, z.core.$strip>;
|
package/dist/schemas/plugin.d.ts
CHANGED
|
@@ -266,10 +266,10 @@ export declare const PLUGIN_PARAKEET: "@qvac/sdk/parakeet-transcription/plugin";
|
|
|
266
266
|
*/
|
|
267
267
|
export declare const PLUGIN_NMT: "@qvac/sdk/nmtcpp-translation/plugin";
|
|
268
268
|
/**
|
|
269
|
-
* Text-to-speech synthesis plugin (
|
|
269
|
+
* Text-to-speech synthesis plugin (GGML).
|
|
270
270
|
* Provides: speech synthesis from text.
|
|
271
271
|
*/
|
|
272
|
-
export declare const PLUGIN_TTS: "@qvac/sdk/
|
|
272
|
+
export declare const PLUGIN_TTS: "@qvac/sdk/tts-ggml/plugin";
|
|
273
273
|
/**
|
|
274
274
|
* Optical character recognition plugin (ONNX).
|
|
275
275
|
* Provides: text extraction from images.
|
|
@@ -280,6 +280,17 @@ export declare const PLUGIN_OCR: "@qvac/sdk/onnx-ocr/plugin";
|
|
|
280
280
|
* Provides: text-to-image generation and standalone ESRGAN image upscaling.
|
|
281
281
|
*/
|
|
282
282
|
export declare const PLUGIN_DIFFUSION: "@qvac/sdk/sdcpp-generation/plugin";
|
|
283
|
+
/**
|
|
284
|
+
* Vision-Language-Action plugin (SmolVLA on ggml).
|
|
285
|
+
* Provides: robot-action inference from a pair of camera frames and a
|
|
286
|
+
* natural-language instruction.
|
|
287
|
+
*/
|
|
288
|
+
export declare const PLUGIN_VLA: "@qvac/sdk/ggml-vla/plugin";
|
|
289
|
+
/**
|
|
290
|
+
* Image classification plugin (GGML / MobileNetV3-Small).
|
|
291
|
+
* Provides: image classification with bundled 3-class model (food / report / other).
|
|
292
|
+
*/
|
|
293
|
+
export declare const PLUGIN_CLASSIFICATION: "@qvac/sdk/ggml-classification/plugin";
|
|
283
294
|
/**
|
|
284
295
|
* All built-in SDK plugins.
|
|
285
296
|
*
|
|
@@ -289,7 +300,7 @@ export declare const PLUGIN_DIFFUSION: "@qvac/sdk/sdcpp-generation/plugin";
|
|
|
289
300
|
* plugins: [...SDK_DEFAULT_PLUGINS, myCustomPlugin],
|
|
290
301
|
* };
|
|
291
302
|
*/
|
|
292
|
-
export declare const SDK_DEFAULT_PLUGINS: readonly ["@qvac/sdk/llamacpp-completion/plugin", "@qvac/sdk/llamacpp-embedding/plugin", "@qvac/sdk/whispercpp-transcription/plugin", "@qvac/sdk/parakeet-transcription/plugin", "@qvac/sdk/nmtcpp-translation/plugin", "@qvac/sdk/
|
|
303
|
+
export declare const SDK_DEFAULT_PLUGINS: readonly ["@qvac/sdk/llamacpp-completion/plugin", "@qvac/sdk/llamacpp-embedding/plugin", "@qvac/sdk/whispercpp-transcription/plugin", "@qvac/sdk/parakeet-transcription/plugin", "@qvac/sdk/nmtcpp-translation/plugin", "@qvac/sdk/tts-ggml/plugin", "@qvac/sdk/onnx-ocr/plugin", "@qvac/sdk/sdcpp-generation/plugin", "@qvac/sdk/ggml-vla/plugin", "@qvac/sdk/ggml-classification/plugin"];
|
|
293
304
|
export type BuiltinPlugin = (typeof SDK_DEFAULT_PLUGINS)[number];
|
|
294
305
|
/** Native addon package for LLM completion (llama.cpp) */
|
|
295
306
|
export declare const ADDON_LLM: "@qvac/llm-llamacpp";
|
|
@@ -301,10 +312,14 @@ export declare const ADDON_WHISPER: "@qvac/transcription-whispercpp";
|
|
|
301
312
|
export declare const ADDON_PARAKEET: "@qvac/transcription-parakeet";
|
|
302
313
|
/** Native addon package for NMT translation (nmt.cpp) */
|
|
303
314
|
export declare const ADDON_NMT: "@qvac/translation-nmtcpp";
|
|
304
|
-
/** Native addon package for TTS (
|
|
305
|
-
export declare const ADDON_TTS: "@qvac/tts-
|
|
315
|
+
/** Native addon package for TTS (GGML) */
|
|
316
|
+
export declare const ADDON_TTS: "@qvac/tts-ggml";
|
|
306
317
|
/** Native addon package for OCR (ONNX) */
|
|
307
318
|
export declare const ADDON_OCR: "@qvac/ocr-onnx";
|
|
308
319
|
/** Native addon package for image generation (stable-diffusion.cpp) */
|
|
309
320
|
export declare const ADDON_DIFFUSION: "@qvac/diffusion-cpp";
|
|
321
|
+
/** Native addon package for vision-language-action inference (SmolVLA on ggml) */
|
|
322
|
+
export declare const ADDON_VLA: "@qvac/vla-ggml";
|
|
323
|
+
/** Native addon package for image classification (GGML / MobileNetV3) */
|
|
324
|
+
export declare const ADDON_CLASSIFICATION: "@qvac/classification-ggml";
|
|
310
325
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/schemas/plugin.js
CHANGED
|
@@ -152,10 +152,10 @@ export const PLUGIN_PARAKEET = "@qvac/sdk/parakeet-transcription/plugin";
|
|
|
152
152
|
*/
|
|
153
153
|
export const PLUGIN_NMT = "@qvac/sdk/nmtcpp-translation/plugin";
|
|
154
154
|
/**
|
|
155
|
-
* Text-to-speech synthesis plugin (
|
|
155
|
+
* Text-to-speech synthesis plugin (GGML).
|
|
156
156
|
* Provides: speech synthesis from text.
|
|
157
157
|
*/
|
|
158
|
-
export const PLUGIN_TTS = "@qvac/sdk/
|
|
158
|
+
export const PLUGIN_TTS = "@qvac/sdk/tts-ggml/plugin";
|
|
159
159
|
/**
|
|
160
160
|
* Optical character recognition plugin (ONNX).
|
|
161
161
|
* Provides: text extraction from images.
|
|
@@ -166,6 +166,17 @@ export const PLUGIN_OCR = "@qvac/sdk/onnx-ocr/plugin";
|
|
|
166
166
|
* Provides: text-to-image generation and standalone ESRGAN image upscaling.
|
|
167
167
|
*/
|
|
168
168
|
export const PLUGIN_DIFFUSION = "@qvac/sdk/sdcpp-generation/plugin";
|
|
169
|
+
/**
|
|
170
|
+
* Vision-Language-Action plugin (SmolVLA on ggml).
|
|
171
|
+
* Provides: robot-action inference from a pair of camera frames and a
|
|
172
|
+
* natural-language instruction.
|
|
173
|
+
*/
|
|
174
|
+
export const PLUGIN_VLA = "@qvac/sdk/ggml-vla/plugin";
|
|
175
|
+
/**
|
|
176
|
+
* Image classification plugin (GGML / MobileNetV3-Small).
|
|
177
|
+
* Provides: image classification with bundled 3-class model (food / report / other).
|
|
178
|
+
*/
|
|
179
|
+
export const PLUGIN_CLASSIFICATION = "@qvac/sdk/ggml-classification/plugin";
|
|
169
180
|
/**
|
|
170
181
|
* All built-in SDK plugins.
|
|
171
182
|
*
|
|
@@ -184,6 +195,8 @@ export const SDK_DEFAULT_PLUGINS = [
|
|
|
184
195
|
PLUGIN_TTS,
|
|
185
196
|
PLUGIN_OCR,
|
|
186
197
|
PLUGIN_DIFFUSION,
|
|
198
|
+
PLUGIN_VLA,
|
|
199
|
+
PLUGIN_CLASSIFICATION,
|
|
187
200
|
];
|
|
188
201
|
// ============================================
|
|
189
202
|
// Addon Packages
|
|
@@ -198,9 +211,13 @@ export const ADDON_WHISPER = "@qvac/transcription-whispercpp";
|
|
|
198
211
|
export const ADDON_PARAKEET = "@qvac/transcription-parakeet";
|
|
199
212
|
/** Native addon package for NMT translation (nmt.cpp) */
|
|
200
213
|
export const ADDON_NMT = "@qvac/translation-nmtcpp";
|
|
201
|
-
/** Native addon package for TTS (
|
|
202
|
-
export const ADDON_TTS = "@qvac/tts-
|
|
214
|
+
/** Native addon package for TTS (GGML) */
|
|
215
|
+
export const ADDON_TTS = "@qvac/tts-ggml";
|
|
203
216
|
/** Native addon package for OCR (ONNX) */
|
|
204
217
|
export const ADDON_OCR = "@qvac/ocr-onnx";
|
|
205
218
|
/** Native addon package for image generation (stable-diffusion.cpp) */
|
|
206
219
|
export const ADDON_DIFFUSION = "@qvac/diffusion-cpp";
|
|
220
|
+
/** Native addon package for vision-language-action inference (SmolVLA on ggml) */
|
|
221
|
+
export const ADDON_VLA = "@qvac/vla-ggml";
|
|
222
|
+
/** Native addon package for image classification (GGML / MobileNetV3) */
|
|
223
|
+
export const ADDON_CLASSIFICATION = "@qvac/classification-ggml";
|