@qvac/sdk 0.12.2 → 0.13.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/NOTICE +55 -1225
- package/README.md +12 -0
- package/dist/client/api/bci-transcribe.d.ts +57 -0
- package/dist/client/api/bci-transcribe.js +172 -0
- package/dist/client/api/get-model-info.d.ts +1 -1
- package/dist/client/api/index.d.ts +1 -0
- package/dist/client/api/index.js +1 -0
- package/dist/client/api/video.d.ts +26 -6
- package/dist/client/api/video.js +30 -7
- package/dist/client/api/vla.d.ts +11 -7
- package/dist/client/api/vla.js +11 -7
- package/dist/client/rpc/bare-client.js +2 -2
- package/dist/commands/bundle/constants.js +2 -0
- package/dist/examples/bci/bci-filesystem-streaming.d.ts +2 -0
- package/dist/examples/bci/bci-filesystem-streaming.js +77 -0
- package/dist/examples/bci/bci-filesystem.d.ts +2 -0
- package/dist/examples/bci/bci-filesystem.js +63 -0
- package/dist/examples/cache-management.js +0 -1
- package/dist/examples/cancel-by-request-id.js +0 -1
- package/dist/examples/classification/classify-image.js +1 -1
- package/dist/examples/completion-events.js +6 -2
- package/dist/examples/completion-stop-reason.d.ts +25 -0
- package/dist/examples/completion-stop-reason.js +65 -0
- package/dist/examples/concurrent-completion-collision.d.ts +2 -0
- package/dist/examples/concurrent-completion-collision.js +98 -0
- package/dist/examples/config-reload.js +1 -2
- package/dist/examples/default-config-usage.js +0 -1
- package/dist/examples/delegated-inference/composite.js +0 -1
- package/dist/examples/delegated-inference/consumer-profiled.js +0 -1
- package/dist/examples/delegated-inference/consumer.js +0 -1
- package/dist/examples/diffusion-esrgan-upscale.js +1 -3
- package/dist/examples/diffusion-flux2-klein-img2img.js +1 -1
- package/dist/examples/diffusion-flux2-klein.js +2 -2
- package/dist/examples/diffusion-img2img.js +1 -1
- package/dist/examples/diffusion-img2vid.d.ts +2 -0
- package/dist/examples/diffusion-img2vid.js +78 -0
- package/dist/examples/diffusion-simple.js +1 -1
- package/dist/examples/diffusion-txt2img.js +8 -3
- package/dist/examples/diffusion-txt2vid.js +2 -3
- package/dist/examples/download-with-blind-relays.js +0 -1
- package/dist/examples/embed-multi-gpu.js +1 -2
- package/dist/examples/embed-p2p.js +4 -2
- package/dist/examples/finetune/llamacpp-finetune.js +5 -3
- package/dist/examples/kv-cache-cleanup.js +0 -1
- package/dist/examples/kv-cache-custom-key.js +0 -1
- package/dist/examples/kv-cache-example.js +4 -2
- package/dist/examples/llamacpp-cache.js +0 -1
- package/dist/examples/llamacpp-dynamic-tools.js +4 -2
- package/dist/examples/llamacpp-filesystem.js +1 -1
- package/dist/examples/llamacpp-http.js +1 -1
- package/dist/examples/llamacpp-multi-gpu.js +2 -2
- package/dist/examples/llamacpp-multimodal.js +0 -1
- package/dist/examples/llamacpp-p2p.js +0 -1
- package/dist/examples/llamacpp-sharded.js +1 -1
- package/dist/examples/llamacpp-structured-output.js +0 -1
- package/dist/examples/logging-file-transport.js +0 -1
- package/dist/examples/logging-streaming.js +0 -2
- package/dist/examples/mcp-websearch.js +0 -1
- package/dist/examples/multi-model-demo.js +0 -2
- package/dist/examples/ocr-fasttext.js +0 -1
- package/dist/examples/plugins.js +1 -4
- package/dist/examples/profiling/basic.js +3 -2
- package/dist/examples/profiling/per-call.js +0 -1
- package/dist/examples/quickstart.js +0 -1
- package/dist/examples/rag/rag-chromadb.js +0 -1
- package/dist/examples/rag/rag-hyperdb/cancellation.js +0 -1
- package/dist/examples/rag/rag-hyperdb/ingest.js +0 -1
- package/dist/examples/rag/rag-hyperdb/pipeline.js +0 -1
- package/dist/examples/rag/rag-hyperdb/workspaces.js +0 -1
- package/dist/examples/rag/rag-lancedb.js +0 -1
- package/dist/examples/rag/rag-sqlite.js +0 -1
- package/dist/examples/suspend-resume.js +0 -1
- package/dist/examples/tools/llamacpp-native-tools.js +0 -1
- package/dist/examples/tools/llamacpp-tools-gemma4.js +1 -1
- package/dist/examples/tools/llamacpp-tools-pythonic.js +2 -2
- package/dist/examples/tools/llamacpp-tools-qwen35.js +1 -1
- package/dist/examples/transcription/parakeet-ctc-filesystem.js +1 -1
- package/dist/examples/transcription/parakeet-microphone-record.js +0 -1
- package/dist/examples/transcription/parakeet-microphone-stream.js +0 -1
- package/dist/examples/transcription/parakeet-sortformer.js +1 -2
- package/dist/examples/transcription/parakeet-tdt-filesystem.js +1 -1
- package/dist/examples/transcription/whispercpp-filesystem-streaming.js +10 -6
- package/dist/examples/transcription/whispercpp-filesystem.js +4 -2
- package/dist/examples/transcription/whispercpp-microphone-conversation.js +0 -1
- package/dist/examples/transcription/whispercpp-microphone-record.js +0 -1
- package/dist/examples/transcription/whispercpp-prompt.js +0 -1
- package/dist/examples/translation/translation-bergamot-batch.js +1 -2
- package/dist/examples/translation/translation-bergamot-pivot.js +3 -4
- package/dist/examples/translation/translation-bergamot.js +1 -2
- package/dist/examples/translation/translation-indic.js +1 -2
- package/dist/examples/translation/translation-llm-afriquegemma.js +3 -4
- package/dist/examples/translation/translation-llm-context.js +1 -2
- package/dist/examples/translation/translation-llm.js +2 -3
- package/dist/examples/translation/translation-stream.js +2 -3
- package/dist/examples/tts/chatterbox.js +1 -2
- package/dist/examples/tts/llm-to-tts-streaming.js +2 -4
- package/dist/examples/tts/supertonic-multilingual.js +1 -2
- package/dist/examples/tts/supertonic.js +1 -2
- package/dist/examples/vla-pi05.d.ts +2 -0
- package/dist/examples/vla-pi05.js +84 -0
- package/dist/examples/vla-smolvla.js +1 -1
- package/dist/examples/voice-assistant/voice-assistant.js +1 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +9 -7
- package/dist/models/registry/models.d.ts +869 -186
- package/dist/models/registry/models.js +3160 -2453
- package/dist/models/update-models/companions.d.ts +7 -0
- package/dist/models/update-models/companions.js +56 -0
- package/dist/models/update-models/naming.js +10 -0
- package/dist/pear/pre.js +2 -0
- package/dist/schemas/bci-config.d.ts +36 -0
- package/dist/schemas/bci-config.js +56 -0
- package/dist/schemas/bci.d.ts +177 -0
- package/dist/schemas/bci.js +95 -0
- package/dist/schemas/common.d.ts +395 -51
- package/dist/schemas/common.js +5 -0
- package/dist/schemas/completion-event.d.ts +1 -0
- package/dist/schemas/download-asset.d.ts +7 -3
- package/dist/schemas/embed.d.ts +2 -0
- package/dist/schemas/embed.js +1 -0
- package/dist/schemas/engine-addon-map.d.ts +1 -0
- package/dist/schemas/engine-addon-map.js +4 -1
- package/dist/schemas/get-model-info.d.ts +2 -0
- package/dist/schemas/get-model-info.js +1 -0
- package/dist/schemas/index.d.ts +2 -0
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/llamacpp-config.d.ts +6 -2
- package/dist/schemas/load-model.d.ts +1841 -267
- package/dist/schemas/load-model.js +34 -1
- package/dist/schemas/model-src-utils.d.ts +10 -2
- package/dist/schemas/model-types.d.ts +19 -1
- package/dist/schemas/model-types.js +11 -0
- package/dist/schemas/ocr.d.ts +2 -0
- package/dist/schemas/plugin.d.ts +13 -5
- package/dist/schemas/plugin.js +13 -4
- package/dist/schemas/registry.d.ts +18 -0
- package/dist/schemas/registry.js +2 -0
- package/dist/schemas/reload-config.d.ts +10 -2
- package/dist/schemas/sdcpp-config.d.ts +75 -8
- package/dist/schemas/sdcpp-config.js +56 -10
- package/dist/schemas/sdk-config.d.ts +342 -0
- package/dist/schemas/text-to-speech.d.ts +8 -0
- package/dist/schemas/transcription-config.d.ts +2 -0
- package/dist/schemas/transcription.d.ts +12 -0
- package/dist/schemas/transcription.js +8 -0
- package/dist/schemas/translation-config.d.ts +44 -16
- package/dist/schemas/translation-config.js +2 -0
- package/dist/schemas/vla.d.ts +14 -0
- package/dist/schemas/vla.js +26 -3
- package/dist/server/bare/delegate-connect-diagnostics.d.ts +9 -0
- package/dist/server/bare/delegate-connect-diagnostics.js +44 -0
- package/dist/server/bare/delegate-rpc-client.js +10 -12
- package/dist/server/bare/hyperswarm.js +1 -0
- package/dist/server/bare/ops/bci-transcribe.d.ts +13 -0
- package/dist/server/bare/ops/bci-transcribe.js +248 -0
- package/dist/server/bare/ops/embed.js +2 -1
- package/dist/server/bare/ops/kv-cache-utils.js +4 -3
- package/dist/server/bare/ops/transcribe.js +6 -2
- package/dist/server/bare/ops/translate.js +1 -1
- package/dist/server/bare/plugins/bci-whispercpp-transcription/plugin.d.ts +130 -0
- package/dist/server/bare/plugins/bci-whispercpp-transcription/plugin.js +116 -0
- package/dist/server/bare/plugins/ggml-vla/ops/vla-run.js +4 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.d.ts +7 -0
- package/dist/server/bare/plugins/ggml-vla/plugin.js +1 -1
- package/dist/server/bare/plugins/index.d.ts +1 -0
- package/dist/server/bare/plugins/index.js +1 -0
- package/dist/server/bare/plugins/llamacpp-completion/ops/finetune.js +22 -29
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +2 -0
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +38 -7
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.d.ts +1 -0
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +9 -1
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +14 -0
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +2 -0
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +8 -0
- package/dist/server/bare/plugins/sdcpp-generation/ops/video.js +7 -1
- package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +58 -4
- package/dist/server/bare/plugins/sdcpp-generation/plugin.js +9 -4
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +10 -0
- package/dist/server/bare/registry/model-config-utils.js +3 -0
- package/dist/server/bare/runtime/request-registry-singleton.js +11 -4
- package/dist/server/bare/runtime/request-registry.d.ts +60 -16
- package/dist/server/bare/runtime/request-registry.js +258 -15
- package/dist/server/bare/runtime/with-request-context.d.ts +1 -1
- package/dist/server/bare/runtime/with-request-context.js +1 -1
- package/dist/server/bare/types/addon-responses.d.ts +5 -0
- package/dist/server/rpc/handler-registry.js +4 -0
- package/dist/server/rpc/handlers/bci-transcribe-stream.d.ts +3 -0
- package/dist/server/rpc/handlers/bci-transcribe-stream.js +4 -0
- package/dist/server/rpc/handlers/bci-transcribe.d.ts +3 -0
- package/dist/server/rpc/handlers/bci-transcribe.js +4 -0
- package/dist/server/rpc/handlers/download-asset.js +1 -1
- package/dist/server/rpc/handlers/get-model-info.js +3 -3
- package/dist/server/rpc/handlers/index.d.ts +4 -0
- package/dist/server/rpc/handlers/index.js +4 -0
- package/dist/server/rpc/handlers/load-model/download-manager.d.ts +1 -1
- package/dist/server/rpc/handlers/load-model/handler.js +1 -1
- package/dist/server/rpc/handlers/load-model/http.js +6 -6
- package/dist/server/rpc/handlers/load-model/hyperdrive.js +1 -0
- package/dist/server/rpc/handlers/load-model/registry-companion-set.d.ts +1 -0
- package/dist/server/rpc/handlers/load-model/registry-companion-set.js +2 -2
- package/dist/server/rpc/handlers/load-model/registry.js +1 -0
- package/dist/server/rpc/handlers/load-model/resolve-session.d.ts +1 -1
- package/dist/server/rpc/handlers/rag.js +5 -5
- package/dist/server/utils/checksum.js +2 -1
- package/dist/server/utils/formatting.js +2 -1
- package/dist/server/utils/multi-gpu-mobile.d.ts +5 -0
- package/dist/server/utils/multi-gpu-mobile.js +10 -0
- package/dist/server/worker.js +2 -1
- package/dist/utils/aggregate-events.d.ts +2 -1
- package/dist/utils/aggregate-events.js +11 -3
- package/dist/utils/errors-server.d.ts +6 -4
- package/dist/utils/errors-server.js +6 -4
- package/electron-forge/index.cjs +820 -0
- package/package.json +68 -35
- package/dist/scripts/run-security-tests-bare.d.ts +0 -2
- package/dist/scripts/run-security-tests-bare.js +0 -78
package/dist/schemas/common.js
CHANGED
|
@@ -6,6 +6,7 @@ import { loadModelRequestSchema, loadModelResponseSchema, modelProgressUpdateSch
|
|
|
6
6
|
import { downloadAssetRequestSchema, downloadAssetResponseSchema, } from "./download-asset.js";
|
|
7
7
|
import { unloadModelRequestSchema, unloadModelResponseSchema, } from "./unload-model.js";
|
|
8
8
|
import { transcribeRequestSchema, transcribeResponseSchema, transcribeStreamRequestSchema, transcribeStreamResponseSchema, } from "./transcription.js";
|
|
9
|
+
import { bciTranscribeRequestSchema, bciTranscribeResponseSchema, bciTranscribeStreamRequestSchema, bciTranscribeStreamResponseSchema, } from "./bci.js";
|
|
9
10
|
import { embedRequestSchema, embedResponseSchema } from "./embed.js";
|
|
10
11
|
import { cancelRequestSchema, cancelResponseSchema } from "./cancel.js";
|
|
11
12
|
import { provideRequestSchema, provideResponseSchema } from "./provide.js";
|
|
@@ -35,6 +36,8 @@ export const requestSchema = z.union([
|
|
|
35
36
|
unloadModelRequestSchema,
|
|
36
37
|
transcribeRequestSchema,
|
|
37
38
|
transcribeStreamRequestSchema,
|
|
39
|
+
bciTranscribeRequestSchema,
|
|
40
|
+
bciTranscribeStreamRequestSchema,
|
|
38
41
|
loggingStreamRequestSchema,
|
|
39
42
|
embedRequestSchema,
|
|
40
43
|
translateRequestSchema,
|
|
@@ -71,6 +74,8 @@ export const responseSchema = z.discriminatedUnion("type", [
|
|
|
71
74
|
modelProgressUpdateSchema,
|
|
72
75
|
transcribeResponseSchema,
|
|
73
76
|
transcribeStreamResponseSchema,
|
|
77
|
+
bciTranscribeResponseSchema,
|
|
78
|
+
bciTranscribeStreamResponseSchema,
|
|
74
79
|
loggingStreamResponseSchema,
|
|
75
80
|
embedResponseSchema,
|
|
76
81
|
translateResponseSchema,
|
|
@@ -20,6 +20,7 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
20
20
|
vla: "vla";
|
|
21
21
|
"llamacpp-completion": "llamacpp-completion";
|
|
22
22
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
23
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
23
24
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
24
25
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
25
26
|
"onnx-tts": "onnx-tts";
|
|
@@ -31,6 +32,7 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
31
32
|
"ggml-classification": "ggml-classification";
|
|
32
33
|
llm: "llm";
|
|
33
34
|
whisper: "whisper";
|
|
35
|
+
bci: "bci";
|
|
34
36
|
nmt: "nmt";
|
|
35
37
|
parakeet: "parakeet";
|
|
36
38
|
classification: "classification";
|
|
@@ -50,7 +52,7 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
50
52
|
engine?: string | undefined;
|
|
51
53
|
expectedSize?: number | undefined;
|
|
52
54
|
sha256Checksum?: string | 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;
|
|
55
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
54
56
|
};
|
|
55
57
|
}, {
|
|
56
58
|
assetSrc: string | {
|
|
@@ -64,7 +66,7 @@ export declare const downloadAssetOptionsSchema: z.ZodPipe<z.ZodObject<{
|
|
|
64
66
|
engine?: string | undefined;
|
|
65
67
|
expectedSize?: number | undefined;
|
|
66
68
|
sha256Checksum?: string | 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;
|
|
69
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
68
70
|
};
|
|
69
71
|
seed?: boolean | undefined;
|
|
70
72
|
}>>;
|
|
@@ -88,6 +90,7 @@ export declare const downloadAssetOptionsToRequestSchema: z.ZodPipe<z.ZodObject<
|
|
|
88
90
|
vla: "vla";
|
|
89
91
|
"llamacpp-completion": "llamacpp-completion";
|
|
90
92
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
93
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
91
94
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
92
95
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
93
96
|
"onnx-tts": "onnx-tts";
|
|
@@ -99,6 +102,7 @@ export declare const downloadAssetOptionsToRequestSchema: z.ZodPipe<z.ZodObject<
|
|
|
99
102
|
"ggml-classification": "ggml-classification";
|
|
100
103
|
llm: "llm";
|
|
101
104
|
whisper: "whisper";
|
|
105
|
+
bci: "bci";
|
|
102
106
|
nmt: "nmt";
|
|
103
107
|
parakeet: "parakeet";
|
|
104
108
|
classification: "classification";
|
|
@@ -126,7 +130,7 @@ export declare const downloadAssetOptionsToRequestSchema: z.ZodPipe<z.ZodObject<
|
|
|
126
130
|
engine?: string | undefined;
|
|
127
131
|
expectedSize?: number | undefined;
|
|
128
132
|
sha256Checksum?: string | 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;
|
|
133
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
130
134
|
};
|
|
131
135
|
seed?: boolean | undefined;
|
|
132
136
|
onProgress?: unknown;
|
package/dist/schemas/embed.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare const embedStatsSchema: z.ZodObject<{
|
|
|
17
17
|
cpu: "cpu";
|
|
18
18
|
gpu: "gpu";
|
|
19
19
|
}>>;
|
|
20
|
+
contextSize: z.ZodOptional<z.ZodNumber>;
|
|
20
21
|
}, z.core.$strip>;
|
|
21
22
|
export declare const embedResponseSchema: z.ZodObject<{
|
|
22
23
|
type: z.ZodLiteral<"embed">;
|
|
@@ -30,6 +31,7 @@ export declare const embedResponseSchema: z.ZodObject<{
|
|
|
30
31
|
cpu: "cpu";
|
|
31
32
|
gpu: "gpu";
|
|
32
33
|
}>>;
|
|
34
|
+
contextSize: z.ZodOptional<z.ZodNumber>;
|
|
33
35
|
}, z.core.$strip>>;
|
|
34
36
|
error: z.ZodOptional<z.ZodString>;
|
|
35
37
|
}, z.core.$strip>;
|
package/dist/schemas/embed.js
CHANGED
|
@@ -32,6 +32,7 @@ export const embedStatsSchema = z.object({
|
|
|
32
32
|
.enum(["cpu", "gpu"])
|
|
33
33
|
.optional()
|
|
34
34
|
.describe("Compute backend used for inference"),
|
|
35
|
+
contextSize: z.number().optional().describe("Context size in tokens"),
|
|
35
36
|
});
|
|
36
37
|
export const embedResponseSchema = z.object({
|
|
37
38
|
type: z.literal("embed"),
|
|
@@ -2,6 +2,7 @@ import { type ModelRegistryEngine, type ModelRegistryEntryAddon } from "./regist
|
|
|
2
2
|
export declare const ENGINE_TO_ADDON: {
|
|
3
3
|
readonly "llamacpp-completion": "llm";
|
|
4
4
|
readonly "whispercpp-transcription": "whisper";
|
|
5
|
+
readonly "bci-whispercpp-transcription": "bci";
|
|
5
6
|
readonly "llamacpp-embedding": "embeddings";
|
|
6
7
|
readonly "nmtcpp-translation": "nmt";
|
|
7
8
|
readonly "onnx-tts": "tts";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ModelType } from "./model-types.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";
|
|
2
|
+
import { ADDON_BCI, 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.
|
|
6
6
|
export const ENGINE_TO_ADDON = {
|
|
7
7
|
[ModelType.llamacppCompletion]: "llm",
|
|
8
8
|
[ModelType.whispercppTranscription]: "whisper",
|
|
9
|
+
[ModelType.bciWhispercppTranscription]: "bci",
|
|
9
10
|
[ModelType.llamacppEmbedding]: "embeddings",
|
|
10
11
|
[ModelType.nmtcppTranslation]: "nmt",
|
|
11
12
|
[ModelType.onnxTts]: "tts",
|
|
@@ -22,6 +23,7 @@ export const ENGINE_TO_ADDON = {
|
|
|
22
23
|
const LEGACY_ENGINE_TO_CANONICAL = {
|
|
23
24
|
[ADDON_LLM]: ModelType.llamacppCompletion,
|
|
24
25
|
[ADDON_WHISPER]: ModelType.whispercppTranscription,
|
|
26
|
+
[ADDON_BCI]: ModelType.bciWhispercppTranscription,
|
|
25
27
|
[ADDON_EMBEDDING]: ModelType.llamacppEmbedding,
|
|
26
28
|
[ADDON_NMT]: ModelType.nmtcppTranslation,
|
|
27
29
|
[ADDON_TTS]: ModelType.ttsGgml,
|
|
@@ -35,6 +37,7 @@ const LEGACY_ENGINE_TO_CANONICAL = {
|
|
|
35
37
|
// Tag-style names (used by some older registry entries)
|
|
36
38
|
generation: ModelType.llamacppCompletion,
|
|
37
39
|
transcription: ModelType.whispercppTranscription,
|
|
40
|
+
bci: ModelType.bciWhispercppTranscription,
|
|
38
41
|
embedding: ModelType.llamacppEmbedding,
|
|
39
42
|
translation: ModelType.nmtcppTranslation,
|
|
40
43
|
vad: "onnx-vad",
|
|
@@ -42,6 +42,7 @@ export declare const modelInfoSchema: z.ZodObject<{
|
|
|
42
42
|
vla: "vla";
|
|
43
43
|
llm: "llm";
|
|
44
44
|
whisper: "whisper";
|
|
45
|
+
bci: "bci";
|
|
45
46
|
nmt: "nmt";
|
|
46
47
|
parakeet: "parakeet";
|
|
47
48
|
classification: "classification";
|
|
@@ -91,6 +92,7 @@ export declare const getModelInfoResponseSchema: z.ZodObject<{
|
|
|
91
92
|
vla: "vla";
|
|
92
93
|
llm: "llm";
|
|
93
94
|
whisper: "whisper";
|
|
95
|
+
bci: "bci";
|
|
94
96
|
nmt: "nmt";
|
|
95
97
|
parakeet: "parakeet";
|
|
96
98
|
classification: "classification";
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export * from "./unload-model";
|
|
|
17
17
|
export * from "./heartbeat";
|
|
18
18
|
export * from "./common";
|
|
19
19
|
export * from "./transcription";
|
|
20
|
+
export * from "./bci";
|
|
21
|
+
export * from "./bci-config";
|
|
20
22
|
export * from "./translate";
|
|
21
23
|
export * from "./translation-config";
|
|
22
24
|
export * from "./llamacpp-config";
|
package/dist/schemas/index.js
CHANGED
|
@@ -18,6 +18,8 @@ export * from "./unload-model.js";
|
|
|
18
18
|
export * from "./heartbeat.js";
|
|
19
19
|
export * from "./common.js";
|
|
20
20
|
export * from "./transcription.js";
|
|
21
|
+
export * from "./bci.js";
|
|
22
|
+
export * from "./bci-config.js";
|
|
21
23
|
export * from "./translate.js";
|
|
22
24
|
export * from "./translation-config.js";
|
|
23
25
|
export * from "./llamacpp-config.js";
|
|
@@ -61,6 +61,7 @@ export declare const llmConfigBaseSchema: z.ZodObject<{
|
|
|
61
61
|
vla: "vla";
|
|
62
62
|
"llamacpp-completion": "llamacpp-completion";
|
|
63
63
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
64
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
64
65
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
65
66
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
66
67
|
"onnx-tts": "onnx-tts";
|
|
@@ -72,6 +73,7 @@ export declare const llmConfigBaseSchema: z.ZodObject<{
|
|
|
72
73
|
"ggml-classification": "ggml-classification";
|
|
73
74
|
llm: "llm";
|
|
74
75
|
whisper: "whisper";
|
|
76
|
+
bci: "bci";
|
|
75
77
|
nmt: "nmt";
|
|
76
78
|
parakeet: "parakeet";
|
|
77
79
|
classification: "classification";
|
|
@@ -141,6 +143,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
141
143
|
vla: "vla";
|
|
142
144
|
"llamacpp-completion": "llamacpp-completion";
|
|
143
145
|
"whispercpp-transcription": "whispercpp-transcription";
|
|
146
|
+
"bci-whispercpp-transcription": "bci-whispercpp-transcription";
|
|
144
147
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
145
148
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
146
149
|
"onnx-tts": "onnx-tts";
|
|
@@ -152,6 +155,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
152
155
|
"ggml-classification": "ggml-classification";
|
|
153
156
|
llm: "llm";
|
|
154
157
|
whisper: "whisper";
|
|
158
|
+
bci: "bci";
|
|
155
159
|
nmt: "nmt";
|
|
156
160
|
parakeet: "parakeet";
|
|
157
161
|
classification: "classification";
|
|
@@ -195,7 +199,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
195
199
|
engine?: string | undefined;
|
|
196
200
|
expectedSize?: number | undefined;
|
|
197
201
|
sha256Checksum?: string | 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;
|
|
202
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
199
203
|
} | undefined;
|
|
200
204
|
}, {
|
|
201
205
|
ctx_size?: number | undefined;
|
|
@@ -235,7 +239,7 @@ export declare const llmConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
235
239
|
engine?: string | undefined;
|
|
236
240
|
expectedSize?: number | undefined;
|
|
237
241
|
sha256Checksum?: string | 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;
|
|
242
|
+
addon?: "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification" | "vad" | undefined;
|
|
239
243
|
} | undefined;
|
|
240
244
|
}>>;
|
|
241
245
|
export type LlmConfig = z.infer<typeof llmConfigSchema>;
|