@anhlp/alp-protocol 0.0.0-stage → 0.10.0

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,1550 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$defs": {
4
+ "error": {
5
+ "type": "object",
6
+ "properties": {
7
+ "code": {
8
+ "type": "integer"
9
+ },
10
+ "message": {
11
+ "type": "string"
12
+ },
13
+ "data": {}
14
+ },
15
+ "required": [
16
+ "code",
17
+ "message"
18
+ ],
19
+ "additionalProperties": true
20
+ },
21
+ "session": {
22
+ "type": "object",
23
+ "properties": {
24
+ "id": {
25
+ "type": "string"
26
+ },
27
+ "projectRoot": {
28
+ "type": "string"
29
+ },
30
+ "agent": {
31
+ "type": "string"
32
+ },
33
+ "runtime": {
34
+ "enum": [
35
+ "claude",
36
+ "codex",
37
+ "acp",
38
+ "antigravity"
39
+ ]
40
+ },
41
+ "model": {
42
+ "type": "string"
43
+ },
44
+ "mode": {
45
+ "type": "string"
46
+ },
47
+ "thinking": {
48
+ "type": "string"
49
+ },
50
+ "workflow": {
51
+ "type": "object",
52
+ "properties": {
53
+ "mode": {
54
+ "type": "string"
55
+ },
56
+ "maxPeers": {
57
+ "type": "integer"
58
+ },
59
+ "supervisor": {
60
+ "type": "boolean"
61
+ }
62
+ },
63
+ "required": [
64
+ "mode",
65
+ "maxPeers",
66
+ "supervisor"
67
+ ],
68
+ "additionalProperties": true
69
+ },
70
+ "threadId": {
71
+ "type": "string"
72
+ },
73
+ "persistent": {
74
+ "type": "boolean"
75
+ },
76
+ "busy": {
77
+ "type": "boolean"
78
+ },
79
+ "parentId": {
80
+ "type": "string"
81
+ },
82
+ "toolCallId": {
83
+ "type": "string"
84
+ },
85
+ "activeTurnId": {
86
+ "type": "string"
87
+ },
88
+ "parked": {
89
+ "type": "string"
90
+ },
91
+ "instructionsSha": {
92
+ "type": "string"
93
+ },
94
+ "teamLabel": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "required": [
99
+ "id",
100
+ "projectRoot",
101
+ "agent",
102
+ "runtime",
103
+ "model",
104
+ "mode",
105
+ "thinking",
106
+ "workflow",
107
+ "threadId",
108
+ "persistent",
109
+ "busy"
110
+ ],
111
+ "additionalProperties": true
112
+ },
113
+ "assignment": {
114
+ "type": "object",
115
+ "properties": {
116
+ "id": {
117
+ "type": "string"
118
+ },
119
+ "agent": {
120
+ "type": "string"
121
+ },
122
+ "mode": {
123
+ "type": "string"
124
+ },
125
+ "status": {
126
+ "type": "string"
127
+ },
128
+ "startedAt": {
129
+ "type": "string"
130
+ },
131
+ "worktree": {
132
+ "type": "object",
133
+ "properties": {
134
+ "branch": {
135
+ "type": "string"
136
+ },
137
+ "path": {
138
+ "type": "string"
139
+ }
140
+ },
141
+ "required": [
142
+ "branch",
143
+ "path"
144
+ ],
145
+ "additionalProperties": true
146
+ }
147
+ },
148
+ "required": [
149
+ "id",
150
+ "agent",
151
+ "mode",
152
+ "status",
153
+ "startedAt"
154
+ ],
155
+ "additionalProperties": true
156
+ },
157
+ "mail": {
158
+ "type": "object",
159
+ "properties": {
160
+ "id": {
161
+ "type": "string"
162
+ },
163
+ "kind": {
164
+ "enum": [
165
+ "question",
166
+ "answer",
167
+ "note",
168
+ "steer",
169
+ "result",
170
+ "stalled",
171
+ "board",
172
+ "checkin"
173
+ ]
174
+ },
175
+ "from": {
176
+ "type": "string"
177
+ },
178
+ "assignment": {
179
+ "type": "string"
180
+ },
181
+ "body": {
182
+ "type": "string"
183
+ },
184
+ "replyTo": {
185
+ "type": "string"
186
+ },
187
+ "result": {
188
+ "type": "object"
189
+ },
190
+ "redelivered": {
191
+ "type": "boolean"
192
+ }
193
+ },
194
+ "required": [
195
+ "id",
196
+ "kind",
197
+ "from",
198
+ "assignment"
199
+ ],
200
+ "additionalProperties": true
201
+ },
202
+ "pin": {
203
+ "type": "object",
204
+ "properties": {
205
+ "id": {
206
+ "type": "string"
207
+ },
208
+ "project": {
209
+ "type": "string"
210
+ },
211
+ "kind": {
212
+ "enum": [
213
+ "claim",
214
+ "decision",
215
+ "finding"
216
+ ]
217
+ },
218
+ "body": {
219
+ "type": "string"
220
+ },
221
+ "paths": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "string"
225
+ }
226
+ },
227
+ "agent": {
228
+ "type": "string"
229
+ },
230
+ "sessionId": {
231
+ "type": "string"
232
+ },
233
+ "rootId": {
234
+ "type": "string"
235
+ },
236
+ "at": {
237
+ "type": "string"
238
+ },
239
+ "released": {
240
+ "type": "string"
241
+ },
242
+ "task": {
243
+ "type": "string"
244
+ }
245
+ },
246
+ "required": [
247
+ "id",
248
+ "project",
249
+ "kind",
250
+ "body",
251
+ "agent",
252
+ "sessionId",
253
+ "rootId",
254
+ "at"
255
+ ],
256
+ "additionalProperties": true
257
+ },
258
+ "question": {
259
+ "type": "object",
260
+ "properties": {
261
+ "id": {
262
+ "type": "string"
263
+ },
264
+ "sessionId": {
265
+ "type": "string"
266
+ },
267
+ "rootId": {
268
+ "type": "string"
269
+ },
270
+ "agent": {
271
+ "type": "string"
272
+ },
273
+ "body": {
274
+ "type": "string"
275
+ },
276
+ "options": {
277
+ "type": "array",
278
+ "items": {
279
+ "type": "string"
280
+ }
281
+ },
282
+ "askedAt": {
283
+ "type": "string"
284
+ }
285
+ },
286
+ "required": [
287
+ "id",
288
+ "sessionId",
289
+ "rootId",
290
+ "agent",
291
+ "body",
292
+ "askedAt"
293
+ ],
294
+ "additionalProperties": true
295
+ },
296
+ "spec": {
297
+ "type": "object",
298
+ "properties": {
299
+ "cwd": {
300
+ "type": "string"
301
+ },
302
+ "agent": {
303
+ "type": "string"
304
+ },
305
+ "model": {
306
+ "type": "string"
307
+ },
308
+ "mode": {
309
+ "type": "string"
310
+ },
311
+ "thinking": {
312
+ "type": "string"
313
+ },
314
+ "persist": {
315
+ "type": "boolean"
316
+ },
317
+ "restore": {
318
+ "type": "object"
319
+ }
320
+ },
321
+ "required": [
322
+ "cwd"
323
+ ],
324
+ "additionalProperties": true
325
+ },
326
+ "item": {
327
+ "oneOf": [
328
+ {
329
+ "type": "object",
330
+ "properties": {
331
+ "kind": {
332
+ "const": "user_message"
333
+ },
334
+ "id": {
335
+ "type": "string"
336
+ },
337
+ "text": {
338
+ "type": "string"
339
+ },
340
+ "clientMessageId": {
341
+ "type": "string"
342
+ }
343
+ },
344
+ "required": [
345
+ "kind",
346
+ "id",
347
+ "text"
348
+ ],
349
+ "additionalProperties": true
350
+ },
351
+ {
352
+ "type": "object",
353
+ "properties": {
354
+ "kind": {
355
+ "const": "assistant_message"
356
+ },
357
+ "id": {
358
+ "type": "string"
359
+ },
360
+ "text": {
361
+ "type": "string"
362
+ }
363
+ },
364
+ "required": [
365
+ "kind",
366
+ "id",
367
+ "text"
368
+ ],
369
+ "additionalProperties": true
370
+ },
371
+ {
372
+ "type": "object",
373
+ "properties": {
374
+ "kind": {
375
+ "const": "notice"
376
+ },
377
+ "id": {
378
+ "type": "string"
379
+ },
380
+ "level": {
381
+ "enum": [
382
+ "info",
383
+ "warning",
384
+ "error"
385
+ ]
386
+ },
387
+ "text": {
388
+ "type": "string"
389
+ }
390
+ },
391
+ "required": [
392
+ "kind",
393
+ "id",
394
+ "level",
395
+ "text"
396
+ ],
397
+ "additionalProperties": true
398
+ },
399
+ {
400
+ "type": "object",
401
+ "properties": {
402
+ "kind": {
403
+ "const": "compaction"
404
+ },
405
+ "id": {
406
+ "type": "string"
407
+ },
408
+ "status": {
409
+ "enum": [
410
+ "running",
411
+ "completed",
412
+ "failed"
413
+ ]
414
+ },
415
+ "trigger": {
416
+ "type": "string"
417
+ },
418
+ "preTokens": {
419
+ "type": "integer"
420
+ },
421
+ "postTokens": {
422
+ "type": "integer"
423
+ }
424
+ },
425
+ "required": [
426
+ "kind",
427
+ "id",
428
+ "status"
429
+ ],
430
+ "additionalProperties": true
431
+ },
432
+ {
433
+ "type": "object",
434
+ "properties": {
435
+ "kind": {
436
+ "const": "todo"
437
+ },
438
+ "id": {
439
+ "type": "string"
440
+ },
441
+ "items": {
442
+ "type": "array",
443
+ "items": {
444
+ "type": "object",
445
+ "properties": {
446
+ "id": {
447
+ "type": "string"
448
+ },
449
+ "text": {
450
+ "type": "string"
451
+ },
452
+ "status": {
453
+ "enum": [
454
+ "pending",
455
+ "in_progress",
456
+ "completed"
457
+ ]
458
+ }
459
+ },
460
+ "required": [
461
+ "id",
462
+ "text",
463
+ "status"
464
+ ],
465
+ "additionalProperties": true
466
+ }
467
+ }
468
+ },
469
+ "required": [
470
+ "kind",
471
+ "id",
472
+ "items"
473
+ ],
474
+ "additionalProperties": true
475
+ },
476
+ {
477
+ "type": "object",
478
+ "properties": {
479
+ "kind": {
480
+ "const": "tool_call"
481
+ },
482
+ "id": {
483
+ "type": "string"
484
+ },
485
+ "callId": {
486
+ "type": "string"
487
+ },
488
+ "name": {
489
+ "type": "string"
490
+ },
491
+ "status": {
492
+ "enum": [
493
+ "running",
494
+ "completed",
495
+ "failed"
496
+ ]
497
+ },
498
+ "error": {
499
+ "type": "string"
500
+ },
501
+ "detail": {
502
+ "oneOf": [
503
+ {
504
+ "type": "object",
505
+ "properties": {
506
+ "type": {
507
+ "const": "shell"
508
+ },
509
+ "command": {
510
+ "type": "string"
511
+ },
512
+ "cwd": {
513
+ "type": "string"
514
+ },
515
+ "output": {
516
+ "type": "string"
517
+ },
518
+ "exitCode": {
519
+ "type": [
520
+ "integer",
521
+ "null"
522
+ ]
523
+ }
524
+ },
525
+ "required": [
526
+ "type",
527
+ "command",
528
+ "output"
529
+ ],
530
+ "additionalProperties": true
531
+ },
532
+ {
533
+ "type": "object",
534
+ "properties": {
535
+ "type": {
536
+ "const": "unknown"
537
+ },
538
+ "input": {},
539
+ "output": {}
540
+ },
541
+ "required": [
542
+ "type",
543
+ "input",
544
+ "output"
545
+ ],
546
+ "additionalProperties": true
547
+ }
548
+ ]
549
+ }
550
+ },
551
+ "required": [
552
+ "kind",
553
+ "id",
554
+ "callId",
555
+ "name",
556
+ "status",
557
+ "detail"
558
+ ],
559
+ "additionalProperties": true
560
+ }
561
+ ]
562
+ },
563
+ "event": {
564
+ "oneOf": [
565
+ {
566
+ "type": "object",
567
+ "properties": {
568
+ "type": {
569
+ "const": "session.opened"
570
+ },
571
+ "session": {
572
+ "$ref": "#/$defs/session"
573
+ },
574
+ "cwd": {
575
+ "type": "string"
576
+ },
577
+ "effective": {
578
+ "type": "object",
579
+ "properties": {
580
+ "model": {
581
+ "type": "string"
582
+ },
583
+ "thinking": {
584
+ "type": "string"
585
+ }
586
+ },
587
+ "required": [
588
+ "model",
589
+ "thinking"
590
+ ],
591
+ "additionalProperties": true
592
+ }
593
+ },
594
+ "required": [
595
+ "type",
596
+ "session",
597
+ "cwd",
598
+ "effective"
599
+ ],
600
+ "additionalProperties": true
601
+ },
602
+ {
603
+ "type": "object",
604
+ "properties": {
605
+ "type": {
606
+ "const": "session.ready"
607
+ }
608
+ },
609
+ "required": [
610
+ "type"
611
+ ],
612
+ "additionalProperties": true
613
+ },
614
+ {
615
+ "type": "object",
616
+ "properties": {
617
+ "type": {
618
+ "const": "session.updated"
619
+ },
620
+ "session": {
621
+ "$ref": "#/$defs/session"
622
+ }
623
+ },
624
+ "required": [
625
+ "type",
626
+ "session"
627
+ ],
628
+ "additionalProperties": true
629
+ },
630
+ {
631
+ "type": "object",
632
+ "properties": {
633
+ "type": {
634
+ "const": "session.closed"
635
+ }
636
+ },
637
+ "required": [
638
+ "type"
639
+ ],
640
+ "additionalProperties": true
641
+ },
642
+ {
643
+ "type": "object",
644
+ "properties": {
645
+ "type": {
646
+ "const": "session.failed"
647
+ },
648
+ "error": {
649
+ "type": "object",
650
+ "properties": {
651
+ "message": {
652
+ "type": "string"
653
+ }
654
+ },
655
+ "required": [
656
+ "message"
657
+ ],
658
+ "additionalProperties": true
659
+ }
660
+ },
661
+ "required": [
662
+ "type",
663
+ "error"
664
+ ],
665
+ "additionalProperties": true
666
+ },
667
+ {
668
+ "type": "object",
669
+ "properties": {
670
+ "type": {
671
+ "const": "prompt.accepted"
672
+ },
673
+ "clientMessageId": {
674
+ "type": "string"
675
+ },
676
+ "result": {
677
+ "enum": [
678
+ "turn",
679
+ "steer"
680
+ ]
681
+ },
682
+ "turnId": {
683
+ "type": "string"
684
+ }
685
+ },
686
+ "required": [
687
+ "type",
688
+ "clientMessageId",
689
+ "result",
690
+ "turnId"
691
+ ],
692
+ "additionalProperties": true
693
+ },
694
+ {
695
+ "type": "object",
696
+ "properties": {
697
+ "type": {
698
+ "const": "prompt.failed"
699
+ },
700
+ "clientMessageId": {
701
+ "type": "string"
702
+ },
703
+ "error": {
704
+ "type": "object",
705
+ "properties": {
706
+ "message": {
707
+ "type": "string"
708
+ }
709
+ },
710
+ "required": [
711
+ "message"
712
+ ],
713
+ "additionalProperties": true
714
+ }
715
+ },
716
+ "required": [
717
+ "type",
718
+ "clientMessageId",
719
+ "error"
720
+ ],
721
+ "additionalProperties": true
722
+ },
723
+ {
724
+ "type": "object",
725
+ "properties": {
726
+ "type": {
727
+ "const": "turn.started"
728
+ },
729
+ "turnId": {
730
+ "type": "string"
731
+ },
732
+ "origin": {
733
+ "enum": [
734
+ "user",
735
+ "wake",
736
+ "assignment",
737
+ "runtime"
738
+ ]
739
+ }
740
+ },
741
+ "required": [
742
+ "type",
743
+ "turnId",
744
+ "origin"
745
+ ],
746
+ "additionalProperties": true
747
+ },
748
+ {
749
+ "type": "object",
750
+ "properties": {
751
+ "type": {
752
+ "const": "turn.ended"
753
+ },
754
+ "turnId": {
755
+ "type": "string"
756
+ },
757
+ "state": {
758
+ "enum": [
759
+ "completed",
760
+ "failed",
761
+ "canceled"
762
+ ]
763
+ },
764
+ "error": {
765
+ "type": "object",
766
+ "properties": {
767
+ "message": {
768
+ "type": "string"
769
+ }
770
+ },
771
+ "required": [
772
+ "message"
773
+ ],
774
+ "additionalProperties": true
775
+ }
776
+ },
777
+ "required": [
778
+ "type",
779
+ "turnId",
780
+ "state"
781
+ ],
782
+ "additionalProperties": true
783
+ },
784
+ {
785
+ "type": "object",
786
+ "properties": {
787
+ "type": {
788
+ "const": "item"
789
+ },
790
+ "item": {
791
+ "$ref": "#/$defs/item"
792
+ }
793
+ },
794
+ "required": [
795
+ "type",
796
+ "item"
797
+ ],
798
+ "additionalProperties": true
799
+ },
800
+ {
801
+ "type": "object",
802
+ "properties": {
803
+ "type": {
804
+ "const": "mail"
805
+ },
806
+ "mail": {
807
+ "$ref": "#/$defs/mail"
808
+ }
809
+ },
810
+ "required": [
811
+ "type",
812
+ "mail"
813
+ ],
814
+ "additionalProperties": true
815
+ },
816
+ {
817
+ "type": "object",
818
+ "properties": {
819
+ "type": {
820
+ "const": "assignment"
821
+ },
822
+ "assignment": {
823
+ "$ref": "#/$defs/assignment"
824
+ }
825
+ },
826
+ "required": [
827
+ "type",
828
+ "assignment"
829
+ ],
830
+ "additionalProperties": true
831
+ },
832
+ {
833
+ "type": "object",
834
+ "properties": {
835
+ "type": {
836
+ "const": "question"
837
+ },
838
+ "question": {
839
+ "$ref": "#/$defs/question"
840
+ }
841
+ },
842
+ "required": [
843
+ "type",
844
+ "question"
845
+ ],
846
+ "additionalProperties": true
847
+ },
848
+ {
849
+ "type": "object",
850
+ "properties": {
851
+ "type": {
852
+ "const": "question.resolved"
853
+ },
854
+ "questionId": {
855
+ "type": "string"
856
+ },
857
+ "outcome": {
858
+ "enum": [
859
+ "answered",
860
+ "dismissed",
861
+ "timeout",
862
+ "canceled"
863
+ ]
864
+ },
865
+ "answer": {
866
+ "type": "string"
867
+ }
868
+ },
869
+ "required": [
870
+ "type",
871
+ "questionId",
872
+ "outcome"
873
+ ],
874
+ "additionalProperties": true
875
+ },
876
+ {
877
+ "type": "object",
878
+ "properties": {
879
+ "type": {
880
+ "const": "pin"
881
+ },
882
+ "pin": {
883
+ "$ref": "#/$defs/pin"
884
+ }
885
+ },
886
+ "required": [
887
+ "type",
888
+ "pin"
889
+ ],
890
+ "additionalProperties": true
891
+ },
892
+ {
893
+ "type": "object",
894
+ "properties": {
895
+ "type": {
896
+ "const": "unpin"
897
+ },
898
+ "pinId": {
899
+ "type": "string"
900
+ },
901
+ "reason": {
902
+ "enum": [
903
+ "unpinned",
904
+ "session_ended"
905
+ ]
906
+ }
907
+ },
908
+ "required": [
909
+ "type",
910
+ "pinId",
911
+ "reason"
912
+ ],
913
+ "additionalProperties": true
914
+ }
915
+ ]
916
+ },
917
+ "envelope": {
918
+ "type": "object",
919
+ "properties": {
920
+ "sessionId": {
921
+ "type": "string"
922
+ },
923
+ "epoch": {
924
+ "type": "string"
925
+ },
926
+ "seq": {
927
+ "type": "integer",
928
+ "minimum": 0
929
+ },
930
+ "ts": {
931
+ "type": "string"
932
+ },
933
+ "event": {
934
+ "$ref": "#/$defs/event"
935
+ }
936
+ },
937
+ "required": [
938
+ "sessionId",
939
+ "epoch",
940
+ "seq",
941
+ "ts",
942
+ "event"
943
+ ],
944
+ "additionalProperties": true
945
+ },
946
+ "request": {
947
+ "type": "object",
948
+ "properties": {
949
+ "jsonrpc": {
950
+ "const": "2.0"
951
+ },
952
+ "id": {
953
+ "type": [
954
+ "string",
955
+ "integer",
956
+ "null"
957
+ ]
958
+ },
959
+ "method": {
960
+ "type": "string"
961
+ },
962
+ "params": {
963
+ "type": "object"
964
+ }
965
+ },
966
+ "required": [
967
+ "jsonrpc",
968
+ "method"
969
+ ],
970
+ "additionalProperties": true
971
+ },
972
+ "response": {
973
+ "oneOf": [
974
+ {
975
+ "type": "object",
976
+ "properties": {
977
+ "jsonrpc": {
978
+ "const": "2.0"
979
+ },
980
+ "id": {
981
+ "type": [
982
+ "string",
983
+ "integer",
984
+ "null"
985
+ ]
986
+ },
987
+ "result": {}
988
+ },
989
+ "required": [
990
+ "jsonrpc",
991
+ "id",
992
+ "result"
993
+ ],
994
+ "additionalProperties": true
995
+ },
996
+ {
997
+ "type": "object",
998
+ "properties": {
999
+ "jsonrpc": {
1000
+ "const": "2.0"
1001
+ },
1002
+ "id": {
1003
+ "type": [
1004
+ "string",
1005
+ "integer",
1006
+ "null"
1007
+ ]
1008
+ },
1009
+ "error": {
1010
+ "$ref": "#/$defs/error"
1011
+ }
1012
+ },
1013
+ "required": [
1014
+ "jsonrpc",
1015
+ "id",
1016
+ "error"
1017
+ ],
1018
+ "additionalProperties": true
1019
+ }
1020
+ ]
1021
+ },
1022
+ "notification": {
1023
+ "type": "object",
1024
+ "properties": {
1025
+ "jsonrpc": {
1026
+ "const": "2.0"
1027
+ },
1028
+ "method": {
1029
+ "const": "event"
1030
+ },
1031
+ "params": {
1032
+ "$ref": "#/$defs/envelope"
1033
+ }
1034
+ },
1035
+ "required": [
1036
+ "jsonrpc",
1037
+ "method",
1038
+ "params"
1039
+ ],
1040
+ "additionalProperties": true
1041
+ }
1042
+ },
1043
+ "protocolVersion": 1,
1044
+ "methods": {
1045
+ "assignment.recall": {
1046
+ "params": {
1047
+ "type": "object",
1048
+ "properties": {
1049
+ "assignmentId": {
1050
+ "type": "string"
1051
+ },
1052
+ "taskId": {
1053
+ "type": "string"
1054
+ },
1055
+ "projectRoot": {
1056
+ "type": "string"
1057
+ },
1058
+ "question": {
1059
+ "type": "string"
1060
+ }
1061
+ },
1062
+ "required": [
1063
+ "question"
1064
+ ],
1065
+ "additionalProperties": true
1066
+ }
1067
+ },
1068
+ "board.list": {
1069
+ "params": {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "projectRoot": {
1073
+ "type": "string"
1074
+ }
1075
+ },
1076
+ "required": [
1077
+ "projectRoot"
1078
+ ],
1079
+ "additionalProperties": true
1080
+ }
1081
+ },
1082
+ "catalog.get": {
1083
+ "params": {
1084
+ "type": "object",
1085
+ "properties": {},
1086
+ "required": [],
1087
+ "additionalProperties": true
1088
+ }
1089
+ },
1090
+ "daemon.hello": {
1091
+ "params": {
1092
+ "type": "object",
1093
+ "properties": {
1094
+ "protocolVersion": {
1095
+ "const": 1
1096
+ },
1097
+ "client": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "name": {
1101
+ "type": "string"
1102
+ },
1103
+ "version": {
1104
+ "type": "string"
1105
+ }
1106
+ },
1107
+ "required": [
1108
+ "name",
1109
+ "version"
1110
+ ],
1111
+ "additionalProperties": true
1112
+ }
1113
+ },
1114
+ "required": [
1115
+ "protocolVersion"
1116
+ ],
1117
+ "additionalProperties": true
1118
+ }
1119
+ },
1120
+ "daemon.pause": {
1121
+ "params": {
1122
+ "type": "object",
1123
+ "properties": {
1124
+ "runtime": {
1125
+ "enum": [
1126
+ "codex",
1127
+ "claude",
1128
+ "acp",
1129
+ "antigravity"
1130
+ ]
1131
+ },
1132
+ "now": {
1133
+ "type": "boolean"
1134
+ },
1135
+ "reason": {
1136
+ "type": "string"
1137
+ }
1138
+ },
1139
+ "required": [],
1140
+ "additionalProperties": true
1141
+ }
1142
+ },
1143
+ "daemon.pauses": {
1144
+ "params": {
1145
+ "type": "object",
1146
+ "properties": {},
1147
+ "required": [],
1148
+ "additionalProperties": true
1149
+ }
1150
+ },
1151
+ "daemon.resume": {
1152
+ "params": {
1153
+ "type": "object",
1154
+ "properties": {
1155
+ "runtime": {
1156
+ "enum": [
1157
+ "codex",
1158
+ "claude",
1159
+ "acp",
1160
+ "antigravity"
1161
+ ]
1162
+ }
1163
+ },
1164
+ "required": [],
1165
+ "additionalProperties": true
1166
+ }
1167
+ },
1168
+ "daemon.shutdown": {
1169
+ "params": {
1170
+ "type": "object",
1171
+ "properties": {},
1172
+ "required": [],
1173
+ "additionalProperties": true
1174
+ }
1175
+ },
1176
+ "daemon.status": {
1177
+ "params": {
1178
+ "type": "object",
1179
+ "properties": {},
1180
+ "required": [],
1181
+ "additionalProperties": true
1182
+ }
1183
+ },
1184
+ "daemon.usage": {
1185
+ "params": {
1186
+ "type": "object",
1187
+ "properties": {
1188
+ "refresh": {
1189
+ "type": "boolean"
1190
+ }
1191
+ },
1192
+ "required": [],
1193
+ "additionalProperties": true
1194
+ }
1195
+ },
1196
+ "question.answer": {
1197
+ "params": {
1198
+ "type": "object",
1199
+ "properties": {
1200
+ "questionId": {
1201
+ "type": "string"
1202
+ },
1203
+ "text": {
1204
+ "type": "string"
1205
+ },
1206
+ "dismiss": {
1207
+ "type": "boolean"
1208
+ },
1209
+ "reason": {
1210
+ "type": "string"
1211
+ }
1212
+ },
1213
+ "required": [
1214
+ "questionId"
1215
+ ],
1216
+ "additionalProperties": true
1217
+ }
1218
+ },
1219
+ "question.list": {
1220
+ "params": {
1221
+ "type": "object",
1222
+ "properties": {
1223
+ "projectRoot": {
1224
+ "type": "string"
1225
+ }
1226
+ },
1227
+ "required": [],
1228
+ "additionalProperties": true
1229
+ }
1230
+ },
1231
+ "session.archive": {
1232
+ "params": {
1233
+ "type": "object",
1234
+ "properties": {
1235
+ "sessionId": {
1236
+ "type": "string"
1237
+ },
1238
+ "archived": {
1239
+ "type": "boolean"
1240
+ }
1241
+ },
1242
+ "required": [
1243
+ "sessionId"
1244
+ ],
1245
+ "additionalProperties": true
1246
+ }
1247
+ },
1248
+ "session.attach": {
1249
+ "params": {
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "sessionId": {
1253
+ "type": "string"
1254
+ },
1255
+ "replay": {
1256
+ "type": "boolean"
1257
+ }
1258
+ },
1259
+ "required": [
1260
+ "sessionId"
1261
+ ],
1262
+ "additionalProperties": true
1263
+ }
1264
+ },
1265
+ "session.close": {
1266
+ "params": {
1267
+ "type": "object",
1268
+ "properties": {
1269
+ "sessionId": {
1270
+ "type": "string"
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "sessionId"
1275
+ ],
1276
+ "additionalProperties": true
1277
+ }
1278
+ },
1279
+ "session.configure": {
1280
+ "params": {
1281
+ "type": "object",
1282
+ "properties": {
1283
+ "sessionId": {
1284
+ "type": "string"
1285
+ },
1286
+ "mode": {
1287
+ "type": "string"
1288
+ }
1289
+ },
1290
+ "required": [
1291
+ "sessionId",
1292
+ "mode"
1293
+ ],
1294
+ "additionalProperties": true
1295
+ }
1296
+ },
1297
+ "session.create": {
1298
+ "params": {
1299
+ "type": "object",
1300
+ "properties": {
1301
+ "sessionId": {
1302
+ "type": "string"
1303
+ },
1304
+ "spec": {
1305
+ "$ref": "#/$defs/spec"
1306
+ },
1307
+ "history": {
1308
+ "enum": [
1309
+ "skip",
1310
+ "replay"
1311
+ ]
1312
+ },
1313
+ "delegation": {
1314
+ "type": "boolean"
1315
+ },
1316
+ "resume": {
1317
+ "type": "boolean"
1318
+ }
1319
+ },
1320
+ "required": [
1321
+ "spec"
1322
+ ],
1323
+ "additionalProperties": true
1324
+ }
1325
+ },
1326
+ "session.get": {
1327
+ "params": {
1328
+ "type": "object",
1329
+ "properties": {
1330
+ "sessionId": {
1331
+ "type": "string"
1332
+ }
1333
+ },
1334
+ "required": [
1335
+ "sessionId"
1336
+ ],
1337
+ "additionalProperties": true
1338
+ }
1339
+ },
1340
+ "session.interrupt": {
1341
+ "params": {
1342
+ "type": "object",
1343
+ "properties": {
1344
+ "sessionId": {
1345
+ "type": "string"
1346
+ }
1347
+ },
1348
+ "required": [
1349
+ "sessionId"
1350
+ ],
1351
+ "additionalProperties": true
1352
+ }
1353
+ },
1354
+ "session.list": {
1355
+ "params": {
1356
+ "type": "object",
1357
+ "properties": {
1358
+ "projectRoot": {
1359
+ "type": "string"
1360
+ },
1361
+ "rootsOnly": {
1362
+ "type": "boolean"
1363
+ },
1364
+ "includeClosed": {
1365
+ "type": "boolean"
1366
+ },
1367
+ "includeArchived": {
1368
+ "type": "boolean"
1369
+ }
1370
+ },
1371
+ "required": [],
1372
+ "additionalProperties": true
1373
+ }
1374
+ },
1375
+ "session.log": {
1376
+ "params": {
1377
+ "type": "object",
1378
+ "properties": {
1379
+ "sessionId": {
1380
+ "type": "string"
1381
+ }
1382
+ },
1383
+ "required": [
1384
+ "sessionId"
1385
+ ],
1386
+ "additionalProperties": true
1387
+ }
1388
+ },
1389
+ "session.message": {
1390
+ "params": {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "sessionId": {
1394
+ "type": "string"
1395
+ },
1396
+ "text": {
1397
+ "type": "string"
1398
+ }
1399
+ },
1400
+ "required": [
1401
+ "sessionId",
1402
+ "text"
1403
+ ],
1404
+ "additionalProperties": true
1405
+ }
1406
+ },
1407
+ "session.preview": {
1408
+ "params": {
1409
+ "type": "object",
1410
+ "properties": {
1411
+ "spec": {
1412
+ "$ref": "#/$defs/spec"
1413
+ }
1414
+ },
1415
+ "required": [
1416
+ "spec"
1417
+ ],
1418
+ "additionalProperties": true
1419
+ }
1420
+ },
1421
+ "session.prompt": {
1422
+ "params": {
1423
+ "type": "object",
1424
+ "properties": {
1425
+ "sessionId": {
1426
+ "type": "string"
1427
+ },
1428
+ "clientMessageId": {
1429
+ "type": "string"
1430
+ },
1431
+ "delivery": {
1432
+ "enum": [
1433
+ "auto",
1434
+ "steer"
1435
+ ]
1436
+ },
1437
+ "content": {
1438
+ "type": "array",
1439
+ "items": {
1440
+ "type": "object",
1441
+ "properties": {
1442
+ "type": {
1443
+ "type": "string"
1444
+ },
1445
+ "text": {
1446
+ "type": "string"
1447
+ }
1448
+ },
1449
+ "required": [
1450
+ "type"
1451
+ ],
1452
+ "additionalProperties": true
1453
+ }
1454
+ }
1455
+ },
1456
+ "required": [
1457
+ "sessionId",
1458
+ "clientMessageId",
1459
+ "content"
1460
+ ],
1461
+ "additionalProperties": true
1462
+ }
1463
+ },
1464
+ "session.release": {
1465
+ "params": {
1466
+ "type": "object",
1467
+ "properties": {
1468
+ "sessionId": {
1469
+ "type": "string"
1470
+ }
1471
+ },
1472
+ "required": [
1473
+ "sessionId"
1474
+ ],
1475
+ "additionalProperties": true
1476
+ }
1477
+ },
1478
+ "session.rename": {
1479
+ "params": {
1480
+ "type": "object",
1481
+ "properties": {
1482
+ "sessionId": {
1483
+ "type": "string"
1484
+ },
1485
+ "title": {
1486
+ "type": "string",
1487
+ "minLength": 1,
1488
+ "maxLength": 200
1489
+ }
1490
+ },
1491
+ "required": [
1492
+ "sessionId",
1493
+ "title"
1494
+ ],
1495
+ "additionalProperties": true
1496
+ }
1497
+ },
1498
+ "session.status": {
1499
+ "params": {
1500
+ "type": "object",
1501
+ "properties": {
1502
+ "sessionId": {
1503
+ "type": "string"
1504
+ }
1505
+ },
1506
+ "required": [
1507
+ "sessionId"
1508
+ ],
1509
+ "additionalProperties": true
1510
+ }
1511
+ },
1512
+ "extension.register": {
1513
+ "params": {
1514
+ "type": "object",
1515
+ "properties": {
1516
+ "method": {
1517
+ "type": "string"
1518
+ }
1519
+ },
1520
+ "required": [
1521
+ "method"
1522
+ ],
1523
+ "additionalProperties": true
1524
+ }
1525
+ },
1526
+ "extension.unregister": {
1527
+ "params": {
1528
+ "type": "object",
1529
+ "properties": {
1530
+ "method": {
1531
+ "type": "string"
1532
+ }
1533
+ },
1534
+ "required": [
1535
+ "method"
1536
+ ],
1537
+ "additionalProperties": true
1538
+ }
1539
+ }
1540
+ },
1541
+ "errors": {
1542
+ "invalidRequest": -32600,
1543
+ "methodNotFound": -32601,
1544
+ "invalidParams": -32602,
1545
+ "failed": 1000,
1546
+ "notFound": 1001,
1547
+ "conflict": 1004,
1548
+ "protocol": 1006
1549
+ }
1550
+ }