@qvac/sdk 0.8.0 → 1.0.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/LICENSE +24 -1
- package/README.md +191 -373
- package/dist/client/api/cancel.d.ts +4 -13
- package/dist/client/api/cancel.js +6 -16
- package/dist/client/api/completion-stream.d.ts +30 -24
- package/dist/client/api/completion-stream.js +70 -121
- package/dist/client/api/delete-cache.js +2 -3
- package/dist/client/api/download-asset.d.ts +5 -6
- package/dist/client/api/download-asset.js +20 -16
- package/dist/client/api/embed.d.ts +4 -21
- package/dist/client/api/embed.js +14 -4
- package/dist/client/api/index.d.ts +1 -5
- package/dist/client/api/index.js +1 -5
- package/dist/client/api/load-model.d.ts +21 -49
- package/dist/client/api/load-model.js +134 -40
- package/dist/client/api/logging-stream.d.ts +4 -7
- package/dist/client/api/logging-stream.js +5 -9
- package/dist/client/api/ping.d.ts +1 -1
- package/dist/client/api/ping.js +2 -3
- package/dist/client/api/provide.d.ts +1 -1
- package/dist/client/api/provide.js +3 -4
- package/dist/client/api/rag.d.ts +21 -216
- package/dist/client/api/rag.js +36 -396
- package/dist/client/api/stop-provider.d.ts +1 -1
- package/dist/client/api/stop-provider.js +3 -4
- 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 -9
- package/dist/client/api/transcribe.js +9 -11
- package/dist/client/api/translate.d.ts +3 -3
- package/dist/client/api/translate.js +15 -15
- package/dist/client/api/unload-model.d.ts +1 -5
- package/dist/client/api/unload-model.js +4 -17
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/logging-stream-registry.d.ts +1 -1
- package/dist/client/logging-stream-registry.js +13 -14
- package/dist/client/rpc/bare-client.d.ts +139 -3
- package/dist/client/rpc/bare-client.js +16 -117
- package/dist/client/rpc/bare-rpc-client.d.ts +4 -0
- package/dist/client/rpc/bare-rpc-client.js +87 -0
- package/dist/client/rpc/expo-rpc-client.d.ts +1 -2
- package/dist/client/rpc/expo-rpc-client.js +14 -57
- package/dist/client/rpc/node-rpc-client.d.ts +8 -3
- package/dist/client/rpc/node-rpc-client.js +62 -218
- package/dist/client/rpc/rpc-client.d.ts +2 -3
- package/dist/client/rpc/rpc-client.js +49 -184
- package/dist/constants/audio.d.ts +2 -1
- package/dist/constants/audio.js +17 -1
- package/dist/constants/index.d.ts +0 -1
- package/dist/constants/index.js +0 -1
- package/dist/examples/delegated-inference/consumer.js +2 -3
- package/dist/examples/download-with-cancel.js +4 -3
- package/dist/examples/embed-hyperdrive.js +4 -39
- package/dist/examples/kv-cache-cleanup.js +2 -1
- package/dist/examples/kv-cache-custom-key.js +2 -16
- package/dist/examples/kv-cache-example.js +2 -1
- package/dist/examples/llamacpp-file-logging.d.ts +2 -0
- package/dist/examples/{logging-file-transport.js → llamacpp-file-logging.js} +8 -3
- package/dist/examples/llamacpp-filesystem.js +2 -2
- package/dist/examples/llamacpp-http.js +1 -0
- package/dist/examples/llamacpp-hyperdrive.js +2 -1
- package/dist/examples/llamacpp-multimodal.js +4 -3
- package/dist/examples/llamacpp-native-tools.js +30 -72
- package/dist/examples/multi-model-demo.js +3 -2
- package/dist/examples/parallel-download.js +14 -46
- package/dist/examples/rag/rag-chromadb.js +1 -0
- package/dist/examples/rag/rag-hyperdb-workspaces.d.ts +2 -0
- package/dist/examples/rag/rag-hyperdb-workspaces.js +107 -0
- package/dist/examples/rag/rag-hyperdb.d.ts +2 -0
- package/dist/examples/rag/{rag-hyperdb/ingest.js → rag-hyperdb.js} +5 -10
- package/dist/examples/rag/rag-lancedb.js +1 -0
- package/dist/examples/rag/rag-sqlite.js +1 -0
- package/dist/examples/text-to-speech.d.ts +3 -0
- package/dist/examples/{tts/utils.js → text-to-speech.js} +63 -18
- package/dist/examples/translation/translation-indic.js +1 -4
- package/dist/examples/translation/translation-llm-context.js +1 -0
- package/dist/examples/translation/translation-llm.js +2 -2
- package/dist/examples/translation/translation-opus.js +3 -6
- package/dist/examples/translation/translation-stream.js +3 -3
- package/dist/examples/whispercpp-filesystem.js +43 -0
- package/dist/examples/{transcription/whispercpp-microphone-record.js → whispercpp-microphone-record.js} +9 -8
- package/dist/expo/plugins/index.d.ts +0 -3
- package/dist/expo/plugins/index.js +0 -3
- package/dist/expo/plugins/withMobileBundle.d.ts +2 -5
- package/dist/expo/plugins/withMobileBundle.js +40 -121
- package/dist/expo/plugins/withQvacSDK.d.ts +0 -4
- package/dist/expo/plugins/withQvacSDK.js +1 -26
- package/dist/index.d.ts +4 -9
- package/dist/index.js +5 -11
- package/dist/logging/base-logger.js +16 -26
- package/dist/logging/index.d.ts +1 -7
- package/dist/logging/index.js +1 -7
- package/dist/logging/logger.d.ts +2 -0
- package/dist/logging/logger.js +6 -11
- package/dist/logging/stream-logger.d.ts +1 -1
- package/dist/logging/stream-logger.js +3 -6
- package/dist/logging/transport.js +2 -2
- package/dist/logging/types.d.ts +0 -2
- package/dist/logging/utils.d.ts +0 -2
- package/dist/logging/utils.js +0 -62
- package/dist/models/{registry → hyperdrive}/index.js +1 -1
- package/dist/models/hyperdrive/models.d.ts +619 -0
- package/dist/models/hyperdrive/models.js +693 -0
- package/dist/schemas/cancel.d.ts +0 -6
- package/dist/schemas/cancel.js +0 -5
- package/dist/schemas/common.d.ts +164 -2973
- package/dist/schemas/common.js +1 -23
- package/dist/schemas/completion-stream.d.ts +60 -31
- package/dist/schemas/completion-stream.js +44 -20
- package/dist/schemas/delegate.d.ts +0 -1
- package/dist/schemas/delegate.js +0 -1
- package/dist/schemas/download-asset.d.ts +3 -125
- package/dist/schemas/download-asset.js +5 -22
- package/dist/schemas/embed.d.ts +3 -3
- package/dist/schemas/embed.js +2 -9
- package/dist/schemas/index.d.ts +1 -19
- package/dist/schemas/index.js +1 -19
- package/dist/schemas/llamacpp-config.d.ts +12 -243
- package/dist/schemas/llamacpp-config.js +14 -50
- package/dist/schemas/load-model.d.ts +893 -14358
- package/dist/schemas/load-model.js +72 -325
- package/dist/schemas/logging-stream.d.ts +4 -11
- package/dist/schemas/logging-stream.js +3 -4
- package/dist/schemas/rag.d.ts +52 -183
- package/dist/schemas/rag.js +23 -152
- package/dist/schemas/text-to-speech.d.ts +1 -692
- package/dist/schemas/text-to-speech.js +3 -35
- package/dist/schemas/transcription.d.ts +0 -3
- package/dist/schemas/transcription.js +0 -1
- package/dist/schemas/translate.d.ts +23 -68
- package/dist/schemas/translate.js +11 -37
- package/dist/schemas/translation-config.d.ts +7 -810
- package/dist/schemas/translation-config.js +7 -113
- package/dist/schemas/unload-model.d.ts +0 -2
- package/dist/schemas/unload-model.js +0 -2
- package/dist/schemas/whispercpp-config.d.ts +25 -0
- package/dist/schemas/whispercpp-config.js +18 -0
- package/dist/server/bare/{ops → addons}/cancel.js +1 -2
- package/dist/server/bare/addons/index.d.ts +4 -0
- package/dist/server/bare/addons/index.js +3 -0
- package/dist/server/bare/addons/llamacpp/create-model.d.ts +5 -0
- package/dist/server/bare/addons/llamacpp/create-model.js +67 -0
- package/dist/server/bare/{plugins/llamacpp-completion/ops → addons/llamacpp/handlers}/completion-stream.d.ts +1 -2
- package/dist/server/bare/{plugins/llamacpp-completion/ops → addons/llamacpp/handlers}/completion-stream.js +87 -54
- package/dist/server/bare/addons/llamacpp/handlers/embed.d.ts +4 -0
- package/dist/server/bare/{ops → addons/llamacpp/handlers}/embed.js +7 -22
- package/dist/server/bare/addons/llamacpp/index.d.ts +4 -0
- package/dist/server/bare/addons/llamacpp/index.js +3 -0
- package/dist/server/bare/{ops → addons/llamacpp}/kv-cache-utils.d.ts +1 -4
- package/dist/server/bare/{ops → addons/llamacpp}/kv-cache-utils.js +19 -54
- package/dist/server/bare/addons/load-model.d.ts +3 -0
- package/dist/server/bare/addons/load-model.js +62 -0
- package/dist/server/bare/addons/translation/create-model.d.ts +4 -0
- package/dist/server/bare/addons/translation/create-model.js +45 -0
- package/dist/server/bare/addons/translation/handlers/translate.d.ts +3 -0
- package/dist/server/bare/{ops → addons/translation/handlers}/translate.js +14 -47
- package/dist/server/bare/addons/translation/index.d.ts +3 -0
- package/dist/server/bare/addons/translation/index.js +2 -0
- package/dist/server/bare/addons/tts/create-model.d.ts +6 -0
- package/dist/server/bare/addons/tts/create-model.js +40 -0
- package/dist/server/bare/{plugins/onnx-tts/ops → addons/tts/handlers}/text-to-speech.js +3 -25
- package/dist/server/bare/addons/tts/index.d.ts +3 -0
- package/dist/server/bare/addons/tts/index.js +2 -0
- package/dist/server/bare/addons/unload-model.js +20 -0
- package/dist/server/bare/addons/whispercpp/create-model.d.ts +6 -0
- package/dist/server/bare/addons/whispercpp/create-model.js +55 -0
- package/dist/server/bare/addons/whispercpp/handlers/transcribe-stream.d.ts +3 -0
- package/dist/server/bare/addons/whispercpp/handlers/transcribe-stream.js +48 -0
- package/dist/server/bare/addons/whispercpp/index.d.ts +3 -0
- package/dist/server/bare/addons/whispercpp/index.js +2 -0
- package/dist/server/bare/delegate-rpc-client.d.ts +0 -6
- package/dist/server/bare/delegate-rpc-client.js +46 -157
- package/dist/server/bare/hyperswarm.d.ts +0 -3
- package/dist/server/bare/hyperswarm.js +6 -29
- package/dist/server/bare/rag-hyperdb/handlers/delete-embeddings.d.ts +1 -1
- package/dist/server/bare/rag-hyperdb/handlers/delete-embeddings.js +10 -9
- package/dist/server/bare/rag-hyperdb/handlers/save-embeddings.d.ts +4 -7
- package/dist/server/bare/rag-hyperdb/handlers/save-embeddings.js +14 -13
- package/dist/server/bare/rag-hyperdb/handlers/search.js +10 -10
- package/dist/server/bare/rag-hyperdb/index.d.ts +1 -8
- package/dist/server/bare/rag-hyperdb/index.js +1 -8
- package/dist/server/bare/rag-hyperdb/rag-manager.d.ts +5 -0
- package/dist/server/bare/rag-hyperdb/rag-manager.js +65 -0
- package/dist/server/bare/registry/logging-stream-registry.d.ts +7 -24
- package/dist/server/bare/registry/logging-stream-registry.js +20 -99
- package/dist/server/bare/registry/model-registry.d.ts +26 -14
- package/dist/server/bare/registry/model-registry.js +12 -32
- package/dist/server/error-handlers.d.ts +2 -3
- package/dist/server/error-handlers.js +10 -15
- package/dist/server/http-server.d.ts +2 -0
- package/dist/server/http-server.js +189 -0
- package/dist/server/rpc/create-server.js +3 -5
- package/dist/server/rpc/handle-request.d.ts +9 -0
- package/dist/server/rpc/handle-request.js +242 -92
- package/dist/server/rpc/handlers/cancelHandler.js +3 -14
- package/dist/server/rpc/handlers/completion-stream-delegated.d.ts +1 -3
- package/dist/server/rpc/handlers/completion-stream-delegated.js +6 -18
- package/dist/server/rpc/handlers/completion-stream.js +41 -2
- package/dist/server/rpc/handlers/delete-cache.js +2 -4
- package/dist/server/rpc/handlers/download-asset.js +6 -59
- package/dist/server/rpc/handlers/embed.js +19 -2
- package/dist/server/rpc/handlers/index.d.ts +0 -13
- package/dist/server/rpc/handlers/index.js +0 -13
- package/dist/server/rpc/handlers/load-model/download-manager.d.ts +11 -12
- package/dist/server/rpc/handlers/load-model/download-manager.js +28 -43
- package/dist/server/rpc/handlers/load-model/http.d.ts +1 -2
- package/dist/server/rpc/handlers/load-model/http.js +55 -424
- package/dist/server/rpc/handlers/load-model/hyperdrive.d.ts +1 -2
- package/dist/server/rpc/handlers/load-model/hyperdrive.js +171 -364
- package/dist/server/rpc/handlers/load-model/index.d.ts +2 -2
- package/dist/server/rpc/handlers/load-model/index.js +2 -2
- package/dist/server/rpc/handlers/load-model/resolve.d.ts +1 -3
- package/dist/server/rpc/handlers/load-model/resolve.js +29 -110
- package/dist/server/rpc/handlers/load-model-delegated.d.ts +2 -6
- package/dist/server/rpc/handlers/load-model-delegated.js +21 -59
- package/dist/server/rpc/handlers/{load-model/handler.d.ts → load-model.d.ts} +2 -2
- package/dist/server/rpc/handlers/load-model.js +57 -0
- package/dist/server/rpc/handlers/logging-stream.js +4 -4
- package/dist/server/rpc/handlers/provideHandler/connection.js +10 -12
- package/dist/server/rpc/handlers/provideHandler/handler.js +17 -20
- package/dist/server/rpc/handlers/provideHandler/proxy.js +6 -8
- package/dist/server/rpc/handlers/rag.d.ts +2 -2
- package/dist/server/rpc/handlers/rag.js +43 -130
- package/dist/server/rpc/handlers/stopProvideHandler.js +2 -6
- package/dist/server/rpc/handlers/text-to-speech.js +5 -2
- package/dist/server/rpc/handlers/transcribe-stream.js +24 -2
- package/dist/server/rpc/handlers/translate.js +49 -2
- package/dist/server/rpc/handlers/unload-model.js +3 -12
- package/dist/server/rpc/index.d.ts +1 -1
- package/dist/server/utils/audio/decoder.d.ts +1 -2
- package/dist/server/utils/audio/decoder.js +12 -49
- package/dist/server/utils/cache.d.ts +8 -19
- package/dist/server/utils/cache.js +15 -100
- package/dist/server/utils/hash.d.ts +5 -0
- package/dist/server/utils/hash.js +11 -0
- package/dist/server/utils/index.d.ts +2 -7
- package/dist/server/utils/index.js +2 -7
- package/dist/server/utils/tool-parser.js +14 -28
- package/dist/server/worker.d.ts +5 -4
- package/dist/server/worker.js +89 -22
- package/package.json +41 -141
- package/NOTICE +0 -358
- package/bare-imports.json +0 -44
- package/dist/client/api/get-model-info.d.ts +0 -36
- package/dist/client/api/get-model-info.js +0 -14
- package/dist/client/api/invoke-plugin.d.ts +0 -15
- package/dist/client/api/invoke-plugin.js +0 -38
- package/dist/client/api/ocr.d.ts +0 -31
- package/dist/client/api/ocr.js +0 -88
- package/dist/client/api/registry.d.ts +0 -14
- package/dist/client/api/registry.js +0 -37
- package/dist/client/config-loader/config-utils.d.ts +0 -5
- package/dist/client/config-loader/config-utils.js +0 -20
- package/dist/client/config-loader/resolve-config.bare.d.ts +0 -9
- package/dist/client/config-loader/resolve-config.bare.js +0 -87
- package/dist/client/config-loader/resolve-config.expo.d.ts +0 -11
- package/dist/client/config-loader/resolve-config.expo.js +0 -62
- package/dist/client/config-loader/resolve-config.node.d.ts +0 -10
- package/dist/client/config-loader/resolve-config.node.js +0 -145
- package/dist/client/init-hooks.d.ts +0 -21
- package/dist/client/init-hooks.js +0 -66
- package/dist/client/rpc/expo-device-info.d.ts +0 -6
- package/dist/client/rpc/expo-device-info.js +0 -32
- package/dist/client/rpc/profiling/index.d.ts +0 -2
- package/dist/client/rpc/profiling/index.js +0 -1
- package/dist/client/rpc/profiling/profiler.d.ts +0 -27
- package/dist/client/rpc/profiling/profiler.js +0 -139
- package/dist/constants/registry.d.ts +0 -2
- package/dist/constants/registry.js +0 -1
- package/dist/examples/cache-management.d.ts +0 -2
- package/dist/examples/cache-management.js +0 -97
- package/dist/examples/config/blind-relay/blind-relay.config.d.ts +0 -5
- package/dist/examples/config/blind-relay/blind-relay.config.js +0 -7
- package/dist/examples/config/default/default.config.d.ts +0 -8
- package/dist/examples/config/default/default.config.js +0 -6
- package/dist/examples/config/plugins/plugins.config.d.ts +0 -5
- package/dist/examples/config/plugins/plugins.config.js +0 -4
- package/dist/examples/config-reload.d.ts +0 -2
- package/dist/examples/config-reload.js +0 -49
- package/dist/examples/default-config-usage.d.ts +0 -17
- package/dist/examples/default-config-usage.js +0 -47
- package/dist/examples/delegated-inference/consumer-profiled.d.ts +0 -2
- package/dist/examples/delegated-inference/consumer-profiled.js +0 -67
- package/dist/examples/download-with-blind-relays.d.ts +0 -2
- package/dist/examples/download-with-blind-relays.js +0 -49
- package/dist/examples/llamacpp-sharded.d.ts +0 -2
- package/dist/examples/llamacpp-sharded.js +0 -53
- package/dist/examples/logging-file-transport.d.ts +0 -2
- package/dist/examples/logging-streaming.d.ts +0 -2
- package/dist/examples/logging-streaming.js +0 -75
- package/dist/examples/mcp-websearch.d.ts +0 -13
- package/dist/examples/mcp-websearch.js +0 -176
- package/dist/examples/ocr-fasttext.d.ts +0 -2
- package/dist/examples/ocr-fasttext.js +0 -52
- package/dist/examples/plugins.d.ts +0 -14
- package/dist/examples/plugins.js +0 -129
- package/dist/examples/profiling/basic.d.ts +0 -2
- package/dist/examples/profiling/basic.js +0 -71
- package/dist/examples/profiling/per-call.d.ts +0 -2
- package/dist/examples/profiling/per-call.js +0 -30
- package/dist/examples/quickstart.d.ts +0 -2
- package/dist/examples/quickstart.js +0 -28
- package/dist/examples/rag/rag-hyperdb/cancellation.d.ts +0 -2
- package/dist/examples/rag/rag-hyperdb/cancellation.js +0 -75
- package/dist/examples/rag/rag-hyperdb/ingest.d.ts +0 -2
- package/dist/examples/rag/rag-hyperdb/pipeline.d.ts +0 -2
- package/dist/examples/rag/rag-hyperdb/pipeline.js +0 -74
- package/dist/examples/rag/rag-hyperdb/workspaces.d.ts +0 -2
- package/dist/examples/rag/rag-hyperdb/workspaces.js +0 -178
- package/dist/examples/registry-query.d.ts +0 -2
- package/dist/examples/registry-query.js +0 -87
- package/dist/examples/transcription/parakeet-ctc-filesystem.d.ts +0 -2
- package/dist/examples/transcription/parakeet-ctc-filesystem.js +0 -40
- package/dist/examples/transcription/parakeet-microphone-record.d.ts +0 -2
- package/dist/examples/transcription/parakeet-microphone-record.js +0 -95
- package/dist/examples/transcription/parakeet-sortformer.d.ts +0 -2
- package/dist/examples/transcription/parakeet-sortformer.js +0 -115
- package/dist/examples/transcription/parakeet-tdt-filesystem.d.ts +0 -2
- package/dist/examples/transcription/parakeet-tdt-filesystem.js +0 -44
- package/dist/examples/transcription/whispercpp-filesystem.js +0 -69
- package/dist/examples/transcription/whispercpp-prompt.d.ts +0 -2
- package/dist/examples/transcription/whispercpp-prompt.js +0 -67
- package/dist/examples/translation/translation-bergamot-batch.d.ts +0 -2
- package/dist/examples/translation/translation-bergamot-batch.js +0 -49
- package/dist/examples/translation/translation-bergamot-pivot.d.ts +0 -2
- package/dist/examples/translation/translation-bergamot-pivot.js +0 -73
- package/dist/examples/translation/translation-bergamot.d.ts +0 -2
- package/dist/examples/translation/translation-bergamot.js +0 -39
- package/dist/examples/translation/translation-llm-afriquegemma.d.ts +0 -2
- package/dist/examples/translation/translation-llm-afriquegemma.js +0 -39
- package/dist/examples/tts/chatterbox.d.ts +0 -2
- package/dist/examples/tts/chatterbox.js +0 -59
- package/dist/examples/tts/supertonic.d.ts +0 -2
- package/dist/examples/tts/supertonic.js +0 -51
- package/dist/examples/tts/utils.d.ts +0 -17
- package/dist/expo/plugins/resolve-sdk-package-dir.d.ts +0 -15
- package/dist/expo/plugins/resolve-sdk-package-dir.js +0 -31
- package/dist/expo/plugins/withAndroidArchitecture.d.ts +0 -8
- package/dist/expo/plugins/withAndroidArchitecture.js +0 -52
- package/dist/expo/plugins/withAndroidNdkVersion.d.ts +0 -8
- package/dist/expo/plugins/withAndroidNdkVersion.js +0 -31
- package/dist/expo/plugins/withDeviceInfo.d.ts +0 -10
- package/dist/expo/plugins/withDeviceInfo.js +0 -48
- package/dist/logging/addon.d.ts +0 -6
- package/dist/logging/addon.js +0 -75
- package/dist/logging/client-logger.d.ts +0 -3
- package/dist/logging/client-logger.js +0 -24
- package/dist/logging/namespaces.d.ts +0 -6
- package/dist/logging/namespaces.js +0 -6
- package/dist/logging/registry.d.ts +0 -31
- package/dist/logging/registry.js +0 -62
- package/dist/logging/server-logger.d.ts +0 -3
- package/dist/logging/server-logger.js +0 -16
- package/dist/models/registry/models.d.ts +0 -10417
- package/dist/models/registry/models.js +0 -10757
- package/dist/models/update-models/codegen.d.ts +0 -3
- package/dist/models/update-models/codegen.js +0 -135
- package/dist/models/update-models/history.d.ts +0 -24
- package/dist/models/update-models/history.js +0 -107
- package/dist/models/update-models/index.d.ts +0 -2
- package/dist/models/update-models/index.js +0 -125
- package/dist/models/update-models/naming.d.ts +0 -4
- package/dist/models/update-models/naming.js +0 -370
- package/dist/models/update-models/processing.d.ts +0 -8
- package/dist/models/update-models/processing.js +0 -67
- package/dist/models/update-models/registry.d.ts +0 -4
- package/dist/models/update-models/registry.js +0 -67
- package/dist/models/update-models/shards.d.ts +0 -4
- package/dist/models/update-models/shards.js +0 -57
- package/dist/models/update-models/types.d.ts +0 -60
- package/dist/models/update-models/types.js +0 -1
- package/dist/models/update-models/utils.d.ts +0 -3
- package/dist/models/update-models/utils.js +0 -21
- package/dist/pear/pre.d.ts +0 -18
- package/dist/pear/pre.js +0 -433
- package/dist/profiling/aggregator.d.ts +0 -15
- package/dist/profiling/aggregator.js +0 -100
- package/dist/profiling/clock.d.ts +0 -12
- package/dist/profiling/clock.js +0 -51
- package/dist/profiling/controller.d.ts +0 -33
- package/dist/profiling/controller.js +0 -123
- package/dist/profiling/envelope.d.ts +0 -10
- package/dist/profiling/envelope.js +0 -36
- package/dist/profiling/events.d.ts +0 -20
- package/dist/profiling/events.js +0 -37
- package/dist/profiling/exporters.d.ts +0 -10
- package/dist/profiling/exporters.js +0 -236
- package/dist/profiling/index.d.ts +0 -36
- package/dist/profiling/index.js +0 -31
- package/dist/profiling/ring-buffer.d.ts +0 -19
- package/dist/profiling/ring-buffer.js +0 -83
- package/dist/profiling/types.d.ts +0 -47
- package/dist/profiling/types.js +0 -1
- package/dist/schemas/archive.d.ts +0 -9
- package/dist/schemas/archive.js +0 -17
- package/dist/schemas/engine-addon-map.d.ts +0 -5
- package/dist/schemas/engine-addon-map.js +0 -52
- package/dist/schemas/get-model-info.d.ts +0 -120
- package/dist/schemas/get-model-info.js +0 -58
- package/dist/schemas/json-schema.d.ts +0 -16
- package/dist/schemas/json-schema.js +0 -2
- package/dist/schemas/mcp-adapter.d.ts +0 -47
- package/dist/schemas/mcp-adapter.js +0 -1
- package/dist/schemas/model-src-utils.d.ts +0 -148
- package/dist/schemas/model-src-utils.js +0 -35
- package/dist/schemas/model-types.d.ts +0 -183
- package/dist/schemas/model-types.js +0 -168
- package/dist/schemas/ocr.d.ts +0 -125
- package/dist/schemas/ocr.js +0 -57
- package/dist/schemas/path-validation.d.ts +0 -10
- package/dist/schemas/path-validation.js +0 -22
- package/dist/schemas/plugin.d.ts +0 -226
- package/dist/schemas/plugin.js +0 -158
- package/dist/schemas/profiling.d.ts +0 -105
- package/dist/schemas/profiling.js +0 -66
- package/dist/schemas/registry.d.ts +0 -356
- package/dist/schemas/registry.js +0 -93
- package/dist/schemas/reload-config.d.ts +0 -476
- package/dist/schemas/reload-config.js +0 -44
- package/dist/schemas/runtime-context.d.ts +0 -19
- package/dist/schemas/runtime-context.js +0 -7
- package/dist/schemas/sdk-config.d.ts +0 -2973
- package/dist/schemas/sdk-config.js +0 -136
- package/dist/schemas/sdk-errors-client.d.ts +0 -31
- package/dist/schemas/sdk-errors-client.js +0 -143
- package/dist/schemas/sdk-errors-registry.d.ts +0 -6
- package/dist/schemas/sdk-errors-registry.js +0 -8
- package/dist/schemas/sdk-errors-server.d.ts +0 -89
- package/dist/schemas/sdk-errors-server.js +0 -451
- package/dist/schemas/shard.d.ts +0 -21
- package/dist/schemas/shard.js +0 -17
- package/dist/schemas/tools.d.ts +0 -65
- package/dist/schemas/tools.js +0 -43
- package/dist/schemas/transcription-config.d.ts +0 -383
- package/dist/schemas/transcription-config.js +0 -95
- package/dist/scripts/run-security-tests-bare.d.ts +0 -2
- package/dist/scripts/run-security-tests-bare.js +0 -78
- package/dist/scripts/run-security-tests.d.ts +0 -2
- package/dist/scripts/run-security-tests.js +0 -22
- package/dist/scripts/run-unit-tests.d.ts +0 -2
- package/dist/scripts/run-unit-tests.js +0 -17
- package/dist/server/bare/ops/embed.d.ts +0 -12
- package/dist/server/bare/ops/load-model.d.ts +0 -9
- package/dist/server/bare/ops/load-model.js +0 -85
- package/dist/server/bare/ops/transcribe.d.ts +0 -3
- package/dist/server/bare/ops/transcribe.js +0 -75
- package/dist/server/bare/ops/translate.d.ts +0 -5
- package/dist/server/bare/ops/unload-model.js +0 -41
- package/dist/server/bare/plugins/index.d.ts +0 -8
- package/dist/server/bare/plugins/index.js +0 -7
- package/dist/server/bare/plugins/llamacpp-completion/ops/cache-logger.d.ts +0 -6
- package/dist/server/bare/plugins/llamacpp-completion/ops/cache-logger.js +0 -34
- package/dist/server/bare/plugins/llamacpp-completion/plugin.d.ts +0 -220
- package/dist/server/bare/plugins/llamacpp-completion/plugin.js +0 -155
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.d.ts +0 -54
- package/dist/server/bare/plugins/llamacpp-embedding/plugin.js +0 -87
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.d.ts +0 -367
- package/dist/server/bare/plugins/nmtcpp-translation/plugin.js +0 -204
- package/dist/server/bare/plugins/onnx-ocr/ops/ocr-stream.d.ts +0 -10
- package/dist/server/bare/plugins/onnx-ocr/ops/ocr-stream.js +0 -110
- package/dist/server/bare/plugins/onnx-ocr/plugin.d.ts +0 -86
- package/dist/server/bare/plugins/onnx-ocr/plugin.js +0 -117
- package/dist/server/bare/plugins/onnx-tts/plugin.d.ts +0 -373
- package/dist/server/bare/plugins/onnx-tts/plugin.js +0 -182
- package/dist/server/bare/plugins/onnx-tts/wav-helper.d.ts +0 -14
- package/dist/server/bare/plugins/onnx-tts/wav-helper.js +0 -107
- package/dist/server/bare/plugins/parakeet-transcription/plugin.d.ts +0 -317
- package/dist/server/bare/plugins/parakeet-transcription/plugin.js +0 -154
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.d.ts +0 -237
- package/dist/server/bare/plugins/whispercpp-transcription/plugin.js +0 -86
- package/dist/server/bare/rag-hyperdb/handlers/chunk.d.ts +0 -3
- package/dist/server/bare/rag-hyperdb/handlers/chunk.js +0 -7
- package/dist/server/bare/rag-hyperdb/handlers/close-workspace.d.ts +0 -3
- package/dist/server/bare/rag-hyperdb/handlers/close-workspace.js +0 -9
- package/dist/server/bare/rag-hyperdb/handlers/delete-workspace.d.ts +0 -3
- package/dist/server/bare/rag-hyperdb/handlers/delete-workspace.js +0 -14
- package/dist/server/bare/rag-hyperdb/handlers/ingest.d.ts +0 -9
- package/dist/server/bare/rag-hyperdb/handlers/ingest.js +0 -18
- package/dist/server/bare/rag-hyperdb/handlers/list-workspaces.d.ts +0 -3
- package/dist/server/bare/rag-hyperdb/handlers/list-workspaces.js +0 -4
- package/dist/server/bare/rag-hyperdb/handlers/reindex.d.ts +0 -9
- package/dist/server/bare/rag-hyperdb/handlers/reindex.js +0 -16
- package/dist/server/bare/rag-hyperdb/rag-operation-manager.d.ts +0 -7
- package/dist/server/bare/rag-hyperdb/rag-operation-manager.js +0 -39
- package/dist/server/bare/rag-hyperdb/rag-workspace-manager.d.ts +0 -15
- package/dist/server/bare/rag-hyperdb/rag-workspace-manager.js +0 -136
- package/dist/server/bare/registry/config-registry.d.ts +0 -14
- package/dist/server/bare/registry/config-registry.js +0 -82
- package/dist/server/bare/registry/model-config-registry.d.ts +0 -4
- package/dist/server/bare/registry/model-config-registry.js +0 -15
- package/dist/server/bare/registry/model-config-utils.d.ts +0 -15
- package/dist/server/bare/registry/model-config-utils.js +0 -112
- package/dist/server/bare/registry/registry-client.d.ts +0 -5
- package/dist/server/bare/registry/registry-client.js +0 -37
- package/dist/server/bare/registry/runtime-context-registry.d.ts +0 -7
- package/dist/server/bare/registry/runtime-context-registry.js +0 -26
- package/dist/server/bare/utils/audio-input.d.ts +0 -10
- package/dist/server/bare/utils/audio-input.js +0 -33
- package/dist/server/bare/utils/loader-adapter.d.ts +0 -7
- package/dist/server/bare/utils/loader-adapter.js +0 -9
- package/dist/server/env.d.ts +0 -22
- package/dist/server/env.js +0 -57
- package/dist/server/plugins/index.d.ts +0 -2
- package/dist/server/plugins/index.js +0 -1
- package/dist/server/plugins/registry.d.ts +0 -9
- package/dist/server/plugins/registry.js +0 -79
- package/dist/server/rpc/delegate-transport.d.ts +0 -19
- package/dist/server/rpc/delegate-transport.js +0 -215
- package/dist/server/rpc/handler-registry.d.ts +0 -3
- package/dist/server/rpc/handler-registry.js +0 -90
- package/dist/server/rpc/handler-utils.d.ts +0 -23
- package/dist/server/rpc/handler-utils.js +0 -128
- package/dist/server/rpc/handlers/get-model-info.d.ts +0 -3
- package/dist/server/rpc/handlers/get-model-info.js +0 -164
- package/dist/server/rpc/handlers/load-model/download-stats.d.ts +0 -6
- package/dist/server/rpc/handlers/load-model/download-stats.js +0 -87
- package/dist/server/rpc/handlers/load-model/handler.js +0 -187
- package/dist/server/rpc/handlers/load-model/registry.d.ts +0 -11
- package/dist/server/rpc/handlers/load-model/registry.js +0 -564
- package/dist/server/rpc/handlers/load-model/types.d.ts +0 -29
- package/dist/server/rpc/handlers/load-model/types.js +0 -1
- package/dist/server/rpc/handlers/ocr-stream.d.ts +0 -3
- package/dist/server/rpc/handlers/ocr-stream.js +0 -4
- package/dist/server/rpc/handlers/ping.d.ts +0 -3
- package/dist/server/rpc/handlers/ping.js +0 -3
- package/dist/server/rpc/handlers/plugin-dispatch.d.ts +0 -15
- package/dist/server/rpc/handlers/plugin-dispatch.js +0 -59
- package/dist/server/rpc/handlers/plugin-invoke.d.ts +0 -4
- package/dist/server/rpc/handlers/plugin-invoke.js +0 -92
- package/dist/server/rpc/handlers/registry.d.ts +0 -5
- package/dist/server/rpc/handlers/registry.js +0 -157
- package/dist/server/rpc/handlers/unload-model-delegated.d.ts +0 -3
- package/dist/server/rpc/handlers/unload-model-delegated.js +0 -32
- package/dist/server/rpc/profiling/context.d.ts +0 -18
- package/dist/server/rpc/profiling/context.js +0 -38
- package/dist/server/rpc/profiling/delegation-profiler.d.ts +0 -32
- package/dist/server/rpc/profiling/delegation-profiler.js +0 -154
- package/dist/server/rpc/profiling/index.d.ts +0 -5
- package/dist/server/rpc/profiling/index.js +0 -4
- package/dist/server/rpc/profiling/operation-metrics.d.ts +0 -25
- package/dist/server/rpc/profiling/operation-metrics.js +0 -199
- package/dist/server/rpc/profiling/operation-wrappers.d.ts +0 -18
- package/dist/server/rpc/profiling/operation-wrappers.js +0 -124
- package/dist/server/rpc/profiling/profiler.d.ts +0 -13
- package/dist/server/rpc/profiling/profiler.js +0 -97
- package/dist/server/utils/archive.d.ts +0 -4
- package/dist/server/utils/archive.js +0 -179
- package/dist/server/utils/checksum.d.ts +0 -4
- package/dist/server/utils/checksum.js +0 -31
- package/dist/server/utils/config-transform.d.ts +0 -3
- package/dist/server/utils/config-transform.js +0 -23
- package/dist/server/utils/formatting.d.ts +0 -19
- package/dist/server/utils/formatting.js +0 -61
- package/dist/server/utils/gguf-tensor-extractor.d.ts +0 -15
- package/dist/server/utils/gguf-tensor-extractor.js +0 -314
- package/dist/server/utils/path-security.d.ts +0 -12
- package/dist/server/utils/path-security.js +0 -25
- package/dist/server/utils/shard-utils.d.ts +0 -48
- package/dist/server/utils/shard-utils.js +0 -125
- package/dist/server/utils/tool-integration.d.ts +0 -13
- package/dist/server/utils/tool-integration.js +0 -43
- package/dist/server/worker-core.d.ts +0 -6
- package/dist/server/worker-core.js +0 -88
- package/dist/utils/errors-base.d.ts +0 -3
- package/dist/utils/errors-base.js +0 -13
- package/dist/utils/errors-client.d.ts +0 -137
- package/dist/utils/errors-client.js +0 -240
- package/dist/utils/errors-server.d.ts +0 -236
- package/dist/utils/errors-server.js +0 -412
- package/dist/utils/global-singleton.d.ts +0 -2
- package/dist/utils/global-singleton.js +0 -10
- package/dist/utils/mcp-adapter.d.ts +0 -12
- package/dist/utils/mcp-adapter.js +0 -103
- package/dist/utils/object.d.ts +0 -2
- package/dist/utils/object.js +0 -3
- package/dist/utils/path-sanitize.d.ts +0 -17
- package/dist/utils/path-sanitize.js +0 -54
- package/dist/utils/tool-helpers.d.ts +0 -25
- package/dist/utils/tool-helpers.js +0 -112
- package/expo/plugins/patches/android-link.mjs +0 -63
- package/expo/plugins/patches/ios-link.mjs +0 -63
- /package/dist/examples/{transcription/whispercpp-filesystem.d.ts → whispercpp-filesystem.d.ts} +0 -0
- /package/dist/examples/{transcription/whispercpp-microphone-record.d.ts → whispercpp-microphone-record.d.ts} +0 -0
- /package/dist/models/{registry → hyperdrive}/index.d.ts +0 -0
- /package/dist/server/bare/{ops → addons}/cancel.d.ts +0 -0
- /package/dist/server/bare/{plugins/onnx-tts/ops → addons/tts/handlers}/text-to-speech.d.ts +0 -0
- /package/dist/server/bare/{ops → addons}/unload-model.d.ts +0 -0
package/NOTICE
DELETED
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
@qvac/sdk
|
|
2
|
-
Copyright 2026 Tether Data, S.A. de C.V.
|
|
3
|
-
|
|
4
|
-
This product includes third-party components under their
|
|
5
|
-
respective licenses. @qvac/sdk itself is licensed under
|
|
6
|
-
Apache-2.0; bundled dependencies are governed by the licenses
|
|
7
|
-
listed below.
|
|
8
|
-
|
|
9
|
-
=========================================================================
|
|
10
|
-
Required Attribution Notices
|
|
11
|
-
=========================================================================
|
|
12
|
-
|
|
13
|
-
Gemma is provided under and subject to the Gemma Terms of Use found
|
|
14
|
-
at ai.google.dev/gemma/terms
|
|
15
|
-
|
|
16
|
-
Additional requirements per Section 3.1:
|
|
17
|
-
Distribution must be accompanied by the Gemma Terms of Use.
|
|
18
|
-
Use is subject to the Gemma Prohibited Use Policy at
|
|
19
|
-
ai.google.dev/gemma/prohibited_use_policy
|
|
20
|
-
|
|
21
|
-
HAI-DEF is provided under and subject to the Health AI Developer
|
|
22
|
-
Foundations Terms of Use found at
|
|
23
|
-
https://developers.google.com/health-ai-developer-foundations/terms
|
|
24
|
-
|
|
25
|
-
Additional requirements per Section 3.1:
|
|
26
|
-
Distribution must be accompanied by the HAI-DEF Terms of Use.
|
|
27
|
-
Clinical use requires Health Regulatory Authorization from the
|
|
28
|
-
relevant authority (Section 3.1.3).
|
|
29
|
-
Use is subject to the HAI-DEF Prohibited Use Policy at
|
|
30
|
-
developers.google.com/health-ai-developer-foundations/prohibited-use-policy
|
|
31
|
-
|
|
32
|
-
Llama 3.2 is licensed under the Llama 3.2 Community License,
|
|
33
|
-
Copyright (c) Meta Platforms, Inc. All Rights Reserved.
|
|
34
|
-
|
|
35
|
-
Additional requirements per license Section 1.b.i:
|
|
36
|
-
Products or services distributing or containing Llama 3.2 materials
|
|
37
|
-
must prominently display "Built with Llama" on a related website,
|
|
38
|
-
user interface, blog post, about page, or product documentation.
|
|
39
|
-
|
|
40
|
-
# Model Use Restrictions (Open RAIL++-M)
|
|
41
|
-
|
|
42
|
-
As a user of the QVAC SDK and its associated model registry, you agree not to use the Model or its Derivatives:
|
|
43
|
-
|
|
44
|
-
1. **Illegal Acts:** In any way that violates any applicable national, federal, state, local or international law or regulation.
|
|
45
|
-
2. **Harm to Minors:** For the purpose of exploiting, harming or attempting to exploit or harm minors in any way.
|
|
46
|
-
3. **Malicious Content:** To generate or disseminate verifiably false information and/or content with the purpose of harming others.
|
|
47
|
-
4. **Personal Data:** To generate or disseminate personal identifiable information that can be used to harm an individual.
|
|
48
|
-
5. **Defamation & Harassment:** To defame, disparage or otherwise harass others.
|
|
49
|
-
6. **Automated Decisions:** For fully automated decision making that adversely impacts an individual's legal rights or otherwise creates or modifies a binding, enforceable obligation.
|
|
50
|
-
7. **Discrimination:** For any use intended to or which has the effect of discriminating against or harming individuals or groups based on online or offline social behavior or known or predicted personal or personality characteristics.
|
|
51
|
-
8. **Exploitation:** To exploit any of the vulnerabilities of a specific group of persons based on their age, social, physical or mental characteristics, in order to materially distort the behavior of a person pertaining to such group in a manner that causes or is likely to cause that person or another person physical or psychological harm.
|
|
52
|
-
9. **Medical Advice:** To provide medical advice and medical results interpretation.
|
|
53
|
-
10. **Justice & Law Enforcement:** To generate or disseminate information for use by administration of justice, law enforcement, immigration or asylum processes, such as predicting an individual will commit fraud/crime commitment (e.g. by text profiling, drawing causal relationships between assertions made in documents, indiscriminate and untargeted scraping).
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
*Note: These restrictions must be included in any distribution of the Model or Derivatives thereof to your end-users.*
|
|
57
|
-
|
|
58
|
-
=========================================================================
|
|
59
|
-
Third-Party Model Licenses
|
|
60
|
-
=========================================================================
|
|
61
|
-
|
|
62
|
-
--- apache-2.0 (Apache License 2.0) ---
|
|
63
|
-
|
|
64
|
-
crnn_mobilenet_v3_small
|
|
65
|
-
https://github.com/felixdittrich92/OnnxTR
|
|
66
|
-
db_mobilenet_v3_large
|
|
67
|
-
https://github.com/felixdittrich92/OnnxTR
|
|
68
|
-
db_resnet50
|
|
69
|
-
https://github.com/felixdittrich92/OnnxTR
|
|
70
|
-
de-tiny-ggml-model-f16
|
|
71
|
-
https://huggingface.co/primeline/whisper-tiny-german-1224
|
|
72
|
-
detector_craft
|
|
73
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
74
|
-
dolphin-mixtral-2x7b-dop-Q2_K-00001-of-00005
|
|
75
|
-
https://huggingface.co/jmb95/laser-dolphin-mixtral-2x7b-dpo-GGUF
|
|
76
|
-
en-base-ggml-model-f16
|
|
77
|
-
https://huggingface.co/openai/whisper-base
|
|
78
|
-
FLUX.2-klein-4B
|
|
79
|
-
https://huggingface.co/black-forest-labs/FLUX.2-klein-4B
|
|
80
|
-
FLUX.2-klein-4B-GGUF
|
|
81
|
-
https://huggingface.co/unsloth/FLUX.2-klein-4B-GGUF
|
|
82
|
-
fr-base-ggml-model-f16
|
|
83
|
-
https://huggingface.co/personalizedrefrigerator/whisper-base-fr
|
|
84
|
-
fr-tiny-ggml-model-f16
|
|
85
|
-
https://huggingface.co/JaepaX/whisper-tiny-fr
|
|
86
|
-
ggml-opus-ar-en
|
|
87
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-ar-en
|
|
88
|
-
ggml-opus-de-en
|
|
89
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-de-en
|
|
90
|
-
ggml-opus-de-fr
|
|
91
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-de-fr
|
|
92
|
-
ggml-opus-en-ar
|
|
93
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-ar
|
|
94
|
-
ggml-opus-en-es
|
|
95
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-es
|
|
96
|
-
ggml-opus-en-fr
|
|
97
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-fr
|
|
98
|
-
ggml-opus-en-it
|
|
99
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-it
|
|
100
|
-
ggml-opus-en-roa
|
|
101
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-roa
|
|
102
|
-
ggml-opus-en-ru
|
|
103
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-ru
|
|
104
|
-
ggml-opus-en-zh
|
|
105
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-zh
|
|
106
|
-
ggml-opus-es-en
|
|
107
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-es-en
|
|
108
|
-
ggml-opus-es-fr
|
|
109
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-es-fr
|
|
110
|
-
ggml-opus-fr-de
|
|
111
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-fr-de
|
|
112
|
-
ggml-opus-fr-en
|
|
113
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-fr-en
|
|
114
|
-
ggml-opus-fr-es
|
|
115
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-fr-es
|
|
116
|
-
ggml-opus-it-en
|
|
117
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-it-en
|
|
118
|
-
ggml-opus-ja-en
|
|
119
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-ja-en
|
|
120
|
-
ggml-opus-mt-en-roa-f16
|
|
121
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-roa
|
|
122
|
-
ggml-opus-mt-roa-en-f16
|
|
123
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-roa-en
|
|
124
|
-
ggml-opus-roa-en
|
|
125
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-roa-en
|
|
126
|
-
gpt-oss-120b-Q4_K_M-00001-of-00002
|
|
127
|
-
https://huggingface.co/unsloth/gpt-oss-120b-GGUF
|
|
128
|
-
gpt-oss-20b-GGUF
|
|
129
|
-
https://huggingface.co/unsloth/gpt-oss-20b-GGUF
|
|
130
|
-
it-base-ggml-model-f16
|
|
131
|
-
https://huggingface.co/gustavv-andrzejewski/distil-whisper-base-it
|
|
132
|
-
it-tiny-ggml-model-f16
|
|
133
|
-
https://huggingface.co/luigisaetta/whisper-tiny-it
|
|
134
|
-
ja-base-ggml-model-f16
|
|
135
|
-
https://huggingface.co/bygreencn/whisper-base-ja
|
|
136
|
-
ja-tiny-ggml-model-f16
|
|
137
|
-
https://huggingface.co/CheeLi03/whisper-tiny-ja-puct-4k
|
|
138
|
-
laser-dolphin-mixtral-2x7b-dpo-GGUF
|
|
139
|
-
https://huggingface.co/jmb95/laser-dolphin-mixtral-2x7b-dpo-GGUF
|
|
140
|
-
LightOnOCR-2-1B-ocr-soup-GGUF
|
|
141
|
-
https://huggingface.co/noctrex/LightOnOCR-2-1B-ocr-soup-GGUF
|
|
142
|
-
Llama_3.2_1B_Intruct_Tool_Calling_V2-GGUF
|
|
143
|
-
https://huggingface.co/mav23/Llama_3.2_1B_Intruct_Tool_Calling_V2-GGUF
|
|
144
|
-
nb-tiny-ggml-model
|
|
145
|
-
https://huggingface.co/NbAiLab/nb-whisper-tiny
|
|
146
|
-
parseq
|
|
147
|
-
https://github.com/felixdittrich92/OnnxTR
|
|
148
|
-
pt-base-ggml-model-f16
|
|
149
|
-
https://huggingface.co/mariana-coelho-9/whisper-base-pt
|
|
150
|
-
Qwen3-0.6B-GGUF
|
|
151
|
-
https://huggingface.co/unsloth/Qwen3-0.6B-GGUF
|
|
152
|
-
Qwen3-1.7B-GGUF
|
|
153
|
-
https://huggingface.co/unsloth/Qwen3-1.7B-GGUF
|
|
154
|
-
Qwen3-1.7B-Q4_0-00001-of-00005
|
|
155
|
-
https://huggingface.co/unsloth/Qwen3-1.7B-GGUF
|
|
156
|
-
Qwen3-4B-GGUF
|
|
157
|
-
https://huggingface.co/unsloth/Qwen3-4B-GGUF
|
|
158
|
-
Qwen3-4B-Q4_0-00001-of-00005
|
|
159
|
-
https://huggingface.co/unsloth/Qwen3-4B-GGUF
|
|
160
|
-
Qwen3-4B-Q4_K_M
|
|
161
|
-
https://huggingface.co/Qwen/Qwen3-4B-GGUF
|
|
162
|
-
Qwen3-8B-GGUF
|
|
163
|
-
https://huggingface.co/Qwen/Qwen3-8B-GGUF
|
|
164
|
-
Qwen3-VL-2B-Instruct-GGUF
|
|
165
|
-
https://huggingface.co/Qwen/Qwen3-VL-2B-Instruct-GGUF
|
|
166
|
-
recognizer_arabic
|
|
167
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
168
|
-
recognizer_bengali
|
|
169
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
170
|
-
recognizer_cyrillic
|
|
171
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
172
|
-
recognizer_devanagari
|
|
173
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
174
|
-
recognizer_japanese
|
|
175
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
176
|
-
recognizer_kannada
|
|
177
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
178
|
-
recognizer_korean
|
|
179
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
180
|
-
recognizer_latin
|
|
181
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
182
|
-
recognizer_tamil
|
|
183
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
184
|
-
recognizer_telugu
|
|
185
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
186
|
-
recognizer_thai
|
|
187
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
188
|
-
recognizer_zh_sim
|
|
189
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
190
|
-
recognizer_zh_tra
|
|
191
|
-
https://www.jaided.ai/easyocr/modelhub/
|
|
192
|
-
ru-base-ggml-model-f16
|
|
193
|
-
https://huggingface.co/CheeLi03/whisper-base-rus-8
|
|
194
|
-
ru-tiny-ggml-model-f16
|
|
195
|
-
https://huggingface.co/yaroslav0530/whisper-tiny-ru
|
|
196
|
-
salamandrata_2b_inst_q4-00001-of-00003
|
|
197
|
-
https://huggingface.co/BSC-LT/salamandraTA-2B-instruct-GGUF
|
|
198
|
-
salamandrata_2b_inst_q8-00001-of-00004
|
|
199
|
-
https://huggingface.co/BSC-LT/salamandraTA-2B-instruct-GGUF
|
|
200
|
-
salamandraTA-2B-instruct-GGUF
|
|
201
|
-
https://huggingface.co/BSC-LT/salamandraTA-2B-instruct-GGUF
|
|
202
|
-
SmolVLM2-500M-Video-Instruct-GGUF
|
|
203
|
-
https://huggingface.co/ggml-org/SmolVLM2-500M-Video-Instruct-GGUF
|
|
204
|
-
|
|
205
|
-
--- cc-by-4.0 (Creative Commons Attribution 4.0 International) ---
|
|
206
|
-
|
|
207
|
-
AfriqueGemma-4B-GGUF
|
|
208
|
-
https://huggingface.co/mradermacher/AfriqueGemma-4B-GGUF
|
|
209
|
-
decoder_joint-model
|
|
210
|
-
https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx
|
|
211
|
-
diar_streaming_sortformer_4spk-v2-onnx
|
|
212
|
-
https://huggingface.co/cgus/diar_streaming_sortformer_4spk-v2-onnx
|
|
213
|
-
encoder-model
|
|
214
|
-
https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx
|
|
215
|
-
ggml-opus-en-de
|
|
216
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-en-de
|
|
217
|
-
ggml-opus-en-pt
|
|
218
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-tc-big-en-pt
|
|
219
|
-
ggml-opus-ru-en
|
|
220
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-ru-en
|
|
221
|
-
ggml-opus-zh-en
|
|
222
|
-
https://huggingface.co/Helsinki-NLP/opus-mt-zh-en
|
|
223
|
-
parakeet-ctc-0.6b-ONNX
|
|
224
|
-
https://huggingface.co/onnx-community/parakeet-ctc-0.6b-ONNX
|
|
225
|
-
parakeet-rs
|
|
226
|
-
https://huggingface.co/altunenes/parakeet-rs
|
|
227
|
-
parakeet-tdt-0.6b-v3-onnx
|
|
228
|
-
https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx
|
|
229
|
-
preprocessor
|
|
230
|
-
https://huggingface.co/istupakov/parakeet-tdt-0.6b-v3-onnx
|
|
231
|
-
|
|
232
|
-
--- gemma (Gemma Terms of Use) ---
|
|
233
|
-
|
|
234
|
-
embeddinggemma-300m-GGUF
|
|
235
|
-
https://huggingface.co/unsloth/embeddinggemma-300m-GGUF
|
|
236
|
-
|
|
237
|
-
--- health-ai-developer-foundations (HAI-DEF Terms of Use) ---
|
|
238
|
-
|
|
239
|
-
medgemma-4b-it-GGUF
|
|
240
|
-
https://huggingface.co/unsloth/medgemma-4b-it-GGUF
|
|
241
|
-
medgemma-4b-it-Q4_1-00001-of-00005
|
|
242
|
-
https://huggingface.co/unsloth/medgemma-4b-it-GGUF
|
|
243
|
-
medgemma-4b-it-Q8_0-00001-of-00005
|
|
244
|
-
https://huggingface.co/unsloth/medgemma-4b-it-GGUF
|
|
245
|
-
|
|
246
|
-
--- llama3.2 (Llama 3.2 Community License) ---
|
|
247
|
-
|
|
248
|
-
Llama-3.2-1B-Instruct-GGUF
|
|
249
|
-
https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-GGUF
|
|
250
|
-
Llama-3.2-1B-Instruct-Q4_0-00001-of-00008
|
|
251
|
-
https://huggingface.co/bartowski/Llama-3.2-1B-Instruct-GGUF
|
|
252
|
-
|
|
253
|
-
--- mit (MIT License) ---
|
|
254
|
-
|
|
255
|
-
bitnet_b1_58-3B-TQ2_0
|
|
256
|
-
https://huggingface.co/1bitLLM/bitnet_b1_58-3B
|
|
257
|
-
bitnet_b1_58-large-TQ2_0
|
|
258
|
-
https://huggingface.co/1bitLLM/bitnet_b1_58-large
|
|
259
|
-
bitnet_b1_58-xl-TQ2_0
|
|
260
|
-
https://huggingface.co/1bitLLM/bitnet_b1_58-xl
|
|
261
|
-
chatterbox-multilingual-ONNX
|
|
262
|
-
https://huggingface.co/onnx-community/chatterbox-multilingual-ONNX
|
|
263
|
-
chatterbox-turbo-ONNX
|
|
264
|
-
https://huggingface.co/ResembleAI/chatterbox-turbo-ONNX
|
|
265
|
-
de-base-ggml-model-f16
|
|
266
|
-
https://huggingface.co/aware-ai/whisper-base-german
|
|
267
|
-
es-tiny-ggml-model-f16
|
|
268
|
-
https://huggingface.co/JaepaX/whisper-tiny-es
|
|
269
|
-
ggml-indictrans2-en-indic-1B-f16
|
|
270
|
-
https://huggingface.co/ai4bharat/indictrans2-en-indic-1B
|
|
271
|
-
ggml-indictrans2-en-indic-dist-200M-f16
|
|
272
|
-
https://huggingface.co/ai4bharat/indictrans2-en-indic-dist-200M
|
|
273
|
-
ggml-indictrans2-indic-en-1B-f16
|
|
274
|
-
https://huggingface.co/ai4bharat/indictrans2-indic-en-1B
|
|
275
|
-
ggml-indictrans2-indic-en-dist-200M-f16
|
|
276
|
-
https://huggingface.co/ai4bharat/indictrans2-indic-en-dist-200M
|
|
277
|
-
ggml-indictrans2-indic-indic-1B-f16
|
|
278
|
-
https://huggingface.co/ai4bharat/indictrans2-indic-indic-1B
|
|
279
|
-
ggml-indictrans2-indic-indic-dist-320M-f16
|
|
280
|
-
https://huggingface.co/ai4bharat/indictrans2-indic-indic-dist-320M
|
|
281
|
-
gte-large_fp16-00001-of-00005
|
|
282
|
-
https://huggingface.co/ChristianAzinn/gte-large-gguf
|
|
283
|
-
gte-large-gguf
|
|
284
|
-
https://huggingface.co/ChristianAzinn/gte-large-gguf
|
|
285
|
-
pt-tiny-ggml-model-f16
|
|
286
|
-
https://huggingface.co/DavyCosta701/whisper-tiny-pt-bpra
|
|
287
|
-
tiny_acft_q8_0
|
|
288
|
-
https://voiceinput.futo.org/VoiceInput/tiny_en_acft_q8_0.bin
|
|
289
|
-
tiny_en_acft_q8_0
|
|
290
|
-
https://voiceinput.futo.org/VoiceInput/tiny_en_acft_q8_0.bin
|
|
291
|
-
whisper-vad
|
|
292
|
-
https://huggingface.co/ggml-org/whisper-vad
|
|
293
|
-
whisper.cpp
|
|
294
|
-
https://huggingface.co/ggerganov/whisper.cpp
|
|
295
|
-
|
|
296
|
-
--- mpl-2.0 (Mozilla Public License 2.0) ---
|
|
297
|
-
|
|
298
|
-
model.aren.intgemm.alphas
|
|
299
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/aren
|
|
300
|
-
model.csen.intgemm.alphas
|
|
301
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/csen
|
|
302
|
-
model.enar.intgemm.alphas
|
|
303
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enar
|
|
304
|
-
model.encs.intgemm.alphas
|
|
305
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/encs
|
|
306
|
-
model.enes.intgemm.alphas
|
|
307
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enes
|
|
308
|
-
model.enfr.intgemm.alphas
|
|
309
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enfr
|
|
310
|
-
model.enit.intgemm.alphas
|
|
311
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/tiny/enit
|
|
312
|
-
model.enja.intgemm.alphas
|
|
313
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enja
|
|
314
|
-
model.enpt.intgemm.alphas
|
|
315
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enpt
|
|
316
|
-
model.enru.intgemm.alphas
|
|
317
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enru
|
|
318
|
-
model.enzh.intgemm.alphas
|
|
319
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/enzh
|
|
320
|
-
model.esen.intgemm.alphas
|
|
321
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/tiny/esen
|
|
322
|
-
model.fren.intgemm.alphas
|
|
323
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/fren
|
|
324
|
-
model.iten.intgemm.alphas
|
|
325
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/iten
|
|
326
|
-
model.jaen.intgemm.alphas
|
|
327
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/jaen
|
|
328
|
-
model.pten.intgemm.alphas
|
|
329
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/pten
|
|
330
|
-
model.ruen.intgemm.alphas
|
|
331
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/tiny/ruen
|
|
332
|
-
model.zhen.intgemm.alphas
|
|
333
|
-
https://github.com/mozilla/firefox-translations-models/tree/main/models/base-memory/zhen
|
|
334
|
-
|
|
335
|
-
--- openrail ---
|
|
336
|
-
|
|
337
|
-
Supertonic-TTS-ONNX
|
|
338
|
-
https://huggingface.co/onnx-community/Supertonic-TTS-ONNX
|
|
339
|
-
|
|
340
|
-
--- openrail++ ---
|
|
341
|
-
|
|
342
|
-
stable-diffusion-v2-1-GGUF
|
|
343
|
-
https://huggingface.co/gpustack/stable-diffusion-v2-1-GGUF
|
|
344
|
-
stable-diffusion-xl-base-1.0-GGUF
|
|
345
|
-
https://huggingface.co/gpustack/stable-diffusion-xl-base-1.0-GGUF
|
|
346
|
-
|
|
347
|
-
=========================================================================
|
|
348
|
-
Modification Notice
|
|
349
|
-
=========================================================================
|
|
350
|
-
|
|
351
|
-
Models listed above may have been converted from original model
|
|
352
|
-
weights into optimized inference formats (GGUF, GGML, ONNX, or
|
|
353
|
-
Bergamot intgemm). These conversions involve format transformation
|
|
354
|
-
and/or weight quantization. No architectural changes were made to
|
|
355
|
-
the underlying models.
|
|
356
|
-
|
|
357
|
-
Source URLs for original weights are recorded in each model's
|
|
358
|
-
metadata entry within the registry.
|
package/bare-imports.json
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"#rpc": {
|
|
3
|
-
"react-native": "./dist/client/rpc/expo-rpc-client.js",
|
|
4
|
-
"bare": "./dist/client/rpc/bare-client.js",
|
|
5
|
-
"default": "./dist/client/rpc/node-rpc-client.js"
|
|
6
|
-
},
|
|
7
|
-
"child_process": {
|
|
8
|
-
"bare": "bare-subprocess",
|
|
9
|
-
"default": "child_process"
|
|
10
|
-
},
|
|
11
|
-
"crypto": {
|
|
12
|
-
"bare": "bare-crypto",
|
|
13
|
-
"default": "crypto"
|
|
14
|
-
},
|
|
15
|
-
"fs": {
|
|
16
|
-
"bare": "bare-fs",
|
|
17
|
-
"default": "fs"
|
|
18
|
-
},
|
|
19
|
-
"os": {
|
|
20
|
-
"bare": "bare-os",
|
|
21
|
-
"default": "os"
|
|
22
|
-
},
|
|
23
|
-
"path": {
|
|
24
|
-
"bare": "bare-path",
|
|
25
|
-
"default": "path"
|
|
26
|
-
},
|
|
27
|
-
"process": {
|
|
28
|
-
"bare": "bare-process",
|
|
29
|
-
"default": "process"
|
|
30
|
-
},
|
|
31
|
-
"readline": {
|
|
32
|
-
"bare": "bare-readline",
|
|
33
|
-
"default": "readline"
|
|
34
|
-
},
|
|
35
|
-
"url": {
|
|
36
|
-
"bare": "bare-url",
|
|
37
|
-
"default": "url"
|
|
38
|
-
},
|
|
39
|
-
"node:url": {
|
|
40
|
-
"bare": "bare-url",
|
|
41
|
-
"default": "node:url"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type GetModelInfoParams } from "../../schemas/index";
|
|
2
|
-
export declare function getModelInfo(params: GetModelInfoParams): Promise<{
|
|
3
|
-
name: string;
|
|
4
|
-
modelId: string;
|
|
5
|
-
expectedSize: number;
|
|
6
|
-
sha256Checksum: string;
|
|
7
|
-
addon: "llm" | "whisper" | "embeddings" | "nmt" | "parakeet" | "tts" | "ocr" | "vad" | "other";
|
|
8
|
-
isCached: boolean;
|
|
9
|
-
isLoaded: boolean;
|
|
10
|
-
cacheFiles: {
|
|
11
|
-
filename: string;
|
|
12
|
-
path: string;
|
|
13
|
-
expectedSize: number;
|
|
14
|
-
sha256Checksum: string;
|
|
15
|
-
isCached: boolean;
|
|
16
|
-
actualSize?: number | undefined;
|
|
17
|
-
cachedAt?: Date | undefined;
|
|
18
|
-
}[];
|
|
19
|
-
registryPath?: string | undefined;
|
|
20
|
-
registrySource?: string | undefined;
|
|
21
|
-
blobCoreKey?: string | undefined;
|
|
22
|
-
blobBlockOffset?: number | undefined;
|
|
23
|
-
blobBlockLength?: number | undefined;
|
|
24
|
-
blobByteOffset?: number | undefined;
|
|
25
|
-
engine?: string | undefined;
|
|
26
|
-
quantization?: string | undefined;
|
|
27
|
-
params?: string | undefined;
|
|
28
|
-
actualSize?: number | undefined;
|
|
29
|
-
cachedAt?: Date | undefined;
|
|
30
|
-
loadedInstances?: {
|
|
31
|
-
registryId: string;
|
|
32
|
-
loadedAt: Date;
|
|
33
|
-
config?: unknown;
|
|
34
|
-
}[] | undefined;
|
|
35
|
-
}>;
|
|
36
|
-
//# sourceMappingURL=get-model-info.d.ts.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import {} from "../../schemas/index.js";
|
|
2
|
-
import { send } from "../rpc/rpc-client.js";
|
|
3
|
-
import { InvalidResponseError } from "../../utils/errors-client.js";
|
|
4
|
-
export async function getModelInfo(params) {
|
|
5
|
-
const request = {
|
|
6
|
-
type: "getModelInfo",
|
|
7
|
-
name: params.name,
|
|
8
|
-
};
|
|
9
|
-
const response = await send(request);
|
|
10
|
-
if (response.type !== "getModelInfo") {
|
|
11
|
-
throw new InvalidResponseError("getModelInfo");
|
|
12
|
-
}
|
|
13
|
-
return response.modelInfo;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RPCOptions } from "../../schemas/index";
|
|
2
|
-
export interface InvokePluginOptions<TParams = unknown> {
|
|
3
|
-
modelId: string;
|
|
4
|
-
handler: string;
|
|
5
|
-
params: TParams;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Invoke a non-streaming plugin handler.
|
|
9
|
-
*/
|
|
10
|
-
export declare function invokePlugin<TResponse = unknown, TParams = unknown>(options: InvokePluginOptions<TParams>, rpcOptions?: RPCOptions): Promise<TResponse>;
|
|
11
|
-
/**
|
|
12
|
-
* Invoke a streaming plugin handler.
|
|
13
|
-
*/
|
|
14
|
-
export declare function invokePluginStream<TResponse = unknown, TParams = unknown>(options: InvokePluginOptions<TParams>, rpcOptions?: RPCOptions): AsyncGenerator<TResponse>;
|
|
15
|
-
//# sourceMappingURL=invoke-plugin.d.ts.map
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { send, stream } from "../rpc/rpc-client.js";
|
|
2
|
-
import { InvalidResponseError } from "../../utils/errors-client.js";
|
|
3
|
-
/**
|
|
4
|
-
* Invoke a non-streaming plugin handler.
|
|
5
|
-
*/
|
|
6
|
-
export async function invokePlugin(options, rpcOptions) {
|
|
7
|
-
const request = {
|
|
8
|
-
type: "pluginInvoke",
|
|
9
|
-
modelId: options.modelId,
|
|
10
|
-
handler: options.handler,
|
|
11
|
-
params: options.params,
|
|
12
|
-
};
|
|
13
|
-
const response = await send(request, rpcOptions);
|
|
14
|
-
if (response.type !== "pluginInvoke") {
|
|
15
|
-
throw new InvalidResponseError("pluginInvoke");
|
|
16
|
-
}
|
|
17
|
-
return response.result;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Invoke a streaming plugin handler.
|
|
21
|
-
*/
|
|
22
|
-
export async function* invokePluginStream(options, rpcOptions) {
|
|
23
|
-
const request = {
|
|
24
|
-
type: "pluginInvokeStream",
|
|
25
|
-
modelId: options.modelId,
|
|
26
|
-
handler: options.handler,
|
|
27
|
-
params: options.params,
|
|
28
|
-
};
|
|
29
|
-
for await (const chunk of stream(request, rpcOptions)) {
|
|
30
|
-
const response = chunk;
|
|
31
|
-
if (response.type !== "pluginInvokeStream") {
|
|
32
|
-
throw new InvalidResponseError("pluginInvokeStream");
|
|
33
|
-
}
|
|
34
|
-
if (!response.done) {
|
|
35
|
-
yield response.result;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
package/dist/client/api/ocr.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type OCRClientParams, type OCRTextBlock, type OCRStats } from "../../schemas/index";
|
|
2
|
-
/**
|
|
3
|
-
* Performs Optical Character Recognition (OCR) on an image to extract text.
|
|
4
|
-
*
|
|
5
|
-
* @param params - The OCR parameters
|
|
6
|
-
* @param params.modelId - The identifier of the loaded OCR model to use
|
|
7
|
-
* @param params.image - Image input as either a file path (string) or image buffer
|
|
8
|
-
* @param params.options - Optional OCR options (e.g., paragraph mode)
|
|
9
|
-
* @param params.stream - Whether to stream blocks as they're detected (true) or return all at once (false). Defaults to false
|
|
10
|
-
* @returns Object with blockStream generator, blocks promise, and stats promise
|
|
11
|
-
* @example
|
|
12
|
-
* ```typescript
|
|
13
|
-
* // Non-streaming mode (default) - get all blocks at once
|
|
14
|
-
* const { blocks } = ocr({ modelId, image: "/path/to/image.png" });
|
|
15
|
-
* for (const block of await blocks) {
|
|
16
|
-
* console.log(block.text, block.bbox, block.confidence);
|
|
17
|
-
* }
|
|
18
|
-
*
|
|
19
|
-
* // Streaming mode - process blocks as they arrive
|
|
20
|
-
* const { blockStream } = ocr({ modelId, image: imageBuffer, stream: true });
|
|
21
|
-
* for await (const blocks of blockStream) {
|
|
22
|
-
* console.log("Detected:", blocks);
|
|
23
|
-
* }
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare function ocr(params: OCRClientParams): {
|
|
27
|
-
blockStream: AsyncGenerator<OCRTextBlock[]>;
|
|
28
|
-
blocks: Promise<OCRTextBlock[]>;
|
|
29
|
-
stats: Promise<OCRStats | undefined>;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=ocr.d.ts.map
|
package/dist/client/api/ocr.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { ocrStreamResponseSchema, } from "../../schemas/index.js";
|
|
2
|
-
import { stream as streamRpc } from "../rpc/rpc-client.js";
|
|
3
|
-
/**
|
|
4
|
-
* Performs Optical Character Recognition (OCR) on an image to extract text.
|
|
5
|
-
*
|
|
6
|
-
* @param params - The OCR parameters
|
|
7
|
-
* @param params.modelId - The identifier of the loaded OCR model to use
|
|
8
|
-
* @param params.image - Image input as either a file path (string) or image buffer
|
|
9
|
-
* @param params.options - Optional OCR options (e.g., paragraph mode)
|
|
10
|
-
* @param params.stream - Whether to stream blocks as they're detected (true) or return all at once (false). Defaults to false
|
|
11
|
-
* @returns Object with blockStream generator, blocks promise, and stats promise
|
|
12
|
-
* @example
|
|
13
|
-
* ```typescript
|
|
14
|
-
* // Non-streaming mode (default) - get all blocks at once
|
|
15
|
-
* const { blocks } = ocr({ modelId, image: "/path/to/image.png" });
|
|
16
|
-
* for (const block of await blocks) {
|
|
17
|
-
* console.log(block.text, block.bbox, block.confidence);
|
|
18
|
-
* }
|
|
19
|
-
*
|
|
20
|
-
* // Streaming mode - process blocks as they arrive
|
|
21
|
-
* const { blockStream } = ocr({ modelId, image: imageBuffer, stream: true });
|
|
22
|
-
* for await (const blocks of blockStream) {
|
|
23
|
-
* console.log("Detected:", blocks);
|
|
24
|
-
* }
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
export function ocr(params) {
|
|
28
|
-
const request = {
|
|
29
|
-
type: "ocrStream",
|
|
30
|
-
modelId: params.modelId,
|
|
31
|
-
image: typeof params.image === "string"
|
|
32
|
-
? { type: "filePath", value: params.image }
|
|
33
|
-
: { type: "base64", value: params.image.toString("base64") },
|
|
34
|
-
...(params.options && { options: params.options }),
|
|
35
|
-
};
|
|
36
|
-
let ocrStats;
|
|
37
|
-
let statsResolver = () => { };
|
|
38
|
-
const statsPromise = new Promise((resolve) => {
|
|
39
|
-
statsResolver = resolve;
|
|
40
|
-
});
|
|
41
|
-
if (params.stream) {
|
|
42
|
-
const blockStream = (async function* () {
|
|
43
|
-
for await (const response of streamRpc(request)) {
|
|
44
|
-
if (response.type === "ocrStream") {
|
|
45
|
-
const streamResponse = ocrStreamResponseSchema.parse(response);
|
|
46
|
-
if (streamResponse.blocks && streamResponse.blocks.length > 0) {
|
|
47
|
-
yield streamResponse.blocks;
|
|
48
|
-
}
|
|
49
|
-
if (streamResponse.done) {
|
|
50
|
-
ocrStats = streamResponse.stats;
|
|
51
|
-
statsResolver(ocrStats);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
})();
|
|
56
|
-
return {
|
|
57
|
-
blockStream,
|
|
58
|
-
blocks: Promise.resolve([]),
|
|
59
|
-
stats: statsPromise,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
else {
|
|
63
|
-
const blockStream = (async function* () {
|
|
64
|
-
// Empty generator for non-streaming mode
|
|
65
|
-
})();
|
|
66
|
-
const blocksPromise = (async () => {
|
|
67
|
-
let allBlocks = [];
|
|
68
|
-
for await (const response of streamRpc(request)) {
|
|
69
|
-
if (response.type === "ocrStream") {
|
|
70
|
-
const streamResponse = ocrStreamResponseSchema.parse(response);
|
|
71
|
-
if (streamResponse.blocks) {
|
|
72
|
-
allBlocks = allBlocks.concat(streamResponse.blocks);
|
|
73
|
-
}
|
|
74
|
-
if (streamResponse.done) {
|
|
75
|
-
ocrStats = streamResponse.stats;
|
|
76
|
-
statsResolver(ocrStats);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return allBlocks;
|
|
81
|
-
})();
|
|
82
|
-
return {
|
|
83
|
-
blockStream,
|
|
84
|
-
blocks: blocksPromise,
|
|
85
|
-
stats: statsPromise,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ModelRegistryEntry, ModelRegistryEntryAddon } from "../../schemas/index";
|
|
2
|
-
export type { ModelRegistryEntry, ModelRegistryEntryAddon };
|
|
3
|
-
export interface ModelRegistrySearchParams {
|
|
4
|
-
filter?: string;
|
|
5
|
-
engine?: string;
|
|
6
|
-
quantization?: string;
|
|
7
|
-
modelType?: ModelRegistryEntryAddon;
|
|
8
|
-
addon?: ModelRegistryEntryAddon;
|
|
9
|
-
}
|
|
10
|
-
declare function modelRegistryList(): Promise<ModelRegistryEntry[]>;
|
|
11
|
-
declare function modelRegistrySearch(params?: ModelRegistrySearchParams): Promise<ModelRegistryEntry[]>;
|
|
12
|
-
declare function modelRegistryGetModel(registryPath: string, registrySource: string): Promise<ModelRegistryEntry>;
|
|
13
|
-
export { modelRegistryList, modelRegistrySearch, modelRegistryGetModel };
|
|
14
|
-
//# sourceMappingURL=registry.d.ts.map
|