@kortix/sdk 0.13.57 → 0.14.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 (415) hide show
  1. package/README.md +106 -14
  2. package/dist/browser/cache/idb-sync-cache.d.ts.map +1 -1
  3. package/dist/browser/cache/idb-sync-cache.js +19 -5
  4. package/dist/browser/cache/idb-sync-cache.js.map +1 -1
  5. package/dist/browser/session-sync/server-transcript-mirror.d.ts +26 -7
  6. package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
  7. package/dist/browser/session-sync/server-transcript-mirror.js +51 -44
  8. package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
  9. package/dist/browser/session-sync/session-sync-registry.d.ts +8 -0
  10. package/dist/browser/session-sync/session-sync-registry.d.ts.map +1 -1
  11. package/dist/browser/session-sync/session-sync-registry.js +59 -2
  12. package/dist/browser/session-sync/session-sync-registry.js.map +1 -1
  13. package/dist/browser/stores/sync-store/keep-unchanged.d.ts +17 -0
  14. package/dist/browser/stores/sync-store/keep-unchanged.d.ts.map +1 -0
  15. package/dist/browser/stores/sync-store/keep-unchanged.js +47 -0
  16. package/dist/browser/stores/sync-store/keep-unchanged.js.map +1 -0
  17. package/dist/browser/stores/sync-store.d.ts +6 -0
  18. package/dist/browser/stores/sync-store.d.ts.map +1 -1
  19. package/dist/browser/stores/sync-store.js +115 -17
  20. package/dist/browser/stores/sync-store.js.map +1 -1
  21. package/dist/core/attachments/prompt-attachments.d.ts +11 -0
  22. package/dist/core/attachments/prompt-attachments.d.ts.map +1 -1
  23. package/dist/core/attachments/prompt-attachments.js +34 -0
  24. package/dist/core/attachments/prompt-attachments.js.map +1 -1
  25. package/dist/core/capture/rules.d.ts +44 -0
  26. package/dist/core/capture/rules.d.ts.map +1 -0
  27. package/dist/core/capture/rules.js +55 -0
  28. package/dist/core/capture/rules.js.map +1 -0
  29. package/dist/core/client/capture.d.ts +122 -0
  30. package/dist/core/client/capture.d.ts.map +1 -0
  31. package/dist/core/client/capture.js +62 -0
  32. package/dist/core/client/capture.js.map +1 -0
  33. package/dist/core/client/facade-commerce.d.ts +10 -1
  34. package/dist/core/client/facade-commerce.d.ts.map +1 -1
  35. package/dist/core/client/facade-commerce.js +10 -1
  36. package/dist/core/client/facade-commerce.js.map +1 -1
  37. package/dist/core/client/kortix.d.ts +87 -5
  38. package/dist/core/client/kortix.d.ts.map +1 -1
  39. package/dist/core/client/kortix.js +3 -0
  40. package/dist/core/client/kortix.js.map +1 -1
  41. package/dist/core/client/project-access-resources.d.ts +4 -2
  42. package/dist/core/client/project-access-resources.d.ts.map +1 -1
  43. package/dist/core/client/project-access-resources.js +2 -2
  44. package/dist/core/client/project-access-resources.js.map +1 -1
  45. package/dist/core/client/project-core.d.ts.map +1 -1
  46. package/dist/core/client/project-operations-admin.d.ts +4 -4
  47. package/dist/core/client/project-operations-review.d.ts +4 -3
  48. package/dist/core/client/project-operations-review.d.ts.map +1 -1
  49. package/dist/core/client/project-operations-review.js +3 -0
  50. package/dist/core/client/project-operations-review.js.map +1 -1
  51. package/dist/core/client/project-operations-workspace.d.ts +5 -4
  52. package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
  53. package/dist/core/client/project-operations-workspace.js +2 -1
  54. package/dist/core/client/project-operations-workspace.js.map +1 -1
  55. package/dist/core/client/project-operations.d.ts +4 -4
  56. package/dist/core/client/session-handle.d.ts +9 -0
  57. package/dist/core/client/session-handle.d.ts.map +1 -1
  58. package/dist/core/client/session-lifecycle-resources.d.ts +13 -0
  59. package/dist/core/client/session-lifecycle-resources.d.ts.map +1 -1
  60. package/dist/core/client/session-lifecycle-resources.js +8 -0
  61. package/dist/core/client/session-lifecycle-resources.js.map +1 -1
  62. package/dist/core/http/api-client.d.ts +17 -0
  63. package/dist/core/http/api-client.d.ts.map +1 -1
  64. package/dist/core/http/api-client.js +17 -0
  65. package/dist/core/http/api-client.js.map +1 -1
  66. package/dist/core/http/response-error.d.ts.map +1 -1
  67. package/dist/core/http/response-error.js +31 -2
  68. package/dist/core/http/response-error.js.map +1 -1
  69. package/dist/core/models/composer-model.d.ts +35 -0
  70. package/dist/core/models/composer-model.d.ts.map +1 -1
  71. package/dist/core/models/composer-model.js +41 -1
  72. package/dist/core/models/composer-model.js.map +1 -1
  73. package/dist/core/rest/platform-client/capture.d.ts +497 -0
  74. package/dist/core/rest/platform-client/capture.d.ts.map +1 -0
  75. package/dist/core/rest/platform-client/capture.js +178 -0
  76. package/dist/core/rest/platform-client/capture.js.map +1 -0
  77. package/dist/core/rest/platform-client/index.d.ts +1 -0
  78. package/dist/core/rest/platform-client/index.d.ts.map +1 -1
  79. package/dist/core/rest/platform-client/index.js +1 -0
  80. package/dist/core/rest/platform-client/index.js.map +1 -1
  81. package/dist/core/rest/platform-client/lifecycle.d.ts +14 -4
  82. package/dist/core/rest/platform-client/lifecycle.d.ts.map +1 -1
  83. package/dist/core/rest/platform-client/lifecycle.js +32 -16
  84. package/dist/core/rest/platform-client/lifecycle.js.map +1 -1
  85. package/dist/core/rest/platform-client/shared.d.ts +22 -0
  86. package/dist/core/rest/platform-client/shared.d.ts.map +1 -1
  87. package/dist/core/rest/platform-client/shared.js +35 -0
  88. package/dist/core/rest/platform-client/shared.js.map +1 -1
  89. package/dist/core/rest/projects-client/account-secret-resources.d.ts +5 -1
  90. package/dist/core/rest/projects-client/account-secret-resources.d.ts.map +1 -1
  91. package/dist/core/rest/projects-client/account-secret-resources.js.map +1 -1
  92. package/dist/core/rest/projects-client/agent-config.d.ts +13 -7
  93. package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
  94. package/dist/core/rest/projects-client/agent-config.js +1 -1
  95. package/dist/core/rest/projects-client/agent-config.js.map +1 -1
  96. package/dist/core/rest/projects-client/apps-fleet.d.ts +14 -3
  97. package/dist/core/rest/projects-client/apps-fleet.d.ts.map +1 -1
  98. package/dist/core/rest/projects-client/apps-fleet.js +8 -4
  99. package/dist/core/rest/projects-client/apps-fleet.js.map +1 -1
  100. package/dist/core/rest/projects-client/apps.d.ts +13 -1
  101. package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
  102. package/dist/core/rest/projects-client/apps.js.map +1 -1
  103. package/dist/core/rest/projects-client/billing.d.ts +227 -55
  104. package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
  105. package/dist/core/rest/projects-client/billing.js +80 -33
  106. package/dist/core/rest/projects-client/billing.js.map +1 -1
  107. package/dist/core/rest/projects-client/change-requests.d.ts +10 -2
  108. package/dist/core/rest/projects-client/change-requests.d.ts.map +1 -1
  109. package/dist/core/rest/projects-client/change-requests.js +8 -0
  110. package/dist/core/rest/projects-client/change-requests.js.map +1 -1
  111. package/dist/core/rest/projects-client/connector-run.d.ts +1 -1
  112. package/dist/core/rest/projects-client/connector-run.js +1 -1
  113. package/dist/core/rest/projects-client/connectors.d.ts +12 -0
  114. package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
  115. package/dist/core/rest/projects-client/connectors.js +3 -0
  116. package/dist/core/rest/projects-client/connectors.js.map +1 -1
  117. package/dist/core/rest/projects-client/gateway.d.ts +19 -0
  118. package/dist/core/rest/projects-client/gateway.d.ts.map +1 -1
  119. package/dist/core/rest/projects-client/gateway.js.map +1 -1
  120. package/dist/core/rest/projects-client/iam-actions.d.ts +2 -2
  121. package/dist/core/rest/projects-client/iam-actions.d.ts.map +1 -1
  122. package/dist/core/rest/projects-client/iam-actions.js +5 -3
  123. package/dist/core/rest/projects-client/iam-actions.js.map +1 -1
  124. package/dist/core/rest/projects-client/iam-enterprise.d.ts +2 -0
  125. package/dist/core/rest/projects-client/iam-enterprise.d.ts.map +1 -1
  126. package/dist/core/rest/projects-client/iam-enterprise.js +11 -9
  127. package/dist/core/rest/projects-client/iam-enterprise.js.map +1 -1
  128. package/dist/core/rest/projects-client/notifications.d.ts +3 -2
  129. package/dist/core/rest/projects-client/notifications.d.ts.map +1 -1
  130. package/dist/core/rest/projects-client/notifications.js +4 -0
  131. package/dist/core/rest/projects-client/notifications.js.map +1 -1
  132. package/dist/core/rest/projects-client/projects.d.ts +22 -13
  133. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  134. package/dist/core/rest/projects-client/projects.js +2 -3
  135. package/dist/core/rest/projects-client/projects.js.map +1 -1
  136. package/dist/core/rest/projects-client/review-items.d.ts +7 -0
  137. package/dist/core/rest/projects-client/review-items.d.ts.map +1 -1
  138. package/dist/core/rest/projects-client/review-items.js +6 -0
  139. package/dist/core/rest/projects-client/review-items.js.map +1 -1
  140. package/dist/core/rest/projects-client/review.d.ts +52 -3
  141. package/dist/core/rest/projects-client/review.d.ts.map +1 -1
  142. package/dist/core/rest/projects-client/review.js +27 -0
  143. package/dist/core/rest/projects-client/review.js.map +1 -1
  144. package/dist/core/rest/projects-client/secrets.d.ts +17 -2
  145. package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
  146. package/dist/core/rest/projects-client/secrets.js.map +1 -1
  147. package/dist/core/rest/projects-client/sessions.d.ts +96 -14
  148. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  149. package/dist/core/rest/projects-client/sessions.js +60 -10
  150. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  151. package/dist/core/runtime/runtime-types.d.ts +5 -0
  152. package/dist/core/runtime/runtime-types.d.ts.map +1 -1
  153. package/dist/core/session/open-bundle.d.ts +28 -34
  154. package/dist/core/session/open-bundle.d.ts.map +1 -1
  155. package/dist/core/session/open-bundle.js +57 -80
  156. package/dist/core/session/open-bundle.js.map +1 -1
  157. package/dist/core/session/turn-end-watch.d.ts +112 -0
  158. package/dist/core/session/turn-end-watch.d.ts.map +1 -0
  159. package/dist/core/session/turn-end-watch.js +196 -0
  160. package/dist/core/session/turn-end-watch.js.map +1 -0
  161. package/dist/core/session-log/index.d.ts +1 -0
  162. package/dist/core/session-log/index.d.ts.map +1 -1
  163. package/dist/core/session-log/index.js +2 -0
  164. package/dist/core/session-log/index.js.map +1 -1
  165. package/dist/core/session-log/tool-call.d.ts +12 -1
  166. package/dist/core/session-log/tool-call.d.ts.map +1 -1
  167. package/dist/core/session-log/tool-call.js +26 -1
  168. package/dist/core/session-log/tool-call.js.map +1 -1
  169. package/dist/core/session-log/turns/blocks.d.ts +5 -1
  170. package/dist/core/session-log/turns/blocks.d.ts.map +1 -1
  171. package/dist/core/session-log/turns/blocks.js +20 -2
  172. package/dist/core/session-log/turns/blocks.js.map +1 -1
  173. package/dist/core/session-log/turns/history.d.ts +92 -0
  174. package/dist/core/session-log/turns/history.d.ts.map +1 -0
  175. package/dist/core/session-log/turns/history.js +145 -0
  176. package/dist/core/session-log/turns/history.js.map +1 -0
  177. package/dist/core/session-log/turns/index.d.ts +8 -3
  178. package/dist/core/session-log/turns/index.d.ts.map +1 -1
  179. package/dist/core/session-log/turns/index.js +7 -2
  180. package/dist/core/session-log/turns/index.js.map +1 -1
  181. package/dist/core/session-log/turns/turn.d.ts +24 -4
  182. package/dist/core/session-log/turns/turn.d.ts.map +1 -1
  183. package/dist/core/session-log/turns/turn.js +64 -5
  184. package/dist/core/session-log/turns/turn.js.map +1 -1
  185. package/dist/core/session-log/types.d.ts +4 -4
  186. package/dist/core/session-log/types.js +2 -2
  187. package/dist/core/session-log/v1-view.d.ts +13 -9
  188. package/dist/core/session-log/v1-view.d.ts.map +1 -1
  189. package/dist/core/session-log/v1-view.js +49 -24
  190. package/dist/core/session-log/v1-view.js.map +1 -1
  191. package/dist/core/session-log/v1.d.ts +2 -0
  192. package/dist/core/session-log/v1.d.ts.map +1 -1
  193. package/dist/core/session-log/v1.js +12 -1
  194. package/dist/core/session-log/v1.js.map +1 -1
  195. package/dist/core/session-sync/saved-transcript.d.ts +57 -1
  196. package/dist/core/session-sync/saved-transcript.d.ts.map +1 -1
  197. package/dist/core/session-sync/saved-transcript.js +93 -0
  198. package/dist/core/session-sync/saved-transcript.js.map +1 -1
  199. package/dist/core/session-sync/session-sync-controller.d.ts +2 -1
  200. package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
  201. package/dist/core/session-sync/session-sync-controller.js +9 -0
  202. package/dist/core/session-sync/session-sync-controller.js.map +1 -1
  203. package/dist/core/stream/event-stream.d.ts.map +1 -1
  204. package/dist/core/stream/event-stream.js +4 -1
  205. package/dist/core/stream/event-stream.js.map +1 -1
  206. package/dist/core/turns/classify.d.ts.map +1 -1
  207. package/dist/core/turns/classify.js +6 -3
  208. package/dist/core/turns/classify.js.map +1 -1
  209. package/dist/core/turns/edit-blocks.d.ts +8 -0
  210. package/dist/core/turns/edit-blocks.d.ts.map +1 -0
  211. package/dist/core/turns/edit-blocks.js +22 -0
  212. package/dist/core/turns/edit-blocks.js.map +1 -0
  213. package/dist/core/turns/segments/burst-summary.d.ts +10 -0
  214. package/dist/core/turns/segments/burst-summary.d.ts.map +1 -1
  215. package/dist/core/turns/segments/burst-summary.js +33 -0
  216. package/dist/core/turns/segments/burst-summary.js.map +1 -1
  217. package/dist/core/turns/segments/narration.d.ts +1 -1
  218. package/dist/core/turns/segments/narration.d.ts.map +1 -1
  219. package/dist/core/turns/segments/narration.js +9 -0
  220. package/dist/core/turns/segments/narration.js.map +1 -1
  221. package/dist/core/turns/state.d.ts +5 -4
  222. package/dist/core/turns/state.d.ts.map +1 -1
  223. package/dist/core/turns/state.js +5 -4
  224. package/dist/core/turns/state.js.map +1 -1
  225. package/dist/core/turns/tool-kind.d.ts +6 -4
  226. package/dist/core/turns/tool-kind.d.ts.map +1 -1
  227. package/dist/core/turns/tool-kind.js +13 -5
  228. package/dist/core/turns/tool-kind.js.map +1 -1
  229. package/dist/core/turns/tool-registry.d.ts.map +1 -1
  230. package/dist/core/turns/tool-registry.js +1 -0
  231. package/dist/core/turns/tool-registry.js.map +1 -1
  232. package/dist/core/turns/view-model.d.ts.map +1 -1
  233. package/dist/core/turns/view-model.js +1 -14
  234. package/dist/core/turns/view-model.js.map +1 -1
  235. package/dist/genui/catalog.d.ts +40 -0
  236. package/dist/genui/catalog.d.ts.map +1 -0
  237. package/dist/genui/catalog.js +420 -0
  238. package/dist/genui/catalog.js.map +1 -0
  239. package/dist/genui/expansion.d.ts +19 -0
  240. package/dist/genui/expansion.d.ts.map +1 -0
  241. package/dist/genui/expansion.js +344 -0
  242. package/dist/genui/expansion.js.map +1 -0
  243. package/dist/genui/fence-entry.d.ts +3 -0
  244. package/dist/genui/fence-entry.d.ts.map +1 -0
  245. package/dist/genui/fence-entry.js +4 -0
  246. package/dist/genui/fence-entry.js.map +1 -0
  247. package/dist/genui/fence.d.ts +53 -0
  248. package/dist/genui/fence.d.ts.map +1 -0
  249. package/dist/genui/fence.js +170 -0
  250. package/dist/genui/fence.js.map +1 -0
  251. package/dist/genui/index.d.ts +7 -0
  252. package/dist/genui/index.d.ts.map +1 -0
  253. package/dist/genui/index.js +7 -0
  254. package/dist/genui/index.js.map +1 -0
  255. package/dist/genui/markdown.d.ts +33 -0
  256. package/dist/genui/markdown.d.ts.map +1 -0
  257. package/dist/genui/markdown.js +133 -0
  258. package/dist/genui/markdown.js.map +1 -0
  259. package/dist/genui/parse.d.ts +12 -0
  260. package/dist/genui/parse.d.ts.map +1 -0
  261. package/dist/genui/parse.js +83 -0
  262. package/dist/genui/parse.js.map +1 -0
  263. package/dist/genui/prompt.d.ts +5 -0
  264. package/dist/genui/prompt.d.ts.map +1 -0
  265. package/dist/genui/prompt.js +209 -0
  266. package/dist/genui/prompt.js.map +1 -0
  267. package/dist/genui/react/default-components.d.ts +3 -0
  268. package/dist/genui/react/default-components.d.ts.map +1 -0
  269. package/dist/genui/react/default-components.js +81 -0
  270. package/dist/genui/react/default-components.js.map +1 -0
  271. package/dist/genui/react/genui-block.d.ts +46 -0
  272. package/dist/genui/react/genui-block.d.ts.map +1 -0
  273. package/dist/genui/react/genui-block.js +106 -0
  274. package/dist/genui/react/genui-block.js.map +1 -0
  275. package/dist/genui/react/index.d.ts +3 -0
  276. package/dist/genui/react/index.d.ts.map +1 -0
  277. package/dist/genui/react/index.js +3 -0
  278. package/dist/genui/react/index.js.map +1 -0
  279. package/dist/genui/share.d.ts +11 -0
  280. package/dist/genui/share.d.ts.map +1 -0
  281. package/dist/genui/share.js +36 -0
  282. package/dist/genui/share.js.map +1 -0
  283. package/dist/genui/types.d.ts +51 -0
  284. package/dist/genui/types.d.ts.map +1 -0
  285. package/dist/genui/types.js +3 -0
  286. package/dist/genui/types.js.map +1 -0
  287. package/dist/genui/urls.d.ts +7 -0
  288. package/dist/genui/urls.d.ts.map +1 -0
  289. package/dist/genui/urls.js +24 -0
  290. package/dist/genui/urls.js.map +1 -0
  291. package/dist/genui/validate.d.ts +25 -0
  292. package/dist/genui/validate.d.ts.map +1 -0
  293. package/dist/genui/validate.js +139 -0
  294. package/dist/genui/validate.js.map +1 -0
  295. package/dist/index.d.ts +2 -2
  296. package/dist/index.d.ts.map +1 -1
  297. package/dist/index.js +2 -2
  298. package/dist/index.js.map +1 -1
  299. package/dist/kortix.esm.min.js +38 -36
  300. package/dist/kortix.global.js +38 -36
  301. package/dist/platform/ui.d.ts +20 -2
  302. package/dist/platform/ui.d.ts.map +1 -1
  303. package/dist/platform/ui.js +31 -4
  304. package/dist/platform/ui.js.map +1 -1
  305. package/dist/react/hold-live-start.js +1 -1
  306. package/dist/react/hold-live-start.js.map +1 -1
  307. package/dist/react/index.d.ts +4 -0
  308. package/dist/react/index.d.ts.map +1 -1
  309. package/dist/react/index.js +5 -0
  310. package/dist/react/index.js.map +1 -1
  311. package/dist/react/opencode.d.ts +1 -1
  312. package/dist/react/opencode.d.ts.map +1 -1
  313. package/dist/react/opencode.js +1 -1
  314. package/dist/react/opencode.js.map +1 -1
  315. package/dist/react/query-contracts.d.ts +10 -0
  316. package/dist/react/query-contracts.d.ts.map +1 -1
  317. package/dist/react/query-contracts.js +10 -0
  318. package/dist/react/query-contracts.js.map +1 -1
  319. package/dist/react/query-keys.d.ts +29 -1
  320. package/dist/react/query-keys.d.ts.map +1 -1
  321. package/dist/react/query-keys.js +37 -2
  322. package/dist/react/query-keys.js.map +1 -1
  323. package/dist/react/reset-identity-state.d.ts +2 -1
  324. package/dist/react/reset-identity-state.d.ts.map +1 -1
  325. package/dist/react/reset-identity-state.js +4 -1
  326. package/dist/react/reset-identity-state.js.map +1 -1
  327. package/dist/react/session-cache-write.d.ts +2 -0
  328. package/dist/react/session-cache-write.d.ts.map +1 -1
  329. package/dist/react/session-cache-write.js +24 -1
  330. package/dist/react/session-cache-write.js.map +1 -1
  331. package/dist/react/sign-in-with-kortix.d.ts +5 -5
  332. package/dist/react/turn-end-handoff.d.ts +24 -0
  333. package/dist/react/turn-end-handoff.d.ts.map +1 -0
  334. package/dist/react/turn-end-handoff.js +131 -0
  335. package/dist/react/turn-end-handoff.js.map +1 -0
  336. package/dist/react/use-admin-accounts.d.ts +124 -39
  337. package/dist/react/use-admin-accounts.d.ts.map +1 -1
  338. package/dist/react/use-admin-accounts.js +96 -41
  339. package/dist/react/use-admin-accounts.js.map +1 -1
  340. package/dist/react/use-billing-plan.d.ts +38 -0
  341. package/dist/react/use-billing-plan.d.ts.map +1 -0
  342. package/dist/react/use-billing-plan.js +64 -0
  343. package/dist/react/use-billing-plan.js.map +1 -0
  344. package/dist/react/use-capture.d.ts +77 -0
  345. package/dist/react/use-capture.d.ts.map +1 -0
  346. package/dist/react/use-capture.js +210 -0
  347. package/dist/react/use-capture.js.map +1 -0
  348. package/dist/react/use-feature-flag.d.ts +3 -3
  349. package/dist/react/use-feature-flag.d.ts.map +1 -1
  350. package/dist/react/use-feature-flag.js +4 -3
  351. package/dist/react/use-feature-flag.js.map +1 -1
  352. package/dist/react/use-opencode-events/handle-interaction-event.d.ts.map +1 -1
  353. package/dist/react/use-opencode-events/handle-interaction-event.js +5 -3
  354. package/dist/react/use-opencode-events/handle-interaction-event.js.map +1 -1
  355. package/dist/react/use-opencode-events/handle-session-event.d.ts.map +1 -1
  356. package/dist/react/use-opencode-events/handle-session-event.js +19 -8
  357. package/dist/react/use-opencode-events/handle-session-event.js.map +1 -1
  358. package/dist/react/use-opencode-events/handler-context.d.ts +2 -0
  359. package/dist/react/use-opencode-events/handler-context.d.ts.map +1 -1
  360. package/dist/react/use-opencode-events/helpers.d.ts +11 -0
  361. package/dist/react/use-opencode-events/helpers.d.ts.map +1 -1
  362. package/dist/react/use-opencode-events/helpers.js +21 -1
  363. package/dist/react/use-opencode-events/helpers.js.map +1 -1
  364. package/dist/react/use-opencode-local.d.ts +12 -1
  365. package/dist/react/use-opencode-local.d.ts.map +1 -1
  366. package/dist/react/use-opencode-local.js +23 -3
  367. package/dist/react/use-opencode-local.js.map +1 -1
  368. package/dist/react/use-opencode-sessions/commands.d.ts +20 -1
  369. package/dist/react/use-opencode-sessions/commands.d.ts.map +1 -1
  370. package/dist/react/use-opencode-sessions/commands.js +29 -1
  371. package/dist/react/use-opencode-sessions/commands.js.map +1 -1
  372. package/dist/react/use-opencode-sessions/permissions.d.ts.map +1 -1
  373. package/dist/react/use-opencode-sessions/permissions.js +46 -1
  374. package/dist/react/use-opencode-sessions/permissions.js.map +1 -1
  375. package/dist/react/use-project-sessions.d.ts +1 -1
  376. package/dist/react/use-project-sessions.d.ts.map +1 -1
  377. package/dist/react/use-project-sessions.js +3 -2
  378. package/dist/react/use-project-sessions.js.map +1 -1
  379. package/dist/react/use-prompt-attachments.d.ts.map +1 -1
  380. package/dist/react/use-prompt-attachments.js +1 -0
  381. package/dist/react/use-prompt-attachments.js.map +1 -1
  382. package/dist/react/use-review-summary.d.ts +29 -0
  383. package/dist/react/use-review-summary.d.ts.map +1 -0
  384. package/dist/react/use-review-summary.js +48 -0
  385. package/dist/react/use-review-summary.js.map +1 -0
  386. package/dist/react/use-runtime-reconnect.js +2 -2
  387. package/dist/react/use-runtime-reconnect.js.map +1 -1
  388. package/dist/react/use-session-list-state.d.ts +14 -0
  389. package/dist/react/use-session-list-state.d.ts.map +1 -0
  390. package/dist/react/use-session-list-state.js +43 -0
  391. package/dist/react/use-session-list-state.js.map +1 -0
  392. package/dist/react/use-session-log.d.ts +19 -10
  393. package/dist/react/use-session-log.d.ts.map +1 -1
  394. package/dist/react/use-session-log.js +29 -24
  395. package/dist/react/use-session-log.js.map +1 -1
  396. package/dist/react/use-session-stream.d.ts.map +1 -1
  397. package/dist/react/use-session-stream.js +16 -1
  398. package/dist/react/use-session-stream.js.map +1 -1
  399. package/dist/react/use-session-sync.d.ts +10 -2
  400. package/dist/react/use-session-sync.d.ts.map +1 -1
  401. package/dist/react/use-session-sync.js +14 -8
  402. package/dist/react/use-session-sync.js.map +1 -1
  403. package/dist/react/use-session-transcript-history.d.ts +1 -0
  404. package/dist/react/use-session-transcript-history.d.ts.map +1 -1
  405. package/dist/react/use-session-transcript-history.js +5 -16
  406. package/dist/react/use-session-transcript-history.js.map +1 -1
  407. package/dist/react/use-session-working.d.ts +11 -0
  408. package/dist/react/use-session-working.d.ts.map +1 -1
  409. package/dist/react/use-session-working.js +16 -0
  410. package/dist/react/use-session-working.js.map +1 -1
  411. package/dist/react/use-session.d.ts +28 -1
  412. package/dist/react/use-session.d.ts.map +1 -1
  413. package/dist/react/use-session.js +76 -12
  414. package/dist/react/use-session.js.map +1 -1
  415. package/package.json +33 -6
package/README.md CHANGED
@@ -216,12 +216,19 @@ cannot retry: `retry` throws, and the item error carries code
216
216
  resolves at once. It deletes unbound storage best-effort and never rejects; a
217
217
  failed or refused DELETE leaves the object to the 24-hour expiry.
218
218
  `abort(localId)` cancels unfinished work. `dispose()` aborts listed work and
219
- deletes its uploads best-effort: no send holds them, and drafts keep no handle.
220
- Call it on non-React cleanup; the hook handles unmount and project changes.
221
- Unused uploads expire after 24 hours.
222
-
223
- Selections live in memory only. Never persist a File, blob URL, signed URL, or
224
- upload handle in a draft.
219
+ deletes its uploads best-effort: no send holds them. Call it on non-React
220
+ cleanup; the hook handles unmount and project changes. Unused uploads expire
221
+ after 24 hours.
222
+
223
+ A draft may keep a finished upload, so a reload or another composer brings the
224
+ file back. Store its metadata (`item.attachment`: `attachment_id`, `filename`,
225
+ `mime`, `size`, `expires_at`) and call `forget(ids)` before `dispose()`, so the
226
+ upload is not deleted. Later, `restore([{ attachment, file? }])` lists it again
227
+ as `ready` with no request, and returns its new id (`undefined` for an expired or
228
+ invalid one). Send uses it like any ready upload. The server binds an attachment
229
+ only for its own account, project and person, so the id grants nothing to
230
+ anyone else. Never persist a File, a blob URL, or a signed URL: an unfinished
231
+ upload cannot be kept.
225
232
 
226
233
  For non-composer uploads, call `kortix.project(projectId).attachments.upload(file,
227
234
  { signal, onProgress, onUpload, resume })`. The server selects the transport in the
@@ -402,7 +409,7 @@ both the pool list and the session's provider-specific query cache.
402
409
 
403
410
  ### Apps
404
411
 
405
- `kortix.project(projectId).apps` deploys immutable App releases behind one stable URL: releases, machines per process group, persistent volumes. New Apps use `private` access. Apps is an experimental project feature, so API operations return `404` until a project manager enables it.
412
+ `kortix.project(projectId).apps` deploys immutable App releases behind one stable URL: releases, machines per process group, persistent volumes. New Apps use `private` access. Apps is generally available: every project can create and deploy them.
406
413
 
407
414
  ```ts
408
415
  const apps = kortix.project(projectId).apps;
@@ -476,8 +483,16 @@ most 16,384 characters of JSON. Example: `examples/12-session-labels.ts`.
476
483
  `kortix.session(projectId, sessionId).messageAuthors()` (or `getSessionMessageAuthors`) returns
477
484
  `{ authors, initial_author }`: `authors` maps a runtime message id to a `SessionMessageAuthor`,
478
485
  `{ kind: 'member', user_id, name, email, avatar_url }` or `{ kind: 'session', session_id, name, agent? }`.
486
+ `stops` maps the user message that started a turn to the member who stopped that turn.
479
487
  In React, `useSessionMessageAuthors(projectId, sessionId, messageCount)` reads the same data.
480
488
 
489
+ ### Who may stop a turn
490
+
491
+ In a shared session only the member who started the running turn, the session owner or a
492
+ project manager may stop it. `GET .../turn` answers per caller in `can_stop`, and
493
+ `useSession().canStop` reads it with no extra request: `false` means show no Stop and let a
494
+ send queue. Any other stop answers 403 with `code: 'not_turn_prompter'`.
495
+
481
496
  ### Which model answered a turn
482
497
 
483
498
  `kortix.session(projectId, sessionId).modelUsage()` (or `getSessionModelUsage`) returns
@@ -505,6 +520,11 @@ server-validated runtime session id and lets the live read reconcile the saved m
505
520
  A live read that returns no messages keeps the saved messages on screen: it means the computer
506
521
  lost its state, not that the conversation is empty. The first live read with messages reconciles them.
507
522
  Missing or rejected history falls back to the existing runtime path.
523
+ An open reads the saved window once: the session-open snapshot carries it (the read waits up
524
+ to 2 s for one in flight), else `GET …/transcript?shape=sync&history=true`. A host that shows
525
+ the saved copy before `useSession` binds the session calls `readSavedSessionCopy`, the same read
526
+ plus the empty-conversation proof. The SDK holds that copy for the open that follows (up to 5 min):
527
+ the snapshot then asks for no window, and the saved-history read answers from the held copy.
508
528
 
509
529
  `useSession().savedTranscript` says whether that saved conversation can show before the
510
530
  computer wakes: `loading` while a saved copy may still arrive, `shown` once messages are in
@@ -566,7 +586,7 @@ exhaustive — see `API-MAP.md` for the full per-domain surface:
566
586
  |---|---|
567
587
  | `kortix.projects` | list · get · detail · create · provision · update · archive · llmCatalog · modelPicker · sandboxTemplates · sessions (+ more: `listForAccount`, `sandboxHealth`, `createSession`) |
568
588
  | `kortix.accounts` | list · get · create · members · invites · `secretResources.{list,create,rotate,delete,grant,revoke,setAccess}` · `tokens.{list,create,revoke}` (account-scoped CLI PATs, `kortix_pat_…`) · `audit.{log,export,webhooks.*}` (filterable project/session reconstruction log) · `branding.{get,update,uploadAsset,removeAsset,reset}` (Enterprise organization branding: logo / icon / favicon, light + dark, product name) (+ more: `updateName`, `leave`, `invite`, `removeMember`, `updateMemberRole`) |
569
- | `kortix.billing` | entitlement/usage reads: `accountState` · `accountStateMinimal` · `transactions` · `transactionsSummary` · `creditBreakdown` · `usageHistory` · `usageRollup` · `sessionCosts.{list,get}` · `tierConfigurations` — plus a curated mutation surface: `subscription.{createPortalSession,cancel,reactivate,cancelScheduledChange,prorationPreview}` · `credits.{purchase,autoTopupSettings,configureAutoTopup}`. `checkout.{createSession,confirmSession}` and `subscription.scheduleDowngrade` are deprecated: they reject with `ENDPOINT_RETIRED` |
589
+ | `kortix.billing` | entitlement/usage reads: `accountState` · `accountStateMinimal` · `transactions` · `transactionsSummary` · `creditBreakdown` · `usageHistory` · `usageRollup` · `sessionCosts.{list,get}` · `tierConfigurations` (with `min_monthly_usd` / `max_monthly_usd`) — plus a curated mutation surface: `setPlan` (subscribe to or change the credits plan; `useSetBillingPlan()` in `@kortix/sdk/react`) · `subscription.{createPortalSession,cancel,reactivate}` · `credits.{purchase,autoTopupSettings,configureAutoTopup}`. `checkout.{createSession,confirmSession}`, `subscription.{scheduleDowngrade,cancelScheduledChange,prorationPreview}`, `createPerSeatCheckout` and `claimPerSeatBilling` are deprecated: they reject with `ENDPOINT_RETIRED` |
570
590
  | `kortix.marketplace` | public marketplace catalog browse + sources (not project-scoped): `items` · `item` · `itemFile` · `marketplaces` · `featured` · `sources.{list,add,remove}` — distinct from the install-scoped `project(id).marketplace` |
571
591
  | `kortix.github` | account-scoped GitHub App installs and repo linking: `getInstallation` · `listInstallations` · `listLinkableInstallations` (each entry carries `linked_to_other_accounts`, a count and never a tenant name) · `listRepositories` · `listRepositoryBranches` · `linkInstallation` · `saveInstallation` · `deleteInstallation` · `linkRepository` (`source: 'managed'` imports a repository the instance backend holds — self-host operator only, and mutually exclusive with `installation_id`) · `replaceProjectRepository` (changes an existing project's repository with an expected old URL; accepts a repository-scoped PAT or a temporary GitHub user proof for a repository-scoped App grant; can atomically copy selected shared runtime secrets from another project in the same account) |
572
592
  | `kortix.gitBackend` | the instance git backend ("Kortix managed", one per deployment, never an account connection): `get()` → `{configured, kind: 'app'|'pat'|null, owner}` (any authenticated user) · `repositories({search?, limit?})` (self-host operator only; 403 otherwise) |
@@ -575,7 +595,7 @@ exhaustive — see `API-MAP.md` for the full per-domain surface:
575
595
  | `kortix.validateToken()` | pasted-API-key validation helper — `GET /accounts/me`, never throws, resolves `{valid, identity?, error?}` |
576
596
  | `kortix.connectors` | Connector data plane for an agent-minted session token: `catalog` · `tools` · `search` · `describe` · `call` (`{ account }`) · `accounts` · `uploadAttachment` |
577
597
  | `kortix.project(id)` | id-bound handle: `.apps` (stable App URLs, access, artifacts, deployments, logs, rollback, start/stop, machines (`machines.list/start/stop/restart/destroy`, `scale`, `exec`), volumes (`volumes.list/create/update/destroy/snapshots/snapshot/restore/fork`), and `token`) · `.secrets` · `.access` · `.connectors` (data plane + configuration + Connections) · `.policies` · `.triggers` (cron / webhook / monitor / event; `.eventTypes({ connector })` lists a connector's app events) · `.files` · `.git` · `.changeRequests` (incl. `requestChanges`) · `.sessions` · `.tokens` (project-scoped CLI PATs — the `KORTIX_TOKEN` shape) · `.marketplace` / `.registry` (install/update/remove catalog items) · `.setupLinks.{requestSecret,requestConnector}` (agent-minted secret-entry / connector links) · `.validateManifest` · `.gitToken` · `.setDefaultAgent(name)` · `.session(sid)` (+ more namespaces: `.review`, `.approvals`, `.gateway` (incl. `.routing` and `.playground`), `.channels`, `.modelDefaults`, `.sandbox`) |
578
- | `kortix.session(pid, sid)` | id-bound handle: lifecycle (`get`/`update`/`delete`/`start`/`restart`/`stop`/`reloadConfig`/`reloadConfigStream`/`setSharing`/`participants`/`watch`/`setWatch`/`presence`/`previews`/`commit`/`publicShares`/`ensureReady`) · `providerSecretPool.{list,get,set}` · finalized `cost()` · `send`/`abort`/`rewind`/`restoreRewind`/`setModel`/`setAgent` · `transcript()` · `.files` · runtime URL helpers (`health`/`previewUrl`/`proxyUrl`) · runtime REST escape hatches: `stream()` and the deprecated `.runtime` |
598
+ | `kortix.session(pid, sid)` | id-bound handle: lifecycle (`get`/`update`/`delete`/`restore`/`start`/`restart`/`stop`/`reloadConfig`/`reloadConfigStream`/`setSharing`/`participants`/`watch`/`setWatch`/`presence`/`previews`/`commit`/`publicShares`/`ensureReady`) · `providerSecretPool.{list,get,set}` · finalized `cost()` · `send`/`abort`/`rewind`/`restoreRewind`/`setModel`/`setAgent` · `transcript()` · `.files` · runtime URL helpers (`health`/`previewUrl`/`proxyUrl`) · runtime REST escape hatches: `stream()` and the deprecated `.runtime` |
579
599
  | `kortix.runtime()` | the runtime REST client for the active sandbox (the SDK's own `RuntimeClient`, frozen at the `@opencode-ai/sdk` 1.18.23 route shapes); use a session-scoped handle in multi-tenant code |
580
600
 
581
601
  Runnable, self-contained scripts for the highest-value flows live in
@@ -700,8 +720,8 @@ session-log types, and a test fails when the two differ. See the
700
720
  `useSessionLogThread(session, threadId?, { throttleMs? })`: the log of a session `useSession`
701
721
  owns. `useSessionLog` marks its source: `'v2'` is the API's log, which a session
702
722
  reads only when the runtime lists `session.log.v2`, the project flag
703
- `session_log` is on, and the API holds a log for an OpenCode session. Every
704
- other session reads v1, and the hooks return `source: 'v1'`: the `fromV1`
723
+ `session_log` is on, and the API holds a log for the session (OpenCode or pi).
724
+ Every other session reads v1, and the hooks return `source: 'v1'`: the `fromV1`
705
725
  conversion of the v1 rows, with the turn that runs kept open. Pass the session's
706
726
  `runtimeSessionId`; without it, or before the first row, they return `null`.
707
727
  `throttleMs` paces the v1 rows as `useSessionMessages` paces them. The
@@ -718,13 +738,18 @@ still v1:
718
738
  the SDK major that removes the v1 rows.
719
739
  - `toolCallMetadata(call)`: the harness's display metadata of a tool call, the
720
740
  whole `state.metadata` of the v1 part it came from (bash `command`, read
721
- `loaded`, task `sessionId`, edit `filediff`). It stays until the session-log
722
- schema carries display metadata of its own.
741
+ `loaded`, task `sessionId`, edit `filediff`); for a record a harness wrote
742
+ natively (pi), its `details`. It stays until the session-log schema carries
743
+ display metadata of its own.
723
744
  - `sessionLogOfV1Rows(sessionId, runtimeSessionId, rows)`: the `fromV1` live view
724
745
  of one runtime session's v1 rows, the log `useSessionLogThread` returns on v1,
725
746
  for rows a host reads without a `useSession` (a sub-agent's chat). One message
726
747
  per row object, kept while the row is unchanged. It goes away with the v1 rows.
727
748
 
749
+ A host draws a `ToolCallBlock` with `toolCallStatus(call)` (`completed`, not
750
+ `complete`), `toolCallRawOutput(call)`, `toolCallError(call)` (the semantic error,
751
+ else the result text) and, for a sub-agent row, `subAgentCalls(thread)`.
752
+
728
753
  `getSessionLogPage(projectId, sessionId, query?)`, or `kortix.session(p, s).log(query?)`,
729
754
  reads one page of the stored session log (`SessionLogPage`: the session record,
730
755
  every thread head, a thread's newest messages by `seq`, `has_more`). `query` is
@@ -753,7 +778,8 @@ transcript renders a thread from. It replaces the v1 turn helpers over
753
778
  projection's turn), `held` (the prompts the inbox still holds, in queue
754
779
  order), `threads` (the session's threads, for `threads`), `pricing`. A turn
755
780
  keeps its identity while its messages and derived fields do. A message out
756
- of context (a failed attempt) keeps its turn.
781
+ of context (a failed attempt) keeps its turn; `hideOutOfContext: true` leaves
782
+ out every message with `in_context: false` that is not streaming.
757
783
  - `sessionLogTurnSegments(blocks, options?)`, `splitSessionLogTurnWork(segments, { working })`
758
784
  and `sessionLogBurstSteps(blocks)` draw a turn: bursts, text and standalone calls,
759
785
  the settled-turn fold, and the rows of a burst.
@@ -786,6 +812,20 @@ transcript renders a thread from. It replaces the v1 turn helpers over
786
812
  modal's overview and its sub-agent rows show.
787
813
  - A pending permission or question matches a call by `call.call_id`
788
814
  (`getPermissionForTool`, `getQuestionForTool`).
815
+ - A session's history: `isSessionLogRestoreNote(message)` is the note a partial
816
+ restore leaves for the agent (render it as a notice, not a prompt);
817
+ `sessionLogRestoreNotice(session)` is what that restore could not bring back
818
+ (`{ generation, missing: [{ kind, count }] }`, null unless the grade is
819
+ `partial` and a restore wrote the record); `sessionLogHarnessSwitches(history, turns)`
820
+ maps each switch `harness.history` records to the turn it lands on.
821
+ - Texts stored by reference: `sessionLogReferencedTexts(messages)` lists every
822
+ text the API kept as a 16 kB preview (`{ ref, bytes }`); read one with
823
+ `fetchSessionAttachment(ref)` and put it back with `sessionLogWithFullTexts(thread, texts)`. `sessionLogFullTextAction(refs)` says
824
+ `'download'` above `SESSION_LOG_FULL_TEXT_INLINE_MAX_BYTES` (1 MiB) in all, else `'inline'`;
825
+ `sessionLogFullTextPlan(refs)` says which texts: the smallest fill the 1 MiB inline budget,
826
+ only the rest download.
827
+ - `useSessionLogRecord(session)` (`@kortix/sdk/react`) is the v2 session record without threads
828
+ (`restore_grade`, `grade_counts`, `harness`, `ext`); it keeps its identity through message puts.
789
829
 
790
830
  Both layers give one answer for a record converted from v1 (its `cost` too: a
791
831
  v1-derived reply is priced over its v1 parts): the SDK's test suite compares them
@@ -918,6 +958,8 @@ the root import — offers the same agents and models and sends the same pick.
918
958
  | `modelInDefaultView(model, { search, isStoreVisible, selected })` | → whether the empty-search picker shows the model |
919
959
  | `resolveModelDefault(modelDefaults, agentName)` | `/model-defaults` → agent → project → account → platform default |
920
960
  | `resolveComposerModel({ models, picks, serverDefault, globalDefault, agentModel, configModel, recent, providers })` | → `{ model, explicit, fallback }` |
961
+ | `sessionModelCandidates({ session, lastPromptModel, gatewayEnabled })` | session row + last prompt's model → the models the session already runs, most trusted first: a chosen pin (`explicit`, `repointed`), the last prompt's model, a default pin. Put them in `picks` after this composer's own pick for the session |
962
+ | `latestPromptModel(messages)` | transcript → the model of the newest user message that records one |
921
963
 
922
964
  The root barrel reads catalog helpers from `@kortix/llm-catalog/lite`, which
923
965
  never includes the ~7.6 MB models.dev snapshot, so a bundler that does not
@@ -1047,6 +1089,17 @@ interface KortixPlatformConfig {
1047
1089
  }
1048
1090
  ```
1049
1091
 
1092
+ `onNotify` receives the session events a host shows as notifications:
1093
+ `task-complete` (`sessionTitle`), `session-error` (`errorTitle`), `question`
1094
+ (`questionText`) and `permission` (`toolName`), each with `sessionId`.
1095
+ `useSession` raises them from its event stream. When its view unmounts with a
1096
+ turn still running, a watch follows the turn on the session's control stream
1097
+ (`kortix.control.turn`; `GET …/turn` while the stream is down) and raises
1098
+ `task-complete` or `session-error` itself, with `projectId`; `task-complete`
1099
+ also carries `watchedSinceMs`, the watch's start in `Date.now()`. Mounting the
1100
+ view again ends the watch. Without `onNotify`, no watch runs. See
1101
+ `src/core/session/turn-end-watch.ts`.
1102
+
1050
1103
  `onAccessRemedy` receives the code of a 403 the person can fix: `sso_required`
1051
1104
  (sign in again through the account's identity provider) or
1052
1105
  `account_mfa_required` (complete multi-factor authentication). It runs for every
@@ -1226,6 +1279,7 @@ per-release changes.
1226
1279
  ### Agent repository access
1227
1280
 
1228
1281
  Agent configuration accepts `repository_access?: boolean` (default `true`).
1282
+ The API stores it in `kortix.yaml` as `agents.<name>.workspace.project_repository`.
1229
1283
  Set `false` to run new sessions without the project repository or repository API access.
1230
1284
  Git, secret, connector, and tool permissions remain separate. Existing sessions retain their saved policy.
1231
1285
  `AgentConfigBlock.workspace` is deprecated. The SDK maps legacy `branch`/`runtime` to the boolean field.
@@ -1376,3 +1430,41 @@ member queries every 10 seconds while the tab is visible. It also refreshes on
1376
1430
  focus and reconnect, including data still inside the stale-time window. It does
1377
1431
  not poll background tabs or change the identity provider's provisioning schedule.
1378
1432
  Other freshness tiers keep their existing behavior.
1433
+
1434
+ ## Generative UI (`@kortix/sdk/genui`)
1435
+
1436
+ When a project turns on the `genui` flag, the agent may answer with ` ```openui ` blocks:
1437
+ cards, comparisons, charts, maps, tabs. Render them with the headless renderer and your own
1438
+ components, or with the bundled defaults:
1439
+
1440
+ ```tsx
1441
+ import { genuiVersionFromClassName } from '@kortix/sdk/genui';
1442
+ import { GenuiBlock, defaultGenuiComponents } from '@kortix/sdk/genui/react';
1443
+
1444
+ // A module constant: the same function on every render.
1445
+ const renderMarkdown = (md: string) => <Markdown>{md}</Markdown>;
1446
+
1447
+ // Inside your markdown renderer's `code` override:
1448
+ const version = genuiVersionFromClassName(className);
1449
+ if (version !== null) {
1450
+ return (
1451
+ <GenuiBlock
1452
+ code={code}
1453
+ version={version}
1454
+ streaming={isStreaming}
1455
+ components={defaultGenuiComponents}
1456
+ renderMarkdown={renderMarkdown}
1457
+ />
1458
+ );
1459
+ }
1460
+ ```
1461
+
1462
+ Pass a stable `renderMarkdown` (module constant or `useCallback`): a new function re-renders the block's markdown parts and node views.
1463
+
1464
+ A host that renders no UI (email, a chat bot, a CLI) converts a reply with `genuiToMarkdown(text)`.
1465
+ It converts blocks inside blockquotes and list items too. For a reply that is still streaming, pass
1466
+ `genuiToMarkdown(text, { streaming: true })`: the unfinished last block shows no "cut off" note.
1467
+
1468
+ Install the optional peers: `npm i zod @openuidev/lang-core@0.3.1`. `@openuidev/lang-core`
1469
+ sends one pseudonymous PostHog event at install time; set `OPENUI_TELEMETRY_DISABLED=1` or
1470
+ `DO_NOT_TRACK=1` to turn it off. Runtime telemetry is off unless you opt in.
@@ -1 +1 @@
1
- {"version":3,"file":"idb-sync-cache.d.ts","sourceRoot":"","sources":["../../../src/browser/cache/idb-sync-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AAkE9E;;;;;GAKG;AACH,wBAAgB,wBAAwB,IAAI,eAAe,GAAG,IAAI,CAWjE;AAED,+FAA+F;AAC/F,wBAAsB,gBAAgB,CACpC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,GAAG,EAAE,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAC7B,mBAAmB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC,IAAI,CAAC,CAAG;AAEnB,+EAA+E;AAC/E,wBAAgB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAE9C;AAED,8FAA8F;AAC9F,wBAAsB,kBAAkB,CACtC,UAAU,EAAE,MAAM,EAClB,mBAAmB,CAAC,EAAE,MAAM,GAC3B,OAAO,CAAC;IAAE,QAAQ,EAAE,GAAG,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAA;CAAE,GAAG,IAAI,CAAC,CAEnE;AAED,6FAA6F;AAC7F,wBAAsB,wBAAwB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAElE;AAED;;;;GAIG;AACH,wBAAsB,oBAAoB,CAAC,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAIzG;AA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AED,+FAA+F;AAC/F,wBAAsB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAG"}
@@ -51,11 +51,25 @@ function openDB() {
51
51
  const pending = new Promise((resolve, reject) => {
52
52
  const request = idb.open(DB_NAME, DB_VERSION);
53
53
  request.onupgradeneeded = () => {
54
- const db = request.result;
55
- if (db.objectStoreNames.contains(RETIRED_STORE_NAME))
56
- db.deleteObjectStore(RETIRED_STORE_NAME);
57
- if (!db.objectStoreNames.contains(STORE_NAME))
58
- db.createObjectStore(STORE_NAME);
54
+ // A throw here escapes to window.onerror (seen on Chrome 115 as
55
+ // InvalidStateError from createObjectStore). Fail the open instead: the
56
+ // cache is optional, and every caller already handles a failed open.
57
+ try {
58
+ const db = request.result;
59
+ if (db.objectStoreNames.contains(RETIRED_STORE_NAME))
60
+ db.deleteObjectStore(RETIRED_STORE_NAME);
61
+ if (!db.objectStoreNames.contains(STORE_NAME))
62
+ db.createObjectStore(STORE_NAME);
63
+ }
64
+ catch (error) {
65
+ reject(error);
66
+ try {
67
+ request.transaction?.abort();
68
+ }
69
+ catch {
70
+ // The transaction is already finished; the open fails on its own.
71
+ }
72
+ }
59
73
  };
60
74
  request.onsuccess = () => {
61
75
  const db = request.result;
@@ -1 +1 @@
1
- {"version":3,"file":"idb-sync-cache.js","sourceRoot":"","sources":["../../../src/browser/cache/idb-sync-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,MAAM,OAAO,GAAG,sBAAsB,CAAC;AACvC,kFAAkF;AAClF,MAAM,UAAU,GAAG,CAAC,CAAC;AACrB,MAAM,UAAU,GAAG,cAAc,CAAC;AAClC,MAAM,kBAAkB,GAAG,UAAU,CAAC;AAEtC,6EAA6E;AAC7E,MAAM,WAAW,GAAG,IAAI,OAAO,EAAoC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AoB,CAAC,UAAkB,EAAE,kBAA2B;IACxF,MAAM,KAAK,GAAG,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IAC1D,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,MAAM,qBAAqB,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;AAC1E,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB;IACxC,IAAI,CAAC;QACH,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,CAAC;IACnD,CAAC;IAAC,MAAM,CAAC;QACP,sCAAsC;IACxC,CAAC;AACH,CAAC;AAED,+FAA+F;AAC/F,MAAM,CAAC,KAAK,UAAU,aAAa,KAAmB,CAAC"}
@@ -71,13 +71,19 @@ export declare function parseKortixSessionScope(scope: string | undefined): {
71
71
  sessionId: string;
72
72
  } | null;
73
73
  /**
74
- * Fetch the mirror. Never throws and never surfaces an error toast: a session
75
- * that has never been captured is an ordinary answer, not a failure, and this
76
- * read is an accelerator whose absence costs only the old blank wake.
74
+ * Fetch the saved copy for a host that passed `useSessionSync` no `mirror`.
75
+ * Never throws and never surfaces an error toast: a session that has never
76
+ * been captured is an ordinary answer, not a failure, and this read is an
77
+ * accelerator whose absence costs only the old blank wake.
78
+ *
79
+ * The conversation's window is THE saved-history read
80
+ * (`loadSavedTranscript`): the session-open snapshot's window when one is in
81
+ * flight or just answered, else the route. `useSession` passes its answer in,
82
+ * so for a session it owns this never runs. A sub-agent's window is read here,
83
+ * by `child`: the snapshot carries only the conversation's.
77
84
  */
78
85
  export declare function loadSessionTranscriptMirror(input: {
79
86
  kortixSessionScope: string | undefined;
80
- limit?: number;
81
87
  signal?: AbortSignal;
82
88
  /** A sub-agent's OpenCode session inside the scope: its own saved window. */
83
89
  child?: string;
@@ -86,9 +92,9 @@ export declare function loadSessionTranscriptMirror(input: {
86
92
  * The mirror window OLDER than `before`.
87
93
  *
88
94
  * Deliberately NOT `loadSessionTranscriptMirror` with an extra argument: that
89
- * function rides the session-open bundle's one-shot stash, which holds the
90
- * FIRST window and must never be handed back for a second request. This is
91
- * always a fresh read.
95
+ * function can answer from the session-open snapshot, which holds the FIRST
96
+ * window and must never be handed back for an older one. This is always a
97
+ * fresh read.
92
98
  *
93
99
  * `history: true` is not sent. It only adds the server's current-root check,
94
100
  * and `shouldHydrateFromMirror` already applies that guard client-side — the
@@ -106,6 +112,19 @@ export declare function loadOlderSessionTranscriptMirror(input: {
106
112
  /** A sub-agent's OpenCode session inside the scope. */
107
113
  child?: string;
108
114
  }): Promise<SessionTranscriptSyncEnvelope | null>;
115
+ /**
116
+ * Every message of the saved copy, oldest first: each window back from the
117
+ * newest, until the server leaves no cursor. For an export, which needs the
118
+ * whole conversation while the computer cannot answer. Unlike the reads above
119
+ * it throws on a failed read: a partial export must not pass for a whole one.
120
+ */
121
+ export declare function loadSavedSessionTranscriptMessages(scope: {
122
+ projectId: string;
123
+ sessionId: string;
124
+ }, signal?: AbortSignal): Promise<Array<{
125
+ info: Message;
126
+ parts: Part[];
127
+ }>>;
109
128
  /**
110
129
  * How long after a turn ends the device's copy is re-read. The server writes
111
130
  * its saved copy on the turn-end relay, a moment after the runtime goes idle;
@@ -1 +1 @@
1
- {"version":3,"file":"server-transcript-mirror.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACN,KAAK,6BAA6B,EAElC,MAAM,0CAA0C,CAAC;AAMlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE/E;;6BAE6B;AAC7B,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,MA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D;;;GAGG;AACH,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CASf"}
1
+ {"version":3,"file":"server-transcript-mirror.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACN,KAAK,6BAA6B,EAElC,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAG/E;;6BAE6B;AAC7B,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAC/C,oDAAoD;IACpD,gBAAgB,EAAE,MAAM,CAAC;IACzB,sDAAsD;IACtD,WAAW,EAAE,OAAO,CAAC;CACrB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAiB7E;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACvC,QAAQ,EAAE,6BAA6B,GACrC,KAAK,CAAC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAczC;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CACtC,KAAK,EAAE,MAAM,GAAG,SAAS,GACvB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAQjD;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,2BAA2B,CAAC,KAAK,EAAE;IACxD,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAchD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,gCAAgC,CAAC,KAAK,EAAE;IAC7D,kBAAkB,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,6BAA6B,GAAG,IAAI,CAAC,CAahD;AAKD;;;;;GAKG;AACH,wBAAsB,kCAAkC,CACvD,KAAK,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,EAC/C,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,KAAK,CAAC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAAC,CAAC,CAmBlD;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,OAAQ,CAAC;AAEjD;;;GAGG;AACH,wBAAsB,gBAAgB,CACrC,KAAK,EAAE,cAAc,EACrB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CASf"}
@@ -31,7 +31,7 @@
31
31
  * on the runtime).
32
32
  */
33
33
  import { getSessionTranscriptSync, } from "../../core/rest/projects-client/sessions.js";
34
- import { claimOpenBundle, takeOpenBundleTranscript, takeOpenBundleTranscriptAbsence, } from "../../core/session/open-bundle.js";
34
+ import { loadSavedTranscript } from "../../core/session-sync/saved-transcript.js";
35
35
  /** How many mirrored messages a first paint asks for. Matches the sync
36
36
  * controller's own initial tail, so the mirror and the read that replaces it
37
37
  * cover the same window. */
@@ -108,53 +108,29 @@ export function parseKortixSessionScope(scope) {
108
108
  return { projectId, sessionId };
109
109
  }
110
110
  /**
111
- * Fetch the mirror. Never throws and never surfaces an error toast: a session
112
- * that has never been captured is an ordinary answer, not a failure, and this
113
- * read is an accelerator whose absence costs only the old blank wake.
111
+ * Fetch the saved copy for a host that passed `useSessionSync` no `mirror`.
112
+ * Never throws and never surfaces an error toast: a session that has never
113
+ * been captured is an ordinary answer, not a failure, and this read is an
114
+ * accelerator whose absence costs only the old blank wake.
115
+ *
116
+ * The conversation's window is THE saved-history read
117
+ * (`loadSavedTranscript`): the session-open snapshot's window when one is in
118
+ * flight or just answered, else the route. `useSession` passes its answer in,
119
+ * so for a session it owns this never runs. A sub-agent's window is read here,
120
+ * by `child`: the snapshot carries only the conversation's.
114
121
  */
115
122
  export async function loadSessionTranscriptMirror(input) {
116
123
  const scope = parseKortixSessionScope(input.kortixSessionScope);
117
124
  if (!scope)
118
125
  return null;
119
- // A sub-agent's window is never the open bundle's: that one is the
120
- // conversation, and it is claimed once, by the conversation.
121
- if (input.child) {
122
- try {
123
- return await getSessionTranscriptSync(scope.projectId, scope.sessionId, {
124
- limit: input.limit ?? MIRROR_HYDRATE_LIMIT,
126
+ try {
127
+ return input.child
128
+ ? await getSessionTranscriptSync(scope.projectId, scope.sessionId, {
129
+ limit: MIRROR_HYDRATE_LIMIT,
125
130
  signal: input.signal,
126
131
  child: input.child,
127
- });
128
- }
129
- catch {
130
- return null;
131
- }
132
- }
133
- // The SESSION-OPEN BUNDLE fetches this mirror in the same round trip that
134
- // answers the turn and the queue. This hydrate runs at MOUNT, while that
135
- // read is still in flight, so it waits for the read it is riding rather
136
- // than starting a second one — the wait costs nothing (the bundle is
137
- // already on the wire) and saves a full transcript request per open.
138
- //
139
- // The stash is ONE-SHOT: this is the only reader allowed to paint a
140
- // snapshot, and a second paint over a store the runtime has already filled
141
- // is how a transcript grows ghosts.
142
- const claimed = claimOpenBundle(scope.projectId, scope.sessionId);
143
- if (claimed)
144
- await claimed;
145
- const stashed = takeOpenBundleTranscript(scope.projectId, scope.sessionId);
146
- if (stashed)
147
- return stashed;
148
- // The bundle already answered that there is no saved copy. The transcript
149
- // route would answer the same, one round trip later — and a host waiting
150
- // on this answer shows placeholder rows until it lands.
151
- if (takeOpenBundleTranscriptAbsence(scope.projectId, scope.sessionId))
152
- return null;
153
- try {
154
- return await getSessionTranscriptSync(scope.projectId, scope.sessionId, {
155
- limit: input.limit ?? MIRROR_HYDRATE_LIMIT,
156
- signal: input.signal,
157
- });
132
+ })
133
+ : await loadSavedTranscript(scope.projectId, scope.sessionId, { signal: input.signal });
158
134
  }
159
135
  catch {
160
136
  return null;
@@ -164,9 +140,9 @@ export async function loadSessionTranscriptMirror(input) {
164
140
  * The mirror window OLDER than `before`.
165
141
  *
166
142
  * Deliberately NOT `loadSessionTranscriptMirror` with an extra argument: that
167
- * function rides the session-open bundle's one-shot stash, which holds the
168
- * FIRST window and must never be handed back for a second request. This is
169
- * always a fresh read.
143
+ * function can answer from the session-open snapshot, which holds the FIRST
144
+ * window and must never be handed back for an older one. This is always a
145
+ * fresh read.
170
146
  *
171
147
  * `history: true` is not sent. It only adds the server's current-root check,
172
148
  * and `shouldHydrateFromMirror` already applies that guard client-side — the
@@ -192,6 +168,37 @@ export async function loadOlderSessionTranscriptMirror(input) {
192
168
  return null;
193
169
  }
194
170
  }
171
+ /** The route's largest window: an export walks the whole saved copy. */
172
+ const SAVED_EXPORT_WINDOW = 500;
173
+ /**
174
+ * Every message of the saved copy, oldest first: each window back from the
175
+ * newest, until the server leaves no cursor. For an export, which needs the
176
+ * whole conversation while the computer cannot answer. Unlike the reads above
177
+ * it throws on a failed read: a partial export must not pass for a whole one.
178
+ */
179
+ export async function loadSavedSessionTranscriptMessages(scope, signal) {
180
+ const windows = [];
181
+ const seen = new Set();
182
+ let before = null;
183
+ do {
184
+ const envelope = await getSessionTranscriptSync(scope.projectId, scope.sessionId, {
185
+ limit: SAVED_EXPORT_WINDOW,
186
+ history: true,
187
+ before,
188
+ signal,
189
+ });
190
+ if (!envelope.available)
191
+ break;
192
+ windows.unshift(mirrorMessagesForHydrate(envelope));
193
+ before = envelope.next_cursor ?? null;
194
+ // A cursor the server already gave is a server that is not advancing.
195
+ if (before !== null && seen.has(before))
196
+ break;
197
+ if (before !== null)
198
+ seen.add(before);
199
+ } while (before !== null);
200
+ return windows.flat();
201
+ }
195
202
  /**
196
203
  * How long after a turn ends the device's copy is re-read. The server writes
197
204
  * its saved copy on the turn-end relay, a moment after the runtime goes idle;
@@ -1 +1 @@
1
- {"version":3,"file":"server-transcript-mirror.js","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAEN,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EACN,eAAe,EACf,wBAAwB,EACxB,+BAA+B,GAC/B,MAAM,gCAAgC,CAAC;AAGxC;;6BAE6B;AAC7B,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAUvC;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAA4B;IACnE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC1D,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,2EAA2E;IAC3E,0EAA0E;IAC1E,IAAI,WAAW;QAAE,OAAO,KAAK,CAAC;IAC9B,2EAA2E;IAC3E,gCAAgC;IAChC,IAAI,CAAC,gBAAgB;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,CAAC,QAAQ,CAAC,SAAS;QAAE,OAAO,KAAK,CAAC;IACtC,oDAAoD;IACpD,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC/C,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;QAAE,OAA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AK;SAClB,CAAC,CAAC;IACJ,CAAC;IAAC,MAAM,CAAC;QACR,OAAO,IAAI,CAAC;IACb,CAAC;AACF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACrC,KAAqB,EACrB,SAAiB,EACjB,SAAiB;IAEjB,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,MAAM,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE;YACrE,KAAK,EAAE,oBAAoB;SAC3B,CAAC,CAAC;QACH,IAAI,QAAQ;YAAE,MAAM,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;IAAC,MAAM,CAAC;QACR,wDAAwD;IACzD,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"server-transcript-mirror.js","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAGH,OAAO,EAEN,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAE/E;;6BAE6B;AAC7B,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAUvC;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,KAA4B;IACnE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAC1D,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,2EAA2E;IAC3E,0EAA0E;IAC1E,IAAI,WAAW;QAAE,OAAO,KAAK,CAAC;IAC9B,2EAA2E;IAC3E,gCAAgC;IAChC,IAAI,CAAC,gBAAgB;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,CAAC,QAAQ,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CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,SAAS;YAAE,MAAM;QAC/B,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC;QACpD,MAAM,GAAG,QAAQ,CAAC,WAAW,IAAI,IAAI,CAAC;QACtC,sEAAsE;QACtE,IAAI,MAAM,KAAK,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;YAAE,MAAM;QAC/C,IAAI,MAAM,KAAK,IAAI;YAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACvC,CAAC,QAAQ,MAAM,KAAK,IAAI,EAAE;IAC1B,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAEjD;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACrC,KAAqB,EACrB,SAAiB,EACjB,SAAiB;IAEjB,IAAI,CAAC;QACJ,MAAM,QAAQ,GAAG,MAAM,wBAAwB,CAAC,SAAS,EAAE,SAAS,EAAE;YACrE,KAAK,EAAE,oBAAoB;SAC3B,CAAC,CAAC;QACH,IAAI,QAAQ;YAAE,MAAM,KAAK,CAAC,KAAK,CAAC,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;IAAC,MAAM,CAAC;QACR,wDAAwD;IACzD,CAAC;AACF,CAAC"}
@@ -50,6 +50,14 @@ export declare function reconcileSessionTail(sessionId: string, reason: SessionS
50
50
  */
51
51
  export declare function loadSessionRuntimeStatus(sessionId: string, client?: SessionMessageClient): Promise<SessionStatus | null>;
52
52
  export declare function loadSessionTranscriptMessages(sessionId: string): Promise<SessionSyncPage['messages']>;
53
+ /**
54
+ * Every message of a session for an export, oldest first. While the computer
55
+ * runs: the runtime's whole history. When the runtime cannot answer (asleep,
56
+ * stopped, failed) or answers empty, the saved copy, every window of it: the
57
+ * conversation the page shows meanwhile. `kortixSessionScope`
58
+ * (`projectId/sessionId`) names that copy; without it a runtime failure throws.
59
+ */
60
+ export declare function loadSessionExportMessages(sessionId: string, kortixSessionScope?: string): Promise<SessionSyncPage['messages']>;
53
61
  export declare function noteSessionSyncEvent(event: {
54
62
  type?: string;
55
63
  properties?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"session-sync-registry.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/session-sync-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIrF,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAE/B,MAAM,iDAAiD,CAAC;AAIzD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE;QACP,QAAQ,EAAE,CACR,OAAO,EAAE;YACP,SAAS,EAAE,MAAM,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EACD,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,KAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;SAAE,CAAC,CAAC;KAClE,CAAC;CACH;AAED,eAAO,MAAM,8BAA8B,eAAoC,CAAC;AAChF,KAAK,qBAAqB,GAAG,MAAM,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AAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,IAAI,CAuBP;AAED,wBAAgB,2BAA2B,IAAI,IAAI,CAGlD;AAED,8EAA8E;AAC9E,wBAAgB,qCAAqC,CACnD,SAAS,EAAE,MAAM,EACjB,gBAAgB,CAAC,EAAE,MAAM,GACxB,IAAI,CAMN"}
1
+ {"version":3,"file":"session-sync-registry.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/session-sync-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAIrF,OAAO,EACL,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAE/B,MAAM,iDAAiD,CAAC;AAKzD,UAAU,gBAAgB;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,CAAC,CAAC;IAC/C;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB;AAED,UAAU,oBAAoB;IAC5B,OAAO,EAAE;QACP,QAAQ,EAAE,CACR,OAAO,EAAE;YACP,SAAS,EAAE,MAAM,CAAC;YAClB,KAAK,EAAE,MAAM,CAAC;YACd,MAAM,CAAC,EAAE,MAAM,CAAC;SACjB,EACD,OAAO,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,WAAW,CAAA;SAAE,KAC/B,OAAO,CAAC,gBAAgB,CAAC,CAAC;QAC/B,MAAM,CAAC,EAAE,MAAM,OAAO,CAAC;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;SAAE,CAAC,CAAC;KAClE,CAAC;CACH;AAED,eAAO,MAAM,8BAA8B,eAAoC,CAAC;AAChF,KAAK,q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