@qvac/sdk 0.7.1 → 0.8.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 +57 -331
- package/README.md +2 -2
- package/bare-imports.json +9 -0
- package/dist/client/api/completion-stream.d.ts +2 -1
- package/dist/client/api/completion-stream.js +2 -1
- package/dist/client/api/download-asset.d.ts +3 -2
- package/dist/client/api/download-asset.js +4 -3
- package/dist/client/api/embed.d.ts +5 -2
- package/dist/client/api/embed.js +2 -2
- package/dist/client/api/get-model-info.d.ts +1 -1
- package/dist/client/api/invoke-plugin.d.ts +3 -2
- package/dist/client/api/invoke-plugin.js +4 -4
- package/dist/client/api/load-model.d.ts +12 -10
- package/dist/client/api/load-model.js +3 -3
- package/dist/client/api/rag.d.ts +10 -10
- package/dist/client/api/rag.js +21 -21
- package/dist/client/api/text-to-speech.d.ts +2 -2
- package/dist/client/api/text-to-speech.js +3 -3
- package/dist/client/api/transcribe.d.ts +5 -3
- package/dist/client/api/transcribe.js +6 -4
- package/dist/client/api/translate.d.ts +2 -2
- package/dist/client/api/translate.js +3 -3
- package/dist/client/rpc/node-rpc-client.d.ts +2 -7
- package/dist/client/rpc/node-rpc-client.js +2 -39
- package/dist/client/rpc/profiling/index.d.ts +2 -0
- package/dist/client/rpc/profiling/index.js +1 -0
- package/dist/client/rpc/profiling/profiler.d.ts +27 -0
- package/dist/client/rpc/profiling/profiler.js +139 -0
- package/dist/client/rpc/rpc-client.d.ts +2 -2
- package/dist/client/rpc/rpc-client.js +174 -12
- package/dist/examples/delegated-inference/consumer-profiled.d.ts +2 -0
- package/dist/examples/delegated-inference/consumer-profiled.js +67 -0
- package/dist/examples/llamacpp-multimodal.js +1 -1
- package/dist/examples/parallel-download.js +45 -13
- package/dist/examples/profiling/basic.d.ts +2 -0
- package/dist/examples/profiling/basic.js +71 -0
- package/dist/examples/profiling/per-call.d.ts +2 -0
- package/dist/examples/profiling/per-call.js +30 -0
- package/dist/examples/transcription/parakeet-ctc-filesystem.d.ts +2 -0
- package/dist/examples/transcription/parakeet-ctc-filesystem.js +40 -0
- package/dist/examples/transcription/parakeet-microphone-record.d.ts +2 -0
- package/dist/examples/transcription/parakeet-microphone-record.js +95 -0
- package/dist/examples/transcription/parakeet-sortformer.d.ts +2 -0
- package/dist/examples/transcription/parakeet-sortformer.js +115 -0
- package/dist/examples/transcription/parakeet-tdt-filesystem.d.ts +2 -0
- package/dist/examples/transcription/parakeet-tdt-filesystem.js +44 -0
- package/dist/examples/translation/translation-bergamot-pivot.d.ts +2 -0
- package/dist/examples/translation/translation-bergamot-pivot.js +73 -0
- package/dist/examples/translation/translation-llm-afriquegemma.d.ts +2 -0
- package/dist/examples/translation/translation-llm-afriquegemma.js +39 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -0
- package/dist/logging/index.d.ts +1 -1
- package/dist/logging/index.js +1 -1
- package/dist/logging/namespaces.d.ts +3 -9
- package/dist/logging/namespaces.js +2 -8
- package/dist/logging/registry.js +15 -1
- package/dist/models/registry/models.d.ts +1606 -245
- package/dist/models/registry/models.js +2127 -721
- package/dist/models/update-models/codegen.js +2 -2
- package/dist/models/update-models/history.d.ts +11 -0
- package/dist/models/update-models/history.js +24 -5
- package/dist/models/update-models/index.js +17 -16
- package/dist/models/update-models/naming.js +56 -0
- package/dist/profiling/aggregator.d.ts +15 -0
- package/dist/profiling/aggregator.js +100 -0
- package/dist/profiling/clock.d.ts +12 -0
- package/dist/profiling/clock.js +51 -0
- package/dist/profiling/controller.d.ts +33 -0
- package/dist/profiling/controller.js +123 -0
- package/dist/profiling/envelope.d.ts +10 -0
- package/dist/profiling/envelope.js +36 -0
- package/dist/profiling/events.d.ts +20 -0
- package/dist/profiling/events.js +37 -0
- package/dist/profiling/exporters.d.ts +10 -0
- package/dist/profiling/exporters.js +236 -0
- package/dist/profiling/index.d.ts +36 -0
- package/dist/profiling/index.js +31 -0
- package/dist/profiling/ring-buffer.d.ts +19 -0
- package/dist/profiling/ring-buffer.js +83 -0
- package/dist/profiling/types.d.ts +47 -0
- package/dist/profiling/types.js +1 -0
- package/dist/schemas/common.d.ts +1888 -133
- package/dist/schemas/common.js +2 -0
- package/dist/schemas/completion-stream.d.ts +31 -0
- package/dist/schemas/completion-stream.js +13 -0
- package/dist/schemas/download-asset.d.ts +14 -3
- package/dist/schemas/download-asset.js +3 -1
- package/dist/schemas/engine-addon-map.js +9 -6
- 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 -1
- package/dist/schemas/index.js +2 -1
- package/dist/schemas/llamacpp-config.d.ts +140 -14
- package/dist/schemas/llamacpp-config.js +11 -7
- package/dist/schemas/load-model.d.ts +9649 -2515
- package/dist/schemas/load-model.js +142 -182
- 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 +37 -0
- package/dist/schemas/ocr.js +5 -0
- package/dist/schemas/plugin.d.ts +51 -5
- package/dist/schemas/plugin.js +26 -0
- package/dist/schemas/profiling.d.ts +105 -0
- package/dist/schemas/profiling.js +66 -0
- package/dist/schemas/registry.d.ts +18 -0
- package/dist/schemas/registry.js +2 -0
- package/dist/schemas/reload-config.d.ts +126 -6
- package/dist/schemas/reload-config.js +1 -1
- package/dist/schemas/sdk-config.d.ts +2280 -24
- package/dist/schemas/sdk-config.js +6 -1
- package/dist/schemas/sdk-errors-client.d.ts +1 -0
- package/dist/schemas/sdk-errors-client.js +7 -0
- package/dist/schemas/sdk-errors-server.d.ts +3 -0
- package/dist/schemas/sdk-errors-server.js +15 -0
- package/dist/schemas/text-to-speech.d.ts +90 -68
- package/dist/schemas/text-to-speech.js +16 -33
- package/dist/schemas/transcription-config.d.ts +383 -0
- package/dist/schemas/{whispercpp-config.js → transcription-config.js} +29 -1
- package/dist/schemas/translation-config.d.ts +463 -8
- package/dist/schemas/translation-config.js +35 -2
- package/dist/server/bare/delegate-rpc-client.js +11 -1
- package/dist/server/bare/ops/load-model.d.ts +7 -1
- package/dist/server/bare/ops/load-model.js +41 -42
- package/dist/server/bare/ops/transcribe.d.ts +3 -0
- package/dist/server/bare/ops/transcribe.js +75 -0
- package/dist/server/bare/ops/translate.d.ts +2 -0
- package/dist/server/bare/ops/translate.js +12 -4
- 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/completion-stream.d.ts +2 -1
- package/dist/server/bare/plugins/llamacpp-completion/ops/completion-stream.js +8 -6
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +108 -3
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +19 -6
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.d.ts +32 -2
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +31 -17
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +325 -3
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.js +117 -10
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +50 -2
- package/dist/server/bare/plugins/onnx-ocr/plugin.js +46 -5
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +351 -4
- package/dist/server/bare/plugins/onnx-tts/plugin.js +81 -61
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +317 -0
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +154 -0
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +209 -3
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +21 -9
- package/dist/server/bare/rag-hyperdb/rag-workspace-manager.js +2 -2
- package/dist/server/bare/registry/model-config-utils.js +3 -1
- package/dist/server/bare/utils/audio-input.d.ts +10 -0
- package/dist/server/bare/utils/audio-input.js +33 -0
- package/dist/server/error-handlers.d.ts +3 -2
- package/dist/server/error-handlers.js +11 -8
- package/dist/server/plugins/registry.js +5 -1
- package/dist/server/rpc/delegate-transport.d.ts +11 -3
- package/dist/server/rpc/delegate-transport.js +158 -3
- package/dist/server/rpc/handle-request.js +43 -4
- package/dist/server/rpc/handler-registry.js +7 -1
- package/dist/server/rpc/handler-utils.d.ts +5 -4
- package/dist/server/rpc/handler-utils.js +72 -31
- package/dist/server/rpc/handlers/completion-stream-delegated.d.ts +3 -1
- package/dist/server/rpc/handlers/completion-stream-delegated.js +11 -2
- package/dist/server/rpc/handlers/download-asset.js +55 -3
- package/dist/server/rpc/handlers/load-model/download-stats.d.ts +6 -0
- package/dist/server/rpc/handlers/load-model/download-stats.js +87 -0
- package/dist/server/rpc/handlers/load-model/handler.js +108 -123
- package/dist/server/rpc/handlers/load-model/http.d.ts +2 -1
- package/dist/server/rpc/handlers/load-model/http.js +21 -5
- package/dist/server/rpc/handlers/load-model/hyperdrive.d.ts +2 -1
- package/dist/server/rpc/handlers/load-model/hyperdrive.js +19 -14
- package/dist/server/rpc/handlers/load-model/registry.d.ts +2 -1
- package/dist/server/rpc/handlers/load-model/registry.js +123 -130
- package/dist/server/rpc/handlers/load-model/resolve.d.ts +2 -0
- package/dist/server/rpc/handlers/load-model/resolve.js +55 -22
- package/dist/server/rpc/handlers/load-model/types.d.ts +29 -0
- package/dist/server/rpc/handlers/load-model/types.js +1 -0
- package/dist/server/rpc/handlers/load-model-delegated.d.ts +5 -1
- package/dist/server/rpc/handlers/load-model-delegated.js +35 -7
- package/dist/server/rpc/handlers/plugin-dispatch.js +15 -10
- package/dist/server/rpc/handlers/plugin-invoke.js +56 -51
- package/dist/server/rpc/handlers/rag.js +24 -0
- package/dist/server/rpc/handlers/unload-model-delegated.d.ts +3 -0
- package/dist/server/rpc/handlers/unload-model-delegated.js +32 -0
- package/dist/server/rpc/profiling/context.d.ts +18 -0
- package/dist/server/rpc/profiling/context.js +38 -0
- package/dist/server/rpc/profiling/delegation-profiler.d.ts +32 -0
- package/dist/server/rpc/profiling/delegation-profiler.js +154 -0
- package/dist/server/rpc/profiling/index.d.ts +5 -0
- package/dist/server/rpc/profiling/index.js +4 -0
- package/dist/server/rpc/profiling/operation-metrics.d.ts +25 -0
- package/dist/server/rpc/profiling/operation-metrics.js +199 -0
- package/dist/server/rpc/profiling/operation-wrappers.d.ts +18 -0
- package/dist/server/rpc/profiling/operation-wrappers.js +124 -0
- package/dist/server/rpc/profiling/profiler.d.ts +13 -0
- package/dist/server/rpc/profiling/profiler.js +97 -0
- package/dist/server/utils/cache.d.ts +2 -1
- package/dist/server/utils/cache.js +5 -1
- package/dist/server/utils/checksum.d.ts +2 -0
- package/dist/server/utils/checksum.js +7 -0
- package/dist/server/utils/formatting.d.ts +6 -0
- package/dist/server/utils/formatting.js +35 -0
- package/dist/server/worker.js +2 -1
- package/dist/utils/errors-client.d.ts +3 -0
- package/dist/utils/errors-client.js +6 -0
- package/dist/utils/errors-server.d.ts +9 -0
- package/dist/utils/errors-server.js +15 -0
- package/dist/utils/global-singleton.d.ts +2 -0
- package/dist/utils/global-singleton.js +10 -0
- package/package.json +13 -16
- package/dist/schemas/whispercpp-config.d.ts +0 -70
- package/dist/server/bare/plugins/whispercpp-transcription/ops/transcribe-stream.d.ts +0 -3
- package/dist/server/bare/plugins/whispercpp-transcription/ops/transcribe-stream.js +0 -81
- /package/dist/examples/{whispercpp-filesystem.d.ts → transcription/whispercpp-filesystem.d.ts} +0 -0
- /package/dist/examples/{whispercpp-filesystem.js → transcription/whispercpp-filesystem.js} +0 -0
- /package/dist/examples/{whispercpp-microphone-record.d.ts → transcription/whispercpp-microphone-record.d.ts} +0 -0
- /package/dist/examples/{whispercpp-microphone-record.js → transcription/whispercpp-microphone-record.js} +0 -0
- /package/dist/examples/{whispercpp-prompt.d.ts → transcription/whispercpp-prompt.d.ts} +0 -0
- /package/dist/examples/{whispercpp-prompt.js → transcription/whispercpp-prompt.js} +0 -0
package/dist/schemas/ocr.d.ts
CHANGED
|
@@ -3,11 +3,48 @@ export declare const ocrConfigSchema: z.ZodObject<{
|
|
|
3
3
|
langList: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
4
|
useGPU: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
pipelineMode: z.ZodOptional<z.ZodEnum<{
|
|
7
|
+
easyocr: "easyocr";
|
|
8
|
+
doctr: "doctr";
|
|
9
|
+
}>>;
|
|
6
10
|
magRatio: z.ZodOptional<z.ZodNumber>;
|
|
7
11
|
defaultRotationAngles: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
8
12
|
contrastRetry: z.ZodOptional<z.ZodBoolean>;
|
|
9
13
|
lowConfidenceThreshold: z.ZodOptional<z.ZodNumber>;
|
|
10
14
|
recognizerBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
15
|
+
decodingMethod: z.ZodOptional<z.ZodEnum<{
|
|
16
|
+
attention: "attention";
|
|
17
|
+
ctc: "ctc";
|
|
18
|
+
}>>;
|
|
19
|
+
straightenPages: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
detectorModelSrc: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
21
|
+
src: z.ZodString;
|
|
22
|
+
name: z.ZodOptional<z.ZodString>;
|
|
23
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
registryPath: z.ZodOptional<z.ZodString>;
|
|
25
|
+
registrySource: z.ZodOptional<z.ZodString>;
|
|
26
|
+
blobCoreKey: z.ZodOptional<z.ZodString>;
|
|
27
|
+
blobIndex: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
engine: z.ZodOptional<z.ZodString>;
|
|
29
|
+
expectedSize: z.ZodOptional<z.ZodNumber>;
|
|
30
|
+
sha256Checksum: z.ZodOptional<z.ZodString>;
|
|
31
|
+
addon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
32
|
+
"llamacpp-completion": "llamacpp-completion";
|
|
33
|
+
"whispercpp-transcription": "whispercpp-transcription";
|
|
34
|
+
"llamacpp-embedding": "llamacpp-embedding";
|
|
35
|
+
"nmtcpp-translation": "nmtcpp-translation";
|
|
36
|
+
"onnx-tts": "onnx-tts";
|
|
37
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
38
|
+
"onnx-ocr": "onnx-ocr";
|
|
39
|
+
llm: "llm";
|
|
40
|
+
whisper: "whisper";
|
|
41
|
+
embeddings: "embeddings";
|
|
42
|
+
nmt: "nmt";
|
|
43
|
+
parakeet: "parakeet";
|
|
44
|
+
tts: "tts";
|
|
45
|
+
ocr: "ocr";
|
|
46
|
+
}>, z.ZodLiteral<"vad">]>>;
|
|
47
|
+
}, z.core.$strip>]>>;
|
|
11
48
|
}, z.core.$strip>;
|
|
12
49
|
export declare const imageInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
13
50
|
type: z.ZodLiteral<"base64">;
|
package/dist/schemas/ocr.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { modelSrcInputSchema } from "./model-src-utils.js";
|
|
2
3
|
// Model config
|
|
3
4
|
export const ocrConfigSchema = z.object({
|
|
4
5
|
langList: z.array(z.string()).optional(),
|
|
5
6
|
useGPU: z.boolean().optional(),
|
|
6
7
|
timeout: z.number().optional(),
|
|
8
|
+
pipelineMode: z.enum(["easyocr", "doctr"]).optional(),
|
|
7
9
|
magRatio: z.number().optional(),
|
|
8
10
|
defaultRotationAngles: z.array(z.number()).optional(),
|
|
9
11
|
contrastRetry: z.boolean().optional(),
|
|
10
12
|
lowConfidenceThreshold: z.number().optional(),
|
|
11
13
|
recognizerBatchSize: z.number().optional(),
|
|
14
|
+
decodingMethod: z.enum(["ctc", "attention"]).optional(),
|
|
15
|
+
straightenPages: z.boolean().optional(),
|
|
16
|
+
detectorModelSrc: modelSrcInputSchema.optional(),
|
|
12
17
|
});
|
|
13
18
|
// Image input types
|
|
14
19
|
export const imageInputSchema = z.discriminatedUnion("type", [
|
package/dist/schemas/plugin.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { ModelSrcInput } from "./model-src-utils";
|
|
2
3
|
/**
|
|
3
4
|
* Definition for a plugin handler with explicit Zod schemas.
|
|
4
5
|
* Each handler must define its request/response schemas for validation.
|
|
@@ -56,20 +57,41 @@ export interface PluginLogging {
|
|
|
56
57
|
* Function to resolve a model source (URL or path) to a local file path.
|
|
57
58
|
* Passed to resolveConfig hook to allow plugins to resolve their artifacts.
|
|
58
59
|
*/
|
|
59
|
-
export type ResolveModelPath = (src:
|
|
60
|
-
|
|
60
|
+
export type ResolveModelPath = (src: ModelSrcInput) => Promise<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Context passed to plugin resolveConfig hook.
|
|
63
|
+
* Provides resolution utilities and request metadata.
|
|
64
|
+
*/
|
|
65
|
+
export interface ResolveContext {
|
|
66
|
+
resolveModelPath: ResolveModelPath;
|
|
67
|
+
modelSrc: string;
|
|
68
|
+
modelType: string;
|
|
69
|
+
modelName?: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Result from plugin resolveConfig hook.
|
|
73
|
+
* Contains transformed config and optional resolved artifacts.
|
|
74
|
+
*/
|
|
75
|
+
export interface ResolveResult<TConfig = Record<string, unknown>, K extends string = string> {
|
|
76
|
+
config: TConfig;
|
|
77
|
+
artifacts?: Partial<Record<K, string>>;
|
|
78
|
+
}
|
|
79
|
+
export interface QvacPlugin<TConfig = Record<string, unknown>, TArtifactKeys extends string = string> {
|
|
61
80
|
modelType: string;
|
|
62
81
|
displayName: string;
|
|
63
82
|
addonPackage: string;
|
|
83
|
+
loadConfigSchema: z.ZodType;
|
|
64
84
|
createModel: (params: CreateModelParams) => PluginModelResult;
|
|
65
85
|
handlers: Record<string, PluginHandlerDefinition>;
|
|
66
86
|
logging?: PluginLogging | undefined;
|
|
87
|
+
/** When true, skips file-existence validation for modelPath. Use for plugins that derive paths from config. */
|
|
88
|
+
skipPrimaryModelPathValidation?: boolean;
|
|
67
89
|
/**
|
|
68
90
|
* Optional hook to resolve model sources in modelConfig to local paths.
|
|
69
91
|
* Called before createModel if the plugin needs to download/resolve artifacts.
|
|
70
|
-
*
|
|
92
|
+
* Returns transformed config and optional artifact paths.
|
|
71
93
|
*/
|
|
72
|
-
resolveConfig?: (modelConfig:
|
|
94
|
+
resolveConfig?: (modelConfig: TConfig, ctx: ResolveContext) => Promise<ResolveResult<TConfig, TArtifactKeys>>;
|
|
73
95
|
}
|
|
74
96
|
export declare const pluginInvokeRequestSchema: z.ZodObject<{
|
|
75
97
|
type: z.ZodLiteral<"pluginInvoke">;
|
|
@@ -120,6 +142,9 @@ export declare const pluginDefinitionRuntimeSchema: z.ZodObject<{
|
|
|
120
142
|
modelType: z.ZodString;
|
|
121
143
|
displayName: z.ZodString;
|
|
122
144
|
addonPackage: z.ZodString;
|
|
145
|
+
loadConfigSchema: z.ZodObject<{
|
|
146
|
+
safeParse: z.ZodCustom<Function, Function>;
|
|
147
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
123
148
|
createModel: z.ZodCustom<Function, Function>;
|
|
124
149
|
handlers: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
125
150
|
requestSchema: z.ZodObject<{
|
|
@@ -135,6 +160,8 @@ export declare const pluginDefinitionRuntimeSchema: z.ZodObject<{
|
|
|
135
160
|
module: z.ZodOptional<z.ZodUnknown>;
|
|
136
161
|
namespace: z.ZodOptional<z.ZodString>;
|
|
137
162
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
163
|
+
resolveConfig: z.ZodOptional<z.ZodCustom<Function, Function>>;
|
|
164
|
+
skipPrimaryModelPathValidation: z.ZodOptional<z.ZodBoolean>;
|
|
138
165
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
139
166
|
/**
|
|
140
167
|
* LLM text completion plugin (llama.cpp).
|
|
@@ -151,6 +178,11 @@ export declare const PLUGIN_EMBEDDING: "@qvac/sdk/llamacpp-embedding/plugin";
|
|
|
151
178
|
* Provides: audio transcription, language detection.
|
|
152
179
|
*/
|
|
153
180
|
export declare const PLUGIN_WHISPER: "@qvac/sdk/whispercpp-transcription/plugin";
|
|
181
|
+
/**
|
|
182
|
+
* Speech-to-text transcription plugin (Parakeet ONNX).
|
|
183
|
+
* Provides: audio transcription using NVIDIA Parakeet models.
|
|
184
|
+
*/
|
|
185
|
+
export declare const PLUGIN_PARAKEET: "@qvac/sdk/parakeet-transcription/plugin";
|
|
154
186
|
/**
|
|
155
187
|
* Neural machine translation plugin (nmt.cpp).
|
|
156
188
|
* Provides: text translation between languages.
|
|
@@ -175,6 +207,20 @@ export declare const PLUGIN_OCR: "@qvac/sdk/onnx-ocr/plugin";
|
|
|
175
207
|
* plugins: [...SDK_DEFAULT_PLUGINS, myCustomPlugin],
|
|
176
208
|
* };
|
|
177
209
|
*/
|
|
178
|
-
export declare const SDK_DEFAULT_PLUGINS: readonly ["@qvac/sdk/llamacpp-completion/plugin", "@qvac/sdk/llamacpp-embedding/plugin", "@qvac/sdk/whispercpp-transcription/plugin", "@qvac/sdk/nmtcpp-translation/plugin", "@qvac/sdk/onnx-tts/plugin", "@qvac/sdk/onnx-ocr/plugin"];
|
|
210
|
+
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/onnx-tts/plugin", "@qvac/sdk/onnx-ocr/plugin"];
|
|
179
211
|
export type BuiltinPlugin = (typeof SDK_DEFAULT_PLUGINS)[number];
|
|
212
|
+
/** Native addon package for LLM completion (llama.cpp) */
|
|
213
|
+
export declare const ADDON_LLM: "@qvac/llm-llamacpp";
|
|
214
|
+
/** Native addon package for text embeddings (llama.cpp) */
|
|
215
|
+
export declare const ADDON_EMBEDDING: "@qvac/embed-llamacpp";
|
|
216
|
+
/** Native addon package for Whisper transcription (whisper.cpp) */
|
|
217
|
+
export declare const ADDON_WHISPER: "@qvac/transcription-whispercpp";
|
|
218
|
+
/** Native addon package for Parakeet transcription (ONNX) */
|
|
219
|
+
export declare const ADDON_PARAKEET: "@qvac/transcription-parakeet";
|
|
220
|
+
/** Native addon package for NMT translation (nmt.cpp) */
|
|
221
|
+
export declare const ADDON_NMT: "@qvac/translation-nmtcpp";
|
|
222
|
+
/** Native addon package for TTS (ONNX) */
|
|
223
|
+
export declare const ADDON_TTS: "@qvac/tts-onnx";
|
|
224
|
+
/** Native addon package for OCR (ONNX) */
|
|
225
|
+
export declare const ADDON_OCR: "@qvac/ocr-onnx";
|
|
180
226
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/schemas/plugin.js
CHANGED
|
@@ -69,6 +69,7 @@ export const pluginDefinitionRuntimeSchema = z
|
|
|
69
69
|
addonPackage: z
|
|
70
70
|
.string({ error: "addonPackage must be a string" })
|
|
71
71
|
.min(1, "addonPackage must be a non-empty string"),
|
|
72
|
+
loadConfigSchema: zodSchemaLikeRuntimeSchema,
|
|
72
73
|
createModel: functionRuntimeSchema,
|
|
73
74
|
handlers: z.record(z.string(), pluginHandlerDefinitionRuntimeSchema),
|
|
74
75
|
logging: z
|
|
@@ -78,6 +79,8 @@ export const pluginDefinitionRuntimeSchema = z
|
|
|
78
79
|
})
|
|
79
80
|
.catchall(z.unknown())
|
|
80
81
|
.optional(),
|
|
82
|
+
resolveConfig: functionRuntimeSchema.optional(),
|
|
83
|
+
skipPrimaryModelPathValidation: z.boolean().optional(),
|
|
81
84
|
})
|
|
82
85
|
.catchall(z.unknown());
|
|
83
86
|
// ============================================
|
|
@@ -98,6 +101,11 @@ export const PLUGIN_EMBEDDING = "@qvac/sdk/llamacpp-embedding/plugin";
|
|
|
98
101
|
* Provides: audio transcription, language detection.
|
|
99
102
|
*/
|
|
100
103
|
export const PLUGIN_WHISPER = "@qvac/sdk/whispercpp-transcription/plugin";
|
|
104
|
+
/**
|
|
105
|
+
* Speech-to-text transcription plugin (Parakeet ONNX).
|
|
106
|
+
* Provides: audio transcription using NVIDIA Parakeet models.
|
|
107
|
+
*/
|
|
108
|
+
export const PLUGIN_PARAKEET = "@qvac/sdk/parakeet-transcription/plugin";
|
|
101
109
|
/**
|
|
102
110
|
* Neural machine translation plugin (nmt.cpp).
|
|
103
111
|
* Provides: text translation between languages.
|
|
@@ -126,7 +134,25 @@ export const SDK_DEFAULT_PLUGINS = [
|
|
|
126
134
|
PLUGIN_LLM,
|
|
127
135
|
PLUGIN_EMBEDDING,
|
|
128
136
|
PLUGIN_WHISPER,
|
|
137
|
+
PLUGIN_PARAKEET,
|
|
129
138
|
PLUGIN_NMT,
|
|
130
139
|
PLUGIN_TTS,
|
|
131
140
|
PLUGIN_OCR,
|
|
132
141
|
];
|
|
142
|
+
// ============================================
|
|
143
|
+
// Addon Packages
|
|
144
|
+
// ============================================
|
|
145
|
+
/** Native addon package for LLM completion (llama.cpp) */
|
|
146
|
+
export const ADDON_LLM = "@qvac/llm-llamacpp";
|
|
147
|
+
/** Native addon package for text embeddings (llama.cpp) */
|
|
148
|
+
export const ADDON_EMBEDDING = "@qvac/embed-llamacpp";
|
|
149
|
+
/** Native addon package for Whisper transcription (whisper.cpp) */
|
|
150
|
+
export const ADDON_WHISPER = "@qvac/transcription-whispercpp";
|
|
151
|
+
/** Native addon package for Parakeet transcription (ONNX) */
|
|
152
|
+
export const ADDON_PARAKEET = "@qvac/transcription-parakeet";
|
|
153
|
+
/** Native addon package for NMT translation (nmt.cpp) */
|
|
154
|
+
export const ADDON_NMT = "@qvac/translation-nmtcpp";
|
|
155
|
+
/** Native addon package for TTS (ONNX) */
|
|
156
|
+
export const ADDON_TTS = "@qvac/tts-onnx";
|
|
157
|
+
/** Native addon package for OCR (ONNX) */
|
|
158
|
+
export const ADDON_OCR = "@qvac/ocr-onnx";
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Internal envelope key for profiling metadata in RPC payloads */
|
|
3
|
+
export declare const PROFILING_KEY = "__profiling";
|
|
4
|
+
/** Marker key for profiling-only trailer frames in streaming responses */
|
|
5
|
+
export declare const PROFILING_TRAILER_KEY = "__profilingTrailer";
|
|
6
|
+
/**
|
|
7
|
+
* Symbol key for attaching delegation breakdown to response objects.
|
|
8
|
+
*/
|
|
9
|
+
export declare const DELEGATION_BREAKDOWN_KEY: unique symbol;
|
|
10
|
+
/**
|
|
11
|
+
* Symbol key for attaching operation event to response objects.
|
|
12
|
+
*/
|
|
13
|
+
export declare const OPERATION_EVENT_KEY: unique symbol;
|
|
14
|
+
export declare const profilerModeSchema: z.ZodEnum<{
|
|
15
|
+
summary: "summary";
|
|
16
|
+
verbose: "verbose";
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Server-side timing breakdown (server → client).
|
|
20
|
+
* Attached to profiling response when includeServerBreakdown is enabled.
|
|
21
|
+
*/
|
|
22
|
+
export declare const serverBreakdownSchema: z.ZodObject<{
|
|
23
|
+
requestJsonParseMs: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
requestZodValidationMs: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
handlerExecutionMs: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
responseZodValidationMs: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
responseStringifyMs: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
totalServerMs: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
/**
|
|
31
|
+
* Delegation timing breakdown (consumer server → client).
|
|
32
|
+
* Captures timing for server-to-provider delegation hops.
|
|
33
|
+
* Note: Only injected for unary requests; streaming delegation
|
|
34
|
+
* records server-side but does not inject into response.
|
|
35
|
+
*/
|
|
36
|
+
export declare const delegationBreakdownSchema: z.ZodObject<{
|
|
37
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
connectionMs: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
requestStringifyMs: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
serverWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
responseJsonParseMs: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
totalDelegationMs: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export declare const operationEventSchema: z.ZodObject<{
|
|
45
|
+
op: z.ZodString;
|
|
46
|
+
kind: z.ZodLiteral<"handler">;
|
|
47
|
+
ms: z.ZodNumber;
|
|
48
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
49
|
+
gauges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
51
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
export declare const profilingRequestMetaSchema: z.ZodObject<{
|
|
54
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
id: z.ZodOptional<z.ZodString>;
|
|
56
|
+
includeServer: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
summary: "summary";
|
|
59
|
+
verbose: "verbose";
|
|
60
|
+
}>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
export declare const profilingResponseMetaSchema: z.ZodObject<{
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
server: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
requestJsonParseMs: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
requestZodValidationMs: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
handlerExecutionMs: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
responseZodValidationMs: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
responseStringifyMs: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
totalServerMs: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
delegation: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
74
|
+
connectionMs: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
requestStringifyMs: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
serverWaitMs: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
responseJsonParseMs: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
totalDelegationMs: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strip>>;
|
|
80
|
+
operation: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
op: z.ZodString;
|
|
82
|
+
kind: z.ZodLiteral<"handler">;
|
|
83
|
+
ms: z.ZodNumber;
|
|
84
|
+
profileId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
gauges: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
86
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
87
|
+
count: z.ZodOptional<z.ZodNumber>;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export declare const perCallProfilingSchema: z.ZodObject<{
|
|
91
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
includeServerBreakdown: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
summary: "summary";
|
|
95
|
+
verbose: "verbose";
|
|
96
|
+
}>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
export type ProfilingResponseMeta = z.infer<typeof profilingResponseMetaSchema>;
|
|
99
|
+
export type ProfilerMode = z.infer<typeof profilerModeSchema>;
|
|
100
|
+
export type ProfilingRequestMeta = z.infer<typeof profilingRequestMetaSchema>;
|
|
101
|
+
export type ServerBreakdown = z.infer<typeof serverBreakdownSchema>;
|
|
102
|
+
export type DelegationBreakdown = z.infer<typeof delegationBreakdownSchema>;
|
|
103
|
+
export type PerCallProfiling = z.infer<typeof perCallProfilingSchema>;
|
|
104
|
+
export type OperationEvent = z.infer<typeof operationEventSchema>;
|
|
105
|
+
//# sourceMappingURL=profiling.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Internal envelope key for profiling metadata in RPC payloads */
|
|
3
|
+
export const PROFILING_KEY = "__profiling";
|
|
4
|
+
/** Marker key for profiling-only trailer frames in streaming responses */
|
|
5
|
+
export const PROFILING_TRAILER_KEY = "__profilingTrailer";
|
|
6
|
+
/**
|
|
7
|
+
* Symbol key for attaching delegation breakdown to response objects.
|
|
8
|
+
*/
|
|
9
|
+
export const DELEGATION_BREAKDOWN_KEY = Symbol.for("@qvac/sdk:delegation-breakdown");
|
|
10
|
+
/**
|
|
11
|
+
* Symbol key for attaching operation event to response objects.
|
|
12
|
+
*/
|
|
13
|
+
export const OPERATION_EVENT_KEY = Symbol.for("@qvac/sdk:operation-event");
|
|
14
|
+
export const profilerModeSchema = z.enum(["summary", "verbose"]);
|
|
15
|
+
/**
|
|
16
|
+
* Server-side timing breakdown (server → client).
|
|
17
|
+
* Attached to profiling response when includeServerBreakdown is enabled.
|
|
18
|
+
*/
|
|
19
|
+
export const serverBreakdownSchema = z.object({
|
|
20
|
+
requestJsonParseMs: z.number().optional(),
|
|
21
|
+
requestZodValidationMs: z.number().optional(),
|
|
22
|
+
handlerExecutionMs: z.number().optional(),
|
|
23
|
+
responseZodValidationMs: z.number().optional(),
|
|
24
|
+
responseStringifyMs: z.number().optional(),
|
|
25
|
+
totalServerMs: z.number().optional(),
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Delegation timing breakdown (consumer server → client).
|
|
29
|
+
* Captures timing for server-to-provider delegation hops.
|
|
30
|
+
* Note: Only injected for unary requests; streaming delegation
|
|
31
|
+
* records server-side but does not inject into response.
|
|
32
|
+
*/
|
|
33
|
+
export const delegationBreakdownSchema = z.object({
|
|
34
|
+
profileId: z.string().optional(),
|
|
35
|
+
connectionMs: z.number().optional(),
|
|
36
|
+
requestStringifyMs: z.number().optional(),
|
|
37
|
+
serverWaitMs: z.number().optional(),
|
|
38
|
+
responseJsonParseMs: z.number().optional(),
|
|
39
|
+
totalDelegationMs: z.number().optional(),
|
|
40
|
+
});
|
|
41
|
+
export const operationEventSchema = z.object({
|
|
42
|
+
op: z.string(),
|
|
43
|
+
kind: z.literal("handler"),
|
|
44
|
+
ms: z.number(),
|
|
45
|
+
profileId: z.string().optional(),
|
|
46
|
+
gauges: z.record(z.string(), z.number()).optional(),
|
|
47
|
+
tags: z.record(z.string(), z.string()).optional(),
|
|
48
|
+
count: z.number().optional(),
|
|
49
|
+
});
|
|
50
|
+
export const profilingRequestMetaSchema = z.object({
|
|
51
|
+
enabled: z.boolean().optional(),
|
|
52
|
+
id: z.string().optional(),
|
|
53
|
+
includeServer: z.boolean().optional(),
|
|
54
|
+
mode: profilerModeSchema.optional(),
|
|
55
|
+
});
|
|
56
|
+
export const profilingResponseMetaSchema = z.object({
|
|
57
|
+
id: z.string(),
|
|
58
|
+
server: serverBreakdownSchema.optional(),
|
|
59
|
+
delegation: delegationBreakdownSchema.optional(),
|
|
60
|
+
operation: operationEventSchema.optional(),
|
|
61
|
+
});
|
|
62
|
+
export const perCallProfilingSchema = z.object({
|
|
63
|
+
enabled: z.boolean().optional(),
|
|
64
|
+
includeServerBreakdown: z.boolean().optional(),
|
|
65
|
+
mode: profilerModeSchema.optional(),
|
|
66
|
+
});
|
|
@@ -4,6 +4,7 @@ declare const modelRegistryEntryAddonSchema: z.ZodEnum<{
|
|
|
4
4
|
whisper: "whisper";
|
|
5
5
|
embeddings: "embeddings";
|
|
6
6
|
nmt: "nmt";
|
|
7
|
+
parakeet: "parakeet";
|
|
7
8
|
tts: "tts";
|
|
8
9
|
ocr: "ocr";
|
|
9
10
|
vad: "vad";
|
|
@@ -15,6 +16,7 @@ export declare const modelRegistryEngineSchema: z.ZodEnum<{
|
|
|
15
16
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
16
17
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
17
18
|
"onnx-tts": "onnx-tts";
|
|
19
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
18
20
|
"onnx-ocr": "onnx-ocr";
|
|
19
21
|
"onnx-vad": "onnx-vad";
|
|
20
22
|
}>;
|
|
@@ -32,6 +34,7 @@ export declare const modelRegistryEntrySchema: z.ZodObject<{
|
|
|
32
34
|
whisper: "whisper";
|
|
33
35
|
embeddings: "embeddings";
|
|
34
36
|
nmt: "nmt";
|
|
37
|
+
parakeet: "parakeet";
|
|
35
38
|
tts: "tts";
|
|
36
39
|
ocr: "ocr";
|
|
37
40
|
vad: "vad";
|
|
@@ -45,6 +48,7 @@ export declare const modelRegistryEntrySchema: z.ZodObject<{
|
|
|
45
48
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
46
49
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
47
50
|
"onnx-tts": "onnx-tts";
|
|
51
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
48
52
|
"onnx-ocr": "onnx-ocr";
|
|
49
53
|
"onnx-vad": "onnx-vad";
|
|
50
54
|
}>;
|
|
@@ -74,6 +78,7 @@ export declare const modelRegistryListResponseSchema: z.ZodObject<{
|
|
|
74
78
|
whisper: "whisper";
|
|
75
79
|
embeddings: "embeddings";
|
|
76
80
|
nmt: "nmt";
|
|
81
|
+
parakeet: "parakeet";
|
|
77
82
|
tts: "tts";
|
|
78
83
|
ocr: "ocr";
|
|
79
84
|
vad: "vad";
|
|
@@ -87,6 +92,7 @@ export declare const modelRegistryListResponseSchema: z.ZodObject<{
|
|
|
87
92
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
88
93
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
89
94
|
"onnx-tts": "onnx-tts";
|
|
95
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
90
96
|
"onnx-ocr": "onnx-ocr";
|
|
91
97
|
"onnx-vad": "onnx-vad";
|
|
92
98
|
}>;
|
|
@@ -107,6 +113,7 @@ export declare const modelRegistrySearchRequestSchema: z.ZodObject<{
|
|
|
107
113
|
whisper: "whisper";
|
|
108
114
|
embeddings: "embeddings";
|
|
109
115
|
nmt: "nmt";
|
|
116
|
+
parakeet: "parakeet";
|
|
110
117
|
tts: "tts";
|
|
111
118
|
ocr: "ocr";
|
|
112
119
|
vad: "vad";
|
|
@@ -130,6 +137,7 @@ export declare const modelRegistrySearchResponseSchema: z.ZodObject<{
|
|
|
130
137
|
whisper: "whisper";
|
|
131
138
|
embeddings: "embeddings";
|
|
132
139
|
nmt: "nmt";
|
|
140
|
+
parakeet: "parakeet";
|
|
133
141
|
tts: "tts";
|
|
134
142
|
ocr: "ocr";
|
|
135
143
|
vad: "vad";
|
|
@@ -143,6 +151,7 @@ export declare const modelRegistrySearchResponseSchema: z.ZodObject<{
|
|
|
143
151
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
144
152
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
145
153
|
"onnx-tts": "onnx-tts";
|
|
154
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
146
155
|
"onnx-ocr": "onnx-ocr";
|
|
147
156
|
"onnx-vad": "onnx-vad";
|
|
148
157
|
}>;
|
|
@@ -175,6 +184,7 @@ export declare const modelRegistryGetModelResponseSchema: z.ZodObject<{
|
|
|
175
184
|
whisper: "whisper";
|
|
176
185
|
embeddings: "embeddings";
|
|
177
186
|
nmt: "nmt";
|
|
187
|
+
parakeet: "parakeet";
|
|
178
188
|
tts: "tts";
|
|
179
189
|
ocr: "ocr";
|
|
180
190
|
vad: "vad";
|
|
@@ -188,6 +198,7 @@ export declare const modelRegistryGetModelResponseSchema: z.ZodObject<{
|
|
|
188
198
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
189
199
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
190
200
|
"onnx-tts": "onnx-tts";
|
|
201
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
191
202
|
"onnx-ocr": "onnx-ocr";
|
|
192
203
|
"onnx-vad": "onnx-vad";
|
|
193
204
|
}>;
|
|
@@ -210,6 +221,7 @@ export declare const modelRegistryRequestSchema: z.ZodUnion<readonly [z.ZodObjec
|
|
|
210
221
|
whisper: "whisper";
|
|
211
222
|
embeddings: "embeddings";
|
|
212
223
|
nmt: "nmt";
|
|
224
|
+
parakeet: "parakeet";
|
|
213
225
|
tts: "tts";
|
|
214
226
|
ocr: "ocr";
|
|
215
227
|
vad: "vad";
|
|
@@ -237,6 +249,7 @@ export declare const modelRegistryResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
237
249
|
whisper: "whisper";
|
|
238
250
|
embeddings: "embeddings";
|
|
239
251
|
nmt: "nmt";
|
|
252
|
+
parakeet: "parakeet";
|
|
240
253
|
tts: "tts";
|
|
241
254
|
ocr: "ocr";
|
|
242
255
|
vad: "vad";
|
|
@@ -250,6 +263,7 @@ export declare const modelRegistryResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
250
263
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
251
264
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
252
265
|
"onnx-tts": "onnx-tts";
|
|
266
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
253
267
|
"onnx-ocr": "onnx-ocr";
|
|
254
268
|
"onnx-vad": "onnx-vad";
|
|
255
269
|
}>;
|
|
@@ -274,6 +288,7 @@ export declare const modelRegistryResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
274
288
|
whisper: "whisper";
|
|
275
289
|
embeddings: "embeddings";
|
|
276
290
|
nmt: "nmt";
|
|
291
|
+
parakeet: "parakeet";
|
|
277
292
|
tts: "tts";
|
|
278
293
|
ocr: "ocr";
|
|
279
294
|
vad: "vad";
|
|
@@ -287,6 +302,7 @@ export declare const modelRegistryResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
287
302
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
288
303
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
289
304
|
"onnx-tts": "onnx-tts";
|
|
305
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
290
306
|
"onnx-ocr": "onnx-ocr";
|
|
291
307
|
"onnx-vad": "onnx-vad";
|
|
292
308
|
}>;
|
|
@@ -311,6 +327,7 @@ export declare const modelRegistryResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
311
327
|
whisper: "whisper";
|
|
312
328
|
embeddings: "embeddings";
|
|
313
329
|
nmt: "nmt";
|
|
330
|
+
parakeet: "parakeet";
|
|
314
331
|
tts: "tts";
|
|
315
332
|
ocr: "ocr";
|
|
316
333
|
vad: "vad";
|
|
@@ -324,6 +341,7 @@ export declare const modelRegistryResponseSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
324
341
|
"llamacpp-embedding": "llamacpp-embedding";
|
|
325
342
|
"nmtcpp-translation": "nmtcpp-translation";
|
|
326
343
|
"onnx-tts": "onnx-tts";
|
|
344
|
+
"parakeet-transcription": "parakeet-transcription";
|
|
327
345
|
"onnx-ocr": "onnx-ocr";
|
|
328
346
|
"onnx-vad": "onnx-vad";
|
|
329
347
|
}>;
|
package/dist/schemas/registry.js
CHANGED
|
@@ -9,6 +9,7 @@ const modelRegistryEntryAddonSchema = z.enum([
|
|
|
9
9
|
"vad",
|
|
10
10
|
"tts",
|
|
11
11
|
"ocr",
|
|
12
|
+
"parakeet",
|
|
12
13
|
"other",
|
|
13
14
|
]);
|
|
14
15
|
// Canonical engine names derived from ModelType (schemas/model-types.ts) plus
|
|
@@ -23,6 +24,7 @@ export const modelRegistryEngineSchema = z.enum([
|
|
|
23
24
|
ModelType.nmtcppTranslation,
|
|
24
25
|
ModelType.onnxTts,
|
|
25
26
|
ModelType.onnxOcr,
|
|
27
|
+
ModelType.parakeetTranscription,
|
|
26
28
|
"onnx-vad",
|
|
27
29
|
]);
|
|
28
30
|
export const modelRegistryEntrySchema = z.object({
|