@qvac/sdk 0.21.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/NOTICE +131 -62
  2. package/README.md +31 -326
  3. package/dist/examples/abot-world.js +1 -1
  4. package/dist/examples/advisory-model-fit.d.ts +0 -58
  5. package/dist/examples/advisory-model-fit.js +23 -150
  6. package/dist/examples/asr/moss-transcribe-filesystem.d.ts +2 -0
  7. package/dist/examples/asr/moss-transcribe-filesystem.js +84 -0
  8. package/dist/examples/asr/moss-transcribe-fit.d.ts +2 -0
  9. package/dist/examples/asr/moss-transcribe-fit.js +40 -0
  10. package/dist/examples/asr/nemotron-diarization-filesystem.d.ts +2 -0
  11. package/dist/examples/asr/nemotron-diarization-filesystem.js +64 -0
  12. package/dist/examples/asr/parakeet-ctc-filesystem.js +2 -2
  13. package/dist/examples/asr/parakeet-indic-conformer-filesystem.js +2 -2
  14. package/dist/examples/asr/parakeet-microphone-record.js +1 -1
  15. package/dist/examples/asr/parakeet-microphone-stream.js +1 -1
  16. package/dist/examples/asr/parakeet-nemotron-filesystem.js +3 -3
  17. package/dist/examples/asr/parakeet-sortformer-streaming.js +2 -2
  18. package/dist/examples/asr/parakeet-sortformer.js +1 -1
  19. package/dist/examples/asr/parakeet-tdt-filesystem-chunked.js +2 -2
  20. package/dist/examples/asr/parakeet-tdt-filesystem.js +2 -2
  21. package/dist/examples/asr/parakeet-transcribepsy-filesystem.d.ts +2 -0
  22. package/dist/examples/asr/parakeet-transcribepsy-filesystem.js +76 -0
  23. package/dist/examples/asr/parakeet-unified-coreml.js +2 -2
  24. package/dist/examples/asr/parakeet-unified-filesystem.js +2 -2
  25. package/dist/examples/asr/whispercpp-filesystem-streaming.js +1 -1
  26. package/dist/examples/asr/whispercpp-filesystem.js +1 -1
  27. package/dist/examples/asr/whispercpp-microphone-record.js +1 -1
  28. package/dist/examples/asr/whispercpp-prompt.js +1 -1
  29. package/dist/examples/assess-model-fit.js +3 -6
  30. package/dist/examples/audiogen/edit-music.js +2 -2
  31. package/dist/examples/audiogen/generate-cover.js +2 -2
  32. package/dist/examples/audiogen/generate-music-minimax.js +1 -1
  33. package/dist/examples/audiogen/generate-music.js +1 -1
  34. package/dist/examples/audiogen/understand-music.js +2 -2
  35. package/dist/examples/batch-completion.d.ts +1 -1
  36. package/dist/examples/batch-completion.js +1 -1
  37. package/dist/examples/bci/bci-filesystem-streaming.js +2 -2
  38. package/dist/examples/bci/bci-filesystem.js +2 -2
  39. package/dist/examples/concurrent-completion-collision.js +1 -1
  40. package/dist/examples/config-reload.js +1 -1
  41. package/dist/examples/decisions.d.ts +2 -0
  42. package/dist/examples/decisions.js +38 -0
  43. package/dist/examples/diffusion-esrgan-upscale.js +1 -1
  44. package/dist/examples/diffusion-flux2-klein-img2img.js +1 -1
  45. package/dist/examples/diffusion-img2img.js +1 -1
  46. package/dist/examples/diffusion-img2vid-ltx.js +8 -15
  47. package/dist/examples/diffusion-img2vid-minimax-h3.d.ts +2 -0
  48. package/dist/examples/diffusion-img2vid-minimax-h3.js +72 -0
  49. package/dist/examples/diffusion-img2vid.js +1 -1
  50. package/dist/examples/diffusion-qwen-image-21.d.ts +2 -0
  51. package/dist/examples/diffusion-qwen-image-21.js +104 -0
  52. package/dist/examples/diffusion-txt2vid-ltx.js +7 -14
  53. package/dist/examples/finetune/llamacpp-finetune.js +9 -4
  54. package/dist/examples/llamacpp-filesystem.js +1 -1
  55. package/dist/examples/llamacpp-multi-gpu.js +2 -2
  56. package/dist/examples/llamacpp-multimodal.js +3 -1
  57. package/dist/examples/llamacpp-structured-output.js +1 -1
  58. package/dist/examples/mcp-websearch.d.ts +2 -2
  59. package/dist/examples/mcp-websearch.js +4 -4
  60. package/dist/examples/model-fit-ui/server.d.ts +1 -1
  61. package/dist/examples/model-fit-ui/server.js +1 -1
  62. package/dist/examples/multi-job-completion.d.ts +1 -1
  63. package/dist/examples/multi-job-completion.js +1 -1
  64. package/dist/examples/ocr-fasttext.js +1 -1
  65. package/dist/examples/plugins.js +1 -1
  66. package/dist/examples/rerank.d.ts +2 -0
  67. package/dist/examples/rerank.js +33 -0
  68. package/dist/examples/tools/llamacpp-deferred-tools.js +5 -5
  69. package/dist/examples/tools/llamacpp-tools-auto-dialect.js +5 -4
  70. package/dist/examples/tools/llamacpp-tools-gemma4.js +4 -4
  71. package/dist/examples/tools/llamacpp-tools-qwen35.js +5 -4
  72. package/dist/examples/tts/llm-to-tts-streaming.d.ts +2 -2
  73. package/dist/examples/tts/llm-to-tts-streaming.js +2 -2
  74. package/dist/examples/tts/moss-sound-effect-controls.d.ts +2 -0
  75. package/dist/examples/tts/moss-sound-effect-controls.js +88 -0
  76. package/dist/examples/tts/moss-sound-effect.d.ts +2 -0
  77. package/dist/examples/tts/moss-sound-effect.js +86 -0
  78. package/dist/examples/tts/moss-speech-audio.d.ts +2 -0
  79. package/dist/examples/tts/moss-speech-audio.js +159 -0
  80. package/dist/examples/tts/moss-speech.d.ts +2 -0
  81. package/dist/examples/tts/moss-speech.js +70 -0
  82. package/dist/examples/vla-groot.js +2 -2
  83. package/dist/examples/vla-pi05.js +2 -2
  84. package/dist/examples/vla-smolvla.js +2 -2
  85. package/dist/examples/voice-assistant/voice-assistant.js +1 -1
  86. package/dist/scripts/contract/build-contract.d.ts +3 -1
  87. package/dist/scripts/contract/build-contract.js +40 -2
  88. package/dist/scripts/contract/build-model-type-maps.d.ts +6 -1
  89. package/dist/scripts/contract/build-model-type-maps.js +3 -2
  90. package/dist/scripts/contract/constants-registry.d.ts +6 -0
  91. package/dist/scripts/contract/constants-registry.js +4 -1
  92. package/dist/scripts/contract/method-shapes.d.ts +2 -0
  93. package/dist/scripts/contract/method-shapes.js +2 -0
  94. package/dist/scripts/export-contract.js +20 -7
  95. package/dist/scripts/run-unit-tests.js +10 -5
  96. package/dist/src/client/api/assess-model-fit.d.ts +5 -5
  97. package/dist/src/client/api/assess-model-fit.js +6 -7
  98. package/dist/src/client/api/audio-edit.d.ts +14 -2
  99. package/dist/src/client/api/audio-edit.js +16 -4
  100. package/dist/src/client/api/audio-gen-result.js +2 -2
  101. package/dist/src/client/api/audio-gen.d.ts +10 -2
  102. package/dist/src/client/api/audio-gen.js +12 -4
  103. package/dist/src/client/api/audio-understand.d.ts +1 -1
  104. package/dist/src/client/api/audio-understand.js +3 -3
  105. package/dist/src/client/api/batch-completion.js +3 -3
  106. package/dist/src/client/api/bci-transcribe.js +3 -3
  107. package/dist/src/client/api/cancel.js +1 -1
  108. package/dist/src/client/api/classify.js +1 -1
  109. package/dist/src/client/api/completion-stream.d.ts +2 -1
  110. package/dist/src/client/api/completion-stream.js +6 -4
  111. package/dist/src/client/api/decide.d.ts +31 -0
  112. package/dist/src/client/api/decide.js +29 -0
  113. package/dist/src/client/api/delete-cache.js +1 -1
  114. package/dist/src/client/api/diffusion.d.ts +18 -1
  115. package/dist/src/client/api/diffusion.js +19 -2
  116. package/dist/src/client/api/download-asset.js +3 -3
  117. package/dist/src/client/api/embed.js +2 -2
  118. package/dist/src/client/api/finetune.js +3 -3
  119. package/dist/src/client/api/get-loaded-model-info.js +1 -1
  120. package/dist/src/client/api/get-model-info.js +1 -1
  121. package/dist/src/client/api/get-system-resources.js +1 -1
  122. package/dist/src/client/api/heartbeat.js +1 -1
  123. package/dist/src/client/api/index.d.ts +5 -3
  124. package/dist/src/client/api/index.js +5 -3
  125. package/dist/src/client/api/invoke-plugin.js +1 -1
  126. package/dist/src/client/api/load-model.d.ts +1 -0
  127. package/dist/src/client/api/load-model.js +4 -4
  128. package/dist/src/client/api/logging-stream.d.ts +11 -2
  129. package/dist/src/client/api/logging-stream.js +12 -3
  130. package/dist/src/client/api/ocr.js +1 -1
  131. package/dist/src/client/api/rag.js +2 -2
  132. package/dist/src/client/api/registry.d.ts +2 -1
  133. package/dist/src/client/api/registry.js +6 -5
  134. package/dist/src/client/api/rerank.d.ts +22 -0
  135. package/dist/src/client/api/rerank.js +39 -0
  136. package/dist/src/client/api/resume.js +1 -1
  137. package/dist/src/client/api/rpc-server.js +2 -2
  138. package/dist/src/client/api/state.js +1 -1
  139. package/dist/src/client/api/subscribe-logs.js +3 -2
  140. package/dist/src/client/api/suspend.js +1 -1
  141. package/dist/src/client/api/text-to-speech.d.ts +1 -0
  142. package/dist/src/client/api/text-to-speech.js +18 -25
  143. package/dist/src/client/api/transcribe.d.ts +1 -1
  144. package/dist/src/client/api/transcribe.js +7 -4
  145. package/dist/src/client/api/translate.js +2 -2
  146. package/dist/src/client/api/unload-model.js +2 -2
  147. package/dist/src/client/api/upscale.js +1 -1
  148. package/dist/src/client/api/vector-index.d.ts +1 -1
  149. package/dist/src/client/api/vector-index.js +1 -1
  150. package/dist/src/client/api/video-request.d.ts +5 -5
  151. package/dist/src/client/api/video.d.ts +23 -3
  152. package/dist/src/client/api/video.js +26 -6
  153. package/dist/src/client/api/world-result.js +2 -2
  154. package/dist/src/client/api/world.d.ts +1 -1
  155. package/dist/src/client/api/world.js +2 -2
  156. package/dist/src/client/logging-stream-registry.js +9 -6
  157. package/dist/src/client/plugins-factory.d.ts +1 -1
  158. package/dist/src/client/plugins-factory.js +1 -1
  159. package/dist/src/client/rpc/expo-rpc-client.js +3 -3
  160. package/dist/src/client/rpc/ipc-socket-path.d.ts +11 -0
  161. package/dist/src/client/rpc/ipc-socket-path.js +30 -0
  162. package/dist/src/client/rpc/node-rpc-client.js +14 -25
  163. package/dist/src/client/rpc/rpc-client.d.ts +3 -2
  164. package/dist/src/client/rpc/rpc-client.js +46 -12
  165. package/dist/src/client/rpc/rpc-error.js +4 -1
  166. package/dist/src/commands/bundle/bare-pack.d.ts +8 -0
  167. package/dist/src/commands/bundle/bare-pack.js +28 -5
  168. package/dist/src/commands/bundle/constants.js +3 -0
  169. package/dist/src/commands/bundle/entry-gen.js +1 -1
  170. package/dist/src/commands/bundle/index.d.ts +8 -7
  171. package/dist/src/commands/bundle/index.js +135 -52
  172. package/dist/src/commands/bundle/manifest.d.ts +2 -0
  173. package/dist/src/commands/bundle/manifest.js +3 -2
  174. package/dist/src/commands/bundle/plugins.js +1 -1
  175. package/dist/src/commands/host-prebuilds/index.d.ts +18 -10
  176. package/dist/src/commands/host-prebuilds/index.js +39 -20
  177. package/dist/src/commands/index.d.ts +13 -13
  178. package/dist/src/commands/index.js +8 -8
  179. package/dist/src/commands/verify/abi.d.ts +1 -1
  180. package/dist/src/commands/verify/abi.js +1 -1
  181. package/dist/src/commands/verify/addon-source.d.ts +12 -0
  182. package/dist/src/commands/verify/addon-source.js +36 -3
  183. package/dist/src/commands/verify/bare-kit-runtime.d.ts +1 -1
  184. package/dist/src/commands/verify/bare-kit-runtime.js +1 -1
  185. package/dist/src/commands/verify/bare-kit-runtimes.js +2 -1
  186. package/dist/src/commands/verify/bundle-source.d.ts +1 -1
  187. package/dist/src/commands/verify/bundle-source.js +3 -3
  188. package/dist/src/commands/verify/engines-advice.d.ts +4 -4
  189. package/dist/src/commands/verify/engines-advice.js +4 -4
  190. package/dist/src/commands/verify/index.d.ts +5 -5
  191. package/dist/src/commands/verify/index.js +7 -7
  192. package/dist/src/commands/verify/node-modules-source.d.ts +1 -1
  193. package/dist/src/commands/verify/node-modules-source.js +11 -2
  194. package/dist/src/{expo/plugins/patches/qvac-platform-addons.d.ts → commands/verify/platform-addons.d.ts} +6 -10
  195. package/dist/src/{expo/plugins/patches/qvac-platform-addons.js → commands/verify/platform-addons.js} +2 -45
  196. package/dist/src/commands/verify/prebuilds.d.ts +8 -11
  197. package/dist/src/commands/verify/prebuilds.js +44 -35
  198. package/dist/src/commands/verify/resource-collectors.js +2 -2
  199. package/dist/src/expo/plugins/link-addons.d.ts +18 -0
  200. package/dist/src/expo/plugins/link-addons.js +65 -0
  201. package/dist/src/expo/plugins/withAndroidNdkVersion.js +16 -10
  202. package/dist/src/expo/plugins/withDeviceInfo.js +19 -5
  203. package/dist/src/expo/plugins/withMobileBundle.d.ts +13 -23
  204. package/dist/src/expo/plugins/withMobileBundle.js +27 -117
  205. package/dist/src/index.d.ts +4 -4
  206. package/dist/src/index.js +3 -3
  207. package/dist/src/logging/addon.d.ts +1 -1
  208. package/dist/src/pear/pre.js +4 -0
  209. package/dist/src/plugin-ids.d.ts +4 -1
  210. package/dist/src/plugin-ids.js +6 -0
  211. package/dist/src/schemas/public.d.ts +2 -1
  212. package/dist/src/schemas/public.js +2 -1
  213. package/dist/src/schemas/sdk-errors-client.d.ts +3 -0
  214. package/dist/src/schemas/sdk-errors-client.js +16 -0
  215. package/dist/src/schemas/sdk-errors-server.d.ts +2 -0
  216. package/dist/src/schemas/sdk-errors-server.js +11 -1
  217. package/dist/src/server/rpc/rpc-utils.d.ts +5 -0
  218. package/dist/src/server/rpc/rpc-utils.js +7 -0
  219. package/dist/src/server/utils/qvac-paths.js +1 -1
  220. package/dist/src/server/utils/worker-lock.js +1 -1
  221. package/dist/src/utils/aggregate-events.d.ts +1 -1
  222. package/dist/src/utils/aggregate-events.js +2 -2
  223. package/dist/src/utils/errors-client.d.ts +10 -0
  224. package/dist/src/utils/errors-client.js +18 -0
  225. package/dist/src/utils/errors-server.d.ts +6 -0
  226. package/dist/src/utils/errors-server.js +12 -0
  227. package/dist/src/utils/mcp-adapter.d.ts +1 -1
  228. package/dist/src/utils/mcp-adapter.js +13 -9
  229. package/dist/src/utils/tool-helpers.d.ts +1 -1
  230. package/dist/src/utils/tool-helpers.js +21 -53
  231. package/dist/src/worker/create-server.d.ts +1 -0
  232. package/dist/src/worker/create-server.js +5 -0
  233. package/dist/src/worker/handle-request.js +4 -2
  234. package/dist/src/worker/handler-utils.js +1 -1
  235. package/dist/src/worker/index.js +7 -1
  236. package/dist/src/worker/lifecycle.js +10 -2
  237. package/dist/src/worker/plugins/llamacpp-decision.d.ts +2 -0
  238. package/dist/src/worker/plugins/llamacpp-decision.js +1 -0
  239. package/dist/src/worker/plugins/llamacpp-rerank.d.ts +2 -0
  240. package/dist/src/worker/plugins/llamacpp-rerank.js +1 -0
  241. package/dist/src/worker/plugins/moss-transcribe.d.ts +2 -0
  242. package/dist/src/worker/plugins/moss-transcribe.js +1 -0
  243. package/package.json +63 -53
  244. package/src/electron-forge/index.cjs +12 -71
  245. package/dist/scripts/link-workspace-inference.d.ts +0 -2
  246. package/dist/scripts/link-workspace-inference.js +0 -31
  247. package/src/expo/plugins/patches/android-link.mjs +0 -67
  248. package/src/expo/plugins/patches/ios-link.mjs +0 -67
  249. package/src/expo/plugins/patches/qvac-platform-addons.ts +0 -124
@@ -1,12 +1,13 @@
1
1
  /**
2
2
  * Tool-calling example with automatic dialect detection.
3
3
  *
4
- * The SDK infers the tool-call format from the model name/path. It supports
5
- * model families such as Qwen3.5/3.6, Gemma4, GPT-OSS, DeepSeek V3.2/V4, and
6
- * LFM without requiring a toolDialect override.
4
+ * The SDK infers the tool-call format from the model name or file name, and
5
+ * from the GGUF architecture when the name matches no known pattern. It
6
+ * supports model families such as Qwen3.5/3.6/3.8, Gemma4, GPT-OSS,
7
+ * DeepSeek V3.2/V4, and LFM without requiring a toolDialect override.
7
8
  *
8
9
  * Usage:
9
- * bun run bare:example dist/examples/tools/llamacpp-tools-auto-dialect.js <model-src>
10
+ * node dist/examples/tools/llamacpp-tools-auto-dialect.js <model-src>
10
11
  */
11
12
  import { completion, loadModel, unloadModel } from '@qvac/sdk';
12
13
  import { tools, mockExecute } from './shared.js';
@@ -8,12 +8,12 @@
8
8
  * frames, which are stripped from contentDelta and forwarded as thinkingDelta
9
9
  * when captureThinking is true.
10
10
  *
11
- * The dialect is auto-detected from the model name/path when the file name
12
- * contains "gemma4" or "gemma-4". Pass toolDialect: "gemma4" explicitly to
13
- * completion() if auto-detection does not pick it up for a given file name.
11
+ * The dialect is auto-detected when the model name or file name contains
12
+ * "gemma4" or "gemma-4", or when the GGUF architecture is `gemma4`. Pass
13
+ * toolDialect: "gemma4" explicitly to completion() if detection does not pick it up.
14
14
  *
15
15
  * Usage:
16
- * bun run bare:example dist/examples/tools/llamacpp-tools-gemma4.js <model-url>
16
+ * node dist/examples/tools/llamacpp-tools-gemma4.js <model-url>
17
17
  */
18
18
  import { completion, loadModel, unloadModel, GEMMA4_2B_MULTIMODAL_Q4_K_M } from '@qvac/sdk';
19
19
  import { tools, mockExecute } from './shared.js';
@@ -4,12 +4,13 @@
4
4
  * Qwen3.5 emits tool calls in a Pythonic-XML format:
5
5
  * <tool_call><function=NAME><parameter=KEY>VALUE</parameter></function></tool_call>
6
6
  *
7
- * The dialect is auto-detected from the model name/path when the model file
8
- * contains "qwen3.5", "qwen3-5", "qwen3.6", or "qwen3-6". Pass
9
- * toolDialect: "qwen35" explicitly if auto-detection does not pick it up.
7
+ * The dialect is auto-detected when the model name or file name contains
8
+ * "qwen3.5", "qwen3-5", "qwen3.6", or "qwen3-6", or when the GGUF architecture is
9
+ * `qwen35` or `qwen35moe`. Pass toolDialect: "qwen35" explicitly if detection
10
+ * does not pick it up.
10
11
  *
11
12
  * Usage:
12
- * bun run bare:example dist/examples/tools/llamacpp-tools-qwen35.js <model-url>
13
+ * node dist/examples/tools/llamacpp-tools-qwen35.js <model-url>
13
14
  */
14
15
  import { completion, loadModel, unloadModel, QWEN3_5_0_8B_MULTIMODAL_Q8_0 } from '@qvac/sdk';
15
16
  import { tools, mockExecute } from './shared.js';
@@ -6,11 +6,11 @@
6
6
  * Each synthesized phrase is played as soon as PCM arrives (`playPcmInt16Chunk`). A combined WAV
7
7
  * is written at the end for inspection.
8
8
  *
9
- * Prerequisites: Bun, QVAC worker, registry access, macOS `afplay` / Linux `aplay` (or Windows
9
+ * Prerequisites: Node.js, QVAC worker, registry access, macOS `afplay` / Linux `aplay` (or Windows
10
10
  * PowerShell player) for chunk playback.
11
11
  *
12
12
  * Usage:
13
- * bun run examples/tts/llm-to-tts-streaming.ts
13
+ * npx tsx examples/tts/llm-to-tts-streaming.ts
14
14
  */
15
15
  export {};
16
16
  //# sourceMappingURL=llm-to-tts-streaming.d.ts.map
@@ -6,11 +6,11 @@
6
6
  * Each synthesized phrase is played as soon as PCM arrives (`playPcmInt16Chunk`). A combined WAV
7
7
  * is written at the end for inspection.
8
8
  *
9
- * Prerequisites: Bun, QVAC worker, registry access, macOS `afplay` / Linux `aplay` (or Windows
9
+ * Prerequisites: Node.js, QVAC worker, registry access, macOS `afplay` / Linux `aplay` (or Windows
10
10
  * PowerShell player) for chunk playback.
11
11
  *
12
12
  * Usage:
13
- * bun run examples/tts/llm-to-tts-streaming.ts
13
+ * npx tsx examples/tts/llm-to-tts-streaming.ts
14
14
  */
15
15
  import { completion, loadModel, textToSpeechStream, unloadModel, LLAMA_3_2_1B_INST_Q4_0, TTS_MULTILINGUAL_SUPERTONIC3_Q8_0 } from '@qvac/sdk';
16
16
  import { createWav, playPcmInt16Chunk } from './utils.js';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moss-sound-effect-controls.d.ts.map
@@ -0,0 +1,88 @@
1
+ import { writeFileSync } from 'node:fs';
2
+ import { loadModel, textToSpeech, unloadModel, close, AUDIOGEN_MOSS_SFX_V2_Q8_0 } from '@qvac/sdk';
3
+ // Desktop MOSS-SoundEffect-v2, 48 kHz mono output. A GPU is recommended.
4
+ // Run from packages/sdk: node --import tsx examples/tts/moss-sound-effect-controls.ts
5
+ // Optional: QVAC_MOSS_SFX_MODEL=/absolute/path/moss-sfx-v2-q8_0.gguf
6
+ // Use the catalog source URL: its full descriptor selects the audiogen plugin.
7
+ // Each clip denoises a 30-second latent, regardless of its requested output duration.
8
+ function saveWav(samples, sampleRate, filename) {
9
+ if (samples.length === 0 || samples.some((sample) => !Number.isFinite(sample))) {
10
+ throw new Error('The model returned no usable audio.');
11
+ }
12
+ const wav = Buffer.alloc(44 + samples.length * 2);
13
+ wav.write('RIFF', 0);
14
+ wav.writeUInt32LE(wav.length - 8, 4);
15
+ wav.write('WAVEfmt ', 8);
16
+ wav.writeUInt32LE(16, 16);
17
+ wav.writeUInt16LE(1, 20);
18
+ wav.writeUInt16LE(1, 22);
19
+ wav.writeUInt32LE(sampleRate, 24);
20
+ wav.writeUInt32LE(sampleRate * 2, 28);
21
+ wav.writeUInt16LE(2, 32);
22
+ wav.writeUInt16LE(16, 34);
23
+ wav.write('data', 36);
24
+ wav.writeUInt32LE(samples.length * 2, 40);
25
+ for (let i = 0; i < samples.length; i++) {
26
+ wav.writeInt16LE(Math.max(-32768, Math.min(32767, Math.round(samples[i]))), 44 + i * 2);
27
+ }
28
+ writeFileSync(filename, wav);
29
+ console.error(`▸ Saved ${filename}: ${sampleRate} Hz, ${(samples.length / sampleRate).toFixed(2)} seconds`);
30
+ }
31
+ let lastPercentage = -1;
32
+ function progress(p) {
33
+ const percentage = Math.floor(p.percentage);
34
+ if (percentage === lastPercentage)
35
+ return;
36
+ lastPercentage = percentage;
37
+ const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${(p.downloaded / 1e6).toFixed(1)}/${(p.total / 1e6).toFixed(1)} MB)`;
38
+ process.stderr.write(process.stderr.isTTY ? `\r${line}` : `${line}\n`);
39
+ if (p.percentage >= 100)
40
+ process.stderr.write('\n');
41
+ }
42
+ async function main() {
43
+ const modelId = await loadModel({
44
+ modelSrc: process.env['QVAC_MOSS_SFX_MODEL'] ?? AUDIOGEN_MOSS_SFX_V2_Q8_0.src,
45
+ modelType: 'tts-ggml',
46
+ modelConfig: { ttsEngine: 'moss-sfx', useGPU: true, seed: 42 },
47
+ onProgress: progress
48
+ });
49
+ try {
50
+ console.error('▸ Generating a sound effect...');
51
+ const result = textToSpeech({
52
+ modelId,
53
+ text: 'A dog barking twice in a quiet room.',
54
+ stream: false,
55
+ seconds: 3,
56
+ negativePrompt: 'Speech, music, background voices.',
57
+ steps: 20,
58
+ guidance: 4,
59
+ shift: 5
60
+ });
61
+ const samples = await result.buffer;
62
+ if (!(await result.done))
63
+ throw new Error('Sound-effect generation did not complete.');
64
+ const sampleRate = await result.sampleRate;
65
+ if (sampleRate !== 48000)
66
+ throw new Error(`Unexpected sound-effect sample rate: ${sampleRate}`);
67
+ saveWav(samples, sampleRate, 'moss-sound-effect-controls-output.wav');
68
+ }
69
+ finally {
70
+ await unloadModel({ modelId });
71
+ }
72
+ }
73
+ try {
74
+ await main();
75
+ }
76
+ catch (error) {
77
+ console.error('✖', error);
78
+ process.exitCode = 1;
79
+ }
80
+ finally {
81
+ try {
82
+ await close();
83
+ }
84
+ catch (error) {
85
+ console.error('✖ Cleanup failed:', error);
86
+ process.exitCode = 1;
87
+ }
88
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moss-sound-effect.d.ts.map
@@ -0,0 +1,86 @@
1
+ import { writeFileSync } from 'node:fs';
2
+ import { loadModel, textToSpeech, unloadModel, close, AUDIOGEN_MOSS_SFX_V2_Q8_0 } from '@qvac/sdk';
3
+ // Desktop MOSS-SoundEffect-v2, 48 kHz mono output. A GPU is recommended.
4
+ // Run from packages/sdk: node --import tsx examples/tts/moss-sound-effect.ts
5
+ // Optional: QVAC_MOSS_SFX_MODEL=/absolute/path/moss-sfx-v2-q8_0.gguf
6
+ // Use the catalog source URL: its full descriptor selects the audiogen plugin.
7
+ // Each clip denoises a 30-second latent, regardless of its requested output duration.
8
+ // Use 20 steps for a practical demo; omitting steps uses the slower baked default (100).
9
+ function saveWav(samples, sampleRate, filename) {
10
+ if (samples.length === 0 || samples.some((sample) => !Number.isFinite(sample))) {
11
+ throw new Error('The model returned no usable audio.');
12
+ }
13
+ const wav = Buffer.alloc(44 + samples.length * 2);
14
+ wav.write('RIFF', 0);
15
+ wav.writeUInt32LE(wav.length - 8, 4);
16
+ wav.write('WAVEfmt ', 8);
17
+ wav.writeUInt32LE(16, 16);
18
+ wav.writeUInt16LE(1, 20);
19
+ wav.writeUInt16LE(1, 22);
20
+ wav.writeUInt32LE(sampleRate, 24);
21
+ wav.writeUInt32LE(sampleRate * 2, 28);
22
+ wav.writeUInt16LE(2, 32);
23
+ wav.writeUInt16LE(16, 34);
24
+ wav.write('data', 36);
25
+ wav.writeUInt32LE(samples.length * 2, 40);
26
+ for (let i = 0; i < samples.length; i++) {
27
+ wav.writeInt16LE(Math.max(-32768, Math.min(32767, Math.round(samples[i]))), 44 + i * 2);
28
+ }
29
+ writeFileSync(filename, wav);
30
+ console.error(`▸ Saved ${filename}: ${sampleRate} Hz, ${(samples.length / sampleRate).toFixed(2)} seconds`);
31
+ }
32
+ let lastPercentage = -1;
33
+ function progress(p) {
34
+ const percentage = Math.floor(p.percentage);
35
+ if (percentage === lastPercentage)
36
+ return;
37
+ lastPercentage = percentage;
38
+ const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${(p.downloaded / 1e6).toFixed(1)}/${(p.total / 1e6).toFixed(1)} MB)`;
39
+ process.stderr.write(process.stderr.isTTY ? `\r${line}` : `${line}\n`);
40
+ if (p.percentage >= 100)
41
+ process.stderr.write('\n');
42
+ }
43
+ async function main() {
44
+ const modelId = await loadModel({
45
+ modelSrc: process.env['QVAC_MOSS_SFX_MODEL'] ?? AUDIOGEN_MOSS_SFX_V2_Q8_0.src,
46
+ modelType: 'tts-ggml',
47
+ modelConfig: { ttsEngine: 'moss-sfx', useGPU: true, seed: 42 },
48
+ onProgress: progress
49
+ });
50
+ try {
51
+ console.error('▸ Generating a sound effect...');
52
+ const result = textToSpeech({
53
+ modelId,
54
+ text: 'Heavy rain falling on a tin roof.',
55
+ stream: false,
56
+ seconds: 2,
57
+ steps: 20
58
+ });
59
+ const samples = await result.buffer;
60
+ if (!(await result.done))
61
+ throw new Error('Sound-effect generation did not complete.');
62
+ const sampleRate = await result.sampleRate;
63
+ if (sampleRate !== 48000)
64
+ throw new Error(`Unexpected sound-effect sample rate: ${sampleRate}`);
65
+ saveWav(samples, sampleRate, 'moss-sound-effect-output.wav');
66
+ }
67
+ finally {
68
+ await unloadModel({ modelId });
69
+ }
70
+ }
71
+ try {
72
+ await main();
73
+ }
74
+ catch (error) {
75
+ console.error('✖', error);
76
+ process.exitCode = 1;
77
+ }
78
+ finally {
79
+ try {
80
+ await close();
81
+ }
82
+ catch (error) {
83
+ console.error('✖ Cleanup failed:', error);
84
+ process.exitCode = 1;
85
+ }
86
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moss-speech-audio.d.ts.map
@@ -0,0 +1,159 @@
1
+ import { readFileSync, writeFileSync } from 'node:fs';
2
+ import { loadModel, textToSpeech, unloadModel, close, TTS_MOSS_SPEECH_Q8_0, TTS_CODEC_MOSS_SPEECH_F16 } from '@qvac/sdk';
3
+ // Desktop MOSS-Speech: 9B language model + codec, 24 kHz spoken reply and text.
4
+ // Run from packages/sdk: node --import tsx examples/tts/moss-speech-audio.ts question.wav
5
+ // Use a GPU with enough memory. Registry sources download automatically.
6
+ // Optional local paths: QVAC_MOSS_SPEECH_MODEL and QVAC_MOSS_SPEECH_CODEC.
7
+ // Both engines run a batch job; stream: false collects the complete reply.
8
+ function saveWav(samples, sampleRate, filename) {
9
+ if (samples.length === 0 || samples.some((sample) => !Number.isFinite(sample))) {
10
+ throw new Error('The model returned no usable audio.');
11
+ }
12
+ const wav = Buffer.alloc(44 + samples.length * 2);
13
+ wav.write('RIFF', 0);
14
+ wav.writeUInt32LE(wav.length - 8, 4);
15
+ wav.write('WAVEfmt ', 8);
16
+ wav.writeUInt32LE(16, 16);
17
+ wav.writeUInt16LE(1, 20);
18
+ wav.writeUInt16LE(1, 22);
19
+ wav.writeUInt32LE(sampleRate, 24);
20
+ wav.writeUInt32LE(sampleRate * 2, 28);
21
+ wav.writeUInt16LE(2, 32);
22
+ wav.writeUInt16LE(16, 34);
23
+ wav.write('data', 36);
24
+ wav.writeUInt32LE(samples.length * 2, 40);
25
+ for (let i = 0; i < samples.length; i++) {
26
+ wav.writeInt16LE(Math.max(-32768, Math.min(32767, Math.round(samples[i]))), 44 + i * 2);
27
+ }
28
+ writeFileSync(filename, wav);
29
+ console.error(`▸ Saved ${filename}: ${sampleRate} Hz, ${(samples.length / sampleRate).toFixed(2)} seconds`);
30
+ }
31
+ let lastPercentage = -1;
32
+ function progress(p) {
33
+ const percentage = Math.floor(p.percentage);
34
+ if (percentage === lastPercentage)
35
+ return;
36
+ lastPercentage = percentage;
37
+ const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${(p.downloaded / 1e6).toFixed(1)}/${(p.total / 1e6).toFixed(1)} MB)`;
38
+ process.stderr.write(process.stderr.isTTY ? `\r${line}` : `${line}\n`);
39
+ if (p.percentage >= 100)
40
+ process.stderr.write('\n');
41
+ }
42
+ // Read standard mono/stereo PCM16 or float32 WAV without an audio-library dependency.
43
+ function readQuestion(filename) {
44
+ const wav = readFileSync(filename);
45
+ if (wav.length < 12 ||
46
+ wav.toString('ascii', 0, 4) !== 'RIFF' ||
47
+ wav.toString('ascii', 8, 12) !== 'WAVE') {
48
+ throw new Error('Question must be a RIFF WAV file.');
49
+ }
50
+ let format = 0;
51
+ let channels = 0;
52
+ let sampleRate = 0;
53
+ let bits = 0;
54
+ let data;
55
+ for (let offset = 12; offset + 8 <= wav.length;) {
56
+ const size = wav.readUInt32LE(offset + 4);
57
+ const start = offset + 8;
58
+ if (start + size > wav.length)
59
+ throw new Error('Truncated WAV chunk.');
60
+ const id = wav.toString('ascii', offset, offset + 4);
61
+ if (id === 'fmt ') {
62
+ if (size < 16)
63
+ throw new Error('Invalid WAV format chunk.');
64
+ format = wav.readUInt16LE(start);
65
+ channels = wav.readUInt16LE(start + 2);
66
+ sampleRate = wav.readUInt32LE(start + 4);
67
+ bits = wav.readUInt16LE(start + 14);
68
+ }
69
+ else if (id === 'data')
70
+ data = wav.subarray(start, start + size);
71
+ offset = start + size + (size % 2);
72
+ }
73
+ if (!data ||
74
+ ![1, 2].includes(channels) ||
75
+ !((format === 1 && bits === 16) || (format === 3 && bits === 32))) {
76
+ throw new Error('Use a mono/stereo PCM16 or float32 WAV question.');
77
+ }
78
+ if (sampleRate < 8000 || sampleRate > 192000) {
79
+ throw new Error('WAV sample rate must be 8000–192000 Hz.');
80
+ }
81
+ const bytesPerSample = bits / 8;
82
+ const frameBytes = bytesPerSample * channels;
83
+ if (data.length % frameBytes !== 0)
84
+ throw new Error('Incomplete WAV audio frame.');
85
+ const audio = [];
86
+ for (let offset = 0; offset < data.length; offset += frameBytes) {
87
+ let sample = 0;
88
+ for (let channel = 0; channel < channels; channel++) {
89
+ const at = offset + channel * bytesPerSample;
90
+ sample += format === 1 ? data.readInt16LE(at) / 32768 : data.readFloatLE(at);
91
+ }
92
+ audio.push(sample / channels);
93
+ }
94
+ if (audio.length === 0 || audio.length > sampleRate * 60) {
95
+ throw new Error('Use a non-empty question of at most 60 seconds.');
96
+ }
97
+ return { audio, sampleRate };
98
+ }
99
+ async function main() {
100
+ const filename = process.argv[2];
101
+ if (!filename) {
102
+ throw new Error('Usage: node --import tsx examples/tts/moss-speech-audio.ts question.wav');
103
+ }
104
+ const question = readQuestion(filename);
105
+ const modelId = await loadModel({
106
+ modelSrc: process.env['QVAC_MOSS_SPEECH_MODEL'] ?? TTS_MOSS_SPEECH_Q8_0,
107
+ modelType: 'tts-ggml',
108
+ modelConfig: {
109
+ ttsEngine: 'moss-speech',
110
+ mossSpeechCodecModelSrc: process.env['QVAC_MOSS_SPEECH_CODEC'] ?? TTS_CODEC_MOSS_SPEECH_F16,
111
+ useGPU: true,
112
+ seed: 42
113
+ },
114
+ onProgress: progress
115
+ });
116
+ try {
117
+ console.error('▸ Generating a spoken reply...');
118
+ const result = textToSpeech({
119
+ modelId,
120
+ ...question,
121
+ stream: false,
122
+ greedy: true,
123
+ maxNewTokens: 128,
124
+ maxReplySeconds: 5,
125
+ messages: [{ role: 'user', text: 'Please answer the next spoken turn briefly.' }]
126
+ });
127
+ const samples = await result.buffer;
128
+ const reply = await result.text;
129
+ if (!(await result.done))
130
+ throw new Error('Speech generation did not complete.');
131
+ if (reply?.trim())
132
+ console.log(reply);
133
+ else
134
+ console.error('▸ The model returned an audio-only reply.');
135
+ const sampleRate = await result.sampleRate;
136
+ if (sampleRate !== 24000)
137
+ throw new Error(`Unexpected reply sample rate: ${sampleRate}`);
138
+ saveWav(samples, sampleRate, 'moss-speech-audio-output.wav');
139
+ }
140
+ finally {
141
+ await unloadModel({ modelId });
142
+ }
143
+ }
144
+ try {
145
+ await main();
146
+ }
147
+ catch (error) {
148
+ console.error('✖', error);
149
+ process.exitCode = 1;
150
+ }
151
+ finally {
152
+ try {
153
+ await close();
154
+ }
155
+ catch (error) {
156
+ console.error('✖ Cleanup failed:', error);
157
+ process.exitCode = 1;
158
+ }
159
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=moss-speech.d.ts.map
@@ -0,0 +1,70 @@
1
+ import { loadModel, textToSpeech, unloadModel, close, TTS_MOSS_SPEECH_Q8_0, TTS_CODEC_MOSS_SPEECH_F16 } from '@qvac/sdk';
2
+ // Desktop MOSS-Speech: answer a typed question with textReply: true.
3
+ // This mode skips audio decoding and returns text with an empty PCM buffer.
4
+ // Run from packages/sdk: node --import tsx examples/tts/moss-speech.ts
5
+ // Use a GPU with enough memory. Registry sources download automatically.
6
+ // Optional local paths: QVAC_MOSS_SPEECH_MODEL and QVAC_MOSS_SPEECH_CODEC.
7
+ // Both engines run a batch job; stream: false collects the complete reply.
8
+ let lastPercentage = -1;
9
+ function progress(p) {
10
+ const percentage = Math.floor(p.percentage);
11
+ if (percentage === lastPercentage)
12
+ return;
13
+ lastPercentage = percentage;
14
+ const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${(p.downloaded / 1e6).toFixed(1)}/${(p.total / 1e6).toFixed(1)} MB)`;
15
+ process.stderr.write(process.stderr.isTTY ? `\r${line}` : `${line}\n`);
16
+ if (p.percentage >= 100)
17
+ process.stderr.write('\n');
18
+ }
19
+ async function main() {
20
+ const modelId = await loadModel({
21
+ modelSrc: process.env['QVAC_MOSS_SPEECH_MODEL'] ?? TTS_MOSS_SPEECH_Q8_0,
22
+ modelType: 'tts-ggml',
23
+ modelConfig: {
24
+ ttsEngine: 'moss-speech',
25
+ mossSpeechCodecModelSrc: process.env['QVAC_MOSS_SPEECH_CODEC'] ?? TTS_CODEC_MOSS_SPEECH_F16,
26
+ useGPU: true,
27
+ seed: 42
28
+ },
29
+ onProgress: progress
30
+ });
31
+ try {
32
+ console.error('▸ Generating a text-only reply...');
33
+ const result = textToSpeech({
34
+ modelId,
35
+ text: 'What is two plus two? Answer in one short sentence.',
36
+ stream: false,
37
+ textReply: true,
38
+ greedy: true,
39
+ maxNewTokens: 128,
40
+ maxReplySeconds: 5,
41
+ systemPrompt: 'You are a helpful assistant. Give short, direct answers.'
42
+ });
43
+ const samples = await result.buffer;
44
+ const reply = await result.text;
45
+ if (!(await result.done) || !reply?.trim())
46
+ throw new Error('The model returned no reply text.');
47
+ console.log(reply);
48
+ if (samples.length !== 0)
49
+ throw new Error('A text-only reply must not contain PCM audio.');
50
+ }
51
+ finally {
52
+ await unloadModel({ modelId });
53
+ }
54
+ }
55
+ try {
56
+ await main();
57
+ }
58
+ catch (error) {
59
+ console.error('✖', error);
60
+ process.exitCode = 1;
61
+ }
62
+ finally {
63
+ try {
64
+ await close();
65
+ }
66
+ catch (error) {
67
+ console.error('✖ Cleanup failed:', error);
68
+ process.exitCode = 1;
69
+ }
70
+ }
@@ -22,7 +22,7 @@
22
22
  * image tokens; we lay it out by hand for the smoke.
23
23
  *
24
24
  * Usage:
25
- * bun examples/vla-groot.ts [path-to-groot.gguf]
25
+ * npx tsx examples/vla-groot.ts [path-to-groot.gguf]
26
26
  *
27
27
  * By default the example pulls the registry-baked GR00T-LIBERO GGUF (~3.76 GB)
28
28
  * on first run and caches it locally. Pass an absolute path on the command line
@@ -68,7 +68,7 @@ try {
68
68
  const modelId = await loadModel({
69
69
  modelSrc,
70
70
  modelType: 'ggml-vla',
71
- modelConfig: { backend: 'cpu', ...(embodiment !== undefined && { embodiment }) },
71
+ modelConfig: { backend: ['cpu'], ...(embodiment !== undefined && { embodiment }) },
72
72
  onProgress: (p) => {
73
73
  const mb = (n) => (n / 1e6).toFixed(1);
74
74
  const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${mb(p.downloaded)}/${mb(p.total)} MB)`;
@@ -12,7 +12,7 @@
12
12
  * `Float32Array(0)`. π₀.₅ also requires the `noise` prior.
13
13
  *
14
14
  * Usage:
15
- * bun examples/vla-pi05.ts [path-to-pi05.gguf]
15
+ * npx tsx examples/vla-pi05.ts [path-to-pi05.gguf]
16
16
  *
17
17
  * By default the example pulls the registry-baked π₀.₅ GGUF (~3.9 GB) on
18
18
  * first run and caches it locally. Pass an absolute path on the command line
@@ -26,7 +26,7 @@ try {
26
26
  const modelId = await loadModel({
27
27
  modelSrc,
28
28
  modelType: 'ggml-vla',
29
- modelConfig: { backend: 'cpu' },
29
+ modelConfig: { backend: ['cpu'] },
30
30
  onProgress: (p) => {
31
31
  const mb = (n) => (n / 1e6).toFixed(1);
32
32
  const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${mb(p.downloaded)}/${mb(p.total)} MB)`;
@@ -6,7 +6,7 @@
6
6
  * zero noise), and prints the produced action chunk + per-stage timings.
7
7
  *
8
8
  * Usage:
9
- * bun examples/vla-smolvla.ts [path-to-smolvla.gguf]
9
+ * npx tsx examples/vla-smolvla.ts [path-to-smolvla.gguf]
10
10
  *
11
11
  * By default the example pulls the registry-baked SmolVLA-LIBERO GGUF
12
12
  * (~1.9 GB) on first run and caches it locally. Pass an absolute path on
@@ -20,7 +20,7 @@ try {
20
20
  const modelId = await loadModel({
21
21
  modelSrc,
22
22
  modelType: 'ggml-vla',
23
- modelConfig: { backend: 'cpu' },
23
+ modelConfig: { backend: ['cpu'] },
24
24
  onProgress: (p) => {
25
25
  const mb = (n) => (n / 1e6).toFixed(1);
26
26
  const line = `▸ Downloading ${p.percentage.toFixed(0)}% (${mb(p.downloaded)}/${mb(p.total)} MB)`;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Real-time Voice Assistant: mic → Whisper (with Silero VAD) → Llama → Supertonic TTS.
3
3
  *
4
- * Usage: bun run examples/voice-assistant/voice-assistant.ts
4
+ * Usage: npx tsx examples/voice-assistant/voice-assistant.ts
5
5
  *
6
6
  * Speak a question; the VAD detects when you pause, the utterance is
7
7
  * transcribed, sent to the LLM, and the response is spoken back. The loop
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  export declare const contractDir: URL;
3
+ export declare const registryEngineManifestFile: URL;
3
4
  export declare const callShapeByHandlerType: {
4
5
  readonly reply: "request-reply";
5
6
  readonly stream: "server-stream";
@@ -20,7 +21,7 @@ export declare function buildContract(): {
20
21
  condition: string;
21
22
  responseSchema: string;
22
23
  };
23
- name: "audioGenStream" | "audioEditStream" | "audioUnderstand" | "startRpcServer" | "stopRpcServer" | "discoverRpcServers" | "heartbeat" | "loadModel" | "downloadAsset" | "completionStream" | "completionOrchestrate" | "batchCompletionStream" | "unloadModel" | "transcribe" | "transcribeStream" | "bciTranscribe" | "bciTranscribeStream" | "loggingStream" | "embed" | "translate" | "textToSpeech" | "textToSpeechStream" | "cancel" | "finetune" | "rag" | "vectorIndex" | "deleteCache" | "getModelInfo" | "getLoadedModelInfo" | "getSystemResources" | "assessModelFit" | "ocrStream" | "diffusionStream" | "videoStream" | "upscaleStream" | "worldSceneStream" | "worldStepStream" | "resume" | "pluginInvoke" | "pluginInvokeStream" | "modelRegistryList" | "modelRegistrySearch" | "modelRegistryGetModel" | "suspend" | "state" | "classify";
24
+ name: "audioGenStream" | "audioEditStream" | "audioUnderstand" | "startRpcServer" | "stopRpcServer" | "discoverRpcServers" | "heartbeat" | "loadModel" | "downloadAsset" | "completionStream" | "completionOrchestrate" | "batchCompletionStream" | "unloadModel" | "transcribe" | "transcribeStream" | "bciTranscribe" | "bciTranscribeStream" | "loggingStream" | "embed" | "translate" | "textToSpeech" | "textToSpeechStream" | "cancel" | "rerank" | "finetune" | "rag" | "vectorIndex" | "deleteCache" | "getModelInfo" | "getLoadedModelInfo" | "getSystemResources" | "assessModelFit" | "ocrStream" | "diffusionStream" | "videoStream" | "upscaleStream" | "worldSceneStream" | "worldStepStream" | "resume" | "pluginInvoke" | "pluginInvokeStream" | "modelRegistryList" | "modelRegistrySearch" | "modelRegistryGetModel" | "suspend" | "state" | "classify" | "decide";
24
25
  callShape: "duplex" | "request-reply" | "server-stream";
25
26
  requestSchema: string;
26
27
  responseSchema: string;
@@ -35,5 +36,6 @@ export declare function renderContractFiles(): Promise<{
35
36
  'error-codes.json': string;
36
37
  'numeric-constants.json': string;
37
38
  }>;
39
+ export declare function renderRegistryEngineManifest(): Promise<string>;
38
40
  export {};
39
41
  //# sourceMappingURL=build-contract.d.ts.map