@kortix/sdk 0.13.46 → 0.13.47

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 (266) hide show
  1. package/README.md +18 -13
  2. package/dist/browser/session-sync/server-transcript-mirror.d.ts +1 -1
  3. package/dist/browser/session-sync/server-transcript-mirror.d.ts.map +1 -1
  4. package/dist/browser/session-sync/session-sync-registry.d.ts +1 -1
  5. package/dist/browser/session-sync/session-sync-registry.d.ts.map +1 -1
  6. package/dist/browser/stores/opencode-pending-store.d.ts +1 -1
  7. package/dist/browser/stores/opencode-pending-store.d.ts.map +1 -1
  8. package/dist/browser/stores/sync-store/reconcile-parts.d.ts +1 -1
  9. package/dist/browser/stores/sync-store/reconcile-parts.d.ts.map +1 -1
  10. package/dist/browser/stores/sync-store/types.d.ts +1 -1
  11. package/dist/browser/stores/sync-store/types.d.ts.map +1 -1
  12. package/dist/browser/stores/sync-store.d.ts +1 -1
  13. package/dist/browser/stores/sync-store.d.ts.map +1 -1
  14. package/dist/core/agents/composer-agents.d.ts +1 -1
  15. package/dist/core/agents/composer-agents.d.ts.map +1 -1
  16. package/dist/core/client/kortix.d.ts +117 -59
  17. package/dist/core/client/kortix.d.ts.map +1 -1
  18. package/dist/core/client/kortix.js +59 -14
  19. package/dist/core/client/kortix.js.map +1 -1
  20. package/dist/core/models/composer-model.d.ts +1 -1
  21. package/dist/core/models/composer-model.d.ts.map +1 -1
  22. package/dist/core/models/model-flatten.d.ts +8 -1
  23. package/dist/core/models/model-flatten.d.ts.map +1 -1
  24. package/dist/core/models/model-flatten.js +2 -0
  25. package/dist/core/models/model-flatten.js.map +1 -1
  26. package/dist/core/models/model-key.d.ts +11 -0
  27. package/dist/core/models/model-key.d.ts.map +1 -1
  28. package/dist/core/models/model-key.js +20 -0
  29. package/dist/core/models/model-key.js.map +1 -1
  30. package/dist/core/models/provider-selection.d.ts +1 -1
  31. package/dist/core/models/provider-selection.d.ts.map +1 -1
  32. package/dist/core/rest/platform-client/host-boundary.d.ts +14 -19
  33. package/dist/core/rest/platform-client/host-boundary.d.ts.map +1 -1
  34. package/dist/core/rest/platform-client/host-boundary.js +7 -38
  35. package/dist/core/rest/platform-client/host-boundary.js.map +1 -1
  36. package/dist/core/rest/projects-client/agent-config.d.ts +8 -0
  37. package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
  38. package/dist/core/rest/projects-client/agent-config.js.map +1 -1
  39. package/dist/core/rest/projects-client/audit-filter.d.ts +6 -0
  40. package/dist/core/rest/projects-client/audit-filter.d.ts.map +1 -0
  41. package/dist/core/rest/projects-client/audit-filter.js +11 -0
  42. package/dist/core/rest/projects-client/audit-filter.js.map +1 -0
  43. package/dist/core/rest/projects-client/audit.d.ts +2 -18
  44. package/dist/core/rest/projects-client/audit.d.ts.map +1 -1
  45. package/dist/core/rest/projects-client/audit.js +30 -108
  46. package/dist/core/rest/projects-client/audit.js.map +1 -1
  47. package/dist/core/rest/projects-client/connectors.d.ts +4 -3
  48. package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
  49. package/dist/core/rest/projects-client/connectors.js.map +1 -1
  50. package/dist/core/rest/projects-client/iam-roles.d.ts +5 -0
  51. package/dist/core/rest/projects-client/iam-roles.d.ts.map +1 -1
  52. package/dist/core/rest/projects-client/iam-roles.js +9 -0
  53. package/dist/core/rest/projects-client/iam-roles.js.map +1 -1
  54. package/dist/core/rest/projects-client/projects.d.ts +8 -5
  55. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  56. package/dist/core/rest/projects-client/projects.js +0 -1
  57. package/dist/core/rest/projects-client/projects.js.map +1 -1
  58. package/dist/core/rest/projects-client/secrets.d.ts +17 -8
  59. package/dist/core/rest/projects-client/secrets.d.ts.map +1 -1
  60. package/dist/core/rest/projects-client/secrets.js.map +1 -1
  61. package/dist/core/rest/projects-client/sessions.d.ts +4 -1
  62. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  63. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  64. package/dist/core/rest/projects-client/triggers.d.ts +12 -0
  65. package/dist/core/rest/projects-client/triggers.d.ts.map +1 -1
  66. package/dist/core/rest/projects-client/triggers.js.map +1 -1
  67. package/dist/core/runtime/client.d.ts +12 -11
  68. package/dist/core/runtime/client.d.ts.map +1 -1
  69. package/dist/core/runtime/client.js +9 -4
  70. package/dist/core/runtime/client.js.map +1 -1
  71. package/dist/core/runtime/runtime-rest-client.d.ts +436 -0
  72. package/dist/core/runtime/runtime-rest-client.d.ts.map +1 -0
  73. package/dist/core/runtime/runtime-rest-client.js +291 -0
  74. package/dist/core/runtime/runtime-rest-client.js.map +1 -0
  75. package/dist/core/runtime/runtime-types.d.ts +1174 -0
  76. package/dist/core/runtime/runtime-types.d.ts.map +1 -0
  77. package/dist/core/runtime/runtime-types.js +2 -0
  78. package/dist/core/runtime/runtime-types.js.map +1 -0
  79. package/dist/core/runtime/transcript-types.d.ts +564 -0
  80. package/dist/core/runtime/transcript-types.d.ts.map +1 -0
  81. package/dist/core/runtime/transcript-types.js +57 -0
  82. package/dist/core/runtime/transcript-types.js.map +1 -0
  83. package/dist/core/session/health.d.ts +2 -1
  84. package/dist/core/session/health.d.ts.map +1 -1
  85. package/dist/core/session/health.js.map +1 -1
  86. package/dist/core/session/index.d.ts +2 -0
  87. package/dist/core/session/index.d.ts.map +1 -1
  88. package/dist/core/session/index.js +1 -0
  89. package/dist/core/session/index.js.map +1 -1
  90. package/dist/core/session/runtime-sessions.d.ts +26 -0
  91. package/dist/core/session/runtime-sessions.d.ts.map +1 -0
  92. package/dist/core/session/runtime-sessions.js +39 -0
  93. package/dist/core/session/runtime-sessions.js.map +1 -0
  94. package/dist/core/session/runtime-verbs.d.ts +55 -0
  95. package/dist/core/session/runtime-verbs.d.ts.map +1 -0
  96. package/dist/core/session/runtime-verbs.js +124 -0
  97. package/dist/core/session/runtime-verbs.js.map +1 -0
  98. package/dist/core/session/wire-message-id.d.ts +55 -12
  99. package/dist/core/session/wire-message-id.d.ts.map +1 -1
  100. package/dist/core/session/wire-message-id.js +62 -12
  101. package/dist/core/session/wire-message-id.js.map +1 -1
  102. package/dist/core/session-sync/session-sync-controller.d.ts +1 -1
  103. package/dist/core/session-sync/session-sync-controller.d.ts.map +1 -1
  104. package/dist/core/stream/event-stream.d.ts +10 -5
  105. package/dist/core/stream/event-stream.d.ts.map +1 -1
  106. package/dist/core/stream/event-stream.js +5 -1
  107. package/dist/core/stream/event-stream.js.map +1 -1
  108. package/dist/core/turns/classify.d.ts +31 -2
  109. package/dist/core/turns/classify.d.ts.map +1 -1
  110. package/dist/core/turns/classify.js +94 -0
  111. package/dist/core/turns/classify.js.map +1 -1
  112. package/dist/core/turns/index.d.ts +1 -0
  113. package/dist/core/turns/index.d.ts.map +1 -1
  114. package/dist/core/turns/index.js +1 -0
  115. package/dist/core/turns/index.js.map +1 -1
  116. package/dist/core/turns/parts.d.ts +2 -1
  117. package/dist/core/turns/parts.d.ts.map +1 -1
  118. package/dist/core/turns/parts.js +53 -49
  119. package/dist/core/turns/parts.js.map +1 -1
  120. package/dist/core/turns/segments/narration.d.ts.map +1 -1
  121. package/dist/core/turns/segments/narration.js +40 -130
  122. package/dist/core/turns/segments/narration.js.map +1 -1
  123. package/dist/core/turns/tool-kind.d.ts +15 -0
  124. package/dist/core/turns/tool-kind.d.ts.map +1 -0
  125. package/dist/core/turns/tool-kind.js +115 -0
  126. package/dist/core/turns/tool-kind.js.map +1 -0
  127. package/dist/core/turns/tool-registry.d.ts +6 -7
  128. package/dist/core/turns/tool-registry.d.ts.map +1 -1
  129. package/dist/core/turns/tool-registry.js +78 -73
  130. package/dist/core/turns/tool-registry.js.map +1 -1
  131. package/dist/core/turns/tools/tool-meta.d.ts +1 -0
  132. package/dist/core/turns/tools/tool-meta.d.ts.map +1 -1
  133. package/dist/core/turns/tools/tool-meta.js +7 -6
  134. package/dist/core/turns/tools/tool-meta.js.map +1 -1
  135. package/dist/core/turns/view-model.d.ts.map +1 -1
  136. package/dist/core/turns/view-model.js +19 -12
  137. package/dist/core/turns/view-model.js.map +1 -1
  138. package/dist/index.d.ts +2 -2
  139. package/dist/index.d.ts.map +1 -1
  140. package/dist/index.js +1 -0
  141. package/dist/index.js.map +1 -1
  142. package/dist/kortix.esm.min.js +42 -41
  143. package/dist/kortix.global.js +42 -41
  144. package/dist/node/app-viewer.js +1 -1
  145. package/dist/node/app-viewer.js.map +1 -1
  146. package/dist/node/auth.js +1 -1
  147. package/dist/node/auth.js.map +1 -1
  148. package/dist/node/scoped-client.d.ts +20 -0
  149. package/dist/node/scoped-client.d.ts.map +1 -0
  150. package/dist/node/scoped-client.js +170 -0
  151. package/dist/node/scoped-client.js.map +1 -0
  152. package/dist/node/server.d.ts +2 -21
  153. package/dist/node/server.d.ts.map +1 -1
  154. package/dist/node/server.js +2 -170
  155. package/dist/node/server.js.map +1 -1
  156. package/dist/react/index.d.ts +1 -0
  157. package/dist/react/index.d.ts.map +1 -1
  158. package/dist/react/index.js +1 -0
  159. package/dist/react/index.js.map +1 -1
  160. package/dist/react/sign-in-with-kortix.d.ts +8 -8
  161. package/dist/react/use-feature-flag.d.ts +2 -2
  162. package/dist/react/use-feature-flag.d.ts.map +1 -1
  163. package/dist/react/use-feature-flag.js +3 -2
  164. package/dist/react/use-feature-flag.js.map +1 -1
  165. package/dist/react/use-kortix-master.d.ts +1 -1
  166. package/dist/react/use-opencode-config.d.ts +7 -1
  167. package/dist/react/use-opencode-config.d.ts.map +1 -1
  168. package/dist/react/use-opencode-config.js +9 -1
  169. package/dist/react/use-opencode-config.js.map +1 -1
  170. package/dist/react/use-opencode-events/diagnostics.d.ts +1 -1
  171. package/dist/react/use-opencode-events/diagnostics.d.ts.map +1 -1
  172. package/dist/react/use-opencode-events/handle-event.d.ts +4 -6
  173. package/dist/react/use-opencode-events/handle-event.d.ts.map +1 -1
  174. package/dist/react/use-opencode-events/handle-event.js +43 -594
  175. package/dist/react/use-opencode-events/handle-event.js.map +1 -1
  176. package/dist/react/use-opencode-events/handle-interaction-event.d.ts +4 -0
  177. package/dist/react/use-opencode-events/handle-interaction-event.d.ts.map +1 -0
  178. package/dist/react/use-opencode-events/handle-interaction-event.js +42 -0
  179. package/dist/react/use-opencode-events/handle-interaction-event.js.map +1 -0
  180. package/dist/react/use-opencode-events/handle-message-event.d.ts +4 -0
  181. package/dist/react/use-opencode-events/handle-message-event.d.ts.map +1 -0
  182. package/dist/react/use-opencode-events/handle-message-event.js +33 -0
  183. package/dist/react/use-opencode-events/handle-message-event.js.map +1 -0
  184. package/dist/react/use-opencode-events/handle-session-event.d.ts +5 -0
  185. package/dist/react/use-opencode-events/handle-session-event.d.ts.map +1 -0
  186. package/dist/react/use-opencode-events/handle-session-event.js +243 -0
  187. package/dist/react/use-opencode-events/handle-session-event.js.map +1 -0
  188. package/dist/react/use-opencode-events/handle-workspace-event.d.ts +4 -0
  189. package/dist/react/use-opencode-events/handle-workspace-event.d.ts.map +1 -0
  190. package/dist/react/use-opencode-events/handle-workspace-event.js +113 -0
  191. package/dist/react/use-opencode-events/handle-workspace-event.js.map +1 -0
  192. package/dist/react/use-opencode-events/handler-context.d.ts +29 -0
  193. package/dist/react/use-opencode-events/handler-context.d.ts.map +1 -0
  194. package/dist/react/use-opencode-events/handler-context.js +2 -0
  195. package/dist/react/use-opencode-events/handler-context.js.map +1 -0
  196. package/dist/react/use-opencode-events/hydrate-core.d.ts +23 -0
  197. package/dist/react/use-opencode-events/hydrate-core.d.ts.map +1 -0
  198. package/dist/react/use-opencode-events/hydrate-core.js +126 -0
  199. package/dist/react/use-opencode-events/hydrate-core.js.map +1 -0
  200. package/dist/react/use-opencode-events/index.d.ts.map +1 -1
  201. package/dist/react/use-opencode-events/index.js +25 -143
  202. package/dist/react/use-opencode-events/index.js.map +1 -1
  203. package/dist/react/use-opencode-events/use-event-stream-refs.d.ts +1 -1
  204. package/dist/react/use-opencode-events/use-event-stream-refs.d.ts.map +1 -1
  205. package/dist/react/use-opencode-local.d.ts +1 -1
  206. package/dist/react/use-opencode-local.d.ts.map +1 -1
  207. package/dist/react/use-opencode-sessions/agents.d.ts +1 -1
  208. package/dist/react/use-opencode-sessions/agents.d.ts.map +1 -1
  209. package/dist/react/use-opencode-sessions/commands.d.ts +4 -1
  210. package/dist/react/use-opencode-sessions/commands.d.ts.map +1 -1
  211. package/dist/react/use-opencode-sessions/commands.js +6 -1
  212. package/dist/react/use-opencode-sessions/commands.js.map +1 -1
  213. package/dist/react/use-opencode-sessions/keys.d.ts +1 -1
  214. package/dist/react/use-opencode-sessions/keys.d.ts.map +1 -1
  215. package/dist/react/use-opencode-sessions/mcp.d.ts +1 -1
  216. package/dist/react/use-opencode-sessions/mcp.d.ts.map +1 -1
  217. package/dist/react/use-opencode-sessions/messages.d.ts.map +1 -1
  218. package/dist/react/use-opencode-sessions/messages.js +8 -2
  219. package/dist/react/use-opencode-sessions/messages.js.map +1 -1
  220. package/dist/react/use-opencode-sessions/parts.d.ts +2 -2
  221. package/dist/react/use-opencode-sessions/parts.d.ts.map +1 -1
  222. package/dist/react/use-opencode-sessions/projects.d.ts +1 -1
  223. package/dist/react/use-opencode-sessions/projects.d.ts.map +1 -1
  224. package/dist/react/use-opencode-sessions/providers.d.ts +1 -1
  225. package/dist/react/use-opencode-sessions/sessions.d.ts +3 -3
  226. package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -1
  227. package/dist/react/use-opencode-sessions/sharing.d.ts +1 -1
  228. package/dist/react/use-opencode-sessions/sharing.d.ts.map +1 -1
  229. package/dist/react/use-opencode-sessions/vcs.d.ts +1 -1
  230. package/dist/react/use-opencode-sessions/vcs.d.ts.map +1 -1
  231. package/dist/react/use-project-gateway.d.ts +28 -0
  232. package/dist/react/use-project-gateway.d.ts.map +1 -0
  233. package/dist/react/use-project-gateway.js +120 -0
  234. package/dist/react/use-project-gateway.js.map +1 -0
  235. package/dist/react/use-project-secrets.d.ts +6 -6
  236. package/dist/react/use-session-sync.d.ts +4 -5
  237. package/dist/react/use-session-sync.d.ts.map +1 -1
  238. package/dist/react/use-session-working.d.ts +1 -1
  239. package/dist/react/use-session-working.d.ts.map +1 -1
  240. package/dist/react/use-session.d.ts +18 -8
  241. package/dist/react/use-session.d.ts.map +1 -1
  242. package/dist/react/use-session.js +56 -11
  243. package/dist/react/use-session.js.map +1 -1
  244. package/dist/react/use-teams-installations.d.ts +14 -0
  245. package/dist/react/use-teams-installations.d.ts.map +1 -1
  246. package/dist/react/use-teams-installations.js.map +1 -1
  247. package/dist/react/use-visible-agents.d.ts +1 -1
  248. package/dist/react/use-visible-agents.d.ts.map +1 -1
  249. package/dist/transcript.d.ts +1 -1
  250. package/dist/transcript.d.ts.map +1 -1
  251. package/dist/workspace-search/client.d.ts +20 -0
  252. package/dist/workspace-search/client.d.ts.map +1 -0
  253. package/dist/workspace-search/client.js +235 -0
  254. package/dist/workspace-search/client.js.map +1 -0
  255. package/dist/workspace-search/core.d.ts.map +1 -1
  256. package/dist/workspace-search/core.js +9 -2
  257. package/dist/workspace-search/core.js.map +1 -1
  258. package/dist/workspace-search/index.d.ts +3 -0
  259. package/dist/workspace-search/index.d.ts.map +1 -0
  260. package/dist/workspace-search/index.js +3 -0
  261. package/dist/workspace-search/index.js.map +1 -0
  262. package/package.json +7 -5
  263. package/dist/core/runtime/opencode-v2-event-aliases.d.ts +0 -184
  264. package/dist/core/runtime/opencode-v2-event-aliases.d.ts.map +0 -1
  265. package/dist/core/runtime/opencode-v2-event-aliases.js +0 -2
  266. package/dist/core/runtime/opencode-v2-event-aliases.js.map +0 -1
@@ -0,0 +1,57 @@
1
+ /**
2
+ * The Kortix session transcript and event format, `kortix.transcript.v1`:
3
+ * a message is `{ info, parts }`, streamed as `{ type, properties }` events.
4
+ *
5
+ * A copy of `packages/api-contract/src/transcript.ts`, which kortixd and
6
+ * apps/api import. This package is published and cannot depend on that
7
+ * private one; `transcript-types.test.ts` fails when the two copies differ
8
+ * below this header.
9
+ *
10
+ * v1 keeps OpenCode 1.18's field names, so an OpenCode frame is a valid
11
+ * Kortix frame. The names this SDK published before v1 (`Message`, `Part`,
12
+ * `TextPart`, …) are aliases of these types in `runtime-types.ts`.
13
+ */
14
+ export const KORTIX_TRANSCRIPT_SCHEMA = 'kortix.transcript.v1';
15
+ // ─── Turn errors ─────────────────────────────────────────────────────────────
16
+ /**
17
+ * Why a turn failed, as the daemon classifies it. Channels (Slack, Teams) pick
18
+ * the message a user sees from it. `unknown` covers every failure without a
19
+ * more specific code, including an abort nobody asked for.
20
+ */
21
+ export const TURN_ERROR_CODES = [
22
+ 'auth',
23
+ 'rate_limit',
24
+ 'credits',
25
+ 'context_length',
26
+ 'output_length',
27
+ 'aborted',
28
+ 'unknown',
29
+ ];
30
+ export function isTurnErrorCode(value) {
31
+ return typeof value === 'string' && TURN_ERROR_CODES.includes(value);
32
+ }
33
+ /** `once` allows this call, `always` allows the capability for the session, `reject` denies it. */
34
+ export const RUNTIME_PERMISSION_REPLIES = ['once', 'always', 'reject'];
35
+ /**
36
+ * The capabilities a permission rule names. A harness maps each of its tool
37
+ * names onto one of these: pi's `write` is `edit`, OpenCode's `pty_*` tools
38
+ * are `bash`. They equal the manifest's permission keys.
39
+ */
40
+ export const RUNTIME_PERMISSION_CAPABILITIES = [
41
+ 'read',
42
+ 'edit',
43
+ 'glob',
44
+ 'grep',
45
+ 'list',
46
+ 'bash',
47
+ 'task',
48
+ 'external_directory',
49
+ 'todowrite',
50
+ 'question',
51
+ 'webfetch',
52
+ 'websearch',
53
+ 'lsp',
54
+ 'doom_loop',
55
+ 'skill',
56
+ ];
57
+ //# sourceMappingURL=transcript-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transcript-types.js","sourceRoot":"","sources":["../../../src/core/runtime/transcript-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAA+B,CAAC;AAExE,gFAAgF;AAEhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,MAAM;IACN,YAAY;IACZ,SAAS;IACT,gBAAgB;IAChB,eAAe;IACf,SAAS;IACT,SAAS;CACD,CAAC;AAGX,MAAM,UAAU,eAAe,CAAC,KAAc;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAK,gBAAsC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AAC9F,CAAC;AAoXD,mGAAmG;AACnG,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAC;AAGhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG;IAC7C,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,oBAAoB;IACpB,WAAW;IACX,UAAU;IACV,UAAU;IACV,WAAW;IACX,KAAK;IACL,WAAW;IACX,OAAO;CACC,CAAC"}
@@ -65,8 +65,9 @@ export type SessionHealthResponse = {
65
65
  * - `session.todo` the runtime's todo list
66
66
  * - `session.shell` a shell command run as a turn
67
67
  * - `session.attach` attach the harness's own terminal client
68
+ * - `session.config` a runtime config document (`/global/config`)
68
69
  */
69
- export type RuntimeCapability = 'session.rewind' | 'session.compact' | 'session.commands' | 'session.fork' | 'session.subagents' | 'session.mcp' | 'session.todo' | 'session.shell' | 'session.attach';
70
+ export type RuntimeCapability = 'session.rewind' | 'session.compact' | 'session.commands' | 'session.fork' | 'session.subagents' | 'session.mcp' | 'session.todo' | 'session.shell' | 'session.attach' | 'session.config';
70
71
  /**
71
72
  * Does the session's runtime serve `capability`? Pass the health
72
73
  * `capabilities` list. A host hides the control of an absent feature instead
@@ -1 +1 @@
1
- {"version":3,"file":"health.d.ts","sourceRoot":"","sources":["../../../src/core/session/health.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAA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AM,EAAE,eAAe,CAAC;IAC7C,MAAM,cAAc,GAClB,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,cAAc,GAAG,CAAC;QACnD,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,OAAO,YAAY,KAAK,QAAQ;YAChC,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,IAAI,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;AAC/E,CAAC"}
@@ -25,4 +25,6 @@ export * from './turn-end-cause.js';
25
25
  export * from './compaction.js';
26
26
  export * from './wake-escalation.js';
27
27
  export * from './status-vocabulary.js';
28
+ export type { PendingInteractions, RuntimeVerbs, TranscriptPage } from './runtime-verbs.js';
29
+ export * from './runtime-sessions.js';
28
30
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,YAAY,EAAE,mBAAmB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACzF,cAAc,oBAAoB,CAAC"}
@@ -25,4 +25,5 @@ export * from './turn-end-cause.js';
25
25
  export * from './compaction.js';
26
26
  export * from './wake-escalation.js';
27
27
  export * from './status-vocabulary.js';
28
+ export * from './runtime-sessions.js';
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * A project session's conversation tree: its root conversation in the
3
+ * session runtime and the subagent children under it. The API serves the
4
+ * tree as `runtime_sessions` (read from the runtime projection); older API
5
+ * builds send only `opencode_sessions`, so every reader goes through these.
6
+ */
7
+ import type { ProjectRuntimeSession, ProjectSession } from '../rest/projects-client/sessions.js';
8
+ type SessionTree = Pick<ProjectSession, 'runtime_sessions' | 'opencode_sessions' | 'runtime_session_id' | 'opencode_session_id'>;
9
+ /** Every conversation of a session's runtime: the root and its children. */
10
+ export declare function runtimeSessionsOf(session: SessionTree): ProjectRuntimeSession[];
11
+ /** The root conversation a session is pinned to, else (no pin yet) the first parentless one. */
12
+ export declare function rootRuntimeSession(session: SessionTree): ProjectRuntimeSession | null;
13
+ /**
14
+ * Direct, non-archived children of the root, newest `updated_at` first. A
15
+ * missing time counts as 0 and ties break on id, so the order never churns
16
+ * between refetches.
17
+ */
18
+ export declare function directSubsessions(session: SessionTree): ProjectRuntimeSession[];
19
+ /**
20
+ * The project session that owns a runtime conversation id: a session id or
21
+ * root pin first, then any conversation of a row (a child runs in its
22
+ * parent's sandbox). Null for null or an unknown id.
23
+ */
24
+ export declare function projectSessionForRuntimeId<S extends SessionTree & Pick<ProjectSession, 'session_id'>>(sessions: readonly S[], runtimeId: string | null): S | null;
25
+ export {};
26
+ //# sourceMappingURL=runtime-sessions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-sessions.d.ts","sourceRoot":"","sources":["../../../src/core/session/runtime-sessions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAE9F,KAAK,WAAW,GAAG,IAAI,CACrB,cAAc,EACd,kBAAkB,GAAG,mBAAmB,GAAG,oBAAoB,GAAG,qBAAqB,CACxF,CAAC;AAEF,4EAA4E;AAC5E,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,EAAE,CAE/E;AAED,gGAAgG;AAChG,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,GAAG,IAAI,CAKrF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,WAAW,GAAG,qBAAqB,EAAE,CAM/E;AAED;;;;GAIG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,YAAY,CAAC,EACnG,QAAQ,EAAE,SAAS,CAAC,EAAE,EACtB,SAAS,EAAE,MAAM,GAAG,IAAI,GACvB,CAAC,GAAG,IAAI,CAQV"}
@@ -0,0 +1,39 @@
1
+ /** Every conversation of a session's runtime: the root and its children. */
2
+ export function runtimeSessionsOf(session) {
3
+ return session.runtime_sessions ?? session.opencode_sessions ?? [];
4
+ }
5
+ /** The root conversation a session is pinned to, else (no pin yet) the first parentless one. */
6
+ export function rootRuntimeSession(session) {
7
+ const conversations = runtimeSessionsOf(session);
8
+ const rootId = session.runtime_session_id ?? session.opencode_session_id;
9
+ if (rootId)
10
+ return conversations.find((item) => item.id === rootId) ?? null;
11
+ return conversations.find((item) => !item.parent_id) ?? null;
12
+ }
13
+ /**
14
+ * Direct, non-archived children of the root, newest `updated_at` first. A
15
+ * missing time counts as 0 and ties break on id, so the order never churns
16
+ * between refetches.
17
+ */
18
+ export function directSubsessions(session) {
19
+ const root = rootRuntimeSession(session);
20
+ if (!root)
21
+ return [];
22
+ return runtimeSessionsOf(session)
23
+ .filter((item) => item.parent_id === root.id && !item.archived_at)
24
+ .sort((a, b) => (b.updated_at ?? 0) - (a.updated_at ?? 0) || a.id.localeCompare(b.id));
25
+ }
26
+ /**
27
+ * The project session that owns a runtime conversation id: a session id or
28
+ * root pin first, then any conversation of a row (a child runs in its
29
+ * parent's sandbox). Null for null or an unknown id.
30
+ */
31
+ export function projectSessionForRuntimeId(sessions, runtimeId) {
32
+ if (!runtimeId)
33
+ return null;
34
+ const direct = sessions.find((session) => session.session_id === runtimeId || (session.runtime_session_id ?? session.opencode_session_id) === runtimeId);
35
+ if (direct)
36
+ return direct;
37
+ return sessions.find((session) => runtimeSessionsOf(session).some((item) => item.id === runtimeId)) ?? null;
38
+ }
39
+ //# sourceMappingURL=runtime-sessions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-sessions.js","sourceRoot":"","sources":["../../../src/core/session/runtime-sessions.ts"],"names":[],"mappings":"AAaA,4EAA4E;AAC5E,MAAM,UAAU,iBAAiB,CAAC,OAAoB;IACpD,OAAO,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC;AACrE,CAAC;AAED,gGAAgG;AAChG,MAAM,UAAU,kBAAkB,CAAC,OAAoB;IACrD,MAAM,aAAa,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,OAAO,CAAC,kBAAkB,IAAI,OAAO,CAAC,mBAAmB,CAAC;IACzE,IAAI,MAAM;QAAE,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC;IAC5E,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC;AAC/D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,OAAoB;IACpD,MAAM,IAAI,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,OAAO,iBAAiB,CAAC,OAAO,CAAC;SAC9B,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,KAAK,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC;SACjE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,0BAA0B,CACxC,QAAsB,EACtB,SAAwB;IAExB,IAAI,CAAC,SAAS;QAAE,OAAO,IAAI,CAAC;IAC5B,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,CAC1B,CAAC,OAAO,EAAE,EAAE,CACV,OAAO,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,OAAO,CAAC,kBAAkB,IAAI,OAAO,CAAC,mBAAmB,CAAC,KAAK,SAAS,CAChH,CAAC;IACF,IAAI,MAAM;QAAE,OAAO,MAAM,CAAC;IAC1B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,SAAS,CAAC,CAAC,IAAI,IAAI,CAAC;AAC9G,CAAC"}
@@ -0,0 +1,55 @@
1
+ import type { KortixMessage, KortixSessionStatus, RuntimePermissionReply, RuntimePermissionRequest, RuntimeQuestionAnswer, RuntimeQuestionRequest } from '../runtime/transcript-types.js';
2
+ export interface RuntimeVerbsInput {
3
+ /** The session's runtime base URL (`${backendUrl}/p/{externalId}/{port}`). */
4
+ runtimeUrl: string;
5
+ /** The session's root conversation in the runtime. */
6
+ rootId: string;
7
+ /** The fetch to send with (the SDK's authenticated fetch). */
8
+ fetch: typeof fetch;
9
+ }
10
+ /** One page of a conversation, oldest first. */
11
+ export interface TranscriptPage {
12
+ messages: KortixMessage[];
13
+ /** More messages exist before the first one. */
14
+ hasMore: boolean;
15
+ }
16
+ /** What a session's runtime waits on. */
17
+ export interface PendingInteractions {
18
+ /** Status per conversation id (the root and its subagent children). */
19
+ statuses: Record<string, KortixSessionStatus>;
20
+ permissions: RuntimePermissionRequest[];
21
+ questions: RuntimeQuestionRequest[];
22
+ }
23
+ export declare function createRuntimeVerbs(input: RuntimeVerbsInput): {
24
+ /**
25
+ * A page of a conversation's messages, oldest first: the root by default,
26
+ * or `conversationId` (a subagent child). `before` pages backwards; a
27
+ * `limit` above the daemon's 200-message page is read in several pages.
28
+ */
29
+ messages: (options?: {
30
+ conversationId?: string;
31
+ limit?: number;
32
+ before?: string;
33
+ signal?: AbortSignal;
34
+ }) => Promise<TranscriptPage>;
35
+ /** The conversations' statuses and the permission requests and questions waiting for an answer. */
36
+ pending: () => Promise<PendingInteractions>;
37
+ /** Answer a permission request: allow this call, allow the capability for the session, or deny. */
38
+ answerPermission: (requestId: string, reply: RuntimePermissionReply, message?: string) => Promise<void>;
39
+ /** Answer a question (one answer per question), or dismiss it with `null`. */
40
+ answerQuestion: (requestId: string, answers: RuntimeQuestionAnswer[] | null) => Promise<void>;
41
+ /**
42
+ * Summarize the conversation so far into a shorter context. Uses `model`,
43
+ * else the runtime's default model; throws an `ApiError` with code
44
+ * `MODEL_REQUIRED` when neither names one. Resolves with the model it used.
45
+ */
46
+ compact: (model?: {
47
+ providerID: string;
48
+ modelID: string;
49
+ }) => Promise<{
50
+ providerID: string;
51
+ modelID: string;
52
+ }>;
53
+ };
54
+ export type RuntimeVerbs = ReturnType<typeof createRuntimeVerbs>;
55
+ //# sourceMappingURL=runtime-verbs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-verbs.d.ts","sourceRoot":"","sources":["../../../src/core/session/runtime-verbs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,wBA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EAmBrH;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -0,0 +1,124 @@
1
+ /**
2
+ * The session verbs a host calls instead of the raw runtime client: read the
3
+ * transcript, read what the agent waits on, answer it, compact. Each verb is
4
+ * bound to one session's runtime URL and root conversation, and throws an
5
+ * `ApiError` when the runtime refuses.
6
+ *
7
+ * `messages()` reads the Kortix transcript route (`/kortix/runtime/messages`);
8
+ * the other verbs use the runtime's compatibility routes until the daemon
9
+ * serves Kortix ones. A host never needs to know which.
10
+ */
11
+ import { ApiError } from '../http/api/errors.js';
12
+ import { createRuntimeRestClient } from '../runtime/runtime-rest-client.js';
13
+ /** The most messages kortixd answers in one transcript page (`MAX_MESSAGE_PAGE`). */
14
+ const MESSAGE_PAGE_MAX = 200;
15
+ async function errorMessage(response) {
16
+ const text = await response.text().catch(() => '');
17
+ try {
18
+ const body = JSON.parse(text);
19
+ return body.data?.message || body.error || body.message || text || `HTTP ${response.status}`;
20
+ }
21
+ catch {
22
+ return text || `HTTP ${response.status}`;
23
+ }
24
+ }
25
+ /** A compatibility-route result as data, or an `ApiError`. */
26
+ function unwrap(result, what) {
27
+ if (result.error === undefined)
28
+ return result.data;
29
+ const error = result.error;
30
+ const detail = typeof error === 'string' ? error : error?.data?.message || error?.message || error?.error || 'request failed';
31
+ throw new ApiError(`${what}: ${detail}`, {
32
+ ...(result.response ? { status: result.response.status, response: result.response } : {}),
33
+ });
34
+ }
35
+ export function createRuntimeVerbs(input) {
36
+ const base = input.runtimeUrl.replace(/\/$/, '');
37
+ const client = createRuntimeRestClient({ baseUrl: base, fetch: input.fetch });
38
+ return {
39
+ /**
40
+ * A page of a conversation's messages, oldest first: the root by default,
41
+ * or `conversationId` (a subagent child). `before` pages backwards; a
42
+ * `limit` above the daemon's 200-message page is read in several pages.
43
+ */
44
+ messages: async (options = {}) => {
45
+ const conversation = encodeURIComponent(options.conversationId ?? input.rootId);
46
+ const readPage = async (limit, before) => {
47
+ const query = new URLSearchParams();
48
+ if (limit !== undefined)
49
+ query.set('limit', String(limit));
50
+ if (before)
51
+ query.set('before', before);
52
+ const suffix = `/messages/${conversation}${query.size ? `?${query}` : ''}`;
53
+ const read = (mount) => input.fetch(new Request(`${base}${mount}${suffix}`, { method: 'GET', ...(options.signal ? { signal: options.signal } : {}) }));
54
+ let response = await read('/kortix/runtime');
55
+ // A daemon built before W3 serves the same route at its OpenCode name.
56
+ if (response.status === 404 || (response.headers.get('content-type') ?? '').startsWith('text/html')) {
57
+ response = await read('/kortix/opencode');
58
+ }
59
+ if (!response.ok) {
60
+ throw new ApiError(`Reading the session transcript failed: ${await errorMessage(response)}`, {
61
+ status: response.status,
62
+ response,
63
+ });
64
+ }
65
+ const body = (await response.json());
66
+ return { messages: body.messages ?? [], hasMore: body.has_more === true };
67
+ };
68
+ // The daemon serves at most MESSAGE_PAGE_MAX a page: a larger limit pages
69
+ // backwards from the newest, and the pages join oldest first.
70
+ let page = await readPage(options.limit === undefined ? undefined : Math.min(options.limit, MESSAGE_PAGE_MAX), options.before);
71
+ const messages = [...page.messages];
72
+ while (options.limit !== undefined && messages.length < options.limit && page.hasMore && messages.length > 0) {
73
+ page = await readPage(Math.min(options.limit - messages.length, MESSAGE_PAGE_MAX), messages[0].info.id);
74
+ if (!page.messages.length)
75
+ break;
76
+ messages.unshift(...page.messages);
77
+ }
78
+ return { messages, hasMore: page.hasMore };
79
+ },
80
+ /** The conversations' statuses and the permission requests and questions waiting for an answer. */
81
+ pending: async () => {
82
+ const [statuses, permissions, questions] = await Promise.all([
83
+ client.session.status().then((r) => unwrap(r, 'Reading the session status failed')),
84
+ client.permission.list().then((r) => unwrap(r, 'Reading permission requests failed')),
85
+ client.question.list().then((r) => unwrap(r, 'Reading questions failed')),
86
+ ]);
87
+ return { statuses: statuses ?? {}, permissions: permissions ?? [], questions: questions ?? [] };
88
+ },
89
+ /** Answer a permission request: allow this call, allow the capability for the session, or deny. */
90
+ answerPermission: async (requestId, reply, message) => {
91
+ unwrap(await client.permission.reply({ requestID: requestId, reply, ...(message !== undefined ? { message } : {}) }), 'Answering the permission request failed');
92
+ },
93
+ /** Answer a question (one answer per question), or dismiss it with `null`. */
94
+ answerQuestion: async (requestId, answers) => {
95
+ if (answers === null) {
96
+ unwrap(await client.question.reject({ requestID: requestId }), 'Dismissing the question failed');
97
+ return;
98
+ }
99
+ unwrap(await client.question.reply({ requestID: requestId, answers }), 'Answering the question failed');
100
+ },
101
+ /**
102
+ * Summarize the conversation so far into a shorter context. Uses `model`,
103
+ * else the runtime's default model; throws an `ApiError` with code
104
+ * `MODEL_REQUIRED` when neither names one. Resolves with the model it used.
105
+ */
106
+ compact: async (model) => {
107
+ let chosen = model;
108
+ if (!chosen) {
109
+ // An unreadable config names no model: never guess one.
110
+ const config = await client.global.config.get().then((result) => (result.error === undefined ? result.data : null));
111
+ const reference = typeof config?.model === 'string' ? config.model : '';
112
+ const slash = reference.indexOf('/');
113
+ if (slash > 0 && slash < reference.length - 1) {
114
+ chosen = { providerID: reference.slice(0, slash), modelID: reference.slice(slash + 1) };
115
+ }
116
+ }
117
+ if (!chosen)
118
+ throw new ApiError('Cannot compact: no model is set for this session', { code: 'MODEL_REQUIRED' });
119
+ unwrap(await client.session.summarize({ sessionID: input.rootId, providerID: chosen.providerID, modelID: chosen.modelID }), 'Compacting the session failed');
120
+ return chosen;
121
+ },
122
+ };
123
+ }
124
+ //# sourceMappingURL=runtime-verbs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime-verbs.js","sourceRoot":"","sources":["../../../src/core/session/runtime-verbs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AAUzE,qFAAqF;AACrF,MAAM,gBAAgB,GAAG,GAAG,CAAC;AA0B7B,KAAK,UAAU,YAAY,CAAC,QAAkB;IAC5C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S,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;gBAC1F,CAAC;YACH,CAAC;YACD,IAAI,CAAC,MAAM;gBAAE,MAAM,IAAI,QAAQ,CAAC,kDAAkD,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC,CAAC;YAChH,MAAM,CACJ,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,EACnH,+BAA+B,CAChC,CAAC;YACF,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -1,5 +1,10 @@
1
1
  /**
2
- * The OpenCode wire message-id clock — framework-free, with no imports.
2
+ * Kortix message ids, format v1 — framework-free, with no imports. The format
3
+ * began as OpenCode's wire id; Kortix owns it now (the pi harness mints it
4
+ * natively). A client mints an id for a prompt (`mintWireMessageId`) and
5
+ * validates one (`WIRE_MESSAGE_ID`), and otherwise treats ids as opaque: the
6
+ * clock arithmetic below is `@deprecated` and stays only while the OpenCode
7
+ * runtime orders a transcript by id.
3
8
  *
4
9
  * FORMAT. `msg_` + the LOW 48 bits of `Date.now() * 0x1000` as 12 lowercase
5
10
  * hex chars + 14 random base62 chars. OpenCode's own `Identifier.ascending`
@@ -22,11 +27,11 @@
22
27
  * behavior.
23
28
  *
24
29
  * WHAT IS NOT HERE. Three other places touch the clock, each on purpose:
25
- * - `apps/kortix-sandbox-agent-server/src/harness/pi/wire-id.ts` is the one
30
+ * - `apps/kortix-sandbox-agent-server/src/harness/pi/message-id.ts` is the one
26
31
  * remaining COPY: it mints the pi harness's reply ids. kortixd is a
27
32
  * standalone compiled binary with no workspace dependencies. The copy
28
- * orders on the ring through its own `wireIdClockDelta`, and
29
- * `pi-wire-id.test.ts` runs this file's regex and the golden mint and
33
+ * orders on the ring through its own `messageIdClockDelta`, and
34
+ * `pi-message-id.test.ts` runs this file's regex and the golden mint and
30
35
  * `delta` vectors against it. It mints with no backdate, at the box clock.
31
36
  * - `./wire-id-unwrap` (internal, not exported) builds on the constants here:
32
37
  * `core/turns/grouping.ts` orders messages for display on an UNWRAPPED
@@ -35,15 +40,25 @@
35
40
  * ids from the HIGH bits. They key a bubble until the server's copy
36
41
  * replaces it and are never sent as a prompt's wire `messageID`.
37
42
  */
38
- /** Sub-millisecond slots per millisecond in the id clock (`Date.now() * 0x1000`). */
43
+ /**
44
+ * Sub-millisecond slots per millisecond in the id clock (`Date.now() * 0x1000`).
45
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
46
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
47
+ */
39
48
  export declare const WIRE_ID_TIME_SCALE: bigint;
40
- /** OpenCode keeps the low 6 bytes of its id clock. */
49
+ /**
50
+ * OpenCode keeps the low 6 bytes of its id clock.
51
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
52
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
53
+ */
41
54
  export declare const WIRE_ID_TIME_MASK: bigint;
42
55
  /**
43
56
  * How far an id's clock may sit from the clock it is compared with and still
44
57
  * count as placed by it: 1 hour. Every correct mint is within ~2 minutes of its
45
58
  * own server timestamp (the backdate below); the high-bits bug put ids ~40 days
46
59
  * out. `apps/api` re-exports it as `MAX_WIRE_ID_CLOCK_CORRECTION`.
60
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
61
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
47
62
  */
48
63
  export declare const WIRE_ID_CLOCK_TOLERANCE: bigint;
49
64
  /**
@@ -51,13 +66,23 @@ export declare const WIRE_ID_CLOCK_TOLERANCE: bigint;
51
66
  * is self-correcting (the lift raises it above what is on record); too LATE is
52
67
  * undetectable downstream, because the next reply is minted from the box clock
53
68
  * and would sort above its own prompt.
69
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
70
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
54
71
  */
55
72
  export declare const WIRE_ID_BACKDATE_MS: number;
56
73
  /** `msg_` + 12 lowercase hex clock chars + 14 base62 chars. */
57
74
  export declare const WIRE_MESSAGE_ID: RegExp;
58
- /** The 48-bit clock encoded in a wire id, or null when `id` is not one. */
75
+ /**
76
+ * The 48-bit clock encoded in a wire id, or null when `id` is not one.
77
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
78
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
79
+ */
59
80
  export declare function wireIdClock(id: string | null | undefined): bigint | null;
60
- /** The 48-bit id clock of wall-clock instant `ms`, as OpenCode writes it. */
81
+ /**
82
+ * The 48-bit id clock of wall-clock instant `ms`, as OpenCode writes it.
83
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
84
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
85
+ */
61
86
  export declare function wireIdClockAt(ms: number): bigint;
62
87
  /**
63
88
  * Signed distance from `reference` to `clock` on the 48-bit ring, in clock
@@ -67,32 +92,48 @@ export declare function wireIdClockAt(ms: number): bigint;
67
92
  * This is the ONE ordering primitive. Compare two clocks with
68
93
  * `wireIdClockDelta(a, b) > 0`, never with `a > b`: a plain compare puts every
69
94
  * id minted after a wrap BELOW every id minted before it.
95
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
96
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
70
97
  */
71
98
  export declare function wireIdClockDelta(clock: bigint, reference: bigint): bigint;
72
99
  /**
73
100
  * The newest of `clocks` on the ring, or null when none is given. `null` and
74
101
  * `undefined` entries are skipped, so a caller can merge optional floors in one
75
102
  * call: `maxWireIdClock([transcriptNewest, deliveredNewest, submitted])`.
103
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
104
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
76
105
  */
77
106
  export declare function maxWireIdClock(clocks: Iterable<bigint | null | undefined>): bigint | null;
78
107
  /**
79
108
  * Whether `id` claims a clock more than {@link WIRE_ID_CLOCK_TOLERANCE} ahead
80
109
  * of `nowMs`. Such an id cannot have been placed against any real transcript;
81
110
  * a floor or a lift must skip it rather than let it veto every later mint.
111
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
112
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
82
113
  */
83
114
  export declare function isWireIdAheadOf(id: string, nowMs: number): boolean;
84
115
  /**
85
116
  * The newest clock among `ids`, compared on the ring, or null when none is a
86
117
  * wire id. With `nowMs`, an id {@link isWireIdAheadOf} it is skipped: it is not
87
118
  * a position, and as a floor it would veto every lift.
119
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
120
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
88
121
  */
89
122
  export declare function newestWireIdClock(ids: Iterable<string | null | undefined>, nowMs?: number): bigint | null;
90
- /** A minted id and the clock it encodes. */
123
+ /**
124
+ * A minted id and the clock it encodes.
125
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
126
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
127
+ */
91
128
  export interface MintedWireMessageId {
92
129
  id: string;
93
130
  time: bigint;
94
131
  }
95
- /** Input for {@link mintWireMessageIdAbove}. */
132
+ /**
133
+ * Input for {@link mintWireMessageIdAbove}.
134
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
135
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
136
+ */
96
137
  export interface MintWireMessageIdAboveInput {
97
138
  /** Wall clock to mint at, in ms since epoch. */
98
139
  nowMs: number;
@@ -108,7 +149,7 @@ export interface MintWireMessageIdAboveInput {
108
149
  * so the id lands where OpenCode itself would mint it.
109
150
  */
110
151
  backdateMs?: number;
111
- /** Source for the 14-char tail, in [0, 1). Default: `Math.random`. */
152
+ /** Source for the 14-char tail, in [0, 1). Default: `crypto.getRandomValues`. */
112
153
  random?: () => number;
113
154
  }
114
155
  /**
@@ -119,6 +160,8 @@ export interface MintWireMessageIdAboveInput {
119
160
  * Dated `backdateMs` (default {@link WIRE_ID_BACKDATE_MS}) back, then lifted
120
161
  * to `newestKnownTime + 1` when that floor is 0 to
121
162
  * {@link WIRE_ID_CLOCK_TOLERANCE} ahead on the ring.
163
+ * @deprecated The message-id clock is an ordering detail of the OpenCode runtime;
164
+ * Kortix message ids are opaque to clients. Removed with OpenCode support.
122
165
  */
123
166
  export declare function mintWireMessageIdAbove(input: MintWireMessageIdAboveInput): MintedWireMessageId;
124
167
  /** Options for {@link mintWireMessageId}. */
@@ -133,7 +176,7 @@ export interface MintWireMessageIdOptions {
133
176
  after?: Iterable<string | null | undefined>;
134
177
  }
135
178
  /**
136
- * Mint an OpenCode wire message id for a prompt.
179
+ * Mint a Kortix message id for a prompt.
137
180
  *
138
181
  * Use this — never a hand-rolled `Date.now()` encoding — for the `messageId`
139
182
  * of `session.prompts.create()`. It is dated {@link WIRE_ID_BACKDATE_MS} back
@@ -1 +1 @@
1
- {"version":3,"file":"wire-message-id.d.ts","sourceRoot":"","sources":["../../../src/core/session/wire-message-id.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAIH,qFAAqF;AACrF,eAAO,MAAM,kBAAkB,QAAiB,CAAC;AACjD,sDAAsD;AACtD,eAAO,MAAM,iBAAiB,QAAyB,CAAC;AAIxD;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,QAA8C,CAAC;AAEnF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,QAAgB,CAAC;AAEjD,+DAA+D;AAC/D,eAAO,MAAM,eAAe,QAAsC,CAAC;AAKnE,2EAA2E;AAC3E,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAGxE;AAED,6EAA6E;AAC7E,wBAAgB,a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