@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/CHANGELOG.md CHANGED
@@ -1,8 +1,470 @@
1
1
  # SDK migration notes
2
2
 
3
+ ## 0.21.0 — 2026-10-11
4
+
5
+ Use this release with Kit/native 0.18.0 and a Runtime that implements the same
6
+ protected App contracts. Package publication does not publish a Runtime or a
7
+ complete Nimi installer. The development entries below retain the detailed
8
+ migration history, including the changes from earlier 0.x versions.
9
+
10
+ The main migration is the unified asynchronous Job lifecycle: preserve the
11
+ original Job ID, read a full terminal Get response, and request cancellation
12
+ explicitly. Remove Job `timeoutMs` options. Embedding retrieval purpose, speech
13
+ diarization, speaker representations, and owned World image inputs require the
14
+ matching Runtime and native carriers.
15
+
16
+ ## SDK 0.21.0 — Text-stream failure preservation (development)
17
+
18
+ The protected text stream and Local App text model now retain the operation
19
+ failure when stream cleanup also fails. The combined `AggregateError` keeps the
20
+ original error as `cause`, both errors in `errors`, and the primary `NimiError`
21
+ metadata (including trace and interruption disposition) on the combined error.
22
+ `isNimiError` continues to work for a typed primary failure. Repeated observation
23
+ of the same close rejection does not duplicate it; a cleanup-only failure still
24
+ rejects. This does not add automatic resubmission or change external stop proof.
25
+
26
+ ## SDK 0.21.0 / Kit and native 0.18.0 — Unified asynchronous Job lifecycle (development)
27
+
28
+ This unpublished 0.x development set makes a breaking public contract change. Upgrade the matching Runtime, SDK, Kit and native carriers together; version labels alone do not identify a build. Every supported asynchronous CapabilityContract uses Submit, the original Job ID, Get, formal contract result readers and explicit Cancel regardless of its Local, synchronous remote or native task implementation. Query and result acquisition remain Runtime-owned. Public text unary/stream, speech stream and independent realtime/frame Sessions keep their own forms.
29
+
30
+ Remove Job `timeoutMs` options and automatic Job deadline UI. Old SDK keys are rejected, including zero. Legacy Job wire timeout fields accept only absent/zero; every nonzero value fails before route selection or execution. SYNC/STREAM call budgets remain; use separate callOptions for a submission or observation call. RPC timeout or observer detach does not cancel an admitted Job. An App business timer must explicitly call Cancel and is not caught up while the App is closed or asleep.
31
+
32
+ Every supported protected Job may carry an owner-scoped `clientSubmissionId`. Save the action before Submit. Recover by pure identity lookup and Get on its original ID; missing or uncertain receipts never authorize automatic Submit. Generic identity follows the Job's ordinary retention and does not extend every result to the existing retained-media 24-hour window. Configuration changes cannot create a second generation under the same retained action identity.
33
+
34
+ The generation identity builder now emits bounded ASCII action keys accepted by the protected carrier. Persisted actions and original Job IDs must not be rewritten or resubmitted during this migration. Job-head builders emit only the reserved zero wire timeout slot; their author options no longer accept a business timeout.
35
+
36
+ Consumers retain at least one full terminal Get response even when Submit returns a terminal Job, including voice resource/reference and vision result fields. Continue using the formal artifact/ScenarioOutput/resource readers. Generic observers expose caller-controlled Get cadence, including during a healthy subscription. Observation issues are response-local and do not prove failure of accepted remote work. CANCELED closes local result publication; its typed stop outcome can remain unconfirmed and never proves billing stopped.
37
+
38
+ The generation facade `get(jobId)` now returns the full Get response; read its Job from `.job`. Modality runner results also retain the full response as `.response`. The observer now performs serialized Get every `getIntervalMs` (default 1000 ms) even with a silent healthy stream. `onObservation` exposes full responses and the common SDK result retains `response`. Migration: runner `signal` explicitly requests Cancel; bind view disposal to `observationSignal`. Pure observe `signal` detaches, while optional `cancelSignal` explicitly requests Cancel. Cancel rejection retains the original Job identity and never fabricates a terminal state. Kit adds typed observe entrypoints for image/video generation, speech synthesis and transcription. These public additions and 0.x timeout-option removals are a minor change.
39
+
40
+ The unreachable synchronous protected image execute union is removed. Its request and response tag 2 and `image_generate` names are reserved, and the orphan `LocalAppImageGenerateOutput` type is removed. Use image Job submission; a remote synchronous protocol still produces a public Job. The declared wire changes must match the published-baseline findings exactly; do not replace the baseline image or source tag.
41
+
42
+ ## 0.21.0 — Captured embedding retrieval purpose (development)
43
+
44
+ The unpublished matching Runtime/Kit/native 0.18.0 set adds optional `purpose: 'retrieval-document' | 'retrieval-query'` to existing `text-embed` calls. This is a minor public input widening. The exact Nomic-bert Model Contract now requires that purpose; the old unprefixed invocation is rejected, with no compatibility fallback. Drivers map the model protocol, not Apps. Unreviewed explicit-purpose compositions fail unsupported; legal native defaults of other compositions remain unchanged.
45
+
46
+ Use document purpose for indexed material and query purpose for lookup. The reviewed pair returns one compatible actual `spaceId`, separate from earlier raw vectors. Keep width/usage/cancellation/account checks and rebuild or separate derived indexes when actual spaces differ. Rebuild full SDK/Kit/native archives and reinstall matched consumers; changing version labels or a lock alone is insufficient. No public release is performed here.
47
+
48
+ ## 0.21.0 — Source-local speech diarization (development)
49
+
50
+ The unpublished matching Runtime and Kit/native 0.18.0 set widens `speech-transcribe` completed results with optional `diarization: { status, durationSeconds, intervals }`. Interval labels are local to one Job; time is measured on the submitted source, retains real overlap and cannot exceed its decoded duration. A requested unsupported combination fails explicitly, including an exact short-window speaker count that the initial Sherpa path cannot execute. Persist the complete result and apply the known input-chunk offset once. App identity matching remains a separate business consumer of compatible `audio.speaker.embed` results. Upgrade complete matching packages together; earlier closed-set projections reject or omit this added result.
51
+
52
+ ## 0.21.0 — Speaker representations (development)
53
+
54
+ The matching unpublished Runtime and Kit/native 0.18.0 set adds asynchronous `audio-speaker-embed` App Jobs. A completed Job carries `speakerEmbedding: { vector, spaceId }`; preserve both. Compare or average only matching actual spaces and dimensions. The result is a speaker representation, without person identity, authentication, transcription or diarization claims. Input is original audio bytes/URI or an owned audio artifact with an optional frame range. Older packages cannot project the new closed-set task, so upgrade complete matching packages together.
55
+
56
+ ## SDK 0.21.0 / Kit and native 0.18.0 — Owned World image inputs (development)
57
+
58
+ The compatible input widening belongs to this unpublished minor development set. Use the newly built matching Runtime, SDK, Kit/native and Rust carrier 0.10.0 packages; a matching version label alone does not identify their contents. `world-generate` now accepts `image: { artifactId, projection }`, where projection is `ordinary` or `equirectangular-360`. Upload image bytes through the existing protected artifact upload first; prompt may be omitted when an image is present. Text-only requests still require a prompt. App paths, data URLs, provider IDs and implicit panorama detection are not inputs. Runtime captures the owned bytes before publishing the Job and performs provider upload privately. PNG/JPEG/WebP are bounded to 20 MB and 16 MP with upright orientation; panorama intent additionally requires 2:1 geometry.
59
+
60
+ World results remain portable ZIP artifacts. Persist the original App source, prompt, configuration and creation time for recovery, observe an existing Job instead of submitting again, and retain unknown submission receipts without automatic replay.
61
+
62
+ ## Next minor — explicit Agent reference voice (development)
63
+
64
+ The current bound sound sample, including an opening line, can be cloned once through the existing App `voice.create` job and bound through Agent presentation CAS. No producer voice handle is imported and no shared route changes implicitly. Covered Apps pass the same canonical client to the Agent Center factory to enable the journey. The retained `clientSubmissionId` carrier and recovery-expiry projection now also admit provider-persistent Cloud `voice-create`; use matching Runtime, SDK and Kit/native builds. This is an additive next-minor capability, staged without a package publication.
65
+
66
+ ## Next minor — Native Integration carrier (0.x breaking change, development)
67
+
68
+ Weixin connection setup and put input may omit `displayName`; the matching Runtime derives a nonempty display only from the confirmed platform account. Nameless same-identity refresh preserves the current stored display and existing exact grants. Other adapters retain their required names. This input widening is a 0.x minor; upgrade SDK, Kit/native and Runtime together.
69
+
70
+ Upgrade Runtime, SDK, Kit and native builds together. Connection management now requires the closed `config` object for the selected adapter: MCP uses `config: { mcp: { endpoint } }`; Telegram uses `config: { telegram: {} }`. The old top-level `endpoint` is removed and rejected. Existing local connection records require a one-time explicit reconfiguration; the product does not migrate or retry them automatically.
71
+
72
+ The protected carrier adds scope-bound connection setup and the parameter-free `open-integrations` intent. Ordinary Apps declare only `integration.consume`; verified Home owns setup, credentials and permission management. Native messaging descriptors use `weixin`, `feishu`, `qq-official` and `onebot-v11`; an unavailable handler remains unavailable. Keep Integration call history separate from AI capability history, and never resend an `unconfirmed` write automatically.
73
+
74
+ ## SDK 0.21.0 / Kit and native 0.18.0 — Estimated music notes (development)
75
+
76
+ Use the complete matching Runtime, SDK 0.21.0, Kit/native 0.18.0 and Rust carrier 0.10.0 package set. `music.transcribe` adds `note-events` without changing the existing three part meanings. The public input/profile/result parsers admit its typed value; older clients cannot project this new closed-set part. Basic Pitch's exact Windows CPU profile supports MIDI, timeline or both and reports unknown completeness unless the engine supplies stronger evidence.
77
+
78
+ The timeline uses original source frames with the captured range offset once. MIDI times are relative to that selected interval, using the declared 1 ms SMPTE encoding clock; its fixed note-on value and channels are encoding conventions, not measured dynamics or instrument identity. Preserve the original audio and both artifact references. Unsupported parts and ABC fail before publication; do not silently convert or omit outputs.
79
+
80
+ ## 0.20.0 — Common Reasoning and protected App summaries (development)
81
+
82
+ Use SDK 0.20.0 with Kit and native package 0.17.0, Rust carrier 0.9.0 and the matching Runtime. Omitted reasoning now preserves the selected implementation default. Callers that require reasoning off must explicitly request `activation: disabled` and handle typed refusal when the selected target has no off mapping. Required effort includes `xhigh`; the protected App model accepts the common typed controls through `parameters.reasoning`.
83
+
84
+ The protected text contract carries authorized summary deltas and separate ordered summary items, plus Runtime-owned input support projections. Persist summaries separately from final text together with the unchanged opaque continuity. Replay returned items in order; do not edit summaries or opaque bytes. HIDDEN never exposes summary text. These are 0.x public type changes: upgrade the complete package set together.
85
+
86
+ ## Next pre-1.0 hard cut — Image seeds
87
+
88
+ Image requests admit `-1` for randomness and `0..2147483647` for fixed seeds. Omission retains the committed default; zero stays fixed. Other negative values and overflowing batches fail before dispatch. Successful typed image artifacts carry nonnegative concrete seeds. The local stable-diffusion.cpp image dialect is v4; old Loadouts require explicit owner preparation and commitment of their bindings and options, with no automatic migration or legacy dialect.
89
+
90
+ Use matching Runtime, SDK, Kit and native packages. This narrows an input contract and is a pre-1.0 breaking change, not a compatible type widening; the development package versions have not been publicly released by this delivery.
91
+
92
+ ## Next minor (compatible additions)
93
+
94
+ The matching SDK adds `validateNimiLocalAppSpeechAlignment`; Kit re-exports it only through its SDK contract seam for the Electron Host. This new public validator is a compatible next-minor export. It validates the closed product-text structure before permitting spoken `token` fields; raw token/credential projections remain forbidden.
95
+
96
+ Protected synthesized audio artifacts now retain the existing Runtime SpeechAlignment as a dedicated typed optional field. Matching Runtime, SDK, Kit and native builds are required; WORD results cannot silently lose timing. Zero milliseconds remain present, unknown units and malformed tokens fail closed, and raw credentials remain forbidden. This is a compatible public type widening staged for the next minor; this local development delivery does not publish a new package version.
97
+
98
+ Embedding requests add optional positive integer `dimensions` in the core AI client and protected `text-embed` spec. Use matching Runtime, SDK, Kit and native builds. The selected Runtime implementation admits the requested width; the first shortening group is OpenAI `text-embedding-3-small` and `text-embedding-3-large`. Omit the field for the captured native default. Unsupported compositions and out-of-range widths fail before execution. Returned vectors must match the input count and requested width, remain finite and include their Runtime-owned `spaceId`. Missing provider usage remains unspecified.
99
+
100
+ Protected music generation adds owned videoReference, and speech synthesis adds separate identityAudio/performanceAudio with exact transcript. Consume matching Runtime, Kit and native builds. Resource input profiles explicitly declare video mode and Driver speech limits; missing declarations fail closed. Reference-conditioned VoxCPM is currently supported by the Windows standard backend, without creating a reusable VoiceAsset.
101
+
102
+ Protected text steps accept nonempty App-owned initiation/continuation context
103
+ without a user-role message. Roles and content are unchanged; no filler turn is
104
+ inserted. Empty and opaque-only input, malformed tools, media placement and
105
+ capacity violations still fail. The narrow candidate API keeps its own contract.
106
+ Use matching SDK, native and Runtime builds; exact Driver support still applies.
107
+
108
+ The protected Local App text model and Vercel factory accept an explicit
109
+ `executionMode: 'sync'`. This uses the existing cancellable Scenario execute
110
+ carrier for tasks whose tools or strict schema are admitted only in SYNC. The
111
+ default remains STREAM. In SYNC, model events carry the complete ordered result
112
+ only after execution finishes; no automatic retry or mode switching occurs.
113
+ Tool loops, request controls and continuity storage remain caller-owned.
114
+
115
+ The Local App text binding accepts ordered system messages beyond the initial
116
+ prefix and preserves their role and position. It requires matching Runtime and
117
+ Kit native carrier builds. Exact Driver admission still decides support; an
118
+ unsupported ordered-system combination fails before dispatch. Message counts,
119
+ byte limits and the requirement for a user message are unchanged.
120
+
121
+ Ready text.generate effective selections may carry `textReplay` with exact accepted carrier kind/version/execution modes. Missing facts remain unconfirmed; an empty acceptedCarriers list means no acceptance. It is informational, and each inference still validates the captured request.
122
+
3
123
  These package-local notes cover the App-facing changes relevant to the current
4
124
  published baseline. They are not a complete reconstruction of older releases.
5
125
 
126
+ ## 0.19.0: upgrading from 0.15.0
127
+
128
+ 0.15.0 is the last SDK published before 0.19.0. SDK 0.16.0, 0.17.0, 0.18.0 and
129
+ 0.18.1 were development numbers that never reached npm, so every section above
130
+ "0.15.0" applies when upgrading from 0.15.0, including those marked "next
131
+ minor". Use SDK 0.19.0 with Kit and its native package 0.16.0, Vercel adapter
132
+ 0.3.0, Rust shell crates 0.8.0 and the matching Runtime. The Conversation work
133
+ fields and `conversation.listToolCalls` / `submitToolResult` described under
134
+ 0.17.0 were replaced before 0.19.0 and need no migration from 0.15.0.
135
+
136
+ Account and Connector mutation replies can carry `auditDiagnostic` while the effect remains committed. Preserve that result and do not retry the mutation because its audit record failed. Connector inventory consumers can receive these diagnostics through `onAuditDiagnostic`. Local environment plans additionally accept `{ mediaCodec: true }` for the shared audio/video component; this selector excludes capability and candidate selectors and still requires explicit plan confirmation.
137
+
138
+ Required changes from 0.15.0:
139
+
140
+ - A custom standard-shell carrier implements the exact `activity` namespace,
141
+ `agentWork`, `integration` and `agents.getIntroduction`, carries Integration
142
+ call `targetDisplayName` and `accountLabel`, and carries Local-App media bytes
143
+ as `Uint8Array` (0.16.0, 0.19.0 and next-minor sections). Kit 0.16.0 is the
144
+ carrier that does this.
145
+ - Pass and read Local-App media bytes as `Uint8Array`; JSON `number[]`,
146
+ `Float64Array` and `DataView` are rejected (Local-App media bytes).
147
+ - Adopt the typed `musicGeneration` result; the old prior-audio extension is
148
+ rejected (0.16.0).
149
+ - LocalAgent references carry the required `agentBinding` and
150
+ `activityAgentRef`. Persist a binding only to match a fresh
151
+ `agents.listReferences()` result and use its fresh `agentHandle` (0.17.0,
152
+ 0.19.0).
153
+ - Declare `app.activity` before using `client.activity`, and register the
154
+ `agent.work` declaration before using `agentWork` (0.16.0, 0.19.0).
155
+ - A host that signed in the retired Codex Connector implements the new
156
+ connector auth acquisition host, and `deleteConnector()` callers or
157
+ implementations use its result (ChatGPT plan sign-in).
158
+
159
+ ## Typed text failures (next minor, development)
160
+
161
+ - `runNimiTextTurn`, `runNimiTextGenerate` and `streamNimiTextResponse` report
162
+ a failure under the owner's typed `reasonCode`. Before, an error from the
163
+ standard-shell carrier was reported under the carrier's transport category
164
+ in `code`, so a Runtime refusal such as `ai-text-behavior-unsupported` read
165
+ as `runtime-permission-denied`.
166
+ - `streamNimiTextResponse` rethrows an owner `NimiError` unchanged, keeping
167
+ its `traceId`, `retryable`, `actionHint` and interruption. It creates a new
168
+ `NimiError` only for other failures, and then keeps their `actionHint` and
169
+ Runtime or Realm source.
170
+
171
+ ## ChatGPT plan sign-in (next minor, development)
172
+
173
+ - The only browser-managed Connector profile is `openai_chatgpt_plan`, signed
174
+ in with Sign in with ChatGPT: dynamic client registration, a loopback
175
+ callback on `127.0.0.1`, PKCE with state and nonce, and ID-token
176
+ verification against OpenAI's published keys. The Codex device-code profile
177
+ and the `openai_codex` provider are removed; an existing `openai_codex`
178
+ Connector stays listed only so it can be deleted, and every other use fails
179
+ typed.
180
+ - `NimiConnectorAuthAcquisitionNativeHost` changes shape. `proxyHttp`
181
+ carries only the `authorization_code_exchange` POST to the profile token URL
182
+ and the `jwks` GET to the profile key URL, and never follows a redirect.
183
+ `oauthTokenExchange` and `sleep` are removed, with the
184
+ `NimiConnectorAuthAcquisitionTokenExchangeInput` and `...Result` types.
185
+ Hosts add `startAuthorizationCallback(request, signal)`,
186
+ `hostIdentifier()` and optional `crypto`, and keep `openExternalUrl`,
187
+ `now` and `log`.
188
+ - `NimiManagedConnectorCredentialRuntime` also needs `getConnector`. It reads
189
+ only the issued client ID and account label for an explicit sign-in again.
190
+ - The acquisition request is `{ profileId, connectorId?, label? }`; omit
191
+ `connectorId` to create the Connector on the first sign-in. The pending state
192
+ is `{ authorizationUrl, expiresInSeconds }`, and the result adds
193
+ `accountLabel`. Failures throw `NimiConnectorAuthAcquisitionError` with a
194
+ typed `code`: `AUTHORIZATION_DENIED`, `PLAN_USAGE_NOT_GRANTED`,
195
+ `AUTHORIZATION_INVALID`, `REGISTRATION_UNAVAILABLE` or
196
+ `BROWSER_UNAVAILABLE`.
197
+ - Connector projections add `accountLabel` from the Runtime
198
+ `oauth_registration` projection. No token material crosses.
199
+ - Runtime renews the plan credential itself, and the SDK never refreshes it.
200
+ An ended sign-in fails with `AI_CONNECTOR_CREDENTIAL_MISSING` and action hint
201
+ `NIMI_CHATGPT_PLAN_REAUTHORIZE_ACTION_HINT`; a plan usage limit fails with
202
+ `AI_PROVIDER_RATE_LIMITED` and `NIMI_CHATGPT_PLAN_MANAGE_USAGE_ACTION_HINT`.
203
+ Use `nimiProviderUsesChatGPTPlan(provider)` to say near model choice that
204
+ usage counts toward the plan, and link people to
205
+ `NIMI_CHATGPT_PLAN_USAGE_URL`.
206
+ - `connectorInventory.deleteConnector()` resolves to `{ actionHint }` instead
207
+ of `void`. `NIMI_CHATGPT_PLAN_REVOCATION_UNCONFIRMED_ACTION_HINT` means the
208
+ Connector and its saved sign-in were deleted but OpenAI did not confirm the
209
+ sign-out. Implementations of `NimiRuntimeConnectorInventoryClient` return the
210
+ new result.
211
+
212
+ ## Runtime maintenance mode (next minor, development)
213
+
214
+ - `ReasonCode.RUNTIME_STORED_DATA_UNSUPPORTED` (767) is new. Runtime returns
215
+ it when an owner refused the stored data in the selected data root. In that
216
+ state Runtime serves only its maintenance surface and leaves that root
217
+ unchanged.
218
+ - The host-only `RuntimeServiceControlService.GetRuntimeServiceState` is new.
219
+ It reports `RUNTIME_SERVICE_MODE_ORDINARY` or
220
+ `RUNTIME_SERVICE_MODE_MAINTENANCE` with that reason. Ordinary Apps never
221
+ reach it.
222
+ - `NimiProductControlActivation` adds `reasonCode: 'DATA_ROOT_NOT_EMPTY'` and
223
+ `actionHint: 'choose_new_empty_root'`. Only the maintenance replacement
224
+ returns them, because it accepts only an absent or empty folder. Exhaustive
225
+ switches over these unions need the new cases.
226
+
227
+ ## Loadout recipe context fit (next minor, development)
228
+
229
+ - `NimiLoadoutRecipe.recommendedOptions` is new and always present. It holds
230
+ the options of the device recommendation: `defaultOptions`, plus the
231
+ Driver's explicit context size when the model's own context capacity does
232
+ not fit this device's memory.
233
+ - Recipe slots add optional `recommendedContextFit` for the recommended
234
+ model, and offers add optional `contextFit`
235
+ (`authoredContextSize`, `recommendedContextSize`, `recommendedOptions`).
236
+ They are absent when a model has no context evidence or does not fit.
237
+ Write `recommendedOptions` as given; do not build Driver option keys.
238
+ - Omitted context size still means the model's automatic capacity, and saved
239
+ Loadouts are unchanged. Recipe fixtures typed as `NimiLoadoutRecipe` need
240
+ the new `recommendedOptions` field.
241
+
242
+ ## Local-App media bytes (next minor, development)
243
+
244
+ - Local-App media bytes are exact `Uint8Array` views on the standard shell:
245
+ inline Job audio (`speech-transcribe` and `audio-separate` `audioSource`,
246
+ `voice-create` `referenceAudio`), `NimiLocalAppScenarioArtifact.bytes`,
247
+ artifact upload and read, Conversation attachment upload, artifact read and
248
+ voice transcription. JSON `number[]` bytes, `Float64Array`, `DataView` and
249
+ other views are rejected; there is no compatibility path. Pass the audio
250
+ you already hold as a `Uint8Array` and read artifact bytes as one.
251
+ - The SDK sends a detached copy of the view's own byte range, so a view into a
252
+ larger buffer does not carry that buffer across IPC and later writes do not
253
+ change a submitted request. Size limits are unchanged.
254
+ - Custom standard-shell carriers must accept and return these fields as
255
+ `Uint8Array`. `isNimiLocalAppByteView`, `copyNimiLocalAppBytes` and
256
+ `exactNimiLocalAppBytes` are exported for that check. Realtime audio frames
257
+ (up to 64 KiB) and text continuity carriers keep their current shape.
258
+ - Rebuild SDK, Kit and the native carrier together.
259
+
260
+ ## Embedding space identity (next minor, development)
261
+
262
+ - Direct `embedText` now returns the required Runtime-issued `spaceId` beside
263
+ `embeddings` and rejects a result without a valid space ID. Indexing callers
264
+ must keep this ID with each vector set and rebuild or isolate an index when
265
+ the space changes; equal dimensions alone do not make vectors comparable.
266
+ - Typed result fixtures must add `spaceId`. The protected Local App carrier
267
+ already included it; Kit's public result type now reflects that existing
268
+ wire value.
269
+
270
+ ## Shared Agent introduction (next minor, development)
271
+
272
+ - Add `agents.getIntroduction({ agentHandle })` under `agent.local` for every
273
+ covered App, including Home. Rebuild Runtime, SDK, Kit and native carriers
274
+ together; custom standard-shell implementations must supply this method.
275
+ - The result contains optional display facts and safe static media, without
276
+ source identity. Source detail is not an App-side substitute for this call.
277
+ - Kit exports the shared introduction reader, display mapping and component.
278
+ Home and Zhiyu now use the same projection; no Conversation is opened or
279
+ generated to read the introduction.
280
+
281
+ ## 0.19.0 — Integration and independent Agent work (development)
282
+
283
+ - Replace `conversation.send({ work })`, `conversation.listToolCalls` and
284
+ `conversation.submitToolResult` with `agentWork.listReferences`, `start`,
285
+ `get`, `status`, `listToolCalls`, `submitToolResult`, `cancel` and `subscribe`.
286
+ Work uses an execution ID, never a Conversation anchor. The old fields and
287
+ methods are rejected. Register the `agent.work` declaration and use fresh
288
+ business Agent references after a real session change; work does not confer
289
+ access to chat history.
290
+ - Add `integration` typed discovery, calls, provider and management methods.
291
+ `invoke` returns an accepted call; query that call until its actual outcome,
292
+ and cancel it when the consumer stops. An unconfirmed write must not be
293
+ resent. Management remains restricted to the trusted Home owner.
294
+ - Integration call projections include `targetDisplayName` and `accountLabel`
295
+ alongside the captured consumer name, timestamps and call ID. Empty display
296
+ fields mean the name was not recorded; consumers must not replace historical
297
+ attribution with a currently selected connection. Custom carriers and test
298
+ fixtures must include both string fields.
299
+ - Agent references add required `activityAgentRef`, an account-scoped display
300
+ correlation for Activity filters. It is never an Agent selector or permission.
301
+ - Upgrade Runtime, SDK 0.19, Kit/native npm 0.16 and Rust carriers 0.8 together.
302
+ These local candidate versions do not claim public publication or product acceptance.
303
+
304
+ ## Unreleased (0.18.1)
305
+
306
+ - Keep observing the Runtime activity-open stream while Desktop launches the
307
+ source App. Source confirmation or the Runtime deadline can now finish the
308
+ operation even if the launch acknowledgement remains pending; a launch result
309
+ alone still never proves the source object opened. No API change.
310
+
311
+ ## Unreleased (0.18.0)
312
+
313
+ - Add optional `conversation.interruptTurn({ expectedTurnId })`. Runtime atomically
314
+ refuses `AGENT_TURN_NOT_ACTIVE` when that turn is no longer active, preserving
315
+ any newer work from another App. Work-item stop controls should pass their
316
+ recorded turn ID and refresh the snapshot on rejection. Omitting the field
317
+ retains explicit current-Conversation interruption. Upgrade SDK 0.18, Kit and
318
+ matching native 0.15 together before using the field.
319
+
320
+ ## 0.17.0 (development)
321
+
322
+ - Breaking (0.x minor): LocalAgent references add the required `agentBinding`.
323
+ Persist it only to match a fresh `agents.listReferences()` result after reopen;
324
+ continue to use its fresh `agentHandle` for every operation. Bindings differ
325
+ between registered Apps and accounts and never grant access.
326
+ - `conversation.send` accepts optional `work: { workId, instructions, sources,
327
+ tools }`. Sources contain `sourceId`, `title`, `content`; tools contain `name`,
328
+ `description`, `inputSchemaJson`. Runtime owns the selected LocalAgent's
329
+ bounded tool loop and final Conversation commit. Poll
330
+ `conversation.listToolCalls({ agentHandle, conversationAnchorId, turnId })`
331
+ while the turn runs; dispatch each returned `callId` once and submit
332
+ `{ ...scope, callId, resultJson, isError }` with `submitToolResult`.
333
+ Only the initiating current session may receive or complete these calls.
334
+ Never replay effects after reconnect or an indeterminate submission.
335
+ - Custom standard-shell implementations must add both Conversation methods.
336
+ Upgrade SDK, Kit 0.14 and its matching native carrier together. Work is
337
+ bounded to 64 KiB, 16 sources/tools, eight rounds and 32 KiB per tool result;
338
+ interruption, expired sessions and invalid or incomplete batches fail closed.
339
+
340
+ ## 0.16.0 (development)
341
+
342
+ - Add the synchronous `text-decide` execute variant (`NimiLocalAppTextDecideSpec`,
343
+ `NimiLocalAppTextDecideResult`) with exact validation of the submitted questions
344
+ and returned probability distributions. `ai.scenario.execute(spec, options)` now
345
+ accepts `{ signal, timeoutMs }` for every variant: an abort settles as
346
+ `OPERATION_ABORTED`, an elapsed deadline as `OPERATION_TIMEOUT`, and neither
347
+ projects a late result. Add `AI_INPUT_LIMIT_EXCEEDED` and carrier helpers
348
+ (`validateNimiLocalAppTextDecideShellSpec`, `validateNimiLocalAppTextDecideOutput`,
349
+ `nimiLocalAppTextDecideSpecFromShell`). Host shells receive the carrier spec, whose
350
+ JSON content is the SDK's `JSON.stringify` text. New exports (minor); update
351
+ Runtime, SDK, Kit and the native carrier as one cohort.
352
+
353
+ - Add typed `audio.voice.convert` Local App spec and conversion projection with
354
+ exact source/target identity checks, nested target reference ranges, the
355
+ reported length relation (`EXACT` or `MODEL_FRAME_ROUNDING`) and duration
356
+ delta. Canonical audio preparation may now name an explicit channel mode
357
+ (`PRESERVE`, `MONO_TO_STEREO`, `STEREO_TO_MONO`) alongside the target sample
358
+ rate; this is the only sanctioned rate or channel change. New exports (minor).
359
+
360
+ - Extend the protected `audio.separate` projection with owned-artifact sources
361
+ and instrument parts (`DRUMS`, `BASS`, `OTHER`) beside vocals and background.
362
+ Submission identity (`clientSubmissionId`) stays rejected for separation.
363
+
364
+ - Preserve asset-stream cancellation before the first chunk and during a pending
365
+ read. Each returned body has one consumer; call its iterator's `return()` when
366
+ abandoning an opened read, including after an App-level metadata mismatch.
367
+ Update Kit with the corresponding native-stream close forwarding fix.
368
+
369
+ - AIConfig resource projections may carry `musicInput.generation` profiles for
370
+ exact legal input combinations and bounds. Missing profiles mean unknown or
371
+ inapplicable; Apps must not infer them from model labels. Submission remains
372
+ authoritative, including combined context limits.
373
+
374
+ - Breaking (0.x minor): music generation now returns a typed `musicGeneration`
375
+ with the mix reference, measured canonical PCM facts, seed when known,
376
+ optional generated ABC score and explicit termination. Consumers must adopt
377
+ the complete artifact set and distinguish a budget cutoff from a natural end.
378
+ The old prior-audio extension is rejected. Use typed score, score conditioning,
379
+ audio reference, seed and instrumental inputs; exact Drivers reject unsupported
380
+ combinations. The common duration ceiling is 600 seconds, with stricter model
381
+ limits retained. Inline ABC imports are at most 1 MiB and expire after 24 hours.
382
+ Update Runtime, SDK, Kit and the native carrier as one cohort.
383
+
384
+ - Add `clientSubmissionId` to protected music Job submit options and
385
+ `ai.scenarioJobs.lookupSubmission(id)` to recover a lost submission response
386
+ without resubmitting. Runtime binds the full request to the current account
387
+ and registered App, rejects conflicting reuse, and persists that binding
388
+ with the Job. This minor widening requires matching Kit/native and Runtime;
389
+ terminal music Jobs carrying this identity expose `recoveryExpiresAt` and
390
+ retain the Job and actual outputs for 24 hours. Canonical audio uploads now
391
+ require an `expiresAt` result from the matching Runtime. New work fails with
392
+ `AI_MUSIC_RECOVERY_CAPACITY_EXCEEDED` when the 1024-record, 16-GiB temporary
393
+ budget or disk headroom is exhausted; reads do not renew either lifetime.
394
+
395
+ - Add canonical audio preparation to the existing protected artifact upload.
396
+ Apps may supply inline audio or an owned App asset / canonical artifact
397
+ reference, receive measured sample-rate, channel, frame-count and duration
398
+ facts, and use artifact adoption for results larger than the inline limit.
399
+ Reference carriers require `audioPreparation: { profile: 'canonical-pcm-v1' }`;
400
+ explicit resampling requires an already canonical WAV source. Basic inline
401
+ uploads retain their existing size and MIME semantics.
402
+ - Export the finite upload carrier validators and audio input/result types.
403
+ This compatible public API widening requires a minor release and matching
404
+ Runtime plus Kit/native delivery. Source builds do not make older published
405
+ packages support these inputs. Job retention and music model capabilities
406
+ are separate changes, not implied by audio preparation.
407
+
408
+ - Breaking (0.x minor): the host-injected local-app `standardShell` now requires
409
+ an exact `activity` namespace (`put`, `list`, `subscribe`, `markRead`, `open`,
410
+ `openRequests.subscribe/complete`). Pair this SDK only with Kit 0.12.0 and the
411
+ matching Runtime; custom carriers must implement the namespace and carry
412
+ publisher `data` as opaque `dataJson` text.
413
+ - Add `client.activity` for the `app.activity` App Access domain: publish or
414
+ update revisioned activity and todos in the App's own partition, list with
415
+ baseline paging, subscribe to account changes, mark the displayed revision
416
+ read, open a record's source object, and register `onOpenRequest` to confirm
417
+ navigation in the source App. Only the handler's confirmation yields `opened`;
418
+ a Host whose Desktop launch or focus fails still waits
419
+ `NIMI_APP_ACTIVITY_LAUNCH_FAILURE_GRACE_MS` for a running source's confirmation.
420
+ - Add `createNimiAppActivityView` and `NimiAppActivityMergeState`: a filtered
421
+ projection that merges pages and changes by the highest change sequence,
422
+ keeps removed or filtered-out ids from resurrecting, and recovers every ended
423
+ subscription with a fresh listing baseline, immediately clearing the prior
424
+ session's records and rejecting its in-flight pages. It never marks anything read.
425
+ Listing pauses after `maxRecords` records per step: the snapshot then reports
426
+ `hasMore: true` and `complete: false`, and `loadMore()` continues the same
427
+ baseline.
428
+ - Declare `app.activity` in `nimi.app.yaml` `app_access` before using the
429
+ client; undeclared calls fail closed.
430
+
431
+ ## 0.15.0
432
+
433
+ Published as SDK 0.15.0 with Kit and its native packages 0.11.0 and Rust shell
434
+ crates 0.6.0. These notes were drafted as 0.14.0; SDK 0.14.0, Kit/native 0.10.0
435
+ and Vercel adapter 0.2.0 named below were never published.
436
+
437
+ - Preserve multiline transcription text through Local App Job projections,
438
+ including empty pending/no-speech content, without relaxing metadata or NUL
439
+ validation.
440
+
441
+ - Raise annotation capacity to 512 KiB input, 65536 tokens and a 16 MiB result
442
+ without splitting the caller's document. The matching Runtime also admits
443
+ DeepSeek V4 JSON-object generation through the existing App text interface.
444
+
445
+ - Add the Local `text-annotate` Job and immutable `textAnnotation` result:
446
+ batch source documents, Unicode scalar token offsets, POS/dependency labels,
447
+ head indices and sentence spans. Requires the matching Runtime and Kit/native
448
+ candidate; older 0.14.0 development tarballs do not contain this addition.
449
+
450
+ - Add the Local `audio-separate` Job and paired `audioSeparation` artifact
451
+ identities. Large output uses the existing owned artifact adoption and App
452
+ asset streams. The initial Runtime Driver is HTDemucs; read its documented
453
+ duration/input limits before composing long media.
454
+
455
+ - Carry typed speech transcription through Local App jobs, Runtime scenario
456
+ adapters and generation results. Preserve original text, detected language,
457
+ actual alignment units and explicit no-speech results. See the package README
458
+ for resource limits, supported controls and chunk offsets.
459
+ - Requires matching Runtime, Kit/native 0.10.0 and Rust shell crates 0.6.0.
460
+ Custom carriers must preserve the optional `transcription` projection. Empty
461
+ no-speech text is valid only with the explicit typed no-speech result; an
462
+ empty inference response is not success. `transcriptionText` remains derived
463
+ from the same result for existing text-only consumers.
464
+ - These are local development package versions. Publication is a separate step
465
+ after consumer acceptance. Vercel adapter 0.2.0 updates its SDK peer to 0.14.0;
466
+ its text model behavior is unchanged.
467
+
6
468
  ## 0.13.0
7
469
 
8
470
  - Local App model turns accept ordered user text and image URL/artifact parts.