@oar-sh/oar 0.9.2 → 0.9.3

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 (94) hide show
  1. package/CHANGELOG.md +269 -0
  2. package/README.md +407 -424
  3. package/bin/oar.js +25 -10
  4. package/package.json +7 -4
  5. package/server/README.md +1 -1
  6. package/server/claude-worker/claude-session-process.mjs +981 -44
  7. package/server/claude-worker/claude-session-worker.mjs +45 -4
  8. package/server/claude-worker/claude-turn-publisher.mjs +81 -20
  9. package/server/claude-worker/claude-worker-link-wiring.mjs +9 -0
  10. package/server/copilot-worker/copilot-ask-user-tool.mjs +89 -0
  11. package/server/copilot-worker/copilot-continuation-signals.mjs +55 -0
  12. package/server/copilot-worker/copilot-question-bridge.mjs +34 -12
  13. package/server/copilot-worker/copilot-sdk-event-normalizer.mjs +101 -12
  14. package/server/copilot-worker/copilot-sdk-session-process.mjs +2269 -492
  15. package/server/copilot-worker/copilot-sdk-session-worker.mjs +82 -20
  16. package/server/db-schema.mjs +20 -0
  17. package/server/migrations/0004-steer-settle-markers.mjs +119 -0
  18. package/server/public/app/api-client.js +22 -2
  19. package/server/public/app/ask-user-view.js +102 -13
  20. package/server/public/app/attachments-view.js +37 -2
  21. package/server/public/app/background-task-timeout-options.mjs +9 -0
  22. package/server/public/app/background-tasks-view.mjs +33 -18
  23. package/server/public/app/bootstrap.js +34 -8
  24. package/server/public/app/composer-control-state.mjs +52 -34
  25. package/server/public/app/conversation-draft-sync.mjs +187 -0
  26. package/server/public/app/conversation-list-filter.mjs +86 -0
  27. package/server/public/app/conversation-provider-indicator.mjs +8 -0
  28. package/server/public/app/conversation-view.js +919 -194
  29. package/server/public/app/emoji-view.js +2 -0
  30. package/server/public/app/font-scaling.js +4 -37
  31. package/server/public/app/journal-view.js +145 -5
  32. package/server/public/app/model-selector-options.mjs +1 -1
  33. package/server/public/app/question-multi-select.mjs +52 -0
  34. package/server/public/app/relay-prompt-sanitizer.mjs +17 -2
  35. package/server/public/app/settings-modal.js +8 -6
  36. package/server/public/app/socket-handlers.js +19 -0
  37. package/server/public/app/steered-turn-merge.mjs +100 -0
  38. package/server/public/app/store.js +126 -15
  39. package/server/public/app/sync-outbox.mjs +16 -8
  40. package/server/public/app/tool-activity-emoji.mjs +36 -0
  41. package/server/public/app/transcript-viewport-anchor.mjs +210 -0
  42. package/server/public/index.html +206 -9
  43. package/server/public/sw.js +7 -0
  44. package/server/relay-tools.md +2 -0
  45. package/server/repositories/message-repository.mjs +61 -18
  46. package/server/repositories/question-repository.mjs +15 -0
  47. package/server/repositories/session-repository.mjs +7 -31
  48. package/server/routes/messages-routes.mjs +488 -46
  49. package/server/routes/sessions-routes.mjs +298 -55
  50. package/server/server-runtime.mjs +65 -25
  51. package/server/services/live-turn-picker.mjs +47 -0
  52. package/server/services/relay-prompt-sanitizer.mjs +17 -2
  53. package/server/services/relay-question-context.mjs +46 -0
  54. package/server/services/sdk-session-import-service.mjs +49 -7
  55. package/server/services/session-worker-registry-service.mjs +75 -0
  56. package/server/services/session-worker-supervisor-service.mjs +7 -1
  57. package/server/services/session-worker-websocket-service.mjs +23 -1
  58. package/server/services/steer-resend.mjs +45 -0
  59. package/shared/background-task-timeout.mjs +12 -4
  60. package/shared/control-poller.mjs +4 -1
  61. package/shared/question-multi-select.mjs +16 -0
  62. package/shared/relay-stop-failure.mjs +15 -0
  63. package/shared/slash-command-guard.mjs +76 -0
  64. package/shared/steer-note.mjs +66 -0
  65. package/shared/steer-settle-failure.mjs +89 -0
  66. package/shared/steer-settle-markers.mjs +18 -0
  67. package/shared/worker-crash-guard.mjs +40 -25
  68. package/shared/worker-runtime/heartbeat.mjs +55 -1
  69. package/shared/worker-runtime/runner-link-wiring.mjs +44 -0
  70. package/shared/worker-runtime/worker-websocket-link.mjs +119 -8
  71. package/server/claude-worker/claude-session-test-harness.mjs +0 -250
  72. package/server/claude-worker/fixtures/workflow-run-record.json +0 -1
  73. package/server/copilot-worker/copilot-sdk-test-harness.mjs +0 -382
  74. package/server/copilot-worker/fixtures/abort-turn.json +0 -588
  75. package/server/copilot-worker/fixtures/ask-user-turn.json +0 -1154
  76. package/server/copilot-worker/fixtures/background-timer-continuation.json +0 -445
  77. package/server/copilot-worker/fixtures/background-timer-turn.json +0 -497
  78. package/server/copilot-worker/fixtures/happy-turn.json +0 -566
  79. package/server/copilot-worker/fixtures/quota-turn.json +0 -647
  80. package/server/copilot-worker/fixtures/reasoning-turn.json +0 -625
  81. package/server/copilot-worker/fixtures/resume-turn.json +0 -700
  82. package/server/copilot-worker/fixtures/subagent-turn.json +0 -1378
  83. package/server/copilot-worker/fixtures/tool-permission-turn.json +0 -1293
  84. package/server/routes/messages-routes-test-harness.mjs +0 -111
  85. package/server/services/fixtures/claude-auth-stub.cmd +0 -1
  86. package/server/services/fixtures/claude-auth-stub.mjs +0 -76
  87. package/server/services/fixtures/claude-auth-stub.sh +0 -4
  88. package/server/services/fixtures/cli-install-stub.cmd +0 -1
  89. package/server/services/fixtures/cli-install-stub.mjs +0 -98
  90. package/server/services/fixtures/cli-install-stub.sh +0 -4
  91. package/server/services/fixtures/grok-stub.cmd +0 -1
  92. package/server/services/fixtures/grok-stub.mjs +0 -89
  93. package/server/services/fixtures/grok-stub.sh +0 -4
  94. package/shared/fixtures/copilot-catalog-raw-2026-09-07.json +0 -2363
@@ -1,588 +0,0 @@
1
- [
2
- {
3
- "type": "session.background_tasks_changed",
4
- "data": {},
5
- "ephemeral": true,
6
- "id": "5eddc9b5-bcdb-457a-9123-751768a3910b",
7
- "timestamp": "2026-08-31T09:23:30.835Z",
8
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
9
- },
10
- {
11
- "type": "session.background_tasks_changed",
12
- "data": {},
13
- "ephemeral": true,
14
- "id": "48e5f18e-0831-4662-a33a-b00fc487e68d",
15
- "timestamp": "2026-08-31T09:23:30.837Z",
16
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
17
- },
18
- {
19
- "type": "session.background_tasks_changed",
20
- "data": {},
21
- "ephemeral": true,
22
- "id": "41cf8be5-8c37-4d0c-9886-b164d5078489",
23
- "timestamp": "2026-08-31T09:23:30.838Z",
24
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
25
- },
26
- {
27
- "type": "pending_messages.modified",
28
- "data": {},
29
- "ephemeral": true,
30
- "id": "3cf2423e-6aa8-4066-9d77-899a18468a47",
31
- "timestamp": "2026-08-31T09:23:30.839Z",
32
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
33
- },
34
- {
35
- "type": "pending_messages.modified",
36
- "data": {},
37
- "ephemeral": true,
38
- "id": "c2565c21-73f7-4366-a4b1-65e81de0eade",
39
- "timestamp": "2026-08-31T09:23:30.840Z",
40
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
41
- },
42
- {
43
- "type": "session.mcp_servers_loaded",
44
- "data": {
45
- "servers": [
46
- {
47
- "name": "github-mcp-server",
48
- "status": "connected",
49
- "source": "builtin"
50
- }
51
- ]
52
- },
53
- "ephemeral": true,
54
- "id": "6cd0f09d-9188-497f-a5f6-0186403d90e7",
55
- "timestamp": "2026-08-31T09:23:30.842Z",
56
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
57
- },
58
- {
59
- "type": "session.tools_updated",
60
- "data": {
61
- "model": "spike-model"
62
- },
63
- "ephemeral": true,
64
- "id": "9daf426e-26fe-4f01-9211-1d699d432ec2",
65
- "timestamp": "2026-08-31T09:23:30.849Z",
66
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
67
- },
68
- {
69
- "type": "user.message",
70
- "data": {
71
- "content": "SPIKE_COUNT: count to fifty",
72
- "transformedContent": "<current_datetime>2026-08-31T09:23:30.849+00:00</current_datetime>\n\nSPIKE_COUNT: count to fifty",
73
- "supportedNativeDocumentMimeTypes": [],
74
- "delivery": "idle",
75
- "interactionId": "5961e5ad-5ca0-4a72-b81e-b4c6bba86bf1",
76
- "turnId": "0",
77
- "parentAgentTaskId": "72671484-6fa4-47e4-96bb-3f97dc3d57d1"
78
- },
79
- "id": "85aaa335-cbe5-46bc-8b47-1255686d14ba",
80
- "timestamp": "2026-08-31T09:23:30.849Z",
81
- "parentId": "904062c6-4791-4570-b963-fee41f7107b2"
82
- },
83
- {
84
- "type": "model.turn_started",
85
- "data": {
86
- "kind": "turn_started",
87
- "model": "spike-model",
88
- "modelInfo": {
89
- "id": "spike-model",
90
- "name": "spike-model",
91
- "capabilities": {
92
- "supports": {
93
- "vision": false,
94
- "adaptive_thinking": "unsupported"
95
- },
96
- "limits": {
97
- "max_prompt_tokens": 128000,
98
- "max_context_window_tokens": 200000,
99
- "vision": {
100
- "max_prompt_image_size": 3145728,
101
- "max_prompt_images": 1,
102
- "supported_media_types": [
103
- "image/jpeg",
104
- "image/png",
105
- "image/webp"
106
- ]
107
- }
108
- }
109
- },
110
- "supported_endpoints": [
111
- "/chat/completions"
112
- ]
113
- },
114
- "turn": 0,
115
- "timestampMs": 1788168210853
116
- },
117
- "ephemeral": true,
118
- "id": "bb3273ca-345d-43c6-b354-e86b6ff5a1ee",
119
- "timestamp": "2026-08-31T09:23:30.853Z",
120
- "parentId": "2d13b092-3996-457e-8e84-ce2da589b63f"
121
- },
122
- {
123
- "type": "assistant.turn_start",
124
- "data": {
125
- "turnId": "0",
126
- "interactionId": "5961e5ad-5ca0-4a72-b81e-b4c6bba86bf1"
127
- },
128
- "id": "4fd640ec-19a7-49be-859a-3f4b84aed4bf",
129
- "timestamp": "2026-08-31T09:23:30.854Z",
130
- "parentId": "2d13b092-3996-457e-8e84-ce2da589b63f"
131
- },
132
- {
133
- "type": "session.usage_info",
134
- "ephemeral": true,
135
- "data": {
136
- "tokenLimit": 128000,
137
- "currentTokens": 12662,
138
- "messagesLength": 8,
139
- "systemTokens": 5597,
140
- "conversationTokens": 178,
141
- "toolDefinitionsTokens": 6887,
142
- "isInitial": true
143
- },
144
- "id": "1c887ad4-98f7-4cda-96c0-c0b0fb17dc5c",
145
- "timestamp": "2026-08-31T09:23:30.873Z",
146
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
147
- },
148
- {
149
- "type": "model.log",
150
- "data": {
151
- "kind": "log",
152
- "level": "debug",
153
- "message": "Model does not support vision, skipping image processing"
154
- },
155
- "ephemeral": true,
156
- "id": "f32a9cd4-49cb-42a2-bc41-ae1770b73dae",
157
- "timestamp": "2026-08-31T09:23:30.874Z",
158
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
159
- },
160
- {
161
- "type": "model.call_start",
162
- "data": {
163
- "turnId": "0",
164
- "model": "spike-model"
165
- },
166
- "ephemeral": true,
167
- "id": "9ef4b2b2-3d28-4aba-a296-8c2196ad58fc",
168
- "timestamp": "2026-08-31T09:23:30.874Z",
169
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
170
- },
171
- {
172
- "type": "model.model_call_started",
173
- "data": {
174
- "kind": "model_call_started",
175
- "model": "spike-model",
176
- "modelInfo": {
177
- "id": "spike-model",
178
- "name": "spike-model",
179
- "capabilities": {
180
- "supports": {
181
- "vision": false,
182
- "adaptive_thinking": "unsupported"
183
- },
184
- "limits": {
185
- "max_prompt_tokens": 128000,
186
- "max_context_window_tokens": 200000,
187
- "vision": {
188
- "max_prompt_image_size": 3145728,
189
- "max_prompt_images": 1,
190
- "supported_media_types": [
191
- "image/jpeg",
192
- "image/png",
193
- "image/webp"
194
- ]
195
- }
196
- }
197
- },
198
- "supported_endpoints": [
199
- "/chat/completions"
200
- ]
201
- },
202
- "turn": 0,
203
- "timestampMs": 1788168210874
204
- },
205
- "ephemeral": true,
206
- "id": "ce65406c-ae22-4885-baf3-a9b0740bf0fe",
207
- "timestamp": "2026-08-31T09:23:30.875Z",
208
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
209
- },
210
- {
211
- "type": "assistant.streaming_delta",
212
- "data": {
213
- "totalResponseSizeBytes": 2
214
- },
215
- "ephemeral": true,
216
- "id": "319004f1-6340-4ca0-ba4f-33572e44d455",
217
- "timestamp": "2026-08-31T09:23:30.877Z",
218
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
219
- },
220
- {
221
- "type": "assistant.message_start",
222
- "data": {
223
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d"
224
- },
225
- "ephemeral": true,
226
- "id": "50601e0e-5bd8-4927-a873-a2bf4219ce6d",
227
- "timestamp": "2026-08-31T09:23:30.877Z",
228
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
229
- },
230
- {
231
- "type": "assistant.message_delta",
232
- "data": {
233
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
234
- "deltaContent": "1\n"
235
- },
236
- "ephemeral": true,
237
- "id": "69b40e4d-7c72-467d-93b0-4616d3a4c8d5",
238
- "timestamp": "2026-08-31T09:23:30.877Z",
239
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
240
- },
241
- {
242
- "type": "assistant.streaming_delta",
243
- "data": {
244
- "totalResponseSizeBytes": 4
245
- },
246
- "ephemeral": true,
247
- "id": "3119b3c2-dd60-49b9-82c3-e5f3352fe27f",
248
- "timestamp": "2026-08-31T09:23:31.179Z",
249
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
250
- },
251
- {
252
- "type": "assistant.message_delta",
253
- "data": {
254
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
255
- "deltaContent": "2\n"
256
- },
257
- "ephemeral": true,
258
- "id": "16493be2-6b2c-40b5-bdf1-6e9deba1dc43",
259
- "timestamp": "2026-08-31T09:23:31.179Z",
260
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
261
- },
262
- {
263
- "type": "assistant.streaming_delta",
264
- "data": {
265
- "totalResponseSizeBytes": 6
266
- },
267
- "ephemeral": true,
268
- "id": "43783b63-becb-443b-a626-25faea292c77",
269
- "timestamp": "2026-08-31T09:23:31.480Z",
270
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
271
- },
272
- {
273
- "type": "assistant.message_delta",
274
- "data": {
275
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
276
- "deltaContent": "3\n"
277
- },
278
- "ephemeral": true,
279
- "id": "0e089356-4dbd-4f08-9d6a-c93ae01d3367",
280
- "timestamp": "2026-08-31T09:23:31.480Z",
281
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
282
- },
283
- {
284
- "type": "assistant.streaming_delta",
285
- "data": {
286
- "totalResponseSizeBytes": 8
287
- },
288
- "ephemeral": true,
289
- "id": "83ab2b4a-ec1e-4d35-b096-5a4450d1e9fe",
290
- "timestamp": "2026-08-31T09:23:31.781Z",
291
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
292
- },
293
- {
294
- "type": "assistant.message_delta",
295
- "data": {
296
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
297
- "deltaContent": "4\n"
298
- },
299
- "ephemeral": true,
300
- "id": "c151df64-73f0-408e-885c-12d5b447bc0d",
301
- "timestamp": "2026-08-31T09:23:31.782Z",
302
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
303
- },
304
- {
305
- "type": "assistant.streaming_delta",
306
- "data": {
307
- "totalResponseSizeBytes": 10
308
- },
309
- "ephemeral": true,
310
- "id": "6bda1e88-d196-46df-b203-fee0434ba490",
311
- "timestamp": "2026-08-31T09:23:32.083Z",
312
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
313
- },
314
- {
315
- "type": "assistant.message_delta",
316
- "data": {
317
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
318
- "deltaContent": "5\n"
319
- },
320
- "ephemeral": true,
321
- "id": "3dfeefd1-251f-41b4-957a-1e9148db4fc3",
322
- "timestamp": "2026-08-31T09:23:32.083Z",
323
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
324
- },
325
- {
326
- "type": "assistant.streaming_delta",
327
- "data": {
328
- "totalResponseSizeBytes": 12
329
- },
330
- "ephemeral": true,
331
- "id": "cd5ba6dc-d69f-47cd-9a8a-f45759db3bf7",
332
- "timestamp": "2026-08-31T09:23:32.384Z",
333
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
334
- },
335
- {
336
- "type": "assistant.message_delta",
337
- "data": {
338
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
339
- "deltaContent": "6\n"
340
- },
341
- "ephemeral": true,
342
- "id": "43454405-8f2f-4307-9bc3-51db3f1e7e5a",
343
- "timestamp": "2026-08-31T09:23:32.385Z",
344
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
345
- },
346
- {
347
- "type": "assistant.streaming_delta",
348
- "data": {
349
- "totalResponseSizeBytes": 14
350
- },
351
- "ephemeral": true,
352
- "id": "a50fddfa-a941-492d-8777-cfc350927364",
353
- "timestamp": "2026-08-31T09:23:32.686Z",
354
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
355
- },
356
- {
357
- "type": "assistant.message_delta",
358
- "data": {
359
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
360
- "deltaContent": "7\n"
361
- },
362
- "ephemeral": true,
363
- "id": "0e37084e-7aeb-4872-be0e-5577324fc1de",
364
- "timestamp": "2026-08-31T09:23:32.687Z",
365
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
366
- },
367
- {
368
- "type": "assistant.streaming_delta",
369
- "data": {
370
- "totalResponseSizeBytes": 16
371
- },
372
- "ephemeral": true,
373
- "id": "76e5477e-08a2-4204-93dd-9904e35c3fda",
374
- "timestamp": "2026-08-31T09:23:32.988Z",
375
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
376
- },
377
- {
378
- "type": "assistant.message_delta",
379
- "data": {
380
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
381
- "deltaContent": "8\n"
382
- },
383
- "ephemeral": true,
384
- "id": "f9381171-a105-408b-aa3f-00d360863f6e",
385
- "timestamp": "2026-08-31T09:23:32.988Z",
386
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
387
- },
388
- {
389
- "type": "assistant.streaming_delta",
390
- "data": {
391
- "totalResponseSizeBytes": 18
392
- },
393
- "ephemeral": true,
394
- "id": "93160f99-19f4-4711-a2c7-84c4902a3b5b",
395
- "timestamp": "2026-08-31T09:23:33.289Z",
396
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
397
- },
398
- {
399
- "type": "assistant.message_delta",
400
- "data": {
401
- "messageId": "7932e2f5-74b2-42b7-ab9e-608f3f9fb61d",
402
- "deltaContent": "9\n"
403
- },
404
- "ephemeral": true,
405
- "id": "216c8452-b81d-411a-bb99-fdbb33727130",
406
- "timestamp": "2026-08-31T09:23:33.289Z",
407
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
408
- },
409
- {
410
- "type": "abort",
411
- "data": {
412
- "reason": "user_initiated"
413
- },
414
- "id": "d0d28f3e-4add-421d-996f-72f700a39079",
415
- "timestamp": "2026-08-31T09:23:33.339Z",
416
- "parentId": "4fd640ec-19a7-49be-859a-3f4b84aed4bf"
417
- },
418
- {
419
- "type": "pending_messages.modified",
420
- "data": {},
421
- "ephemeral": true,
422
- "id": "ea7e054a-2f39-45d9-9570-e60859dc4080",
423
- "timestamp": "2026-08-31T09:23:33.340Z",
424
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
425
- },
426
- {
427
- "type": "agent.interrupted",
428
- "data": {
429
- "activity": "model_call",
430
- "turn": 0,
431
- "elapsedMs": 2465,
432
- "model": "spike-model",
433
- "apiEndpoint": "/chat/completions",
434
- "transport": "http",
435
- "reasoningEffort": "medium",
436
- "cancelPhase": "mid_stream",
437
- "outputTtftMs": 0.080633
438
- },
439
- "ephemeral": true,
440
- "id": "c1de8adf-f18d-4138-af7a-45d1348a6e8d",
441
- "timestamp": "2026-08-31T09:23:33.341Z",
442
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
443
- },
444
- {
445
- "type": "model.telemetry",
446
- "data": {
447
- "kind": "telemetry",
448
- "telemetry": {
449
- "event": "model_call_cancelled",
450
- "properties": {
451
- "event_id": "ee8adde1-2d09-4337-a254-c79d571b2a5c",
452
- "api_endpoint": "/chat/completions",
453
- "transport": "http",
454
- "cancellation_source": "abort_signal",
455
- "attempt_id": "6e609757-a23e-44a4-9628-1b0b69738fde",
456
- "interaction_type": "conversation-user",
457
- "initiator": "user",
458
- "is_byok": "true"
459
- },
460
- "restrictedProperties": {},
461
- "metrics": {
462
- "duration_ms": 2468.2541109999997,
463
- "attempt_index": 0,
464
- "retry_index": 0,
465
- "max_prompt_tokens": 128000,
466
- "request_message_count": 8,
467
- "request_tool_result_message_count": 1,
468
- "request_tool_call_count": 1,
469
- "request_nameless_tool_call_count": 0,
470
- "request_image_part_count": 0,
471
- "request_image_parts_missing_media_type": 0
472
- }
473
- }
474
- },
475
- "ephemeral": true,
476
- "id": "503bd91a-4612-4ddc-81e5-9592c4551418",
477
- "timestamp": "2026-08-31T09:23:33.344Z",
478
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
479
- },
480
- {
481
- "type": "model.call_finished",
482
- "data": {
483
- "turnId": "0",
484
- "dispatchDurationMs": 2465,
485
- "outcome": "cancelled",
486
- "editClassifierVersion": 1,
487
- "interactionId": "5961e5ad-5ca0-4a72-b81e-b4c6bba86bf1"
488
- },
489
- "ephemeral": true,
490
- "id": "729cfd79-25b6-448a-bacc-054b6ed37895",
491
- "timestamp": "2026-08-31T09:23:33.344Z",
492
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
493
- },
494
- {
495
- "type": "model.turn_failed",
496
- "data": {
497
- "kind": "turn_failed",
498
- "model": "spike-model",
499
- "modelInfo": {
500
- "id": "spike-model"
501
- },
502
- "turn": 0,
503
- "timestampMs": 1788168213344,
504
- "error": "Request was aborted."
505
- },
506
- "ephemeral": true,
507
- "id": "0464d198-9682-4a3a-95aa-3194fe0b8292",
508
- "timestamp": "2026-08-31T09:23:33.344Z",
509
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
510
- },
511
- {
512
- "type": "model.turn_ended",
513
- "data": {
514
- "kind": "turn_ended",
515
- "model": "spike-model",
516
- "modelInfo": {
517
- "id": "spike-model",
518
- "name": "spike-model",
519
- "capabilities": {
520
- "supports": {
521
- "vision": false,
522
- "adaptive_thinking": "unsupported"
523
- },
524
- "limits": {
525
- "max_prompt_tokens": 128000,
526
- "max_context_window_tokens": 200000,
527
- "vision": {
528
- "max_prompt_image_size": 3145728,
529
- "max_prompt_images": 1,
530
- "supported_media_types": [
531
- "image/jpeg",
532
- "image/png",
533
- "image/webp"
534
- ]
535
- }
536
- }
537
- },
538
- "supported_endpoints": [
539
- "/chat/completions"
540
- ]
541
- },
542
- "turn": 0,
543
- "timestampMs": 1788168213344
544
- },
545
- "ephemeral": true,
546
- "id": "a5f099cc-dd42-45f5-85f2-8e131acaf4c7",
547
- "timestamp": "2026-08-31T09:23:33.344Z",
548
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
549
- },
550
- {
551
- "type": "assistant.turn_end",
552
- "data": {
553
- "turnId": "0"
554
- },
555
- "id": "5204ee12-f5c1-44f6-af16-6565d6f7e322",
556
- "timestamp": "2026-08-31T09:23:33.344Z",
557
- "parentId": "d0d28f3e-4add-421d-996f-72f700a39079"
558
- },
559
- {
560
- "type": "assistant.idle",
561
- "data": {
562
- "aborted": true
563
- },
564
- "ephemeral": true,
565
- "id": "7fa835d5-30cb-4397-a2b3-9bf53ab935d8",
566
- "timestamp": "2026-08-31T09:23:33.348Z",
567
- "parentId": "5204ee12-f5c1-44f6-af16-6565d6f7e322"
568
- },
569
- {
570
- "type": "session.background_tasks_changed",
571
- "data": {},
572
- "ephemeral": true,
573
- "id": "eca0df03-4aab-4fbe-9307-c2b9a74bae4f",
574
- "timestamp": "2026-08-31T09:23:33.349Z",
575
- "parentId": "5204ee12-f5c1-44f6-af16-6565d6f7e322"
576
- },
577
- {
578
- "type": "session.idle",
579
- "data": {
580
- "aborted": true,
581
- "mode": "interactive"
582
- },
583
- "ephemeral": true,
584
- "id": "e84c206e-8676-4ca5-80bb-e44105fa5ad5",
585
- "timestamp": "2026-08-31T09:23:33.350Z",
586
- "parentId": "5204ee12-f5c1-44f6-af16-6565d6f7e322"
587
- }
588
- ]