@kortix/sdk 0.15.0 → 0.15.2

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 (574) hide show
  1. package/README.md +37 -272
  2. package/dist/browser/session-sync/server-transcript-mirror.d.ts +4 -4
  3. package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
  4. package/dist/browser/session-sync/server-transcript-mirror.js +4 -4
  5. package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
  6. package/dist/browser/session-sync/session-cache-ownership.d.ts +5 -5
  7. package/dist/browser/session-sync/session-cache-ownership.js +5 -5
  8. package/dist/browser/session-sync/session-sync-registry.d.ts +1 -1
  9. package/dist/browser/session-sync/session-sync-registry.js +1 -1
  10. package/dist/browser/stores/{opencode-compaction-store.d.ts → runtime-compaction-store.d.ts} +3 -3
  11. package/dist/browser/stores/runtime-compaction-store.d.ts.map +1 -0
  12. package/dist/browser/stores/{opencode-compaction-store.js → runtime-compaction-store.js} +2 -2
  13. package/dist/browser/stores/runtime-compaction-store.js.map +1 -0
  14. package/dist/browser/stores/{opencode-pending-store.d.ts → runtime-pending-store.d.ts} +3 -3
  15. package/dist/browser/stores/runtime-pending-store.d.ts.map +1 -0
  16. package/dist/browser/stores/{opencode-pending-store.js → runtime-pending-store.js} +1 -1
  17. package/dist/browser/stores/runtime-pending-store.js.map +1 -0
  18. package/dist/browser/stores/sandbox-connection-store.d.ts +18 -3
  19. package/dist/browser/stores/sandbox-connection-store.d.ts.map +1 -1
  20. package/dist/browser/stores/sandbox-connection-store.js +57 -3
  21. package/dist/browser/stores/sandbox-connection-store.js.map +1 -1
  22. package/dist/browser/stores/sync-store.d.ts +2 -2
  23. package/dist/browser/stores/sync-store.js +3 -3
  24. package/dist/browser/stores/sync-store.js.map +1 -1
  25. package/dist/core/agents/composer-agents.js +3 -3
  26. package/dist/core/agents/composer-agents.js.map +1 -1
  27. package/dist/core/client/facade-commerce.d.ts +2 -0
  28. package/dist/core/client/facade-commerce.d.ts.map +1 -1
  29. package/dist/core/client/facade-commerce.js +2 -0
  30. package/dist/core/client/facade-commerce.js.map +1 -1
  31. package/dist/core/client/kortix.d.ts +12 -70
  32. package/dist/core/client/kortix.d.ts.map +1 -1
  33. package/dist/core/client/kortix.js +0 -2
  34. package/dist/core/client/kortix.js.map +1 -1
  35. package/dist/core/client/project-access-resources.d.ts +4 -1
  36. package/dist/core/client/project-access-resources.d.ts.map +1 -1
  37. package/dist/core/client/project-core.d.ts +3 -3
  38. package/dist/core/client/project-core.d.ts.map +1 -1
  39. package/dist/core/client/project-operations-admin.d.ts +4 -0
  40. package/dist/core/client/project-operations-admin.d.ts.map +1 -1
  41. package/dist/core/client/project-operations-review.d.ts +5 -0
  42. package/dist/core/client/project-operations-review.d.ts.map +1 -1
  43. package/dist/core/client/project-operations-review.js +5 -0
  44. package/dist/core/client/project-operations-review.js.map +1 -1
  45. package/dist/core/client/project-operations-workspace.d.ts +4 -0
  46. package/dist/core/client/project-operations-workspace.d.ts.map +1 -1
  47. package/dist/core/client/project-operations.d.ts +4 -0
  48. package/dist/core/client/project-operations.d.ts.map +1 -1
  49. package/dist/core/client/session-handle.d.ts +1 -1
  50. package/dist/core/client/session-handle.d.ts.map +1 -1
  51. package/dist/core/client/session-handle.js +3 -3
  52. package/dist/core/client/session-handle.js.map +1 -1
  53. package/dist/core/files/client.js +1 -1
  54. package/dist/core/files/client.js.map +1 -1
  55. package/dist/core/http/abort-error.d.ts +12 -13
  56. package/dist/core/http/abort-error.d.ts.map +1 -1
  57. package/dist/core/http/abort-error.js +14 -15
  58. package/dist/core/http/abort-error.js.map +1 -1
  59. package/dist/core/http/response-error.d.ts.map +1 -1
  60. package/dist/core/http/response-error.js +2 -0
  61. package/dist/core/http/response-error.js.map +1 -1
  62. package/dist/core/http/runtime-errors.d.ts +4 -5
  63. package/dist/core/http/runtime-errors.d.ts.map +1 -1
  64. package/dist/core/http/runtime-errors.js +7 -12
  65. package/dist/core/http/runtime-errors.js.map +1 -1
  66. package/dist/core/models/provider-connections.d.ts +6 -1
  67. package/dist/core/models/provider-connections.d.ts.map +1 -1
  68. package/dist/core/models/provider-connections.js +6 -1
  69. package/dist/core/models/provider-connections.js.map +1 -1
  70. package/dist/core/models/provider-selection.js +1 -1
  71. package/dist/core/models/provider-selection.js.map +1 -1
  72. package/dist/core/multi-agent/tool-data.d.ts +77 -0
  73. package/dist/core/multi-agent/tool-data.d.ts.map +1 -0
  74. package/dist/core/multi-agent/tool-data.js +145 -0
  75. package/dist/core/multi-agent/tool-data.js.map +1 -0
  76. package/dist/core/rest/projects-client/agent-config.d.ts +7 -8
  77. package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
  78. package/dist/core/rest/projects-client/agent-config.js.map +1 -1
  79. package/dist/core/rest/projects-client/apps.d.ts +11 -3
  80. package/dist/core/rest/projects-client/apps.d.ts.map +1 -1
  81. package/dist/core/rest/projects-client/apps.js +7 -2
  82. package/dist/core/rest/projects-client/apps.js.map +1 -1
  83. package/dist/core/rest/projects-client/artifacts.d.ts +0 -245
  84. package/dist/core/rest/projects-client/artifacts.d.ts.map +1 -1
  85. package/dist/core/rest/projects-client/artifacts.js +1 -115
  86. package/dist/core/rest/projects-client/artifacts.js.map +1 -1
  87. package/dist/core/rest/projects-client/billing.d.ts +20 -0
  88. package/dist/core/rest/projects-client/billing.d.ts.map +1 -1
  89. package/dist/core/rest/projects-client/billing.js +10 -0
  90. package/dist/core/rest/projects-client/billing.js.map +1 -1
  91. package/dist/core/rest/projects-client/goals.d.ts +260 -83
  92. package/dist/core/rest/projects-client/goals.d.ts.map +1 -1
  93. package/dist/core/rest/projects-client/goals.js +245 -400
  94. package/dist/core/rest/projects-client/goals.js.map +1 -1
  95. package/dist/core/rest/projects-client/iam-actions.d.ts +0 -1
  96. package/dist/core/rest/projects-client/iam-actions.d.ts.map +1 -1
  97. package/dist/core/rest/projects-client/iam-actions.js +0 -1
  98. package/dist/core/rest/projects-client/iam-actions.js.map +1 -1
  99. package/dist/core/rest/projects-client/index.d.ts +0 -2
  100. package/dist/core/rest/projects-client/index.d.ts.map +1 -1
  101. package/dist/core/rest/projects-client/index.js +0 -2
  102. package/dist/core/rest/projects-client/index.js.map +1 -1
  103. package/dist/core/rest/projects-client/notifications.d.ts +2 -6
  104. package/dist/core/rest/projects-client/notifications.d.ts.map +1 -1
  105. package/dist/core/rest/projects-client/notifications.js +3 -5
  106. package/dist/core/rest/projects-client/notifications.js.map +1 -1
  107. package/dist/core/rest/projects-client/project-agents.js +1 -1
  108. package/dist/core/rest/projects-client/project-agents.js.map +1 -1
  109. package/dist/core/rest/projects-client/projects.d.ts +45 -23
  110. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  111. package/dist/core/rest/projects-client/projects.js +3 -5
  112. package/dist/core/rest/projects-client/projects.js.map +1 -1
  113. package/dist/core/rest/projects-client/public-session-shares.js +1 -1
  114. package/dist/core/rest/projects-client/public-session-shares.js.map +1 -1
  115. package/dist/core/rest/projects-client/session-sandbox.d.ts +2 -2
  116. package/dist/core/rest/projects-client/session-sandbox.js +1 -1
  117. package/dist/core/rest/projects-client/sessions.d.ts +16 -18
  118. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  119. package/dist/core/rest/projects-client/sessions.js +2 -2
  120. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  121. package/dist/core/rest/projects-client/spaces.d.ts +32 -0
  122. package/dist/core/rest/projects-client/spaces.d.ts.map +1 -1
  123. package/dist/core/rest/projects-client/spaces.js +13 -0
  124. package/dist/core/rest/projects-client/spaces.js.map +1 -1
  125. package/dist/core/rest/projects-client/triggers.d.ts +6 -0
  126. package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
  127. package/dist/core/rest/projects-client/triggers.js.map +1 -1
  128. package/dist/core/runtime/kortix-master.d.ts +1 -0
  129. package/dist/core/runtime/kortix-master.d.ts.map +1 -1
  130. package/dist/core/runtime/kortix-master.js.map +1 -1
  131. package/dist/core/runtime/pty.js +2 -2
  132. package/dist/core/session/compaction.d.ts +2 -2
  133. package/dist/core/session/compaction.js +2 -2
  134. package/dist/core/session/control-stream.d.ts +50 -2
  135. package/dist/core/session/control-stream.d.ts.map +1 -1
  136. package/dist/core/session/control-stream.js +99 -9
  137. package/dist/core/session/control-stream.js.map +1 -1
  138. package/dist/core/session/current-runtime.d.ts +1 -1
  139. package/dist/core/session/health.d.ts +9 -19
  140. package/dist/core/session/health.d.ts.map +1 -1
  141. package/dist/core/session/health.js +2 -2
  142. package/dist/core/session/health.js.map +1 -1
  143. package/dist/core/session/runtime-actions.d.ts +3 -2
  144. package/dist/core/session/runtime-actions.d.ts.map +1 -1
  145. package/dist/core/session/runtime-actions.js.map +1 -1
  146. package/dist/core/session/server-store/active.d.ts +2 -2
  147. package/dist/core/session/server-store/active.js +2 -2
  148. package/dist/core/session/server-store/types.d.ts +2 -2
  149. package/dist/core/session/server-store/types.d.ts.map +1 -1
  150. package/dist/core/session/server-store/url-helpers.d.ts +5 -5
  151. package/dist/core/session/server-store/url-helpers.js +5 -5
  152. package/dist/core/session/session-runtime-registry.d.ts +1 -1
  153. package/dist/core/session/session-runtime-registry.js +1 -1
  154. package/dist/core/session/url.d.ts +2 -2
  155. package/dist/core/session/url.js +4 -4
  156. package/dist/core/session/url.js.map +1 -1
  157. package/dist/core/session/wire-message-id.d.ts +12 -42
  158. package/dist/core/session/wire-message-id.d.ts.map +1 -1
  159. package/dist/core/session/wire-message-id.js +11 -37
  160. package/dist/core/session/wire-message-id.js.map +1 -1
  161. package/dist/core/session/working-server.d.ts +13 -1
  162. package/dist/core/session/working-server.d.ts.map +1 -1
  163. package/dist/core/session/working-server.js +15 -1
  164. package/dist/core/session/working-server.js.map +1 -1
  165. package/dist/core/session/working.d.ts.map +1 -1
  166. package/dist/core/session/working.js +3 -1
  167. package/dist/core/session/working.js.map +1 -1
  168. package/dist/core/session-log/v1-view.d.ts +2 -2
  169. package/dist/core/session-log/v1-view.d.ts.map +1 -1
  170. package/dist/core/session-log/v1-view.js +3 -1
  171. package/dist/core/session-log/v1-view.js.map +1 -1
  172. package/dist/core/session-sync/saved-copy-store.d.ts +3 -3
  173. package/dist/core/session-sync/saved-copy-store.d.ts.map +1 -1
  174. package/dist/core/session-sync/saved-copy-store.js +3 -3
  175. package/dist/core/session-sync/saved-copy-store.js.map +1 -1
  176. package/dist/core/session-sync/saved-transcript.d.ts +5 -5
  177. package/dist/core/session-sync/saved-transcript.d.ts.map +1 -1
  178. package/dist/core/session-sync/saved-transcript.js +2 -2
  179. package/dist/core/session-sync/session-sync-controller.js +2 -2
  180. package/dist/core/session-sync/session-sync-controller.js.map +1 -1
  181. package/dist/core/stream/event-attempt.js +1 -1
  182. package/dist/core/stream/event-attempt.js.map +1 -1
  183. package/dist/core/stream/event-stream.d.ts +6 -6
  184. package/dist/core/stream/event-stream.js +4 -4
  185. package/dist/core/turns/shell.d.ts +2 -2
  186. package/dist/core/turns/shell.js +2 -2
  187. package/dist/core/wire-values.d.ts +81 -0
  188. package/dist/core/wire-values.d.ts.map +1 -0
  189. package/dist/core/wire-values.js +177 -0
  190. package/dist/core/wire-values.js.map +1 -0
  191. package/dist/index.d.ts +8 -9
  192. package/dist/index.d.ts.map +1 -1
  193. package/dist/index.js +6 -10
  194. package/dist/index.js.map +1 -1
  195. package/dist/kortix.esm.min.js +55 -70
  196. package/dist/kortix.global.js +55 -70
  197. package/dist/platform/auth-core.d.ts +2 -2
  198. package/dist/platform/auth-core.js +2 -2
  199. package/dist/react/chat/use-chat-turns.d.ts +1 -1
  200. package/dist/react/chat/use-chat-turns.d.ts.map +1 -1
  201. package/dist/react/hold-live-start.d.ts.map +1 -1
  202. package/dist/react/hold-live-start.js +4 -11
  203. package/dist/react/hold-live-start.js.map +1 -1
  204. package/dist/react/index.d.ts +7 -6
  205. package/dist/react/index.d.ts.map +1 -1
  206. package/dist/react/index.js +12 -12
  207. package/dist/react/index.js.map +1 -1
  208. package/dist/react/initial-session-pin.d.ts +1 -1
  209. package/dist/react/initial-session-pin.d.ts.map +1 -1
  210. package/dist/react/initial-session-pin.js +3 -3
  211. package/dist/react/initial-session-pin.js.map +1 -1
  212. package/dist/react/provider-refresh.d.ts +1 -1
  213. package/dist/react/provider-refresh.js +4 -4
  214. package/dist/react/provider-refresh.js.map +1 -1
  215. package/dist/react/query-keys.d.ts +9 -17
  216. package/dist/react/query-keys.d.ts.map +1 -1
  217. package/dist/react/query-keys.js +9 -7
  218. package/dist/react/query-keys.js.map +1 -1
  219. package/dist/react/reset-identity-state.js +1 -1
  220. package/dist/react/reset-identity-state.js.map +1 -1
  221. package/dist/react/runtime-actions.js +1 -1
  222. package/dist/react/runtime-actions.js.map +1 -1
  223. package/dist/react/{opencode.d.ts → runtime-hooks.d.ts} +14 -14
  224. package/dist/react/runtime-hooks.d.ts.map +1 -0
  225. package/dist/react/{opencode.js → runtime-hooks.js} +19 -19
  226. package/dist/react/runtime-hooks.js.map +1 -0
  227. package/dist/react/session-start-stash.d.ts +1 -1
  228. package/dist/react/session-start-stash.js +8 -8
  229. package/dist/react/session-start-stash.js.map +1 -1
  230. package/dist/react/session-stop.d.ts +5 -5
  231. package/dist/react/session-stop.d.ts.map +1 -1
  232. package/dist/react/session-stop.js +3 -3
  233. package/dist/react/session-stop.js.map +1 -1
  234. package/dist/react/session-title-sync.js +1 -1
  235. package/dist/react/session-transcript-subscription.d.ts +2 -2
  236. package/dist/react/session-transcript-subscription.js +2 -2
  237. package/dist/react/sign-in-with-kortix.d.ts +2 -2
  238. package/dist/react/turn-end-handoff.d.ts +1 -1
  239. package/dist/react/turn-end-handoff.d.ts.map +1 -1
  240. package/dist/react/turn-end-handoff.js +2 -2
  241. package/dist/react/turn-end-handoff.js.map +1 -1
  242. package/dist/react/use-admin-credit-codes.d.ts +34 -0
  243. package/dist/react/use-admin-credit-codes.d.ts.map +1 -0
  244. package/dist/react/use-admin-credit-codes.js +48 -0
  245. package/dist/react/use-admin-credit-codes.js.map +1 -0
  246. package/dist/react/use-artifacts.d.ts +2 -492
  247. package/dist/react/use-artifacts.d.ts.map +1 -1
  248. package/dist/react/use-artifacts.js +3 -390
  249. package/dist/react/use-artifacts.js.map +1 -1
  250. package/dist/react/{use-canonical-opencode-session.d.ts → use-canonical-runtime-session.d.ts} +6 -6
  251. package/dist/react/use-canonical-runtime-session.d.ts.map +1 -0
  252. package/dist/react/{use-canonical-opencode-session.js → use-canonical-runtime-session.js} +5 -5
  253. package/dist/react/use-canonical-runtime-session.js.map +1 -0
  254. package/dist/react/use-feature-flag.d.ts +2 -1
  255. package/dist/react/use-feature-flag.d.ts.map +1 -1
  256. package/dist/react/use-feature-flag.js +3 -1
  257. package/dist/react/use-feature-flag.js.map +1 -1
  258. package/dist/react/use-goals.d.ts +48 -9
  259. package/dist/react/use-goals.d.ts.map +1 -1
  260. package/dist/react/use-goals.js +106 -16
  261. package/dist/react/use-goals.js.map +1 -1
  262. package/dist/react/use-kortix-master.d.ts +1 -1
  263. package/dist/react/use-kortix-master.js +4 -4
  264. package/dist/react/use-kortix-master.js.map +1 -1
  265. package/dist/react/use-model-store.d.ts +1 -1
  266. package/dist/react/use-model-store.d.ts.map +1 -1
  267. package/dist/react/use-model-store.js +14 -3
  268. package/dist/react/use-model-store.js.map +1 -1
  269. package/dist/react/use-permission-self-heal.d.ts +1 -1
  270. package/dist/react/use-permission-self-heal.js +2 -2
  271. package/dist/react/use-permission-self-heal.js.map +1 -1
  272. package/dist/react/use-project-apps.d.ts +13 -26
  273. package/dist/react/use-project-apps.d.ts.map +1 -1
  274. package/dist/react/use-project-apps.js +15 -4
  275. package/dist/react/use-project-apps.js.map +1 -1
  276. package/dist/react/use-project-session.d.ts +1 -1
  277. package/dist/react/use-project-session.js +1 -1
  278. package/dist/react/use-project-spaces.d.ts +11 -1
  279. package/dist/react/use-project-spaces.d.ts.map +1 -1
  280. package/dist/react/use-project-spaces.js +22 -1
  281. package/dist/react/use-project-spaces.js.map +1 -1
  282. package/dist/react/use-question-self-heal.js +1 -1
  283. package/dist/react/use-question-self-heal.js.map +1 -1
  284. package/dist/react/use-runtime-boot-stalled.d.ts +1 -1
  285. package/dist/react/use-runtime-boot-stalled.js +1 -1
  286. package/dist/react/{use-opencode-config.d.ts → use-runtime-config.d.ts} +4 -4
  287. package/dist/react/use-runtime-config.d.ts.map +1 -0
  288. package/dist/react/{use-opencode-config.js → use-runtime-config.js} +5 -5
  289. package/dist/react/use-runtime-config.js.map +1 -0
  290. package/dist/react/use-runtime-events/diagnostics.d.ts.map +1 -0
  291. package/dist/react/{use-opencode-events → use-runtime-events}/diagnostics.js +1 -1
  292. package/dist/react/use-runtime-events/diagnostics.js.map +1 -0
  293. package/dist/react/{use-opencode-events → use-runtime-events}/handle-event.d.ts +3 -3
  294. package/dist/react/use-runtime-events/handle-event.d.ts.map +1 -0
  295. package/dist/react/{use-opencode-events → use-runtime-events}/handle-event.js +1 -1
  296. package/dist/react/use-runtime-events/handle-event.js.map +1 -0
  297. package/dist/react/use-runtime-events/handle-interaction-event.d.ts.map +1 -0
  298. package/dist/react/use-runtime-events/handle-interaction-event.js.map +1 -0
  299. package/dist/react/use-runtime-events/handle-message-event.d.ts.map +1 -0
  300. package/dist/react/use-runtime-events/handle-message-event.js.map +1 -0
  301. package/dist/react/use-runtime-events/handle-session-event.d.ts.map +1 -0
  302. package/dist/react/{use-opencode-events → use-runtime-events}/handle-session-event.js +1 -1
  303. package/dist/react/use-runtime-events/handle-session-event.js.map +1 -0
  304. package/dist/react/use-runtime-events/handle-workspace-event.d.ts.map +1 -0
  305. package/dist/react/{use-opencode-events → use-runtime-events}/handle-workspace-event.js +6 -6
  306. package/dist/react/use-runtime-events/handle-workspace-event.js.map +1 -0
  307. package/dist/react/{use-opencode-events → use-runtime-events}/handler-context.d.ts +2 -2
  308. package/dist/react/use-runtime-events/handler-context.d.ts.map +1 -0
  309. package/dist/react/use-runtime-events/handler-context.js.map +1 -0
  310. package/dist/react/{use-opencode-events → use-runtime-events}/helpers.d.ts +4 -4
  311. package/dist/react/use-runtime-events/helpers.d.ts.map +1 -0
  312. package/dist/react/{use-opencode-events → use-runtime-events}/helpers.js +6 -5
  313. package/dist/react/use-runtime-events/helpers.js.map +1 -0
  314. package/dist/react/use-runtime-events/hydrate-core.d.ts.map +1 -0
  315. package/dist/react/use-runtime-events/hydrate-core.js.map +1 -0
  316. package/dist/react/{use-opencode-events → use-runtime-events}/index.d.ts +2 -2
  317. package/dist/react/use-runtime-events/index.d.ts.map +1 -0
  318. package/dist/react/{use-opencode-events → use-runtime-events}/index.js +8 -8
  319. package/dist/react/use-runtime-events/index.js.map +1 -0
  320. package/dist/react/use-runtime-events/log-control.d.ts.map +1 -0
  321. package/dist/react/{use-opencode-events → use-runtime-events}/log-control.js +11 -7
  322. package/dist/react/use-runtime-events/log-control.js.map +1 -0
  323. package/dist/react/use-runtime-events/rehydrate-targets.d.ts.map +1 -0
  324. package/dist/react/use-runtime-events/rehydrate-targets.js.map +1 -0
  325. package/dist/react/use-runtime-events/runtime-stream-signals.d.ts.map +1 -0
  326. package/dist/react/use-runtime-events/runtime-stream-signals.js.map +1 -0
  327. package/dist/react/use-runtime-events/stream-revival.d.ts.map +1 -0
  328. package/dist/react/use-runtime-events/stream-revival.js.map +1 -0
  329. package/dist/react/use-runtime-events/types.d.ts.map +1 -0
  330. package/dist/react/use-runtime-events/types.js.map +1 -0
  331. package/dist/react/{use-opencode-events → use-runtime-events}/use-event-stream-refs.d.ts +3 -3
  332. package/dist/react/use-runtime-events/use-event-stream-refs.d.ts.map +1 -0
  333. package/dist/react/{use-opencode-events → use-runtime-events}/use-event-stream-refs.js +4 -4
  334. package/dist/react/use-runtime-events/use-event-stream-refs.js.map +1 -0
  335. package/dist/react/{use-opencode-local.d.ts → use-runtime-local.d.ts} +1 -1
  336. package/dist/react/use-runtime-local.d.ts.map +1 -0
  337. package/dist/react/{use-opencode-local.js → use-runtime-local.js} +1 -1
  338. package/dist/react/use-runtime-local.js.map +1 -0
  339. package/dist/react/use-runtime-phase.js +1 -1
  340. package/dist/react/use-runtime-phase.js.map +1 -1
  341. package/dist/react/{use-opencode-pty.d.ts → use-runtime-pty.d.ts} +1 -1
  342. package/dist/react/use-runtime-pty.d.ts.map +1 -0
  343. package/dist/react/{use-opencode-pty.js → use-runtime-pty.js} +3 -3
  344. package/dist/react/use-runtime-pty.js.map +1 -0
  345. package/dist/react/use-runtime-reconnect.d.ts +13 -2
  346. package/dist/react/use-runtime-reconnect.d.ts.map +1 -1
  347. package/dist/react/use-runtime-reconnect.js +43 -7
  348. package/dist/react/use-runtime-reconnect.js.map +1 -1
  349. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/agents.d.ts +2 -3
  350. package/dist/react/use-runtime-sessions/agents.d.ts.map +1 -0
  351. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/agents.js +2 -3
  352. package/dist/react/use-runtime-sessions/agents.js.map +1 -0
  353. package/dist/react/use-runtime-sessions/commands.d.ts.map +1 -0
  354. package/dist/react/use-runtime-sessions/commands.js.map +1 -0
  355. package/dist/react/use-runtime-sessions/files.d.ts.map +1 -0
  356. package/dist/react/use-runtime-sessions/files.js.map +1 -0
  357. package/dist/react/use-runtime-sessions/index.d.ts.map +1 -0
  358. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/index.js +3 -4
  359. package/dist/react/use-runtime-sessions/index.js.map +1 -0
  360. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/keys.d.ts +23 -23
  361. package/dist/react/use-runtime-sessions/keys.d.ts.map +1 -0
  362. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/keys.js +22 -22
  363. package/dist/react/use-runtime-sessions/keys.js.map +1 -0
  364. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/log-sessions.d.ts +1 -1
  365. package/dist/react/use-runtime-sessions/log-sessions.d.ts.map +1 -0
  366. package/dist/react/use-runtime-sessions/log-sessions.js.map +1 -0
  367. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/messages.d.ts +2 -2
  368. package/dist/react/use-runtime-sessions/messages.d.ts.map +1 -0
  369. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/messages.js +3 -3
  370. package/dist/react/use-runtime-sessions/messages.js.map +1 -0
  371. package/dist/react/use-runtime-sessions/permissions.d.ts.map +1 -0
  372. package/dist/react/use-runtime-sessions/permissions.js.map +1 -0
  373. package/dist/react/use-runtime-sessions/projects.d.ts.map +1 -0
  374. package/dist/react/use-runtime-sessions/projects.js.map +1 -0
  375. package/dist/react/use-runtime-sessions/providers.d.ts.map +1 -0
  376. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/providers.js +3 -3
  377. package/dist/react/use-runtime-sessions/providers.js.map +1 -0
  378. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/sessions.d.ts +1 -1
  379. package/dist/react/use-runtime-sessions/sessions.d.ts.map +1 -0
  380. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/sessions.js +13 -12
  381. package/dist/react/use-runtime-sessions/sessions.js.map +1 -0
  382. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/shared.d.ts +5 -5
  383. package/dist/react/use-runtime-sessions/shared.d.ts.map +1 -0
  384. package/dist/react/{use-opencode-sessions → use-runtime-sessions}/shared.js +5 -5
  385. package/dist/react/use-runtime-sessions/shared.js.map +1 -0
  386. package/dist/react/use-runtime-sessions/vcs.d.ts.map +1 -0
  387. package/dist/react/use-runtime-sessions/vcs.js.map +1 -0
  388. package/dist/react/use-session-log.d.ts +1 -1
  389. package/dist/react/use-session-log.js +1 -1
  390. package/dist/react/use-session-model-selection.d.ts +1 -1
  391. package/dist/react/use-session-model-selection.d.ts.map +1 -1
  392. package/dist/react/use-session-model-selection.js +1 -1
  393. package/dist/react/use-session-model-selection.js.map +1 -1
  394. package/dist/react/use-session-prefetch.d.ts +1 -1
  395. package/dist/react/use-session-prefetch.d.ts.map +1 -1
  396. package/dist/react/use-session-prefetch.js +1 -1
  397. package/dist/react/use-session-prefetch.js.map +1 -1
  398. package/dist/react/use-session-prompts.d.ts +1 -1
  399. package/dist/react/use-session-prompts.d.ts.map +1 -1
  400. package/dist/react/use-session-prompts.js +5 -3
  401. package/dist/react/use-session-prompts.js.map +1 -1
  402. package/dist/react/use-session-send.d.ts +5 -5
  403. package/dist/react/use-session-send.d.ts.map +1 -1
  404. package/dist/react/use-session-send.js +1 -1
  405. package/dist/react/use-session-send.js.map +1 -1
  406. package/dist/react/use-session-stream.d.ts +10 -1
  407. package/dist/react/use-session-stream.d.ts.map +1 -1
  408. package/dist/react/use-session-stream.js +59 -12
  409. package/dist/react/use-session-stream.js.map +1 -1
  410. package/dist/react/use-session-sync.d.ts +1 -1
  411. package/dist/react/use-session-sync.js +4 -4
  412. package/dist/react/use-session-sync.js.map +1 -1
  413. package/dist/react/use-session-working.d.ts +2 -2
  414. package/dist/react/use-session-working.d.ts.map +1 -1
  415. package/dist/react/use-session-working.js +10 -5
  416. package/dist/react/use-session-working.js.map +1 -1
  417. package/dist/react/use-session.d.ts +10 -10
  418. package/dist/react/use-session.d.ts.map +1 -1
  419. package/dist/react/use-session.js +34 -24
  420. package/dist/react/use-session.js.map +1 -1
  421. package/dist/react/use-sessions-needing-input.d.ts +3 -1
  422. package/dist/react/use-sessions-needing-input.d.ts.map +1 -1
  423. package/dist/react/use-sessions-needing-input.js +4 -2
  424. package/dist/react/use-sessions-needing-input.js.map +1 -1
  425. package/dist/react/use-visible-agents.js +1 -1
  426. package/dist/react/use-visible-agents.js.map +1 -1
  427. package/dist/workspace-search/client.d.ts.map +1 -1
  428. package/dist/workspace-search/client.js +0 -1
  429. package/dist/workspace-search/client.js.map +1 -1
  430. package/package.json +3 -3
  431. package/dist/browser/stores/opencode-compaction-store.d.ts.map +0 -1
  432. package/dist/browser/stores/opencode-compaction-store.js.map +0 -1
  433. package/dist/browser/stores/opencode-pending-store.d.ts.map +0 -1
  434. package/dist/browser/stores/opencode-pending-store.js.map +0 -1
  435. package/dist/core/artifact-doc/base64.d.ts +0 -17
  436. package/dist/core/artifact-doc/base64.d.ts.map +0 -1
  437. package/dist/core/artifact-doc/base64.js +0 -69
  438. package/dist/core/artifact-doc/base64.js.map +0 -1
  439. package/dist/core/artifact-doc/index.d.ts +0 -7
  440. package/dist/core/artifact-doc/index.d.ts.map +0 -1
  441. package/dist/core/artifact-doc/index.js +0 -7
  442. package/dist/core/artifact-doc/index.js.map +0 -1
  443. package/dist/core/artifact-doc/sync.d.ts +0 -178
  444. package/dist/core/artifact-doc/sync.d.ts.map +0 -1
  445. package/dist/core/artifact-doc/sync.js +0 -838
  446. package/dist/core/artifact-doc/sync.js.map +0 -1
  447. package/dist/core/artifact-live/connection.d.ts +0 -116
  448. package/dist/core/artifact-live/connection.d.ts.map +0 -1
  449. package/dist/core/artifact-live/connection.js +0 -433
  450. package/dist/core/artifact-live/connection.js.map +0 -1
  451. package/dist/core/artifact-live/index.d.ts +0 -8
  452. package/dist/core/artifact-live/index.d.ts.map +0 -1
  453. package/dist/core/artifact-live/index.js +0 -7
  454. package/dist/core/artifact-live/index.js.map +0 -1
  455. package/dist/core/artifact-live/protocol.d.ts +0 -167
  456. package/dist/core/artifact-live/protocol.d.ts.map +0 -1
  457. package/dist/core/artifact-live/protocol.js +0 -153
  458. package/dist/core/artifact-live/protocol.js.map +0 -1
  459. package/dist/core/client/project-artifacts.d.ts +0 -74
  460. package/dist/core/client/project-artifacts.d.ts.map +0 -1
  461. package/dist/core/client/project-artifacts.js +0 -38
  462. package/dist/core/client/project-artifacts.js.map +0 -1
  463. package/dist/core/rest/projects-client/artifact-doc.d.ts +0 -118
  464. package/dist/core/rest/projects-client/artifact-doc.d.ts.map +0 -1
  465. package/dist/core/rest/projects-client/artifact-doc.js +0 -122
  466. package/dist/core/rest/projects-client/artifact-doc.js.map +0 -1
  467. package/dist/core/rest/projects-client/artifact-live.d.ts +0 -22
  468. package/dist/core/rest/projects-client/artifact-live.d.ts.map +0 -1
  469. package/dist/core/rest/projects-client/artifact-live.js +0 -25
  470. package/dist/core/rest/projects-client/artifact-live.js.map +0 -1
  471. package/dist/react/opencode.d.ts.map +0 -1
  472. package/dist/react/opencode.js.map +0 -1
  473. package/dist/react/use-artifact-live.d.ts +0 -41
  474. package/dist/react/use-artifact-live.d.ts.map +0 -1
  475. package/dist/react/use-artifact-live.js +0 -114
  476. package/dist/react/use-artifact-live.js.map +0 -1
  477. package/dist/react/use-canonical-opencode-session.d.ts.map +0 -1
  478. package/dist/react/use-canonical-opencode-session.js.map +0 -1
  479. package/dist/react/use-opencode-config.d.ts.map +0 -1
  480. package/dist/react/use-opencode-config.js.map +0 -1
  481. package/dist/react/use-opencode-events/diagnostics.d.ts.map +0 -1
  482. package/dist/react/use-opencode-events/diagnostics.js.map +0 -1
  483. package/dist/react/use-opencode-events/handle-event.d.ts.map +0 -1
  484. package/dist/react/use-opencode-events/handle-event.js.map +0 -1
  485. package/dist/react/use-opencode-events/handle-interaction-event.d.ts.map +0 -1
  486. package/dist/react/use-opencode-events/handle-interaction-event.js.map +0 -1
  487. package/dist/react/use-opencode-events/handle-message-event.d.ts.map +0 -1
  488. package/dist/react/use-opencode-events/handle-message-event.js.map +0 -1
  489. package/dist/react/use-opencode-events/handle-session-event.d.ts.map +0 -1
  490. package/dist/react/use-opencode-events/handle-session-event.js.map +0 -1
  491. package/dist/react/use-opencode-events/handle-workspace-event.d.ts.map +0 -1
  492. package/dist/react/use-opencode-events/handle-workspace-event.js.map +0 -1
  493. package/dist/react/use-opencode-events/handler-context.d.ts.map +0 -1
  494. package/dist/react/use-opencode-events/handler-context.js.map +0 -1
  495. package/dist/react/use-opencode-events/helpers.d.ts.map +0 -1
  496. package/dist/react/use-opencode-events/helpers.js.map +0 -1
  497. package/dist/react/use-opencode-events/hydrate-core.d.ts.map +0 -1
  498. package/dist/react/use-opencode-events/hydrate-core.js.map +0 -1
  499. package/dist/react/use-opencode-events/index.d.ts.map +0 -1
  500. package/dist/react/use-opencode-events/index.js.map +0 -1
  501. package/dist/react/use-opencode-events/log-control.d.ts.map +0 -1
  502. package/dist/react/use-opencode-events/log-control.js.map +0 -1
  503. package/dist/react/use-opencode-events/rehydrate-targets.d.ts.map +0 -1
  504. package/dist/react/use-opencode-events/rehydrate-targets.js.map +0 -1
  505. package/dist/react/use-opencode-events/runtime-stream-signals.d.ts.map +0 -1
  506. package/dist/react/use-opencode-events/runtime-stream-signals.js.map +0 -1
  507. package/dist/react/use-opencode-events/stream-revival.d.ts.map +0 -1
  508. package/dist/react/use-opencode-events/stream-revival.js.map +0 -1
  509. package/dist/react/use-opencode-events/types.d.ts.map +0 -1
  510. package/dist/react/use-opencode-events/types.js.map +0 -1
  511. package/dist/react/use-opencode-events/use-event-stream-refs.d.ts.map +0 -1
  512. package/dist/react/use-opencode-events/use-event-stream-refs.js.map +0 -1
  513. package/dist/react/use-opencode-local.d.ts.map +0 -1
  514. package/dist/react/use-opencode-local.js.map +0 -1
  515. package/dist/react/use-opencode-pty.d.ts.map +0 -1
  516. package/dist/react/use-opencode-pty.js.map +0 -1
  517. package/dist/react/use-opencode-sessions/agents.d.ts.map +0 -1
  518. package/dist/react/use-opencode-sessions/agents.js.map +0 -1
  519. package/dist/react/use-opencode-sessions/commands.d.ts.map +0 -1
  520. package/dist/react/use-opencode-sessions/commands.js.map +0 -1
  521. package/dist/react/use-opencode-sessions/files.d.ts.map +0 -1
  522. package/dist/react/use-opencode-sessions/files.js.map +0 -1
  523. package/dist/react/use-opencode-sessions/index.d.ts.map +0 -1
  524. package/dist/react/use-opencode-sessions/index.js.map +0 -1
  525. package/dist/react/use-opencode-sessions/keys.d.ts.map +0 -1
  526. package/dist/react/use-opencode-sessions/keys.js.map +0 -1
  527. package/dist/react/use-opencode-sessions/log-sessions.d.ts.map +0 -1
  528. package/dist/react/use-opencode-sessions/log-sessions.js.map +0 -1
  529. package/dist/react/use-opencode-sessions/messages.d.ts.map +0 -1
  530. package/dist/react/use-opencode-sessions/messages.js.map +0 -1
  531. package/dist/react/use-opencode-sessions/permissions.d.ts.map +0 -1
  532. package/dist/react/use-opencode-sessions/permissions.js.map +0 -1
  533. package/dist/react/use-opencode-sessions/projects.d.ts.map +0 -1
  534. package/dist/react/use-opencode-sessions/projects.js.map +0 -1
  535. package/dist/react/use-opencode-sessions/providers.d.ts.map +0 -1
  536. package/dist/react/use-opencode-sessions/providers.js.map +0 -1
  537. package/dist/react/use-opencode-sessions/sessions.d.ts.map +0 -1
  538. package/dist/react/use-opencode-sessions/sessions.js.map +0 -1
  539. package/dist/react/use-opencode-sessions/shared.d.ts.map +0 -1
  540. package/dist/react/use-opencode-sessions/shared.js.map +0 -1
  541. package/dist/react/use-opencode-sessions/vcs.d.ts.map +0 -1
  542. package/dist/react/use-opencode-sessions/vcs.js.map +0 -1
  543. /package/dist/react/{use-opencode-events → use-runtime-events}/diagnostics.d.ts +0 -0
  544. /package/dist/react/{use-opencode-events → use-runtime-events}/handle-interaction-event.d.ts +0 -0
  545. /package/dist/react/{use-opencode-events → use-runtime-events}/handle-interaction-event.js +0 -0
  546. /package/dist/react/{use-opencode-events → use-runtime-events}/handle-message-event.d.ts +0 -0
  547. /package/dist/react/{use-opencode-events → use-runtime-events}/handle-message-event.js +0 -0
  548. /package/dist/react/{use-opencode-events → use-runtime-events}/handle-session-event.d.ts +0 -0
  549. /package/dist/react/{use-opencode-events → use-runtime-events}/handle-workspace-event.d.ts +0 -0
  550. /package/dist/react/{use-opencode-events → use-runtime-events}/handler-context.js +0 -0
  551. /package/dist/react/{use-opencode-events → use-runtime-events}/hydrate-core.d.ts +0 -0
  552. /package/dist/react/{use-opencode-events → use-runtime-events}/hydrate-core.js +0 -0
  553. /package/dist/react/{use-opencode-events → use-runtime-events}/log-control.d.ts +0 -0
  554. /package/dist/react/{use-opencode-events → use-runtime-events}/rehydrate-targets.d.ts +0 -0
  555. /package/dist/react/{use-opencode-events → use-runtime-events}/rehydrate-targets.js +0 -0
  556. /package/dist/react/{use-opencode-events → use-runtime-events}/runtime-stream-signals.d.ts +0 -0
  557. /package/dist/react/{use-opencode-events → use-runtime-events}/runtime-stream-signals.js +0 -0
  558. /package/dist/react/{use-opencode-events → use-runtime-events}/stream-revival.d.ts +0 -0
  559. /package/dist/react/{use-opencode-events → use-runtime-events}/stream-revival.js +0 -0
  560. /package/dist/react/{use-opencode-events → use-runtime-events}/types.d.ts +0 -0
  561. /package/dist/react/{use-opencode-events → use-runtime-events}/types.js +0 -0
  562. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/commands.d.ts +0 -0
  563. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/commands.js +0 -0
  564. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/files.d.ts +0 -0
  565. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/files.js +0 -0
  566. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/index.d.ts +0 -0
  567. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/log-sessions.js +0 -0
  568. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/permissions.d.ts +0 -0
  569. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/permissions.js +0 -0
  570. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/projects.d.ts +0 -0
  571. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/projects.js +0 -0
  572. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/providers.d.ts +0 -0
  573. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/vcs.d.ts +0 -0
  574. /package/dist/react/{use-opencode-sessions → use-runtime-sessions}/vcs.js +0 -0
package/README.md CHANGED
@@ -653,281 +653,46 @@ Message retries keep the originating sandbox URL after navigation. A `404` or
653
653
  `410` message read stops automatic retries and preserves the cached transcript.
654
654
  An explicit reconciliation can recover the controller when the session returns.
655
655
 
656
- ## Artifact comments and activity
656
+ ## Goals
657
657
 
658
- Projects enable `artifacts` and `artifact_comments` before using comments.
659
- `artifact_comments` defaults off. Agent tokens need `project.artifact.comment`.
660
- Every comment identifies its author as a user or a session.
658
+ A goal is what a person wants plus a definition of done (project flag
659
+ `goals`, off by default). The API owns its state, pause, owner and verifier
660
+ sessions, limits and verification; the goal's Drive folder holds the brief
661
+ (`GOAL.md`), `log.md` and `evidence/`. Lifecycle fields written into
662
+ `GOAL.md` change nothing.
661
663
 
662
664
  ```ts
663
- const artifact = kortix.project(projectId).artifacts;
664
- const thread = await artifact.comments.create(artifactId, {
665
- anchor: { type: 'none', version: entryVersion },
666
- body: 'Confirm the forecast.',
667
- });
668
- await artifact.comments.reply(artifactId, thread.thread_id, { body: 'Confirmed.' });
669
- const handoff = await artifact.comments.send(artifactId, {
670
- thread_ids: [thread.thread_id],
671
- batch_id: crypto.randomUUID(),
672
- agent: 'reviewer',
673
- });
674
- await artifact.comments.setStatus(artifactId, thread.thread_id, 'resolved');
675
- const threads = await artifact.comments.list(artifactId, { status: 'all' });
676
- const activity = await artifact.activity(artifactId, { limit: 50 });
677
- ```
678
-
679
- Text anchors carry `version`, `quote`, `prefix`, and `suffix`.
680
- `quote` accepts up to 500 UTF-16 code units, and `prefix` and `suffix` up to 32 each. Point and region anchors carry a CSS selector,
681
- element-relative fractions, viewport width, and scroll position.
682
-
683
- The root exports `listArtifactComments`, `createArtifactComment`,
684
- `replyArtifactComment`, `setArtifactCommentStatus`, `editArtifactComment`,
685
- `deleteArtifactComment`, and `listArtifactActivity`. The write functions return
686
- the thread or comment. `getArtifactCommentThread(projectId, threadId)` resolves
687
- a bare thread id with the same visibility checks. Activity returns
688
- `{ items, next_cursor, older_versions }`; pass `next_cursor` as `cursor` to
689
- read the next page. Unknown historical save authors remain `System`.
690
-
691
- Comments and replies also accept optional `marks` and `screenshot_base64`. Marks are normalized pen, arrow, or rectangle geometry relative to a region anchor. PNG and WebP screenshots are limited to 2 MiB decoded. `parseArtifactCommentMarks` validates the published `marks: unknown[]` response without changing that existing type. Invalid stored marks return `null`; an empty array is valid.
692
-
693
- `readArtifactCommentScreenshot(projectId, artifactId, commentId, { signal? })` returns a `Blob` through the authenticated API. The project facade exposes `project.artifacts.comments.readScreenshot(artifactId, commentId)`. Every read checks Artifact visibility. A missing, deleted, or inaccessible screenshot answers `404`. The optional `screenshot_url` response field is a protected relative API path, not a public image URL. `useArtifactCommentScreenshot(projectId, artifactId, commentId)` reads the same authenticated blob for a mounted thumbnail, without retaining it after unmount. A browser host creates an object URL from the returned blob and revokes it when the image leaves the screen. Editing comment text does not change its marks or screenshot. A failed page capture can still save the marks and anchor without a screenshot.
694
-
695
- Send attaches screenshot bytes only when the target model supports images. Image batches allow at most 20 files, 100 MiB of decoded attachments, and 12 MiB of serialized image parts. A refused batch returns `413` with code `artifact_comment_screenshot_limit`. `ApiError.details.limits` retains the API fields `max_files`, `max_total_bytes`, `max_screenshot_bytes`, and optional `max_parts_bytes`. Text-only targets receive the protected screenshot references in the comment context.
696
-
697
- `sendArtifactComments` sends selected threads to an agent. Reuse `batch_id`
698
- when retrying the same handoff. An omitted id is generated once by the SDK.
699
- The result identifies the target session. A newly reserved session remains
700
- pending until queued creation succeeds. Read the thread's `agent_state` before
701
- opening it. `agent_error` distinguishes a delivery failure from the loop guard.
702
- Editing a comment updates its mentions without requesting another turn; use
703
- Send to agent to deliver an edited request.
704
-
705
- `ArtifactCommentMention` identifies a person (`kind: 'user', user_id`), an
706
- existing session (`kind: 'session', session_id, agent_name`), or a project agent
707
- (`kind: 'agent', agent_name`). Comments return the server-resolved mentions.
708
- Agent and session mentions can include their literal `token` for display without agent-run permission.
709
-
710
- `useArtifactComments(projectId, artifactId, { status?, enabled? })` returns the
711
- thread query and `create`, `reply`, `setStatus`, `edit`, `remove`, and `send` writes.
712
- Writes are optimistic: `create`, `reply`, `setStatus`, `edit` and `remove`
713
- change every loaded thread list at once, and a failed write undoes only its own
714
- change. A thread or comment that the server has not confirmed yet carries
715
- `optimistic: true`; a new one also has an `optimistic-` id, an empty author
716
- (`user_id: ''`) and every `can_*` action false. Hosts render it as pending.
717
- Mounted Comments and Activity queries, the `useArtifacts` list and the current
718
- `useArtifact` read refetch after the last concurrent write.
719
-
720
- `listArtifacts` and `getArtifact` return `open_thread_count` while the project
721
- has `artifact_comments` on: the threads with status `open` whose first comment
722
- is not deleted. The field is absent while the flag is off, and from older APIs.
723
- Hosts show it on an Artifact card before the person opens it.
724
- `useArtifactActivity(projectId, artifactId, { limit?, cursor?, enabled? })`
725
- returns one activity page. Both hooks poll every 10 seconds while mounted and
726
- visible. A missing project or Artifact id disables reads. Comment reads never
727
- retry a 4xx and retry another 5xx once.
728
-
729
- `getArtifactCommentContext(projectId, artifactId, { version?, agent? })` returns
730
- the current action permissions, literal mention insertion tokens, eligible
731
- `send_thread_ids` (at most 100), the total eligible `send_thread_count`, and
732
- the proposed session or new-session target. When the project's agent manifest
733
- cannot be read, the context still answers: `agents` is empty, `send_target` is
734
- null and `agents_unavailable` is true. People keep commenting; an explicit
735
- `@agent.` mention is refused until the manifest reads again. Hosts show the bounded batch
736
- and total when more threads remain. A successful Send refreshes the next batch.
737
- Hosts use
738
- that response to label Send before it runs. They do not infer the target from
739
- the Artifact creator or from `created` on a previous handoff.
740
-
741
- `readArtifactCommentSnapshot(projectId, artifactId, { version? })` reads the
742
- context's immutable Files commit and its Markdown. It returns `{ version,
743
- text }`. An entry ETag is a separate value. A missing saved commit rejects
744
- with `artifact_comment_snapshot_unavailable`. The project facade exposes
745
- these readers as `.artifacts.comments.context` and `.snapshot`.
746
-
747
- `listArtifactComments` and `useArtifactComments` accept `version` for a
748
- historical Files commit. Returned action permissions are false for that view.
749
- The historical hook also rejects writes before making an HTTP request.
750
-
751
- `useArtifactCommentContext` shares the comments cache prefix, so every comment
752
- write refreshes its count, permissions, and Send target. For a complete
753
- timeline, `useInfiniteArtifactActivity(projectId, artifactId, { limit?, enabled? })`
754
- owns cursor pages and exposes ordered, deduplicated `items`, `olderVersions`,
755
- `fetchNextPage`, and the query status. Hosts render those items without keeping
756
- a second copy of activity pages. Its mounted polling and write invalidation
757
- match the one-page hook.
758
-
759
- ### Live presence
760
-
761
- An open Artifact has one WebSocket per viewer. It carries who is here, their
762
- cursor, selection, typing and open thread, and a ping when comments, activity
763
- or content change. It carries no comment text and no Artifact content: those
764
- stay on REST. It needs `artifacts` and `artifact_comments`.
765
-
766
- ```ts
767
- // React: one hook per open Artifact.
768
- const live = useArtifactLive(projectId, artifactId, {
769
- enabled: artifactCommentsOn, // never connects while false
770
- view: 'doc', // or 'page'
771
- version: artifact.entry_version,
772
- hidden: document.hidden,
773
- });
774
- live.status; // 'connecting' | 'live' | 'reconnecting' | 'closed' | 'access_lost'
775
- live.participants; // ArtifactLiveParticipant[], this tab included (id === live.you)
776
- live.setCursor({ kind: 'doc', quote: 'Churn fell', prefix: 'quarter. ', offset: 5 });
777
- live.setTyping({ thread_id: threadId }, true);
778
-
779
- // Without React (any runtime with a WebSocket, or pass `webSocket`).
780
- const connection = kortix.project(projectId).artifacts.live.connect(artifactId, {
781
- view: 'page',
782
- onEvent: (event) => { /* status, welcome, presence, changed, resync */ },
783
- });
784
- connection.setFocus(threadId);
785
- connection.close();
786
- ```
787
-
788
- `useArtifactLive` refetches on a `changed` ping: `comments` refetches the
789
- Artifact's comment reads (not screenshots; deferred while a comment write is
790
- in flight), `activity` the activity reads, and `content` the current
791
- Artifact, its versions and the `useArtifacts` list. After a reconnect it
792
- refetches all of them once (`resync`). It closes on unmount, when `enabled`
793
- turns false, or when the project or Artifact changes. A `version` change does
794
- not reconnect; a `hidden` change sends one frame.
795
-
796
- `createArtifactLiveConnection({ projectId, artifactId, view, version?, hidden?,
797
- getTicket?, webSocket?, backendUrl?, onEvent? })` is the framework-free
798
- client. Each attempt mints a one-use ticket (`createArtifactLiveTicket`, a
799
- 60 s ticket from `POST …/live/ticket`) and opens `GET …/live?ticket=` on the
800
- `ws(s)://` form of `backendUrl`. It sends `hello`, pings every 25 s, and
801
- replaces a socket that missed a pong or got no welcome in 20 s. It sends at
802
- most 8 frames a second: each field coalesces to its newest value, so a fast
803
- pointer never builds a backlog. A setter returns `false` and sends nothing for
804
- a value the protocol refuses (a doc cursor quote over 64 characters, a frame
805
- over 1024 UTF-8 bytes, an id that is not a UUID). Reconnects back off 1, 2,
806
- 4, 8, 16, 30 s (plus up to 50 % jitter, at most 30 s), with a new ticket each
807
- time. Close code `4403`, or a ticket refused with `403` or `404`, ends the
808
- connection with `access_lost`. Every server frame is validated; an invalid
809
- frame is dropped.
810
-
811
- `signalArtifactLiveAgent(projectId, artifactId, { status, thread_id?, quote? })`
812
- names an agent session's place: `reading`, `editing` or `writing` a thread or
813
- near a quote, or `idle` to leave. Only a session-bound token may call it; a
814
- person's token answers `403`. The CLI form is `kortix artifacts focus`.
815
-
816
- ### Co-editing a doc
817
-
818
- Several people and agents edit one doc Artifact (`type = 'doc'`) at the same
819
- time over Yjs. It needs `artifacts` and `artifact_comments`. Updates travel
820
- over REST, not the live socket: a tab POSTs its updates, the server stores
821
- each under a per-Artifact `seq` and pings the socket with `changed doc`, and
822
- every tab GETs the updates after its last seq. One tab holds a 15 s lease and
823
- writes the Markdown file with the save route; the file stays the truth for
824
- agents, versions and readers. The Yjs state is disposable: every seed starts a
825
- new `epoch`, and a reset or the GC of an idle doc deletes it. The next open
826
- seeds it again from the file.
827
-
828
- The SDK has no yjs dependency. `createArtifactDocSync` works on bytes; the host
829
- owns the `Y.Doc`:
830
-
831
- ```ts
832
- import * as Y from 'yjs';
833
- import { createArtifactDocSync } from '@kortix/sdk';
834
-
835
- const remote = Symbol('remote');
836
- let doc = new Y.Doc();
837
- let known: string | null = null; // the last flushed Markdown this tab knew
838
- const bind = () => doc.on('update', (update, origin) => { if (origin !== remote) sync.push(update); });
839
- // The seed is ALWAYS built from the current file, in a scratch Y.Doc.
840
- const fromFile = async () => {
841
- const file = await readFile();
842
- return { update: seedFromMarkdown(file.text), markdown: file.text, version: file.entry_version };
843
- };
844
-
845
- const sync = createArtifactDocSync({
846
- projectId, artifactId,
847
- holder: crypto.randomUUID(), // this tab's lease id
848
- apply: (update) => Y.applyUpdate(doc, update, remote), // always the current doc
849
- merge: (updates) => Y.mergeUpdates(updates),
850
- onLeader: (leader) => { /* the leader writes the file 2 s after the last edit */ },
851
- onStatus: (status) => { /* 'failed': fall back to single-writer autosave */ },
852
- onReset: async ({ reason }) => {
853
- const mine = editorMarkdown(); // the person's text
854
- const before = known; // the last flushed Markdown this tab knew
855
- doc.destroy();
856
- doc = new Y.Doc(); // never reuse the old doc
857
- bind();
858
- known = (await sync.start(fromFile)).base?.markdown ?? known;
859
- if (canWrite && before !== null && mine !== before) applyOutsideEdit(editor, before, mine);
860
- },
861
- });
862
- bind();
863
- const { created, base } = await sync.start(fromFile);
864
- known = base?.markdown ?? null; // update it after each flush and base()
865
-
866
- useArtifactLive(projectId, artifactId, { view: 'doc', onDoc: (seq) => sync.notify(seq) });
867
-
868
- // The leader serializes the doc, captures covered at that moment, saves the file, then:
869
- const seq = sync.covered;
870
- const saved = await save(serialize(doc));
871
- await sync.flushed({ version: saved.entry_version, markdown: saved.text, seq });
872
- sync.close(); // on unmount: sends what is unsent, releases the lease
665
+ import { createProjectGoal, listProjectGoals, pauseProjectGoal, ProjectGoalConflictError } from '@kortix/sdk';
666
+
667
+ // goalId is the idempotency key: retry with the same id, get the same goal.
668
+ const { goal } = await createProjectGoal(projectId, { outcome: 'EU billing live', goalId });
669
+
670
+ const [first] = await listProjectGoals(projectId);
671
+ if (first?.capabilities.pause) {
672
+ try {
673
+ const { projectGoal } = await pauseProjectGoal(projectId, first, 'Paused from my app.');
674
+ console.log(projectGoal.revision); // the new revision
675
+ } catch (error) {
676
+ // Someone changed the goal first: error.goal is the goal as it is now.
677
+ if (error instanceof ProjectGoalConflictError) console.log(error.goal.record.state);
678
+ else throw error;
679
+ }
680
+ }
873
681
  ```
874
682
 
875
- - `start(buildSeed)` reads every stored update (`after=0&base=true`) and applies
876
- it. An unseeded doc is seeded with `buildSeed()`: build that update from the
877
- current Markdown file, in a scratch `Y.Doc`, never from live state. The
878
- engine applies the seed only once the server accepts it: on `409 doc_seeded`
879
- another tab won, and its doc is pulled instead. `start` runs once, and again
880
- only after `onReset`; `buildSeed` then gets `restart: true`, and the seed
881
- still comes from the file.
882
- - **Reset.** Every push, lease call and flush names the `epoch` the tab
883
- loaded. A pull that finds the doc unseeded or under another `epoch`, or a
884
- push, lease renewal or flush answered `409 doc_not_seeded` or `409
885
- epoch_mismatch`, means the doc this tab loaded is gone. An epoch is adopted
886
- only when `start` saw none (a doc seeded before epochs); any other change is
887
- a reset. The engine stops, drops its unacknowledged pushes, rejects
888
- waiting `flushed` and `base` calls with code `doc_reset`, calls
889
- `onLeader(false)`, sets the status `reset`, and calls `onReset({ reason })`
890
- once (`'not_seeded'`, `'epoch'` or `'poisoned'`). The host keeps its editor's
891
- Markdown (`mine`) and the last flushed Markdown it knew, builds a fresh
892
- `Y.Doc`, calls `start` again, and then merges `mine` into the new doc. The
893
- person's unsynced edits survive through that text merge, not through Yjs. A
894
- read-only viewer rebuilds and merges nothing. The reset ping
895
- (`changed doc`, version `'0'`) and any ping below the highest seq here
896
- (seqs restart at 1 after a re-seed), except this tab's own echoes, pull at
897
- once, so a reset is seen within one round trip.
898
- - **Poison.** When `apply` throws for a stored update, the engine stops
899
- applying, sets `retrying`, and resets the doc on the server
900
- (`resetArtifactDoc`). When another tab holds the lease (`409 not_leader`),
901
- it checks every 3 s until that tab has reset it. Then it reports
902
- `onReset({ reason: 'poisoned' })`.
903
- - `push(update)` batches for 50 ms, merges the batch with `merge`, and keeps
904
- one push in flight, in order. A failed push retries after 1, 2, 4, 8, 16,
905
- 30 s (plus up to 50 % jitter, at most 30 s) with the later updates merged
906
- behind it; no update is dropped while the doc lives. A merged batch over
907
- 512 KiB is split. A refusal (`400`, `403`, `404`, one update over 512 KiB,
908
- `413 doc_too_large` when the doc's stored updates pass their limit) calls
909
- `onError` and sets `failed`, a final status: the host falls back to autosave.
910
- - `notify(seq)` pulls when that seq is not here yet. Pulls are serial. Without
911
- a notify for 3 s the engine polls every 3 s.
912
- - `covered` is the highest seq such that every update up to it is in the local
913
- doc. `flushed({ version, markdown, seq? })` waits for the updates pushed
914
- before it, then records `seq`: the `covered` the host captured when it
915
- serialized that Markdown, else `covered` now. `409 not_leader` rejects and
916
- calls `onLeader(false)`. `base()` returns the last flushed Markdown.
917
- - The lease renews every 5 s. A leader whose renewals fail steps down 13 s
918
- after its last renewal was sent. A viewer without write access gets `403`
919
- on the lease and never leads; it still pulls.
920
-
921
- `getArtifactDoc`, `seedArtifactDoc`, `pushArtifactDocUpdate`,
922
- `leaseArtifactDoc`, `markArtifactDocFlushed` and `resetArtifactDoc` are the
923
- REST calls (also `kortix.project(id).artifacts.doc.{get, seed, push, lease,
924
- flushed, reset}`). They take and return `Uint8Array`; base64 is the wire form
925
- only. `getArtifactDoc` and `seedArtifactDoc` report the `epoch`. They never
926
- call the global `onError`. The live connection never emits a `changed` event
927
- for `doc`, and `ArtifactLiveChange` stays `'comments' | 'activity' |
928
- 'content'`: `createArtifactLiveConnection({ onDoc })` and
929
- `useArtifactLive(…, { onDoc })` receive the seq, and the hook refetches nothing
930
- for it.
683
+ - Show a control only when `goal.capabilities` allows it. A read-only viewer
684
+ gets every capability `false`.
685
+ - `criteria[].verified` is set only by a passed independent verification;
686
+ `criteria[].reported_met` is the agent's claim.
687
+ - `blockedReason` says why a goal cannot go on (`credits`, `wake_cap`,
688
+ `session_cap`, `owner_lost`, `storage`, `flag_off`, `setup`).
689
+ - `replyToProjectGoal(projectId, goal, text, { answerId })` answers as the
690
+ caller; one answer per `answerId`.
691
+ - React: `useProjectGoals`, `useProjectGoal`, `useProjectGoalEvents`,
692
+ `useProjectGoalFiles`, `useSessionGoal`, and `useProjectGoalControl` (one
693
+ request per double submit, the cache updated on success and on a `409`).
694
+ - Deprecated: `ProjectGoal.heartbeat` is always `null`;
695
+ `CreateProjectGoalInput.sessionId` is sent as the goal id.
931
696
 
932
697
  ## The facade surface
933
698
 
@@ -938,7 +703,7 @@ exhaustive — see `API-MAP.md` for the full per-domain surface:
938
703
  |---|---|
939
704
  | `kortix.projects` | list · get · detail · create · provision · update · archive · llmCatalog · modelPicker · sandboxTemplates · sessions (+ more: `listForAccount`, `sandboxHealth`, `createSession`) |
940
705
  | `kortix.accounts` | list · get · create · members · invites · `secretResources.{list,create,rotate,retry,remove,grant,revoke,setAccess}` · `subscriptions.{list,usage}` (project-authorized usage for named and legacy ChatGPT logins; reads credentials in place) · `tokens.{list,create,revoke}` (account-scoped CLI PATs, `kortix_pat_…`) · `audit.{log,export,activity,webhooks.*}` (filterable project/session reconstruction log; `activity` = who was active and how often, per UTC day) · `branding.{get,update,uploadAsset,removeAsset,reset}` (Enterprise organization branding: logo / icon / favicon, light + dark, product name) (+ more: `updateName`, `leave`, `invite`, `removeMember`, `updateMemberRole`) |
941
- | `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` |
706
+ | `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,redeem,autoTopupSettings,configureAutoTopup}` (`redeem({ code, accountId })` adds a credit code's amount to the non-expiring credits, once per account). `checkout.{createSession,confirmSession}`, `subscription.{scheduleDowngrade,cancelScheduledChange,prorationPreview}`, `createPerSeatCheckout` and `claimPerSeatBilling` are deprecated: they reject with `ENDPOINT_RETIRED` |
942
707
  | `kortix.marketplace` | public marketplace catalog browse + sources (not project-scoped): `items` · `item` · `itemFile` · `marketplaces` · `featured` · `sources.{list,add,remove}`. A project installs an item through `createMarketplaceInstallSession(projectId, itemId)`, which starts a session whose agent merges the item into the project and opens a change request; it resolves `{ session_id }` |
943
708
  | `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) |
944
709
  | `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) |
@@ -1465,7 +1230,7 @@ learn it once.
1465
1230
  | `@kortix/sdk/react` | hooks and providers: `useSession`, every `useRuntime*` hook, `useChatTurns`/`renderParts`, the domain hooks | `react` is an **optional peer dependency**. Putting these at the root would force React on a CLI, a worker, or a React Native host |
1466
1231
  | `@kortix/sdk/server` | `runWithKortix`, `createScopedKortix`, `getScopedConfig` — per-request config isolation in a Node/Bun backend | imports `node:async_hooks`. Never let it into a browser bundle |
1467
1232
  | `@kortix/sdk/genui/fence`, `@kortix/sdk/genui`, `@kortix/sdk/genui/react` | Generative UI: split `openui` blocks out of text, parse them, render them (see **Generative UI** below) | `genui` and `genui/react` need the optional peers `zod` and `@openuidev/lang-core`; `genui/fence` loads neither |
1468
- | `@kortix/sdk/wire-message-id` | `mintWireMessageId` and `WIRE_MESSAGE_ID`: mint and validate a Kortix message id. Its clock helpers are `@deprecated` | not a dependency split: the root exports the same names. A server that mints ids loads this one import-free module instead of the whole barrel |
1233
+ | `@kortix/sdk/wire-message-id` | `mintWireMessageId` and `WIRE_MESSAGE_ID`: mint and validate a Kortix message id. Its clock helpers (`wireIdClockDelta`, `mintWireMessageIdAbove`, …) place ids on the 48-bit clock | not a dependency split: the root exports the same names. A server that mints ids loads this one import-free module instead of the whole barrel |
1469
1234
  | `@kortix/sdk/workspace-search` | `createWorkspaceSearchClient` and its ranking helpers | isolated from the root on purpose |
1470
1235
  | `@kortix/sdk/capture-rules` | the Kortix Capture constants (`CAPTURE_LAYERS`, `CAPTURE_DEVICE_DEFAULTS`, …) | the root exports the same names; this module loads alone |
1471
1236
  | `@kortix/sdk/internal/*` | nothing, in host code | apps/web's zustand stores. Browser-only, **outside semver**, and not on the `window.Kortix` global. Implementation detail that is regrettably visible |
@@ -17,17 +17,17 @@
17
17
  * 1. The server writes the mirror BECAUSE a turn ended (the `turn-stream`
18
18
  * `end`/`turn_end` relay), so freshness is a property of the write. There
19
19
  * is no client-side freshness test left to get wrong.
20
- * 2. The payload carries OpenCode's `info` envelope VERBATIM, so
20
+ * 2. The payload carries the runtime's `info` envelope VERBATIM, so
21
21
  * `time.completed` and `error` travel with the message and every existing
22
22
  * turn predicate reads the truth.
23
- * 3. The envelope names the OpenCode ROOT it was captured from, so a mirror
23
+ * 3. The envelope names the runtime ROOT it was captured from, so a mirror
24
24
  * belonging to a re-pinned box is REFUSED rather than painted as ghosts.
25
25
  * The disk cache was keyed by a scope string and could not make this check.
26
26
  *
27
27
  * Painted messages are hydrated with `source: 'cache'`, so the store's existing
28
28
  * settle rule owns reconciliation: the first runtime read confirms every id it
29
29
  * contains and drops any it covers but lacks. That rule is unchanged — the
30
- * mirror simply gives it real OpenCode ids to settle, which is what the old
30
+ * mirror simply gives it real runtime ids to settle, which is what the old
31
31
  * cache could not guarantee (it also held optimistic stubs that never existed
32
32
  * on the runtime).
33
33
  */
@@ -35,7 +35,7 @@ import type { Message, Part } from "../../core/runtime/runtime-types.js";
35
35
  import type { SessionTranscriptSyncEnvelope } from "../../core/rest/projects-client/sessions.js";
36
36
  export interface MirrorHydrateDecision {
37
37
  envelope: SessionTranscriptSyncEnvelope | null;
38
- /** The OpenCode root this hook is about to sync. */
38
+ /** The runtime root this hook is about to sync. */
39
39
  runtimeSessionId: string;
40
40
  /** The store already holds messages for that root. */
41
41
  hasMessages: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"server-transcript-mirror.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAE9F,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,CAqBzC;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"}
1
+ {"version":3,"file":"server-transcript-mirror.d.ts","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,0CAA0C,CAAC;AAE9F,MAAM,WAAW,qBAAqB;IACrC,QAAQ,EAAE,6BAA6B,GAAG,IAAI,CAAC;IAC/C,mDAAmD;IACnD,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,CAqBzC;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"}
@@ -17,17 +17,17 @@
17
17
  * 1. The server writes the mirror BECAUSE a turn ended (the `turn-stream`
18
18
  * `end`/`turn_end` relay), so freshness is a property of the write. There
19
19
  * is no client-side freshness test left to get wrong.
20
- * 2. The payload carries OpenCode's `info` envelope VERBATIM, so
20
+ * 2. The payload carries the runtime's `info` envelope VERBATIM, so
21
21
  * `time.completed` and `error` travel with the message and every existing
22
22
  * turn predicate reads the truth.
23
- * 3. The envelope names the OpenCode ROOT it was captured from, so a mirror
23
+ * 3. The envelope names the runtime ROOT it was captured from, so a mirror
24
24
  * belonging to a re-pinned box is REFUSED rather than painted as ghosts.
25
25
  * The disk cache was keyed by a scope string and could not make this check.
26
26
  *
27
27
  * Painted messages are hydrated with `source: 'cache'`, so the store's existing
28
28
  * settle rule owns reconciliation: the first runtime read confirms every id it
29
29
  * contains and drops any it covers but lacks. That rule is unchanged — the
30
- * mirror simply gives it real OpenCode ids to settle, which is what the old
30
+ * mirror simply gives it real runtime ids to settle, which is what the old
31
31
  * cache could not guarantee (it also held optimistic stubs that never existed
32
32
  * on the runtime).
33
33
  */
@@ -54,7 +54,7 @@ export function shouldHydrateFromMirror(input) {
54
54
  return false;
55
55
  if (envelope.messages.length === 0)
56
56
  return false;
57
- // THE IDENTITY GUARD: ids from another OpenCode root can never be settled by
57
+ // THE IDENTITY GUARD: ids from another runtime root can never be settled by
58
58
  // this root's runtime read.
59
59
  if (envelope.runtime_session_id !== runtimeSessionId)
60
60
  return false;
@@ -1 +1 @@
1
- {"version":3,"file":"server-transcript-mirror.js","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAaH;;;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,OAAO,KAAK,CAAC;IACjD,6EAA6E;IAC7E,4BAA4B;IAC5B,IAAI,QAAQ,CAAC,kBAAkB,KAAK,gBAAgB;QAAE,OAAO,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AE,IAAI,EAAE,IAA0B,EAAE,KAAK,EAAE,KAA0B,EAAE,CAAC,CAAC;IACnF,CAAC;IACD,OAAO,GAAG,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACtC,KAAyB;IAEzB,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1D,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACzC,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACrE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACjC,CAAC"}
1
+ {"version":3,"file":"server-transcript-mirror.js","sourceRoot":"","sources":["../../../src/browser/session-sync/server-transcript-mirror.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAaH;;;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;QA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AM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;YAC7B,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,CAAC;QACJ,GAAG,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAA0B,EAAE,KAAK,EAAE,KAA0B,EAAE,CAAC,CAAC;IACnF,CAAC;IACD,OAAO,GAAG,CAAC;AACZ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CACtC,KAAyB;IAEzB,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IACxB,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACjC,IAAI,KAAK,IAAI,CAAC,IAAI,KAAK,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1D,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;IACxC,MAAM,SAAS,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IACzC,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IACrE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC;AACjC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Tracks which sandbox currently owns each bare OpenCode session id in the
3
- * compatibility sync store. OpenCode ids are local to a sandbox. A restored
2
+ * Tracks which sandbox currently owns each bare runtime session id in the
3
+ * compatibility sync store. Runtime session ids are local to a sandbox. A restored
4
4
  * snapshot can therefore expose the same id from two different sandboxes.
5
5
  *
6
6
  * Two kinds of owner scope exist, and the difference matters:
@@ -9,7 +9,7 @@
9
9
  * which Kortix session it is reading, so it survives a sandbox replacement
10
10
  * for that session (the transcript is not wiped when the box is re-created).
11
11
  * - `runtime:<sandboxId>` — FALLBACK, for a standalone consumer that was given
12
- * nothing but a bare OpenCode id.
12
+ * nothing but a bare runtime session id.
13
13
  *
14
14
  * The two kinds must never be read as a disagreement. They describe the SAME
15
15
  * session from two consumers that simply know different amounts about it, and
@@ -19,12 +19,12 @@
19
19
  */
20
20
  export declare function resolveSessionCacheOwnerScope(runtimeScope: string, kortixSessionScope?: string): string | null;
21
21
  /**
22
- * Do two owner scopes name genuinely DIFFERENT owners of the same OpenCode id
22
+ * Do two owner scopes name genuinely DIFFERENT owners of the same runtime session id
23
23
  * — i.e. is the cached data for this id foreign to the asking consumer?
24
24
  *
25
25
  * Only two scopes of the same KIND can disagree. That is the real case this
26
26
  * module exists to catch: another sandbox (or another Kortix session) reusing
27
- * an OpenCode id. A fallback scope never contradicts an authoritative one.
27
+ * a runtime session id. A fallback scope never contradicts an authoritative one.
28
28
  */
29
29
  export declare function sessionCacheOwnerScopesConflict(a: string | null, b: string | null): boolean;
30
30
  export declare function getSessionCacheOwnership(sessionId: string): string | null;
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Tracks which sandbox currently owns each bare OpenCode session id in the
3
- * compatibility sync store. OpenCode ids are local to a sandbox. A restored
2
+ * Tracks which sandbox currently owns each bare runtime session id in the
3
+ * compatibility sync store. Runtime session ids are local to a sandbox. A restored
4
4
  * snapshot can therefore expose the same id from two different sandboxes.
5
5
  *
6
6
  * Two kinds of owner scope exist, and the difference matters:
@@ -9,7 +9,7 @@
9
9
  * which Kortix session it is reading, so it survives a sandbox replacement
10
10
  * for that session (the transcript is not wiped when the box is re-created).
11
11
  * - `runtime:<sandboxId>` — FALLBACK, for a standalone consumer that was given
12
- * nothing but a bare OpenCode id.
12
+ * nothing but a bare runtime session id.
13
13
  *
14
14
  * The two kinds must never be read as a disagreement. They describe the SAME
15
15
  * session from two consumers that simply know different amounts about it, and
@@ -30,12 +30,12 @@ export function resolveSessionCacheOwnerScope(runtimeScope, kortixSessionScope)
30
30
  return `runtime:${runtimeScope}`;
31
31
  }
32
32
  /**
33
- * Do two owner scopes name genuinely DIFFERENT owners of the same OpenCode id
33
+ * Do two owner scopes name genuinely DIFFERENT owners of the same runtime session id
34
34
  * — i.e. is the cached data for this id foreign to the asking consumer?
35
35
  *
36
36
  * Only two scopes of the same KIND can disagree. That is the real case this
37
37
  * module exists to catch: another sandbox (or another Kortix session) reusing
38
- * an OpenCode id. A fallback scope never contradicts an authoritative one.
38
+ * a runtime session id. A fallback scope never contradicts an authoritative one.
39
39
  */
40
40
  export function sessionCacheOwnerScopesConflict(a, b) {
41
41
  if (!a || !b || a === b)
@@ -6,7 +6,7 @@ interface MessagesResponse {
6
6
  parts: Part[];
7
7
  }>;
8
8
  /**
9
- * The generated OpenCode client RESOLVES with `{ error }` on a non-2xx
9
+ * The runtime REST client RESOLVES with `{ error }` on a non-2xx
10
10
  * response — it never throws unless the caller opted into `throwOnError`, and
11
11
  * we do not. So the ONLY place a 503 or a runtime failure is visible is here.
12
12
  * Reading `data ?? []` and ignoring this is exactly how a cold-boot 503
@@ -85,7 +85,7 @@ function messageKey(info) {
85
85
  /**
86
86
  * The most specific message a failed `client.session.messages` response
87
87
  * carries. `error` is genuinely `unknown` (its shape varies per endpoint), so
88
- * this duck-types the same way `unwrap` (react/use-opencode-sessions/shared.ts)
88
+ * this duck-types the same way `unwrap` (react/use-runtime-sessions/shared.ts)
89
89
  * does, and falls back to the status code.
90
90
  */
91
91
  function messagePageErrorText(result, status) {
@@ -1,4 +1,4 @@
1
- interface OpenCodeCompactionState {
1
+ interface RuntimeCompactionState {
2
2
  /**
3
3
  * ms epoch at which THIS tab issued `/compact` for a session.
4
4
  *
@@ -11,6 +11,6 @@ interface OpenCodeCompactionState {
11
11
  startCompaction: (sessionId: string) => void;
12
12
  stopCompaction: (sessionId: string) => void;
13
13
  }
14
- export declare const useOpenCodeCompactionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<OpenCodeCompactionState>>;
14
+ export declare const useRuntimeCompactionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RuntimeCompactionState>>;
15
15
  export {};
16
- //# sourceMappingURL=opencode-compaction-store.d.ts.map
16
+ //# sourceMappingURL=runtime-compaction-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-compaction-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/runtime-compaction-store.ts"],"names":[],"mappings":"AAIA,UAAU,sBAAsB;IAC9B;;;;;;;OAOG;IACH,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED,eAAO,MAAM,yBAAyB,qFAqBnC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
  import { create } from 'zustand';
3
- export const useOpenCodeCompactionStore = create()((set) => ({
3
+ export const useRuntimeCompactionStore = create()((set) => ({
4
4
  compactingBySession: {},
5
5
  startCompaction: (sessionId) => set((state) => {
6
6
  // Keep the FIRST stamp: re-stamping would extend the cap every time a
@@ -22,4 +22,4 @@ export const useOpenCodeCompactionStore = create()((set) => ({
22
22
  return { compactingBySession: rest };
23
23
  }),
24
24
  }));
25
- //# sourceMappingURL=opencode-compaction-store.js.map
25
+ //# sourceMappingURL=runtime-compaction-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-compaction-store.js","sourceRoot":"","sources":["../../../src/browser/stores/runtime-compaction-store.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAgBjC,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,EAA0B,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IAClF,mBAAmB,EAAE,EAAE;IACvB,eAAe,EAAE,CAAC,SAAS,EAAE,EAAE,CAC7B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACZ,sEAAsE;QACtE,wEAAwE;QACxE,yEAAyE;QACzE,IAAI,SAAS,IAAI,KAAK,CAAC,mBAAmB;YAAE,OAAO,KAAK,CAAC;QACzD,OAAO;YACL,mBAAmB,EAAE;gBACnB,GAAG,KAAK,CAAC,mBAAmB;gBAC5B,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,GAAG,EAAE;aACxB;SACF,CAAC;IACJ,CAAC,CAAC;IACJ,cAAc,EAAE,CAAC,SAAS,EAAE,EAAE,CAC5B,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QACZ,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,mBAAmB,CAAC;YAAE,OAAO,KAAK,CAAC;QAC5D,MAAM,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC,mBAAmB,CAAC;QAC9D,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;IACvC,CAAC,CAAC;CACL,CAAC,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { PermissionRequest, QuestionRequest } from '../../core/runtime/runtime-types.js';
2
- interface OpenCodePendingState {
2
+ interface RuntimePendingState {
3
3
  permissions: Record<string, PermissionRequest>;
4
4
  questions: Record<string, QuestionRequest>;
5
5
  resolvedQuestionIds: string[];
@@ -14,6 +14,6 @@ interface OpenCodePendingState {
14
14
  getSessionPendingCount: (sessionId: string) => number;
15
15
  getTotalPendingCount: () => number;
16
16
  }
17
- export declare const useRuntimePendingStore: import("zustand").UseBoundStore<import("zustand").StoreApi<OpenCodePendingState>>;
17
+ export declare const useRuntimePendingStore: import("zustand").UseBoundStore<import("zustand").StoreApi<RuntimePendingState>>;
18
18
  export {};
19
- //# sourceMappingURL=opencode-pending-store.d.ts.map
19
+ //# sourceMappingURL=runtime-pending-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-pending-store.d.ts","sourceRoot":"","sources":["../../../src/browser/stores/runtime-pending-store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAe3F,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC/C,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAK3C,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAMhC,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAE7C,aAAa,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,WAAW,EAAE,CAAC,GAAG,EAAE,eAAe,KAAK,IAAI,CAAC;IAC5C,cAAc,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,iBAAiB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACjE,KAAK,EAAE,MAAM,IAAI,CAAC;IAGlB,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;IACtD,oBAAoB,EAAE,MAAM,MAAM,CAAC;CACpC;AAED,eAAO,MAAM,sBAAsB,kFA4EhC,CAAC"}
@@ -73,4 +73,4 @@ export const useRuntimePendingStore = create()((set, get) => ({
73
73
  return permCount + qCount;
74
74
  },
75
75
  }));
76
- //# sourceMappingURL=opencode-pending-store.js.map
76
+ //# sourceMappingURL=runtime-pending-store.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file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