@kortix/sdk 0.13.41 → 0.13.42

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 (132) hide show
  1. package/README.md +14 -8
  2. package/dist/browser/session-sync/server-transcript-mirror.d.ts +3 -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 +3 -4
  5. package/dist/browser/session-sync/server-transcript-mirror.js.map +1 -1
  6. package/dist/core/cache/persisted-query-cache.d.ts.map +1 -1
  7. package/dist/core/cache/persisted-query-cache.js +9 -0
  8. package/dist/core/cache/persisted-query-cache.js.map +1 -1
  9. package/dist/core/client/kortix.d.ts +5 -0
  10. package/dist/core/client/kortix.d.ts.map +1 -1
  11. package/dist/core/client/kortix.js +2 -0
  12. package/dist/core/client/kortix.js.map +1 -1
  13. package/dist/core/models/model-flatten.d.ts.map +1 -1
  14. package/dist/core/models/model-flatten.js +3 -1
  15. package/dist/core/models/model-flatten.js.map +1 -1
  16. package/dist/core/rest/projects-client/agent-config.d.ts +4 -0
  17. package/dist/core/rest/projects-client/agent-config.d.ts.map +1 -1
  18. package/dist/core/rest/projects-client/agent-config.js.map +1 -1
  19. package/dist/core/rest/projects-client/connectors.d.ts +51 -2
  20. package/dist/core/rest/projects-client/connectors.d.ts.map +1 -1
  21. package/dist/core/rest/projects-client/connectors.js +15 -0
  22. package/dist/core/rest/projects-client/connectors.js.map +1 -1
  23. package/dist/core/rest/projects-client/projects.d.ts +15 -3
  24. package/dist/core/rest/projects-client/projects.d.ts.map +1 -1
  25. package/dist/core/rest/projects-client/projects.js +0 -2
  26. package/dist/core/rest/projects-client/projects.js.map +1 -1
  27. package/dist/core/rest/projects-client/sessions.d.ts +29 -0
  28. package/dist/core/rest/projects-client/sessions.d.ts.map +1 -1
  29. package/dist/core/rest/projects-client/sessions.js +12 -1
  30. package/dist/core/rest/projects-client/sessions.js.map +1 -1
  31. package/dist/core/runtime/kortix-master.d.ts +74 -5
  32. package/dist/core/runtime/kortix-master.d.ts.map +1 -1
  33. package/dist/core/runtime/kortix-master.js +78 -5
  34. package/dist/core/runtime/kortix-master.js.map +1 -1
  35. package/dist/core/session-sync/saved-transcript.d.ts +11 -2
  36. package/dist/core/session-sync/saved-transcript.d.ts.map +1 -1
  37. package/dist/core/session-sync/saved-transcript.js +18 -0
  38. package/dist/core/session-sync/saved-transcript.js.map +1 -1
  39. package/dist/core/stream/fetch-sse.d.ts +4 -0
  40. package/dist/core/stream/fetch-sse.d.ts.map +1 -1
  41. package/dist/core/stream/fetch-sse.js +4 -0
  42. package/dist/core/stream/fetch-sse.js.map +1 -1
  43. package/dist/core/turns/tools/memory-helpers.d.ts +5 -0
  44. package/dist/core/turns/tools/memory-helpers.d.ts.map +1 -1
  45. package/dist/core/turns/tools/memory-helpers.js +9 -1
  46. package/dist/core/turns/tools/memory-helpers.js.map +1 -1
  47. package/dist/core/turns/tools/skill-helpers.d.ts +1 -1
  48. package/dist/core/turns/tools/skill-helpers.d.ts.map +1 -1
  49. package/dist/core/turns/tools/skill-helpers.js +7 -6
  50. package/dist/core/turns/tools/skill-helpers.js.map +1 -1
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.d.ts.map +1 -1
  53. package/dist/index.js +1 -0
  54. package/dist/index.js.map +1 -1
  55. package/dist/kortix.esm.min.js +31 -31
  56. package/dist/kortix.global.js +32 -32
  57. package/dist/react/query-keys.d.ts +13 -1
  58. package/dist/react/query-keys.d.ts.map +1 -1
  59. package/dist/react/query-keys.js +19 -54
  60. package/dist/react/query-keys.js.map +1 -1
  61. package/dist/react/runtime-actions.d.ts +7 -0
  62. package/dist/react/runtime-actions.d.ts.map +1 -1
  63. package/dist/react/runtime-actions.js +7 -0
  64. package/dist/react/runtime-actions.js.map +1 -1
  65. package/dist/react/session-cache-write.d.ts +1 -1
  66. package/dist/react/session-cache-write.d.ts.map +1 -1
  67. package/dist/react/session-cache-write.js +38 -4
  68. package/dist/react/session-cache-write.js.map +1 -1
  69. package/dist/react/use-feature-flag.d.ts +3 -3
  70. package/dist/react/use-feature-flag.d.ts.map +1 -1
  71. package/dist/react/use-feature-flag.js +8 -4
  72. package/dist/react/use-feature-flag.js.map +1 -1
  73. package/dist/react/use-kortix-master.d.ts +81 -3
  74. package/dist/react/use-kortix-master.d.ts.map +1 -1
  75. package/dist/react/use-kortix-master.js +84 -3
  76. package/dist/react/use-kortix-master.js.map +1 -1
  77. package/dist/react/use-opencode-events/helpers.d.ts.map +1 -1
  78. package/dist/react/use-opencode-events/helpers.js +5 -0
  79. package/dist/react/use-opencode-events/helpers.js.map +1 -1
  80. package/dist/react/use-opencode-mcp.d.ts +6 -0
  81. package/dist/react/use-opencode-mcp.d.ts.map +1 -1
  82. package/dist/react/use-opencode-mcp.js +6 -0
  83. package/dist/react/use-opencode-mcp.js.map +1 -1
  84. package/dist/react/use-opencode-sessions/agents.js +1 -1
  85. package/dist/react/use-opencode-sessions/agents.js.map +1 -1
  86. package/dist/react/use-opencode-sessions/mcp.d.ts +1 -0
  87. package/dist/react/use-opencode-sessions/mcp.d.ts.map +1 -1
  88. package/dist/react/use-opencode-sessions/mcp.js +1 -0
  89. package/dist/react/use-opencode-sessions/mcp.js.map +1 -1
  90. package/dist/react/use-opencode-sessions/parts.d.ts +4 -0
  91. package/dist/react/use-opencode-sessions/parts.d.ts.map +1 -1
  92. package/dist/react/use-opencode-sessions/parts.js +4 -0
  93. package/dist/react/use-opencode-sessions/parts.js.map +1 -1
  94. package/dist/react/use-opencode-sessions/projects.d.ts +1 -0
  95. package/dist/react/use-opencode-sessions/projects.d.ts.map +1 -1
  96. package/dist/react/use-opencode-sessions/projects.js +1 -0
  97. package/dist/react/use-opencode-sessions/projects.js.map +1 -1
  98. package/dist/react/use-opencode-sessions/sessions.d.ts +1 -0
  99. package/dist/react/use-opencode-sessions/sessions.d.ts.map +1 -1
  100. package/dist/react/use-opencode-sessions/sessions.js +1 -0
  101. package/dist/react/use-opencode-sessions/sessions.js.map +1 -1
  102. package/dist/react/use-opencode-sessions/sharing.d.ts +2 -0
  103. package/dist/react/use-opencode-sessions/sharing.d.ts.map +1 -1
  104. package/dist/react/use-opencode-sessions/sharing.js +2 -0
  105. package/dist/react/use-opencode-sessions/sharing.js.map +1 -1
  106. package/dist/react/use-opencode-sessions/tools.d.ts +2 -0
  107. package/dist/react/use-opencode-sessions/tools.d.ts.map +1 -1
  108. package/dist/react/use-opencode-sessions/tools.js +2 -0
  109. package/dist/react/use-opencode-sessions/tools.js.map +1 -1
  110. package/dist/react/use-project-sessions.d.ts +221 -1
  111. package/dist/react/use-project-sessions.d.ts.map +1 -1
  112. package/dist/react/use-project-sessions.js +27 -1
  113. package/dist/react/use-project-sessions.js.map +1 -1
  114. package/dist/react/use-session-sync.d.ts.map +1 -1
  115. package/dist/react/use-session-sync.js +10 -4
  116. package/dist/react/use-session-sync.js.map +1 -1
  117. package/dist/react/use-session-transcript-history.d.ts.map +1 -1
  118. package/dist/react/use-session-transcript-history.js +2 -12
  119. package/dist/react/use-session-transcript-history.js.map +1 -1
  120. package/dist/react/use-session.d.ts +12 -9
  121. package/dist/react/use-session.d.ts.map +1 -1
  122. package/dist/react/use-session.js +101 -16
  123. package/dist/react/use-session.js.map +1 -1
  124. package/dist/react/use-tunnel.d.ts +59 -7
  125. package/dist/react/use-tunnel.d.ts.map +1 -1
  126. package/dist/react/use-tunnel.js +82 -123
  127. package/dist/react/use-tunnel.js.map +1 -1
  128. package/package.json +2 -2
  129. package/dist/core/session-sync/durable-log.d.ts +0 -96
  130. package/dist/core/session-sync/durable-log.d.ts.map +0 -1
  131. package/dist/core/session-sync/durable-log.js +0 -94
  132. package/dist/core/session-sync/durable-log.js.map +0 -1
@@ -1,23 +1,27 @@
1
1
  'use client';
2
2
  /**
3
- * Tunnel hooks — TanStack React Query hooks for the tunnel API.
3
+ * Computer (tunnel) hooks — TanStack React Query hooks for paired machines.
4
4
  *
5
- * Provides:
6
- * - useTunnelConnections() — list tunnel connections
7
- * - useTunnelConnection(tunnelId) — single connection detail
8
- * - useCreateTunnelConnection() — create a new connection
9
- * - useUpdateTunnelConnection() — update connection
10
- * - useDeleteTunnelConnection() — delete connection
11
- * - useTunnelPermissions(tunnelId) — list permissions
12
- * - useGrantTunnelPermission() — grant permission
13
- * - useRevokeTunnelPermission() — revoke permission
14
- * - useTunnelPermissionRequests() — list pending requests
15
- * - useApprovePermissionRequest() — approve request
16
- * - useDenyPermissionRequest() — deny request
17
- * - useTunnelAuditLogs(tunnelId) — paginated audit logs
5
+ * A paired computer is an ACCOUNT of the project's `computer` connector: list
6
+ * and select it with the generic connection APIs (`listConnections`,
7
+ * `--account`). These hooks cover the machine itself:
8
+ * - useTunnelConnections() — the machines the caller paired
9
+ * - useTunnelConnection(tunnelId) — one machine
10
+ * - useUpdateTunnelConnection() — rename a machine
11
+ * - useDeleteTunnelConnection() — unpair a machine
12
+ * - useAddComputerToProject() — add a paired machine to a project
13
+ * - useDeviceAuthInfo / useApproveDeviceAuth / useDenyDeviceAuth — pairing
14
+ *
15
+ * Retired (the API deleted the routes; the hooks fail with ENDPOINT_RETIRED
16
+ * and send no request): useCreateTunnelConnection, useTunnelPermissions,
17
+ * useGrantTunnelPermission, useRevokeTunnelPermission,
18
+ * useTunnelPermissionRequests, useApprovePermissionRequest,
19
+ * useDenyPermissionRequest, useTunnelAuditLogs.
18
20
  */
19
21
  import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
20
22
  import { backendApi } from '../core/http/api-client.js';
23
+ import { addComputerToProject } from '../core/rest/projects-client/index.js';
24
+ import { useRetiredMutation, useRetiredQuery } from './retired-endpoint.js';
21
25
  // ─── Query Keys ──────────────────────────────────────────────────────────────
22
26
  export const tunnelKeys = {
23
27
  all: ['tunnel'],
@@ -29,7 +33,9 @@ export const tunnelKeys = {
29
33
  deviceAuth: (code) => [...tunnelKeys.all, 'device-auth', code],
30
34
  };
31
35
  // ─── Connection Hooks ────────────────────────────────────────────────────────
32
- export function useTunnelConnections() {
36
+ /** Machines the caller paired. Polls every 5 s; pass a slower `refetchInterval`
37
+ * (or `false`) when only "has a machine?" matters. */
38
+ export function useTunnelConnections(options = {}) {
33
39
  return useQuery({
34
40
  queryKey: tunnelKeys.connections(),
35
41
  queryFn: async () => {
@@ -42,7 +48,7 @@ export function useTunnelConnections() {
42
48
  return res.data;
43
49
  },
44
50
  staleTime: 2_000,
45
- refetchInterval: 5_000,
51
+ refetchInterval: options.refetchInterval ?? 5_000,
46
52
  refetchIntervalInBackground: false,
47
53
  refetchOnMount: 'always',
48
54
  refetchOnWindowFocus: 'always',
@@ -68,19 +74,13 @@ export function useTunnelConnection(tunnelId) {
68
74
  refetchOnWindowFocus: 'always',
69
75
  });
70
76
  }
77
+ /**
78
+ * @deprecated The API removed `POST /tunnel/connections`: a machine pairs
79
+ * through device auth (`npx @kortix/agent-tunnel connect`). Fails with
80
+ * `ENDPOINT_RETIRED`. Removed in the next major.
81
+ */
71
82
  export function useCreateTunnelConnection() {
72
- const queryClient = useQueryClient();
73
- return useMutation({
74
- mutationFn: async (data) => {
75
- const res = await backendApi.post('/tunnel/connections', data);
76
- if (!res.success)
77
- throw new Error(res.error?.message || 'Failed to create connection');
78
- return res.data;
79
- },
80
- onSuccess: () => {
81
- queryClient.invalidateQueries({ queryKey: tunnelKeys.connections() });
82
- },
83
- });
83
+ return useRetiredMutation('useCreateTunnelConnection');
84
84
  }
85
85
  export function useUpdateTunnelConnection() {
86
86
  const queryClient = useQueryClient();
@@ -107,99 +107,54 @@ export function useDeleteTunnelConnection() {
107
107
  },
108
108
  onSuccess: () => {
109
109
  queryClient.invalidateQueries({ queryKey: tunnelKeys.connections() });
110
+ // Unpairing revokes the machine's `computer` accounts in every project.
111
+ queryClient.invalidateQueries({ queryKey: ['connections'] });
110
112
  },
111
113
  });
112
114
  }
113
- // ─── Permission Hooks ────────────────────────────────────────────────────────
115
+ // ─── Retired permission hooks ───────────────────────────────────────────────
116
+ // Per-machine permission editing and permission requests are no longer a
117
+ // product surface. The local agent's config is the ceiling; human approval of
118
+ // risky calls is a connector policy (`require_approval`).
119
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
114
120
  export function useTunnelPermissions(tunnelId) {
115
- return useQuery({
116
- queryKey: tunnelKeys.permissions(tunnelId),
117
- queryFn: async () => {
118
- const res = await backendApi.get(`/tunnel/permissions/${tunnelId}`, {
119
- showErrors: false,
120
- timeout: 10_000,
121
- });
122
- if (!res.success)
123
- throw new Error(res.error?.message || 'Failed to fetch permissions');
124
- return res.data;
125
- },
126
- enabled: !!tunnelId,
127
- staleTime: 10_000,
128
- });
121
+ return useRetiredQuery('useTunnelPermissions', tunnelKeys.permissions(tunnelId), !!tunnelId);
129
122
  }
123
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
130
124
  export function useGrantTunnelPermission() {
131
- const queryClient = useQueryClient();
132
- return useMutation({
133
- mutationFn: async ({ tunnelId, ...data }) => {
134
- const res = await backendApi.post(`/tunnel/permissions/${tunnelId}`, data);
135
- if (!res.success)
136
- throw new Error(res.error?.message || 'Failed to grant permission');
137
- return res.data;
138
- },
139
- onSuccess: (_, vars) => {
140
- queryClient.invalidateQueries({ queryKey: tunnelKeys.permissions(vars.tunnelId) });
141
- },
142
- });
125
+ return useRetiredMutation('useGrantTunnelPermission');
143
126
  }
127
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
144
128
  export function useRevokeTunnelPermission() {
145
- const queryClient = useQueryClient();
146
- return useMutation({
147
- mutationFn: async ({ tunnelId, permissionId }) => {
148
- const res = await backendApi.delete(`/tunnel/permissions/${tunnelId}/${permissionId}`);
149
- if (!res.success)
150
- throw new Error(res.error?.message || 'Failed to revoke permission');
151
- },
152
- onSuccess: (_, vars) => {
153
- queryClient.invalidateQueries({ queryKey: tunnelKeys.permissions(vars.tunnelId) });
154
- },
155
- });
129
+ return useRetiredMutation('useRevokeTunnelPermission');
156
130
  }
157
- // ─── Permission Request Hooks ────────────────────────────────────────────────
131
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
158
132
  export function useTunnelPermissionRequests() {
159
- return useQuery({
160
- queryKey: tunnelKeys.permissionRequests(),
161
- queryFn: async () => {
162
- const res = await backendApi.get('/tunnel/permission-requests', {
163
- showErrors: false,
164
- timeout: 10_000,
165
- });
166
- if (!res.success)
167
- throw new Error(res.error?.message || 'Failed to fetch requests');
168
- return res.data;
169
- },
170
- staleTime: 5_000,
171
- refetchInterval: 10_000,
172
- refetchIntervalInBackground: false,
173
- });
133
+ return useRetiredQuery('useTunnelPermissionRequests', tunnelKeys.permissionRequests());
174
134
  }
135
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
175
136
  export function useApprovePermissionRequest() {
176
- const queryClient = useQueryClient();
177
- return useMutation({
178
- mutationFn: async ({ requestId, scope, expiresAt }) => {
179
- const res = await backendApi.post(`/tunnel/permission-requests/${requestId}/approve`, {
180
- scope,
181
- expiresAt,
182
- });
183
- if (!res.success)
184
- throw new Error(res.error?.message || 'Failed to approve request');
185
- return res.data;
186
- },
187
- onSuccess: () => {
188
- queryClient.invalidateQueries({ queryKey: tunnelKeys.permissionRequests() });
189
- queryClient.invalidateQueries({ queryKey: tunnelKeys.all });
190
- },
191
- });
137
+ return useRetiredMutation('useApprovePermissionRequest');
192
138
  }
139
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
193
140
  export function useDenyPermissionRequest() {
141
+ return useRetiredMutation('useDenyPermissionRequest');
142
+ }
143
+ // ─── Project Hooks ───────────────────────────────────────────────────────────
144
+ /**
145
+ * Share a machine the caller paired with a project (`share: 'project'`, needs
146
+ * the connector-manage capability): everyone in the project can use it,
147
+ * including unattended runs. A private account is not needed: the owner's own
148
+ * account follows them into every project they belong to. `share: 'me'`
149
+ * (the server default) stays accepted and is idempotent.
150
+ */
151
+ export function useAddComputerToProject() {
194
152
  const queryClient = useQueryClient();
195
153
  return useMutation({
196
- mutationFn: async (requestId) => {
197
- const res = await backendApi.post(`/tunnel/permission-requests/${requestId}/deny`);
198
- if (!res.success)
199
- throw new Error(res.error?.message || 'Failed to deny request');
200
- },
201
- onSuccess: () => {
202
- queryClient.invalidateQueries({ queryKey: tunnelKeys.permissionRequests() });
154
+ mutationFn: ({ projectId, ...input }) => addComputerToProject(projectId, input),
155
+ onSuccess: (_, vars) => {
156
+ queryClient.invalidateQueries({ queryKey: ['connections', vars.projectId] });
157
+ queryClient.invalidateQueries({ queryKey: tunnelKeys.connections() });
203
158
  },
204
159
  });
205
160
  }
@@ -220,11 +175,25 @@ export function useDeviceAuthInfo(code) {
220
175
  refetchInterval: 5_000,
221
176
  });
222
177
  }
178
+ /**
179
+ * Approve a pairing request. The machine belongs to the caller and is theirs
180
+ * in every project they are a member of, in their private sessions
181
+ * (`share: 'me'`, the default). `share: 'project'` also shares it with a
182
+ * project (needs the connector-manage capability there): `projectId`, or the
183
+ * project the machine named (`DeviceAuthInfo.projectId`) when it is omitted.
184
+ * Older servers need a project for every approval.
185
+ */
223
186
  export function useApproveDeviceAuth() {
224
187
  const queryClient = useQueryClient();
225
188
  return useMutation({
226
- mutationFn: async ({ code, ...data }) => {
227
- const res = await backendApi.post(`/tunnel/device-auth/${code}/approve`, data);
189
+ mutationFn: async ({ code, projectId, share, ...data }) => {
190
+ // `connectionId` is the computer account created on the project: `null`
191
+ // when the approval named no project, absent on older servers.
192
+ const res = await backendApi.post(`/tunnel/device-auth/${code}/approve`, {
193
+ ...data,
194
+ ...(projectId ? { project_id: projectId } : {}),
195
+ ...(share ? { share } : {}),
196
+ });
228
197
  if (!res.success)
229
198
  throw new Error(res.error?.message || 'Failed to approve device');
230
199
  return res.data;
@@ -232,6 +201,8 @@ export function useApproveDeviceAuth() {
232
201
  onSuccess: (_, vars) => {
233
202
  queryClient.invalidateQueries({ queryKey: tunnelKeys.deviceAuth(vars.code) });
234
203
  queryClient.invalidateQueries({ queryKey: tunnelKeys.connections() });
204
+ if (vars.projectId)
205
+ queryClient.invalidateQueries({ queryKey: ['connections', vars.projectId] });
235
206
  },
236
207
  });
237
208
  }
@@ -248,21 +219,9 @@ export function useDenyDeviceAuth() {
248
219
  },
249
220
  });
250
221
  }
251
- // ─── Audit Log Hooks ─────────────────────────────────────────────────────────
252
- export function useTunnelAuditLogs(tunnelId, page = 1, limit = 50) {
253
- return useQuery({
254
- queryKey: tunnelKeys.auditLogs(tunnelId, page),
255
- queryFn: async () => {
256
- const res = await backendApi.get(`/tunnel/audit/${tunnelId}?page=${page}&limit=${limit}`, {
257
- showErrors: false,
258
- timeout: 10_000,
259
- });
260
- if (!res.success)
261
- throw new Error(res.error?.message || 'Failed to fetch audit logs');
262
- return res.data;
263
- },
264
- enabled: !!tunnelId,
265
- staleTime: 15_000,
266
- });
222
+ // ─── Retired audit hook ──────────────────────────────────────────────────────
223
+ /** @deprecated The API removed this route. Fails with `ENDPOINT_RETIRED`. Removed in the next major. */
224
+ export function useTunnelAuditLogs(tunnelId, page = 1, _limit = 50) {
225
+ return useRetiredQuery('useTunnelAuditLogs', tunnelKeys.auditLogs(tunnelId, page), !!tunnelId);
267
226
  }
268
227
  //# sourceMappingURL=use-tunnel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-tunnel.js","sourceRoot":"","sources":["../../src/react/use-tunnel.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAkErD,gFAAgF;AAEhF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,EAAE,CAAC,QAAQ,CAAU;IACxB,WAAW,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,EAAE,aAAa,CAAU;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AAK,EAAE,OAAO,IAAI,uBAAuB,CAAC,CAAC;QACnF,CAAC;QACD,SAAS,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;YACrB,WAAW,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAC3E,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,gFAAgF;AAEhF,wGAAwG;AACxG,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,GAAG,EAAE;IACxE,OAAO,eAAe,CAAe,oBAAoB,EAAE,UAAU,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC/G,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kortix/sdk",
3
- "version": "0.13.41",
3
+ "version": "0.13.42",
4
4
  "description": "Official Kortix frontend TypeScript SDK — one typed client for the Kortix agent platform. Unifies project/session lifecycle and live agent streaming behind a single ergonomic Session handle, so web, mobile, and white-label apps never touch the raw HTTP API or OpenCode semantics.",
5
5
  "type": "module",
6
6
  "license": "Elastic-2.0",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "sideEffects": false,
22
22
  "dependencies": {
23
- "@kortix/llm-catalog": "0.13.41",
23
+ "@kortix/llm-catalog": "0.13.42",
24
24
  "@opencode-ai/sdk": "1.18.23",
25
25
  "zustand": "^5.0.3"
26
26
  },
@@ -1,96 +0,0 @@
1
- /**
2
- * The durable per-session event log.
3
- *
4
- * OpenCode's runtime keeps an ordered, replayable log per session, and exposes
5
- * it on two routes that our sandboxes already serve (verified live through the
6
- * Kortix proxy, dev, 2026-08-24):
7
- *
8
- * GET /api/session/{id}/history?limit&after -> { data: SessionDurableEvent[], hasMore }
9
- * GET /api/session/{id}/event?after=<seq> -> SSE: replay, then tail
10
- *
11
- * The SDK's own words for the second one: "Replay durable events after an
12
- * aggregate sequence, then continue with new durable events."
13
- *
14
- * Why this matters more than any repair we have written:
15
- *
16
- * Every transcript bug this file's neighbours exist to fix comes from the same
17
- * shape — the browser holds a COPY assembled from a lossy stream, and has no
18
- * way to ask "what did I miss?". So we invented answers: re-read the tail on a
19
- * gap, on turn end, on tab return, on eviction; poll every 10s while working;
20
- * infer "is it working" from six stamped observations. Each is a guess about
21
- * loss we could not measure.
22
- *
23
- * A sequence cursor replaces all of it with a question the server can answer
24
- * exactly: everything after `seq`. Missed nothing -> zero events. Missed a
25
- * turn -> exactly that turn. Cost is proportional to what was MISSED rather
26
- * than to the size of the transcript, which is the whole reason a 78 MB tail
27
- * read could never be the right repair.
28
- *
29
- * Framework-free on purpose: no DOM, no React, no store. Callers own the cursor.
30
- */
31
- /** One page of durable events. `limit` is per request, not a total. */
32
- export declare const DURABLE_HISTORY_PAGE_SIZE = 200;
33
- /** A durable event carries an aggregate sequence; a delta frame does not. */
34
- export interface DurableEventLike {
35
- durable?: {
36
- aggregateID?: string;
37
- seq?: number;
38
- version?: number;
39
- };
40
- }
41
- export interface DurableHistoryPage {
42
- events: unknown[];
43
- hasMore: boolean;
44
- /**
45
- * The cursor to pass as `after` next time. Never lower than the cursor this
46
- * read was given — a rewind would replay events already applied.
47
- */
48
- lastSeq: number | null;
49
- }
50
- export interface DurableLogClient {
51
- v2?: {
52
- session: {
53
- history: (request: {
54
- sessionID: string;
55
- limit?: number;
56
- after?: number;
57
- }) => Promise<{
58
- data?: {
59
- data?: unknown[];
60
- hasMore?: boolean;
61
- };
62
- }>;
63
- };
64
- };
65
- }
66
- /**
67
- * The aggregate sequence of an event, or null if it carries none.
68
- *
69
- * Only durable events advance the cursor. The runtime also emits pure deltas
70
- * (text, reasoning, tool input, compaction) that exist to make typing look
71
- * live; they are disposable by design and must never move a cursor, or a
72
- * reconnect would skip the durable event they were painting over.
73
- */
74
- export declare function durableSeqOf(event: unknown): number | null;
75
- /**
76
- * Read one page of the log after `after` (exclusive).
77
- *
78
- * The runtime's own note on this route: "Newly committed events may appear on
79
- * later pages" — so `hasMore: false` means "caught up as of now", not "the log
80
- * is finished". The caller keeps the cursor and asks again.
81
- */
82
- export declare function readSessionDurableHistory(client: DurableLogClient, sessionId: string, cursor: {
83
- after?: number;
84
- limit?: number;
85
- }): Promise<DurableHistoryPage>;
86
- /**
87
- * Does this failure mean "this runtime has no durable log" rather than "the
88
- * read failed"?
89
- *
90
- * Self-hosted installs run older sandbox images. A 404 is a capability answer
91
- * and must fall back to the message read. Everything else is a real failure and
92
- * must reach the caller's retry — swallowing a 503 as "unsupported" would
93
- * permanently downgrade a runtime that was merely asleep.
94
- */
95
- export declare function isDurableLogUnsupported(error: unknown): boolean;
96
- //# sourceMappingURL=durable-log.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"durable-log.d.ts","sourceRoot":"","sources":["../../../src/core/session-sync/durable-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,uEAAuE;AACvE,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,6EAA6E;AAC7E,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACpE;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE;QACH,OAAO,EAAE;YACP,OAAO,EAAE,CAAC,OAAO,EAAE;gBACjB,SAAS,EAAE,MAAM,CAAC;gBAClB,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,KAAK,CAAC,EAAE,MAAM,CAAC;aAChB,KAAK,OAAO,CAAC;gBAAE,IAAI,CAAC,EAAE;oBAAE,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;oBAAC,OAAO,CAAC,EAAE,OAAO,CAAA;iBAAE,CAAA;aAAE,CAAC,CAAC;SACnE,CAAC;KACH,CAAC;CACH;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAK1D;AAED;;;;;;GAMG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,gBAAgB,EACxB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GACzC,OAAO,CAAC,kBAAkB,CAAC,CAsB7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAK/D"}
@@ -1,94 +0,0 @@
1
- /**
2
- * The durable per-session event log.
3
- *
4
- * OpenCode's runtime keeps an ordered, replayable log per session, and exposes
5
- * it on two routes that our sandboxes already serve (verified live through the
6
- * Kortix proxy, dev, 2026-08-24):
7
- *
8
- * GET /api/session/{id}/history?limit&after -> { data: SessionDurableEvent[], hasMore }
9
- * GET /api/session/{id}/event?after=<seq> -> SSE: replay, then tail
10
- *
11
- * The SDK's own words for the second one: "Replay durable events after an
12
- * aggregate sequence, then continue with new durable events."
13
- *
14
- * Why this matters more than any repair we have written:
15
- *
16
- * Every transcript bug this file's neighbours exist to fix comes from the same
17
- * shape — the browser holds a COPY assembled from a lossy stream, and has no
18
- * way to ask "what did I miss?". So we invented answers: re-read the tail on a
19
- * gap, on turn end, on tab return, on eviction; poll every 10s while working;
20
- * infer "is it working" from six stamped observations. Each is a guess about
21
- * loss we could not measure.
22
- *
23
- * A sequence cursor replaces all of it with a question the server can answer
24
- * exactly: everything after `seq`. Missed nothing -> zero events. Missed a
25
- * turn -> exactly that turn. Cost is proportional to what was MISSED rather
26
- * than to the size of the transcript, which is the whole reason a 78 MB tail
27
- * read could never be the right repair.
28
- *
29
- * Framework-free on purpose: no DOM, no React, no store. Callers own the cursor.
30
- */
31
- /** One page of durable events. `limit` is per request, not a total. */
32
- export const DURABLE_HISTORY_PAGE_SIZE = 200;
33
- /**
34
- * The aggregate sequence of an event, or null if it carries none.
35
- *
36
- * Only durable events advance the cursor. The runtime also emits pure deltas
37
- * (text, reasoning, tool input, compaction) that exist to make typing look
38
- * live; they are disposable by design and must never move a cursor, or a
39
- * reconnect would skip the durable event they were painting over.
40
- */
41
- export function durableSeqOf(event) {
42
- if (!event || typeof event !== 'object')
43
- return null;
44
- const durable = event.durable;
45
- if (!durable || typeof durable.seq !== 'number' || !Number.isFinite(durable.seq))
46
- return null;
47
- return durable.seq;
48
- }
49
- /**
50
- * Read one page of the log after `after` (exclusive).
51
- *
52
- * The runtime's own note on this route: "Newly committed events may appear on
53
- * later pages" — so `hasMore: false` means "caught up as of now", not "the log
54
- * is finished". The caller keeps the cursor and asks again.
55
- */
56
- export async function readSessionDurableHistory(client, sessionId, cursor) {
57
- const history = client.v2?.session.history;
58
- if (!history)
59
- throw new Error('durable log unavailable: client exposes no v2 session namespace');
60
- const result = await history({
61
- sessionID: sessionId,
62
- limit: cursor.limit ?? DURABLE_HISTORY_PAGE_SIZE,
63
- ...(cursor.after === undefined ? {} : { after: cursor.after }),
64
- });
65
- const events = result.data?.data ?? [];
66
- // The HIGHEST sequence in the page, not the last element's. A page is not
67
- // promised in sequence order, and it may carry frames with no sequence at
68
- // all; taking the tail element would rewind the cursor on either.
69
- let lastSeq = cursor.after ?? null;
70
- for (const event of events) {
71
- const seq = durableSeqOf(event);
72
- if (seq === null)
73
- continue;
74
- if (lastSeq === null || seq > lastSeq)
75
- lastSeq = seq;
76
- }
77
- return { events, hasMore: result.data?.hasMore === true, lastSeq };
78
- }
79
- /**
80
- * Does this failure mean "this runtime has no durable log" rather than "the
81
- * read failed"?
82
- *
83
- * Self-hosted installs run older sandbox images. A 404 is a capability answer
84
- * and must fall back to the message read. Everything else is a real failure and
85
- * must reach the caller's retry — swallowing a 503 as "unsupported" would
86
- * permanently downgrade a runtime that was merely asleep.
87
- */
88
- export function isDurableLogUnsupported(error) {
89
- if (!error || typeof error !== 'object')
90
- return false;
91
- const status = error.status ?? error.statusCode;
92
- return status === 404;
93
- }
94
- //# sourceMappingURL=durable-log.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"durable-log.js","sourceRoot":"","sources":["../../../src/core/session-sync/durable-log.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,uEAAuE;AACvE,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC;AA6B7C;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;IACrD,MAAM,OAAO,GAAI,KAA0B,CAAC,OAAO,CAAC;IACpD,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,CAAC,GAAG,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC9F,OAAO,OAAO,CAAC,GAAG,CAAC;AACrB,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,MAAwB,EACxB,SAAiB,EACjB,MAA0C;IAE1C,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC;IAC3C,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,KAAK,CAAC,iEAAiE,CAAC,CAAC;IAEjG,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC;QAC3B,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,MAAM,CAAC,KAAK,IA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