@anhlp/alp-protocol 0.0.0-beta.1 → 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.
- package/README.md +1 -11
- package/dist/dto.d.ts +0 -68
- package/dist/events.d.ts +0 -8
- package/dist/rpc.d.ts +1 -471
- package/dist/wire.d.ts +0 -22
- package/dist/wire.js +2 -6
- package/package.json +7 -34
- package/schema/ipc-v1.json +366 -1319
- package/schema/methods-v1.json +956 -3476
- package/src/dto.ts +0 -37
- package/src/events.ts +1 -8
- package/src/rpc.ts +1 -97
- package/src/wire.js +2 -9
- package/LICENSE +0 -202
- package/NOTICE +0 -7
- package/conformance/cases.json +0 -951
- package/conformance/run.d.mts +0 -32
- package/conformance/run.mjs +0 -403
- package/dist/contract-v1.d.ts +0 -4171
- package/dist/contract-v1.js +0 -5
- package/dist/contract.d.ts +0 -25
- package/dist/contract.js +0 -28
- package/dist/validate.d.ts +0 -12
- package/dist/validate.js +0 -147
- package/fixtures/v1/cases.json +0 -2827
- package/src/contract-v1.js +0 -2
- package/src/contract.js +0 -44
- package/src/validate.js +0 -113
package/schema/ipc-v1.json
CHANGED
|
@@ -2,16 +2,13 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$id": "https://alp.dev/schemas/ipc-v1.json",
|
|
4
4
|
"title": "ALP JSON-RPC v1 IPC",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "UTF-8 newline delimited JSON. Additive properties are accepted for forward compatibility.",
|
|
6
6
|
"oneOf": [
|
|
7
7
|
{
|
|
8
8
|
"$ref": "#/$defs/request"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"$ref": "#/$defs/response"
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"$ref": "#/$defs/notification"
|
|
15
12
|
}
|
|
16
13
|
],
|
|
17
14
|
"$defs": {
|
|
@@ -338,257 +335,318 @@
|
|
|
338
335
|
"additionalProperties": true
|
|
339
336
|
},
|
|
340
337
|
"item": {
|
|
341
|
-
"anyOf": [
|
|
342
|
-
{
|
|
343
|
-
"$ref": "#/$defs/knownItem"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
"$ref": "#/$defs/unknownItem"
|
|
347
|
-
}
|
|
348
|
-
]
|
|
349
|
-
},
|
|
350
|
-
"event": {
|
|
351
|
-
"anyOf": [
|
|
352
|
-
{
|
|
353
|
-
"$ref": "#/$defs/knownEvent"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
"$ref": "#/$defs/unknownEvent"
|
|
357
|
-
}
|
|
358
|
-
]
|
|
359
|
-
},
|
|
360
|
-
"envelope": {
|
|
361
|
-
"type": "object",
|
|
362
|
-
"properties": {
|
|
363
|
-
"sessionId": {
|
|
364
|
-
"type": "string"
|
|
365
|
-
},
|
|
366
|
-
"epoch": {
|
|
367
|
-
"type": "string"
|
|
368
|
-
},
|
|
369
|
-
"seq": {
|
|
370
|
-
"type": "integer",
|
|
371
|
-
"minimum": 0,
|
|
372
|
-
"maximum": 9007199254740991
|
|
373
|
-
},
|
|
374
|
-
"ts": {
|
|
375
|
-
"type": "string"
|
|
376
|
-
},
|
|
377
|
-
"event": {
|
|
378
|
-
"$ref": "#/$defs/event"
|
|
379
|
-
},
|
|
380
|
-
"cursor": {
|
|
381
|
-
"type": "integer",
|
|
382
|
-
"minimum": 1,
|
|
383
|
-
"maximum": 9007199254740991
|
|
384
|
-
}
|
|
385
|
-
},
|
|
386
|
-
"required": [
|
|
387
|
-
"sessionId",
|
|
388
|
-
"epoch",
|
|
389
|
-
"seq",
|
|
390
|
-
"ts",
|
|
391
|
-
"event"
|
|
392
|
-
],
|
|
393
|
-
"additionalProperties": true
|
|
394
|
-
},
|
|
395
|
-
"request": {
|
|
396
|
-
"type": "object",
|
|
397
|
-
"properties": {
|
|
398
|
-
"jsonrpc": {
|
|
399
|
-
"const": "2.0"
|
|
400
|
-
},
|
|
401
|
-
"id": {
|
|
402
|
-
"anyOf": [
|
|
403
|
-
{
|
|
404
|
-
"type": "string",
|
|
405
|
-
"maxLength": 128
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
"type": "integer",
|
|
409
|
-
"minimum": -9007199254740991,
|
|
410
|
-
"maximum": 9007199254740991
|
|
411
|
-
}
|
|
412
|
-
]
|
|
413
|
-
},
|
|
414
|
-
"method": {
|
|
415
|
-
"type": "string"
|
|
416
|
-
},
|
|
417
|
-
"params": {
|
|
418
|
-
"type": "object"
|
|
419
|
-
}
|
|
420
|
-
},
|
|
421
|
-
"required": [
|
|
422
|
-
"jsonrpc",
|
|
423
|
-
"method",
|
|
424
|
-
"id"
|
|
425
|
-
],
|
|
426
|
-
"additionalProperties": true
|
|
427
|
-
},
|
|
428
|
-
"response": {
|
|
429
338
|
"oneOf": [
|
|
430
339
|
{
|
|
431
340
|
"type": "object",
|
|
432
341
|
"properties": {
|
|
433
|
-
"
|
|
434
|
-
"const": "
|
|
342
|
+
"kind": {
|
|
343
|
+
"const": "user_message"
|
|
435
344
|
},
|
|
436
345
|
"id": {
|
|
437
|
-
"
|
|
438
|
-
{
|
|
439
|
-
"type": "string",
|
|
440
|
-
"maxLength": 128
|
|
441
|
-
},
|
|
442
|
-
{
|
|
443
|
-
"type": "integer",
|
|
444
|
-
"minimum": -9007199254740991,
|
|
445
|
-
"maximum": 9007199254740991
|
|
446
|
-
},
|
|
447
|
-
{
|
|
448
|
-
"type": "null"
|
|
449
|
-
}
|
|
450
|
-
]
|
|
346
|
+
"type": "string"
|
|
451
347
|
},
|
|
452
|
-
"
|
|
348
|
+
"text": {
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
351
|
+
"clientMessageId": {
|
|
352
|
+
"type": "string"
|
|
353
|
+
}
|
|
453
354
|
},
|
|
454
355
|
"required": [
|
|
455
|
-
"
|
|
356
|
+
"kind",
|
|
456
357
|
"id",
|
|
457
|
-
"
|
|
358
|
+
"text"
|
|
458
359
|
],
|
|
459
360
|
"additionalProperties": true
|
|
460
361
|
},
|
|
461
362
|
{
|
|
462
363
|
"type": "object",
|
|
463
364
|
"properties": {
|
|
464
|
-
"
|
|
465
|
-
"const": "
|
|
365
|
+
"kind": {
|
|
366
|
+
"const": "assistant_message"
|
|
466
367
|
},
|
|
467
368
|
"id": {
|
|
468
|
-
"
|
|
469
|
-
{
|
|
470
|
-
"type": "string",
|
|
471
|
-
"maxLength": 128
|
|
472
|
-
},
|
|
473
|
-
{
|
|
474
|
-
"type": "integer",
|
|
475
|
-
"minimum": -9007199254740991,
|
|
476
|
-
"maximum": 9007199254740991
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
"type": "null"
|
|
480
|
-
}
|
|
481
|
-
]
|
|
369
|
+
"type": "string"
|
|
482
370
|
},
|
|
483
|
-
"
|
|
484
|
-
"
|
|
371
|
+
"text": {
|
|
372
|
+
"type": "string"
|
|
485
373
|
}
|
|
486
374
|
},
|
|
487
375
|
"required": [
|
|
488
|
-
"
|
|
376
|
+
"kind",
|
|
489
377
|
"id",
|
|
490
|
-
"
|
|
378
|
+
"text"
|
|
491
379
|
],
|
|
492
380
|
"additionalProperties": true
|
|
493
|
-
}
|
|
494
|
-
]
|
|
495
|
-
},
|
|
496
|
-
"notification": {
|
|
497
|
-
"type": "object",
|
|
498
|
-
"properties": {
|
|
499
|
-
"jsonrpc": {
|
|
500
|
-
"const": "2.0"
|
|
501
|
-
},
|
|
502
|
-
"method": {
|
|
503
|
-
"const": "event"
|
|
504
381
|
},
|
|
505
|
-
"params": {
|
|
506
|
-
"$ref": "#/$defs/envelope"
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
"required": [
|
|
510
|
-
"jsonrpc",
|
|
511
|
-
"method",
|
|
512
|
-
"params"
|
|
513
|
-
],
|
|
514
|
-
"additionalProperties": true
|
|
515
|
-
},
|
|
516
|
-
"knownEvent": {
|
|
517
|
-
"oneOf": [
|
|
518
382
|
{
|
|
519
383
|
"type": "object",
|
|
520
384
|
"properties": {
|
|
521
|
-
"
|
|
522
|
-
"const": "
|
|
523
|
-
},
|
|
524
|
-
"session": {
|
|
525
|
-
"$ref": "#/$defs/session"
|
|
385
|
+
"kind": {
|
|
386
|
+
"const": "notice"
|
|
526
387
|
},
|
|
527
|
-
"
|
|
388
|
+
"id": {
|
|
528
389
|
"type": "string"
|
|
529
390
|
},
|
|
530
|
-
"
|
|
531
|
-
"
|
|
532
|
-
|
|
533
|
-
"
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
},
|
|
540
|
-
"required": [
|
|
541
|
-
"model",
|
|
542
|
-
"thinking"
|
|
543
|
-
],
|
|
544
|
-
"additionalProperties": true
|
|
545
|
-
}
|
|
546
|
-
},
|
|
547
|
-
"required": [
|
|
548
|
-
"type",
|
|
549
|
-
"session",
|
|
550
|
-
"cwd",
|
|
551
|
-
"effective"
|
|
552
|
-
],
|
|
553
|
-
"additionalProperties": true
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
"type": "object",
|
|
557
|
-
"properties": {
|
|
558
|
-
"type": {
|
|
559
|
-
"const": "session.ready"
|
|
391
|
+
"level": {
|
|
392
|
+
"enum": [
|
|
393
|
+
"info",
|
|
394
|
+
"warning",
|
|
395
|
+
"error"
|
|
396
|
+
]
|
|
397
|
+
},
|
|
398
|
+
"text": {
|
|
399
|
+
"type": "string"
|
|
560
400
|
}
|
|
561
401
|
},
|
|
562
402
|
"required": [
|
|
563
|
-
"
|
|
403
|
+
"kind",
|
|
404
|
+
"id",
|
|
405
|
+
"level",
|
|
406
|
+
"text"
|
|
564
407
|
],
|
|
565
408
|
"additionalProperties": true
|
|
566
409
|
},
|
|
567
410
|
{
|
|
568
411
|
"type": "object",
|
|
569
412
|
"properties": {
|
|
570
|
-
"
|
|
571
|
-
"const": "
|
|
413
|
+
"kind": {
|
|
414
|
+
"const": "compaction"
|
|
572
415
|
},
|
|
573
|
-
"
|
|
574
|
-
"
|
|
416
|
+
"id": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"status": {
|
|
420
|
+
"enum": [
|
|
421
|
+
"running",
|
|
422
|
+
"completed",
|
|
423
|
+
"failed"
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"trigger": {
|
|
427
|
+
"type": "string"
|
|
428
|
+
},
|
|
429
|
+
"preTokens": {
|
|
430
|
+
"type": "integer"
|
|
431
|
+
},
|
|
432
|
+
"postTokens": {
|
|
433
|
+
"type": "integer"
|
|
575
434
|
}
|
|
576
435
|
},
|
|
577
436
|
"required": [
|
|
578
|
-
"
|
|
579
|
-
"
|
|
437
|
+
"kind",
|
|
438
|
+
"id",
|
|
439
|
+
"status"
|
|
580
440
|
],
|
|
581
441
|
"additionalProperties": true
|
|
582
442
|
},
|
|
583
443
|
{
|
|
584
444
|
"type": "object",
|
|
585
445
|
"properties": {
|
|
586
|
-
"
|
|
587
|
-
"const": "
|
|
446
|
+
"kind": {
|
|
447
|
+
"const": "todo"
|
|
448
|
+
},
|
|
449
|
+
"id": {
|
|
450
|
+
"type": "string"
|
|
451
|
+
},
|
|
452
|
+
"items": {
|
|
453
|
+
"type": "array",
|
|
454
|
+
"items": {
|
|
455
|
+
"type": "object",
|
|
456
|
+
"properties": {
|
|
457
|
+
"id": {
|
|
458
|
+
"type": "string"
|
|
459
|
+
},
|
|
460
|
+
"text": {
|
|
461
|
+
"type": "string"
|
|
462
|
+
},
|
|
463
|
+
"status": {
|
|
464
|
+
"enum": [
|
|
465
|
+
"pending",
|
|
466
|
+
"in_progress",
|
|
467
|
+
"completed"
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
"required": [
|
|
472
|
+
"id",
|
|
473
|
+
"text",
|
|
474
|
+
"status"
|
|
475
|
+
],
|
|
476
|
+
"additionalProperties": true
|
|
477
|
+
}
|
|
588
478
|
}
|
|
589
479
|
},
|
|
590
480
|
"required": [
|
|
591
|
-
"
|
|
481
|
+
"kind",
|
|
482
|
+
"id",
|
|
483
|
+
"items"
|
|
484
|
+
],
|
|
485
|
+
"additionalProperties": true
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"type": "object",
|
|
489
|
+
"properties": {
|
|
490
|
+
"kind": {
|
|
491
|
+
"const": "tool_call"
|
|
492
|
+
},
|
|
493
|
+
"id": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
},
|
|
496
|
+
"callId": {
|
|
497
|
+
"type": "string"
|
|
498
|
+
},
|
|
499
|
+
"name": {
|
|
500
|
+
"type": "string"
|
|
501
|
+
},
|
|
502
|
+
"status": {
|
|
503
|
+
"enum": [
|
|
504
|
+
"running",
|
|
505
|
+
"completed",
|
|
506
|
+
"failed"
|
|
507
|
+
]
|
|
508
|
+
},
|
|
509
|
+
"error": {
|
|
510
|
+
"type": "string"
|
|
511
|
+
},
|
|
512
|
+
"detail": {
|
|
513
|
+
"oneOf": [
|
|
514
|
+
{
|
|
515
|
+
"type": "object",
|
|
516
|
+
"properties": {
|
|
517
|
+
"type": {
|
|
518
|
+
"const": "shell"
|
|
519
|
+
},
|
|
520
|
+
"command": {
|
|
521
|
+
"type": "string"
|
|
522
|
+
},
|
|
523
|
+
"cwd": {
|
|
524
|
+
"type": "string"
|
|
525
|
+
},
|
|
526
|
+
"output": {
|
|
527
|
+
"type": "string"
|
|
528
|
+
},
|
|
529
|
+
"exitCode": {
|
|
530
|
+
"type": [
|
|
531
|
+
"integer",
|
|
532
|
+
"null"
|
|
533
|
+
]
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"required": [
|
|
537
|
+
"type",
|
|
538
|
+
"command",
|
|
539
|
+
"output"
|
|
540
|
+
],
|
|
541
|
+
"additionalProperties": true
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"type": "object",
|
|
545
|
+
"properties": {
|
|
546
|
+
"type": {
|
|
547
|
+
"const": "unknown"
|
|
548
|
+
},
|
|
549
|
+
"input": {},
|
|
550
|
+
"output": {}
|
|
551
|
+
},
|
|
552
|
+
"required": [
|
|
553
|
+
"type",
|
|
554
|
+
"input",
|
|
555
|
+
"output"
|
|
556
|
+
],
|
|
557
|
+
"additionalProperties": true
|
|
558
|
+
}
|
|
559
|
+
]
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"required": [
|
|
563
|
+
"kind",
|
|
564
|
+
"id",
|
|
565
|
+
"callId",
|
|
566
|
+
"name",
|
|
567
|
+
"status",
|
|
568
|
+
"detail"
|
|
569
|
+
],
|
|
570
|
+
"additionalProperties": true
|
|
571
|
+
}
|
|
572
|
+
]
|
|
573
|
+
},
|
|
574
|
+
"event": {
|
|
575
|
+
"oneOf": [
|
|
576
|
+
{
|
|
577
|
+
"type": "object",
|
|
578
|
+
"properties": {
|
|
579
|
+
"type": {
|
|
580
|
+
"const": "session.opened"
|
|
581
|
+
},
|
|
582
|
+
"session": {
|
|
583
|
+
"$ref": "#/$defs/session"
|
|
584
|
+
},
|
|
585
|
+
"cwd": {
|
|
586
|
+
"type": "string"
|
|
587
|
+
},
|
|
588
|
+
"effective": {
|
|
589
|
+
"type": "object",
|
|
590
|
+
"properties": {
|
|
591
|
+
"model": {
|
|
592
|
+
"type": "string"
|
|
593
|
+
},
|
|
594
|
+
"thinking": {
|
|
595
|
+
"type": "string"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"required": [
|
|
599
|
+
"model",
|
|
600
|
+
"thinking"
|
|
601
|
+
],
|
|
602
|
+
"additionalProperties": true
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
"required": [
|
|
606
|
+
"type",
|
|
607
|
+
"session",
|
|
608
|
+
"cwd",
|
|
609
|
+
"effective"
|
|
610
|
+
],
|
|
611
|
+
"additionalProperties": true
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"type": "object",
|
|
615
|
+
"properties": {
|
|
616
|
+
"type": {
|
|
617
|
+
"const": "session.ready"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"required": [
|
|
621
|
+
"type"
|
|
622
|
+
],
|
|
623
|
+
"additionalProperties": true
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"type": "object",
|
|
627
|
+
"properties": {
|
|
628
|
+
"type": {
|
|
629
|
+
"const": "session.updated"
|
|
630
|
+
},
|
|
631
|
+
"session": {
|
|
632
|
+
"$ref": "#/$defs/session"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"required": [
|
|
636
|
+
"type",
|
|
637
|
+
"session"
|
|
638
|
+
],
|
|
639
|
+
"additionalProperties": true
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"type": "object",
|
|
643
|
+
"properties": {
|
|
644
|
+
"type": {
|
|
645
|
+
"const": "session.closed"
|
|
646
|
+
}
|
|
647
|
+
},
|
|
648
|
+
"required": [
|
|
649
|
+
"type"
|
|
592
650
|
],
|
|
593
651
|
"additionalProperties": true
|
|
594
652
|
},
|
|
@@ -599,7 +657,16 @@
|
|
|
599
657
|
"const": "session.failed"
|
|
600
658
|
},
|
|
601
659
|
"error": {
|
|
602
|
-
"
|
|
660
|
+
"type": "object",
|
|
661
|
+
"properties": {
|
|
662
|
+
"message": {
|
|
663
|
+
"type": "string"
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"required": [
|
|
667
|
+
"message"
|
|
668
|
+
],
|
|
669
|
+
"additionalProperties": true
|
|
603
670
|
}
|
|
604
671
|
},
|
|
605
672
|
"required": [
|
|
@@ -645,7 +712,16 @@
|
|
|
645
712
|
"type": "string"
|
|
646
713
|
},
|
|
647
714
|
"error": {
|
|
648
|
-
"
|
|
715
|
+
"type": "object",
|
|
716
|
+
"properties": {
|
|
717
|
+
"message": {
|
|
718
|
+
"type": "string"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"required": [
|
|
722
|
+
"message"
|
|
723
|
+
],
|
|
724
|
+
"additionalProperties": true
|
|
649
725
|
}
|
|
650
726
|
},
|
|
651
727
|
"required": [
|
|
@@ -697,7 +773,16 @@
|
|
|
697
773
|
]
|
|
698
774
|
},
|
|
699
775
|
"error": {
|
|
700
|
-
"
|
|
776
|
+
"type": "object",
|
|
777
|
+
"properties": {
|
|
778
|
+
"message": {
|
|
779
|
+
"type": "string"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"required": [
|
|
783
|
+
"message"
|
|
784
|
+
],
|
|
785
|
+
"additionalProperties": true
|
|
701
786
|
}
|
|
702
787
|
},
|
|
703
788
|
"required": [
|
|
@@ -840,1166 +925,128 @@
|
|
|
840
925
|
}
|
|
841
926
|
]
|
|
842
927
|
},
|
|
843
|
-
"
|
|
928
|
+
"envelope": {
|
|
844
929
|
"type": "object",
|
|
845
930
|
"properties": {
|
|
846
|
-
"
|
|
847
|
-
"type": "string"
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
931
|
+
"sessionId": {
|
|
932
|
+
"type": "string"
|
|
933
|
+
},
|
|
934
|
+
"epoch": {
|
|
935
|
+
"type": "string"
|
|
936
|
+
},
|
|
937
|
+
"seq": {
|
|
938
|
+
"type": "integer",
|
|
939
|
+
"minimum": 0
|
|
940
|
+
},
|
|
941
|
+
"ts": {
|
|
942
|
+
"type": "string"
|
|
943
|
+
},
|
|
944
|
+
"event": {
|
|
945
|
+
"$ref": "#/$defs/event"
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"required": [
|
|
949
|
+
"sessionId",
|
|
950
|
+
"epoch",
|
|
951
|
+
"seq",
|
|
952
|
+
"ts",
|
|
953
|
+
"event"
|
|
954
|
+
],
|
|
955
|
+
"additionalProperties": true
|
|
956
|
+
},
|
|
957
|
+
"request": {
|
|
958
|
+
"type": "object",
|
|
959
|
+
"properties": {
|
|
960
|
+
"jsonrpc": {
|
|
961
|
+
"const": "2.0"
|
|
962
|
+
},
|
|
963
|
+
"id": {
|
|
964
|
+
"type": [
|
|
965
|
+
"string",
|
|
966
|
+
"integer",
|
|
967
|
+
"null"
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
"method": {
|
|
971
|
+
"type": "string"
|
|
972
|
+
},
|
|
973
|
+
"params": {
|
|
974
|
+
"type": "object"
|
|
868
975
|
}
|
|
869
976
|
},
|
|
870
977
|
"required": [
|
|
871
|
-
"
|
|
978
|
+
"jsonrpc",
|
|
979
|
+
"method"
|
|
872
980
|
],
|
|
873
981
|
"additionalProperties": true
|
|
874
982
|
},
|
|
875
|
-
"
|
|
983
|
+
"response": {
|
|
876
984
|
"oneOf": [
|
|
877
985
|
{
|
|
878
986
|
"type": "object",
|
|
879
987
|
"properties": {
|
|
880
|
-
"
|
|
881
|
-
"const": "
|
|
988
|
+
"jsonrpc": {
|
|
989
|
+
"const": "2.0"
|
|
882
990
|
},
|
|
883
991
|
"id": {
|
|
884
|
-
"type":
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
992
|
+
"type": [
|
|
993
|
+
"string",
|
|
994
|
+
"integer",
|
|
995
|
+
"null"
|
|
996
|
+
]
|
|
888
997
|
},
|
|
889
|
-
"
|
|
890
|
-
"type": "string"
|
|
891
|
-
}
|
|
998
|
+
"result": {}
|
|
892
999
|
},
|
|
893
1000
|
"required": [
|
|
894
|
-
"
|
|
1001
|
+
"jsonrpc",
|
|
895
1002
|
"id",
|
|
896
|
-
"
|
|
1003
|
+
"result"
|
|
897
1004
|
],
|
|
898
1005
|
"additionalProperties": true
|
|
899
1006
|
},
|
|
900
1007
|
{
|
|
901
1008
|
"type": "object",
|
|
902
1009
|
"properties": {
|
|
903
|
-
"
|
|
904
|
-
"const": "
|
|
905
|
-
},
|
|
906
|
-
"id": {
|
|
907
|
-
"type": "string"
|
|
908
|
-
},
|
|
909
|
-
"text": {
|
|
910
|
-
"type": "string"
|
|
911
|
-
}
|
|
912
|
-
},
|
|
913
|
-
"required": [
|
|
914
|
-
"kind",
|
|
915
|
-
"id",
|
|
916
|
-
"text"
|
|
917
|
-
],
|
|
918
|
-
"additionalProperties": true
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
"type": "object",
|
|
922
|
-
"properties": {
|
|
923
|
-
"kind": {
|
|
924
|
-
"const": "notice"
|
|
925
|
-
},
|
|
926
|
-
"id": {
|
|
927
|
-
"type": "string"
|
|
928
|
-
},
|
|
929
|
-
"level": {
|
|
930
|
-
"enum": [
|
|
931
|
-
"info",
|
|
932
|
-
"warning",
|
|
933
|
-
"error"
|
|
934
|
-
]
|
|
935
|
-
},
|
|
936
|
-
"text": {
|
|
937
|
-
"type": "string"
|
|
938
|
-
}
|
|
939
|
-
},
|
|
940
|
-
"required": [
|
|
941
|
-
"kind",
|
|
942
|
-
"id",
|
|
943
|
-
"level",
|
|
944
|
-
"text"
|
|
945
|
-
],
|
|
946
|
-
"additionalProperties": true
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"type": "object",
|
|
950
|
-
"properties": {
|
|
951
|
-
"kind": {
|
|
952
|
-
"const": "compaction"
|
|
953
|
-
},
|
|
954
|
-
"id": {
|
|
955
|
-
"type": "string"
|
|
956
|
-
},
|
|
957
|
-
"status": {
|
|
958
|
-
"enum": [
|
|
959
|
-
"running",
|
|
960
|
-
"completed",
|
|
961
|
-
"failed"
|
|
962
|
-
]
|
|
963
|
-
},
|
|
964
|
-
"trigger": {
|
|
965
|
-
"type": "string"
|
|
966
|
-
},
|
|
967
|
-
"preTokens": {
|
|
968
|
-
"type": "integer"
|
|
969
|
-
},
|
|
970
|
-
"postTokens": {
|
|
971
|
-
"type": "integer"
|
|
972
|
-
}
|
|
973
|
-
},
|
|
974
|
-
"required": [
|
|
975
|
-
"kind",
|
|
976
|
-
"id",
|
|
977
|
-
"status"
|
|
978
|
-
],
|
|
979
|
-
"additionalProperties": true
|
|
980
|
-
},
|
|
981
|
-
{
|
|
982
|
-
"type": "object",
|
|
983
|
-
"properties": {
|
|
984
|
-
"kind": {
|
|
985
|
-
"const": "todo"
|
|
986
|
-
},
|
|
987
|
-
"id": {
|
|
988
|
-
"type": "string"
|
|
989
|
-
},
|
|
990
|
-
"items": {
|
|
991
|
-
"type": "array",
|
|
992
|
-
"items": {
|
|
993
|
-
"type": "object",
|
|
994
|
-
"properties": {
|
|
995
|
-
"id": {
|
|
996
|
-
"type": "string"
|
|
997
|
-
},
|
|
998
|
-
"text": {
|
|
999
|
-
"type": "string"
|
|
1000
|
-
},
|
|
1001
|
-
"status": {
|
|
1002
|
-
"enum": [
|
|
1003
|
-
"pending",
|
|
1004
|
-
"in_progress",
|
|
1005
|
-
"completed"
|
|
1006
|
-
]
|
|
1007
|
-
}
|
|
1008
|
-
},
|
|
1009
|
-
"required": [
|
|
1010
|
-
"id",
|
|
1011
|
-
"text",
|
|
1012
|
-
"status"
|
|
1013
|
-
],
|
|
1014
|
-
"additionalProperties": true
|
|
1015
|
-
}
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
|
-
"required": [
|
|
1019
|
-
"kind",
|
|
1020
|
-
"id",
|
|
1021
|
-
"items"
|
|
1022
|
-
],
|
|
1023
|
-
"additionalProperties": true
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
"type": "object",
|
|
1027
|
-
"properties": {
|
|
1028
|
-
"kind": {
|
|
1029
|
-
"const": "tool_call"
|
|
1010
|
+
"jsonrpc": {
|
|
1011
|
+
"const": "2.0"
|
|
1030
1012
|
},
|
|
1031
1013
|
"id": {
|
|
1032
|
-
"type":
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
},
|
|
1037
|
-
"name": {
|
|
1038
|
-
"type": "string"
|
|
1039
|
-
},
|
|
1040
|
-
"status": {
|
|
1041
|
-
"enum": [
|
|
1042
|
-
"running",
|
|
1043
|
-
"completed",
|
|
1044
|
-
"failed"
|
|
1014
|
+
"type": [
|
|
1015
|
+
"string",
|
|
1016
|
+
"integer",
|
|
1017
|
+
"null"
|
|
1045
1018
|
]
|
|
1046
1019
|
},
|
|
1047
1020
|
"error": {
|
|
1048
|
-
"
|
|
1049
|
-
},
|
|
1050
|
-
"detail": {
|
|
1051
|
-
"oneOf": [
|
|
1052
|
-
{
|
|
1053
|
-
"type": "object",
|
|
1054
|
-
"properties": {
|
|
1055
|
-
"type": {
|
|
1056
|
-
"const": "shell"
|
|
1057
|
-
},
|
|
1058
|
-
"command": {
|
|
1059
|
-
"type": "string"
|
|
1060
|
-
},
|
|
1061
|
-
"cwd": {
|
|
1062
|
-
"type": "string"
|
|
1063
|
-
},
|
|
1064
|
-
"output": {
|
|
1065
|
-
"type": "string"
|
|
1066
|
-
},
|
|
1067
|
-
"exitCode": {
|
|
1068
|
-
"type": [
|
|
1069
|
-
"integer",
|
|
1070
|
-
"null"
|
|
1071
|
-
]
|
|
1072
|
-
}
|
|
1073
|
-
},
|
|
1074
|
-
"required": [
|
|
1075
|
-
"type",
|
|
1076
|
-
"command",
|
|
1077
|
-
"output"
|
|
1078
|
-
],
|
|
1079
|
-
"additionalProperties": true
|
|
1080
|
-
},
|
|
1081
|
-
{
|
|
1082
|
-
"type": "object",
|
|
1083
|
-
"properties": {
|
|
1084
|
-
"type": {
|
|
1085
|
-
"const": "unknown"
|
|
1086
|
-
},
|
|
1087
|
-
"input": {},
|
|
1088
|
-
"output": {}
|
|
1089
|
-
},
|
|
1090
|
-
"required": [
|
|
1091
|
-
"type",
|
|
1092
|
-
"input",
|
|
1093
|
-
"output"
|
|
1094
|
-
],
|
|
1095
|
-
"additionalProperties": true
|
|
1096
|
-
}
|
|
1097
|
-
]
|
|
1021
|
+
"$ref": "#/$defs/error"
|
|
1098
1022
|
}
|
|
1099
1023
|
},
|
|
1100
1024
|
"required": [
|
|
1101
|
-
"
|
|
1025
|
+
"jsonrpc",
|
|
1102
1026
|
"id",
|
|
1103
|
-
"
|
|
1104
|
-
"name",
|
|
1105
|
-
"status",
|
|
1106
|
-
"detail"
|
|
1027
|
+
"error"
|
|
1107
1028
|
],
|
|
1108
1029
|
"additionalProperties": true
|
|
1109
1030
|
}
|
|
1110
1031
|
]
|
|
1111
1032
|
},
|
|
1112
|
-
"
|
|
1033
|
+
"notification": {
|
|
1113
1034
|
"type": "object",
|
|
1114
1035
|
"properties": {
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1117
|
-
"not": {
|
|
1118
|
-
"enum": [
|
|
1119
|
-
"user_message",
|
|
1120
|
-
"assistant_message",
|
|
1121
|
-
"notice",
|
|
1122
|
-
"compaction",
|
|
1123
|
-
"todo",
|
|
1124
|
-
"tool_call"
|
|
1125
|
-
]
|
|
1126
|
-
}
|
|
1036
|
+
"jsonrpc": {
|
|
1037
|
+
"const": "2.0"
|
|
1127
1038
|
},
|
|
1128
|
-
"
|
|
1129
|
-
"
|
|
1130
|
-
}
|
|
1131
|
-
},
|
|
1132
|
-
"required": [
|
|
1133
|
-
"kind",
|
|
1134
|
-
"id"
|
|
1135
|
-
],
|
|
1136
|
-
"additionalProperties": true
|
|
1137
|
-
},
|
|
1138
|
-
"alpError": {
|
|
1139
|
-
"type": "object",
|
|
1140
|
-
"properties": {
|
|
1141
|
-
"message": {
|
|
1142
|
-
"type": "string"
|
|
1039
|
+
"method": {
|
|
1040
|
+
"const": "event"
|
|
1143
1041
|
},
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1042
|
+
"params": {
|
|
1043
|
+
"$ref": "#/$defs/envelope"
|
|
1146
1044
|
}
|
|
1147
1045
|
},
|
|
1148
1046
|
"required": [
|
|
1149
|
-
"
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
},
|
|
1153
|
-
"sessionSummary": {
|
|
1154
|
-
"type": "object",
|
|
1155
|
-
"properties": {
|
|
1156
|
-
"id": {
|
|
1157
|
-
"type": "string"
|
|
1158
|
-
},
|
|
1159
|
-
"projectRoot": {
|
|
1160
|
-
"type": "string"
|
|
1161
|
-
},
|
|
1162
|
-
"agent": {
|
|
1163
|
-
"type": "string"
|
|
1164
|
-
},
|
|
1165
|
-
"runtime": {
|
|
1166
|
-
"enum": [
|
|
1167
|
-
"claude",
|
|
1168
|
-
"codex",
|
|
1169
|
-
"acp",
|
|
1170
|
-
"antigravity"
|
|
1171
|
-
]
|
|
1172
|
-
},
|
|
1173
|
-
"model": {
|
|
1174
|
-
"type": "string"
|
|
1175
|
-
},
|
|
1176
|
-
"mode": {
|
|
1177
|
-
"type": "string"
|
|
1178
|
-
},
|
|
1179
|
-
"thinking": {
|
|
1180
|
-
"type": "string"
|
|
1181
|
-
},
|
|
1182
|
-
"workflow": {
|
|
1183
|
-
"type": "object",
|
|
1184
|
-
"properties": {
|
|
1185
|
-
"mode": {
|
|
1186
|
-
"type": "string"
|
|
1187
|
-
},
|
|
1188
|
-
"maxPeers": {
|
|
1189
|
-
"type": "integer"
|
|
1190
|
-
},
|
|
1191
|
-
"supervisor": {
|
|
1192
|
-
"type": "boolean"
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
"required": [
|
|
1196
|
-
"mode",
|
|
1197
|
-
"maxPeers",
|
|
1198
|
-
"supervisor"
|
|
1199
|
-
],
|
|
1200
|
-
"additionalProperties": true
|
|
1201
|
-
},
|
|
1202
|
-
"threadId": {
|
|
1203
|
-
"type": "string"
|
|
1204
|
-
},
|
|
1205
|
-
"persistent": {
|
|
1206
|
-
"type": "boolean"
|
|
1207
|
-
},
|
|
1208
|
-
"busy": {
|
|
1209
|
-
"type": "boolean"
|
|
1210
|
-
},
|
|
1211
|
-
"parentId": {
|
|
1212
|
-
"type": "string"
|
|
1213
|
-
},
|
|
1214
|
-
"toolCallId": {
|
|
1215
|
-
"type": "string"
|
|
1216
|
-
},
|
|
1217
|
-
"activeTurnId": {
|
|
1218
|
-
"type": "string"
|
|
1219
|
-
},
|
|
1220
|
-
"parked": {
|
|
1221
|
-
"type": "string"
|
|
1222
|
-
},
|
|
1223
|
-
"instructionsSha": {
|
|
1224
|
-
"type": "string"
|
|
1225
|
-
},
|
|
1226
|
-
"teamLabel": {
|
|
1227
|
-
"type": "string"
|
|
1228
|
-
},
|
|
1229
|
-
"status": {
|
|
1230
|
-
"enum": [
|
|
1231
|
-
"initializing",
|
|
1232
|
-
"idle",
|
|
1233
|
-
"running",
|
|
1234
|
-
"error",
|
|
1235
|
-
"closed"
|
|
1236
|
-
]
|
|
1237
|
-
},
|
|
1238
|
-
"title": {
|
|
1239
|
-
"type": "string"
|
|
1240
|
-
},
|
|
1241
|
-
"archived": {
|
|
1242
|
-
"type": "boolean"
|
|
1243
|
-
},
|
|
1244
|
-
"lastError": {
|
|
1245
|
-
"type": "object",
|
|
1246
|
-
"properties": {
|
|
1247
|
-
"code": {
|
|
1248
|
-
"type": "string"
|
|
1249
|
-
},
|
|
1250
|
-
"message": {
|
|
1251
|
-
"type": "string"
|
|
1252
|
-
}
|
|
1253
|
-
},
|
|
1254
|
-
"required": [
|
|
1255
|
-
"message"
|
|
1256
|
-
],
|
|
1257
|
-
"additionalProperties": true
|
|
1258
|
-
},
|
|
1259
|
-
"createdAt": {
|
|
1260
|
-
"type": "string"
|
|
1261
|
-
},
|
|
1262
|
-
"updatedAt": {
|
|
1263
|
-
"type": "string"
|
|
1264
|
-
}
|
|
1265
|
-
},
|
|
1266
|
-
"required": [
|
|
1267
|
-
"id",
|
|
1268
|
-
"projectRoot",
|
|
1269
|
-
"agent",
|
|
1270
|
-
"runtime",
|
|
1271
|
-
"model",
|
|
1272
|
-
"mode",
|
|
1273
|
-
"thinking",
|
|
1274
|
-
"workflow",
|
|
1275
|
-
"threadId",
|
|
1276
|
-
"persistent",
|
|
1277
|
-
"busy",
|
|
1278
|
-
"status"
|
|
1279
|
-
],
|
|
1280
|
-
"additionalProperties": true
|
|
1281
|
-
},
|
|
1282
|
-
"pause": {
|
|
1283
|
-
"type": "object",
|
|
1284
|
-
"properties": {
|
|
1285
|
-
"since": {
|
|
1286
|
-
"type": "string"
|
|
1287
|
-
},
|
|
1288
|
-
"by": {
|
|
1289
|
-
"type": "string"
|
|
1290
|
-
},
|
|
1291
|
-
"reason": {
|
|
1292
|
-
"type": "string"
|
|
1293
|
-
},
|
|
1294
|
-
"resetsAt": {
|
|
1295
|
-
"type": "string"
|
|
1296
|
-
},
|
|
1297
|
-
"checkedAt": {
|
|
1298
|
-
"type": "string"
|
|
1299
|
-
}
|
|
1300
|
-
},
|
|
1301
|
-
"required": [
|
|
1302
|
-
"since",
|
|
1303
|
-
"by",
|
|
1304
|
-
"reason"
|
|
1305
|
-
],
|
|
1306
|
-
"additionalProperties": true
|
|
1307
|
-
},
|
|
1308
|
-
"pauseState": {
|
|
1309
|
-
"type": "object",
|
|
1310
|
-
"properties": {
|
|
1311
|
-
"all": {
|
|
1312
|
-
"$ref": "#/$defs/pause"
|
|
1313
|
-
},
|
|
1314
|
-
"runtimes": {
|
|
1315
|
-
"type": "object",
|
|
1316
|
-
"additionalProperties": {
|
|
1317
|
-
"$ref": "#/$defs/pause"
|
|
1318
|
-
}
|
|
1319
|
-
},
|
|
1320
|
-
"parked": {
|
|
1321
|
-
"type": "array",
|
|
1322
|
-
"items": {
|
|
1323
|
-
"type": "object",
|
|
1324
|
-
"properties": {
|
|
1325
|
-
"assignmentId": {
|
|
1326
|
-
"type": "string"
|
|
1327
|
-
},
|
|
1328
|
-
"agent": {
|
|
1329
|
-
"type": "string"
|
|
1330
|
-
},
|
|
1331
|
-
"runtime": {
|
|
1332
|
-
"type": "string"
|
|
1333
|
-
},
|
|
1334
|
-
"rootId": {
|
|
1335
|
-
"type": "string"
|
|
1336
|
-
},
|
|
1337
|
-
"reason": {
|
|
1338
|
-
"type": "string"
|
|
1339
|
-
},
|
|
1340
|
-
"since": {
|
|
1341
|
-
"type": "string"
|
|
1342
|
-
}
|
|
1343
|
-
},
|
|
1344
|
-
"required": [
|
|
1345
|
-
"assignmentId",
|
|
1346
|
-
"agent",
|
|
1347
|
-
"runtime",
|
|
1348
|
-
"rootId",
|
|
1349
|
-
"reason",
|
|
1350
|
-
"since"
|
|
1351
|
-
],
|
|
1352
|
-
"additionalProperties": true
|
|
1353
|
-
}
|
|
1354
|
-
}
|
|
1355
|
-
},
|
|
1356
|
-
"required": [
|
|
1357
|
-
"runtimes",
|
|
1358
|
-
"parked"
|
|
1359
|
-
],
|
|
1360
|
-
"additionalProperties": true
|
|
1361
|
-
},
|
|
1362
|
-
"preview": {
|
|
1363
|
-
"type": "object",
|
|
1364
|
-
"properties": {
|
|
1365
|
-
"teams": {
|
|
1366
|
-
"type": "array",
|
|
1367
|
-
"items": {
|
|
1368
|
-
"type": "object",
|
|
1369
|
-
"properties": {
|
|
1370
|
-
"id": {
|
|
1371
|
-
"type": "string"
|
|
1372
|
-
},
|
|
1373
|
-
"label": {
|
|
1374
|
-
"type": "string"
|
|
1375
|
-
},
|
|
1376
|
-
"description": {
|
|
1377
|
-
"type": "string"
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
"required": [
|
|
1381
|
-
"id",
|
|
1382
|
-
"label"
|
|
1383
|
-
],
|
|
1384
|
-
"additionalProperties": true
|
|
1385
|
-
}
|
|
1386
|
-
},
|
|
1387
|
-
"team": {
|
|
1388
|
-
"type": "string"
|
|
1389
|
-
},
|
|
1390
|
-
"teamLabel": {
|
|
1391
|
-
"type": "string"
|
|
1392
|
-
},
|
|
1393
|
-
"agent": {
|
|
1394
|
-
"type": "string"
|
|
1395
|
-
},
|
|
1396
|
-
"runtime": {
|
|
1397
|
-
"enum": [
|
|
1398
|
-
"claude",
|
|
1399
|
-
"codex",
|
|
1400
|
-
"acp",
|
|
1401
|
-
"antigravity"
|
|
1402
|
-
]
|
|
1403
|
-
},
|
|
1404
|
-
"model": {
|
|
1405
|
-
"type": "string"
|
|
1406
|
-
},
|
|
1407
|
-
"mode": {
|
|
1408
|
-
"type": "string"
|
|
1409
|
-
},
|
|
1410
|
-
"thinking": {
|
|
1411
|
-
"type": "string"
|
|
1412
|
-
}
|
|
1413
|
-
},
|
|
1414
|
-
"required": [
|
|
1415
|
-
"teams",
|
|
1416
|
-
"team",
|
|
1417
|
-
"agent",
|
|
1418
|
-
"runtime",
|
|
1419
|
-
"model",
|
|
1420
|
-
"mode",
|
|
1421
|
-
"thinking"
|
|
1422
|
-
],
|
|
1423
|
-
"additionalProperties": true
|
|
1424
|
-
},
|
|
1425
|
-
"treeStatus": {
|
|
1426
|
-
"type": "object",
|
|
1427
|
-
"properties": {
|
|
1428
|
-
"rootId": {
|
|
1429
|
-
"type": "string"
|
|
1430
|
-
},
|
|
1431
|
-
"sessions": {
|
|
1432
|
-
"type": "array",
|
|
1433
|
-
"items": {
|
|
1434
|
-
"type": "object",
|
|
1435
|
-
"properties": {
|
|
1436
|
-
"id": {
|
|
1437
|
-
"type": "string"
|
|
1438
|
-
},
|
|
1439
|
-
"projectRoot": {
|
|
1440
|
-
"type": "string"
|
|
1441
|
-
},
|
|
1442
|
-
"agent": {
|
|
1443
|
-
"type": "string"
|
|
1444
|
-
},
|
|
1445
|
-
"runtime": {
|
|
1446
|
-
"enum": [
|
|
1447
|
-
"claude",
|
|
1448
|
-
"codex",
|
|
1449
|
-
"acp",
|
|
1450
|
-
"antigravity"
|
|
1451
|
-
]
|
|
1452
|
-
},
|
|
1453
|
-
"model": {
|
|
1454
|
-
"type": "string"
|
|
1455
|
-
},
|
|
1456
|
-
"mode": {
|
|
1457
|
-
"type": "string"
|
|
1458
|
-
},
|
|
1459
|
-
"thinking": {
|
|
1460
|
-
"type": "string"
|
|
1461
|
-
},
|
|
1462
|
-
"workflow": {
|
|
1463
|
-
"type": "object",
|
|
1464
|
-
"properties": {
|
|
1465
|
-
"mode": {
|
|
1466
|
-
"type": "string"
|
|
1467
|
-
},
|
|
1468
|
-
"maxPeers": {
|
|
1469
|
-
"type": "integer"
|
|
1470
|
-
},
|
|
1471
|
-
"supervisor": {
|
|
1472
|
-
"type": "boolean"
|
|
1473
|
-
}
|
|
1474
|
-
},
|
|
1475
|
-
"required": [
|
|
1476
|
-
"mode",
|
|
1477
|
-
"maxPeers",
|
|
1478
|
-
"supervisor"
|
|
1479
|
-
],
|
|
1480
|
-
"additionalProperties": true
|
|
1481
|
-
},
|
|
1482
|
-
"threadId": {
|
|
1483
|
-
"type": "string"
|
|
1484
|
-
},
|
|
1485
|
-
"persistent": {
|
|
1486
|
-
"type": "boolean"
|
|
1487
|
-
},
|
|
1488
|
-
"busy": {
|
|
1489
|
-
"type": "boolean"
|
|
1490
|
-
},
|
|
1491
|
-
"parentId": {
|
|
1492
|
-
"type": "string"
|
|
1493
|
-
},
|
|
1494
|
-
"toolCallId": {
|
|
1495
|
-
"type": "string"
|
|
1496
|
-
},
|
|
1497
|
-
"activeTurnId": {
|
|
1498
|
-
"type": "string"
|
|
1499
|
-
},
|
|
1500
|
-
"parked": {
|
|
1501
|
-
"type": "string"
|
|
1502
|
-
},
|
|
1503
|
-
"instructionsSha": {
|
|
1504
|
-
"type": "string"
|
|
1505
|
-
},
|
|
1506
|
-
"teamLabel": {
|
|
1507
|
-
"type": "string"
|
|
1508
|
-
},
|
|
1509
|
-
"state": {
|
|
1510
|
-
"enum": [
|
|
1511
|
-
"running",
|
|
1512
|
-
"waiting",
|
|
1513
|
-
"waiting_parent",
|
|
1514
|
-
"waiting_user",
|
|
1515
|
-
"idle"
|
|
1516
|
-
]
|
|
1517
|
-
},
|
|
1518
|
-
"idleMs": {
|
|
1519
|
-
"type": "number"
|
|
1520
|
-
},
|
|
1521
|
-
"workdir": {
|
|
1522
|
-
"type": "string"
|
|
1523
|
-
},
|
|
1524
|
-
"unreadMail": {
|
|
1525
|
-
"type": "integer",
|
|
1526
|
-
"minimum": 0
|
|
1527
|
-
}
|
|
1528
|
-
},
|
|
1529
|
-
"required": [
|
|
1530
|
-
"id",
|
|
1531
|
-
"projectRoot",
|
|
1532
|
-
"agent",
|
|
1533
|
-
"runtime",
|
|
1534
|
-
"model",
|
|
1535
|
-
"mode",
|
|
1536
|
-
"thinking",
|
|
1537
|
-
"workflow",
|
|
1538
|
-
"threadId",
|
|
1539
|
-
"persistent",
|
|
1540
|
-
"busy",
|
|
1541
|
-
"state",
|
|
1542
|
-
"idleMs",
|
|
1543
|
-
"workdir",
|
|
1544
|
-
"unreadMail"
|
|
1545
|
-
],
|
|
1546
|
-
"additionalProperties": true
|
|
1547
|
-
}
|
|
1548
|
-
},
|
|
1549
|
-
"assignments": {
|
|
1550
|
-
"type": "array",
|
|
1551
|
-
"items": {
|
|
1552
|
-
"type": "object",
|
|
1553
|
-
"properties": {
|
|
1554
|
-
"id": {
|
|
1555
|
-
"type": "string"
|
|
1556
|
-
},
|
|
1557
|
-
"requester": {
|
|
1558
|
-
"type": "string"
|
|
1559
|
-
},
|
|
1560
|
-
"isolation": {
|
|
1561
|
-
"enum": [
|
|
1562
|
-
"shared",
|
|
1563
|
-
"worktree"
|
|
1564
|
-
]
|
|
1565
|
-
},
|
|
1566
|
-
"idleMs": {
|
|
1567
|
-
"type": "number"
|
|
1568
|
-
}
|
|
1569
|
-
},
|
|
1570
|
-
"required": [
|
|
1571
|
-
"id",
|
|
1572
|
-
"requester",
|
|
1573
|
-
"isolation",
|
|
1574
|
-
"idleMs"
|
|
1575
|
-
],
|
|
1576
|
-
"additionalProperties": true
|
|
1577
|
-
}
|
|
1578
|
-
},
|
|
1579
|
-
"questions": {
|
|
1580
|
-
"type": "array",
|
|
1581
|
-
"items": {
|
|
1582
|
-
"$ref": "#/$defs/question"
|
|
1583
|
-
}
|
|
1584
|
-
},
|
|
1585
|
-
"worktrees": {
|
|
1586
|
-
"type": "array",
|
|
1587
|
-
"items": {
|
|
1588
|
-
"type": "object",
|
|
1589
|
-
"properties": {
|
|
1590
|
-
"assignmentId": {
|
|
1591
|
-
"type": "string"
|
|
1592
|
-
},
|
|
1593
|
-
"requester": {
|
|
1594
|
-
"type": "string"
|
|
1595
|
-
},
|
|
1596
|
-
"agent": {
|
|
1597
|
-
"type": "string"
|
|
1598
|
-
},
|
|
1599
|
-
"branch": {
|
|
1600
|
-
"type": "string"
|
|
1601
|
-
},
|
|
1602
|
-
"files": {
|
|
1603
|
-
"type": "array",
|
|
1604
|
-
"items": {
|
|
1605
|
-
"type": "string"
|
|
1606
|
-
}
|
|
1607
|
-
},
|
|
1608
|
-
"stat": {
|
|
1609
|
-
"type": "string"
|
|
1610
|
-
}
|
|
1611
|
-
},
|
|
1612
|
-
"required": [
|
|
1613
|
-
"assignmentId",
|
|
1614
|
-
"requester",
|
|
1615
|
-
"agent",
|
|
1616
|
-
"branch",
|
|
1617
|
-
"files",
|
|
1618
|
-
"stat"
|
|
1619
|
-
],
|
|
1620
|
-
"additionalProperties": true
|
|
1621
|
-
}
|
|
1622
|
-
},
|
|
1623
|
-
"leases": {
|
|
1624
|
-
"type": "array",
|
|
1625
|
-
"items": {
|
|
1626
|
-
"type": "object",
|
|
1627
|
-
"properties": {
|
|
1628
|
-
"checkout": {
|
|
1629
|
-
"type": "string"
|
|
1630
|
-
},
|
|
1631
|
-
"assignmentId": {
|
|
1632
|
-
"type": "string"
|
|
1633
|
-
},
|
|
1634
|
-
"agent": {
|
|
1635
|
-
"type": "string"
|
|
1636
|
-
}
|
|
1637
|
-
},
|
|
1638
|
-
"required": [
|
|
1639
|
-
"checkout",
|
|
1640
|
-
"assignmentId",
|
|
1641
|
-
"agent"
|
|
1642
|
-
],
|
|
1643
|
-
"additionalProperties": true
|
|
1644
|
-
}
|
|
1645
|
-
},
|
|
1646
|
-
"claims": {
|
|
1647
|
-
"type": "array",
|
|
1648
|
-
"items": {
|
|
1649
|
-
"$ref": "#/$defs/pin"
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
},
|
|
1653
|
-
"required": [
|
|
1654
|
-
"rootId",
|
|
1655
|
-
"sessions",
|
|
1656
|
-
"assignments",
|
|
1657
|
-
"questions",
|
|
1658
|
-
"worktrees",
|
|
1659
|
-
"leases",
|
|
1660
|
-
"claims"
|
|
1661
|
-
],
|
|
1662
|
-
"additionalProperties": true
|
|
1663
|
-
},
|
|
1664
|
-
"health": {
|
|
1665
|
-
"type": "object",
|
|
1666
|
-
"properties": {
|
|
1667
|
-
"live": {
|
|
1668
|
-
"type": "boolean"
|
|
1669
|
-
},
|
|
1670
|
-
"ready": {
|
|
1671
|
-
"type": "boolean"
|
|
1672
|
-
},
|
|
1673
|
-
"checks": {
|
|
1674
|
-
"type": "array",
|
|
1675
|
-
"items": {
|
|
1676
|
-
"type": "object",
|
|
1677
|
-
"properties": {
|
|
1678
|
-
"id": {
|
|
1679
|
-
"type": "string"
|
|
1680
|
-
},
|
|
1681
|
-
"ok": {
|
|
1682
|
-
"type": "boolean"
|
|
1683
|
-
},
|
|
1684
|
-
"code": {
|
|
1685
|
-
"type": "string"
|
|
1686
|
-
},
|
|
1687
|
-
"message": {
|
|
1688
|
-
"type": "string"
|
|
1689
|
-
}
|
|
1690
|
-
},
|
|
1691
|
-
"required": [
|
|
1692
|
-
"id",
|
|
1693
|
-
"ok"
|
|
1694
|
-
],
|
|
1695
|
-
"additionalProperties": true
|
|
1696
|
-
}
|
|
1697
|
-
}
|
|
1698
|
-
},
|
|
1699
|
-
"required": [
|
|
1700
|
-
"live",
|
|
1701
|
-
"ready",
|
|
1702
|
-
"checks"
|
|
1703
|
-
],
|
|
1704
|
-
"additionalProperties": true
|
|
1705
|
-
},
|
|
1706
|
-
"projectRoot": {
|
|
1707
|
-
"type": "string",
|
|
1708
|
-
"minLength": 1,
|
|
1709
|
-
"maxLength": 4096,
|
|
1710
|
-
"description": "An absolute, normalized path on the daemon host to a directory holding .alp/. Compared as is: the daemon never walks up to a parent."
|
|
1711
|
-
},
|
|
1712
|
-
"taskId": {
|
|
1713
|
-
"type": "string",
|
|
1714
|
-
"pattern": "^t-[0-9a-f]{4,12}(?:\\.\\d+)*$"
|
|
1715
|
-
},
|
|
1716
|
-
"taskRow": {
|
|
1717
|
-
"type": "object",
|
|
1718
|
-
"properties": {
|
|
1719
|
-
"id": {
|
|
1720
|
-
"$ref": "#/$defs/taskId"
|
|
1721
|
-
},
|
|
1722
|
-
"title": {
|
|
1723
|
-
"type": "string"
|
|
1724
|
-
},
|
|
1725
|
-
"type": {
|
|
1726
|
-
"type": "string"
|
|
1727
|
-
},
|
|
1728
|
-
"priority": {
|
|
1729
|
-
"type": "integer"
|
|
1730
|
-
},
|
|
1731
|
-
"status": {
|
|
1732
|
-
"enum": [
|
|
1733
|
-
"open",
|
|
1734
|
-
"in_progress",
|
|
1735
|
-
"review",
|
|
1736
|
-
"closed"
|
|
1737
|
-
]
|
|
1738
|
-
},
|
|
1739
|
-
"rev": {
|
|
1740
|
-
"type": "integer",
|
|
1741
|
-
"minimum": 0
|
|
1742
|
-
},
|
|
1743
|
-
"parent": {
|
|
1744
|
-
"type": "string"
|
|
1745
|
-
},
|
|
1746
|
-
"assignee": {
|
|
1747
|
-
"type": "string"
|
|
1748
|
-
},
|
|
1749
|
-
"ready": {
|
|
1750
|
-
"type": "boolean"
|
|
1751
|
-
},
|
|
1752
|
-
"blockedBy": {
|
|
1753
|
-
"type": "array",
|
|
1754
|
-
"items": {
|
|
1755
|
-
"type": "string"
|
|
1756
|
-
}
|
|
1757
|
-
},
|
|
1758
|
-
"waits": {
|
|
1759
|
-
"type": "array",
|
|
1760
|
-
"items": {
|
|
1761
|
-
"type": "string"
|
|
1762
|
-
}
|
|
1763
|
-
},
|
|
1764
|
-
"approvals": {
|
|
1765
|
-
"type": "array",
|
|
1766
|
-
"items": {
|
|
1767
|
-
"type": "object",
|
|
1768
|
-
"properties": {
|
|
1769
|
-
"gate": {
|
|
1770
|
-
"type": "string"
|
|
1771
|
-
},
|
|
1772
|
-
"note": {
|
|
1773
|
-
"type": "string"
|
|
1774
|
-
}
|
|
1775
|
-
},
|
|
1776
|
-
"required": [
|
|
1777
|
-
"gate",
|
|
1778
|
-
"note"
|
|
1779
|
-
],
|
|
1780
|
-
"additionalProperties": true
|
|
1781
|
-
}
|
|
1782
|
-
},
|
|
1783
|
-
"handoff": {
|
|
1784
|
-
"type": "object",
|
|
1785
|
-
"properties": {
|
|
1786
|
-
"outcome": {
|
|
1787
|
-
"type": "string"
|
|
1788
|
-
},
|
|
1789
|
-
"summary": {
|
|
1790
|
-
"type": "string"
|
|
1791
|
-
},
|
|
1792
|
-
"agent": {
|
|
1793
|
-
"type": "string"
|
|
1794
|
-
}
|
|
1795
|
-
},
|
|
1796
|
-
"required": [
|
|
1797
|
-
"outcome",
|
|
1798
|
-
"summary"
|
|
1799
|
-
],
|
|
1800
|
-
"additionalProperties": true
|
|
1801
|
-
},
|
|
1802
|
-
"closed": {
|
|
1803
|
-
"type": "object",
|
|
1804
|
-
"properties": {
|
|
1805
|
-
"reason": {
|
|
1806
|
-
"type": "string"
|
|
1807
|
-
},
|
|
1808
|
-
"summary": {
|
|
1809
|
-
"type": "string"
|
|
1810
|
-
},
|
|
1811
|
-
"at": {
|
|
1812
|
-
"type": "string"
|
|
1813
|
-
}
|
|
1814
|
-
},
|
|
1815
|
-
"required": [
|
|
1816
|
-
"reason",
|
|
1817
|
-
"at"
|
|
1818
|
-
],
|
|
1819
|
-
"additionalProperties": true
|
|
1820
|
-
},
|
|
1821
|
-
"description": {
|
|
1822
|
-
"type": "string"
|
|
1823
|
-
},
|
|
1824
|
-
"labels": {
|
|
1825
|
-
"type": "array",
|
|
1826
|
-
"items": {
|
|
1827
|
-
"type": "string"
|
|
1828
|
-
}
|
|
1829
|
-
},
|
|
1830
|
-
"paths": {
|
|
1831
|
-
"type": "array",
|
|
1832
|
-
"items": {
|
|
1833
|
-
"type": "string"
|
|
1834
|
-
}
|
|
1835
|
-
},
|
|
1836
|
-
"progress": {
|
|
1837
|
-
"type": "object",
|
|
1838
|
-
"properties": {
|
|
1839
|
-
"done": {
|
|
1840
|
-
"type": "integer",
|
|
1841
|
-
"minimum": 0
|
|
1842
|
-
},
|
|
1843
|
-
"total": {
|
|
1844
|
-
"type": "integer",
|
|
1845
|
-
"minimum": 0
|
|
1846
|
-
}
|
|
1847
|
-
},
|
|
1848
|
-
"required": [
|
|
1849
|
-
"done",
|
|
1850
|
-
"total"
|
|
1851
|
-
],
|
|
1852
|
-
"additionalProperties": true
|
|
1853
|
-
},
|
|
1854
|
-
"createdAt": {
|
|
1855
|
-
"type": "string"
|
|
1856
|
-
},
|
|
1857
|
-
"updatedAt": {
|
|
1858
|
-
"type": "string"
|
|
1859
|
-
}
|
|
1860
|
-
},
|
|
1861
|
-
"required": [
|
|
1862
|
-
"id",
|
|
1863
|
-
"title",
|
|
1864
|
-
"type",
|
|
1865
|
-
"priority",
|
|
1866
|
-
"status",
|
|
1867
|
-
"rev",
|
|
1868
|
-
"ready",
|
|
1869
|
-
"updatedAt"
|
|
1870
|
-
],
|
|
1871
|
-
"additionalProperties": true
|
|
1872
|
-
},
|
|
1873
|
-
"libraryKind": {
|
|
1874
|
-
"enum": [
|
|
1875
|
-
"agents",
|
|
1876
|
-
"skills",
|
|
1877
|
-
"mcp",
|
|
1878
|
-
"hooks",
|
|
1879
|
-
"teams",
|
|
1880
|
-
"providers"
|
|
1881
|
-
]
|
|
1882
|
-
},
|
|
1883
|
-
"libraryScope": {
|
|
1884
|
-
"enum": [
|
|
1885
|
-
"library",
|
|
1886
|
-
"project"
|
|
1887
|
-
]
|
|
1888
|
-
},
|
|
1889
|
-
"librarySource": {
|
|
1890
|
-
"enum": [
|
|
1891
|
-
"builtin",
|
|
1892
|
-
"library",
|
|
1893
|
-
"project"
|
|
1894
|
-
]
|
|
1895
|
-
},
|
|
1896
|
-
"entryName": {
|
|
1897
|
-
"type": "string",
|
|
1898
|
-
"minLength": 1,
|
|
1899
|
-
"maxLength": 128,
|
|
1900
|
-
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
1901
|
-
"not": {
|
|
1902
|
-
"enum": [
|
|
1903
|
-
".",
|
|
1904
|
-
".."
|
|
1905
|
-
]
|
|
1906
|
-
}
|
|
1907
|
-
},
|
|
1908
|
-
"libraryRevision": {
|
|
1909
|
-
"type": [
|
|
1910
|
-
"string",
|
|
1911
|
-
"null"
|
|
1912
|
-
]
|
|
1913
|
-
},
|
|
1914
|
-
"libraryEntryRow": {
|
|
1915
|
-
"type": "object",
|
|
1916
|
-
"properties": {
|
|
1917
|
-
"name": {
|
|
1918
|
-
"type": "string"
|
|
1919
|
-
},
|
|
1920
|
-
"source": {
|
|
1921
|
-
"$ref": "#/$defs/librarySource"
|
|
1922
|
-
},
|
|
1923
|
-
"overrides": {
|
|
1924
|
-
"$ref": "#/$defs/librarySource"
|
|
1925
|
-
},
|
|
1926
|
-
"description": {
|
|
1927
|
-
"type": "string"
|
|
1928
|
-
},
|
|
1929
|
-
"usedBy": {
|
|
1930
|
-
"type": "array",
|
|
1931
|
-
"items": {
|
|
1932
|
-
"type": "string"
|
|
1933
|
-
}
|
|
1934
|
-
}
|
|
1935
|
-
},
|
|
1936
|
-
"required": [
|
|
1937
|
-
"name",
|
|
1938
|
-
"source"
|
|
1939
|
-
],
|
|
1940
|
-
"additionalProperties": true
|
|
1941
|
-
},
|
|
1942
|
-
"secretMarker": {
|
|
1943
|
-
"type": "object",
|
|
1944
|
-
"properties": {
|
|
1945
|
-
"$secret": {
|
|
1946
|
-
"const": "keep"
|
|
1947
|
-
}
|
|
1948
|
-
},
|
|
1949
|
-
"required": [
|
|
1950
|
-
"$secret"
|
|
1951
|
-
],
|
|
1952
|
-
"additionalProperties": false,
|
|
1953
|
-
"description": "Stands for a stored secret value: read results carry it in place of the value; a save that sends it back keeps the stored value."
|
|
1954
|
-
},
|
|
1955
|
-
"languageSetting": {
|
|
1956
|
-
"type": "object",
|
|
1957
|
-
"properties": {
|
|
1958
|
-
"language": {
|
|
1959
|
-
"type": [
|
|
1960
|
-
"string",
|
|
1961
|
-
"null"
|
|
1962
|
-
]
|
|
1963
|
-
},
|
|
1964
|
-
"applies": {
|
|
1965
|
-
"type": "string"
|
|
1966
|
-
},
|
|
1967
|
-
"default": {
|
|
1968
|
-
"type": "string"
|
|
1969
|
-
}
|
|
1970
|
-
},
|
|
1971
|
-
"required": [
|
|
1972
|
-
"language",
|
|
1973
|
-
"applies",
|
|
1974
|
-
"default"
|
|
1975
|
-
],
|
|
1976
|
-
"additionalProperties": true
|
|
1977
|
-
},
|
|
1978
|
-
"teamRow": {
|
|
1979
|
-
"type": "object",
|
|
1980
|
-
"properties": {
|
|
1981
|
-
"id": {
|
|
1982
|
-
"type": "string"
|
|
1983
|
-
},
|
|
1984
|
-
"label": {
|
|
1985
|
-
"type": "string"
|
|
1986
|
-
},
|
|
1987
|
-
"description": {
|
|
1988
|
-
"type": "string"
|
|
1989
|
-
},
|
|
1990
|
-
"source": {
|
|
1991
|
-
"$ref": "#/$defs/librarySource"
|
|
1992
|
-
},
|
|
1993
|
-
"overrides": {
|
|
1994
|
-
"$ref": "#/$defs/librarySource"
|
|
1995
|
-
},
|
|
1996
|
-
"error": {
|
|
1997
|
-
"type": "string"
|
|
1998
|
-
}
|
|
1999
|
-
},
|
|
2000
|
-
"required": [
|
|
2001
|
-
"id",
|
|
2002
|
-
"source"
|
|
1047
|
+
"jsonrpc",
|
|
1048
|
+
"method",
|
|
1049
|
+
"params"
|
|
2003
1050
|
],
|
|
2004
1051
|
"additionalProperties": true
|
|
2005
1052
|
}
|