@nimiplatform/sdk 0.15.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 (396) hide show
  1. package/CHANGELOG.md +430 -1
  2. package/README.md +125 -18
  3. package/dist/core/ai/capability-configuration.d.ts +15 -0
  4. package/dist/core/ai/capability-configuration.d.ts.map +1 -1
  5. package/dist/core/ai/capability-configuration.js +36 -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 +57 -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/app/desktop-open.d.ts +4 -1
  42. package/dist/core/app/desktop-open.d.ts.map +1 -1
  43. package/dist/core/app/desktop-open.js +5 -1
  44. package/dist/core/app/desktop-open.js.map +1 -1
  45. package/dist/core/app/index.d.ts +29 -4
  46. package/dist/core/app/index.d.ts.map +1 -1
  47. package/dist/core/app/index.js +18 -0
  48. package/dist/core/app/index.js.map +1 -1
  49. package/dist/core/app/local-app-agent-introduction.d.ts +30 -0
  50. package/dist/core/app/local-app-agent-introduction.d.ts.map +1 -0
  51. package/dist/core/app/local-app-agent-introduction.js +64 -0
  52. package/dist/core/app/local-app-agent-introduction.js.map +1 -0
  53. package/dist/core/app/local-app-agent-work-input.d.ts +24 -0
  54. package/dist/core/app/local-app-agent-work-input.d.ts.map +1 -0
  55. package/dist/core/app/local-app-agent-work-input.js +50 -0
  56. package/dist/core/app/local-app-agent-work-input.js.map +1 -0
  57. package/dist/core/app/local-app-audio-separation.d.ts +9 -0
  58. package/dist/core/app/local-app-audio-separation.d.ts.map +1 -1
  59. package/dist/core/app/local-app-audio-separation.js +64 -3
  60. package/dist/core/app/local-app-audio-separation.js.map +1 -1
  61. package/dist/core/app/local-app-bytes.d.ts +10 -0
  62. package/dist/core/app/local-app-bytes.d.ts.map +1 -0
  63. package/dist/core/app/local-app-bytes.js +27 -0
  64. package/dist/core/app/local-app-bytes.js.map +1 -0
  65. package/dist/core/app/local-app-music-transcription.d.ts +43 -0
  66. package/dist/core/app/local-app-music-transcription.d.ts.map +1 -0
  67. package/dist/core/app/local-app-music-transcription.js +94 -0
  68. package/dist/core/app/local-app-music-transcription.js.map +1 -0
  69. package/dist/core/app/local-app-music.d.ts +50 -0
  70. package/dist/core/app/local-app-music.d.ts.map +1 -0
  71. package/dist/core/app/local-app-music.js +135 -0
  72. package/dist/core/app/local-app-music.js.map +1 -0
  73. package/dist/core/app/local-app-runtime-platform-activity-view.d.ts +59 -0
  74. package/dist/core/app/local-app-runtime-platform-activity-view.d.ts.map +1 -0
  75. package/dist/core/app/local-app-runtime-platform-activity-view.js +283 -0
  76. package/dist/core/app/local-app-runtime-platform-activity-view.js.map +1 -0
  77. package/dist/core/app/local-app-runtime-platform-activity.d.ts +219 -0
  78. package/dist/core/app/local-app-runtime-platform-activity.d.ts.map +1 -0
  79. package/dist/core/app/local-app-runtime-platform-activity.js +749 -0
  80. package/dist/core/app/local-app-runtime-platform-activity.js.map +1 -0
  81. package/dist/core/app/local-app-runtime-platform-agent-references.d.ts +4 -0
  82. package/dist/core/app/local-app-runtime-platform-agent-references.d.ts.map +1 -1
  83. package/dist/core/app/local-app-runtime-platform-agent-references.js +21 -9
  84. package/dist/core/app/local-app-runtime-platform-agent-references.js.map +1 -1
  85. package/dist/core/app/local-app-runtime-platform-agent-work.d.ts +88 -0
  86. package/dist/core/app/local-app-runtime-platform-agent-work.d.ts.map +1 -0
  87. package/dist/core/app/local-app-runtime-platform-agent-work.js +165 -0
  88. package/dist/core/app/local-app-runtime-platform-agent-work.js.map +1 -0
  89. package/dist/core/app/local-app-runtime-platform-ai-config.d.ts.map +1 -1
  90. package/dist/core/app/local-app-runtime-platform-ai-config.js +55 -1
  91. package/dist/core/app/local-app-runtime-platform-ai-config.js.map +1 -1
  92. package/dist/core/app/local-app-runtime-platform-ai.d.ts +154 -36
  93. package/dist/core/app/local-app-runtime-platform-ai.d.ts.map +1 -1
  94. package/dist/core/app/local-app-runtime-platform-ai.js +738 -121
  95. package/dist/core/app/local-app-runtime-platform-ai.js.map +1 -1
  96. package/dist/core/app/local-app-runtime-platform-assets.d.ts.map +1 -1
  97. package/dist/core/app/local-app-runtime-platform-assets.js +37 -12
  98. package/dist/core/app/local-app-runtime-platform-assets.js.map +1 -1
  99. package/dist/core/app/local-app-runtime-platform-configure.d.ts +1 -1
  100. package/dist/core/app/local-app-runtime-platform-configure.d.ts.map +1 -1
  101. package/dist/core/app/local-app-runtime-platform-configure.js +10 -10
  102. package/dist/core/app/local-app-runtime-platform-configure.js.map +1 -1
  103. package/dist/core/app/local-app-runtime-platform-conversation.d.ts +7 -4
  104. package/dist/core/app/local-app-runtime-platform-conversation.d.ts.map +1 -1
  105. package/dist/core/app/local-app-runtime-platform-conversation.js +15 -10
  106. package/dist/core/app/local-app-runtime-platform-conversation.js.map +1 -1
  107. package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts +5 -0
  108. package/dist/core/app/local-app-runtime-platform-direct-agent-work.d.ts.map +1 -0
  109. package/dist/core/app/local-app-runtime-platform-direct-agent-work.js +38 -0
  110. package/dist/core/app/local-app-runtime-platform-direct-agent-work.js.map +1 -0
  111. package/dist/core/app/local-app-runtime-platform-direct-conversation.js +6 -6
  112. package/dist/core/app/local-app-runtime-platform-direct-conversation.js.map +1 -1
  113. package/dist/core/app/local-app-runtime-platform-integration.d.ts +128 -0
  114. package/dist/core/app/local-app-runtime-platform-integration.d.ts.map +1 -0
  115. package/dist/core/app/local-app-runtime-platform-integration.js +263 -0
  116. package/dist/core/app/local-app-runtime-platform-integration.js.map +1 -0
  117. package/dist/core/app/local-app-runtime-platform-validation.d.ts +2 -0
  118. package/dist/core/app/local-app-runtime-platform-validation.d.ts.map +1 -1
  119. package/dist/core/app/local-app-runtime-platform-validation.js +42 -3
  120. package/dist/core/app/local-app-runtime-platform-validation.js.map +1 -1
  121. package/dist/core/app/local-app-runtime-platform-vision.d.ts +1 -1
  122. package/dist/core/app/local-app-runtime-platform-vision.d.ts.map +1 -1
  123. package/dist/core/app/local-app-runtime-platform-vision.js +5 -5
  124. package/dist/core/app/local-app-runtime-platform-vision.js.map +1 -1
  125. package/dist/core/app/local-app-runtime-platform.d.ts +19 -15
  126. package/dist/core/app/local-app-runtime-platform.d.ts.map +1 -1
  127. package/dist/core/app/local-app-runtime-platform.js +17 -6
  128. package/dist/core/app/local-app-runtime-platform.js.map +1 -1
  129. package/dist/core/app/local-app-speaker-embedding.d.ts +6 -0
  130. package/dist/core/app/local-app-speaker-embedding.d.ts.map +1 -0
  131. package/dist/core/app/local-app-speaker-embedding.js +14 -0
  132. package/dist/core/app/local-app-speaker-embedding.js.map +1 -0
  133. package/dist/core/app/local-app-text-decision.d.ts +114 -0
  134. package/dist/core/app/local-app-text-decision.d.ts.map +1 -0
  135. package/dist/core/app/local-app-text-decision.js +444 -0
  136. package/dist/core/app/local-app-text-decision.js.map +1 -0
  137. package/dist/core/app/local-app-text.d.ts +7 -1
  138. package/dist/core/app/local-app-text.d.ts.map +1 -1
  139. package/dist/core/app/local-app-text.js +16 -15
  140. package/dist/core/app/local-app-text.js.map +1 -1
  141. package/dist/core/app/local-app-transcription.d.ts +11 -0
  142. package/dist/core/app/local-app-transcription.d.ts.map +1 -1
  143. package/dist/core/app/local-app-transcription.js +22 -2
  144. package/dist/core/app/local-app-transcription.js.map +1 -1
  145. package/dist/core/app/local-app-voice-convert.d.ts +61 -0
  146. package/dist/core/app/local-app-voice-convert.d.ts.map +1 -0
  147. package/dist/core/app/local-app-voice-convert.js +133 -0
  148. package/dist/core/app/local-app-voice-convert.js.map +1 -0
  149. package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts +2 -2
  150. package/dist/core/app/runtime-account-realm-source-readiness.generated.d.ts.map +1 -1
  151. package/dist/core/app/runtime-account-realm-source-readiness.generated.js +5 -3
  152. package/dist/core/app/runtime-account-realm-source-readiness.generated.js.map +1 -1
  153. package/dist/core/text-stream-cleanup.d.ts +3 -0
  154. package/dist/core/text-stream-cleanup.d.ts.map +1 -0
  155. package/dist/core/text-stream-cleanup.js +19 -0
  156. package/dist/core/text-stream-cleanup.js.map +1 -0
  157. package/dist/core-generated/realm-client.d.ts.map +1 -1
  158. package/dist/core-generated/realm-client.js +10 -4
  159. package/dist/core-generated/realm-client.js.map +1 -1
  160. package/dist/core-generated/realm-typed-client.d.ts +86 -29
  161. package/dist/core-generated/realm-typed-client.d.ts.map +1 -1
  162. package/dist/core-generated/realm-typed-client.js +19 -8
  163. package/dist/core-generated/realm-typed-client.js.map +1 -1
  164. package/dist/core-generated/runtime-client.d.ts.map +1 -1
  165. package/dist/core-generated/runtime-client.js +312 -0
  166. package/dist/core-generated/runtime-client.js.map +1 -1
  167. package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts +21 -0
  168. package/dist/core-generated/runtime-protobuf/runtime/v1/account.d.ts.map +1 -1
  169. package/dist/core-generated/runtime-protobuf/runtime/v1/account.js +41 -5
  170. package/dist/core-generated/runtime-protobuf/runtime/v1/account.js.map +1 -1
  171. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts +158 -1
  172. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.d.ts.map +1 -1
  173. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js +299 -2
  174. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_service.js.map +1 -1
  175. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts +5 -1
  176. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.d.ts.map +1 -1
  177. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js +4 -0
  178. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_source_materialization.js.map +1 -1
  179. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts +625 -0
  180. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.d.ts.map +1 -0
  181. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js +1369 -0
  182. package/dist/core-generated/runtime-protobuf/runtime/v1/agent_work.js.map +1 -0
  183. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts +1872 -106
  184. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.d.ts.map +1 -1
  185. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js +4718 -1513
  186. package/dist/core-generated/runtime-protobuf/runtime/v1/ai.js.map +1 -1
  187. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts +40 -0
  188. package/dist/core-generated/runtime-protobuf/runtime/v1/app.d.ts.map +1 -1
  189. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js +72 -3
  190. package/dist/core-generated/runtime-protobuf/runtime/v1/app.js.map +1 -1
  191. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts +859 -0
  192. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.d.ts.map +1 -0
  193. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js +1663 -0
  194. package/dist/core-generated/runtime-protobuf/runtime/v1/app_activity.js.map +1 -0
  195. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts +20 -0
  196. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.d.ts.map +1 -1
  197. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js +38 -0
  198. package/dist/core-generated/runtime-protobuf/runtime/v1/auth.js.map +1 -1
  199. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts +456 -0
  200. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.d.ts.map +1 -1
  201. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js +869 -6
  202. package/dist/core-generated/runtime-protobuf/runtime/v1/capability_configuration.js.map +1 -1
  203. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts +146 -1
  204. package/dist/core-generated/runtime-protobuf/runtime/v1/common.d.ts.map +1 -1
  205. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js +145 -0
  206. package/dist/core-generated/runtime-protobuf/runtime/v1/common.js.map +1 -1
  207. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts +43 -0
  208. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.d.ts.map +1 -1
  209. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js +88 -4
  210. package/dist/core-generated/runtime-protobuf/runtime/v1/connector.js.map +1 -1
  211. package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts +53 -0
  212. package/dist/core-generated/runtime-protobuf/runtime/v1/development.d.ts.map +1 -1
  213. package/dist/core-generated/runtime-protobuf/runtime/v1/development.js +118 -0
  214. package/dist/core-generated/runtime-protobuf/runtime/v1/development.js.map +1 -1
  215. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts +1293 -0
  216. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.d.ts.map +1 -0
  217. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js +2898 -0
  218. package/dist/core-generated/runtime-protobuf/runtime/v1/integration.js.map +1 -0
  219. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts +166 -0
  220. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.d.ts.map +1 -1
  221. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js +217 -4
  222. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime.js.map +1 -1
  223. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts +8 -0
  224. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.d.ts.map +1 -1
  225. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js +9 -1
  226. package/dist/core-generated/runtime-protobuf/runtime/v1/local_runtime_recommendation.js.map +1 -1
  227. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts +69 -0
  228. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.d.ts.map +1 -1
  229. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js +120 -0
  230. package/dist/core-generated/runtime-protobuf/runtime/v1/runtime_service_control.js.map +1 -1
  231. package/dist/core-generated/runtime-public-client.d.ts.map +1 -1
  232. package/dist/core-generated/runtime-public-client.js +296 -8
  233. package/dist/core-generated/runtime-public-client.js.map +1 -1
  234. package/dist/core-generated/runtime-public-rpc-auth-posture.d.ts.map +1 -1
  235. package/dist/core-generated/runtime-public-rpc-auth-posture.js +37 -1
  236. package/dist/core-generated/runtime-public-rpc-auth-posture.js.map +1 -1
  237. package/dist/core-generated/runtime-public-wire-codecs.d.ts +44 -5
  238. package/dist/core-generated/runtime-public-wire-codecs.d.ts.map +1 -1
  239. package/dist/core-generated/runtime-public-wire-codecs.js +44 -5
  240. package/dist/core-generated/runtime-public-wire-codecs.js.map +1 -1
  241. package/dist/core-generated/runtime-rpc-auth-posture.d.ts.map +1 -1
  242. package/dist/core-generated/runtime-rpc-auth-posture.js +39 -0
  243. package/dist/core-generated/runtime-rpc-auth-posture.js.map +1 -1
  244. package/dist/core-generated/runtime-typed-client.d.ts +66 -16
  245. package/dist/core-generated/runtime-typed-client.d.ts.map +1 -1
  246. package/dist/core-generated/runtime-typed-client.js +398 -3
  247. package/dist/core-generated/runtime-typed-client.js.map +1 -1
  248. package/dist/core-generated/runtime-wire-codecs.d.ts +47 -5
  249. package/dist/core-generated/runtime-wire-codecs.d.ts.map +1 -1
  250. package/dist/core-generated/runtime-wire-codecs.js +47 -5
  251. package/dist/core-generated/runtime-wire-codecs.js.map +1 -1
  252. package/dist/features/generation/index.d.ts +14 -2
  253. package/dist/features/generation/index.d.ts.map +1 -1
  254. package/dist/features/generation/index.js +14 -1
  255. package/dist/features/generation/index.js.map +1 -1
  256. package/dist/features/generation/media-params.d.ts +0 -3
  257. package/dist/features/generation/media-params.d.ts.map +1 -1
  258. package/dist/features/generation/media-params.js +8 -6
  259. package/dist/features/generation/media-params.js.map +1 -1
  260. package/dist/features/generation/runtime-generation-build.d.ts +0 -1
  261. package/dist/features/generation/runtime-generation-build.d.ts.map +1 -1
  262. package/dist/features/generation/runtime-generation-build.js +6 -1
  263. package/dist/features/generation/runtime-generation-build.js.map +1 -1
  264. package/dist/features/generation/runtime-image-generation.d.ts +5 -1
  265. package/dist/features/generation/runtime-image-generation.d.ts.map +1 -1
  266. package/dist/features/generation/runtime-image-generation.js +4 -0
  267. package/dist/features/generation/runtime-image-generation.js.map +1 -1
  268. package/dist/features/generation/runtime-job-builders.d.ts +0 -1
  269. package/dist/features/generation/runtime-job-builders.d.ts.map +1 -1
  270. package/dist/features/generation/runtime-job-builders.js +8 -10
  271. package/dist/features/generation/runtime-job-builders.js.map +1 -1
  272. package/dist/realm/index.d.ts +1 -1
  273. package/dist/realm/index.d.ts.map +1 -1
  274. package/dist/realm/index.js +3 -2
  275. package/dist/realm/index.js.map +1 -1
  276. package/dist/runtime/chatgpt-plan.d.ts +7 -0
  277. package/dist/runtime/chatgpt-plan.d.ts.map +1 -0
  278. package/dist/runtime/chatgpt-plan.js +15 -0
  279. package/dist/runtime/chatgpt-plan.js.map +1 -0
  280. package/dist/runtime/config-projections.d.ts +2 -0
  281. package/dist/runtime/config-projections.d.ts.map +1 -1
  282. package/dist/runtime/config-projections.js +3 -0
  283. package/dist/runtime/config-projections.js.map +1 -1
  284. package/dist/runtime/connector-auth-acquisition-client.d.ts +3 -6
  285. package/dist/runtime/connector-auth-acquisition-client.d.ts.map +1 -1
  286. package/dist/runtime/connector-auth-acquisition-client.js +18 -11
  287. package/dist/runtime/connector-auth-acquisition-client.js.map +1 -1
  288. package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts +10 -11
  289. package/dist/runtime/connector-auth-acquisition-profiles.generated.d.ts.map +1 -1
  290. package/dist/runtime/connector-auth-acquisition-profiles.generated.js +13 -14
  291. package/dist/runtime/connector-auth-acquisition-profiles.generated.js.map +1 -1
  292. package/dist/runtime/connector-auth-acquisition.d.ts +26 -19
  293. package/dist/runtime/connector-auth-acquisition.d.ts.map +1 -1
  294. package/dist/runtime/connector-auth-acquisition.js +352 -269
  295. package/dist/runtime/connector-auth-acquisition.js.map +1 -1
  296. package/dist/runtime/connector-auth-profiles.generated.d.ts +1 -1
  297. package/dist/runtime/connector-auth-profiles.generated.d.ts.map +1 -1
  298. package/dist/runtime/connector-auth-profiles.generated.js +4 -4
  299. package/dist/runtime/connector-auth-profiles.generated.js.map +1 -1
  300. package/dist/runtime/connector-inventory.d.ts +11 -2
  301. package/dist/runtime/connector-inventory.d.ts.map +1 -1
  302. package/dist/runtime/connector-inventory.js +10 -1
  303. package/dist/runtime/connector-inventory.js.map +1 -1
  304. package/dist/runtime/desktop-audit.js +4 -1
  305. package/dist/runtime/desktop-audit.js.map +1 -1
  306. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts +130 -2
  307. package/dist/runtime/first-party-protected-runtime-profiles.generated.d.ts.map +1 -1
  308. package/dist/runtime/first-party-protected-runtime-profiles.generated.js +34 -2
  309. package/dist/runtime/first-party-protected-runtime-profiles.generated.js.map +1 -1
  310. package/dist/runtime/generated.d.ts +2 -2
  311. package/dist/runtime/generated.d.ts.map +1 -1
  312. package/dist/runtime/generated.js +1 -1
  313. package/dist/runtime/generated.js.map +1 -1
  314. package/dist/runtime/host.d.ts +3 -0
  315. package/dist/runtime/host.d.ts.map +1 -1
  316. package/dist/runtime/host.js +4 -0
  317. package/dist/runtime/host.js.map +1 -1
  318. package/dist/runtime/index.d.ts +1 -0
  319. package/dist/runtime/index.d.ts.map +1 -1
  320. package/dist/runtime/index.js +1 -0
  321. package/dist/runtime/index.js.map +1 -1
  322. package/dist/runtime/machine-loadouts.d.ts +18 -0
  323. package/dist/runtime/machine-loadouts.d.ts.map +1 -1
  324. package/dist/runtime/machine-loadouts.js +26 -0
  325. package/dist/runtime/machine-loadouts.js.map +1 -1
  326. package/dist/runtime/node-grpc-errors.js +3 -3
  327. package/dist/runtime/node-grpc-errors.js.map +1 -1
  328. package/dist/runtime/product-control-projection.d.ts.map +1 -1
  329. package/dist/runtime/product-control-projection.js +11 -2
  330. package/dist/runtime/product-control-projection.js.map +1 -1
  331. package/dist/runtime/product-control-types.d.ts +13 -2
  332. package/dist/runtime/product-control-types.d.ts.map +1 -1
  333. package/dist/runtime/product-control-types.js.map +1 -1
  334. package/dist/runtime/reason-messages.d.ts +3 -0
  335. package/dist/runtime/reason-messages.d.ts.map +1 -1
  336. package/dist/runtime/reason-messages.js +11 -2
  337. package/dist/runtime/reason-messages.js.map +1 -1
  338. package/dist/runtime/runtime-local-environment-client-projections.d.ts.map +1 -1
  339. package/dist/runtime/runtime-local-environment-client-projections.js +19 -19
  340. package/dist/runtime/runtime-local-environment-client-projections.js.map +1 -1
  341. package/dist/runtime/runtime-local-environment-client-types.d.ts +42 -20
  342. package/dist/runtime/runtime-local-environment-client-types.d.ts.map +1 -1
  343. package/dist/runtime/runtime-local-environment-client-values.d.ts +3 -1
  344. package/dist/runtime/runtime-local-environment-client-values.d.ts.map +1 -1
  345. package/dist/runtime/runtime-local-environment-client-values.js +43 -0
  346. package/dist/runtime/runtime-local-environment-client-values.js.map +1 -1
  347. package/dist/runtime/runtime-local-environment-client.d.ts.map +1 -1
  348. package/dist/runtime/runtime-local-environment-client.js +7 -2
  349. package/dist/runtime/runtime-local-environment-client.js.map +1 -1
  350. package/dist/runtime/runtime-local-recommendation-types.d.ts +3 -0
  351. package/dist/runtime/runtime-local-recommendation-types.d.ts.map +1 -1
  352. package/dist/runtime/runtime-local-recommendation.d.ts.map +1 -1
  353. package/dist/runtime/runtime-local-recommendation.js +1 -0
  354. package/dist/runtime/runtime-local-recommendation.js.map +1 -1
  355. package/dist/runtime/scenario-jobs.d.ts +23 -1
  356. package/dist/runtime/scenario-jobs.d.ts.map +1 -1
  357. package/dist/runtime/scenario-jobs.js +227 -264
  358. package/dist/runtime/scenario-jobs.js.map +1 -1
  359. package/dist/runtime/shared-local-agent-ai-config.d.ts.map +1 -1
  360. package/dist/runtime/shared-local-agent-ai-config.js +3 -0
  361. package/dist/runtime/shared-local-agent-ai-config.js.map +1 -1
  362. package/dist/runtime/wire-types/agent-participation-enums.d.ts +2 -1
  363. package/dist/runtime/wire-types/agent-participation-enums.d.ts.map +1 -1
  364. package/dist/runtime/wire-types/agent-participation-enums.js +2 -1
  365. package/dist/runtime/wire-types/agent-participation-enums.js.map +1 -1
  366. package/dist/runtime/wire-types/agent-participation-types.d.ts +4 -2
  367. package/dist/runtime/wire-types/agent-participation-types.d.ts.map +1 -1
  368. package/dist/runtime/wire-types/ai-scenario-enums.d.ts +112 -3
  369. package/dist/runtime/wire-types/ai-scenario-enums.d.ts.map +1 -1
  370. package/dist/runtime/wire-types/ai-scenario-enums.js +128 -0
  371. package/dist/runtime/wire-types/ai-scenario-enums.js.map +1 -1
  372. package/dist/runtime/wire-types/ai-scenario-types.d.ts +8 -6
  373. package/dist/runtime/wire-types/ai-scenario-types.d.ts.map +1 -1
  374. package/dist/runtime/wire-types/identity-app-enums.d.ts +47 -0
  375. package/dist/runtime/wire-types/identity-app-enums.d.ts.map +1 -1
  376. package/dist/runtime/wire-types/identity-app-enums.js +55 -0
  377. package/dist/runtime/wire-types/identity-app-enums.js.map +1 -1
  378. package/dist/runtime/wire-types/identity-app-types.d.ts +6 -4
  379. package/dist/runtime/wire-types/identity-app-types.d.ts.map +1 -1
  380. package/dist/runtime/wire-types/local-memory-enums.d.ts +31 -1
  381. package/dist/runtime/wire-types/local-memory-enums.d.ts.map +1 -1
  382. package/dist/runtime/wire-types/local-memory-enums.js +34 -0
  383. package/dist/runtime/wire-types/local-memory-enums.js.map +1 -1
  384. package/dist/runtime/wire-types/reason-code-enums.d.ts +28 -1
  385. package/dist/runtime/wire-types/reason-code-enums.d.ts.map +1 -1
  386. package/dist/runtime/wire-types/reason-code-enums.js +27 -0
  387. package/dist/runtime/wire-types/reason-code-enums.js.map +1 -1
  388. package/dist/types/errors.d.ts +1 -1
  389. package/dist/types/errors.d.ts.map +1 -1
  390. package/dist/types/errors.js +2 -2
  391. package/dist/types/errors.js.map +1 -1
  392. package/dist/types/reason-code.d.ts +2 -0
  393. package/dist/types/reason-code.d.ts.map +1 -1
  394. package/dist/types/reason-code.js +2 -0
  395. package/dist/types/reason-code.js.map +1 -1
  396. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,9 +1,438 @@
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
 
6
- ## 0.14.0 (development)
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.
7
436
 
8
437
  - Preserve multiline transcription text through Local App Job projections,
9
438
  including empty pending/no-speech content, without relaxing metadata or NUL
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,18 +60,44 @@ 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.14.0's Local App binding supports function tools, tool choice,
44
- structured `responseFormat` and user image parts with Kit/native 0.10.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.
51
97
 
52
98
  ## Local App speech support boundaries
53
99
 
54
- SDK 0.14.0 with Kit/native 0.10.0 and the matching Runtime carries a typed
100
+ The current matched package combination carries a typed
55
101
  `job.transcription` on completed `speech-transcribe` jobs. It contains `status`
56
102
  (`transcribed` or `no-speech`), original `text`, model-reported `language` and
57
103
  ordered `words` with `text`, `startSeconds` and `endSeconds`. Plain transcription
@@ -363,6 +409,43 @@ This addition requires a matching development Runtime, SDK, Kit and native
363
409
  package set. Keep using the documented local tarball workflow during iteration;
364
410
  package publication is not a development prerequisite.
365
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.
448
+
366
449
  ## Public entry points
367
450
 
368
451
  | Import | Purpose |
@@ -378,14 +461,38 @@ The installed package's `exports` and `.d.ts` files define the exact callable
378
461
  surface. Framework adapters are separate packages; do not infer that an
379
462
  adapter is publicly available from a source-workspace directory.
380
463
 
381
- For Vercel AI SDK 6 Apps, `@nimiplatform/sdk-adapter-vercel-ai` 0.2.0 provides
382
- `createNimiLocalAppVercelLanguageModel({ ai: client.ai })` for `streamText` and
383
- the existing UI/tool-loop protocol. Read its package README before mapping
384
- images or conversation history; preserve text/tool provider metadata for opaque
385
- continuity. It uses SDK 0.14.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.
386
471
 
387
472
  Source and issue reporting: [nimiplatform/nimi](https://github.com/nimiplatform/nimi).
388
473
  Include the selected SDK, Kit, App Tools and Runtime versions, the actual App
389
474
  operation, expected/observed behavior, and a bounded reproduction.
390
475
 
391
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.