@kortix/sdk 0.13.52 → 0.13.54

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 (445) hide show
  1. package/README.md +114 -6
  2. package/dist/browser/cache/idb-sync-cache.d.ts +44 -22
  3. package/dist/browser/cache/idb-sync-cache.d.ts.map +1 -1
  4. package/dist/browser/cache/idb-sync-cache.js +113 -257
  5. package/dist/browser/cache/idb-sync-cache.js.map +1 -1
  6. package/dist/browser/session-sync/server-transcript-mirror.d.ts +0 -1
  7. package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
  8. package/dist/browser/session-sync/server-transcript-mirror.js +3 -2
  9. package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
  10. package/dist/browser/stores/sandbox-connection-store.d.ts +8 -0
  11. package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
  12. package/dist/browser/stores/sandbox-connection-store.js +7 -0
  13. package/dist/browser/stores/sandbox-connection-store.js.map +1 -1
  14. package/dist/browser/stores/sync-store.d.ts.map +1 -1
  15. package/dist/browser/stores/sync-store.js +6 -23
  16. package/dist/browser/stores/sync-store.js.map +1 -1
  17. package/dist/core/auth/app-viewer.d.ts +74 -2
  18. package/dist/core/auth/app-viewer.d.ts.map +1 -1
  19. package/dist/core/auth/app-viewer.js +95 -2
  20. package/dist/core/auth/app-viewer.js.map +1 -1
  21. package/dist/core/auth/kortix-member.d.ts +111 -0
  22. package/dist/core/auth/kortix-member.d.ts.map +1 -0
  23. package/dist/core/auth/kortix-member.js +232 -0
  24. package/dist/core/auth/kortix-member.js.map +1 -0
  25. package/dist/core/client/facade-commerce.d.ts +5 -1
  26. package/dist/core/client/facade-commerce.d.ts.map +1 -1
  27. package/dist/core/client/facade-commerce.js +5 -1
  28. package/dist/core/client/facade-commerce.js.map +1 -1
  29. package/dist/core/client/kortix.d.ts +114 -8
  30. package/dist/core/client/kortix.d.ts.map +1 -1
  31. package/dist/core/client/kortix.js +21 -1
  32. package/dist/core/client/kortix.js.map +1 -1
  33. package/dist/core/client/project-access-resources.d.ts +37 -2
  34. package/dist/core/client/project-access-resources.d.ts.map +1 -1
  35. package/dist/core/client/project-access-resources.js +26 -0
  36. package/dist/core/client/project-access-resources.js.map +1 -1
  37. package/dist/core/client/project-connectors.d.ts +9 -1
  38. package/dist/core/client/project-connectors.d.ts.map +1 -1
  39. package/dist/core/client/project-connectors.js +29 -0
  40. package/dist/core/client/project-connectors.js.map +1 -1
  41. package/dist/core/client/project-core.d.ts.map +1 -1
  42. package/dist/core/client/project-operations-admin.d.ts +17 -0
  43. package/dist/core/client/project-operations-admin.d.ts.map +1 -1
  44. package/dist/core/client/project-operations-admin.js +6 -0
  45. package/dist/core/client/project-operations-admin.js.map +1 -1
  46. package/dist/core/client/project-operations-workspace.d.ts +9 -0
  47. package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
  48. package/dist/core/client/project-operations-workspace.js +6 -0
  49. package/dist/core/client/project-operations-workspace.js.map +1 -1
  50. package/dist/core/client/project-operations.d.ts +21 -1
  51. package/dist/core/client/project-operations.d.ts.map +1 -1
  52. package/dist/core/client/project-operations.js +2 -0
  53. package/dist/core/client/project-operations.js.map +1 -1
  54. package/dist/core/client/session-handle.d.ts +20 -2
  55. package/dist/core/client/session-handle.d.ts.map +1 -1
  56. package/dist/core/client/session-lifecycle-resources.d.ts +29 -2
  57. package/dist/core/client/session-lifecycle-resources.d.ts.map +1 -1
  58. package/dist/core/client/session-lifecycle-resources.js +13 -1
  59. package/dist/core/client/session-lifecycle-resources.js.map +1 -1
  60. package/dist/core/files/client.d.ts +8 -0
  61. package/dist/core/files/client.d.ts.map +1 -1
  62. package/dist/core/files/client.js +52 -10
  63. package/dist/core/files/client.js.map +1 -1
  64. package/dist/core/http/api/errors.d.ts +1 -1
  65. package/dist/core/http/api/errors.js +1 -1
  66. package/dist/core/http/authenticated-request.d.ts +14 -0
  67. package/dist/core/http/authenticated-request.d.ts.map +1 -0
  68. package/dist/core/http/authenticated-request.js +21 -0
  69. package/dist/core/http/authenticated-request.js.map +1 -0
  70. package/dist/core/http/response-error.d.ts.map +1 -1
  71. package/dist/core/http/response-error.js +12 -5
  72. package/dist/core/http/response-error.js.map +1 -1
  73. package/dist/core/http/transport.d.ts.map +1 -1
  74. package/dist/core/http/transport.js +10 -1
  75. package/dist/core/http/transport.js.map +1 -1
  76. package/dist/core/models/composer-model.d.ts +3 -1
  77. package/dist/core/models/composer-model.d.ts.map +1 -1
  78. package/dist/core/models/composer-model.js +4 -2
  79. package/dist/core/models/composer-model.js.map +1 -1
  80. package/dist/core/models/model-visibility.d.ts +4 -2
  81. package/dist/core/models/model-visibility.d.ts.map +1 -1
  82. package/dist/core/models/model-visibility.js +12 -8
  83. package/dist/core/models/model-visibility.js.map +1 -1
  84. package/dist/core/rest/platform-client/lifecycle.d.ts.map +1 -1
  85. package/dist/core/rest/platform-client/lifecycle.js.map +1 -1
  86. package/dist/core/rest/platform-client/shared.d.ts.map +1 -1
  87. package/dist/core/rest/platform-client/shared.js +0 -4
  88. package/dist/core/rest/platform-client/shared.js.map +1 -1
  89. package/dist/core/rest/projects-client/accounts.d.ts +13 -0
  90. package/dist/core/rest/projects-client/accounts.d.ts.map +1 -1
  91. package/dist/core/rest/projects-client/accounts.js.map +1 -1
  92. package/dist/core/rest/projects-client/admin-providers.d.ts +61 -0
  93. package/dist/core/rest/projects-client/admin-providers.d.ts.map +1 -1
  94. package/dist/core/rest/projects-client/admin-providers.js +6 -0
  95. package/dist/core/rest/projects-client/admin-providers.js.map +1 -1
  96. package/dist/core/rest/projects-client/apps-fleet.d.ts +99 -0
  97. package/dist/core/rest/projects-client/apps-fleet.d.ts.map +1 -0
  98. package/dist/core/rest/projects-client/apps-fleet.js +58 -0
  99. package/dist/core/rest/projects-client/apps-fleet.js.map +1 -0
  100. package/dist/core/rest/projects-client/apps.d.ts +230 -16
  101. package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
  102. package/dist/core/rest/projects-client/apps.js +30 -1
  103. package/dist/core/rest/projects-client/apps.js.map +1 -1
  104. package/dist/core/rest/projects-client/billing.d.ts +45 -6
  105. package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
  106. package/dist/core/rest/projects-client/billing.js +32 -25
  107. package/dist/core/rest/projects-client/billing.js.map +1 -1
  108. package/dist/core/rest/projects-client/change-requests.d.ts +10 -0
  109. package/dist/core/rest/projects-client/change-requests.d.ts.map +1 -1
  110. package/dist/core/rest/projects-client/change-requests.js +4 -0
  111. package/dist/core/rest/projects-client/change-requests.js.map +1 -1
  112. package/dist/core/rest/projects-client/connector-run.d.ts +135 -0
  113. package/dist/core/rest/projects-client/connector-run.d.ts.map +1 -0
  114. package/dist/core/rest/projects-client/connector-run.js +211 -0
  115. package/dist/core/rest/projects-client/connector-run.js.map +1 -0
  116. package/dist/core/rest/projects-client/connectors.d.ts +80 -1
  117. package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
  118. package/dist/core/rest/projects-client/connectors.js +25 -4
  119. package/dist/core/rest/projects-client/connectors.js.map +1 -1
  120. package/dist/core/rest/projects-client/drives.d.ts +201 -0
  121. package/dist/core/rest/projects-client/drives.d.ts.map +1 -0
  122. package/dist/core/rest/projects-client/drives.js +124 -0
  123. package/dist/core/rest/projects-client/drives.js.map +1 -0
  124. package/dist/core/rest/projects-client/files.d.ts +41 -0
  125. package/dist/core/rest/projects-client/files.d.ts.map +1 -1
  126. package/dist/core/rest/projects-client/files.js +49 -0
  127. package/dist/core/rest/projects-client/files.js.map +1 -1
  128. package/dist/core/rest/projects-client/index.d.ts +5 -0
  129. package/dist/core/rest/projects-client/index.d.ts.map +1 -1
  130. package/dist/core/rest/projects-client/index.js +5 -0
  131. package/dist/core/rest/projects-client/index.js.map +1 -1
  132. package/dist/core/rest/projects-client/notifications.d.ts +160 -0
  133. package/dist/core/rest/projects-client/notifications.d.ts.map +1 -0
  134. package/dist/core/rest/projects-client/notifications.js +105 -0
  135. package/dist/core/rest/projects-client/notifications.js.map +1 -0
  136. package/dist/core/rest/projects-client/projects.d.ts +19 -9
  137. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  138. package/dist/core/rest/projects-client/projects.js +4 -1
  139. package/dist/core/rest/projects-client/projects.js.map +1 -1
  140. package/dist/core/rest/projects-client/session-attachments.d.ts.map +1 -1
  141. package/dist/core/rest/projects-client/session-attachments.js +0 -3
  142. package/dist/core/rest/projects-client/session-attachments.js.map +1 -1
  143. package/dist/core/rest/projects-client/session-prompt-actions.d.ts +29 -0
  144. package/dist/core/rest/projects-client/session-prompt-actions.d.ts.map +1 -0
  145. package/dist/core/rest/projects-client/session-prompt-actions.js +13 -0
  146. package/dist/core/rest/projects-client/session-prompt-actions.js.map +1 -0
  147. package/dist/core/rest/projects-client/session-reminders.d.ts +17 -0
  148. package/dist/core/rest/projects-client/session-reminders.d.ts.map +1 -1
  149. package/dist/core/rest/projects-client/session-reminders.js +40 -0
  150. package/dist/core/rest/projects-client/session-reminders.js.map +1 -1
  151. package/dist/core/rest/projects-client/session-sandbox.d.ts +23 -8
  152. package/dist/core/rest/projects-client/session-sandbox.d.ts.map +1 -1
  153. package/dist/core/rest/projects-client/session-sandbox.js +28 -10
  154. package/dist/core/rest/projects-client/session-sandbox.js.map +1 -1
  155. package/dist/core/rest/projects-client/sessions.d.ts +41 -1
  156. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  157. package/dist/core/rest/projects-client/sessions.js +35 -3
  158. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  159. package/dist/core/rest/projects-client/tokens.d.ts +5 -0
  160. package/dist/core/rest/projects-client/tokens.d.ts.map +1 -1
  161. package/dist/core/rest/projects-client/tokens.js.map +1 -1
  162. package/dist/core/rest/projects-client/triggers.d.ts +123 -1
  163. package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
  164. package/dist/core/rest/projects-client/triggers.js +16 -0
  165. package/dist/core/rest/projects-client/triggers.js.map +1 -1
  166. package/dist/core/session/control-stream.d.ts +100 -16
  167. package/dist/core/session/control-stream.d.ts.map +1 -1
  168. package/dist/core/session/control-stream.js +270 -40
  169. package/dist/core/session/control-stream.js.map +1 -1
  170. package/dist/core/session/message-queue.d.ts +35 -9
  171. package/dist/core/session/message-queue.d.ts.map +1 -1
  172. package/dist/core/session/message-queue.js +23 -6
  173. package/dist/core/session/message-queue.js.map +1 -1
  174. package/dist/core/session/runtime-gone.d.ts +19 -0
  175. package/dist/core/session/runtime-gone.d.ts.map +1 -0
  176. package/dist/core/session/runtime-gone.js +28 -0
  177. package/dist/core/session/runtime-gone.js.map +1 -0
  178. package/dist/core/session/working-server.d.ts +41 -0
  179. package/dist/core/session/working-server.d.ts.map +1 -0
  180. package/dist/core/session/working-server.js +76 -0
  181. package/dist/core/session/working-server.js.map +1 -0
  182. package/dist/core/session-sync/saved-copy-store.d.ts +6 -4
  183. package/dist/core/session-sync/saved-copy-store.d.ts.map +1 -1
  184. package/dist/core/session-sync/saved-copy-store.js +6 -4
  185. package/dist/core/session-sync/saved-copy-store.js.map +1 -1
  186. package/dist/core/session-sync/session-sync-controller.d.ts +9 -0
  187. package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
  188. package/dist/core/session-sync/session-sync-controller.js +12 -1
  189. package/dist/core/session-sync/session-sync-controller.js.map +1 -1
  190. package/dist/core/stream/event-stream.d.ts +2 -3
  191. package/dist/core/stream/event-stream.d.ts.map +1 -1
  192. package/dist/core/stream/event-stream.js +8 -10
  193. package/dist/core/stream/event-stream.js.map +1 -1
  194. package/dist/core/turns/parts.d.ts.map +1 -1
  195. package/dist/core/turns/parts.js +3 -0
  196. package/dist/core/turns/parts.js.map +1 -1
  197. package/dist/core/turns/segments/working-turn.d.ts +23 -0
  198. package/dist/core/turns/segments/working-turn.d.ts.map +1 -1
  199. package/dist/core/turns/segments/working-turn.js +22 -0
  200. package/dist/core/turns/segments/working-turn.js.map +1 -1
  201. package/dist/core/warm-session-pool.d.ts +85 -0
  202. package/dist/core/warm-session-pool.d.ts.map +1 -0
  203. package/dist/core/warm-session-pool.js +180 -0
  204. package/dist/core/warm-session-pool.js.map +1 -0
  205. package/dist/deprecated/api-client.d.ts +1 -1
  206. package/dist/deprecated/api-client.js +1 -1
  207. package/dist/deprecated/auth.d.ts +1 -1
  208. package/dist/deprecated/auth.js +1 -1
  209. package/dist/deprecated/config.d.ts +1 -1
  210. package/dist/deprecated/config.js +1 -1
  211. package/dist/deprecated/event-stream.d.ts +1 -1
  212. package/dist/deprecated/event-stream.js +1 -1
  213. package/dist/deprecated/feature-flags.d.ts +1 -1
  214. package/dist/deprecated/feature-flags.js +1 -1
  215. package/dist/deprecated/files.d.ts +1 -1
  216. package/dist/deprecated/files.js +1 -1
  217. package/dist/deprecated/fresh-sessions.d.ts +1 -1
  218. package/dist/deprecated/fresh-sessions.js +1 -1
  219. package/dist/deprecated/idb-sync-cache.d.ts +3 -3
  220. package/dist/deprecated/idb-sync-cache.js +3 -3
  221. package/dist/deprecated/instance-routes.d.ts +1 -1
  222. package/dist/deprecated/instance-routes.js +1 -1
  223. package/dist/deprecated/opencode-client.d.ts +1 -1
  224. package/dist/deprecated/opencode-client.js +1 -1
  225. package/dist/deprecated/opencode-errors.d.ts +1 -1
  226. package/dist/deprecated/opencode-errors.js +1 -1
  227. package/dist/deprecated/opencode-pending-store.d.ts +3 -3
  228. package/dist/deprecated/opencode-pending-store.js +3 -3
  229. package/dist/deprecated/platform-client.d.ts +1 -1
  230. package/dist/deprecated/platform-client.js +1 -1
  231. package/dist/deprecated/projects-client.d.ts +1 -1
  232. package/dist/deprecated/projects-client.js +1 -1
  233. package/dist/deprecated/sandbox-connection-store.d.ts +3 -3
  234. package/dist/deprecated/sandbox-connection-store.js +3 -3
  235. package/dist/deprecated/server-store.d.ts +3 -3
  236. package/dist/deprecated/server-store.js +3 -3
  237. package/dist/deprecated/session-url.d.ts +1 -1
  238. package/dist/deprecated/session-url.js +1 -1
  239. package/dist/deprecated/session.d.ts +1 -1
  240. package/dist/deprecated/session.js +1 -1
  241. package/dist/deprecated/sync-store.d.ts +3 -3
  242. package/dist/deprecated/sync-store.js +3 -3
  243. package/dist/deprecated/turns.d.ts +1 -1
  244. package/dist/deprecated/turns.js +1 -1
  245. package/dist/index.d.ts +12 -2
  246. package/dist/index.d.ts.map +1 -1
  247. package/dist/index.js +12 -2
  248. package/dist/index.js.map +1 -1
  249. package/dist/internal/opencode-pending-store.d.ts +3 -2
  250. package/dist/internal/opencode-pending-store.d.ts.map +1 -1
  251. package/dist/internal/opencode-pending-store.js +3 -2
  252. package/dist/internal/opencode-pending-store.js.map +1 -1
  253. package/dist/internal/sandbox-connection-store.d.ts +3 -2
  254. package/dist/internal/sandbox-connection-store.d.ts.map +1 -1
  255. package/dist/internal/sandbox-connection-store.js +3 -2
  256. package/dist/internal/sandbox-connection-store.js.map +1 -1
  257. package/dist/internal/server-store.d.ts +3 -2
  258. package/dist/internal/server-store.d.ts.map +1 -1
  259. package/dist/internal/server-store.js +3 -2
  260. package/dist/internal/server-store.js.map +1 -1
  261. package/dist/internal/sync-store.d.ts +3 -2
  262. package/dist/internal/sync-store.d.ts.map +1 -1
  263. package/dist/internal/sync-store.js +3 -2
  264. package/dist/internal/sync-store.js.map +1 -1
  265. package/dist/kortix.esm.min.js +33 -33
  266. package/dist/kortix.global.js +33 -33
  267. package/dist/node/app-guard.d.ts +16 -0
  268. package/dist/node/app-guard.d.ts.map +1 -1
  269. package/dist/node/app-guard.js +36 -15
  270. package/dist/node/app-guard.js.map +1 -1
  271. package/dist/node/app-viewer.d.ts +10 -0
  272. package/dist/node/app-viewer.d.ts.map +1 -1
  273. package/dist/node/app-viewer.js +15 -0
  274. package/dist/node/app-viewer.js.map +1 -1
  275. package/dist/node/scoped-client.d.ts.map +1 -1
  276. package/dist/node/scoped-client.js +19 -1
  277. package/dist/node/scoped-client.js.map +1 -1
  278. package/dist/platform/auth-core.d.ts +0 -2
  279. package/dist/platform/auth-core.d.ts.map +1 -1
  280. package/dist/platform/auth-core.js +0 -10
  281. package/dist/platform/auth-core.js.map +1 -1
  282. package/dist/react/hold-live-start.d.ts +1 -1
  283. package/dist/react/hold-live-start.d.ts.map +1 -1
  284. package/dist/react/hold-live-start.js +5 -1
  285. package/dist/react/hold-live-start.js.map +1 -1
  286. package/dist/react/human-presence.d.ts +44 -0
  287. package/dist/react/human-presence.d.ts.map +1 -0
  288. package/dist/react/human-presence.js +96 -0
  289. package/dist/react/human-presence.js.map +1 -0
  290. package/dist/react/index.d.ts +6 -2
  291. package/dist/react/index.d.ts.map +1 -1
  292. package/dist/react/index.js +10 -2
  293. package/dist/react/index.js.map +1 -1
  294. package/dist/react/provider-refresh.d.ts +6 -0
  295. package/dist/react/provider-refresh.d.ts.map +1 -1
  296. package/dist/react/provider-refresh.js +9 -2
  297. package/dist/react/provider-refresh.js.map +1 -1
  298. package/dist/react/query-contracts.d.ts +9 -1
  299. package/dist/react/query-contracts.d.ts.map +1 -1
  300. package/dist/react/query-contracts.js +37 -0
  301. package/dist/react/query-contracts.js.map +1 -1
  302. package/dist/react/query-keys.d.ts +64 -0
  303. package/dist/react/query-keys.d.ts.map +1 -1
  304. package/dist/react/query-keys.js +66 -0
  305. package/dist/react/query-keys.js.map +1 -1
  306. package/dist/react/sign-in-with-kortix.d.ts +2 -2
  307. package/dist/react/use-accounts.d.ts +14 -2
  308. package/dist/react/use-accounts.d.ts.map +1 -1
  309. package/dist/react/use-admin-accounts.d.ts +2 -1
  310. package/dist/react/use-admin-accounts.d.ts.map +1 -1
  311. package/dist/react/use-admin-accounts.js +1 -1
  312. package/dist/react/use-admin-accounts.js.map +1 -1
  313. package/dist/react/use-admin-analytics.d.ts +62 -28
  314. package/dist/react/use-admin-analytics.d.ts.map +1 -1
  315. package/dist/react/use-admin-analytics.js +28 -28
  316. package/dist/react/use-admin-analytics.js.map +1 -1
  317. package/dist/react/use-admin-billing.d.ts +4 -4
  318. package/dist/react/use-admin-billing.d.ts.map +1 -1
  319. package/dist/react/use-admin-billing.js +4 -4
  320. package/dist/react/use-admin-billing.js.map +1 -1
  321. package/dist/react/use-admin-feedback.d.ts +18 -8
  322. package/dist/react/use-admin-feedback.d.ts.map +1 -1
  323. package/dist/react/use-admin-feedback.js +8 -8
  324. package/dist/react/use-admin-feedback.js.map +1 -1
  325. package/dist/react/use-admin-providers.d.ts +3 -0
  326. package/dist/react/use-admin-providers.d.ts.map +1 -1
  327. package/dist/react/use-admin-providers.js +11 -1
  328. package/dist/react/use-admin-providers.js.map +1 -1
  329. package/dist/react/use-admin-sandboxes.d.ts +17 -8
  330. package/dist/react/use-admin-sandboxes.d.ts.map +1 -1
  331. package/dist/react/use-admin-sandboxes.js +8 -8
  332. package/dist/react/use-admin-sandboxes.js.map +1 -1
  333. package/dist/react/use-connector-query.d.ts +24 -0
  334. package/dist/react/use-connector-query.d.ts.map +1 -0
  335. package/dist/react/use-connector-query.js +37 -0
  336. package/dist/react/use-connector-query.js.map +1 -0
  337. package/dist/react/use-feature-flag.d.ts +3 -2
  338. package/dist/react/use-feature-flag.d.ts.map +1 -1
  339. package/dist/react/use-feature-flag.js +4 -2
  340. package/dist/react/use-feature-flag.js.map +1 -1
  341. package/dist/react/use-notifications.d.ts +644 -0
  342. package/dist/react/use-notifications.d.ts.map +1 -0
  343. package/dist/react/use-notifications.js +134 -0
  344. package/dist/react/use-notifications.js.map +1 -0
  345. package/dist/react/use-opencode-events/handle-session-event.d.ts.map +1 -1
  346. package/dist/react/use-opencode-events/handle-session-event.js +3 -5
  347. package/dist/react/use-opencode-events/handle-session-event.js.map +1 -1
  348. package/dist/react/use-opencode-events/index.d.ts +6 -0
  349. package/dist/react/use-opencode-events/index.d.ts.map +1 -1
  350. package/dist/react/use-opencode-events/index.js +27 -2
  351. package/dist/react/use-opencode-events/index.js.map +1 -1
  352. package/dist/react/use-opencode-local.d.ts.map +1 -1
  353. package/dist/react/use-opencode-local.js +0 -12
  354. package/dist/react/use-opencode-local.js.map +1 -1
  355. package/dist/react/use-opencode-sessions/agents.d.ts +1 -0
  356. package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -1
  357. package/dist/react/use-opencode-sessions/agents.js +4 -21
  358. package/dist/react/use-opencode-sessions/agents.js.map +1 -1
  359. package/dist/react/use-opencode-sessions/commands.d.ts +1 -2
  360. package/dist/react/use-opencode-sessions/commands.d.ts.map +1 -1
  361. package/dist/react/use-opencode-sessions/commands.js +3 -7
  362. package/dist/react/use-opencode-sessions/commands.js.map +1 -1
  363. package/dist/react/use-opencode-sessions/messages.d.ts +1 -0
  364. package/dist/react/use-opencode-sessions/messages.d.ts.map +1 -1
  365. package/dist/react/use-opencode-sessions/messages.js +1 -0
  366. package/dist/react/use-opencode-sessions/messages.js.map +1 -1
  367. package/dist/react/use-opencode-sessions/providers.d.ts.map +1 -1
  368. package/dist/react/use-opencode-sessions/providers.js +7 -37
  369. package/dist/react/use-opencode-sessions/providers.js.map +1 -1
  370. package/dist/react/use-opencode-sessions/sessions.d.ts +3 -0
  371. package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -1
  372. package/dist/react/use-opencode-sessions/sessions.js +5 -6
  373. package/dist/react/use-opencode-sessions/sessions.js.map +1 -1
  374. package/dist/react/use-opencode-sessions/shared.d.ts +3 -23
  375. package/dist/react/use-opencode-sessions/shared.d.ts.map +1 -1
  376. package/dist/react/use-opencode-sessions/shared.js +3 -60
  377. package/dist/react/use-opencode-sessions/shared.js.map +1 -1
  378. package/dist/react/use-opencode-sessions/tools.d.ts +1 -0
  379. package/dist/react/use-opencode-sessions/tools.d.ts.map +1 -1
  380. package/dist/react/use-opencode-sessions/tools.js +1 -0
  381. package/dist/react/use-opencode-sessions/tools.js.map +1 -1
  382. package/dist/react/use-project-apps.d.ts +496 -13
  383. package/dist/react/use-project-apps.d.ts.map +1 -1
  384. package/dist/react/use-project-apps.js +99 -2
  385. package/dist/react/use-project-apps.js.map +1 -1
  386. package/dist/react/use-project-files.d.ts +106 -0
  387. package/dist/react/use-project-files.d.ts.map +1 -0
  388. package/dist/react/use-project-files.js +131 -0
  389. package/dist/react/use-project-files.js.map +1 -0
  390. package/dist/react/use-project-sessions.d.ts +46 -0
  391. package/dist/react/use-project-sessions.d.ts.map +1 -1
  392. package/dist/react/use-project-sessions.js +32 -1
  393. package/dist/react/use-project-sessions.js.map +1 -1
  394. package/dist/react/use-project-triggers.d.ts +12 -1
  395. package/dist/react/use-project-triggers.d.ts.map +1 -1
  396. package/dist/react/use-project-triggers.js +23 -1
  397. package/dist/react/use-project-triggers.js.map +1 -1
  398. package/dist/react/use-reminders.d.ts +47 -0
  399. package/dist/react/use-reminders.d.ts.map +1 -1
  400. package/dist/react/use-reminders.js +14 -2
  401. package/dist/react/use-reminders.js.map +1 -1
  402. package/dist/react/use-runtime-reconnect.d.ts.map +1 -1
  403. package/dist/react/use-runtime-reconnect.js +18 -0
  404. package/dist/react/use-runtime-reconnect.js.map +1 -1
  405. package/dist/react/use-session-stream.d.ts +47 -0
  406. package/dist/react/use-session-stream.d.ts.map +1 -0
  407. package/dist/react/use-session-stream.js +224 -0
  408. package/dist/react/use-session-stream.js.map +1 -0
  409. package/dist/react/use-session-sync.d.ts +6 -0
  410. package/dist/react/use-session-sync.d.ts.map +1 -1
  411. package/dist/react/use-session-sync.js +25 -14
  412. package/dist/react/use-session-sync.js.map +1 -1
  413. package/dist/react/use-session-working.d.ts +3 -0
  414. package/dist/react/use-session-working.d.ts.map +1 -1
  415. package/dist/react/use-session-working.js +28 -9
  416. package/dist/react/use-session-working.js.map +1 -1
  417. package/dist/react/use-session.d.ts +21 -1
  418. package/dist/react/use-session.d.ts.map +1 -1
  419. package/dist/react/use-session.js +128 -32
  420. package/dist/react/use-session.js.map +1 -1
  421. package/dist/react/use-system-status.d.ts +9 -4
  422. package/dist/react/use-system-status.d.ts.map +1 -1
  423. package/dist/react/use-system-status.js +4 -4
  424. package/dist/react/use-system-status.js.map +1 -1
  425. package/dist/react/use-tunnel.d.ts +55 -0
  426. package/dist/react/use-tunnel.d.ts.map +1 -1
  427. package/dist/react/use-tunnel.js +29 -0
  428. package/dist/react/use-tunnel.js.map +1 -1
  429. package/dist/react/use-wake-escalation.d.ts +18 -0
  430. package/dist/react/use-wake-escalation.d.ts.map +1 -1
  431. package/dist/react/use-wake-escalation.js +41 -4
  432. package/dist/react/use-wake-escalation.js.map +1 -1
  433. package/package.json +2 -2
  434. package/dist/browser/cache/idb-sync-cache-key.d.ts +0 -2
  435. package/dist/browser/cache/idb-sync-cache-key.d.ts.map +0 -1
  436. package/dist/browser/cache/idb-sync-cache-key.js +0 -7
  437. package/dist/browser/cache/idb-sync-cache-key.js.map +0 -1
  438. package/dist/browser/stores/sync-store/stream-cache.d.ts +0 -31
  439. package/dist/browser/stores/sync-store/stream-cache.d.ts.map +0 -1
  440. package/dist/browser/stores/sync-store/stream-cache.js +0 -138
  441. package/dist/browser/stores/sync-store/stream-cache.js.map +0 -1
  442. package/dist/react/model-lookup.d.ts +0 -2
  443. package/dist/react/model-lookup.d.ts.map +0 -1
  444. package/dist/react/model-lookup.js +0 -3
  445. package/dist/react/model-lookup.js.map +0 -1
@@ -1,70 +1,161 @@
1
1
  /**
2
- * The session's CONTROL channel, read for the prompt queue.
2
+ * ONE live connection per session: `GET .../sessions/:sid/events` (R5.3).
3
3
  *
4
- * `GET .../sessions/:sid/events?channels=control` serves the API's own
5
- * snapshots (`kortix.control.*`) and the stream's hello/heartbeat, and never
6
- * attaches to the sandbox. A database trigger makes every write of an inbox
7
- * row a `kortix.control.queue` frame at once, on whichever API replica serves
8
- * the stream. So a queue change reaches the tab in one round trip, and the
9
- * per-tab `GET .../prompts` poll is only the fallback for a gap in this stream.
4
+ * The API multiplexes two sources onto it:
5
+ * - the `control` channel: the API's own snapshots (`kortix.control.*`): the
6
+ * prompt queue, the turn verdict with the server's `working` state, the box
7
+ * and wake ladder, the title, the mirror and audit watermarks, and the
8
+ * runtime projection (pending permissions and questions);
9
+ * - the `runtime` channel: the box's sequenced events, forwarded verbatim,
10
+ * plus the stream's own `kortix.runtime.status` and `kortix.runtime.health`.
10
11
  *
11
- * One connection per session per client, however many callers open it.
12
- * Reconnect is a capped backoff that resumes at the control cursor
13
- * (`since_control` + `cepoch`); a `kortix.control.resync` drops the cursor, and
14
- * the server then sends a full snapshot. Every frame, and the typed
15
- * `kortix.stream.heartbeat` every 15 s, proves liveness. Silence past
12
+ * Before R5 a session view held a second connection through the sandbox proxy
13
+ * to `/global/event` and polled `/turn`, `/prompts`, `/start`, `/kortix/health`,
14
+ * `/permission`, `/question` and the title on their own clocks. Now every
15
+ * caller joins this one connection, and the polls stand down while it is up.
16
+ *
17
+ * Sharing: one connection per session per client, however many callers open
18
+ * it. A caller that wants the runtime channel (`runtime: true`) upgrades the
19
+ * shared connection from `?channels=control` to every channel; the reconnect
20
+ * keeps both cursors. A caller that joins a live connection is handed the
21
+ * newest frame of each control type at once.
22
+ *
23
+ * Reconnect is a capped backoff that resumes at both cursors: `since_control`
24
+ * + `cepoch` and `since` + `epoch`. A `kortix.control.resync` drops the
25
+ * control cursor (the server then sends every snapshot); a runtime
26
+ * `kortix.resync` drops the runtime cursor and is reported, because the
27
+ * runtime is a log, not a snapshot. Every frame, and the typed
28
+ * `kortix.stream.heartbeat` every 15 s, proves liveness; silence past
16
29
  * `livenessMs` ends the connection and reconnects.
17
30
  *
18
- * Framework-free: `react/use-session-prompts.ts` applies the frames to its
19
- * cache. Auth is the platform seam (`platformEventTransport`).
31
+ * Framework-free. Auth is the platform seam (`platformEventTransport`).
20
32
  */
21
33
  import { platformConfig } from '../http/config.js';
22
34
  import { platformEventTransport } from '../stream/platform-event-transport.js';
23
35
  const BACKOFF_MS = [1_000, 2_000, 5_000, 10_000, 20_000, 30_000];
24
36
  const LIVENESS_MS = 45_000;
37
+ // replica-local: one shared connection per session in this client.
25
38
  const streams = new Map();
26
- /** Join (or open) the session's control stream. `close()` leaves it. */
27
- export function openSessionControlStream(options) {
39
+ /** Join (or open) the session's stream. `close()` leaves it. */
40
+ export function openSessionStream(options) {
28
41
  const key = `${options.projectId}/${options.sessionId}`;
29
42
  let shared = streams.get(key);
30
43
  if (!shared) {
31
- shared = { subscribers: new Set(), connected: false, lastQueue: null, abort: new AbortController() };
44
+ shared = {
45
+ subscribers: new Set(),
46
+ connected: false,
47
+ lastQueue: null,
48
+ latest: new Map(),
49
+ lastStatus: null,
50
+ lastHealth: null,
51
+ runtimeRefs: 0,
52
+ connectedWithRuntime: false,
53
+ tabId: null,
54
+ authoritative: false,
55
+ reconnectNow: false,
56
+ attempt: null,
57
+ abort: new AbortController(),
58
+ };
32
59
  streams.set(key, shared);
33
- void run(options, shared);
34
60
  }
35
61
  const target = shared;
62
+ const opening = target.subscribers.size === 0 && !target.attempt;
36
63
  target.subscribers.add(options);
64
+ // A control-only connection cannot carry the runtime, and one without the
65
+ // tab's presence id cannot renew it: reconnect at once with the new URL. The
66
+ // cursors survive; the backoff does not apply.
67
+ let reconnect = false;
68
+ if (options.runtime) {
69
+ target.runtimeRefs += 1;
70
+ if (!target.connectedWithRuntime)
71
+ reconnect = true;
72
+ }
73
+ if (options.tabId && target.tabId !== options.tabId) {
74
+ target.tabId = options.tabId;
75
+ reconnect = true;
76
+ }
77
+ if (reconnect && !opening && target.attempt) {
78
+ target.reconnectNow = true;
79
+ target.attempt.abort();
80
+ }
81
+ // Started after this subscriber counts, so its first connect has its channels.
82
+ if (opening)
83
+ void run(options, target);
37
84
  if (target.connected)
38
85
  options.onConnectionChange?.(true);
86
+ for (const frame of [...target.latest.values()].sort((a, b) => a.cseq - b.cseq)) {
87
+ safely(() => options.onControl?.(frame));
88
+ }
89
+ if (target.lastQueue)
90
+ safely(() => options.onQueue?.(target.lastQueue));
91
+ if (options.runtime && target.lastStatus)
92
+ safely(() => options.onRuntimeStatus?.(target.lastStatus));
93
+ if (options.runtime && target.lastHealth)
94
+ safely(() => options.onRuntimeHealth?.(target.lastHealth));
39
95
  let closed = false;
40
96
  return {
41
97
  connected: () => target.connected,
42
98
  lastQueue: () => target.lastQueue,
99
+ lastControl: (type) => target.latest.get(type) ?? null,
43
100
  close: () => {
44
101
  if (closed)
45
102
  return;
46
103
  closed = true;
47
104
  target.subscribers.delete(options);
105
+ if (options.runtime)
106
+ target.runtimeRefs -= 1;
48
107
  if (target.subscribers.size > 0)
49
108
  return;
50
109
  target.abort.abort();
51
110
  if (streams.get(key) === target)
52
111
  streams.delete(key);
112
+ if (target.connected) {
113
+ target.connected = false;
114
+ for (const listener of [...connectionListeners])
115
+ safely(listener);
116
+ }
53
117
  },
54
118
  };
55
119
  }
120
+ /** Join the session's stream for its control channel (the prompt queue). */
121
+ export const openSessionControlStream = openSessionStream;
122
+ /**
123
+ * Is this session's stream connected to a server that owns session state? The
124
+ * SDK stands its polls down on this, never on a bare connection: an API from
125
+ * before R5 serves the stream without the turn verdict, title or health frames.
126
+ */
127
+ export function sessionStreamConnected(projectId, sessionId) {
128
+ const shared = streams.get(`${projectId}/${sessionId}`);
129
+ return shared?.connected === true && shared.authoritative;
130
+ }
131
+ // replica-local: listeners in this client, told when any stream connects or drops.
132
+ const connectionListeners = new Set();
133
+ /** Called whenever any session stream connects or drops. Returns the unsubscribe. */
134
+ export function subscribeSessionStreamConnections(listener) {
135
+ connectionListeners.add(listener);
136
+ return () => {
137
+ connectionListeners.delete(listener);
138
+ };
139
+ }
140
+ function safely(fn) {
141
+ try {
142
+ fn();
143
+ }
144
+ catch {
145
+ // One subscriber must not break the stream for the others.
146
+ }
147
+ }
148
+ function each(shared, fn) {
149
+ for (const subscriber of [...shared.subscribers])
150
+ safely(() => fn(subscriber));
151
+ }
56
152
  function setConnected(shared, connected) {
57
153
  if (shared.connected === connected)
58
154
  return;
59
155
  shared.connected = connected;
60
- for (const subscriber of [...shared.subscribers]) {
61
- try {
62
- subscriber.onConnectionChange?.(connected);
63
- }
64
- catch {
65
- // One subscriber must not break the stream for the others.
66
- }
67
- }
156
+ each(shared, (subscriber) => subscriber.onConnectionChange?.(connected));
157
+ for (const listener of [...connectionListeners])
158
+ safely(listener);
68
159
  }
69
160
  async function run(options, shared) {
70
161
  const backoff = options.timing?.backoffMs ?? BACKOFF_MS;
@@ -72,9 +163,12 @@ async function run(options, shared) {
72
163
  const stop = shared.abort.signal;
73
164
  let cseq = null;
74
165
  let cepoch = null;
166
+ let seq = null;
167
+ let epoch = null;
75
168
  let failures = 0;
76
169
  while (!stop.aborted) {
77
170
  const attempt = new AbortController();
171
+ shared.attempt = attempt;
78
172
  const end = () => attempt.abort();
79
173
  stop.addEventListener('abort', end);
80
174
  let watchdog;
@@ -83,9 +177,19 @@ async function run(options, shared) {
83
177
  watchdog = setTimeout(end, livenessMs);
84
178
  };
85
179
  arm();
180
+ // Read at connect time: a runtime subscriber that joins later upgrades.
181
+ const withRuntime = shared.runtimeRefs > 0;
182
+ shared.connectedWithRuntime = withRuntime;
86
183
  try {
87
184
  const url = new URL(`${platformConfig().backendUrl.replace(/\/$/, '')}/projects/${encodeURIComponent(options.projectId)}/sessions/${encodeURIComponent(options.sessionId)}/events`);
88
- url.searchParams.set('channels', 'control');
185
+ if (!withRuntime)
186
+ url.searchParams.set('channels', 'control');
187
+ if (shared.tabId)
188
+ url.searchParams.set('tab_id', shared.tabId);
189
+ if (withRuntime && seq !== null && epoch) {
190
+ url.searchParams.set('since', String(seq));
191
+ url.searchParams.set('epoch', epoch);
192
+ }
89
193
  if (cseq !== null && cepoch) {
90
194
  url.searchParams.set('since_control', String(cseq));
91
195
  url.searchParams.set('cepoch', cepoch);
@@ -110,28 +214,93 @@ async function run(options, shared) {
110
214
  }
111
215
  failures = 0;
112
216
  setConnected(shared, true);
113
- if (frame.type === 'kortix.control.resync') {
217
+ const type = typeof frame.type === 'string' ? frame.type : '';
218
+ if (frame.channel === 'runtime') {
219
+ if (type === 'kortix.resync') {
220
+ // The box could not replay the gap. Nothing after it is lost, but
221
+ // what fell in the gap is: the view re-reads what it holds.
222
+ seq = null;
223
+ epoch = typeof frame.epoch === 'string' ? frame.epoch : null;
224
+ each(shared, (subscriber) => subscriber.onRuntimeResync?.());
225
+ continue;
226
+ }
227
+ if (typeof frame.epoch === 'string')
228
+ epoch = frame.epoch;
229
+ if (typeof frame.seq === 'number')
230
+ seq = frame.seq;
231
+ // Daemon bookkeeping (`kortix.hello`, `kortix.turn`, `kortix.heartbeat`,
232
+ // `kortix.boot`) is the server's to read, not the reducer's.
233
+ if (!type || type.startsWith('kortix.') || typeof frame.seq !== 'number')
234
+ continue;
235
+ const event = {
236
+ // The dedupe key a redelivered delta must keep: stable across a
237
+ // replay, distinct across a daemon restart (the epoch).
238
+ id: `${epoch ?? ''}:${frame.seq}`,
239
+ type,
240
+ properties: frame.payload,
241
+ };
242
+ each(shared, (subscriber) => {
243
+ if (subscriber.runtime)
244
+ subscriber.onRuntimeEvent?.(event);
245
+ });
246
+ continue;
247
+ }
248
+ if (type === 'kortix.stream.heartbeat') {
249
+ each(shared, (subscriber) => subscriber.onHeartbeat?.());
250
+ continue;
251
+ }
252
+ if (type === 'kortix.runtime.status') {
253
+ const status = {
254
+ state: frame.state === 'up' ? 'up' : 'down',
255
+ reason: typeof frame.reason === 'string' ? frame.reason : null,
256
+ };
257
+ shared.lastStatus = status;
258
+ each(shared, (subscriber) => {
259
+ if (subscriber.runtime)
260
+ subscriber.onRuntimeStatus?.(status);
261
+ });
262
+ continue;
263
+ }
264
+ if (type === 'kortix.runtime.health') {
265
+ const health = (frame.health ?? null);
266
+ if (!health)
267
+ continue;
268
+ shared.lastHealth = health;
269
+ each(shared, (subscriber) => {
270
+ if (subscriber.runtime)
271
+ subscriber.onRuntimeHealth?.(health);
272
+ });
273
+ continue;
274
+ }
275
+ if (type === 'kortix.control.resync') {
114
276
  // The gap could not be replayed. The server sends every subsystem
115
277
  // again; a reconnect before that must ask for it too.
116
278
  cseq = null;
117
279
  cepoch = typeof frame.cepoch === 'string' ? frame.cepoch : null;
118
280
  continue;
119
281
  }
120
- if (frame.channel === 'control' && typeof frame.cseq === 'number') {
121
- cseq = frame.cseq;
122
- cepoch = typeof frame.cepoch === 'string' ? frame.cepoch : cepoch;
282
+ if (frame.channel !== 'control' || typeof frame.cseq !== 'number')
283
+ continue;
284
+ cseq = frame.cseq;
285
+ cepoch = typeof frame.cepoch === 'string' ? frame.cepoch : cepoch;
286
+ const control = {
287
+ type,
288
+ cseq: frame.cseq,
289
+ cepoch: cepoch ?? '',
290
+ at: typeof frame.at === 'number' ? frame.at : Date.now(),
291
+ payload: frame.payload,
292
+ };
293
+ shared.latest.set(type, control);
294
+ if (type === 'kortix.control.session' && !shared.authoritative) {
295
+ shared.authoritative = true;
296
+ for (const listener of [...connectionListeners])
297
+ safely(listener);
123
298
  }
299
+ each(shared, (subscriber) => subscriber.onControl?.(control));
124
300
  const payload = frame.payload;
125
- if (frame.type === 'kortix.control.queue' && payload?.known && Array.isArray(payload.prompts)) {
301
+ if (type === 'kortix.control.queue' && payload?.known && Array.isArray(payload.prompts)) {
126
302
  shared.lastQueue = payload;
127
- for (const subscriber of [...shared.subscribers]) {
128
- try {
129
- subscriber.onQueue?.(payload);
130
- }
131
- catch {
132
- // One subscriber must not break the stream for the others.
133
- }
134
- }
303
+ each(shared, (subscriber) => subscriber.onQueue?.(payload));
135
304
  }
136
305
  }
137
306
  }
@@ -144,6 +313,12 @@ async function run(options, shared) {
144
313
  }
145
314
  if (stop.aborted)
146
315
  break;
316
+ // An upgrade (a subscriber changed the URL) reconnects at once, without
317
+ // counting as a failure or a disconnect.
318
+ if (shared.reconnectNow) {
319
+ shared.reconnectNow = false;
320
+ continue;
321
+ }
147
322
  setConnected(shared, false);
148
323
  const delay = backoff[Math.min(failures, backoff.length - 1)] ?? 1_000;
149
324
  failures += 1;
@@ -164,4 +339,59 @@ export function __resetSessionControlStreamsForTests() {
164
339
  shared.abort.abort();
165
340
  streams.clear();
166
341
  }
342
+ // replica-local: one adapter per session in this client, so `openEventStream`
343
+ // (which shares a connection per client OBJECT) fans one machine out to every
344
+ // mount instead of running one per mount and dispatching each event twice.
345
+ // ponytail: never evicted; bounded by the sessions one tab opens.
346
+ const eventClients = new Map();
347
+ export function sessionStreamEventClient(projectId, sessionId, hooks = {}) {
348
+ // Resync callbacks are per caller; the client is shared. A caller that
349
+ // passes one gets its own (uncached) client — the hook below uses the
350
+ // shared client and subscribes to resyncs separately.
351
+ const key = `${projectId}/${sessionId}`;
352
+ if (!hooks.onResync) {
353
+ const cached = eventClients.get(key);
354
+ if (cached)
355
+ return cached;
356
+ }
357
+ async function* iterate(signal) {
358
+ const queue = [];
359
+ let wake = () => { };
360
+ const handle = openSessionStream({
361
+ projectId,
362
+ sessionId,
363
+ runtime: true,
364
+ onRuntimeEvent: (event) => {
365
+ queue.push(event);
366
+ wake();
367
+ },
368
+ onRuntimeResync: () => hooks.onResync?.(),
369
+ });
370
+ const onAbort = () => wake();
371
+ signal.addEventListener('abort', onAbort, { once: true });
372
+ try {
373
+ while (!signal.aborted) {
374
+ if (queue.length === 0) {
375
+ await new Promise((resolve) => {
376
+ wake = resolve;
377
+ });
378
+ continue;
379
+ }
380
+ yield queue.shift();
381
+ }
382
+ }
383
+ finally {
384
+ signal.removeEventListener('abort', onAbort);
385
+ handle.close();
386
+ }
387
+ }
388
+ const client = {
389
+ global: {
390
+ event: async ({ signal }) => ({ stream: iterate(signal) }),
391
+ },
392
+ };
393
+ if (!hooks.onResync)
394
+ eventClients.set(key, client);
395
+ return client;
396
+ }
167
397
  //# sourceMappingURL=control-stream.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"control-stream.js","sourceRoot":"","sources":["../../../src/core/session/control-stream.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAmC5E,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AACjE,MAAM,WAAW,GAAG,MAAM,CAAC;AAS3B,MAAM,OAAO,GAAG,IAAI,GAAG,E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AAE,CAAC;oBACvB,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;wBAClC,IAAI,GAAG,OAAO,CAAC;oBACjB,CAAC,CAAC,CAAC;oBACH,SAAS;gBACX,CAAC;gBACD,MAAM,KAAK,CAAC,KAAK,EAAE,CAAC;YACtB,CAAC;QACH,CAAC;gBAAS,CAAC;YACT,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAC7C,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;IACH,CAAC;IACD,MAAM,MAAM,GAA6B;QACvC,MAAM,EAAE;YACN,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;SAC3D;KACF,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,QAAQ;QAAE,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACnD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -2,8 +2,8 @@
2
2
  * @deprecated since 0.12.9 — Kortix owns prompt ordering server-side
3
3
  * (`POST /v1/projects/:projectId/sessions/:sessionId/prompts`). This module is
4
4
  * retained ONLY so `@kortix/sdk/message-queue`, published in 0.12.8, keeps
5
- * resolving for external consumers. It is not used by any Kortix host and will
6
- * be removed in the next major.
5
+ * resolving for external consumers. It is not used by any Kortix host.
6
+ * Removed in the next major.
7
7
  *
8
8
  * The rules a message queue obeys, as pure functions.
9
9
  *
@@ -48,7 +48,10 @@
48
48
  * addition would be a new promise made by a module that exists only to keep an
49
49
  * old one.
50
50
  */
51
- /** What a host hands in when the user queues a message. */
51
+ /**
52
+ * What a host hands in when the user queues a message.
53
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
54
+ */
52
55
  export interface QueuedMessageInput<TFile = unknown, TMention = unknown> {
53
56
  /** Queue-local id. Client-only; never sent to the server. */
54
57
  id: string;
@@ -92,14 +95,20 @@ export interface QueuedMessageInput<TFile = unknown, TMention = unknown> {
92
95
  };
93
96
  createdAt: number;
94
97
  }
95
- /** A queued message, once the queue owns it. */
98
+ /**
99
+ * A queued message, once the queue owns it.
100
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
101
+ */
96
102
  export interface QueuedMessage<TFile = unknown, TMention = unknown> extends QueuedMessageInput<TFile, TMention> {
97
103
  /** Dispatch attempts so far. Incremented by `claimNext`. */
98
104
  attempts: number;
99
105
  /** Why the last attempt failed. Cleared on retry. */
100
106
  lastError?: string;
101
107
  }
102
- /** One session's queue. */
108
+ /**
109
+ * One session's queue.
110
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
111
+ */
103
112
  export interface SessionQueue<TFile = unknown, TMention = unknown> {
104
113
  /** Waiting to send, oldest first. The leading run is in flight when claimed. */
105
114
  pending: QueuedMessage<TFile, TMention>[];
@@ -129,6 +138,7 @@ export interface SessionQueue<TFile = unknown, TMention = unknown> {
129
138
  */
130
139
  inFlightIds?: string[];
131
140
  }
141
+ /** @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major. */
132
142
  export declare function createSessionQueue<TFile = unknown, TMention = unknown>(): SessionQueue<TFile, TMention>;
133
143
  /**
134
144
  * Add a message to the tail.
@@ -137,6 +147,7 @@ export declare function createSessionQueue<TFile = unknown, TMention = unknown>(
137
147
  * if the session happens to read idle this instant. Jumping the line is what
138
148
  * "Stop & send" is for, and that is an explicit user action, not a side effect
139
149
  * of timing.
150
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
140
151
  */
141
152
  export declare function enqueue<TFile, TMention>(state: SessionQueue<TFile, TMention>, input: QueuedMessageInput<TFile, TMention>): SessionQueue<TFile, TMention>;
142
153
  /**
@@ -144,12 +155,16 @@ export declare function enqueue<TFile, TMention>(state: SessionQueue<TFile, TMen
144
155
  *
145
156
  * Returns `claimed: undefined` when the queue is empty or something is already
146
157
  * in flight — so a caller that races itself sends once, not twice.
158
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
147
159
  */
148
160
  export declare function claimNext<TFile, TMention>(state: SessionQueue<TFile, TMention>): {
149
161
  state: SessionQueue<TFile, TMention>;
150
162
  claimed?: QueuedMessage<TFile, TMention>;
151
163
  };
152
- /** The send landed. Drop everything it carried and free the queue. */
164
+ /**
165
+ * The send landed. Drop everything it carried and free the queue.
166
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
167
+ */
153
168
  export declare function completeInFlight<TFile, TMention>(state: SessionQueue<TFile, TMention>): SessionQueue<TFile, TMention>;
154
169
  /**
155
170
  * The send failed for good. Set it aside — do not put it back at the head.
@@ -157,13 +172,23 @@ export declare function completeInFlight<TFile, TMention>(state: SessionQueue<TF
157
172
  * Requeueing a failure at the head is how the queue used to wedge, and it is
158
173
  * also how a prompt the server already accepted gets sent a second time. The
159
174
  * item lands in `failed` with its reason, and `pending` keeps moving.
175
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
160
176
  */
161
177
  export declare function failInFlight<TFile, TMention>(state: SessionQueue<TFile, TMention>, error: string): SessionQueue<TFile, TMention>;
162
- /** Put a failed item back at the tail, with its error cleared. */
178
+ /**
179
+ * Put a failed item back at the tail, with its error cleared.
180
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
181
+ */
163
182
  export declare function retryFailed<TFile, TMention>(state: SessionQueue<TFile, TMention>, id: string): SessionQueue<TFile, TMention>;
164
- /** Drop a message. Refuses anything in flight — it is already on the wire. */
183
+ /**
184
+ * Drop a message. Refuses anything in flight — it is already on the wire.
185
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
186
+ */
165
187
  export declare function removeQueued<TFile, TMention>(state: SessionQueue<TFile, TMention>, id: string): SessionQueue<TFile, TMention>;
166
- /** Rewrite a queued message. Refuses anything in flight. */
188
+ /**
189
+ * Rewrite a queued message. Refuses anything in flight.
190
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
191
+ */
167
192
  export declare function editQueued<TFile, TMention>(state: SessionQueue<TFile, TMention>, id: string, text: string): SessionQueue<TFile, TMention>;
168
193
  /**
169
194
  * Move a pending message to `toIndex`.
@@ -173,6 +198,7 @@ export declare function editQueued<TFile, TMention>(state: SessionQueue<TFile, T
173
198
  * the wire — and an in-flight message cannot move at all. That is one slot for
174
199
  * a `claimNext` lock, and several for a state rehydrated from a host that
175
200
  * claimed a batch.
201
+ * @deprecated Kortix orders prompts server-side: send with `useSession().send`. Removed in the next major.
176
202
  */
177
203
  export declare function reorderQueued<TFile, TMention>(state: SessionQueue<TFile, TMention>, id: string, toIndex: number): SessionQueue<TFile, TMention>;
178
204
  //# sourceMappingURL=message-queue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"message-queue.d.ts","sourceRoot":"","sources":["../../../src/core/session/message-queue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB,CAAC,KAAK,GAAG,OAAO,EAAE,QAAQ,GAAG,OAAO;IACrE,6DAA6D;IAC7D,EAAE,EAAE,MAAM,CAAC;IACX;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC;IACtB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACvD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;;;;;;;;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