@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,848 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "oneOf": [
4
+ {
5
+ "type": "object",
6
+ "properties": {
7
+ "v": {
8
+ "type": "string",
9
+ "const": "orbital.telemetry/v1"
10
+ },
11
+ "seq": {
12
+ "type": "integer",
13
+ "exclusiveMinimum": 0,
14
+ "maximum": 9007199254740991
15
+ },
16
+ "id": {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "at": {
21
+ "type": "string"
22
+ },
23
+ "node": {
24
+ "type": "string",
25
+ "minLength": 1
26
+ },
27
+ "kind": {
28
+ "type": "string",
29
+ "const": "node.up"
30
+ },
31
+ "workspaceDir": {
32
+ "type": "string"
33
+ },
34
+ "harnesses": {
35
+ "type": "array",
36
+ "items": {
37
+ "type": "string"
38
+ }
39
+ },
40
+ "pid": {
41
+ "type": "integer",
42
+ "minimum": -9007199254740991,
43
+ "maximum": 9007199254740991
44
+ }
45
+ },
46
+ "required": [
47
+ "v",
48
+ "seq",
49
+ "id",
50
+ "at",
51
+ "node",
52
+ "kind",
53
+ "workspaceDir",
54
+ "harnesses",
55
+ "pid"
56
+ ],
57
+ "additionalProperties": false
58
+ },
59
+ {
60
+ "type": "object",
61
+ "properties": {
62
+ "v": {
63
+ "type": "string",
64
+ "const": "orbital.telemetry/v1"
65
+ },
66
+ "seq": {
67
+ "type": "integer",
68
+ "exclusiveMinimum": 0,
69
+ "maximum": 9007199254740991
70
+ },
71
+ "id": {
72
+ "type": "string",
73
+ "minLength": 1
74
+ },
75
+ "at": {
76
+ "type": "string"
77
+ },
78
+ "node": {
79
+ "type": "string",
80
+ "minLength": 1
81
+ },
82
+ "kind": {
83
+ "type": "string",
84
+ "const": "node.down"
85
+ },
86
+ "reason": {
87
+ "type": "string"
88
+ },
89
+ "dropped": {
90
+ "type": "object",
91
+ "propertyNames": {
92
+ "type": "string"
93
+ },
94
+ "additionalProperties": {
95
+ "type": "integer",
96
+ "minimum": 0,
97
+ "maximum": 9007199254740991
98
+ }
99
+ }
100
+ },
101
+ "required": [
102
+ "v",
103
+ "seq",
104
+ "id",
105
+ "at",
106
+ "node",
107
+ "kind",
108
+ "reason",
109
+ "dropped"
110
+ ],
111
+ "additionalProperties": false
112
+ },
113
+ {
114
+ "type": "object",
115
+ "properties": {
116
+ "v": {
117
+ "type": "string",
118
+ "const": "orbital.telemetry/v1"
119
+ },
120
+ "seq": {
121
+ "type": "integer",
122
+ "exclusiveMinimum": 0,
123
+ "maximum": 9007199254740991
124
+ },
125
+ "id": {
126
+ "type": "string",
127
+ "minLength": 1
128
+ },
129
+ "at": {
130
+ "type": "string"
131
+ },
132
+ "node": {
133
+ "type": "string",
134
+ "minLength": 1
135
+ },
136
+ "sessionId": {
137
+ "type": "string",
138
+ "minLength": 1
139
+ },
140
+ "parentSessionId": {
141
+ "type": [
142
+ "string",
143
+ "null"
144
+ ]
145
+ },
146
+ "agent": {
147
+ "type": "string"
148
+ },
149
+ "harness": {
150
+ "type": "string"
151
+ },
152
+ "team": {
153
+ "type": [
154
+ "string",
155
+ "null"
156
+ ]
157
+ },
158
+ "mission": {
159
+ "type": [
160
+ "string",
161
+ "null"
162
+ ]
163
+ },
164
+ "kind": {
165
+ "type": "string",
166
+ "const": "session.started"
167
+ },
168
+ "role": {
169
+ "type": "string",
170
+ "enum": [
171
+ "lead",
172
+ "helper",
173
+ "attached",
174
+ "solo"
175
+ ]
176
+ },
177
+ "placement": {
178
+ "type": "string"
179
+ }
180
+ },
181
+ "required": [
182
+ "v",
183
+ "seq",
184
+ "id",
185
+ "at",
186
+ "node",
187
+ "sessionId",
188
+ "parentSessionId",
189
+ "agent",
190
+ "harness",
191
+ "team",
192
+ "mission",
193
+ "kind",
194
+ "role",
195
+ "placement"
196
+ ],
197
+ "additionalProperties": false
198
+ },
199
+ {
200
+ "type": "object",
201
+ "properties": {
202
+ "v": {
203
+ "type": "string",
204
+ "const": "orbital.telemetry/v1"
205
+ },
206
+ "seq": {
207
+ "type": "integer",
208
+ "exclusiveMinimum": 0,
209
+ "maximum": 9007199254740991
210
+ },
211
+ "id": {
212
+ "type": "string",
213
+ "minLength": 1
214
+ },
215
+ "at": {
216
+ "type": "string"
217
+ },
218
+ "node": {
219
+ "type": "string",
220
+ "minLength": 1
221
+ },
222
+ "sessionId": {
223
+ "type": "string",
224
+ "minLength": 1
225
+ },
226
+ "parentSessionId": {
227
+ "type": [
228
+ "string",
229
+ "null"
230
+ ]
231
+ },
232
+ "agent": {
233
+ "type": "string"
234
+ },
235
+ "harness": {
236
+ "type": "string"
237
+ },
238
+ "team": {
239
+ "type": [
240
+ "string",
241
+ "null"
242
+ ]
243
+ },
244
+ "mission": {
245
+ "type": [
246
+ "string",
247
+ "null"
248
+ ]
249
+ },
250
+ "kind": {
251
+ "type": "string",
252
+ "const": "session.ended"
253
+ },
254
+ "role": {
255
+ "type": "string",
256
+ "enum": [
257
+ "lead",
258
+ "helper",
259
+ "attached",
260
+ "solo"
261
+ ]
262
+ },
263
+ "reason": {
264
+ "type": "string"
265
+ }
266
+ },
267
+ "required": [
268
+ "v",
269
+ "seq",
270
+ "id",
271
+ "at",
272
+ "node",
273
+ "sessionId",
274
+ "parentSessionId",
275
+ "agent",
276
+ "harness",
277
+ "team",
278
+ "mission",
279
+ "kind",
280
+ "role",
281
+ "reason"
282
+ ],
283
+ "additionalProperties": false
284
+ },
285
+ {
286
+ "type": "object",
287
+ "properties": {
288
+ "v": {
289
+ "type": "string",
290
+ "const": "orbital.telemetry/v1"
291
+ },
292
+ "seq": {
293
+ "type": "integer",
294
+ "exclusiveMinimum": 0,
295
+ "maximum": 9007199254740991
296
+ },
297
+ "id": {
298
+ "type": "string",
299
+ "minLength": 1
300
+ },
301
+ "at": {
302
+ "type": "string"
303
+ },
304
+ "node": {
305
+ "type": "string",
306
+ "minLength": 1
307
+ },
308
+ "sessionId": {
309
+ "type": "string",
310
+ "minLength": 1
311
+ },
312
+ "parentSessionId": {
313
+ "type": [
314
+ "string",
315
+ "null"
316
+ ]
317
+ },
318
+ "agent": {
319
+ "type": "string"
320
+ },
321
+ "harness": {
322
+ "type": "string"
323
+ },
324
+ "team": {
325
+ "type": [
326
+ "string",
327
+ "null"
328
+ ]
329
+ },
330
+ "mission": {
331
+ "type": [
332
+ "string",
333
+ "null"
334
+ ]
335
+ },
336
+ "kind": {
337
+ "type": "string",
338
+ "const": "job.dispatched"
339
+ },
340
+ "jobId": {
341
+ "type": "string",
342
+ "minLength": 1
343
+ },
344
+ "from": {
345
+ "type": [
346
+ "string",
347
+ "null"
348
+ ]
349
+ },
350
+ "via": {
351
+ "type": [
352
+ "string",
353
+ "null"
354
+ ]
355
+ }
356
+ },
357
+ "required": [
358
+ "v",
359
+ "seq",
360
+ "id",
361
+ "at",
362
+ "node",
363
+ "sessionId",
364
+ "parentSessionId",
365
+ "agent",
366
+ "harness",
367
+ "team",
368
+ "mission",
369
+ "kind",
370
+ "jobId",
371
+ "from",
372
+ "via"
373
+ ],
374
+ "additionalProperties": false
375
+ },
376
+ {
377
+ "type": "object",
378
+ "properties": {
379
+ "v": {
380
+ "type": "string",
381
+ "const": "orbital.telemetry/v1"
382
+ },
383
+ "seq": {
384
+ "type": "integer",
385
+ "exclusiveMinimum": 0,
386
+ "maximum": 9007199254740991
387
+ },
388
+ "id": {
389
+ "type": "string",
390
+ "minLength": 1
391
+ },
392
+ "at": {
393
+ "type": "string"
394
+ },
395
+ "node": {
396
+ "type": "string",
397
+ "minLength": 1
398
+ },
399
+ "sessionId": {
400
+ "type": "string",
401
+ "minLength": 1
402
+ },
403
+ "parentSessionId": {
404
+ "type": [
405
+ "string",
406
+ "null"
407
+ ]
408
+ },
409
+ "agent": {
410
+ "type": "string"
411
+ },
412
+ "harness": {
413
+ "type": "string"
414
+ },
415
+ "team": {
416
+ "type": [
417
+ "string",
418
+ "null"
419
+ ]
420
+ },
421
+ "mission": {
422
+ "type": [
423
+ "string",
424
+ "null"
425
+ ]
426
+ },
427
+ "kind": {
428
+ "type": "string",
429
+ "const": "job.ended"
430
+ },
431
+ "jobId": {
432
+ "type": "string",
433
+ "minLength": 1
434
+ },
435
+ "outcome": {
436
+ "type": "string",
437
+ "enum": [
438
+ "submitted",
439
+ "working",
440
+ "completed",
441
+ "failed",
442
+ "canceled",
443
+ "input-required",
444
+ "rejected",
445
+ "auth-required"
446
+ ]
447
+ },
448
+ "durationMs": {
449
+ "type": "number",
450
+ "minimum": 0
451
+ },
452
+ "via": {
453
+ "type": [
454
+ "string",
455
+ "null"
456
+ ]
457
+ }
458
+ },
459
+ "required": [
460
+ "v",
461
+ "seq",
462
+ "id",
463
+ "at",
464
+ "node",
465
+ "sessionId",
466
+ "parentSessionId",
467
+ "agent",
468
+ "harness",
469
+ "team",
470
+ "mission",
471
+ "kind",
472
+ "jobId",
473
+ "outcome",
474
+ "durationMs",
475
+ "via"
476
+ ],
477
+ "additionalProperties": false
478
+ },
479
+ {
480
+ "type": "object",
481
+ "properties": {
482
+ "v": {
483
+ "type": "string",
484
+ "const": "orbital.telemetry/v1"
485
+ },
486
+ "seq": {
487
+ "type": "integer",
488
+ "exclusiveMinimum": 0,
489
+ "maximum": 9007199254740991
490
+ },
491
+ "id": {
492
+ "type": "string",
493
+ "minLength": 1
494
+ },
495
+ "at": {
496
+ "type": "string"
497
+ },
498
+ "node": {
499
+ "type": "string",
500
+ "minLength": 1
501
+ },
502
+ "kind": {
503
+ "type": "string",
504
+ "const": "mission.state"
505
+ },
506
+ "mission": {
507
+ "type": "string",
508
+ "minLength": 1
509
+ },
510
+ "team": {
511
+ "type": [
512
+ "string",
513
+ "null"
514
+ ]
515
+ },
516
+ "from": {
517
+ "anyOf": [
518
+ {
519
+ "type": "string",
520
+ "enum": [
521
+ "open",
522
+ "active",
523
+ "waiting",
524
+ "paused",
525
+ "done",
526
+ "failed"
527
+ ]
528
+ },
529
+ {
530
+ "type": "null"
531
+ }
532
+ ]
533
+ },
534
+ "to": {
535
+ "type": "string",
536
+ "enum": [
537
+ "open",
538
+ "active",
539
+ "waiting",
540
+ "paused",
541
+ "done",
542
+ "failed"
543
+ ]
544
+ },
545
+ "transition": {
546
+ "type": "string",
547
+ "enum": [
548
+ "new",
549
+ "started",
550
+ "resumed",
551
+ "answered",
552
+ "paused",
553
+ "waiting",
554
+ "question",
555
+ "done",
556
+ "failed",
557
+ "changed"
558
+ ]
559
+ },
560
+ "reason": {
561
+ "type": [
562
+ "string",
563
+ "null"
564
+ ]
565
+ },
566
+ "by": {
567
+ "type": "string"
568
+ },
569
+ "giver": {
570
+ "type": [
571
+ "string",
572
+ "null"
573
+ ]
574
+ },
575
+ "sessionId": {
576
+ "type": [
577
+ "string",
578
+ "null"
579
+ ]
580
+ },
581
+ "lead": {
582
+ "type": [
583
+ "string",
584
+ "null"
585
+ ]
586
+ },
587
+ "question": {
588
+ "type": [
589
+ "string",
590
+ "null"
591
+ ]
592
+ },
593
+ "result": {
594
+ "type": [
595
+ "string",
596
+ "null"
597
+ ]
598
+ }
599
+ },
600
+ "required": [
601
+ "v",
602
+ "seq",
603
+ "id",
604
+ "at",
605
+ "node",
606
+ "kind",
607
+ "mission",
608
+ "team",
609
+ "from",
610
+ "to",
611
+ "transition",
612
+ "reason",
613
+ "by",
614
+ "giver",
615
+ "sessionId",
616
+ "lead",
617
+ "question",
618
+ "result"
619
+ ],
620
+ "additionalProperties": false
621
+ },
622
+ {
623
+ "type": "object",
624
+ "properties": {
625
+ "v": {
626
+ "type": "string",
627
+ "const": "orbital.telemetry/v1"
628
+ },
629
+ "seq": {
630
+ "type": "integer",
631
+ "exclusiveMinimum": 0,
632
+ "maximum": 9007199254740991
633
+ },
634
+ "id": {
635
+ "type": "string",
636
+ "minLength": 1
637
+ },
638
+ "at": {
639
+ "type": "string"
640
+ },
641
+ "node": {
642
+ "type": "string",
643
+ "minLength": 1
644
+ },
645
+ "sessionId": {
646
+ "type": "string",
647
+ "minLength": 1
648
+ },
649
+ "parentSessionId": {
650
+ "type": [
651
+ "string",
652
+ "null"
653
+ ]
654
+ },
655
+ "agent": {
656
+ "type": "string"
657
+ },
658
+ "harness": {
659
+ "type": "string"
660
+ },
661
+ "team": {
662
+ "type": [
663
+ "string",
664
+ "null"
665
+ ]
666
+ },
667
+ "mission": {
668
+ "type": [
669
+ "string",
670
+ "null"
671
+ ]
672
+ },
673
+ "kind": {
674
+ "type": "string",
675
+ "const": "turn.started"
676
+ },
677
+ "turnId": {
678
+ "type": "string",
679
+ "minLength": 1
680
+ }
681
+ },
682
+ "required": [
683
+ "v",
684
+ "seq",
685
+ "id",
686
+ "at",
687
+ "node",
688
+ "sessionId",
689
+ "parentSessionId",
690
+ "agent",
691
+ "harness",
692
+ "team",
693
+ "mission",
694
+ "kind",
695
+ "turnId"
696
+ ],
697
+ "additionalProperties": false
698
+ },
699
+ {
700
+ "type": "object",
701
+ "properties": {
702
+ "v": {
703
+ "type": "string",
704
+ "const": "orbital.telemetry/v1"
705
+ },
706
+ "seq": {
707
+ "type": "integer",
708
+ "exclusiveMinimum": 0,
709
+ "maximum": 9007199254740991
710
+ },
711
+ "id": {
712
+ "type": "string",
713
+ "minLength": 1
714
+ },
715
+ "at": {
716
+ "type": "string"
717
+ },
718
+ "node": {
719
+ "type": "string",
720
+ "minLength": 1
721
+ },
722
+ "sessionId": {
723
+ "type": "string",
724
+ "minLength": 1
725
+ },
726
+ "parentSessionId": {
727
+ "type": [
728
+ "string",
729
+ "null"
730
+ ]
731
+ },
732
+ "agent": {
733
+ "type": "string"
734
+ },
735
+ "harness": {
736
+ "type": "string"
737
+ },
738
+ "team": {
739
+ "type": [
740
+ "string",
741
+ "null"
742
+ ]
743
+ },
744
+ "mission": {
745
+ "type": [
746
+ "string",
747
+ "null"
748
+ ]
749
+ },
750
+ "kind": {
751
+ "type": "string",
752
+ "const": "turn.ended"
753
+ },
754
+ "turnId": {
755
+ "type": "string",
756
+ "minLength": 1
757
+ },
758
+ "outcome": {
759
+ "type": "string",
760
+ "enum": [
761
+ "submitted",
762
+ "working",
763
+ "completed",
764
+ "failed",
765
+ "canceled",
766
+ "input-required",
767
+ "rejected",
768
+ "auth-required"
769
+ ]
770
+ },
771
+ "durationMs": {
772
+ "type": "number",
773
+ "minimum": 0
774
+ },
775
+ "usage": {
776
+ "type": "array",
777
+ "items": {
778
+ "type": "object",
779
+ "properties": {
780
+ "provider": {
781
+ "type": "string"
782
+ },
783
+ "model": {
784
+ "type": "string"
785
+ },
786
+ "inputTokens": {
787
+ "type": "number",
788
+ "minimum": 0
789
+ },
790
+ "outputTokens": {
791
+ "type": "number",
792
+ "minimum": 0
793
+ },
794
+ "cacheReadTokens": {
795
+ "type": "number",
796
+ "minimum": 0
797
+ },
798
+ "cacheWriteTokens": {
799
+ "type": "number",
800
+ "minimum": 0
801
+ },
802
+ "costUsd": {
803
+ "type": "number",
804
+ "minimum": 0
805
+ },
806
+ "llmCalls": {
807
+ "type": "integer",
808
+ "minimum": 0,
809
+ "maximum": 9007199254740991
810
+ }
811
+ },
812
+ "required": [
813
+ "provider",
814
+ "model",
815
+ "inputTokens",
816
+ "outputTokens",
817
+ "cacheReadTokens",
818
+ "cacheWriteTokens",
819
+ "costUsd",
820
+ "llmCalls"
821
+ ],
822
+ "additionalProperties": false
823
+ }
824
+ }
825
+ },
826
+ "required": [
827
+ "v",
828
+ "seq",
829
+ "id",
830
+ "at",
831
+ "node",
832
+ "sessionId",
833
+ "parentSessionId",
834
+ "agent",
835
+ "harness",
836
+ "team",
837
+ "mission",
838
+ "kind",
839
+ "turnId",
840
+ "outcome",
841
+ "durationMs",
842
+ "usage"
843
+ ],
844
+ "additionalProperties": false
845
+ }
846
+ ],
847
+ "$id": "orbital:telemetry-event"
848
+ }