@agent-phonon/protocol 0.2.11 → 0.6.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/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +9 -0
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +7 -0
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/discovery.d.ts +26 -0
- package/dist/schemas/discovery.d.ts.map +1 -1
- package/dist/schemas/methods.d.ts +1457 -0
- package/dist/schemas/methods.d.ts.map +1 -1
- package/dist/schemas/methods.js +46 -1
- package/dist/schemas/methods.js.map +1 -1
- package/dist/schemas/skill.d.ts +97 -0
- package/dist/schemas/skill.d.ts.map +1 -1
- package/dist/schemas/skill.js +24 -0
- package/dist/schemas/skill.js.map +1 -1
- package/dist/schemas/stream.d.ts +192 -16
- package/dist/schemas/stream.d.ts.map +1 -1
- package/dist/schemas/stream.js +9 -0
- package/dist/schemas/stream.js.map +1 -1
- package/dist/schemas/workflow.d.ts +2965 -0
- package/dist/schemas/workflow.d.ts.map +1 -0
- package/dist/schemas/workflow.js +365 -0
- package/dist/schemas/workflow.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schemas/capabilities.ts +7 -0
- package/src/schemas/methods.ts +59 -0
- package/src/schemas/skill.ts +30 -0
- package/src/schemas/stream.ts +9 -0
- package/src/schemas/workflow.ts +439 -0
|
@@ -349,6 +349,7 @@ export declare const METHODS: {
|
|
|
349
349
|
skillManagement: z.ZodBoolean;
|
|
350
350
|
hooks: z.ZodArray<z.ZodEnum<["pre_tool", "post_tool", "pre_command", "pre_file_write", "pre_network", "session_start", "session_end", "notification"]>, "many">;
|
|
351
351
|
streaming: z.ZodBoolean;
|
|
352
|
+
workflowRoles: z.ZodDefault<z.ZodArray<z.ZodEnum<["executor", "worker"]>, "many">>;
|
|
352
353
|
limits: z.ZodOptional<z.ZodObject<{
|
|
353
354
|
maxConcurrentSessions: z.ZodOptional<z.ZodNumber>;
|
|
354
355
|
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -373,6 +374,7 @@ export declare const METHODS: {
|
|
|
373
374
|
skillManagement: boolean;
|
|
374
375
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
375
376
|
streaming: boolean;
|
|
377
|
+
workflowRoles: ("executor" | "worker")[];
|
|
376
378
|
limits?: {
|
|
377
379
|
maxConcurrentSessions?: number | undefined;
|
|
378
380
|
maxContextTokens?: number | undefined;
|
|
@@ -389,6 +391,7 @@ export declare const METHODS: {
|
|
|
389
391
|
skillManagement: boolean;
|
|
390
392
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
391
393
|
streaming: boolean;
|
|
394
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
392
395
|
limits?: {
|
|
393
396
|
maxConcurrentSessions?: number | undefined;
|
|
394
397
|
maxContextTokens?: number | undefined;
|
|
@@ -418,6 +421,7 @@ export declare const METHODS: {
|
|
|
418
421
|
skillManagement: boolean;
|
|
419
422
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
420
423
|
streaming: boolean;
|
|
424
|
+
workflowRoles: ("executor" | "worker")[];
|
|
421
425
|
limits?: {
|
|
422
426
|
maxConcurrentSessions?: number | undefined;
|
|
423
427
|
maxContextTokens?: number | undefined;
|
|
@@ -449,6 +453,7 @@ export declare const METHODS: {
|
|
|
449
453
|
skillManagement: boolean;
|
|
450
454
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
451
455
|
streaming: boolean;
|
|
456
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
452
457
|
limits?: {
|
|
453
458
|
maxConcurrentSessions?: number | undefined;
|
|
454
459
|
maxContextTokens?: number | undefined;
|
|
@@ -482,6 +487,7 @@ export declare const METHODS: {
|
|
|
482
487
|
skillManagement: boolean;
|
|
483
488
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
484
489
|
streaming: boolean;
|
|
490
|
+
workflowRoles: ("executor" | "worker")[];
|
|
485
491
|
limits?: {
|
|
486
492
|
maxConcurrentSessions?: number | undefined;
|
|
487
493
|
maxContextTokens?: number | undefined;
|
|
@@ -515,6 +521,7 @@ export declare const METHODS: {
|
|
|
515
521
|
skillManagement: boolean;
|
|
516
522
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
517
523
|
streaming: boolean;
|
|
524
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
518
525
|
limits?: {
|
|
519
526
|
maxConcurrentSessions?: number | undefined;
|
|
520
527
|
maxContextTokens?: number | undefined;
|
|
@@ -572,6 +579,7 @@ export declare const METHODS: {
|
|
|
572
579
|
skillManagement: z.ZodBoolean;
|
|
573
580
|
hooks: z.ZodArray<z.ZodEnum<["pre_tool", "post_tool", "pre_command", "pre_file_write", "pre_network", "session_start", "session_end", "notification"]>, "many">;
|
|
574
581
|
streaming: z.ZodBoolean;
|
|
582
|
+
workflowRoles: z.ZodDefault<z.ZodArray<z.ZodEnum<["executor", "worker"]>, "many">>;
|
|
575
583
|
limits: z.ZodOptional<z.ZodObject<{
|
|
576
584
|
maxConcurrentSessions: z.ZodOptional<z.ZodNumber>;
|
|
577
585
|
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -596,6 +604,7 @@ export declare const METHODS: {
|
|
|
596
604
|
skillManagement: boolean;
|
|
597
605
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
598
606
|
streaming: boolean;
|
|
607
|
+
workflowRoles: ("executor" | "worker")[];
|
|
599
608
|
limits?: {
|
|
600
609
|
maxConcurrentSessions?: number | undefined;
|
|
601
610
|
maxContextTokens?: number | undefined;
|
|
@@ -612,6 +621,7 @@ export declare const METHODS: {
|
|
|
612
621
|
skillManagement: boolean;
|
|
613
622
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
614
623
|
streaming: boolean;
|
|
624
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
615
625
|
limits?: {
|
|
616
626
|
maxConcurrentSessions?: number | undefined;
|
|
617
627
|
maxContextTokens?: number | undefined;
|
|
@@ -641,6 +651,7 @@ export declare const METHODS: {
|
|
|
641
651
|
skillManagement: boolean;
|
|
642
652
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
643
653
|
streaming: boolean;
|
|
654
|
+
workflowRoles: ("executor" | "worker")[];
|
|
644
655
|
limits?: {
|
|
645
656
|
maxConcurrentSessions?: number | undefined;
|
|
646
657
|
maxContextTokens?: number | undefined;
|
|
@@ -672,6 +683,7 @@ export declare const METHODS: {
|
|
|
672
683
|
skillManagement: boolean;
|
|
673
684
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
674
685
|
streaming: boolean;
|
|
686
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
675
687
|
limits?: {
|
|
676
688
|
maxConcurrentSessions?: number | undefined;
|
|
677
689
|
maxContextTokens?: number | undefined;
|
|
@@ -705,6 +717,7 @@ export declare const METHODS: {
|
|
|
705
717
|
skillManagement: boolean;
|
|
706
718
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
707
719
|
streaming: boolean;
|
|
720
|
+
workflowRoles: ("executor" | "worker")[];
|
|
708
721
|
limits?: {
|
|
709
722
|
maxConcurrentSessions?: number | undefined;
|
|
710
723
|
maxContextTokens?: number | undefined;
|
|
@@ -738,6 +751,7 @@ export declare const METHODS: {
|
|
|
738
751
|
skillManagement: boolean;
|
|
739
752
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
740
753
|
streaming: boolean;
|
|
754
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
741
755
|
limits?: {
|
|
742
756
|
maxConcurrentSessions?: number | undefined;
|
|
743
757
|
maxContextTokens?: number | undefined;
|
|
@@ -790,6 +804,7 @@ export declare const METHODS: {
|
|
|
790
804
|
skillManagement: z.ZodBoolean;
|
|
791
805
|
hooks: z.ZodArray<z.ZodEnum<["pre_tool", "post_tool", "pre_command", "pre_file_write", "pre_network", "session_start", "session_end", "notification"]>, "many">;
|
|
792
806
|
streaming: z.ZodBoolean;
|
|
807
|
+
workflowRoles: z.ZodDefault<z.ZodArray<z.ZodEnum<["executor", "worker"]>, "many">>;
|
|
793
808
|
limits: z.ZodOptional<z.ZodObject<{
|
|
794
809
|
maxConcurrentSessions: z.ZodOptional<z.ZodNumber>;
|
|
795
810
|
maxContextTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -814,6 +829,7 @@ export declare const METHODS: {
|
|
|
814
829
|
skillManagement: boolean;
|
|
815
830
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
816
831
|
streaming: boolean;
|
|
832
|
+
workflowRoles: ("executor" | "worker")[];
|
|
817
833
|
limits?: {
|
|
818
834
|
maxConcurrentSessions?: number | undefined;
|
|
819
835
|
maxContextTokens?: number | undefined;
|
|
@@ -830,6 +846,7 @@ export declare const METHODS: {
|
|
|
830
846
|
skillManagement: boolean;
|
|
831
847
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
832
848
|
streaming: boolean;
|
|
849
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
833
850
|
limits?: {
|
|
834
851
|
maxConcurrentSessions?: number | undefined;
|
|
835
852
|
maxContextTokens?: number | undefined;
|
|
@@ -859,6 +876,7 @@ export declare const METHODS: {
|
|
|
859
876
|
skillManagement: boolean;
|
|
860
877
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
861
878
|
streaming: boolean;
|
|
879
|
+
workflowRoles: ("executor" | "worker")[];
|
|
862
880
|
limits?: {
|
|
863
881
|
maxConcurrentSessions?: number | undefined;
|
|
864
882
|
maxContextTokens?: number | undefined;
|
|
@@ -890,6 +908,7 @@ export declare const METHODS: {
|
|
|
890
908
|
skillManagement: boolean;
|
|
891
909
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
892
910
|
streaming: boolean;
|
|
911
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
893
912
|
limits?: {
|
|
894
913
|
maxConcurrentSessions?: number | undefined;
|
|
895
914
|
maxContextTokens?: number | undefined;
|
|
@@ -927,6 +946,7 @@ export declare const METHODS: {
|
|
|
927
946
|
skillManagement: boolean;
|
|
928
947
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
929
948
|
streaming: boolean;
|
|
949
|
+
workflowRoles: ("executor" | "worker")[];
|
|
930
950
|
limits?: {
|
|
931
951
|
maxConcurrentSessions?: number | undefined;
|
|
932
952
|
maxContextTokens?: number | undefined;
|
|
@@ -963,6 +983,7 @@ export declare const METHODS: {
|
|
|
963
983
|
skillManagement: boolean;
|
|
964
984
|
hooks: ("pre_tool" | "post_tool" | "pre_command" | "pre_file_write" | "pre_network" | "session_start" | "session_end" | "notification")[];
|
|
965
985
|
streaming: boolean;
|
|
986
|
+
workflowRoles?: ("executor" | "worker")[] | undefined;
|
|
966
987
|
limits?: {
|
|
967
988
|
maxConcurrentSessions?: number | undefined;
|
|
968
989
|
maxContextTokens?: number | undefined;
|
|
@@ -1511,6 +1532,8 @@ export declare const METHODS: {
|
|
|
1511
1532
|
source: z.ZodOptional<z.ZodString>;
|
|
1512
1533
|
seq: z.ZodNumber;
|
|
1513
1534
|
at: z.ZodString;
|
|
1535
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1514
1537
|
} & {
|
|
1515
1538
|
type: z.ZodLiteral<"message">;
|
|
1516
1539
|
role: z.ZodDefault<z.ZodEnum<["assistant", "user", "system"]>>;
|
|
@@ -1527,6 +1550,8 @@ export declare const METHODS: {
|
|
|
1527
1550
|
text: string;
|
|
1528
1551
|
delta: boolean;
|
|
1529
1552
|
source?: string | undefined;
|
|
1553
|
+
workflowId?: string | undefined;
|
|
1554
|
+
nodeId?: string | undefined;
|
|
1530
1555
|
}, {
|
|
1531
1556
|
at: string;
|
|
1532
1557
|
type: "message";
|
|
@@ -1537,6 +1562,8 @@ export declare const METHODS: {
|
|
|
1537
1562
|
role?: "system" | "user" | "assistant" | undefined;
|
|
1538
1563
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1539
1564
|
source?: string | undefined;
|
|
1565
|
+
workflowId?: string | undefined;
|
|
1566
|
+
nodeId?: string | undefined;
|
|
1540
1567
|
delta?: boolean | undefined;
|
|
1541
1568
|
}>, z.ZodObject<{
|
|
1542
1569
|
sessionId: z.ZodBranded<z.ZodString, "SessionId">;
|
|
@@ -1545,6 +1572,9 @@ export declare const METHODS: {
|
|
|
1545
1572
|
source: z.ZodOptional<z.ZodString>;
|
|
1546
1573
|
seq: z.ZodNumber;
|
|
1547
1574
|
at: z.ZodString;
|
|
1575
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1576
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1577
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1548
1578
|
} & {
|
|
1549
1579
|
type: z.ZodLiteral<"thinking">;
|
|
1550
1580
|
text: z.ZodString;
|
|
@@ -1558,7 +1588,10 @@ export declare const METHODS: {
|
|
|
1558
1588
|
seq: number;
|
|
1559
1589
|
text: string;
|
|
1560
1590
|
delta: boolean;
|
|
1591
|
+
role?: string | undefined;
|
|
1561
1592
|
source?: string | undefined;
|
|
1593
|
+
workflowId?: string | undefined;
|
|
1594
|
+
nodeId?: string | undefined;
|
|
1562
1595
|
}, {
|
|
1563
1596
|
at: string;
|
|
1564
1597
|
type: "thinking";
|
|
@@ -1566,8 +1599,11 @@ export declare const METHODS: {
|
|
|
1566
1599
|
turnId: string;
|
|
1567
1600
|
seq: number;
|
|
1568
1601
|
text: string;
|
|
1602
|
+
role?: string | undefined;
|
|
1569
1603
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1570
1604
|
source?: string | undefined;
|
|
1605
|
+
workflowId?: string | undefined;
|
|
1606
|
+
nodeId?: string | undefined;
|
|
1571
1607
|
delta?: boolean | undefined;
|
|
1572
1608
|
}>, z.ZodObject<{
|
|
1573
1609
|
sessionId: z.ZodBranded<z.ZodString, "SessionId">;
|
|
@@ -1576,6 +1612,9 @@ export declare const METHODS: {
|
|
|
1576
1612
|
source: z.ZodOptional<z.ZodString>;
|
|
1577
1613
|
seq: z.ZodNumber;
|
|
1578
1614
|
at: z.ZodString;
|
|
1615
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1616
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1617
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1579
1618
|
} & {
|
|
1580
1619
|
type: z.ZodLiteral<"tool_call">;
|
|
1581
1620
|
toolName: z.ZodString;
|
|
@@ -1589,7 +1628,10 @@ export declare const METHODS: {
|
|
|
1589
1628
|
origin: "solicited" | "unsolicited";
|
|
1590
1629
|
seq: number;
|
|
1591
1630
|
toolName: string;
|
|
1631
|
+
role?: string | undefined;
|
|
1592
1632
|
source?: string | undefined;
|
|
1633
|
+
workflowId?: string | undefined;
|
|
1634
|
+
nodeId?: string | undefined;
|
|
1593
1635
|
args?: unknown;
|
|
1594
1636
|
toolCallId?: string | undefined;
|
|
1595
1637
|
}, {
|
|
@@ -1599,8 +1641,11 @@ export declare const METHODS: {
|
|
|
1599
1641
|
turnId: string;
|
|
1600
1642
|
seq: number;
|
|
1601
1643
|
toolName: string;
|
|
1644
|
+
role?: string | undefined;
|
|
1602
1645
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1603
1646
|
source?: string | undefined;
|
|
1647
|
+
workflowId?: string | undefined;
|
|
1648
|
+
nodeId?: string | undefined;
|
|
1604
1649
|
args?: unknown;
|
|
1605
1650
|
toolCallId?: string | undefined;
|
|
1606
1651
|
}>, z.ZodObject<{
|
|
@@ -1610,6 +1655,9 @@ export declare const METHODS: {
|
|
|
1610
1655
|
source: z.ZodOptional<z.ZodString>;
|
|
1611
1656
|
seq: z.ZodNumber;
|
|
1612
1657
|
at: z.ZodString;
|
|
1658
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1659
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1660
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1613
1661
|
} & {
|
|
1614
1662
|
type: z.ZodLiteral<"tool_result">;
|
|
1615
1663
|
toolName: z.ZodString;
|
|
@@ -1625,7 +1673,10 @@ export declare const METHODS: {
|
|
|
1625
1673
|
seq: number;
|
|
1626
1674
|
toolName: string;
|
|
1627
1675
|
ok: boolean;
|
|
1676
|
+
role?: string | undefined;
|
|
1628
1677
|
source?: string | undefined;
|
|
1678
|
+
workflowId?: string | undefined;
|
|
1679
|
+
nodeId?: string | undefined;
|
|
1629
1680
|
toolCallId?: string | undefined;
|
|
1630
1681
|
output?: unknown;
|
|
1631
1682
|
}, {
|
|
@@ -1636,8 +1687,11 @@ export declare const METHODS: {
|
|
|
1636
1687
|
seq: number;
|
|
1637
1688
|
toolName: string;
|
|
1638
1689
|
ok: boolean;
|
|
1690
|
+
role?: string | undefined;
|
|
1639
1691
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1640
1692
|
source?: string | undefined;
|
|
1693
|
+
workflowId?: string | undefined;
|
|
1694
|
+
nodeId?: string | undefined;
|
|
1641
1695
|
toolCallId?: string | undefined;
|
|
1642
1696
|
output?: unknown;
|
|
1643
1697
|
}>, z.ZodObject<{
|
|
@@ -1647,6 +1701,9 @@ export declare const METHODS: {
|
|
|
1647
1701
|
source: z.ZodOptional<z.ZodString>;
|
|
1648
1702
|
seq: z.ZodNumber;
|
|
1649
1703
|
at: z.ZodString;
|
|
1704
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1705
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1650
1707
|
} & {
|
|
1651
1708
|
type: z.ZodLiteral<"token">;
|
|
1652
1709
|
text: z.ZodString;
|
|
@@ -1658,7 +1715,10 @@ export declare const METHODS: {
|
|
|
1658
1715
|
origin: "solicited" | "unsolicited";
|
|
1659
1716
|
seq: number;
|
|
1660
1717
|
text: string;
|
|
1718
|
+
role?: string | undefined;
|
|
1661
1719
|
source?: string | undefined;
|
|
1720
|
+
workflowId?: string | undefined;
|
|
1721
|
+
nodeId?: string | undefined;
|
|
1662
1722
|
}, {
|
|
1663
1723
|
at: string;
|
|
1664
1724
|
type: "token";
|
|
@@ -1666,8 +1726,11 @@ export declare const METHODS: {
|
|
|
1666
1726
|
turnId: string;
|
|
1667
1727
|
seq: number;
|
|
1668
1728
|
text: string;
|
|
1729
|
+
role?: string | undefined;
|
|
1669
1730
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1670
1731
|
source?: string | undefined;
|
|
1732
|
+
workflowId?: string | undefined;
|
|
1733
|
+
nodeId?: string | undefined;
|
|
1671
1734
|
}>, z.ZodObject<{
|
|
1672
1735
|
sessionId: z.ZodBranded<z.ZodString, "SessionId">;
|
|
1673
1736
|
turnId: z.ZodString;
|
|
@@ -1675,6 +1738,9 @@ export declare const METHODS: {
|
|
|
1675
1738
|
source: z.ZodOptional<z.ZodString>;
|
|
1676
1739
|
seq: z.ZodNumber;
|
|
1677
1740
|
at: z.ZodString;
|
|
1741
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1742
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1743
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1678
1744
|
} & {
|
|
1679
1745
|
type: z.ZodLiteral<"result">;
|
|
1680
1746
|
text: z.ZodString;
|
|
@@ -1700,7 +1766,10 @@ export declare const METHODS: {
|
|
|
1700
1766
|
origin: "solicited" | "unsolicited";
|
|
1701
1767
|
seq: number;
|
|
1702
1768
|
text: string;
|
|
1769
|
+
role?: string | undefined;
|
|
1703
1770
|
source?: string | undefined;
|
|
1771
|
+
workflowId?: string | undefined;
|
|
1772
|
+
nodeId?: string | undefined;
|
|
1704
1773
|
usage?: {
|
|
1705
1774
|
inputTokens?: number | undefined;
|
|
1706
1775
|
outputTokens?: number | undefined;
|
|
@@ -1714,8 +1783,11 @@ export declare const METHODS: {
|
|
|
1714
1783
|
seq: number;
|
|
1715
1784
|
text: string;
|
|
1716
1785
|
status?: "aborted" | "interrupted" | "completed" | "failed" | "timeout" | undefined;
|
|
1786
|
+
role?: string | undefined;
|
|
1717
1787
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1718
1788
|
source?: string | undefined;
|
|
1789
|
+
workflowId?: string | undefined;
|
|
1790
|
+
nodeId?: string | undefined;
|
|
1719
1791
|
usage?: {
|
|
1720
1792
|
inputTokens?: number | undefined;
|
|
1721
1793
|
outputTokens?: number | undefined;
|
|
@@ -1727,6 +1799,9 @@ export declare const METHODS: {
|
|
|
1727
1799
|
source: z.ZodOptional<z.ZodString>;
|
|
1728
1800
|
seq: z.ZodNumber;
|
|
1729
1801
|
at: z.ZodString;
|
|
1802
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1803
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
1804
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1730
1805
|
} & {
|
|
1731
1806
|
type: z.ZodLiteral<"error">;
|
|
1732
1807
|
message: z.ZodString;
|
|
@@ -1744,7 +1819,10 @@ export declare const METHODS: {
|
|
|
1744
1819
|
origin: "solicited" | "unsolicited";
|
|
1745
1820
|
seq: number;
|
|
1746
1821
|
appCode?: string | undefined;
|
|
1822
|
+
role?: string | undefined;
|
|
1747
1823
|
source?: string | undefined;
|
|
1824
|
+
workflowId?: string | undefined;
|
|
1825
|
+
nodeId?: string | undefined;
|
|
1748
1826
|
}, {
|
|
1749
1827
|
at: string;
|
|
1750
1828
|
message: string;
|
|
@@ -1755,8 +1833,11 @@ export declare const METHODS: {
|
|
|
1755
1833
|
seq: number;
|
|
1756
1834
|
status?: "aborted" | "interrupted" | "failed" | "timeout" | undefined;
|
|
1757
1835
|
appCode?: string | undefined;
|
|
1836
|
+
role?: string | undefined;
|
|
1758
1837
|
origin?: "solicited" | "unsolicited" | undefined;
|
|
1759
1838
|
source?: string | undefined;
|
|
1839
|
+
workflowId?: string | undefined;
|
|
1840
|
+
nodeId?: string | undefined;
|
|
1760
1841
|
}>]>;
|
|
1761
1842
|
readonly result: z.ZodUndefined;
|
|
1762
1843
|
};
|
|
@@ -3810,6 +3891,1382 @@ export declare const METHODS: {
|
|
|
3810
3891
|
}[];
|
|
3811
3892
|
}>;
|
|
3812
3893
|
};
|
|
3894
|
+
readonly "skill.dirs": {
|
|
3895
|
+
readonly direction: "s2p";
|
|
3896
|
+
readonly kind: "request";
|
|
3897
|
+
readonly params: z.ZodObject<{
|
|
3898
|
+
agent: z.ZodOptional<z.ZodBranded<z.ZodString, "AgentId">>;
|
|
3899
|
+
projectId: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
3900
|
+
scope: z.ZodOptional<z.ZodEnum<["global", "project"]>>;
|
|
3901
|
+
}, "strip", z.ZodTypeAny, {
|
|
3902
|
+
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
3903
|
+
scope?: "project" | "global" | undefined;
|
|
3904
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
3905
|
+
}, {
|
|
3906
|
+
agent?: string | undefined;
|
|
3907
|
+
scope?: "project" | "global" | undefined;
|
|
3908
|
+
projectId?: string | undefined;
|
|
3909
|
+
}>;
|
|
3910
|
+
readonly result: z.ZodObject<{
|
|
3911
|
+
directories: z.ZodArray<z.ZodObject<{
|
|
3912
|
+
name: z.ZodString;
|
|
3913
|
+
scope: z.ZodEnum<["global", "project"]>;
|
|
3914
|
+
agent: z.ZodOptional<z.ZodBranded<z.ZodString, "AgentId">>;
|
|
3915
|
+
projectId: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
3916
|
+
rootPath: z.ZodString;
|
|
3917
|
+
path: z.ZodString;
|
|
3918
|
+
exists: z.ZodBoolean;
|
|
3919
|
+
}, "strip", z.ZodTypeAny, {
|
|
3920
|
+
path: string;
|
|
3921
|
+
name: string;
|
|
3922
|
+
scope: "project" | "global";
|
|
3923
|
+
rootPath: string;
|
|
3924
|
+
exists: boolean;
|
|
3925
|
+
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
3926
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
3927
|
+
}, {
|
|
3928
|
+
path: string;
|
|
3929
|
+
name: string;
|
|
3930
|
+
scope: "project" | "global";
|
|
3931
|
+
rootPath: string;
|
|
3932
|
+
exists: boolean;
|
|
3933
|
+
agent?: string | undefined;
|
|
3934
|
+
projectId?: string | undefined;
|
|
3935
|
+
}>, "many">;
|
|
3936
|
+
}, "strip", z.ZodTypeAny, {
|
|
3937
|
+
directories: {
|
|
3938
|
+
path: string;
|
|
3939
|
+
name: string;
|
|
3940
|
+
scope: "project" | "global";
|
|
3941
|
+
rootPath: string;
|
|
3942
|
+
exists: boolean;
|
|
3943
|
+
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
3944
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
3945
|
+
}[];
|
|
3946
|
+
}, {
|
|
3947
|
+
directories: {
|
|
3948
|
+
path: string;
|
|
3949
|
+
name: string;
|
|
3950
|
+
scope: "project" | "global";
|
|
3951
|
+
rootPath: string;
|
|
3952
|
+
exists: boolean;
|
|
3953
|
+
agent?: string | undefined;
|
|
3954
|
+
projectId?: string | undefined;
|
|
3955
|
+
}[];
|
|
3956
|
+
}>;
|
|
3957
|
+
};
|
|
3958
|
+
readonly "workflow.run": {
|
|
3959
|
+
readonly direction: "s2p";
|
|
3960
|
+
readonly kind: "request";
|
|
3961
|
+
readonly params: z.ZodObject<{
|
|
3962
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
3963
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3964
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
3965
|
+
plan: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
3966
|
+
mode: z.ZodLiteral<"dag">;
|
|
3967
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
3968
|
+
nodeId: z.ZodString;
|
|
3969
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
3970
|
+
model: z.ZodString;
|
|
3971
|
+
role: z.ZodOptional<z.ZodString>;
|
|
3972
|
+
input: z.ZodOptional<z.ZodString>;
|
|
3973
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
3974
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3975
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
3976
|
+
agentConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3977
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3978
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
3979
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
3980
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
}, "strip", z.ZodTypeAny, {
|
|
3982
|
+
agent: string & z.BRAND<"AgentId">;
|
|
3983
|
+
model: string;
|
|
3984
|
+
nodeId: string;
|
|
3985
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
3986
|
+
role?: string | undefined;
|
|
3987
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
3988
|
+
worktreeId?: string | undefined;
|
|
3989
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
3990
|
+
input?: string | undefined;
|
|
3991
|
+
branch?: string | undefined;
|
|
3992
|
+
systemPrompt?: string | undefined;
|
|
3993
|
+
dependsOn?: string[] | undefined;
|
|
3994
|
+
metadata?: Record<string, unknown> | undefined;
|
|
3995
|
+
}, {
|
|
3996
|
+
agent: string;
|
|
3997
|
+
model: string;
|
|
3998
|
+
nodeId: string;
|
|
3999
|
+
sessionId?: string | undefined;
|
|
4000
|
+
role?: string | undefined;
|
|
4001
|
+
project?: string | undefined;
|
|
4002
|
+
worktreeId?: string | undefined;
|
|
4003
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4004
|
+
input?: string | undefined;
|
|
4005
|
+
branch?: string | undefined;
|
|
4006
|
+
systemPrompt?: string | undefined;
|
|
4007
|
+
dependsOn?: string[] | undefined;
|
|
4008
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4009
|
+
}>, "many">;
|
|
4010
|
+
edges: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4011
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
4012
|
+
from: z.ZodString;
|
|
4013
|
+
to: z.ZodString;
|
|
4014
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4015
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
4016
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4017
|
+
}, "strip", z.ZodTypeAny, {
|
|
4018
|
+
from: string;
|
|
4019
|
+
to: string;
|
|
4020
|
+
label?: string | undefined;
|
|
4021
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4022
|
+
edgeId?: string | undefined;
|
|
4023
|
+
condition?: string | undefined;
|
|
4024
|
+
}, {
|
|
4025
|
+
from: string;
|
|
4026
|
+
to: string;
|
|
4027
|
+
label?: string | undefined;
|
|
4028
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4029
|
+
edgeId?: string | undefined;
|
|
4030
|
+
condition?: string | undefined;
|
|
4031
|
+
}>, "many">>;
|
|
4032
|
+
finalNodeId: z.ZodOptional<z.ZodString>;
|
|
4033
|
+
}, "strip", z.ZodTypeAny, {
|
|
4034
|
+
mode: "dag";
|
|
4035
|
+
nodes: {
|
|
4036
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4037
|
+
model: string;
|
|
4038
|
+
nodeId: string;
|
|
4039
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4040
|
+
role?: string | undefined;
|
|
4041
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4042
|
+
worktreeId?: string | undefined;
|
|
4043
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4044
|
+
input?: string | undefined;
|
|
4045
|
+
branch?: string | undefined;
|
|
4046
|
+
systemPrompt?: string | undefined;
|
|
4047
|
+
dependsOn?: string[] | undefined;
|
|
4048
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4049
|
+
}[];
|
|
4050
|
+
edges?: {
|
|
4051
|
+
from: string;
|
|
4052
|
+
to: string;
|
|
4053
|
+
label?: string | undefined;
|
|
4054
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4055
|
+
edgeId?: string | undefined;
|
|
4056
|
+
condition?: string | undefined;
|
|
4057
|
+
}[] | undefined;
|
|
4058
|
+
finalNodeId?: string | undefined;
|
|
4059
|
+
}, {
|
|
4060
|
+
mode: "dag";
|
|
4061
|
+
nodes: {
|
|
4062
|
+
agent: string;
|
|
4063
|
+
model: string;
|
|
4064
|
+
nodeId: string;
|
|
4065
|
+
sessionId?: string | undefined;
|
|
4066
|
+
role?: string | undefined;
|
|
4067
|
+
project?: string | undefined;
|
|
4068
|
+
worktreeId?: string | undefined;
|
|
4069
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4070
|
+
input?: string | undefined;
|
|
4071
|
+
branch?: string | undefined;
|
|
4072
|
+
systemPrompt?: string | undefined;
|
|
4073
|
+
dependsOn?: string[] | undefined;
|
|
4074
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4075
|
+
}[];
|
|
4076
|
+
edges?: {
|
|
4077
|
+
from: string;
|
|
4078
|
+
to: string;
|
|
4079
|
+
label?: string | undefined;
|
|
4080
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4081
|
+
edgeId?: string | undefined;
|
|
4082
|
+
condition?: string | undefined;
|
|
4083
|
+
}[] | undefined;
|
|
4084
|
+
finalNodeId?: string | undefined;
|
|
4085
|
+
}>, z.ZodObject<{
|
|
4086
|
+
mode: z.ZodLiteral<"graph">;
|
|
4087
|
+
executor: z.ZodObject<{
|
|
4088
|
+
nodeId: z.ZodString;
|
|
4089
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
4090
|
+
model: z.ZodString;
|
|
4091
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4092
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
4093
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4094
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
4095
|
+
agentConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4096
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4097
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
4098
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
4099
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
4100
|
+
} & {
|
|
4101
|
+
role: z.ZodDefault<z.ZodLiteral<"executor">>;
|
|
4102
|
+
}, "strip", z.ZodTypeAny, {
|
|
4103
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4104
|
+
role: "executor";
|
|
4105
|
+
model: string;
|
|
4106
|
+
nodeId: string;
|
|
4107
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4108
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4109
|
+
worktreeId?: string | undefined;
|
|
4110
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4111
|
+
input?: string | undefined;
|
|
4112
|
+
branch?: string | undefined;
|
|
4113
|
+
systemPrompt?: string | undefined;
|
|
4114
|
+
dependsOn?: string[] | undefined;
|
|
4115
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4116
|
+
}, {
|
|
4117
|
+
agent: string;
|
|
4118
|
+
model: string;
|
|
4119
|
+
nodeId: string;
|
|
4120
|
+
sessionId?: string | undefined;
|
|
4121
|
+
role?: "executor" | undefined;
|
|
4122
|
+
project?: string | undefined;
|
|
4123
|
+
worktreeId?: string | undefined;
|
|
4124
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4125
|
+
input?: string | undefined;
|
|
4126
|
+
branch?: string | undefined;
|
|
4127
|
+
systemPrompt?: string | undefined;
|
|
4128
|
+
dependsOn?: string[] | undefined;
|
|
4129
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4130
|
+
}>;
|
|
4131
|
+
workers: z.ZodArray<z.ZodObject<{
|
|
4132
|
+
nodeId: z.ZodString;
|
|
4133
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
4134
|
+
model: z.ZodString;
|
|
4135
|
+
role: z.ZodOptional<z.ZodString>;
|
|
4136
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4137
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
4138
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4139
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
4140
|
+
agentConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4141
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4142
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
4143
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
4144
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
4145
|
+
}, "strip", z.ZodTypeAny, {
|
|
4146
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4147
|
+
model: string;
|
|
4148
|
+
nodeId: string;
|
|
4149
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4150
|
+
role?: string | undefined;
|
|
4151
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4152
|
+
worktreeId?: string | undefined;
|
|
4153
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4154
|
+
input?: string | undefined;
|
|
4155
|
+
branch?: string | undefined;
|
|
4156
|
+
systemPrompt?: string | undefined;
|
|
4157
|
+
dependsOn?: string[] | undefined;
|
|
4158
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4159
|
+
}, {
|
|
4160
|
+
agent: string;
|
|
4161
|
+
model: string;
|
|
4162
|
+
nodeId: string;
|
|
4163
|
+
sessionId?: string | undefined;
|
|
4164
|
+
role?: string | undefined;
|
|
4165
|
+
project?: string | undefined;
|
|
4166
|
+
worktreeId?: string | undefined;
|
|
4167
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4168
|
+
input?: string | undefined;
|
|
4169
|
+
branch?: string | undefined;
|
|
4170
|
+
systemPrompt?: string | undefined;
|
|
4171
|
+
dependsOn?: string[] | undefined;
|
|
4172
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4173
|
+
}>, "many">;
|
|
4174
|
+
communicationGraph: z.ZodObject<{
|
|
4175
|
+
edges: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
4176
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
4177
|
+
from: z.ZodString;
|
|
4178
|
+
to: z.ZodString;
|
|
4179
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4180
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
4181
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4182
|
+
}, "strip", z.ZodTypeAny, {
|
|
4183
|
+
from: string;
|
|
4184
|
+
to: string;
|
|
4185
|
+
label?: string | undefined;
|
|
4186
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4187
|
+
edgeId?: string | undefined;
|
|
4188
|
+
condition?: string | undefined;
|
|
4189
|
+
}, {
|
|
4190
|
+
from: string;
|
|
4191
|
+
to: string;
|
|
4192
|
+
label?: string | undefined;
|
|
4193
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4194
|
+
edgeId?: string | undefined;
|
|
4195
|
+
condition?: string | undefined;
|
|
4196
|
+
}>, "many">>;
|
|
4197
|
+
allowSelfLoop: z.ZodDefault<z.ZodBoolean>;
|
|
4198
|
+
maxIterations: z.ZodDefault<z.ZodNumber>;
|
|
4199
|
+
}, "strip", z.ZodTypeAny, {
|
|
4200
|
+
edges: {
|
|
4201
|
+
from: string;
|
|
4202
|
+
to: string;
|
|
4203
|
+
label?: string | undefined;
|
|
4204
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4205
|
+
edgeId?: string | undefined;
|
|
4206
|
+
condition?: string | undefined;
|
|
4207
|
+
}[];
|
|
4208
|
+
allowSelfLoop: boolean;
|
|
4209
|
+
maxIterations: number;
|
|
4210
|
+
}, {
|
|
4211
|
+
edges?: {
|
|
4212
|
+
from: string;
|
|
4213
|
+
to: string;
|
|
4214
|
+
label?: string | undefined;
|
|
4215
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4216
|
+
edgeId?: string | undefined;
|
|
4217
|
+
condition?: string | undefined;
|
|
4218
|
+
}[] | undefined;
|
|
4219
|
+
allowSelfLoop?: boolean | undefined;
|
|
4220
|
+
maxIterations?: number | undefined;
|
|
4221
|
+
}>;
|
|
4222
|
+
}, "strip", z.ZodTypeAny, {
|
|
4223
|
+
executor: {
|
|
4224
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4225
|
+
role: "executor";
|
|
4226
|
+
model: string;
|
|
4227
|
+
nodeId: string;
|
|
4228
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4229
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4230
|
+
worktreeId?: string | undefined;
|
|
4231
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4232
|
+
input?: string | undefined;
|
|
4233
|
+
branch?: string | undefined;
|
|
4234
|
+
systemPrompt?: string | undefined;
|
|
4235
|
+
dependsOn?: string[] | undefined;
|
|
4236
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4237
|
+
};
|
|
4238
|
+
mode: "graph";
|
|
4239
|
+
workers: {
|
|
4240
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4241
|
+
model: string;
|
|
4242
|
+
nodeId: string;
|
|
4243
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4244
|
+
role?: string | undefined;
|
|
4245
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4246
|
+
worktreeId?: string | undefined;
|
|
4247
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4248
|
+
input?: string | undefined;
|
|
4249
|
+
branch?: string | undefined;
|
|
4250
|
+
systemPrompt?: string | undefined;
|
|
4251
|
+
dependsOn?: string[] | undefined;
|
|
4252
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4253
|
+
}[];
|
|
4254
|
+
communicationGraph: {
|
|
4255
|
+
edges: {
|
|
4256
|
+
from: string;
|
|
4257
|
+
to: string;
|
|
4258
|
+
label?: string | undefined;
|
|
4259
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4260
|
+
edgeId?: string | undefined;
|
|
4261
|
+
condition?: string | undefined;
|
|
4262
|
+
}[];
|
|
4263
|
+
allowSelfLoop: boolean;
|
|
4264
|
+
maxIterations: number;
|
|
4265
|
+
};
|
|
4266
|
+
}, {
|
|
4267
|
+
executor: {
|
|
4268
|
+
agent: string;
|
|
4269
|
+
model: string;
|
|
4270
|
+
nodeId: string;
|
|
4271
|
+
sessionId?: string | undefined;
|
|
4272
|
+
role?: "executor" | undefined;
|
|
4273
|
+
project?: string | undefined;
|
|
4274
|
+
worktreeId?: string | undefined;
|
|
4275
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4276
|
+
input?: string | undefined;
|
|
4277
|
+
branch?: string | undefined;
|
|
4278
|
+
systemPrompt?: string | undefined;
|
|
4279
|
+
dependsOn?: string[] | undefined;
|
|
4280
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4281
|
+
};
|
|
4282
|
+
mode: "graph";
|
|
4283
|
+
workers: {
|
|
4284
|
+
agent: string;
|
|
4285
|
+
model: string;
|
|
4286
|
+
nodeId: string;
|
|
4287
|
+
sessionId?: string | undefined;
|
|
4288
|
+
role?: string | undefined;
|
|
4289
|
+
project?: string | undefined;
|
|
4290
|
+
worktreeId?: string | undefined;
|
|
4291
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4292
|
+
input?: string | undefined;
|
|
4293
|
+
branch?: string | undefined;
|
|
4294
|
+
systemPrompt?: string | undefined;
|
|
4295
|
+
dependsOn?: string[] | undefined;
|
|
4296
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4297
|
+
}[];
|
|
4298
|
+
communicationGraph: {
|
|
4299
|
+
edges?: {
|
|
4300
|
+
from: string;
|
|
4301
|
+
to: string;
|
|
4302
|
+
label?: string | undefined;
|
|
4303
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4304
|
+
edgeId?: string | undefined;
|
|
4305
|
+
condition?: string | undefined;
|
|
4306
|
+
}[] | undefined;
|
|
4307
|
+
allowSelfLoop?: boolean | undefined;
|
|
4308
|
+
maxIterations?: number | undefined;
|
|
4309
|
+
};
|
|
4310
|
+
}>, z.ZodObject<{
|
|
4311
|
+
mode: z.ZodLiteral<"discussion">;
|
|
4312
|
+
topic: z.ZodString;
|
|
4313
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
4314
|
+
nodeId: z.ZodString;
|
|
4315
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
4316
|
+
model: z.ZodString;
|
|
4317
|
+
role: z.ZodOptional<z.ZodString>;
|
|
4318
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4319
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
4320
|
+
dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4321
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
4322
|
+
agentConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4323
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4324
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
4325
|
+
worktreeId: z.ZodOptional<z.ZodString>;
|
|
4326
|
+
branch: z.ZodOptional<z.ZodString>;
|
|
4327
|
+
}, "strip", z.ZodTypeAny, {
|
|
4328
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4329
|
+
model: string;
|
|
4330
|
+
nodeId: string;
|
|
4331
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4332
|
+
role?: string | undefined;
|
|
4333
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4334
|
+
worktreeId?: string | undefined;
|
|
4335
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4336
|
+
input?: string | undefined;
|
|
4337
|
+
branch?: string | undefined;
|
|
4338
|
+
systemPrompt?: string | undefined;
|
|
4339
|
+
dependsOn?: string[] | undefined;
|
|
4340
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4341
|
+
}, {
|
|
4342
|
+
agent: string;
|
|
4343
|
+
model: string;
|
|
4344
|
+
nodeId: string;
|
|
4345
|
+
sessionId?: string | undefined;
|
|
4346
|
+
role?: string | undefined;
|
|
4347
|
+
project?: string | undefined;
|
|
4348
|
+
worktreeId?: string | undefined;
|
|
4349
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4350
|
+
input?: string | undefined;
|
|
4351
|
+
branch?: string | undefined;
|
|
4352
|
+
systemPrompt?: string | undefined;
|
|
4353
|
+
dependsOn?: string[] | undefined;
|
|
4354
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4355
|
+
}>, "many">;
|
|
4356
|
+
chairman: z.ZodString;
|
|
4357
|
+
termination: z.ZodDefault<z.ZodObject<{
|
|
4358
|
+
chairmanSignal: z.ZodDefault<z.ZodString>;
|
|
4359
|
+
maxRounds: z.ZodDefault<z.ZodNumber>;
|
|
4360
|
+
consensusSignal: z.ZodOptional<z.ZodString>;
|
|
4361
|
+
}, "strip", z.ZodTypeAny, {
|
|
4362
|
+
chairmanSignal: string;
|
|
4363
|
+
maxRounds: number;
|
|
4364
|
+
consensusSignal?: string | undefined;
|
|
4365
|
+
}, {
|
|
4366
|
+
chairmanSignal?: string | undefined;
|
|
4367
|
+
maxRounds?: number | undefined;
|
|
4368
|
+
consensusSignal?: string | undefined;
|
|
4369
|
+
}>>;
|
|
4370
|
+
}, "strip", z.ZodTypeAny, {
|
|
4371
|
+
mode: "discussion";
|
|
4372
|
+
topic: string;
|
|
4373
|
+
participants: {
|
|
4374
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4375
|
+
model: string;
|
|
4376
|
+
nodeId: string;
|
|
4377
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4378
|
+
role?: string | undefined;
|
|
4379
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4380
|
+
worktreeId?: string | undefined;
|
|
4381
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4382
|
+
input?: string | undefined;
|
|
4383
|
+
branch?: string | undefined;
|
|
4384
|
+
systemPrompt?: string | undefined;
|
|
4385
|
+
dependsOn?: string[] | undefined;
|
|
4386
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4387
|
+
}[];
|
|
4388
|
+
chairman: string;
|
|
4389
|
+
termination: {
|
|
4390
|
+
chairmanSignal: string;
|
|
4391
|
+
maxRounds: number;
|
|
4392
|
+
consensusSignal?: string | undefined;
|
|
4393
|
+
};
|
|
4394
|
+
}, {
|
|
4395
|
+
mode: "discussion";
|
|
4396
|
+
topic: string;
|
|
4397
|
+
participants: {
|
|
4398
|
+
agent: string;
|
|
4399
|
+
model: string;
|
|
4400
|
+
nodeId: string;
|
|
4401
|
+
sessionId?: string | undefined;
|
|
4402
|
+
role?: string | undefined;
|
|
4403
|
+
project?: string | undefined;
|
|
4404
|
+
worktreeId?: string | undefined;
|
|
4405
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4406
|
+
input?: string | undefined;
|
|
4407
|
+
branch?: string | undefined;
|
|
4408
|
+
systemPrompt?: string | undefined;
|
|
4409
|
+
dependsOn?: string[] | undefined;
|
|
4410
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4411
|
+
}[];
|
|
4412
|
+
chairman: string;
|
|
4413
|
+
termination?: {
|
|
4414
|
+
chairmanSignal?: string | undefined;
|
|
4415
|
+
maxRounds?: number | undefined;
|
|
4416
|
+
consensusSignal?: string | undefined;
|
|
4417
|
+
} | undefined;
|
|
4418
|
+
}>]>;
|
|
4419
|
+
input: z.ZodOptional<z.ZodString>;
|
|
4420
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
4421
|
+
timeoutSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
4422
|
+
perNodeTimeoutSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
4423
|
+
onNodeFailure: z.ZodOptional<z.ZodDefault<z.ZodEnum<["fail_workflow", "skip_dependents", "continue"]>>>;
|
|
4424
|
+
maxParallel: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
4425
|
+
}, "strip", z.ZodTypeAny, {
|
|
4426
|
+
timeoutSeconds?: number | undefined;
|
|
4427
|
+
perNodeTimeoutSeconds?: number | undefined;
|
|
4428
|
+
onNodeFailure?: "continue" | "fail_workflow" | "skip_dependents" | undefined;
|
|
4429
|
+
maxParallel?: number | undefined;
|
|
4430
|
+
}, {
|
|
4431
|
+
timeoutSeconds?: number | undefined;
|
|
4432
|
+
perNodeTimeoutSeconds?: number | undefined;
|
|
4433
|
+
onNodeFailure?: "continue" | "fail_workflow" | "skip_dependents" | undefined;
|
|
4434
|
+
maxParallel?: number | undefined;
|
|
4435
|
+
}>>;
|
|
4436
|
+
sharedContext: z.ZodOptional<z.ZodObject<{
|
|
4437
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4438
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4439
|
+
placement: z.ZodDefault<z.ZodEnum<["prepend", "append"]>>;
|
|
4440
|
+
}, "strip", z.ZodTypeAny, {
|
|
4441
|
+
placement: "prepend" | "append";
|
|
4442
|
+
text?: string | undefined;
|
|
4443
|
+
files?: string[] | undefined;
|
|
4444
|
+
}, {
|
|
4445
|
+
text?: string | undefined;
|
|
4446
|
+
files?: string[] | undefined;
|
|
4447
|
+
placement?: "prepend" | "append" | undefined;
|
|
4448
|
+
}>>;
|
|
4449
|
+
resumeFrom: z.ZodOptional<z.ZodObject<{
|
|
4450
|
+
workflowId: z.ZodString;
|
|
4451
|
+
strategy: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"last_success_dependents">, z.ZodLiteral<"failed_node">, z.ZodString]>>;
|
|
4452
|
+
rerunNodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4453
|
+
}, "strip", z.ZodTypeAny, {
|
|
4454
|
+
strategy: string;
|
|
4455
|
+
workflowId: string;
|
|
4456
|
+
rerunNodes?: string[] | undefined;
|
|
4457
|
+
}, {
|
|
4458
|
+
workflowId: string;
|
|
4459
|
+
strategy?: string | undefined;
|
|
4460
|
+
rerunNodes?: string[] | undefined;
|
|
4461
|
+
}>>;
|
|
4462
|
+
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
4463
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4464
|
+
}, "strip", z.ZodTypeAny, {
|
|
4465
|
+
plan: {
|
|
4466
|
+
mode: "dag";
|
|
4467
|
+
nodes: {
|
|
4468
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4469
|
+
model: string;
|
|
4470
|
+
nodeId: string;
|
|
4471
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4472
|
+
role?: string | undefined;
|
|
4473
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4474
|
+
worktreeId?: string | undefined;
|
|
4475
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4476
|
+
input?: string | undefined;
|
|
4477
|
+
branch?: string | undefined;
|
|
4478
|
+
systemPrompt?: string | undefined;
|
|
4479
|
+
dependsOn?: string[] | undefined;
|
|
4480
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4481
|
+
}[];
|
|
4482
|
+
edges?: {
|
|
4483
|
+
from: string;
|
|
4484
|
+
to: string;
|
|
4485
|
+
label?: string | undefined;
|
|
4486
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4487
|
+
edgeId?: string | undefined;
|
|
4488
|
+
condition?: string | undefined;
|
|
4489
|
+
}[] | undefined;
|
|
4490
|
+
finalNodeId?: string | undefined;
|
|
4491
|
+
} | {
|
|
4492
|
+
executor: {
|
|
4493
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4494
|
+
role: "executor";
|
|
4495
|
+
model: string;
|
|
4496
|
+
nodeId: string;
|
|
4497
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4498
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4499
|
+
worktreeId?: string | undefined;
|
|
4500
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4501
|
+
input?: string | undefined;
|
|
4502
|
+
branch?: string | undefined;
|
|
4503
|
+
systemPrompt?: string | undefined;
|
|
4504
|
+
dependsOn?: string[] | undefined;
|
|
4505
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4506
|
+
};
|
|
4507
|
+
mode: "graph";
|
|
4508
|
+
workers: {
|
|
4509
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4510
|
+
model: string;
|
|
4511
|
+
nodeId: string;
|
|
4512
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4513
|
+
role?: string | undefined;
|
|
4514
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4515
|
+
worktreeId?: string | undefined;
|
|
4516
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4517
|
+
input?: string | undefined;
|
|
4518
|
+
branch?: string | undefined;
|
|
4519
|
+
systemPrompt?: string | undefined;
|
|
4520
|
+
dependsOn?: string[] | undefined;
|
|
4521
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4522
|
+
}[];
|
|
4523
|
+
communicationGraph: {
|
|
4524
|
+
edges: {
|
|
4525
|
+
from: string;
|
|
4526
|
+
to: string;
|
|
4527
|
+
label?: string | undefined;
|
|
4528
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4529
|
+
edgeId?: string | undefined;
|
|
4530
|
+
condition?: string | undefined;
|
|
4531
|
+
}[];
|
|
4532
|
+
allowSelfLoop: boolean;
|
|
4533
|
+
maxIterations: number;
|
|
4534
|
+
};
|
|
4535
|
+
} | {
|
|
4536
|
+
mode: "discussion";
|
|
4537
|
+
topic: string;
|
|
4538
|
+
participants: {
|
|
4539
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4540
|
+
model: string;
|
|
4541
|
+
nodeId: string;
|
|
4542
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4543
|
+
role?: string | undefined;
|
|
4544
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4545
|
+
worktreeId?: string | undefined;
|
|
4546
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4547
|
+
input?: string | undefined;
|
|
4548
|
+
branch?: string | undefined;
|
|
4549
|
+
systemPrompt?: string | undefined;
|
|
4550
|
+
dependsOn?: string[] | undefined;
|
|
4551
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4552
|
+
}[];
|
|
4553
|
+
chairman: string;
|
|
4554
|
+
termination: {
|
|
4555
|
+
chairmanSignal: string;
|
|
4556
|
+
maxRounds: number;
|
|
4557
|
+
consensusSignal?: string | undefined;
|
|
4558
|
+
};
|
|
4559
|
+
};
|
|
4560
|
+
clientRequestId?: string | undefined;
|
|
4561
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4562
|
+
worktreeId?: string | undefined;
|
|
4563
|
+
input?: string | undefined;
|
|
4564
|
+
branch?: string | undefined;
|
|
4565
|
+
resumeFrom?: {
|
|
4566
|
+
strategy: string;
|
|
4567
|
+
workflowId: string;
|
|
4568
|
+
rerunNodes?: string[] | undefined;
|
|
4569
|
+
} | undefined;
|
|
4570
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4571
|
+
policy?: {
|
|
4572
|
+
timeoutSeconds?: number | undefined;
|
|
4573
|
+
perNodeTimeoutSeconds?: number | undefined;
|
|
4574
|
+
onNodeFailure?: "continue" | "fail_workflow" | "skip_dependents" | undefined;
|
|
4575
|
+
maxParallel?: number | undefined;
|
|
4576
|
+
} | undefined;
|
|
4577
|
+
sharedContext?: {
|
|
4578
|
+
placement: "prepend" | "append";
|
|
4579
|
+
text?: string | undefined;
|
|
4580
|
+
files?: string[] | undefined;
|
|
4581
|
+
} | undefined;
|
|
4582
|
+
}, {
|
|
4583
|
+
plan: {
|
|
4584
|
+
mode: "dag";
|
|
4585
|
+
nodes: {
|
|
4586
|
+
agent: string;
|
|
4587
|
+
model: string;
|
|
4588
|
+
nodeId: string;
|
|
4589
|
+
sessionId?: string | undefined;
|
|
4590
|
+
role?: string | undefined;
|
|
4591
|
+
project?: string | undefined;
|
|
4592
|
+
worktreeId?: string | undefined;
|
|
4593
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4594
|
+
input?: string | undefined;
|
|
4595
|
+
branch?: string | undefined;
|
|
4596
|
+
systemPrompt?: string | undefined;
|
|
4597
|
+
dependsOn?: string[] | undefined;
|
|
4598
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4599
|
+
}[];
|
|
4600
|
+
edges?: {
|
|
4601
|
+
from: string;
|
|
4602
|
+
to: string;
|
|
4603
|
+
label?: string | undefined;
|
|
4604
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4605
|
+
edgeId?: string | undefined;
|
|
4606
|
+
condition?: string | undefined;
|
|
4607
|
+
}[] | undefined;
|
|
4608
|
+
finalNodeId?: string | undefined;
|
|
4609
|
+
} | {
|
|
4610
|
+
executor: {
|
|
4611
|
+
agent: string;
|
|
4612
|
+
model: string;
|
|
4613
|
+
nodeId: string;
|
|
4614
|
+
sessionId?: string | undefined;
|
|
4615
|
+
role?: "executor" | undefined;
|
|
4616
|
+
project?: string | undefined;
|
|
4617
|
+
worktreeId?: string | undefined;
|
|
4618
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4619
|
+
input?: string | undefined;
|
|
4620
|
+
branch?: string | undefined;
|
|
4621
|
+
systemPrompt?: string | undefined;
|
|
4622
|
+
dependsOn?: string[] | undefined;
|
|
4623
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4624
|
+
};
|
|
4625
|
+
mode: "graph";
|
|
4626
|
+
workers: {
|
|
4627
|
+
agent: string;
|
|
4628
|
+
model: string;
|
|
4629
|
+
nodeId: string;
|
|
4630
|
+
sessionId?: string | undefined;
|
|
4631
|
+
role?: string | undefined;
|
|
4632
|
+
project?: string | undefined;
|
|
4633
|
+
worktreeId?: string | undefined;
|
|
4634
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4635
|
+
input?: string | undefined;
|
|
4636
|
+
branch?: string | undefined;
|
|
4637
|
+
systemPrompt?: string | undefined;
|
|
4638
|
+
dependsOn?: string[] | undefined;
|
|
4639
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4640
|
+
}[];
|
|
4641
|
+
communicationGraph: {
|
|
4642
|
+
edges?: {
|
|
4643
|
+
from: string;
|
|
4644
|
+
to: string;
|
|
4645
|
+
label?: string | undefined;
|
|
4646
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4647
|
+
edgeId?: string | undefined;
|
|
4648
|
+
condition?: string | undefined;
|
|
4649
|
+
}[] | undefined;
|
|
4650
|
+
allowSelfLoop?: boolean | undefined;
|
|
4651
|
+
maxIterations?: number | undefined;
|
|
4652
|
+
};
|
|
4653
|
+
} | {
|
|
4654
|
+
mode: "discussion";
|
|
4655
|
+
topic: string;
|
|
4656
|
+
participants: {
|
|
4657
|
+
agent: string;
|
|
4658
|
+
model: string;
|
|
4659
|
+
nodeId: string;
|
|
4660
|
+
sessionId?: string | undefined;
|
|
4661
|
+
role?: string | undefined;
|
|
4662
|
+
project?: string | undefined;
|
|
4663
|
+
worktreeId?: string | undefined;
|
|
4664
|
+
agentConfig?: Record<string, unknown> | undefined;
|
|
4665
|
+
input?: string | undefined;
|
|
4666
|
+
branch?: string | undefined;
|
|
4667
|
+
systemPrompt?: string | undefined;
|
|
4668
|
+
dependsOn?: string[] | undefined;
|
|
4669
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4670
|
+
}[];
|
|
4671
|
+
chairman: string;
|
|
4672
|
+
termination?: {
|
|
4673
|
+
chairmanSignal?: string | undefined;
|
|
4674
|
+
maxRounds?: number | undefined;
|
|
4675
|
+
consensusSignal?: string | undefined;
|
|
4676
|
+
} | undefined;
|
|
4677
|
+
};
|
|
4678
|
+
clientRequestId?: string | undefined;
|
|
4679
|
+
project?: string | undefined;
|
|
4680
|
+
worktreeId?: string | undefined;
|
|
4681
|
+
input?: string | undefined;
|
|
4682
|
+
branch?: string | undefined;
|
|
4683
|
+
resumeFrom?: {
|
|
4684
|
+
workflowId: string;
|
|
4685
|
+
strategy?: string | undefined;
|
|
4686
|
+
rerunNodes?: string[] | undefined;
|
|
4687
|
+
} | undefined;
|
|
4688
|
+
metadata?: Record<string, unknown> | undefined;
|
|
4689
|
+
policy?: {
|
|
4690
|
+
timeoutSeconds?: number | undefined;
|
|
4691
|
+
perNodeTimeoutSeconds?: number | undefined;
|
|
4692
|
+
onNodeFailure?: "continue" | "fail_workflow" | "skip_dependents" | undefined;
|
|
4693
|
+
maxParallel?: number | undefined;
|
|
4694
|
+
} | undefined;
|
|
4695
|
+
sharedContext?: {
|
|
4696
|
+
text?: string | undefined;
|
|
4697
|
+
files?: string[] | undefined;
|
|
4698
|
+
placement?: "prepend" | "append" | undefined;
|
|
4699
|
+
} | undefined;
|
|
4700
|
+
}>;
|
|
4701
|
+
readonly result: z.ZodObject<{
|
|
4702
|
+
workflowId: z.ZodString;
|
|
4703
|
+
status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
|
|
4704
|
+
createdAt: z.ZodString;
|
|
4705
|
+
resumed: z.ZodDefault<z.ZodBoolean>;
|
|
4706
|
+
}, "strip", z.ZodTypeAny, {
|
|
4707
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
4708
|
+
createdAt: string;
|
|
4709
|
+
workflowId: string;
|
|
4710
|
+
resumed: boolean;
|
|
4711
|
+
}, {
|
|
4712
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
4713
|
+
createdAt: string;
|
|
4714
|
+
workflowId: string;
|
|
4715
|
+
resumed?: boolean | undefined;
|
|
4716
|
+
}>;
|
|
4717
|
+
};
|
|
4718
|
+
readonly "workflow.status": {
|
|
4719
|
+
readonly direction: "s2p";
|
|
4720
|
+
readonly kind: "request";
|
|
4721
|
+
readonly params: z.ZodObject<{
|
|
4722
|
+
workflowId: z.ZodString;
|
|
4723
|
+
}, "strip", z.ZodTypeAny, {
|
|
4724
|
+
workflowId: string;
|
|
4725
|
+
}, {
|
|
4726
|
+
workflowId: string;
|
|
4727
|
+
}>;
|
|
4728
|
+
readonly result: z.ZodObject<{
|
|
4729
|
+
workflowId: z.ZodString;
|
|
4730
|
+
status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
|
|
4731
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
4732
|
+
mode: z.ZodEnum<["dag", "graph", "discussion"]>;
|
|
4733
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
4734
|
+
nodeId: z.ZodString;
|
|
4735
|
+
status: z.ZodEnum<["pending", "ready", "running", "completed", "failed", "skipped", "cancelled"]>;
|
|
4736
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
4737
|
+
model: z.ZodString;
|
|
4738
|
+
role: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
4740
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
4741
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
4742
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
4743
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4744
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
4745
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4746
|
+
status: z.ZodEnum<["completed", "interrupted", "aborted", "failed", "timeout"]>;
|
|
4747
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
4748
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4749
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4750
|
+
}, "strip", z.ZodTypeAny, {
|
|
4751
|
+
inputTokens?: number | undefined;
|
|
4752
|
+
outputTokens?: number | undefined;
|
|
4753
|
+
}, {
|
|
4754
|
+
inputTokens?: number | undefined;
|
|
4755
|
+
outputTokens?: number | undefined;
|
|
4756
|
+
}>>;
|
|
4757
|
+
}, "strip", z.ZodTypeAny, {
|
|
4758
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4759
|
+
text?: string | undefined;
|
|
4760
|
+
usage?: {
|
|
4761
|
+
inputTokens?: number | undefined;
|
|
4762
|
+
outputTokens?: number | undefined;
|
|
4763
|
+
} | undefined;
|
|
4764
|
+
}, {
|
|
4765
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4766
|
+
text?: string | undefined;
|
|
4767
|
+
usage?: {
|
|
4768
|
+
inputTokens?: number | undefined;
|
|
4769
|
+
outputTokens?: number | undefined;
|
|
4770
|
+
} | undefined;
|
|
4771
|
+
}>>;
|
|
4772
|
+
iterations: z.ZodOptional<z.ZodNumber>;
|
|
4773
|
+
}, "strip", z.ZodTypeAny, {
|
|
4774
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
4775
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4776
|
+
model: string;
|
|
4777
|
+
nodeId: string;
|
|
4778
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4779
|
+
role?: string | undefined;
|
|
4780
|
+
turnId?: string | undefined;
|
|
4781
|
+
result?: {
|
|
4782
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4783
|
+
text?: string | undefined;
|
|
4784
|
+
usage?: {
|
|
4785
|
+
inputTokens?: number | undefined;
|
|
4786
|
+
outputTokens?: number | undefined;
|
|
4787
|
+
} | undefined;
|
|
4788
|
+
} | undefined;
|
|
4789
|
+
error?: string | undefined;
|
|
4790
|
+
startedAt?: string | undefined;
|
|
4791
|
+
completedAt?: string | undefined;
|
|
4792
|
+
iterations?: number | undefined;
|
|
4793
|
+
}, {
|
|
4794
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
4795
|
+
agent: string;
|
|
4796
|
+
model: string;
|
|
4797
|
+
nodeId: string;
|
|
4798
|
+
sessionId?: string | undefined;
|
|
4799
|
+
role?: string | undefined;
|
|
4800
|
+
turnId?: string | undefined;
|
|
4801
|
+
result?: {
|
|
4802
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4803
|
+
text?: string | undefined;
|
|
4804
|
+
usage?: {
|
|
4805
|
+
inputTokens?: number | undefined;
|
|
4806
|
+
outputTokens?: number | undefined;
|
|
4807
|
+
} | undefined;
|
|
4808
|
+
} | undefined;
|
|
4809
|
+
error?: string | undefined;
|
|
4810
|
+
startedAt?: string | undefined;
|
|
4811
|
+
completedAt?: string | undefined;
|
|
4812
|
+
iterations?: number | undefined;
|
|
4813
|
+
}>, "many">;
|
|
4814
|
+
createdAt: z.ZodString;
|
|
4815
|
+
updatedAt: z.ZodString;
|
|
4816
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
4817
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4818
|
+
finalText: z.ZodOptional<z.ZodString>;
|
|
4819
|
+
resumable: z.ZodDefault<z.ZodBoolean>;
|
|
4820
|
+
}, "strip", z.ZodTypeAny, {
|
|
4821
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
4822
|
+
createdAt: string;
|
|
4823
|
+
mode: "dag" | "graph" | "discussion";
|
|
4824
|
+
workflowId: string;
|
|
4825
|
+
updatedAt: string;
|
|
4826
|
+
nodes: {
|
|
4827
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
4828
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4829
|
+
model: string;
|
|
4830
|
+
nodeId: string;
|
|
4831
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4832
|
+
role?: string | undefined;
|
|
4833
|
+
turnId?: string | undefined;
|
|
4834
|
+
result?: {
|
|
4835
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4836
|
+
text?: string | undefined;
|
|
4837
|
+
usage?: {
|
|
4838
|
+
inputTokens?: number | undefined;
|
|
4839
|
+
outputTokens?: number | undefined;
|
|
4840
|
+
} | undefined;
|
|
4841
|
+
} | undefined;
|
|
4842
|
+
error?: string | undefined;
|
|
4843
|
+
startedAt?: string | undefined;
|
|
4844
|
+
completedAt?: string | undefined;
|
|
4845
|
+
iterations?: number | undefined;
|
|
4846
|
+
}[];
|
|
4847
|
+
resumable: boolean;
|
|
4848
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4849
|
+
error?: string | undefined;
|
|
4850
|
+
completedAt?: string | undefined;
|
|
4851
|
+
finalText?: string | undefined;
|
|
4852
|
+
}, {
|
|
4853
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
4854
|
+
createdAt: string;
|
|
4855
|
+
mode: "dag" | "graph" | "discussion";
|
|
4856
|
+
workflowId: string;
|
|
4857
|
+
updatedAt: string;
|
|
4858
|
+
nodes: {
|
|
4859
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
4860
|
+
agent: string;
|
|
4861
|
+
model: string;
|
|
4862
|
+
nodeId: string;
|
|
4863
|
+
sessionId?: string | undefined;
|
|
4864
|
+
role?: string | undefined;
|
|
4865
|
+
turnId?: string | undefined;
|
|
4866
|
+
result?: {
|
|
4867
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4868
|
+
text?: string | undefined;
|
|
4869
|
+
usage?: {
|
|
4870
|
+
inputTokens?: number | undefined;
|
|
4871
|
+
outputTokens?: number | undefined;
|
|
4872
|
+
} | undefined;
|
|
4873
|
+
} | undefined;
|
|
4874
|
+
error?: string | undefined;
|
|
4875
|
+
startedAt?: string | undefined;
|
|
4876
|
+
completedAt?: string | undefined;
|
|
4877
|
+
iterations?: number | undefined;
|
|
4878
|
+
}[];
|
|
4879
|
+
project?: string | undefined;
|
|
4880
|
+
error?: string | undefined;
|
|
4881
|
+
completedAt?: string | undefined;
|
|
4882
|
+
finalText?: string | undefined;
|
|
4883
|
+
resumable?: boolean | undefined;
|
|
4884
|
+
}>;
|
|
4885
|
+
};
|
|
4886
|
+
readonly "workflow.cancel": {
|
|
4887
|
+
readonly direction: "s2p";
|
|
4888
|
+
readonly kind: "request";
|
|
4889
|
+
readonly params: z.ZodObject<{
|
|
4890
|
+
workflowId: z.ZodString;
|
|
4891
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4892
|
+
}, "strip", z.ZodTypeAny, {
|
|
4893
|
+
workflowId: string;
|
|
4894
|
+
reason?: string | undefined;
|
|
4895
|
+
}, {
|
|
4896
|
+
workflowId: string;
|
|
4897
|
+
reason?: string | undefined;
|
|
4898
|
+
}>;
|
|
4899
|
+
readonly result: z.ZodObject<{
|
|
4900
|
+
workflowId: z.ZodString;
|
|
4901
|
+
status: z.ZodLiteral<"cancelled">;
|
|
4902
|
+
}, "strip", z.ZodTypeAny, {
|
|
4903
|
+
status: "cancelled";
|
|
4904
|
+
workflowId: string;
|
|
4905
|
+
}, {
|
|
4906
|
+
status: "cancelled";
|
|
4907
|
+
workflowId: string;
|
|
4908
|
+
}>;
|
|
4909
|
+
};
|
|
4910
|
+
readonly "workflow.list": {
|
|
4911
|
+
readonly direction: "s2p";
|
|
4912
|
+
readonly kind: "request";
|
|
4913
|
+
readonly params: z.ZodObject<{
|
|
4914
|
+
status: z.ZodOptional<z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>>;
|
|
4915
|
+
projectId: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
4916
|
+
since: z.ZodOptional<z.ZodString>;
|
|
4917
|
+
until: z.ZodOptional<z.ZodString>;
|
|
4918
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
4919
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
4920
|
+
}, "strip", z.ZodTypeAny, {
|
|
4921
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled" | undefined;
|
|
4922
|
+
limit?: number | undefined;
|
|
4923
|
+
cursor?: string | undefined;
|
|
4924
|
+
projectId?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
4925
|
+
since?: string | undefined;
|
|
4926
|
+
until?: string | undefined;
|
|
4927
|
+
}, {
|
|
4928
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled" | undefined;
|
|
4929
|
+
limit?: number | undefined;
|
|
4930
|
+
cursor?: string | undefined;
|
|
4931
|
+
projectId?: string | undefined;
|
|
4932
|
+
since?: string | undefined;
|
|
4933
|
+
until?: string | undefined;
|
|
4934
|
+
}>;
|
|
4935
|
+
readonly result: z.ZodObject<{
|
|
4936
|
+
workflows: z.ZodArray<z.ZodObject<{
|
|
4937
|
+
workflowId: z.ZodString;
|
|
4938
|
+
status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
|
|
4939
|
+
project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
|
|
4940
|
+
mode: z.ZodEnum<["dag", "graph", "discussion"]>;
|
|
4941
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
4942
|
+
nodeId: z.ZodString;
|
|
4943
|
+
status: z.ZodEnum<["pending", "ready", "running", "completed", "failed", "skipped", "cancelled"]>;
|
|
4944
|
+
agent: z.ZodBranded<z.ZodString, "AgentId">;
|
|
4945
|
+
model: z.ZodString;
|
|
4946
|
+
role: z.ZodOptional<z.ZodString>;
|
|
4947
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
4948
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
4949
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
4950
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
4951
|
+
error: z.ZodOptional<z.ZodString>;
|
|
4952
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
4953
|
+
text: z.ZodOptional<z.ZodString>;
|
|
4954
|
+
status: z.ZodEnum<["completed", "interrupted", "aborted", "failed", "timeout"]>;
|
|
4955
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
4956
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4957
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
4958
|
+
}, "strip", z.ZodTypeAny, {
|
|
4959
|
+
inputTokens?: number | undefined;
|
|
4960
|
+
outputTokens?: number | undefined;
|
|
4961
|
+
}, {
|
|
4962
|
+
inputTokens?: number | undefined;
|
|
4963
|
+
outputTokens?: number | undefined;
|
|
4964
|
+
}>>;
|
|
4965
|
+
}, "strip", z.ZodTypeAny, {
|
|
4966
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4967
|
+
text?: string | undefined;
|
|
4968
|
+
usage?: {
|
|
4969
|
+
inputTokens?: number | undefined;
|
|
4970
|
+
outputTokens?: number | undefined;
|
|
4971
|
+
} | undefined;
|
|
4972
|
+
}, {
|
|
4973
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4974
|
+
text?: string | undefined;
|
|
4975
|
+
usage?: {
|
|
4976
|
+
inputTokens?: number | undefined;
|
|
4977
|
+
outputTokens?: number | undefined;
|
|
4978
|
+
} | undefined;
|
|
4979
|
+
}>>;
|
|
4980
|
+
iterations: z.ZodOptional<z.ZodNumber>;
|
|
4981
|
+
}, "strip", z.ZodTypeAny, {
|
|
4982
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
4983
|
+
agent: string & z.BRAND<"AgentId">;
|
|
4984
|
+
model: string;
|
|
4985
|
+
nodeId: string;
|
|
4986
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
4987
|
+
role?: string | undefined;
|
|
4988
|
+
turnId?: string | undefined;
|
|
4989
|
+
result?: {
|
|
4990
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
4991
|
+
text?: string | undefined;
|
|
4992
|
+
usage?: {
|
|
4993
|
+
inputTokens?: number | undefined;
|
|
4994
|
+
outputTokens?: number | undefined;
|
|
4995
|
+
} | undefined;
|
|
4996
|
+
} | undefined;
|
|
4997
|
+
error?: string | undefined;
|
|
4998
|
+
startedAt?: string | undefined;
|
|
4999
|
+
completedAt?: string | undefined;
|
|
5000
|
+
iterations?: number | undefined;
|
|
5001
|
+
}, {
|
|
5002
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
5003
|
+
agent: string;
|
|
5004
|
+
model: string;
|
|
5005
|
+
nodeId: string;
|
|
5006
|
+
sessionId?: string | undefined;
|
|
5007
|
+
role?: string | undefined;
|
|
5008
|
+
turnId?: string | undefined;
|
|
5009
|
+
result?: {
|
|
5010
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5011
|
+
text?: string | undefined;
|
|
5012
|
+
usage?: {
|
|
5013
|
+
inputTokens?: number | undefined;
|
|
5014
|
+
outputTokens?: number | undefined;
|
|
5015
|
+
} | undefined;
|
|
5016
|
+
} | undefined;
|
|
5017
|
+
error?: string | undefined;
|
|
5018
|
+
startedAt?: string | undefined;
|
|
5019
|
+
completedAt?: string | undefined;
|
|
5020
|
+
iterations?: number | undefined;
|
|
5021
|
+
}>, "many">;
|
|
5022
|
+
createdAt: z.ZodString;
|
|
5023
|
+
updatedAt: z.ZodString;
|
|
5024
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
5025
|
+
error: z.ZodOptional<z.ZodString>;
|
|
5026
|
+
finalText: z.ZodOptional<z.ZodString>;
|
|
5027
|
+
resumable: z.ZodDefault<z.ZodBoolean>;
|
|
5028
|
+
}, "strip", z.ZodTypeAny, {
|
|
5029
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
5030
|
+
createdAt: string;
|
|
5031
|
+
mode: "dag" | "graph" | "discussion";
|
|
5032
|
+
workflowId: string;
|
|
5033
|
+
updatedAt: string;
|
|
5034
|
+
nodes: {
|
|
5035
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
5036
|
+
agent: string & z.BRAND<"AgentId">;
|
|
5037
|
+
model: string;
|
|
5038
|
+
nodeId: string;
|
|
5039
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
5040
|
+
role?: string | undefined;
|
|
5041
|
+
turnId?: string | undefined;
|
|
5042
|
+
result?: {
|
|
5043
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5044
|
+
text?: string | undefined;
|
|
5045
|
+
usage?: {
|
|
5046
|
+
inputTokens?: number | undefined;
|
|
5047
|
+
outputTokens?: number | undefined;
|
|
5048
|
+
} | undefined;
|
|
5049
|
+
} | undefined;
|
|
5050
|
+
error?: string | undefined;
|
|
5051
|
+
startedAt?: string | undefined;
|
|
5052
|
+
completedAt?: string | undefined;
|
|
5053
|
+
iterations?: number | undefined;
|
|
5054
|
+
}[];
|
|
5055
|
+
resumable: boolean;
|
|
5056
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
5057
|
+
error?: string | undefined;
|
|
5058
|
+
completedAt?: string | undefined;
|
|
5059
|
+
finalText?: string | undefined;
|
|
5060
|
+
}, {
|
|
5061
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
5062
|
+
createdAt: string;
|
|
5063
|
+
mode: "dag" | "graph" | "discussion";
|
|
5064
|
+
workflowId: string;
|
|
5065
|
+
updatedAt: string;
|
|
5066
|
+
nodes: {
|
|
5067
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
5068
|
+
agent: string;
|
|
5069
|
+
model: string;
|
|
5070
|
+
nodeId: string;
|
|
5071
|
+
sessionId?: string | undefined;
|
|
5072
|
+
role?: string | undefined;
|
|
5073
|
+
turnId?: string | undefined;
|
|
5074
|
+
result?: {
|
|
5075
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5076
|
+
text?: string | undefined;
|
|
5077
|
+
usage?: {
|
|
5078
|
+
inputTokens?: number | undefined;
|
|
5079
|
+
outputTokens?: number | undefined;
|
|
5080
|
+
} | undefined;
|
|
5081
|
+
} | undefined;
|
|
5082
|
+
error?: string | undefined;
|
|
5083
|
+
startedAt?: string | undefined;
|
|
5084
|
+
completedAt?: string | undefined;
|
|
5085
|
+
iterations?: number | undefined;
|
|
5086
|
+
}[];
|
|
5087
|
+
project?: string | undefined;
|
|
5088
|
+
error?: string | undefined;
|
|
5089
|
+
completedAt?: string | undefined;
|
|
5090
|
+
finalText?: string | undefined;
|
|
5091
|
+
resumable?: boolean | undefined;
|
|
5092
|
+
}>, "many">;
|
|
5093
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
5094
|
+
}, "strip", z.ZodTypeAny, {
|
|
5095
|
+
workflows: {
|
|
5096
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
5097
|
+
createdAt: string;
|
|
5098
|
+
mode: "dag" | "graph" | "discussion";
|
|
5099
|
+
workflowId: string;
|
|
5100
|
+
updatedAt: string;
|
|
5101
|
+
nodes: {
|
|
5102
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
5103
|
+
agent: string & z.BRAND<"AgentId">;
|
|
5104
|
+
model: string;
|
|
5105
|
+
nodeId: string;
|
|
5106
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
5107
|
+
role?: string | undefined;
|
|
5108
|
+
turnId?: string | undefined;
|
|
5109
|
+
result?: {
|
|
5110
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5111
|
+
text?: string | undefined;
|
|
5112
|
+
usage?: {
|
|
5113
|
+
inputTokens?: number | undefined;
|
|
5114
|
+
outputTokens?: number | undefined;
|
|
5115
|
+
} | undefined;
|
|
5116
|
+
} | undefined;
|
|
5117
|
+
error?: string | undefined;
|
|
5118
|
+
startedAt?: string | undefined;
|
|
5119
|
+
completedAt?: string | undefined;
|
|
5120
|
+
iterations?: number | undefined;
|
|
5121
|
+
}[];
|
|
5122
|
+
resumable: boolean;
|
|
5123
|
+
project?: (string & z.BRAND<"ProjectId">) | undefined;
|
|
5124
|
+
error?: string | undefined;
|
|
5125
|
+
completedAt?: string | undefined;
|
|
5126
|
+
finalText?: string | undefined;
|
|
5127
|
+
}[];
|
|
5128
|
+
nextCursor?: string | undefined;
|
|
5129
|
+
}, {
|
|
5130
|
+
workflows: {
|
|
5131
|
+
status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
|
|
5132
|
+
createdAt: string;
|
|
5133
|
+
mode: "dag" | "graph" | "discussion";
|
|
5134
|
+
workflowId: string;
|
|
5135
|
+
updatedAt: string;
|
|
5136
|
+
nodes: {
|
|
5137
|
+
status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
|
|
5138
|
+
agent: string;
|
|
5139
|
+
model: string;
|
|
5140
|
+
nodeId: string;
|
|
5141
|
+
sessionId?: string | undefined;
|
|
5142
|
+
role?: string | undefined;
|
|
5143
|
+
turnId?: string | undefined;
|
|
5144
|
+
result?: {
|
|
5145
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5146
|
+
text?: string | undefined;
|
|
5147
|
+
usage?: {
|
|
5148
|
+
inputTokens?: number | undefined;
|
|
5149
|
+
outputTokens?: number | undefined;
|
|
5150
|
+
} | undefined;
|
|
5151
|
+
} | undefined;
|
|
5152
|
+
error?: string | undefined;
|
|
5153
|
+
startedAt?: string | undefined;
|
|
5154
|
+
completedAt?: string | undefined;
|
|
5155
|
+
iterations?: number | undefined;
|
|
5156
|
+
}[];
|
|
5157
|
+
project?: string | undefined;
|
|
5158
|
+
error?: string | undefined;
|
|
5159
|
+
completedAt?: string | undefined;
|
|
5160
|
+
finalText?: string | undefined;
|
|
5161
|
+
resumable?: boolean | undefined;
|
|
5162
|
+
}[];
|
|
5163
|
+
nextCursor?: string | undefined;
|
|
5164
|
+
}>;
|
|
5165
|
+
};
|
|
5166
|
+
readonly "workflow.event": {
|
|
5167
|
+
readonly direction: "p2s";
|
|
5168
|
+
readonly kind: "notification";
|
|
5169
|
+
readonly params: z.ZodObject<{
|
|
5170
|
+
workflowId: z.ZodString;
|
|
5171
|
+
seq: z.ZodNumber;
|
|
5172
|
+
type: z.ZodEnum<["workflow.status", "node.status", "edge.route", "executor.decision", "round.started", "round.completed", "discussion.terminated"]>;
|
|
5173
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
5174
|
+
sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
|
|
5175
|
+
turnId: z.ZodOptional<z.ZodString>;
|
|
5176
|
+
agent: z.ZodOptional<z.ZodBranded<z.ZodString, "AgentId">>;
|
|
5177
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5178
|
+
role: z.ZodOptional<z.ZodString>;
|
|
5179
|
+
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>, z.ZodEnum<["pending", "ready", "running", "completed", "failed", "skipped", "cancelled"]>]>>;
|
|
5180
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
5181
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5182
|
+
status: z.ZodEnum<["completed", "interrupted", "aborted", "failed", "timeout"]>;
|
|
5183
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
5184
|
+
inputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5185
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
5186
|
+
}, "strip", z.ZodTypeAny, {
|
|
5187
|
+
inputTokens?: number | undefined;
|
|
5188
|
+
outputTokens?: number | undefined;
|
|
5189
|
+
}, {
|
|
5190
|
+
inputTokens?: number | undefined;
|
|
5191
|
+
outputTokens?: number | undefined;
|
|
5192
|
+
}>>;
|
|
5193
|
+
}, "strip", z.ZodTypeAny, {
|
|
5194
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5195
|
+
text?: string | undefined;
|
|
5196
|
+
usage?: {
|
|
5197
|
+
inputTokens?: number | undefined;
|
|
5198
|
+
outputTokens?: number | undefined;
|
|
5199
|
+
} | undefined;
|
|
5200
|
+
}, {
|
|
5201
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5202
|
+
text?: string | undefined;
|
|
5203
|
+
usage?: {
|
|
5204
|
+
inputTokens?: number | undefined;
|
|
5205
|
+
outputTokens?: number | undefined;
|
|
5206
|
+
} | undefined;
|
|
5207
|
+
}>>;
|
|
5208
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5209
|
+
timestamp: z.ZodString;
|
|
5210
|
+
}, "strip", z.ZodTypeAny, {
|
|
5211
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated";
|
|
5212
|
+
seq: number;
|
|
5213
|
+
workflowId: string;
|
|
5214
|
+
timestamp: string;
|
|
5215
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "pending" | "cancelled" | "ready" | "skipped" | undefined;
|
|
5216
|
+
sessionId?: (string & z.BRAND<"SessionId">) | undefined;
|
|
5217
|
+
agent?: (string & z.BRAND<"AgentId">) | undefined;
|
|
5218
|
+
role?: string | undefined;
|
|
5219
|
+
model?: string | undefined;
|
|
5220
|
+
turnId?: string | undefined;
|
|
5221
|
+
result?: {
|
|
5222
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5223
|
+
text?: string | undefined;
|
|
5224
|
+
usage?: {
|
|
5225
|
+
inputTokens?: number | undefined;
|
|
5226
|
+
outputTokens?: number | undefined;
|
|
5227
|
+
} | undefined;
|
|
5228
|
+
} | undefined;
|
|
5229
|
+
nodeId?: string | undefined;
|
|
5230
|
+
payload?: Record<string, unknown> | undefined;
|
|
5231
|
+
}, {
|
|
5232
|
+
type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated";
|
|
5233
|
+
seq: number;
|
|
5234
|
+
workflowId: string;
|
|
5235
|
+
timestamp: string;
|
|
5236
|
+
status?: "running" | "queued" | "completed" | "failed" | "timeout" | "pending" | "cancelled" | "ready" | "skipped" | undefined;
|
|
5237
|
+
sessionId?: string | undefined;
|
|
5238
|
+
agent?: string | undefined;
|
|
5239
|
+
role?: string | undefined;
|
|
5240
|
+
model?: string | undefined;
|
|
5241
|
+
turnId?: string | undefined;
|
|
5242
|
+
result?: {
|
|
5243
|
+
status: "aborted" | "interrupted" | "completed" | "failed" | "timeout";
|
|
5244
|
+
text?: string | undefined;
|
|
5245
|
+
usage?: {
|
|
5246
|
+
inputTokens?: number | undefined;
|
|
5247
|
+
outputTokens?: number | undefined;
|
|
5248
|
+
} | undefined;
|
|
5249
|
+
} | undefined;
|
|
5250
|
+
nodeId?: string | undefined;
|
|
5251
|
+
payload?: Record<string, unknown> | undefined;
|
|
5252
|
+
}>;
|
|
5253
|
+
readonly result: z.ZodUndefined;
|
|
5254
|
+
};
|
|
5255
|
+
readonly "workflow.ack": {
|
|
5256
|
+
readonly direction: "s2p";
|
|
5257
|
+
readonly kind: "notification";
|
|
5258
|
+
readonly params: z.ZodObject<{
|
|
5259
|
+
workflowId: z.ZodString;
|
|
5260
|
+
lastSeq: z.ZodNumber;
|
|
5261
|
+
}, "strip", z.ZodTypeAny, {
|
|
5262
|
+
workflowId: string;
|
|
5263
|
+
lastSeq: number;
|
|
5264
|
+
}, {
|
|
5265
|
+
workflowId: string;
|
|
5266
|
+
lastSeq: number;
|
|
5267
|
+
}>;
|
|
5268
|
+
readonly result: z.ZodUndefined;
|
|
5269
|
+
};
|
|
3813
5270
|
};
|
|
3814
5271
|
export type MethodName = keyof typeof METHODS;
|
|
3815
5272
|
export type MethodSpec = (typeof METHODS)[MethodName];
|