@qvac/sdk 0.12.1 → 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.
Files changed (218) hide show
  1. package/NOTICE +55 -1225
  2. package/README.md +12 -0
  3. package/dist/client/api/bci-transcribe.d.ts +57 -0
  4. package/dist/client/api/bci-transcribe.js +172 -0
  5. package/dist/client/api/get-model-info.d.ts +1 -1
  6. package/dist/client/api/index.d.ts +1 -0
  7. package/dist/client/api/index.js +1 -0
  8. package/dist/client/api/video.d.ts +26 -6
  9. package/dist/client/api/video.js +30 -7
  10. package/dist/client/api/vla.d.ts +11 -7
  11. package/dist/client/api/vla.js +11 -7
  12. package/dist/client/config-loader/resolve-config.bare.d.ts +1 -1
  13. package/dist/client/config-loader/resolve-config.bare.js +21 -35
  14. package/dist/client/rpc/bare-client.js +2 -2
  15. package/dist/commands/bundle/constants.js +2 -0
  16. package/dist/examples/bci/bci-filesystem-streaming.d.ts +2 -0
  17. package/dist/examples/bci/bci-filesystem-streaming.js +77 -0
  18. package/dist/examples/bci/bci-filesystem.d.ts +2 -0
  19. package/dist/examples/bci/bci-filesystem.js +63 -0
  20. package/dist/examples/cache-management.js +0 -1
  21. package/dist/examples/cancel-by-request-id.js +0 -1
  22. package/dist/examples/classification/classify-image.js +1 -1
  23. package/dist/examples/completion-events.js +6 -2
  24. package/dist/examples/completion-stop-reason.d.ts +25 -0
  25. package/dist/examples/completion-stop-reason.js +65 -0
  26. package/dist/examples/concurrent-completion-collision.d.ts +2 -0
  27. package/dist/examples/concurrent-completion-collision.js +98 -0
  28. package/dist/examples/config-reload.js +1 -2
  29. package/dist/examples/default-config-usage.js +0 -1
  30. package/dist/examples/delegated-inference/composite.js +0 -1
  31. package/dist/examples/delegated-inference/consumer-profiled.js +0 -1
  32. package/dist/examples/delegated-inference/consumer.js +0 -1
  33. package/dist/examples/diffusion-esrgan-upscale.js +1 -3
  34. package/dist/examples/diffusion-flux2-klein-img2img.js +1 -1
  35. package/dist/examples/diffusion-flux2-klein.js +2 -2
  36. package/dist/examples/diffusion-img2img.js +1 -1
  37. package/dist/examples/diffusion-img2vid.d.ts +2 -0
  38. package/dist/examples/diffusion-img2vid.js +78 -0
  39. package/dist/examples/diffusion-simple.js +1 -1
  40. package/dist/examples/diffusion-txt2img.js +8 -3
  41. package/dist/examples/diffusion-txt2vid.js +2 -3
  42. package/dist/examples/download-with-blind-relays.js +0 -1
  43. package/dist/examples/embed-multi-gpu.js +1 -2
  44. package/dist/examples/embed-p2p.js +4 -2
  45. package/dist/examples/finetune/llamacpp-finetune.js +5 -3
  46. package/dist/examples/kv-cache-cleanup.js +0 -1
  47. package/dist/examples/kv-cache-custom-key.js +0 -1
  48. package/dist/examples/kv-cache-example.js +4 -2
  49. package/dist/examples/llamacpp-cache.js +0 -1
  50. package/dist/examples/llamacpp-dynamic-tools.js +4 -2
  51. package/dist/examples/llamacpp-filesystem.js +1 -1
  52. package/dist/examples/llamacpp-http.js +1 -1
  53. package/dist/examples/llamacpp-multi-gpu.js +2 -2
  54. package/dist/examples/llamacpp-multimodal.js +0 -1
  55. package/dist/examples/llamacpp-p2p.js +0 -1
  56. package/dist/examples/llamacpp-sharded.js +1 -1
  57. package/dist/examples/llamacpp-structured-output.js +0 -1
  58. package/dist/examples/logging-file-transport.js +0 -1
  59. package/dist/examples/logging-streaming.js +0 -2
  60. package/dist/examples/mcp-websearch.js +0 -1
  61. package/dist/examples/multi-model-demo.js +0 -2
  62. package/dist/examples/ocr-fasttext.js +0 -1
  63. package/dist/examples/plugins.js +1 -4
  64. package/dist/examples/profiling/basic.js +3 -2
  65. package/dist/examples/profiling/per-call.js +0 -1
  66. package/dist/examples/quickstart.js +0 -1
  67. package/dist/examples/rag/rag-chromadb.js +0 -1
  68. package/dist/examples/rag/rag-hyperdb/cancellation.js +0 -1
  69. package/dist/examples/rag/rag-hyperdb/ingest.js +0 -1
  70. package/dist/examples/rag/rag-hyperdb/pipeline.js +0 -1
  71. package/dist/examples/rag/rag-hyperdb/workspaces.js +0 -1
  72. package/dist/examples/rag/rag-lancedb.js +0 -1
  73. package/dist/examples/rag/rag-sqlite.js +0 -1
  74. package/dist/examples/suspend-resume.js +0 -1
  75. package/dist/examples/tools/llamacpp-native-tools.js +0 -1
  76. package/dist/examples/tools/llamacpp-tools-gemma4.js +1 -1
  77. package/dist/examples/tools/llamacpp-tools-pythonic.js +2 -2
  78. package/dist/examples/tools/llamacpp-tools-qwen35.js +1 -1
  79. package/dist/examples/transcription/parakeet-ctc-filesystem.js +1 -1
  80. package/dist/examples/transcription/parakeet-microphone-record.js +0 -1
  81. package/dist/examples/transcription/parakeet-microphone-stream.js +0 -1
  82. package/dist/examples/transcription/parakeet-sortformer.js +1 -2
  83. package/dist/examples/transcription/parakeet-tdt-filesystem.js +1 -1
  84. package/dist/examples/transcription/whispercpp-filesystem-streaming.js +10 -6
  85. package/dist/examples/transcription/whispercpp-filesystem.js +4 -2
  86. package/dist/examples/transcription/whispercpp-microphone-conversation.js +0 -1
  87. package/dist/examples/transcription/whispercpp-microphone-record.js +0 -1
  88. package/dist/examples/transcription/whispercpp-prompt.js +0 -1
  89. package/dist/examples/translation/translation-bergamot-batch.js +1 -2
  90. package/dist/examples/translation/translation-bergamot-pivot.js +3 -4
  91. package/dist/examples/translation/translation-bergamot.js +1 -2
  92. package/dist/examples/translation/translation-indic.js +1 -2
  93. package/dist/examples/translation/translation-llm-afriquegemma.js +3 -4
  94. package/dist/examples/translation/translation-llm-context.js +1 -2
  95. package/dist/examples/translation/translation-llm.js +2 -3
  96. package/dist/examples/translation/translation-stream.js +2 -3
  97. package/dist/examples/tts/chatterbox.js +1 -2
  98. package/dist/examples/tts/llm-to-tts-streaming.js +2 -4
  99. package/dist/examples/tts/supertonic-multilingual.js +1 -2
  100. package/dist/examples/tts/supertonic.js +1 -2
  101. package/dist/examples/vla-pi05.d.ts +2 -0
  102. package/dist/examples/vla-pi05.js +84 -0
  103. package/dist/examples/vla-smolvla.js +1 -1
  104. package/dist/examples/voice-assistant/voice-assistant.js +1 -4
  105. package/dist/index.d.ts +2 -2
  106. package/dist/index.js +9 -7
  107. package/dist/models/registry/models.d.ts +869 -186
  108. package/dist/models/registry/models.js +3160 -2453
  109. package/dist/models/update-models/companions.d.ts +7 -0
  110. package/dist/models/update-models/companions.js +56 -0
  111. package/dist/models/update-models/naming.js +10 -0
  112. package/dist/pear/pre.js +2 -0
  113. package/dist/schemas/bci-config.d.ts +36 -0
  114. package/dist/schemas/bci-config.js +56 -0
  115. package/dist/schemas/bci.d.ts +177 -0
  116. package/dist/schemas/bci.js +95 -0
  117. package/dist/schemas/common.d.ts +395 -51
  118. package/dist/schemas/common.js +5 -0
  119. package/dist/schemas/completion-event.d.ts +1 -0
  120. package/dist/schemas/download-asset.d.ts +7 -3
  121. package/dist/schemas/embed.d.ts +2 -0
  122. package/dist/schemas/embed.js +1 -0
  123. package/dist/schemas/engine-addon-map.d.ts +1 -0
  124. package/dist/schemas/engine-addon-map.js +4 -1
  125. package/dist/schemas/get-model-info.d.ts +2 -0
  126. package/dist/schemas/get-model-info.js +1 -0
  127. package/dist/schemas/index.d.ts +2 -0
  128. package/dist/schemas/index.js +2 -0
  129. package/dist/schemas/llamacpp-config.d.ts +6 -2
  130. package/dist/schemas/load-model.d.ts +1841 -267
  131. package/dist/schemas/load-model.js +34 -1
  132. package/dist/schemas/model-src-utils.d.ts +10 -2
  133. package/dist/schemas/model-types.d.ts +19 -1
  134. package/dist/schemas/model-types.js +11 -0
  135. package/dist/schemas/ocr.d.ts +2 -0
  136. package/dist/schemas/plugin.d.ts +13 -5
  137. package/dist/schemas/plugin.js +13 -4
  138. package/dist/schemas/registry.d.ts +18 -0
  139. package/dist/schemas/registry.js +2 -0
  140. package/dist/schemas/reload-config.d.ts +10 -2
  141. package/dist/schemas/sdcpp-config.d.ts +75 -8
  142. package/dist/schemas/sdcpp-config.js +56 -10
  143. package/dist/schemas/sdk-config.d.ts +342 -0
  144. package/dist/schemas/text-to-speech.d.ts +8 -0
  145. package/dist/schemas/transcription-config.d.ts +2 -0
  146. package/dist/schemas/transcription.d.ts +12 -0
  147. package/dist/schemas/transcription.js +8 -0
  148. package/dist/schemas/translation-config.d.ts +44 -16
  149. package/dist/schemas/translation-config.js +2 -0
  150. package/dist/schemas/vla.d.ts +14 -0
  151. package/dist/schemas/vla.js +26 -3
  152. package/dist/server/bare/delegate-connect-diagnostics.d.ts +9 -0
  153. package/dist/server/bare/delegate-connect-diagnostics.js +44 -0
  154. package/dist/server/bare/delegate-rpc-client.js +10 -12
  155. package/dist/server/bare/hyperswarm.js +1 -0
  156. package/dist/server/bare/ops/bci-transcribe.d.ts +13 -0
  157. package/dist/server/bare/ops/bci-transcribe.js +248 -0
  158. package/dist/server/bare/ops/embed.js +2 -1
  159. package/dist/server/bare/ops/kv-cache-utils.js +4 -3
  160. package/dist/server/bare/ops/transcribe.js +6 -2
  161. package/dist/server/bare/ops/translate.js +1 -1
  162. package/dist/server/bare/plugins/bci-whispercpp-transcription/plugin.d.ts +130 -0
  163. package/dist/server/bare/plugins/bci-whispercpp-transcription/plugin.js +116 -0
  164. package/dist/server/bare/plugins/ggml-vla/ops/vla-run.js +4 -0
  165. package/dist/server/bare/plugins/ggml-vla/plugin.d.ts +7 -0
  166. package/dist/server/bare/plugins/ggml-vla/plugin.js +1 -1
  167. package/dist/server/bare/plugins/index.d.ts +1 -0
  168. package/dist/server/bare/plugins/index.js +1 -0
  169. package/dist/server/bare/plugins/llamacpp-completion/ops/finetune.js +22 -29
  170. package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +2 -0
  171. package/dist/server/bare/plugins/llamacpp-completion/plugin.js +38 -7
  172. package/dist/server/bare/plugins/llamacpp-embedding/plugin.d.ts +1 -0
  173. package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +9 -1
  174. package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +14 -0
  175. package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +2 -0
  176. package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +8 -0
  177. package/dist/server/bare/plugins/sdcpp-generation/ops/video.js +7 -1
  178. package/dist/server/bare/plugins/sdcpp-generation/plugin.d.ts +58 -4
  179. package/dist/server/bare/plugins/sdcpp-generation/plugin.js +9 -4
  180. package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +10 -0
  181. package/dist/server/bare/registry/model-config-utils.js +3 -0
  182. package/dist/server/bare/runtime/request-registry-singleton.js +11 -4
  183. package/dist/server/bare/runtime/request-registry.d.ts +60 -16
  184. package/dist/server/bare/runtime/request-registry.js +258 -15
  185. package/dist/server/bare/runtime/with-request-context.d.ts +1 -1
  186. package/dist/server/bare/runtime/with-request-context.js +1 -1
  187. package/dist/server/bare/types/addon-responses.d.ts +5 -0
  188. package/dist/server/rpc/handler-registry.js +4 -0
  189. package/dist/server/rpc/handlers/bci-transcribe-stream.d.ts +3 -0
  190. package/dist/server/rpc/handlers/bci-transcribe-stream.js +4 -0
  191. package/dist/server/rpc/handlers/bci-transcribe.d.ts +3 -0
  192. package/dist/server/rpc/handlers/bci-transcribe.js +4 -0
  193. package/dist/server/rpc/handlers/download-asset.js +1 -1
  194. package/dist/server/rpc/handlers/get-model-info.js +3 -3
  195. package/dist/server/rpc/handlers/index.d.ts +4 -0
  196. package/dist/server/rpc/handlers/index.js +4 -0
  197. package/dist/server/rpc/handlers/load-model/download-manager.d.ts +1 -1
  198. package/dist/server/rpc/handlers/load-model/handler.js +1 -1
  199. package/dist/server/rpc/handlers/load-model/http.js +6 -6
  200. package/dist/server/rpc/handlers/load-model/hyperdrive.js +1 -0
  201. package/dist/server/rpc/handlers/load-model/registry-companion-set.d.ts +1 -0
  202. package/dist/server/rpc/handlers/load-model/registry-companion-set.js +2 -2
  203. package/dist/server/rpc/handlers/load-model/registry.js +1 -0
  204. package/dist/server/rpc/handlers/load-model/resolve-session.d.ts +1 -1
  205. package/dist/server/rpc/handlers/rag.js +5 -5
  206. package/dist/server/utils/checksum.js +2 -1
  207. package/dist/server/utils/formatting.js +2 -1
  208. package/dist/server/utils/multi-gpu-mobile.d.ts +5 -0
  209. package/dist/server/utils/multi-gpu-mobile.js +10 -0
  210. package/dist/server/worker.js +2 -1
  211. package/dist/utils/aggregate-events.d.ts +2 -1
  212. package/dist/utils/aggregate-events.js +11 -3
  213. package/dist/utils/errors-server.d.ts +6 -4
  214. package/dist/utils/errors-server.js +6 -4
  215. package/electron-forge/index.cjs +820 -0
  216. package/package.json +73 -35
  217. package/dist/scripts/run-security-tests-bare.d.ts +0 -2
  218. package/dist/scripts/run-security-tests-bare.js +0 -78
@@ -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,
@@ -184,6 +184,7 @@ export type CompletionFinal = {
184
184
  thinkingText?: string;
185
185
  toolCalls: ToolCallWithCall[];
186
186
  stats?: CompletionStats;
187
+ stopReason?: StopReason;
187
188
  raw: {
188
189
  fullText: string;
189
190
  };
@@ -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;
@@ -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>;
@@ -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";
@@ -92,6 +92,7 @@ export const modelInfoSchema = z.object({
92
92
  .enum([
93
93
  "llm",
94
94
  "whisper",
95
+ "bci",
95
96
  "parakeet",
96
97
  "embeddings",
97
98
  "nmt",
@@ -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";
@@ -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>;