@kaiba-cloud/orbital 0.0.0-stage → 0.0.1

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,540 @@
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
+ },
219
+ "required": [
220
+ "name",
221
+ "node",
222
+ "purpose",
223
+ "lead",
224
+ "members"
225
+ ],
226
+ "additionalProperties": false
227
+ }
228
+ },
229
+ "missions": {
230
+ "type": "array",
231
+ "items": {
232
+ "type": "object",
233
+ "properties": {
234
+ "missionId": {
235
+ "type": "string"
236
+ },
237
+ "team": {
238
+ "type": [
239
+ "string",
240
+ "null"
241
+ ]
242
+ },
243
+ "state": {
244
+ "type": "string",
245
+ "enum": [
246
+ "open",
247
+ "active",
248
+ "waiting",
249
+ "paused",
250
+ "done",
251
+ "failed"
252
+ ]
253
+ },
254
+ "sessionId": {
255
+ "type": [
256
+ "string",
257
+ "null"
258
+ ]
259
+ },
260
+ "lead": {
261
+ "type": [
262
+ "string",
263
+ "null"
264
+ ]
265
+ },
266
+ "giver": {
267
+ "type": [
268
+ "string",
269
+ "null"
270
+ ]
271
+ },
272
+ "givenBy": {
273
+ "type": [
274
+ "string",
275
+ "null"
276
+ ]
277
+ },
278
+ "question": {
279
+ "type": [
280
+ "string",
281
+ "null"
282
+ ]
283
+ },
284
+ "result": {
285
+ "type": [
286
+ "string",
287
+ "null"
288
+ ]
289
+ },
290
+ "updatedAt": {
291
+ "type": [
292
+ "string",
293
+ "null"
294
+ ]
295
+ }
296
+ },
297
+ "required": [
298
+ "missionId",
299
+ "team",
300
+ "state",
301
+ "sessionId",
302
+ "lead",
303
+ "giver",
304
+ "givenBy",
305
+ "question",
306
+ "result",
307
+ "updatedAt"
308
+ ],
309
+ "additionalProperties": false
310
+ }
311
+ },
312
+ "sessions": {
313
+ "type": "array",
314
+ "items": {
315
+ "type": "object",
316
+ "properties": {
317
+ "sessionId": {
318
+ "type": "string",
319
+ "minLength": 1
320
+ },
321
+ "parentSessionId": {
322
+ "type": [
323
+ "string",
324
+ "null"
325
+ ]
326
+ },
327
+ "agent": {
328
+ "type": "string"
329
+ },
330
+ "harness": {
331
+ "type": "string"
332
+ },
333
+ "team": {
334
+ "type": [
335
+ "string",
336
+ "null"
337
+ ]
338
+ },
339
+ "mission": {
340
+ "type": [
341
+ "string",
342
+ "null"
343
+ ]
344
+ },
345
+ "role": {
346
+ "type": "string",
347
+ "enum": [
348
+ "lead",
349
+ "helper",
350
+ "attached",
351
+ "solo"
352
+ ]
353
+ },
354
+ "placement": {
355
+ "type": "string"
356
+ },
357
+ "running": {
358
+ "type": "boolean"
359
+ },
360
+ "since": {
361
+ "type": [
362
+ "string",
363
+ "null"
364
+ ]
365
+ }
366
+ },
367
+ "required": [
368
+ "sessionId",
369
+ "parentSessionId",
370
+ "agent",
371
+ "harness",
372
+ "team",
373
+ "mission",
374
+ "role",
375
+ "placement",
376
+ "running",
377
+ "since"
378
+ ],
379
+ "additionalProperties": false
380
+ }
381
+ },
382
+ "jobs": {
383
+ "type": "array",
384
+ "items": {
385
+ "type": "object",
386
+ "properties": {
387
+ "sessionId": {
388
+ "type": "string",
389
+ "minLength": 1
390
+ },
391
+ "parentSessionId": {
392
+ "type": [
393
+ "string",
394
+ "null"
395
+ ]
396
+ },
397
+ "agent": {
398
+ "type": "string"
399
+ },
400
+ "harness": {
401
+ "type": "string"
402
+ },
403
+ "team": {
404
+ "type": [
405
+ "string",
406
+ "null"
407
+ ]
408
+ },
409
+ "mission": {
410
+ "type": [
411
+ "string",
412
+ "null"
413
+ ]
414
+ },
415
+ "jobId": {
416
+ "type": "string",
417
+ "minLength": 1
418
+ },
419
+ "since": {
420
+ "type": "string"
421
+ },
422
+ "via": {
423
+ "type": [
424
+ "string",
425
+ "null"
426
+ ]
427
+ }
428
+ },
429
+ "required": [
430
+ "sessionId",
431
+ "parentSessionId",
432
+ "agent",
433
+ "harness",
434
+ "team",
435
+ "mission",
436
+ "jobId",
437
+ "since",
438
+ "via"
439
+ ],
440
+ "additionalProperties": false
441
+ }
442
+ },
443
+ "tokens": {
444
+ "type": "array",
445
+ "items": {
446
+ "type": "object",
447
+ "properties": {
448
+ "provider": {
449
+ "type": "string"
450
+ },
451
+ "model": {
452
+ "type": "string"
453
+ },
454
+ "inputTokens": {
455
+ "type": "number",
456
+ "minimum": 0
457
+ },
458
+ "outputTokens": {
459
+ "type": "number",
460
+ "minimum": 0
461
+ },
462
+ "cacheReadTokens": {
463
+ "type": "number",
464
+ "minimum": 0
465
+ },
466
+ "cacheWriteTokens": {
467
+ "type": "number",
468
+ "minimum": 0
469
+ },
470
+ "costUsd": {
471
+ "type": "number",
472
+ "minimum": 0
473
+ },
474
+ "llmCalls": {
475
+ "type": "integer",
476
+ "minimum": 0,
477
+ "maximum": 9007199254740991
478
+ },
479
+ "team": {
480
+ "type": [
481
+ "string",
482
+ "null"
483
+ ]
484
+ },
485
+ "mission": {
486
+ "type": [
487
+ "string",
488
+ "null"
489
+ ]
490
+ },
491
+ "turns": {
492
+ "type": "integer",
493
+ "minimum": 0,
494
+ "maximum": 9007199254740991
495
+ }
496
+ },
497
+ "required": [
498
+ "provider",
499
+ "model",
500
+ "inputTokens",
501
+ "outputTokens",
502
+ "cacheReadTokens",
503
+ "cacheWriteTokens",
504
+ "costUsd",
505
+ "llmCalls",
506
+ "team",
507
+ "mission",
508
+ "turns"
509
+ ],
510
+ "additionalProperties": false
511
+ }
512
+ },
513
+ "dropped": {
514
+ "type": "object",
515
+ "propertyNames": {
516
+ "type": "string"
517
+ },
518
+ "additionalProperties": {
519
+ "type": "integer",
520
+ "minimum": 0,
521
+ "maximum": 9007199254740991
522
+ }
523
+ }
524
+ },
525
+ "required": [
526
+ "v",
527
+ "node",
528
+ "sequence",
529
+ "at",
530
+ "startedAt",
531
+ "teams",
532
+ "missions",
533
+ "sessions",
534
+ "jobs",
535
+ "tokens",
536
+ "dropped"
537
+ ],
538
+ "additionalProperties": false,
539
+ "$id": "orbital:telemetry-snapshot"
540
+ }