@kaiba-cloud/orbital 0.0.0-stage → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,556 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "v": {
6
+ "type": "string",
7
+ "const": "orbital.telemetry/v1"
8
+ },
9
+ "node": {
10
+ "type": "string",
11
+ "minLength": 1
12
+ },
13
+ "sequence": {
14
+ "type": "integer",
15
+ "minimum": 0,
16
+ "maximum": 9007199254740991
17
+ },
18
+ "at": {
19
+ "type": "string"
20
+ },
21
+ "startedAt": {
22
+ "type": "string"
23
+ },
24
+ "teams": {
25
+ "type": "array",
26
+ "items": {
27
+ "type": "object",
28
+ "properties": {
29
+ "name": {
30
+ "type": "string"
31
+ },
32
+ "node": {
33
+ "type": "string"
34
+ },
35
+ "purpose": {
36
+ "type": [
37
+ "string",
38
+ "null"
39
+ ]
40
+ },
41
+ "lead": {
42
+ "type": [
43
+ "string",
44
+ "null"
45
+ ]
46
+ },
47
+ "members": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "object",
51
+ "properties": {
52
+ "agent": {
53
+ "type": "string"
54
+ },
55
+ "role": {
56
+ "type": "string",
57
+ "enum": [
58
+ "lead",
59
+ "member"
60
+ ]
61
+ },
62
+ "responsibility": {
63
+ "type": [
64
+ "string",
65
+ "null"
66
+ ]
67
+ },
68
+ "harness": {
69
+ "type": [
70
+ "string",
71
+ "null"
72
+ ]
73
+ },
74
+ "placement": {
75
+ "type": [
76
+ "string",
77
+ "null"
78
+ ]
79
+ },
80
+ "state": {
81
+ "type": "string",
82
+ "enum": [
83
+ "working",
84
+ "idle"
85
+ ]
86
+ },
87
+ "lastActivityAt": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ]
92
+ },
93
+ "work": {
94
+ "type": "array",
95
+ "items": {
96
+ "oneOf": [
97
+ {
98
+ "type": "object",
99
+ "properties": {
100
+ "kind": {
101
+ "type": "string",
102
+ "const": "session"
103
+ },
104
+ "sessionId": {
105
+ "type": "string"
106
+ },
107
+ "running": {
108
+ "type": "boolean"
109
+ },
110
+ "status": {
111
+ "type": "string"
112
+ },
113
+ "doing": {
114
+ "type": [
115
+ "string",
116
+ "null"
117
+ ]
118
+ },
119
+ "since": {
120
+ "type": [
121
+ "string",
122
+ "null"
123
+ ]
124
+ },
125
+ "lastActivityAt": {
126
+ "type": [
127
+ "string",
128
+ "null"
129
+ ]
130
+ }
131
+ },
132
+ "required": [
133
+ "kind",
134
+ "sessionId",
135
+ "running",
136
+ "status",
137
+ "doing",
138
+ "since",
139
+ "lastActivityAt"
140
+ ],
141
+ "additionalProperties": false
142
+ },
143
+ {
144
+ "type": "object",
145
+ "properties": {
146
+ "kind": {
147
+ "type": "string",
148
+ "const": "subagent"
149
+ },
150
+ "taskId": {
151
+ "type": "string"
152
+ },
153
+ "via": {
154
+ "type": "string"
155
+ },
156
+ "viaSessionId": {
157
+ "type": "string"
158
+ },
159
+ "running": {
160
+ "type": "boolean"
161
+ },
162
+ "state": {
163
+ "type": "string",
164
+ "enum": [
165
+ "running",
166
+ "completed",
167
+ "failed",
168
+ "stopped"
169
+ ]
170
+ },
171
+ "description": {
172
+ "type": "string"
173
+ },
174
+ "lastTool": {
175
+ "type": [
176
+ "string",
177
+ "null"
178
+ ]
179
+ },
180
+ "startedAt": {
181
+ "type": "string"
182
+ },
183
+ "lastActivityAt": {
184
+ "type": "string"
185
+ }
186
+ },
187
+ "required": [
188
+ "kind",
189
+ "taskId",
190
+ "via",
191
+ "viaSessionId",
192
+ "running",
193
+ "state",
194
+ "description",
195
+ "lastTool",
196
+ "startedAt",
197
+ "lastActivityAt"
198
+ ],
199
+ "additionalProperties": false
200
+ }
201
+ ]
202
+ }
203
+ }
204
+ },
205
+ "required": [
206
+ "agent",
207
+ "role",
208
+ "responsibility",
209
+ "harness",
210
+ "placement",
211
+ "state",
212
+ "lastActivityAt",
213
+ "work"
214
+ ],
215
+ "additionalProperties": false
216
+ }
217
+ },
218
+ "problems": {
219
+ "default": [],
220
+ "type": "array",
221
+ "items": {
222
+ "type": "string"
223
+ }
224
+ },
225
+ "retiring": {
226
+ "default": null,
227
+ "type": [
228
+ "string",
229
+ "null"
230
+ ]
231
+ }
232
+ },
233
+ "required": [
234
+ "name",
235
+ "node",
236
+ "purpose",
237
+ "lead",
238
+ "members",
239
+ "problems",
240
+ "retiring"
241
+ ],
242
+ "additionalProperties": false
243
+ }
244
+ },
245
+ "missions": {
246
+ "type": "array",
247
+ "items": {
248
+ "type": "object",
249
+ "properties": {
250
+ "missionId": {
251
+ "type": "string"
252
+ },
253
+ "team": {
254
+ "type": [
255
+ "string",
256
+ "null"
257
+ ]
258
+ },
259
+ "state": {
260
+ "type": "string",
261
+ "enum": [
262
+ "open",
263
+ "active",
264
+ "waiting",
265
+ "paused",
266
+ "done",
267
+ "failed"
268
+ ]
269
+ },
270
+ "sessionId": {
271
+ "type": [
272
+ "string",
273
+ "null"
274
+ ]
275
+ },
276
+ "lead": {
277
+ "type": [
278
+ "string",
279
+ "null"
280
+ ]
281
+ },
282
+ "giver": {
283
+ "type": [
284
+ "string",
285
+ "null"
286
+ ]
287
+ },
288
+ "givenBy": {
289
+ "type": [
290
+ "string",
291
+ "null"
292
+ ]
293
+ },
294
+ "question": {
295
+ "type": [
296
+ "string",
297
+ "null"
298
+ ]
299
+ },
300
+ "result": {
301
+ "type": [
302
+ "string",
303
+ "null"
304
+ ]
305
+ },
306
+ "updatedAt": {
307
+ "type": [
308
+ "string",
309
+ "null"
310
+ ]
311
+ }
312
+ },
313
+ "required": [
314
+ "missionId",
315
+ "team",
316
+ "state",
317
+ "sessionId",
318
+ "lead",
319
+ "giver",
320
+ "givenBy",
321
+ "question",
322
+ "result",
323
+ "updatedAt"
324
+ ],
325
+ "additionalProperties": false
326
+ }
327
+ },
328
+ "sessions": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "object",
332
+ "properties": {
333
+ "sessionId": {
334
+ "type": "string",
335
+ "minLength": 1
336
+ },
337
+ "parentSessionId": {
338
+ "type": [
339
+ "string",
340
+ "null"
341
+ ]
342
+ },
343
+ "agent": {
344
+ "type": "string"
345
+ },
346
+ "harness": {
347
+ "type": "string"
348
+ },
349
+ "team": {
350
+ "type": [
351
+ "string",
352
+ "null"
353
+ ]
354
+ },
355
+ "mission": {
356
+ "type": [
357
+ "string",
358
+ "null"
359
+ ]
360
+ },
361
+ "role": {
362
+ "type": "string",
363
+ "enum": [
364
+ "lead",
365
+ "helper",
366
+ "attached",
367
+ "solo"
368
+ ]
369
+ },
370
+ "placement": {
371
+ "type": "string"
372
+ },
373
+ "running": {
374
+ "type": "boolean"
375
+ },
376
+ "since": {
377
+ "type": [
378
+ "string",
379
+ "null"
380
+ ]
381
+ }
382
+ },
383
+ "required": [
384
+ "sessionId",
385
+ "parentSessionId",
386
+ "agent",
387
+ "harness",
388
+ "team",
389
+ "mission",
390
+ "role",
391
+ "placement",
392
+ "running",
393
+ "since"
394
+ ],
395
+ "additionalProperties": false
396
+ }
397
+ },
398
+ "jobs": {
399
+ "type": "array",
400
+ "items": {
401
+ "type": "object",
402
+ "properties": {
403
+ "sessionId": {
404
+ "type": "string",
405
+ "minLength": 1
406
+ },
407
+ "parentSessionId": {
408
+ "type": [
409
+ "string",
410
+ "null"
411
+ ]
412
+ },
413
+ "agent": {
414
+ "type": "string"
415
+ },
416
+ "harness": {
417
+ "type": "string"
418
+ },
419
+ "team": {
420
+ "type": [
421
+ "string",
422
+ "null"
423
+ ]
424
+ },
425
+ "mission": {
426
+ "type": [
427
+ "string",
428
+ "null"
429
+ ]
430
+ },
431
+ "jobId": {
432
+ "type": "string",
433
+ "minLength": 1
434
+ },
435
+ "since": {
436
+ "type": "string"
437
+ },
438
+ "via": {
439
+ "type": [
440
+ "string",
441
+ "null"
442
+ ]
443
+ }
444
+ },
445
+ "required": [
446
+ "sessionId",
447
+ "parentSessionId",
448
+ "agent",
449
+ "harness",
450
+ "team",
451
+ "mission",
452
+ "jobId",
453
+ "since",
454
+ "via"
455
+ ],
456
+ "additionalProperties": false
457
+ }
458
+ },
459
+ "tokens": {
460
+ "type": "array",
461
+ "items": {
462
+ "type": "object",
463
+ "properties": {
464
+ "provider": {
465
+ "type": "string"
466
+ },
467
+ "model": {
468
+ "type": "string"
469
+ },
470
+ "inputTokens": {
471
+ "type": "number",
472
+ "minimum": 0
473
+ },
474
+ "outputTokens": {
475
+ "type": "number",
476
+ "minimum": 0
477
+ },
478
+ "cacheReadTokens": {
479
+ "type": "number",
480
+ "minimum": 0
481
+ },
482
+ "cacheWriteTokens": {
483
+ "type": "number",
484
+ "minimum": 0
485
+ },
486
+ "costUsd": {
487
+ "type": "number",
488
+ "minimum": 0
489
+ },
490
+ "llmCalls": {
491
+ "type": "integer",
492
+ "minimum": 0,
493
+ "maximum": 9007199254740991
494
+ },
495
+ "team": {
496
+ "type": [
497
+ "string",
498
+ "null"
499
+ ]
500
+ },
501
+ "mission": {
502
+ "type": [
503
+ "string",
504
+ "null"
505
+ ]
506
+ },
507
+ "turns": {
508
+ "type": "integer",
509
+ "minimum": 0,
510
+ "maximum": 9007199254740991
511
+ }
512
+ },
513
+ "required": [
514
+ "provider",
515
+ "model",
516
+ "inputTokens",
517
+ "outputTokens",
518
+ "cacheReadTokens",
519
+ "cacheWriteTokens",
520
+ "costUsd",
521
+ "llmCalls",
522
+ "team",
523
+ "mission",
524
+ "turns"
525
+ ],
526
+ "additionalProperties": false
527
+ }
528
+ },
529
+ "dropped": {
530
+ "type": "object",
531
+ "propertyNames": {
532
+ "type": "string"
533
+ },
534
+ "additionalProperties": {
535
+ "type": "integer",
536
+ "minimum": 0,
537
+ "maximum": 9007199254740991
538
+ }
539
+ }
540
+ },
541
+ "required": [
542
+ "v",
543
+ "node",
544
+ "sequence",
545
+ "at",
546
+ "startedAt",
547
+ "teams",
548
+ "missions",
549
+ "sessions",
550
+ "jobs",
551
+ "tokens",
552
+ "dropped"
553
+ ],
554
+ "additionalProperties": false,
555
+ "$id": "orbital:telemetry-snapshot"
556
+ }