@nimiplatform/sdk 0.13.0 → 0.21.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 (411) hide show
  1. package/CHANGELOG.md +462 -0
  2. package/README.md +438 -17
  3. package/dist/core/ai/capability-configuration.d.ts +18 -0
  4. package/dist/core/ai/capability-configuration.d.ts.map +1 -1
  5. package/dist/core/ai/capability-configuration.js +39 -0
  6. package/dist/core/ai/capability-configuration.js.map +1 -1
  7. package/dist/core/ai/embeddings.d.ts +5 -0
  8. package/dist/core/ai/embeddings.d.ts.map +1 -1
  9. package/dist/core/ai/embeddings.js +30 -4
  10. package/dist/core/ai/embeddings.js.map +1 -1
  11. package/dist/core/ai/index.d.ts +4 -0
  12. package/dist/core/ai/index.d.ts.map +1 -1
  13. package/dist/core/ai/index.js +3 -0
  14. package/dist/core/ai/index.js.map +1 -1
  15. package/dist/core/ai/local-app-model.d.ts +15 -4
  16. package/dist/core/ai/local-app-model.d.ts.map +1 -1
  17. package/dist/core/ai/local-app-model.js +58 -18
  18. package/dist/core/ai/local-app-model.js.map +1 -1
  19. package/dist/core/ai/music-input-wire.d.ts +4 -0
  20. package/dist/core/ai/music-input-wire.d.ts.map +1 -0
  21. package/dist/core/ai/music-input-wire.js +9 -0
  22. package/dist/core/ai/music-input-wire.js.map +1 -0
  23. package/dist/core/ai/music-input.d.ts +44 -0
  24. package/dist/core/ai/music-input.d.ts.map +1 -0
  25. package/dist/core/ai/music-input.js +69 -0
  26. package/dist/core/ai/music-input.js.map +1 -0
  27. package/dist/core/ai/reasoning.d.ts +32 -0
  28. package/dist/core/ai/reasoning.d.ts.map +1 -0
  29. package/dist/core/ai/reasoning.js +74 -0
  30. package/dist/core/ai/reasoning.js.map +1 -0
  31. package/dist/core/ai/runtime-model.d.ts +2 -19
  32. package/dist/core/ai/runtime-model.d.ts.map +1 -1
  33. package/dist/core/ai/runtime-model.js +3 -47
  34. package/dist/core/ai/runtime-model.js.map +1 -1
  35. package/dist/core/ai/speech-input.d.ts +9 -0
  36. package/dist/core/ai/speech-input.d.ts.map +1 -0
  37. package/dist/core/ai/speech-input.js +16 -0
  38. package/dist/core/ai/speech-input.js.map +1 -0
  39. package/dist/core/ai/text-runner.js +11 -4
  40. package/dist/core/ai/text-runner.js.map +1 -1
  41. package/dist/core/ai/voice-reference-input.d.ts +9 -0
  42. package/dist/core/ai/voice-reference-input.d.ts.map +1 -0
  43. package/dist/core/ai/voice-reference-input.js +17 -0
  44. package/dist/core/ai/voice-reference-input.js.map +1 -0
  45. package/dist/core/app/desktop-open.d.ts +4 -1
  46. package/dist/core/app/desktop-open.d.ts.map +1 -1
  47. package/dist/core/app/desktop-open.js +5 -1
  48. package/dist/core/app/desktop-open.js.map +1 -1
  49. package/dist/core/app/index.d.ts +34 -3
  50. package/dist/core/app/index.d.ts.map +1 -1
  51. package/dist/core/app/index.js +21 -0
  52. package/dist/core/app/index.js.map +1 -1
  53. package/dist/core/app/local-app-agent-introduction.d.ts +30 -0
  54. package/dist/core/app/local-app-agent-introduction.d.ts.map +1 -0
  55. package/dist/core/app/local-app-agent-introduction.js +64 -0
  56. package/dist/core/app/local-app-agent-introduction.js.map +1 -0
  57. package/dist/core/app/local-app-agent-work-input.d.ts +24 -0
  58. package/dist/core/app/local-app-agent-work-input.d.ts.map +1 -0
  59. package/dist/core/app/local-app-agent-work-input.js +50 -0
  60. package/dist/core/app/local-app-agent-work-input.js.map +1 -0
  61. package/dist/core/app/local-app-audio-separation.d.ts +15 -0
  62. package/dist/core/app/local-app-audio-separation.d.ts.map +1 -0
  63. package/dist/core/app/local-app-audio-separation.js +92 -0
  64. package/dist/core/app/local-app-audio-separation.js.map +1 -0
  65. package/dist/core/app/local-app-bytes.d.ts +10 -0
  66. package/dist/core/app/local-app-bytes.d.ts.map +1 -0
  67. package/dist/core/app/local-app-bytes.js +27 -0
  68. package/dist/core/app/local-app-bytes.js.map +1 -0
  69. package/dist/core/app/local-app-music-transcription.d.ts +43 -0
  70. package/dist/core/app/local-app-music-transcription.d.ts.map +1 -0
  71. package/dist/core/app/local-app-music-transcription.js +94 -0
  72. package/dist/core/app/local-app-music-transcription.js.map +1 -0
  73. package/dist/core/app/local-app-music.d.ts +50 -0
  74. package/dist/core/app/local-app-music.d.ts.map +1 -0
  75. package/dist/core/app/local-app-music.js +135 -0
  76. package/dist/core/app/local-app-music.js.map +1 -0
  77. package/dist/core/app/local-app-runtime-platform-activity-view.d.ts +59 -0
  78. package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -0
  79. package/dist/core/app/local-app-runtime-platform-activity-view.js +283 -0
  80. package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -0
  81. package/dist/core/app/local-app-runtime-platform-activity.d.ts +219 -0
  82. package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -0
  83. package/dist/core/app/local-app-runtime-platform-activity.js +749 -0
  84. package/dist/core/app/local-app-runtime-platform-activity.js.map +1 -0
  85. package/dist/core/app/local-app-runtime-platform-agent-references.d.ts +4 -0
  86. package/dist/core/app/local-app-runtime-platform-agent-references.d.ts.map +1 -1
  87. package/dist/core/app/local-app-runtime-platform-agent-references.js +21 -9
  88. package/dist/core/app/local-app-runtime-platform-agent-references.js.map +1 -1
  89. package/dist/core/app/local-app-runtime-platform-agent-work.d.ts +88 -0
  90. package/dist/core/app/local-app-runtime-platform-agent-work.d.ts.map +1 -0
  91. package/dist/core/app/local-app-runtime-platform-agent-work.js +165 -0
  92. package/dist/core/app/local-app-runtime-platform-agent-work.js.map +1 -0
  93. package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
  94. package/dist/core/app/local-app-runtime-platform-ai-config.js +62 -1
  95. package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
  96. package/dist/core/app/local-app-runtime-platform-ai.d.ts +172 -34
  97. package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
  98. package/dist/core/app/local-app-runtime-platform-ai.js +805 -112
  99. package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
  100. package/dist/core/app/local-app-runtime-platform-assets.d.ts.map +1 -1
  101. package/dist/core/app/local-app-runtime-platform-assets.js +37 -12
  102. package/dist/core/app/local-app-runtime-platform-assets.js.map +1 -1
  103. package/dist/core/app/local-app-runtime-platform-configure.d.ts +1 -1
  104. package/dist/core/app/local-app-runtime-platform-configure.d.ts.map +1 -1
  105. package/dist/core/app/local-app-runtime-platform-configure.js +10 -10
  106. package/dist/core/app/local-app-runtime-platform-configure.js.map +1 -1
  107. package/dist/core/app/local-app-runtime-platform-conversation.d.ts +7 -4
  108. package/dist/core/app/local-app-runtime-platform-conversation.d.ts.map +1 -1
  109. package/dist/core/app/local-app-runtime-platform-conversation.js +15 -10
  110. package/dist/core/app/local-app-runtime-platform-conversation.js.map +1 -1
  111. package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts +5 -0
  112. package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts.map +1 -0
  113. package/dist/core/app/local-app-runtime-platform-direct-agent-work.js +38 -0
  114. package/dist/core/app/local-app-runtime-platform-direct-agent-work.js.map +1 -0
  115. package/dist/core/app/local-app-runtime-platform-direct-conversation.js +6 -6
  116. package/dist/core/app/local-app-runtime-platform-direct-conversation.js.map +1 -1
  117. package/dist/core/app/local-app-runtime-platform-integration.d.ts +128 -0
  118. package/dist/core/app/local-app-runtime-platform-integration.d.ts.map +1 -0
  119. package/dist/core/app/local-app-runtime-platform-integration.js +263 -0
  120. package/dist/core/app/local-app-runtime-platform-integration.js.map +1 -0
  121. package/dist/core/app/local-app-runtime-platform-validation.d.ts +2 -0
  122. package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
  123. package/dist/core/app/local-app-runtime-platform-validation.js +50 -3
  124. package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
  125. package/dist/core/app/local-app-runtime-platform-vision.d.ts +1 -1
  126. package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -1
  127. package/dist/core/app/local-app-runtime-platform-vision.js +5 -5
  128. package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -1
  129. package/dist/core/app/local-app-runtime-platform.d.ts +19 -15
  130. package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
  131. package/dist/core/app/local-app-runtime-platform.js +17 -6
  132. package/dist/core/app/local-app-runtime-platform.js.map +1 -1
  133. package/dist/core/app/local-app-speaker-embedding.d.ts +6 -0
  134. package/dist/core/app/local-app-speaker-embedding.d.ts.map +1 -0
  135. package/dist/core/app/local-app-speaker-embedding.js +14 -0
  136. package/dist/core/app/local-app-speaker-embedding.js.map +1 -0
  137. package/dist/core/app/local-app-text-annotation.d.ts +24 -0
  138. package/dist/core/app/local-app-text-annotation.d.ts.map +1 -0
  139. package/dist/core/app/local-app-text-annotation.js +71 -0
  140. package/dist/core/app/local-app-text-annotation.js.map +1 -0
  141. package/dist/core/app/local-app-text-decision.d.ts +114 -0
  142. package/dist/core/app/local-app-text-decision.d.ts.map +1 -0
  143. package/dist/core/app/local-app-text-decision.js +444 -0
  144. package/dist/core/app/local-app-text-decision.js.map +1 -0
  145. package/dist/core/app/local-app-text.d.ts +7 -1
  146. package/dist/core/app/local-app-text.d.ts.map +1 -1
  147. package/dist/core/app/local-app-text.js +16 -15
  148. package/dist/core/app/local-app-text.js.map +1 -1
  149. package/dist/core/app/local-app-transcription.d.ts +23 -0
  150. package/dist/core/app/local-app-transcription.d.ts.map +1 -0
  151. package/dist/core/app/local-app-transcription.js +48 -0
  152. package/dist/core/app/local-app-transcription.js.map +1 -0
  153. package/dist/core/app/local-app-voice-convert.d.ts +61 -0
  154. package/dist/core/app/local-app-voice-convert.d.ts.map +1 -0
  155. package/dist/core/app/local-app-voice-convert.js +133 -0
  156. package/dist/core/app/local-app-voice-convert.js.map +1 -0
  157. package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts +2 -2
  158. package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts.map +1 -1
  159. package/dist/core/app/runtime-account-realm-source-readiness.generated.js +5 -3
  160. package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
  161. package/dist/core/text-stream-cleanup.d.ts +3 -0
  162. package/dist/core/text-stream-cleanup.d.ts.map +1 -0
  163. package/dist/core/text-stream-cleanup.js +19 -0
  164. package/dist/core/text-stream-cleanup.js.map +1 -0
  165. package/dist/core-generated/realm-client.d.ts.map +1 -1
  166. package/dist/core-generated/realm-client.js +10 -4
  167. package/dist/core-generated/realm-client.js.map +1 -1
  168. package/dist/core-generated/realm-typed-client.d.ts +159 -34
  169. package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
  170. package/dist/core-generated/realm-typed-client.js +81 -8
  171. package/dist/core-generated/realm-typed-client.js.map +1 -1
  172. package/dist/core-generated/runtime-client.d.ts.map +1 -1
  173. package/dist/core-generated/runtime-client.js +312 -0
  174. package/dist/core-generated/runtime-client.js.map +1 -1
  175. package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts +21 -0
  176. package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts.map +1 -1
  177. package/dist/core-generated/runtime-protobuf/runtime/v1/account.js +41 -5
  178. package/dist/core-generated/runtime-protobuf/runtime/v1/account.js.map +1 -1
  179. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +158 -1
  180. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
  181. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +299 -2
  182. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
  183. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts +5 -1
  184. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts.map +1 -1
  185. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js +4 -0
  186. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js.map +1 -1
  187. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts +625 -0
  188. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts.map +1 -0
  189. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js +1369 -0
  190. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js.map +1 -0
  191. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +2274 -134
  192. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
  193. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +5178 -1218
  194. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
  195. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +168 -0
  196. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
  197. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +326 -5
  198. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
  199. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts +859 -0
  200. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts.map +1 -0
  201. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js +1663 -0
  202. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js.map +1 -0
  203. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +20 -0
  204. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
  205. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +38 -0
  206. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
  207. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +579 -0
  208. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
  209. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +1056 -12
  210. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
  211. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +161 -1
  212. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
  213. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +160 -0
  214. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
  215. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts +43 -0
  216. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts.map +1 -1
  217. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js +88 -4
  218. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js.map +1 -1
  219. package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts +53 -0
  220. package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts.map +1 -1
  221. package/dist/core-generated/runtime-protobuf/runtime/v1/development.js +118 -0
  222. package/dist/core-generated/runtime-protobuf/runtime/v1/development.js.map +1 -1
  223. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts +1293 -0
  224. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts.map +1 -0
  225. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js +2898 -0
  226. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js.map +1 -0
  227. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +200 -0
  228. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
  229. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +249 -4
  230. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
  231. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.d.ts +13 -0
  232. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.d.ts.map +1 -1
  233. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.js +17 -1
  234. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_device_environment.js.map +1 -1
  235. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +8 -0
  236. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
  237. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +9 -1
  238. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
  239. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts +69 -0
  240. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts.map +1 -1
  241. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js +120 -0
  242. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js.map +1 -1
  243. package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
  244. package/dist/core-generated/runtime-public-client.js +296 -8
  245. package/dist/core-generated/runtime-public-client.js.map +1 -1
  246. package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
  247. package/dist/core-generated/runtime-public-rpc-auth-posture.js +37 -1
  248. package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
  249. package/dist/core-generated/runtime-public-wire-codecs.d.ts +44 -5
  250. package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
  251. package/dist/core-generated/runtime-public-wire-codecs.js +44 -5
  252. package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
  253. package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
  254. package/dist/core-generated/runtime-rpc-auth-posture.js +39 -0
  255. package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
  256. package/dist/core-generated/runtime-typed-client.d.ts +66 -16
  257. package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
  258. package/dist/core-generated/runtime-typed-client.js +398 -3
  259. package/dist/core-generated/runtime-typed-client.js.map +1 -1
  260. package/dist/core-generated/runtime-wire-codecs.d.ts +47 -5
  261. package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
  262. package/dist/core-generated/runtime-wire-codecs.js +47 -5
  263. package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
  264. package/dist/features/generation/index.d.ts +16 -2
  265. package/dist/features/generation/index.d.ts.map +1 -1
  266. package/dist/features/generation/index.js +26 -3
  267. package/dist/features/generation/index.js.map +1 -1
  268. package/dist/features/generation/media-params.d.ts +0 -3
  269. package/dist/features/generation/media-params.d.ts.map +1 -1
  270. package/dist/features/generation/media-params.js +8 -6
  271. package/dist/features/generation/media-params.js.map +1 -1
  272. package/dist/features/generation/runtime-generation-build.d.ts +0 -1
  273. package/dist/features/generation/runtime-generation-build.d.ts.map +1 -1
  274. package/dist/features/generation/runtime-generation-build.js +6 -1
  275. package/dist/features/generation/runtime-generation-build.js.map +1 -1
  276. package/dist/features/generation/runtime-image-generation.d.ts +5 -1
  277. package/dist/features/generation/runtime-image-generation.d.ts.map +1 -1
  278. package/dist/features/generation/runtime-image-generation.js +4 -0
  279. package/dist/features/generation/runtime-image-generation.js.map +1 -1
  280. package/dist/features/generation/runtime-job-builders.d.ts +0 -1
  281. package/dist/features/generation/runtime-job-builders.d.ts.map +1 -1
  282. package/dist/features/generation/runtime-job-builders.js +8 -10
  283. package/dist/features/generation/runtime-job-builders.js.map +1 -1
  284. package/dist/realm/index.d.ts +1 -1
  285. package/dist/realm/index.d.ts.map +1 -1
  286. package/dist/realm/index.js +3 -2
  287. package/dist/realm/index.js.map +1 -1
  288. package/dist/runtime/chatgpt-plan.d.ts +7 -0
  289. package/dist/runtime/chatgpt-plan.d.ts.map +1 -0
  290. package/dist/runtime/chatgpt-plan.js +15 -0
  291. package/dist/runtime/chatgpt-plan.js.map +1 -0
  292. package/dist/runtime/config-projections.d.ts +2 -0
  293. package/dist/runtime/config-projections.d.ts.map +1 -1
  294. package/dist/runtime/config-projections.js +33 -1
  295. package/dist/runtime/config-projections.js.map +1 -1
  296. package/dist/runtime/connector-auth-acquisition-client.d.ts +3 -6
  297. package/dist/runtime/connector-auth-acquisition-client.d.ts.map +1 -1
  298. package/dist/runtime/connector-auth-acquisition-client.js +18 -11
  299. package/dist/runtime/connector-auth-acquisition-client.js.map +1 -1
  300. package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts +10 -11
  301. package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts.map +1 -1
  302. package/dist/runtime/connector-auth-acquisition-profiles.generated.js +13 -14
  303. package/dist/runtime/connector-auth-acquisition-profiles.generated.js.map +1 -1
  304. package/dist/runtime/connector-auth-acquisition.d.ts +26 -19
  305. package/dist/runtime/connector-auth-acquisition.d.ts.map +1 -1
  306. package/dist/runtime/connector-auth-acquisition.js +352 -269
  307. package/dist/runtime/connector-auth-acquisition.js.map +1 -1
  308. package/dist/runtime/connector-auth-profiles.generated.d.ts +1 -1
  309. package/dist/runtime/connector-auth-profiles.generated.d.ts.map +1 -1
  310. package/dist/runtime/connector-auth-profiles.generated.js +4 -4
  311. package/dist/runtime/connector-auth-profiles.generated.js.map +1 -1
  312. package/dist/runtime/connector-inventory.d.ts +11 -2
  313. package/dist/runtime/connector-inventory.d.ts.map +1 -1
  314. package/dist/runtime/connector-inventory.js +13 -4
  315. package/dist/runtime/connector-inventory.js.map +1 -1
  316. package/dist/runtime/desktop-audit.js +4 -1
  317. package/dist/runtime/desktop-audit.js.map +1 -1
  318. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +130 -2
  319. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
  320. package/dist/runtime/first-party-protected-runtime-profiles.generated.js +34 -2
  321. package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
  322. package/dist/runtime/generated.d.ts +2 -2
  323. package/dist/runtime/generated.d.ts.map +1 -1
  324. package/dist/runtime/generated.js +1 -1
  325. package/dist/runtime/generated.js.map +1 -1
  326. package/dist/runtime/host.d.ts +3 -0
  327. package/dist/runtime/host.d.ts.map +1 -1
  328. package/dist/runtime/host.js +4 -0
  329. package/dist/runtime/host.js.map +1 -1
  330. package/dist/runtime/index.d.ts +3 -0
  331. package/dist/runtime/index.d.ts.map +1 -1
  332. package/dist/runtime/index.js +3 -1
  333. package/dist/runtime/index.js.map +1 -1
  334. package/dist/runtime/machine-loadouts.d.ts +33 -1
  335. package/dist/runtime/machine-loadouts.d.ts.map +1 -1
  336. package/dist/runtime/machine-loadouts.js +39 -2
  337. package/dist/runtime/machine-loadouts.js.map +1 -1
  338. package/dist/runtime/node-grpc-errors.js +3 -3
  339. package/dist/runtime/node-grpc-errors.js.map +1 -1
  340. package/dist/runtime/node-grpc.d.ts.map +1 -1
  341. package/dist/runtime/node-grpc.js +35 -4
  342. package/dist/runtime/node-grpc.js.map +1 -1
  343. package/dist/runtime/product-control-projection.d.ts.map +1 -1
  344. package/dist/runtime/product-control-projection.js +11 -2
  345. package/dist/runtime/product-control-projection.js.map +1 -1
  346. package/dist/runtime/product-control-types.d.ts +13 -2
  347. package/dist/runtime/product-control-types.d.ts.map +1 -1
  348. package/dist/runtime/product-control-types.js.map +1 -1
  349. package/dist/runtime/reason-messages.d.ts +3 -0
  350. package/dist/runtime/reason-messages.d.ts.map +1 -1
  351. package/dist/runtime/reason-messages.js +11 -2
  352. package/dist/runtime/reason-messages.js.map +1 -1
  353. package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
  354. package/dist/runtime/runtime-local-environment-client-projections.js +21 -17
  355. package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
  356. package/dist/runtime/runtime-local-environment-client-types.d.ts +50 -19
  357. package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
  358. package/dist/runtime/runtime-local-environment-client-values.d.ts +3 -1
  359. package/dist/runtime/runtime-local-environment-client-values.d.ts.map +1 -1
  360. package/dist/runtime/runtime-local-environment-client-values.js +43 -0
  361. package/dist/runtime/runtime-local-environment-client-values.js.map +1 -1
  362. package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
  363. package/dist/runtime/runtime-local-environment-client.js +12 -3
  364. package/dist/runtime/runtime-local-environment-client.js.map +1 -1
  365. package/dist/runtime/runtime-local-recommendation-types.d.ts +3 -0
  366. package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
  367. package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
  368. package/dist/runtime/runtime-local-recommendation.js +1 -0
  369. package/dist/runtime/runtime-local-recommendation.js.map +1 -1
  370. package/dist/runtime/scenario-jobs.d.ts +23 -1
  371. package/dist/runtime/scenario-jobs.d.ts.map +1 -1
  372. package/dist/runtime/scenario-jobs.js +227 -264
  373. package/dist/runtime/scenario-jobs.js.map +1 -1
  374. package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
  375. package/dist/runtime/shared-local-agent-ai-config.js +6 -0
  376. package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
  377. package/dist/runtime/wire-types/agent-participation-enums.d.ts +2 -1
  378. package/dist/runtime/wire-types/agent-participation-enums.d.ts.map +1 -1
  379. package/dist/runtime/wire-types/agent-participation-enums.js +2 -1
  380. package/dist/runtime/wire-types/agent-participation-enums.js.map +1 -1
  381. package/dist/runtime/wire-types/agent-participation-types.d.ts +4 -2
  382. package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
  383. package/dist/runtime/wire-types/ai-scenario-enums.d.ts +119 -3
  384. package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
  385. package/dist/runtime/wire-types/ai-scenario-enums.js +136 -0
  386. package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
  387. package/dist/runtime/wire-types/ai-scenario-types.d.ts +8 -6
  388. package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
  389. package/dist/runtime/wire-types/identity-app-enums.d.ts +47 -0
  390. package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
  391. package/dist/runtime/wire-types/identity-app-enums.js +55 -0
  392. package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
  393. package/dist/runtime/wire-types/identity-app-types.d.ts +6 -4
  394. package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
  395. package/dist/runtime/wire-types/local-memory-enums.d.ts +31 -1
  396. package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
  397. package/dist/runtime/wire-types/local-memory-enums.js +34 -0
  398. package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
  399. package/dist/runtime/wire-types/reason-code-enums.d.ts +30 -1
  400. package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
  401. package/dist/runtime/wire-types/reason-code-enums.js +29 -0
  402. package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
  403. package/dist/types/errors.d.ts +1 -1
  404. package/dist/types/errors.d.ts.map +1 -1
  405. package/dist/types/errors.js +2 -2
  406. package/dist/types/errors.js.map +1 -1
  407. package/dist/types/reason-code.d.ts +2 -0
  408. package/dist/types/reason-code.d.ts.map +1 -1
  409. package/dist/types/reason-code.js +2 -0
  410. package/dist/types/reason-code.js.map +1 -1
  411. package/package.json +5 -5
package/README.md CHANGED
@@ -11,12 +11,32 @@ Start with the lifecycle guide included in `@nimiplatform/app-tools`.
11
11
  SDK/Kit versions from that package's `nimiScaffoldVersions` and retain the
12
12
  project lockfile. See [migration notes](CHANGELOG.md) before upgrading.
13
13
 
14
- An installed or development App consumes a `NimiLocalAppClient` from
15
- `@nimiplatform/sdk/app`, bound to the standard Kit shell in its supervised Host.
16
- Kit's Electron main/preload and renderer guides describe that construction.
14
+ An installed or development App consumes one `NimiLocalAppClient`, bound to
15
+ the standard Kit shell in its supervised Host. Generated projects create it in
16
+ `src/shell/auth/local-app-client.ts`:
17
+
18
+ ```ts
19
+ import { createNimiClient, type NimiLocalAppClient } from '@nimiplatform/sdk';
20
+ import { createNimiLocalAppStandardShellSurface } from '@nimiplatform/kit/shell/renderer/bridge';
21
+
22
+ const client: NimiLocalAppClient = createNimiClient({
23
+ localApp: { standardShell: createNimiLocalAppStandardShellSurface() },
24
+ });
25
+
26
+ const { text } = await client.ai.text.generateCandidate({
27
+ messages: [{ role: 'user', text: 'What can you help me with?' }],
28
+ });
29
+ ```
30
+
17
31
  App-owned Node business work can use the same Host's `bridge.services`.
18
32
  The App does not supply Nimi credentials, account identity, a Runtime endpoint,
19
- or a provider/model override to these protected calls.
33
+ or a provider/model override to these protected calls. A direct client created
34
+ with `createNimiClient({ appId, runtime })` is for programs outside a Nimi App;
35
+ Runtime rejects App-scoped operations such as AI execution and App storage
36
+ from it.
37
+
38
+ For a multi-step tool loop, JSON output or image input, bind the common model
39
+ interface to the same client:
20
40
 
21
41
  ```ts
22
42
  import type { NimiLocalAppClient } from '@nimiplatform/sdk/app';
@@ -40,14 +60,391 @@ and forwards cancellation. Preserve opaque `reasoning-continuity` bytes and
40
60
  order without decoding or displaying them. Only complete successful output
41
61
  can be treated as a finished result; partial JSON is not a validated object.
42
62
 
43
- SDK 0.13.0's Local App binding supports function tools, tool choice,
44
- structured `responseFormat` and user image parts with Kit/native 0.9.0 and a
45
- matching Runtime. HTTP(S) image file parts and owned image `artifact-ref` parts
46
- preserve their order with text. Upload local image bytes through
47
- `client.ai.artifacts.upload`; do not put file paths or data URLs in model
48
- requests. SDK 0.12.0 / Kit 0.8.0 retain their text-only binding. Other media
49
- methods have separate contracts, and each selected execution configuration
50
- must support the requested modality and controls.
63
+ The matching development SDK/Kit/native/Runtime preserves system messages in
64
+ their submitted order, including instructions inside conversation history.
65
+ Separate system-message boundaries and positions require an explicitly admitted
66
+ Driver combination; unsupported combinations fail before inference instead of
67
+ moving instructions to the beginning or changing their role. The initial exact
68
+ DeepSeek Chat Completions v3 slice preserves these inputs in synchronous and
69
+ streaming plain text, function-tool or JSON-object calls. Other combinations
70
+ remain separately admitted. This does not relax the 128-message/1-MiB bounds,
71
+ or the user-only media boundary.
72
+
73
+ App-owned initiation or continuation can submit nonempty system/assistant
74
+ context without a user-role message. The carrier does not add a filler user
75
+ turn or rewrite roles. Empty and opaque-only input still fails, and exact
76
+ Driver input support remains required. If an App's budget planner drops needed
77
+ history, the App must report that loss rather than treating it as intentional
78
+ userless generation. The narrow text candidate method is unchanged.
79
+
80
+ The current Local App binding (SDK 0.21.0 / Kit/native 0.18.0 with matching
81
+ Runtime) supports function tools, tool choice, structured `responseFormat`,
82
+ and admitted user image parts. HTTP(S) image file
83
+ parts and owned image `artifact-ref` parts preserve their order with text.
84
+ Upload local image bytes through `client.ai.artifacts.upload`; do not put file
85
+ paths or data URLs in model requests. Other media methods have separate contracts, and each
86
+ selected execution configuration must support the requested modality and
87
+ controls.
88
+
89
+ The matching development cohort also carries owned WAV, MPEG audio and MP4
90
+ video Artifact references in user text-generation messages. Upload the media
91
+ through the App's artifact API; direct audio/video URLs and inline data remain
92
+ invalid App inputs. The exact Gemini 3.8 Flash native base adapter admits this
93
+ media in plain-text synchronous and streaming calls. Its tool and schema modes
94
+ remain separate synchronous combinations and do not admit audio/video input.
95
+ Preserving multiple system-message boundaries is a separate Driver behavior;
96
+ media support does not imply that combination is supported.
97
+
98
+ ## Local App speech support boundaries
99
+
100
+ The current matched package combination carries a typed
101
+ `job.transcription` on completed `speech-transcribe` jobs. It contains `status`
102
+ (`transcribed` or `no-speech`), original `text`, model-reported `language` and
103
+ ordered `words` with `text`, `startSeconds` and `endSeconds`. Plain transcription
104
+ resources can leave language and words empty. Aligned results also leave
105
+ `language` empty when recognition did not report it; real words and timestamps
106
+ can still be present. Requesting `timestamps: true`
107
+ requires a resource with actual alignment support; unsupported requests fail.
108
+ The request's `language` is an input hint, not a detected-language result.
109
+
110
+ DashScope's `qwen-audio-3.0-asr-flash-streaming` and admitted
111
+ `fun-asr-realtime` models also execute finite `speech-transcribe` Jobs. The
112
+ matching Runtime accepts mono PCM WAV up to 300 seconds and 32 MiB, waits for
113
+ the provider's successful terminal event, and publishes its final text and
114
+ actual word times. Partial hypotheses are not completed results. Detected
115
+ language remains empty because this protocol does not report it; empty output
116
+ is an error, not an inferred `no-speech`. Prompt, response-format and diarization
117
+ controls are unsupported. The provider's WebSocket transport does not turn
118
+ these Jobs into public realtime sessions. Longer audio remains App chunking.
119
+
120
+ For the local Qwen3 aligned recipe, an explicit supported input language can
121
+ guide the aligner when recognition returns text without a language label.
122
+ That hint is never copied into the result's `language`. Without a reported
123
+ language or an explicit supported hint, alignment fails; an unsupported
124
+ reported language is not overridden by the hint. Apps can use their selected
125
+ source language for downstream processing while retaining missing detection
126
+ as unknown.
127
+
128
+ ```ts
129
+ const { job } = await client.ai.scenarioJobs.get(jobId);
130
+ if (job.status === 'completed' && job.scenarioType === 'speech-transcribe') {
131
+ const transcript = job.transcription;
132
+ if (transcript?.status === 'transcribed') {
133
+ for (const word of transcript.words) {
134
+ console.log(word.text, word.startSeconds, word.endSeconds);
135
+ }
136
+ }
137
+ }
138
+ ```
139
+
140
+ `transcriptionText` remains the same original text for text-only consumers.
141
+ Use the typed result rather than decoding artifact JSON. `no-speech` has empty
142
+ text, language and words; it is distinct from invalid input and inference
143
+ failure. The complete result is limited to 1 MiB and 16,384 alignment units.
144
+
145
+ The local Qwen3 Transformers aligned recipe captures both the recognition
146
+ model and its forced aligner in the selected Loadout. It accepts at most 300
147
+ seconds per request and supports zh/en/yue/fr/de/it/ja/ko/pt/ru/es. Times are
148
+ actual model alignment relative to the submitted audio's zero point, with
149
+ pauses retained. The current aligner has 80 ms resolution. Units can be CJK
150
+ characters; they are not guaranteed to be linguistic words. Text retains
151
+ punctuation. For longer media, the App splits input and adds each source chunk
152
+ offset exactly once; Runtime does not own App chunking or subtitle assembly.
153
+ This route does not provide diarization, speaker counts, or a standalone
154
+ alignment operation for caller-supplied transcripts.
155
+
156
+ The local Faster Whisper recipe instead captures a CTranslate2 Whisper model
157
+ and a Silero ONNX voice activity detector. It also accepts up to 300 seconds
158
+ and returns real word times on the original input timeline; it does not offer
159
+ diarization or prompts. A caller-specified language is a hint, not detected
160
+ language, so that result field stays empty when the request fixes the language.
161
+ The recognizer receives the full audio: VAD alone cannot discard weak or
162
+ synthetic speech. No-speech requires both no recognized segments and no speech
163
+ detected by the captured VAD. Empty recognition after detected speech fails.
164
+ Neither recipe guarantees error-free subtitles; retain source timing and use
165
+ the App's proofreading workflow when recognition or alignment is inaccurate.
166
+
167
+ Select the intended Loadout for `audio.transcribe` in Nimi's model configuration first.
168
+ The App's AIConfig Local intent is the route marker `local: {}` and carries no
169
+ Loadout reference; the machine's current selection is captured at new Job
170
+ admission. `listOptions({ kind: 'local-loadouts', capabilityContract:
171
+ 'audio.transcribe' })` exposes that current selection, not every saved Loadout.
172
+
173
+ Local `audio-separate` jobs consume `mimeType` and the same bytes/HTTPS URI
174
+ `audioSource` shape as transcription. Choose the Demucs separation Loadout for
175
+ `audio.separate` in Nimi, then declare that capability's `local: {}` App intent.
176
+ The initial Driver accepts at most 300 seconds and 32 MiB per input. Split longer
177
+ sources in the App while retaining their offsets and complete timeline.
178
+
179
+ A completed Job's `audioSeparation` names `vocalsArtifactId` and
180
+ `backgroundArtifactId`. Both refer to that Job's audio artifacts and preserve
181
+ the input zero point, duration and pauses; background is the model's summed
182
+ non-vocal sources. Read sample rate and channel count from the artifact records.
183
+ The current Driver produces float WAV audio, which can exceed inline limits.
184
+ Receive it through `client.storage.assets.adoptArtifact`. Use the returned
185
+ record's `relativePath` for reads, previews and removal: Runtime normalizes the
186
+ filename extension to the actual artifact media type, so the requested path is
187
+ not necessarily the stored path. For example, requesting `transfers/result`
188
+ for a WAV artifact returns `transfers/result.wav`.
189
+
190
+ ```ts
191
+ const adopted = await client.storage.assets.adoptArtifact({ artifactId, relativePath });
192
+ const received = await client.storage.assets.read({ relativePath: adopted.relativePath });
193
+ ```
194
+
195
+ Consume `received.body` fully before committing the App's result. If the asset
196
+ was a temporary transfer, remove `adopted.relativePath` only after reception.
197
+ Treat the pair as complete in the App only after both outputs have been received.
198
+ Do not infer roles from filenames, replace background with the input mix, or
199
+ count a canceled/failed Job as a partial success.
200
+
201
+ Check required inputs and outputs before migrating a workflow. A missing
202
+ configuration, an implementation defect in an existing contract, and a required
203
+ new capability are different integration outcomes. Report the expected result
204
+ and actual supported interface rather than silently dropping a core feature.
205
+
206
+ ### Interactive dictation with finite transcription jobs
207
+
208
+ An App that already implements windowed dictation can submit its bounded audio
209
+ windows as `speech-transcribe` Jobs. Capture, silence detection, window offsets,
210
+ draft display, utterance commits and document storage remain App-owned. Show
211
+ only actual recognized text as a draft; a later window may revise it. Serialize
212
+ or bound pending work so a slower recognizer cannot create an unbounded queue.
213
+ Pause capture without inventing a transcript, drain the final window on an
214
+ explicit stop, and cancel in-flight Jobs on discard. Ignore late results from a
215
+ discarded capture generation and retain already committed utterances without
216
+ appending them again in the final document.
217
+
218
+ This composition does not make a finite recognizer a native streaming Driver.
219
+ Verify its actual latency and pause/stop/cancel behavior in the App. The separate
220
+ `client.ai.realtime` interface implements `realtime.interact`; its presence does
221
+ not establish a local, transcription-only route. Do not silently substitute a
222
+ Cloud conversation model for local dictation.
223
+
224
+ ### Creating and reusing voices
225
+
226
+ SDK 0.15.0 and Kit/native 0.11.0 expose optional `referenceAudioInput` on
227
+ AIConfig effective Local resources and Cloud targets, also present in their
228
+ options. Read it from the selected `voice.create` resource. It contains
229
+ `supportsBytes`, `supportsUri`, `textMode` (`unsupported`, `optional`, or
230
+ `required`) and `mimeTypes`. Missing metadata means unknown or inapplicable;
231
+ an empty MIME list means formats are not enumerated. Neither means arbitrary
232
+ input support. Runtime still validates the actual request at admission.
233
+
234
+ When `textMode` is `unsupported`, pass `text: ''` in the SDK's reference-audio
235
+ spec and keep any transcript in App storage. When optional, send the actual
236
+ reference transcript if available; when required, request one before creating
237
+ the voice. Do not select these behaviors by provider/model name. Local Qwen3
238
+ reference workflows accept both public URI and bytes with optional text; the
239
+ Runtime captures a URI into private bytes and empty text uses the model's
240
+ reference-only mode. Choosing URI input never uploads an existing local file.
241
+
242
+ Submit `voice-create` through `client.ai.scenarioJobs` with exactly one
243
+ `creationSource`: `reference-audio` (audio bytes or HTTPS URI, MIME type and
244
+ optional reference transcript in `text`) or `text-description` (instruction and
245
+ preview text). Read the completed Job with `get(jobId)` to obtain `asset` and
246
+ `voiceReference`. For synthesis, pass the returned asset identity as
247
+ `voiceRef: { type: 'voice-asset', id: asset.voiceAssetId }` in a
248
+ `speech-synthesize` Job. Creation success is not proof that playable audio was
249
+ generated; the local Qwen3 creation paths return a voice handle and
250
+ requires a synthesis Job to produce the preview audio.
251
+
252
+ Both operations use their own committed capability configuration. The selected
253
+ `voice.create` implementation must support `input.audio` or `input.text` for the
254
+ requested source. Separate local Qwen3 clone and design recipes require their
255
+ respective Loadouts; synthesis also needs a compatible selected Loadout. A source
256
+ field does not switch a model or route. Expose unmet configuration to the user instead
257
+ of retrying through a different engine. Existing engine-specific seed, sampling
258
+ or guidance controls must not be silently mapped to unrelated public fields.
259
+
260
+ For DashScope Qwen-Audio 3.0 voices, select the same current TTS model for
261
+ `voice.create` and `audio.synthesize`. Both Plus and Flash use the provider's
262
+ voice-enrollment and SpeechSynthesizer protocols. Reference-audio creation
263
+ requires a publicly reachable HTTP(S) URI; inline bytes and a local file path
264
+ are not supported by this provider workflow. Nimi does not publish an App's
265
+ private audio to obtain a URL. Preserve the user's reference URI explicitly,
266
+ or select a configuration that accepts bytes. A cloned voice's target model
267
+ must match later synthesis. The current provider accepts 16-bit WAV, MP3 or
268
+ M4A, at least 16 kHz, at most 60 seconds and 10 MB; it recommends 10–20 seconds
269
+ with at least five seconds of continuous clear speech. Stereo uses the first
270
+ channel. The reference transcript is unsupported for this workflow; retain it
271
+ as business metadata rather than submitting it as a model prompt. Check the
272
+ [provider's reference requirements](https://help.aliyun.com/zh/model-studio/voice-cloning-user-guide)
273
+ when preparing a new sample. Voice design accepts an English or Chinese
274
+ description of at most 500 characters and a preview of 15–200 characters in
275
+ the same supported language. Synthesis supports additional languages,
276
+ including Spanish; that does not expand the design preview's language range.
277
+ The App keeps voice metadata and audition/export files in its business storage.
278
+
279
+ The current local Qwen3 synthesis Driver accepts WAV output and no timing mode
280
+ beyond `none`. It rejects supplied `speed`, `pitch`, `volume`, `sampleRateHz` and
281
+ `voiceRenderHints`, including explicit neutral values such as `speed: 1`. Omit
282
+ those fields. When the product's playback speed or delivery format is a
283
+ deterministic media-editing operation, preserve it in the App after generation
284
+ (for example, FFmpeg tempo conversion), using the actual decoded audio format.
285
+ That post-processing is distinct from a model's acoustic generation control.
286
+
287
+ Qwen3 Base reference-voice synthesis does not provide per-utterance style or
288
+ emotion instructions. The CustomVoice preset path maps `emotion` to its own
289
+ natural-language instruction; this does not establish support for Base voice
290
+ assets. A `voice-create` design instruction describes the voice being created,
291
+ not a later utterance's prosody. Other engines' inline expression tokens, such
292
+ as OmniVoice's `[laughter]` or `[question-en]`, have no defined Qwen3 mapping.
293
+ Keep unsupported model-specific controls explicit instead of silently mapping
294
+ them to another field or assuming literal text will produce the intended effect.
295
+
296
+ For a library that mixes cloned and designed voices, select the explicit
297
+ **Qwen3 design and reference voice library** recipe for `voice.create`. Bind its
298
+ Base and VoiceDesign models independently, and select that same Base ModelAsset
299
+ for `audio.synthesize`. The library admits both source features in one captured
300
+ configuration. A `text-description` Job requires nonempty `previewText`, runs
301
+ VoiceDesign to create real reference audio, then returns a Base-compatible voice
302
+ asset containing that reference. Reference-audio creation uses the supplied
303
+ audio. Both kinds of asset subsequently synthesize with Base, so a story or
304
+ batch can mix them without changing the machine selection. Wait for creation to
305
+ complete before requesting audition audio; design creation now includes model
306
+ execution and follows the ordinary Job timeout and cancellation lifecycle.
307
+
308
+ Keep business voice names, descriptions, original reference audio and transcript,
309
+ and saved previews in App storage. A Runtime VoiceAsset is not the App's voice
310
+ library record or a permanent audio backup. Save the `voiceAssetId` actually
311
+ used for an approved take and reuse it to synthesize with that same voice;
312
+ there is no requirement to clone every audition again. Runtime revalidates its
313
+ owner, status and target compatibility. An expired or incompatible asset fails
314
+ explicitly rather than causing hidden recreation, upload or route switching.
315
+ This retains the voice identity, not identical audio or prosody on every take.
316
+
317
+ If the user instead chooses actual sample audio as a new reference, or edits,
318
+ denoises or replaces the reference, invalidate the previous reference/asset
319
+ association and use `reference-audio` creation for that new input. A cached
320
+ source VoiceAsset does not represent edited output audio. Preserve the actual
321
+ chosen audio and transcript in either workflow, distinguish the two actions in
322
+ the product, and apply normal resource eligibility and configuration checks.
323
+
324
+ ## Persisting results and resuming jobs
325
+
326
+ Runtime Job storage is bounded execution state, not the App's project database.
327
+ The current Runtime retains terminal Jobs for up to 30 minutes and applies a
328
+ count limit. Save complete validated results in App-managed storage while the
329
+ Job is available; adopt output artifacts when the project needs to retain them.
330
+ Persisting only a Job ID does not preserve its result or artifact bytes.
331
+
332
+ When resuming a project, reuse complete App-owned results. If a step has only
333
+ an old Job ID, and the normal public Job read explicitly returns `not-found`,
334
+ record that reference as unavailable. An explicit continue/retry action may
335
+ then submit that unfinished step again from its original input and save the new
336
+ ID. Do not poll a missing Job indefinitely, mark it completed, or rerun already
337
+ completed project steps. Permission, session and transport errors are different
338
+ failures and must not trigger the missing-Job recovery path.
339
+
340
+ ## Structured text
341
+
342
+ `createNimiLocalAppTextModel(client.ai)` binds text generation to an installed
343
+ App's protected session. Its name does not restrict execution to a local model:
344
+ the App's committed AI configuration chooses Local or Cloud.
345
+
346
+ Request JSON with `responseFormat: { type: 'json-object' }` and consume it only
347
+ after `generateText` completes. A configured route is not proof that every text
348
+ behavior is available; unsupported behavior fails before dispatch, and malformed
349
+ model output remains a failure. Do not extract a plausible JSON fragment or
350
+ change providers automatically to turn that failure into success.
351
+
352
+ The matching development Runtime admits DeepSeek `deepseek-flash` (currently
353
+ served by V4.1 Flash), `deepseek-v4-flash` and `deepseek-v4-pro`. These provider
354
+ API names are not immutable weight-version pins. Record the exact configured
355
+ target and test date when comparing results; prefer the current `deepseek-flash`
356
+ name for new Flash selections.
357
+
358
+ The exact adapters support JSON-object output or native function-tool calls,
359
+ including streamed completion, complete tool arguments and tool-result turns.
360
+ These are separate admitted combinations: do not combine tools and JSON output.
361
+ Thinking is disabled; requested reasoning, JSON Schema, media input, `topK` and
362
+ `seed` are not admitted by this slice. The App still uses the same model interface
363
+ and AI configuration; it never calls DeepSeek directly or executes a model's
364
+ tool request inside Runtime.
365
+
366
+ ## Language analysis
367
+
368
+ Use the `text.annotate` AI configuration capability and submit an asynchronous
369
+ `text-annotate` Job through the existing scenario Job API:
370
+
371
+ ```ts
372
+ const { job } = await client.ai.scenarioJobs.submit({
373
+ type: 'text-annotate',
374
+ language: 'en',
375
+ texts: ['A sentence to analyze.'],
376
+ });
377
+ // Subscribe or get this Job through the same scenarioJobs service.
378
+ // Read job.textAnnotation only after status === 'completed'.
379
+ ```
380
+
381
+ `texts` is an ordered batch of
382
+ 1–64 strings, including empty strings, totaling at most 512 KiB of UTF-8.
383
+ The completed Job's `textAnnotation.documents` preserves that batch order and
384
+ the exact original text and whitespace. Each document contains:
385
+
386
+ - `text`, `language` and an ordered `tokens` array.
387
+ - Each token's `text`, `start`, `end`, `headIndex`, `partOfSpeech`, `dependency`
388
+ and `isPunctuation`.
389
+ - `sentences`, each with `startToken` and exclusive `endToken`.
390
+
391
+ Token `start`/`end` count **Unicode scalar values**, not UTF-8 bytes or JavaScript
392
+ UTF-16 code units. Python can slice its original string directly; JavaScript can
393
+ use `Array.from(document.text).slice(start, end).join('')`. Token array positions
394
+ are their indices, heads are document-local, and a span's original text extends
395
+ from its first token's start to its last token's end. Sentence spans partition
396
+ the token array. Empty documents have no tokens or sentences.
397
+
398
+ The initial local spaCy implementation uses the original md 3.8.0 pipelines for
399
+ en/de/es/fr/it/ru/zh/ja. The active Nimi model configuration must contain the
400
+ pipeline for the requested language. `language` validates that choice; it does
401
+ not override machine selection. Model installation and dependency preparation
402
+ belong to Nimi, and inference never downloads a model in the App. A batch is
403
+ bounded to 65536 tokens and a 16 MiB normalized result; oversized or failed analysis
404
+ returns failure rather than partial annotations. Keep subtitle splitting rules,
405
+ translation, time matching, project state and repeated analysis in the App.
406
+ These annotations contain no audio timestamps or generated replacement text.
407
+
408
+ This addition requires a matching development Runtime, SDK, Kit and native
409
+ package set. Keep using the documented local tarball workflow during iteration;
410
+ package publication is not a development prerequisite.
411
+
412
+ ## Text decisions
413
+
414
+ Use the `text.decide` AI configuration capability and the synchronous
415
+ `text-decide` execute variant to score App-authored questions about one state:
416
+
417
+ ```ts
418
+ const controller = new AbortController();
419
+ const { output, traceId } = await client.ai.scenario.execute({
420
+ type: 'text-decide',
421
+ state: { json: { hand: ['A', 'K'], pot: 12 } }, // or { text: '...' }
422
+ questions: [
423
+ { id: 'action', instructions: { text: 'Choose the action.' }, kind: 'choice',
424
+ candidates: [{ id: 'fold' }, { id: 'call', description: { text: 'Match the bet.' } }] },
425
+ { id: 'bluff', instructions: { text: 'Is the opponent bluffing?' }, kind: 'boolean' },
426
+ ],
427
+ }, { signal: controller.signal, timeoutMs: 10_000 });
428
+ // output.type === 'text-decide'; output.answers follow the submitted order.
429
+ ```
430
+
431
+ State is nonblank text or one JSON object or array (at most 256 KiB, 64 nesting
432
+ levels); 1–64 questions with unique IDs; instructions at most 32 KiB; a choice has
433
+ 2–255 unique candidates; descriptions and boolean criteria are optional and at most
434
+ 8 KiB; IDs are 1–64 bytes without surrounding whitespace or control characters; the
435
+ complete request is at most 1 MiB. JSON content is sent as its `JSON.stringify`
436
+ text, so key insertion order is kept. Invalid input fails before transport.
437
+
438
+ Each choice answer carries the selected candidate and one probability per submitted
439
+ candidate in submitted order; each boolean answer carries `trueProbability`. There is
440
+ no confidence, usage, provider or model field. Thresholds, grouping and actions stay
441
+ in the App. Input that is valid but cannot be encoded completely by the configured
442
+ implementation fails with `ai-input-limit-exceeded` (`AI_INPUT_LIMIT_EXCEEDED`).
443
+
444
+ Every execute variant accepts per-call options. Aborting settles the call at once
445
+ with `OPERATION_ABORTED`; an elapsed `timeoutMs` (1–120000) settles it with
446
+ `OPERATION_TIMEOUT`. Either failure cancels the pending Runtime call, never returns a
447
+ late result and leaves the protected App session valid.
51
448
 
52
449
  ## Public entry points
53
450
 
@@ -64,14 +461,38 @@ The installed package's `exports` and `.d.ts` files define the exact callable
64
461
  surface. Framework adapters are separate packages; do not infer that an
65
462
  adapter is publicly available from a source-workspace directory.
66
463
 
67
- For Vercel AI SDK 6 Apps, `@nimiplatform/sdk-adapter-vercel-ai` 0.1.0 provides
68
- `createNimiLocalAppVercelLanguageModel({ ai: client.ai })` for `streamText` and
69
- the existing UI/tool-loop protocol. Read its package README before mapping
70
- images or conversation history; preserve text/tool provider metadata for opaque
71
- continuity. It uses SDK 0.13.0 and the matched Kit/native carrier above.
464
+ For Vercel AI SDK 6 Apps, the separate `@nimiplatform/sdk-adapter-vercel-ai`
465
+ package provides `createNimiLocalAppVercelLanguageModel({ ai: client.ai })` for
466
+ `streamText` and the existing UI/tool-loop protocol. Adapter 0.3.0 pairs with
467
+ SDK 0.19.0 and Kit/native 0.16.0; the earlier adapter 0.1.0 declares SDK
468
+ `^0.13.0` and does not accept a later SDK minor. Read its package README before
469
+ mapping images or conversation history, and preserve text/tool provider
470
+ metadata for opaque continuity.
72
471
 
73
472
  Source and issue reporting: [nimiplatform/nimi](https://github.com/nimiplatform/nimi).
74
473
  Include the selected SDK, Kit, App Tools and Runtime versions, the actual App
75
474
  operation, expected/observed behavior, and a bounded reproduction.
76
475
 
77
476
  Licensed under [Apache-2.0](LICENSE).
477
+
478
+ ### Observing and canceling Jobs
479
+
480
+ All Job runners and observers use `getIntervalMs` (default `1000` milliseconds,
481
+ positive integer) to query the same original Job even when an event subscription
482
+ is healthy and silent. Gets are serialized. `onObservation` receives each full
483
+ Get, including a transient `observationIssue`; the issue does not change the Job
484
+ status. `runNimiRuntimeScenarioJob` and `observeNimiRuntimeScenarioJob` return that
485
+ complete terminal response as `response`, including typed outer results.
486
+
487
+ A runner's `signal` is an explicit user Cancel request. Use its
488
+ `observationSignal` for view disposal, navigation or stopping observation. For
489
+ `observeNimiRuntimeScenarioJob`, `signal` only
490
+ detaches and optional `cancelSignal` requests Cancel explicitly. Cancel rejection
491
+ is reported as an observation error with the original Job ID, without a fabricated
492
+ terminal state. A successful Cancel still requires a full terminal Get. Technical
493
+ `callOptions` budgets remain independent of Job lifetime.
494
+
495
+ Save the business action before Submit and persist its returned Job ID. Reopen
496
+ by original ID or submission lookup; missing or expired actions never trigger a
497
+ new Submit. Observers do not own App history or media custody. Read/adopt results
498
+ through their formal typed, artifact or resource owners while retention permits.
@@ -1,3 +1,6 @@
1
+ import { type NimiSpeechInputCapabilities } from './speech-input.js';
2
+ import type { NimiMusicInputCapabilities } from './music-input.js';
3
+ import { type NimiVoiceReferenceInputCapabilities } from './voice-reference-input.js';
1
4
  import type { AIConfig, AIConfigCapabilityIntent, AIConfigOwner, GetAppAIConfigRequest, GetAppAIConfigResponse, ListAppAIConfigOptionsRequest, ListAppAIConfigOptionsResponse, OverwriteAppAIConfigRequest, OverwriteAppAIConfigResponse } from '../../core-generated/runtime-protobuf/runtime/v1/capability_configuration.js';
2
5
  import type { RuntimeTypedCallOptions } from '../../core-generated/runtime-typed-client.js';
3
6
  import { type NimiTextBehaviorCapabilityProjection } from '../../runtime/text-behavior-projections.js';
@@ -20,6 +23,8 @@ export type NimiSharedLocalAgentAIConfigSnapshot = NimiAIConfigSnapshot & {
20
23
  };
21
24
  export type NimiAIConfigEffectiveState = 'ready' | 'missing' | 'blocked' | 'unavailable';
22
25
  export type NimiAIConfigEffectiveSelection = {
26
+ readonly reasoningInput?: import('./reasoning.js').NimiReasoningInputCapabilities;
27
+ readonly textReplay?: NimiTextReplayCompatibility;
23
28
  readonly capabilityContract: string;
24
29
  readonly state: NimiAIConfigEffectiveState;
25
30
  readonly resource: {
@@ -31,6 +36,13 @@ export type NimiAIConfigEffectiveSelection = {
31
36
  } | null;
32
37
  readonly reasons: readonly string[];
33
38
  };
39
+ export type NimiTextReplayCompatibility = {
40
+ readonly acceptedCarriers: readonly {
41
+ readonly kind: string;
42
+ readonly version: number;
43
+ readonly executionModes: readonly ('sync' | 'stream')[];
44
+ }[];
45
+ };
34
46
  export type NimiAIConfigOverwriteInput = {
35
47
  readonly expectedRevision: string;
36
48
  readonly capabilities: readonly NimiPortableAppAIConfigIntent[];
@@ -76,6 +88,9 @@ export type NimiSharedLocalAgentAIConfigOptionsQuery = NimiAIConfigOptionsQuery
76
88
  readonly kind: 'voice-assets';
77
89
  };
78
90
  export type NimiAIConfigLocalLoadoutOption = {
91
+ readonly referenceAudioInput?: NimiVoiceReferenceInputCapabilities;
92
+ readonly musicInput?: NimiMusicInputCapabilities;
93
+ readonly speechInput?: NimiSpeechInputCapabilities;
79
94
  readonly loadoutRef: string;
80
95
  readonly label: string;
81
96
  readonly capabilityContract: string;
@@ -98,6 +113,9 @@ export type NimiAIConfigCloudConnectorOption = {
98
113
  readonly reasons: readonly string[];
99
114
  };
100
115
  export type NimiAIConfigCloudTargetOption = {
116
+ readonly referenceAudioInput?: NimiVoiceReferenceInputCapabilities;
117
+ readonly musicInput?: NimiMusicInputCapabilities;
118
+ readonly speechInput?: NimiSpeechInputCapabilities;
101
119
  readonly connectorRef: string;
102
120
  readonly label: string;
103
121
  readonly capabilityContract: string;
@@ -1 +1 @@
1
- {"version":3,"file":"capability-configuration.d.ts","sourceRoot":"","sources":["../../../core/ai/capability-configuration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,wBAAwB,EAMxB,aAAa,EAEb,qBAAqB,EACrB,sBAAsB,EACtB,6BAA6B,EAC7B,8BAA8B,EAC9B,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,2EAA2E,CAAC;AAInF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,EAEL,KAAK,oCAAoC,EAC1C,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAS5D,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AAC9C,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,CAAC;AAEpE,MAAM,MAAM,6BAA6B,GAAG,wBAAwB,CAAC;AAErE,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC;AAE/C,MAAM,MAAM,2CA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AAE,QAAQ,CAAC,EAAE,EAAE,wBAAwB,CAAA;KAAE,GAAG,wBAAwB,CAAC;CACxF,GAAG,iCAAiC,CAGpC"}
@@ -1,3 +1,8 @@
1
+ import { projectSpeechInputCapabilities } from './speech-input.js';
2
+ import { projectReasoningInputCapabilities } from './reasoning.js';
3
+ import { SpeechInputCapabilities } from '../../core-generated/runtime-protobuf/runtime/v1/capability_configuration.js';
4
+ import { projectRuntimeMusicInput } from './music-input-wire.js';
5
+ import { projectVoiceReferenceInput } from './voice-reference-input.js';
1
6
  import { Struct as RuntimeStruct } from '../../core-generated/runtime-protobuf/google/protobuf/struct.js';
2
7
  import { AIConfigEffectiveState } from '../../core-generated/runtime-protobuf/runtime/v1/capability_configuration.js';
3
8
  import { ReasonCode as RuntimeReasonCode } from '../../core-generated/runtime-protobuf/runtime/v1/common.js';
@@ -150,6 +155,20 @@ function createAppAIConfigOperations(runtime, appId, owner) {
150
155
  }
151
156
  function projectEffectiveSelection(value) {
152
157
  const state = projectEffectiveState(value.state);
158
+ if (value.reasoningInput && (value.capabilityContract !== 'text.generate' || state !== 'ready'))
159
+ return invalidConfiguration('Reasoning input selection is invalid');
160
+ if (value.textReplay && (value.capabilityContract !== 'text.generate' || state !== 'ready' || value.textReplay.acceptedCarriers.length > 16))
161
+ return invalidConfiguration('Text replay selection is invalid');
162
+ const replayIdentities = new Set();
163
+ for (const format of value.textReplay?.acceptedCarriers ?? []) {
164
+ const identity = JSON.stringify([format.kind, format.version]);
165
+ if (!format.kind || format.kind.trim() !== format.kind || new TextEncoder().encode(format.kind).byteLength > 128 || /[\u0000-\u001f\u007f]/u.test(format.kind)
166
+ || !Number.isSafeInteger(format.version) || format.version < 1 || format.version > 0xffff_ffff || replayIdentities.has(identity)
167
+ || !format.executionModes.length || format.executionModes.length > 2 || new Set(format.executionModes).size !== format.executionModes.length
168
+ || !format.executionModes.every((mode) => mode === 1 || mode === 2))
169
+ return invalidConfiguration('Text replay carrier format is invalid');
170
+ replayIdentities.add(identity);
171
+ }
153
172
  const resource = value.resource.oneofKind === 'local'
154
173
  ? { oneofKind: 'local', local: projectLocalResource(value.resource.local) }
155
174
  : value.resource.oneofKind === 'cloud'
@@ -166,6 +185,20 @@ function projectEffectiveSelection(value) {
166
185
  state,
167
186
  resource,
168
187
  reasons: Object.freeze([...value.reasons]),
188
+ ...(value.reasoningInput ? { reasoningInput: projectReasoningInputCapabilities(value.reasoningInput, invalidConfiguration) } : {}),
189
+ ...(value.textReplay ? { textReplay: {
190
+ acceptedCarriers: value.textReplay.acceptedCarriers.map((format) => ({
191
+ kind: requireText(format.kind, 'Text replay carrier kind is invalid'),
192
+ version: format.version,
193
+ executionModes: format.executionModes.map((mode) => {
194
+ if (mode === 1)
195
+ return 'sync';
196
+ if (mode === 2)
197
+ return 'stream';
198
+ return invalidConfiguration('Text replay execution mode is invalid');
199
+ }),
200
+ })),
201
+ } } : {}),
169
202
  });
170
203
  }
171
204
  function projectCloudConnectorResource(value) {
@@ -192,6 +225,9 @@ function projectCloudTargetResource(value) {
192
225
  }),
193
226
  providerModelTarget: RuntimeStruct.toJson(value.providerModelTarget),
194
227
  supportedFeatures: Object.freeze([...value.supportedFeatures]),
228
+ ...(value.musicInput ? { musicInput: projectRuntimeMusicInput(value.musicInput) } : {}),
229
+ ...(value.speechInput ? { speechInput: projectSpeechInputCapabilities(SpeechInputCapabilities.toJson(value.speechInput, { emitDefaultValues: true })) } : {}),
230
+ ...(value.referenceAudioInput ? { referenceAudioInput: projectVoiceReferenceInput(value.referenceAudioInput) } : {}),
195
231
  state: value.state === AIConfigEffectiveState.AI_CONFIG_EFFECTIVE_STATE_READY ? 'ready' : 'blocked',
196
232
  reasons: Object.freeze([...value.reasons]),
197
233
  });
@@ -211,6 +247,9 @@ function projectLocalResource(value) {
211
247
  implementationSupportedFeatures: Object.freeze([...value.implementationSupportedFeatures]),
212
248
  configuredFeatures: Object.freeze([...value.configuredFeatures]),
213
249
  textBehaviors: projectNimiTextBehaviorCapabilities(value.textBehaviors),
250
+ ...(value.musicInput ? { musicInput: projectRuntimeMusicInput(value.musicInput) } : {}),
251
+ ...(value.speechInput ? { speechInput: projectSpeechInputCapabilities(SpeechInputCapabilities.toJson(value.speechInput, { emitDefaultValues: true })) } : {}),
252
+ ...(value.referenceAudioInput ? { referenceAudioInput: projectVoiceReferenceInput(value.referenceAudioInput) } : {}),
214
253
  state: value.state === AIConfigEffectiveState.AI_CONFIG_EFFECTIVE_STATE_READY ? 'ready' : 'blocked',
215
254
  reasons: Object.freeze([...value.reasons]),
216
255
  });