@agent-phonon/protocol 0.3.0 → 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.
@@ -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
  };
@@ -3878,8 +3959,9 @@ export declare const METHODS: {
3878
3959
  readonly direction: "s2p";
3879
3960
  readonly kind: "request";
3880
3961
  readonly params: z.ZodObject<{
3881
- project: z.ZodBranded<z.ZodString, "ProjectId">;
3962
+ project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
3882
3963
  worktreeId: z.ZodOptional<z.ZodString>;
3964
+ branch: z.ZodOptional<z.ZodString>;
3883
3965
  plan: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
3884
3966
  mode: z.ZodLiteral<"dag">;
3885
3967
  nodes: z.ZodArray<z.ZodObject<{
@@ -3893,14 +3975,20 @@ export declare const METHODS: {
3893
3975
  sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
3894
3976
  agentConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3895
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>;
3896
3981
  }, "strip", z.ZodTypeAny, {
3897
3982
  agent: string & z.BRAND<"AgentId">;
3898
3983
  model: string;
3899
3984
  nodeId: string;
3900
3985
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
3901
3986
  role?: string | undefined;
3987
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
3988
+ worktreeId?: string | undefined;
3902
3989
  agentConfig?: Record<string, unknown> | undefined;
3903
3990
  input?: string | undefined;
3991
+ branch?: string | undefined;
3904
3992
  systemPrompt?: string | undefined;
3905
3993
  dependsOn?: string[] | undefined;
3906
3994
  metadata?: Record<string, unknown> | undefined;
@@ -3910,8 +3998,11 @@ export declare const METHODS: {
3910
3998
  nodeId: string;
3911
3999
  sessionId?: string | undefined;
3912
4000
  role?: string | undefined;
4001
+ project?: string | undefined;
4002
+ worktreeId?: string | undefined;
3913
4003
  agentConfig?: Record<string, unknown> | undefined;
3914
4004
  input?: string | undefined;
4005
+ branch?: string | undefined;
3915
4006
  systemPrompt?: string | undefined;
3916
4007
  dependsOn?: string[] | undefined;
3917
4008
  metadata?: Record<string, unknown> | undefined;
@@ -3947,8 +4038,11 @@ export declare const METHODS: {
3947
4038
  nodeId: string;
3948
4039
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
3949
4040
  role?: string | undefined;
4041
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4042
+ worktreeId?: string | undefined;
3950
4043
  agentConfig?: Record<string, unknown> | undefined;
3951
4044
  input?: string | undefined;
4045
+ branch?: string | undefined;
3952
4046
  systemPrompt?: string | undefined;
3953
4047
  dependsOn?: string[] | undefined;
3954
4048
  metadata?: Record<string, unknown> | undefined;
@@ -3970,8 +4064,11 @@ export declare const METHODS: {
3970
4064
  nodeId: string;
3971
4065
  sessionId?: string | undefined;
3972
4066
  role?: string | undefined;
4067
+ project?: string | undefined;
4068
+ worktreeId?: string | undefined;
3973
4069
  agentConfig?: Record<string, unknown> | undefined;
3974
4070
  input?: string | undefined;
4071
+ branch?: string | undefined;
3975
4072
  systemPrompt?: string | undefined;
3976
4073
  dependsOn?: string[] | undefined;
3977
4074
  metadata?: Record<string, unknown> | undefined;
@@ -3991,23 +4088,45 @@ export declare const METHODS: {
3991
4088
  nodeId: z.ZodString;
3992
4089
  agent: z.ZodBranded<z.ZodString, "AgentId">;
3993
4090
  model: z.ZodString;
3994
- role: z.ZodDefault<z.ZodLiteral<"executor">>;
4091
+ input: z.ZodOptional<z.ZodString>;
3995
4092
  systemPrompt: z.ZodOptional<z.ZodString>;
4093
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4094
+ sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
3996
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">>;
3997
4102
  }, "strip", z.ZodTypeAny, {
3998
4103
  agent: string & z.BRAND<"AgentId">;
3999
4104
  role: "executor";
4000
4105
  model: string;
4001
4106
  nodeId: string;
4107
+ sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4108
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4109
+ worktreeId?: string | undefined;
4002
4110
  agentConfig?: Record<string, unknown> | undefined;
4111
+ input?: string | undefined;
4112
+ branch?: string | undefined;
4003
4113
  systemPrompt?: string | undefined;
4114
+ dependsOn?: string[] | undefined;
4115
+ metadata?: Record<string, unknown> | undefined;
4004
4116
  }, {
4005
4117
  agent: string;
4006
4118
  model: string;
4007
4119
  nodeId: string;
4120
+ sessionId?: string | undefined;
4008
4121
  role?: "executor" | undefined;
4122
+ project?: string | undefined;
4123
+ worktreeId?: string | undefined;
4009
4124
  agentConfig?: Record<string, unknown> | undefined;
4125
+ input?: string | undefined;
4126
+ branch?: string | undefined;
4010
4127
  systemPrompt?: string | undefined;
4128
+ dependsOn?: string[] | undefined;
4129
+ metadata?: Record<string, unknown> | undefined;
4011
4130
  }>;
4012
4131
  workers: z.ZodArray<z.ZodObject<{
4013
4132
  nodeId: z.ZodString;
@@ -4020,14 +4139,20 @@ export declare const METHODS: {
4020
4139
  sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
4021
4140
  agentConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4022
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>;
4023
4145
  }, "strip", z.ZodTypeAny, {
4024
4146
  agent: string & z.BRAND<"AgentId">;
4025
4147
  model: string;
4026
4148
  nodeId: string;
4027
4149
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4028
4150
  role?: string | undefined;
4151
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4152
+ worktreeId?: string | undefined;
4029
4153
  agentConfig?: Record<string, unknown> | undefined;
4030
4154
  input?: string | undefined;
4155
+ branch?: string | undefined;
4031
4156
  systemPrompt?: string | undefined;
4032
4157
  dependsOn?: string[] | undefined;
4033
4158
  metadata?: Record<string, unknown> | undefined;
@@ -4037,8 +4162,11 @@ export declare const METHODS: {
4037
4162
  nodeId: string;
4038
4163
  sessionId?: string | undefined;
4039
4164
  role?: string | undefined;
4165
+ project?: string | undefined;
4166
+ worktreeId?: string | undefined;
4040
4167
  agentConfig?: Record<string, unknown> | undefined;
4041
4168
  input?: string | undefined;
4169
+ branch?: string | undefined;
4042
4170
  systemPrompt?: string | undefined;
4043
4171
  dependsOn?: string[] | undefined;
4044
4172
  metadata?: Record<string, unknown> | undefined;
@@ -4092,23 +4220,33 @@ export declare const METHODS: {
4092
4220
  maxIterations?: number | undefined;
4093
4221
  }>;
4094
4222
  }, "strip", z.ZodTypeAny, {
4095
- mode: "graph";
4096
4223
  executor: {
4097
4224
  agent: string & z.BRAND<"AgentId">;
4098
4225
  role: "executor";
4099
4226
  model: string;
4100
4227
  nodeId: string;
4228
+ sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4229
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4230
+ worktreeId?: string | undefined;
4101
4231
  agentConfig?: Record<string, unknown> | undefined;
4232
+ input?: string | undefined;
4233
+ branch?: string | undefined;
4102
4234
  systemPrompt?: string | undefined;
4235
+ dependsOn?: string[] | undefined;
4236
+ metadata?: Record<string, unknown> | undefined;
4103
4237
  };
4238
+ mode: "graph";
4104
4239
  workers: {
4105
4240
  agent: string & z.BRAND<"AgentId">;
4106
4241
  model: string;
4107
4242
  nodeId: string;
4108
4243
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4109
4244
  role?: string | undefined;
4245
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4246
+ worktreeId?: string | undefined;
4110
4247
  agentConfig?: Record<string, unknown> | undefined;
4111
4248
  input?: string | undefined;
4249
+ branch?: string | undefined;
4112
4250
  systemPrompt?: string | undefined;
4113
4251
  dependsOn?: string[] | undefined;
4114
4252
  metadata?: Record<string, unknown> | undefined;
@@ -4126,23 +4264,33 @@ export declare const METHODS: {
4126
4264
  maxIterations: number;
4127
4265
  };
4128
4266
  }, {
4129
- mode: "graph";
4130
4267
  executor: {
4131
4268
  agent: string;
4132
4269
  model: string;
4133
4270
  nodeId: string;
4271
+ sessionId?: string | undefined;
4134
4272
  role?: "executor" | undefined;
4273
+ project?: string | undefined;
4274
+ worktreeId?: string | undefined;
4135
4275
  agentConfig?: Record<string, unknown> | undefined;
4276
+ input?: string | undefined;
4277
+ branch?: string | undefined;
4136
4278
  systemPrompt?: string | undefined;
4279
+ dependsOn?: string[] | undefined;
4280
+ metadata?: Record<string, unknown> | undefined;
4137
4281
  };
4282
+ mode: "graph";
4138
4283
  workers: {
4139
4284
  agent: string;
4140
4285
  model: string;
4141
4286
  nodeId: string;
4142
4287
  sessionId?: string | undefined;
4143
4288
  role?: string | undefined;
4289
+ project?: string | undefined;
4290
+ worktreeId?: string | undefined;
4144
4291
  agentConfig?: Record<string, unknown> | undefined;
4145
4292
  input?: string | undefined;
4293
+ branch?: string | undefined;
4146
4294
  systemPrompt?: string | undefined;
4147
4295
  dependsOn?: string[] | undefined;
4148
4296
  metadata?: Record<string, unknown> | undefined;
@@ -4159,12 +4307,161 @@ export declare const METHODS: {
4159
4307
  allowSelfLoop?: boolean | undefined;
4160
4308
  maxIterations?: number | undefined;
4161
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;
4162
4418
  }>]>;
4163
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
+ }>>;
4164
4462
  clientRequestId: z.ZodOptional<z.ZodString>;
4165
4463
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4166
4464
  }, "strip", z.ZodTypeAny, {
4167
- project: string & z.BRAND<"ProjectId">;
4168
4465
  plan: {
4169
4466
  mode: "dag";
4170
4467
  nodes: {
@@ -4173,8 +4470,11 @@ export declare const METHODS: {
4173
4470
  nodeId: string;
4174
4471
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4175
4472
  role?: string | undefined;
4473
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4474
+ worktreeId?: string | undefined;
4176
4475
  agentConfig?: Record<string, unknown> | undefined;
4177
4476
  input?: string | undefined;
4477
+ branch?: string | undefined;
4178
4478
  systemPrompt?: string | undefined;
4179
4479
  dependsOn?: string[] | undefined;
4180
4480
  metadata?: Record<string, unknown> | undefined;
@@ -4189,23 +4489,33 @@ export declare const METHODS: {
4189
4489
  }[] | undefined;
4190
4490
  finalNodeId?: string | undefined;
4191
4491
  } | {
4192
- mode: "graph";
4193
4492
  executor: {
4194
4493
  agent: string & z.BRAND<"AgentId">;
4195
4494
  role: "executor";
4196
4495
  model: string;
4197
4496
  nodeId: string;
4497
+ sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4498
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4499
+ worktreeId?: string | undefined;
4198
4500
  agentConfig?: Record<string, unknown> | undefined;
4501
+ input?: string | undefined;
4502
+ branch?: string | undefined;
4199
4503
  systemPrompt?: string | undefined;
4504
+ dependsOn?: string[] | undefined;
4505
+ metadata?: Record<string, unknown> | undefined;
4200
4506
  };
4507
+ mode: "graph";
4201
4508
  workers: {
4202
4509
  agent: string & z.BRAND<"AgentId">;
4203
4510
  model: string;
4204
4511
  nodeId: string;
4205
4512
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4206
4513
  role?: string | undefined;
4514
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4515
+ worktreeId?: string | undefined;
4207
4516
  agentConfig?: Record<string, unknown> | undefined;
4208
4517
  input?: string | undefined;
4518
+ branch?: string | undefined;
4209
4519
  systemPrompt?: string | undefined;
4210
4520
  dependsOn?: string[] | undefined;
4211
4521
  metadata?: Record<string, unknown> | undefined;
@@ -4222,13 +4532,54 @@ export declare const METHODS: {
4222
4532
  allowSelfLoop: boolean;
4223
4533
  maxIterations: number;
4224
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
+ };
4225
4559
  };
4226
4560
  clientRequestId?: string | undefined;
4561
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4227
4562
  worktreeId?: string | undefined;
4228
4563
  input?: string | undefined;
4564
+ branch?: string | undefined;
4565
+ resumeFrom?: {
4566
+ strategy: string;
4567
+ workflowId: string;
4568
+ rerunNodes?: string[] | undefined;
4569
+ } | undefined;
4229
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;
4230
4582
  }, {
4231
- project: string;
4232
4583
  plan: {
4233
4584
  mode: "dag";
4234
4585
  nodes: {
@@ -4237,8 +4588,11 @@ export declare const METHODS: {
4237
4588
  nodeId: string;
4238
4589
  sessionId?: string | undefined;
4239
4590
  role?: string | undefined;
4591
+ project?: string | undefined;
4592
+ worktreeId?: string | undefined;
4240
4593
  agentConfig?: Record<string, unknown> | undefined;
4241
4594
  input?: string | undefined;
4595
+ branch?: string | undefined;
4242
4596
  systemPrompt?: string | undefined;
4243
4597
  dependsOn?: string[] | undefined;
4244
4598
  metadata?: Record<string, unknown> | undefined;
@@ -4253,23 +4607,33 @@ export declare const METHODS: {
4253
4607
  }[] | undefined;
4254
4608
  finalNodeId?: string | undefined;
4255
4609
  } | {
4256
- mode: "graph";
4257
4610
  executor: {
4258
4611
  agent: string;
4259
4612
  model: string;
4260
4613
  nodeId: string;
4614
+ sessionId?: string | undefined;
4261
4615
  role?: "executor" | undefined;
4616
+ project?: string | undefined;
4617
+ worktreeId?: string | undefined;
4262
4618
  agentConfig?: Record<string, unknown> | undefined;
4619
+ input?: string | undefined;
4620
+ branch?: string | undefined;
4263
4621
  systemPrompt?: string | undefined;
4622
+ dependsOn?: string[] | undefined;
4623
+ metadata?: Record<string, unknown> | undefined;
4264
4624
  };
4625
+ mode: "graph";
4265
4626
  workers: {
4266
4627
  agent: string;
4267
4628
  model: string;
4268
4629
  nodeId: string;
4269
4630
  sessionId?: string | undefined;
4270
4631
  role?: string | undefined;
4632
+ project?: string | undefined;
4633
+ worktreeId?: string | undefined;
4271
4634
  agentConfig?: Record<string, unknown> | undefined;
4272
4635
  input?: string | undefined;
4636
+ branch?: string | undefined;
4273
4637
  systemPrompt?: string | undefined;
4274
4638
  dependsOn?: string[] | undefined;
4275
4639
  metadata?: Record<string, unknown> | undefined;
@@ -4286,24 +4650,69 @@ export declare const METHODS: {
4286
4650
  allowSelfLoop?: boolean | undefined;
4287
4651
  maxIterations?: number | undefined;
4288
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;
4289
4677
  };
4290
4678
  clientRequestId?: string | undefined;
4679
+ project?: string | undefined;
4291
4680
  worktreeId?: string | undefined;
4292
4681
  input?: string | undefined;
4682
+ branch?: string | undefined;
4683
+ resumeFrom?: {
4684
+ workflowId: string;
4685
+ strategy?: string | undefined;
4686
+ rerunNodes?: string[] | undefined;
4687
+ } | undefined;
4293
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;
4294
4700
  }>;
4295
4701
  readonly result: z.ZodObject<{
4296
4702
  workflowId: z.ZodString;
4297
4703
  status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
4298
4704
  createdAt: z.ZodString;
4705
+ resumed: z.ZodDefault<z.ZodBoolean>;
4299
4706
  }, "strip", z.ZodTypeAny, {
4300
4707
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4301
4708
  createdAt: string;
4302
4709
  workflowId: string;
4710
+ resumed: boolean;
4303
4711
  }, {
4304
4712
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4305
4713
  createdAt: string;
4306
4714
  workflowId: string;
4715
+ resumed?: boolean | undefined;
4307
4716
  }>;
4308
4717
  };
4309
4718
  readonly "workflow.status": {
@@ -4319,8 +4728,8 @@ export declare const METHODS: {
4319
4728
  readonly result: z.ZodObject<{
4320
4729
  workflowId: z.ZodString;
4321
4730
  status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
4322
- project: z.ZodBranded<z.ZodString, "ProjectId">;
4323
- mode: z.ZodEnum<["dag", "graph"]>;
4731
+ project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
4732
+ mode: z.ZodEnum<["dag", "graph", "discussion"]>;
4324
4733
  nodes: z.ZodArray<z.ZodObject<{
4325
4734
  nodeId: z.ZodString;
4326
4735
  status: z.ZodEnum<["pending", "ready", "running", "completed", "failed", "skipped", "cancelled"]>;
@@ -4332,6 +4741,35 @@ export declare const METHODS: {
4332
4741
  startedAt: z.ZodOptional<z.ZodString>;
4333
4742
  completedAt: z.ZodOptional<z.ZodString>;
4334
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>;
4335
4773
  }, "strip", z.ZodTypeAny, {
4336
4774
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
4337
4775
  agent: string & z.BRAND<"AgentId">;
@@ -4340,9 +4778,18 @@ export declare const METHODS: {
4340
4778
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4341
4779
  role?: string | undefined;
4342
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;
4343
4789
  error?: string | undefined;
4344
4790
  startedAt?: string | undefined;
4345
4791
  completedAt?: string | undefined;
4792
+ iterations?: number | undefined;
4346
4793
  }, {
4347
4794
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
4348
4795
  agent: string;
@@ -4351,19 +4798,30 @@ export declare const METHODS: {
4351
4798
  sessionId?: string | undefined;
4352
4799
  role?: string | undefined;
4353
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;
4354
4809
  error?: string | undefined;
4355
4810
  startedAt?: string | undefined;
4356
4811
  completedAt?: string | undefined;
4812
+ iterations?: number | undefined;
4357
4813
  }>, "many">;
4358
4814
  createdAt: z.ZodString;
4359
4815
  updatedAt: z.ZodString;
4360
4816
  completedAt: z.ZodOptional<z.ZodString>;
4361
4817
  error: z.ZodOptional<z.ZodString>;
4818
+ finalText: z.ZodOptional<z.ZodString>;
4819
+ resumable: z.ZodDefault<z.ZodBoolean>;
4362
4820
  }, "strip", z.ZodTypeAny, {
4363
4821
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4364
- project: string & z.BRAND<"ProjectId">;
4365
4822
  createdAt: string;
4366
- mode: "dag" | "graph";
4823
+ mode: "dag" | "graph" | "discussion";
4824
+ workflowId: string;
4367
4825
  updatedAt: string;
4368
4826
  nodes: {
4369
4827
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
@@ -4373,18 +4831,29 @@ export declare const METHODS: {
4373
4831
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4374
4832
  role?: string | undefined;
4375
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;
4376
4842
  error?: string | undefined;
4377
4843
  startedAt?: string | undefined;
4378
4844
  completedAt?: string | undefined;
4845
+ iterations?: number | undefined;
4379
4846
  }[];
4380
- workflowId: string;
4847
+ resumable: boolean;
4848
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4381
4849
  error?: string | undefined;
4382
4850
  completedAt?: string | undefined;
4851
+ finalText?: string | undefined;
4383
4852
  }, {
4384
4853
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4385
- project: string;
4386
4854
  createdAt: string;
4387
- mode: "dag" | "graph";
4855
+ mode: "dag" | "graph" | "discussion";
4856
+ workflowId: string;
4388
4857
  updatedAt: string;
4389
4858
  nodes: {
4390
4859
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
@@ -4394,13 +4863,24 @@ export declare const METHODS: {
4394
4863
  sessionId?: string | undefined;
4395
4864
  role?: string | undefined;
4396
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;
4397
4874
  error?: string | undefined;
4398
4875
  startedAt?: string | undefined;
4399
4876
  completedAt?: string | undefined;
4877
+ iterations?: number | undefined;
4400
4878
  }[];
4401
- workflowId: string;
4879
+ project?: string | undefined;
4402
4880
  error?: string | undefined;
4403
4881
  completedAt?: string | undefined;
4882
+ finalText?: string | undefined;
4883
+ resumable?: boolean | undefined;
4404
4884
  }>;
4405
4885
  };
4406
4886
  readonly "workflow.cancel": {
@@ -4432,23 +4912,32 @@ export declare const METHODS: {
4432
4912
  readonly kind: "request";
4433
4913
  readonly params: z.ZodObject<{
4434
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>;
4435
4918
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
4436
4919
  cursor: z.ZodOptional<z.ZodString>;
4437
4920
  }, "strip", z.ZodTypeAny, {
4438
4921
  status?: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled" | undefined;
4439
4922
  limit?: number | undefined;
4440
4923
  cursor?: string | undefined;
4924
+ projectId?: (string & z.BRAND<"ProjectId">) | undefined;
4925
+ since?: string | undefined;
4926
+ until?: string | undefined;
4441
4927
  }, {
4442
4928
  status?: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled" | undefined;
4443
4929
  limit?: number | undefined;
4444
4930
  cursor?: string | undefined;
4931
+ projectId?: string | undefined;
4932
+ since?: string | undefined;
4933
+ until?: string | undefined;
4445
4934
  }>;
4446
4935
  readonly result: z.ZodObject<{
4447
4936
  workflows: z.ZodArray<z.ZodObject<{
4448
4937
  workflowId: z.ZodString;
4449
4938
  status: z.ZodEnum<["queued", "running", "completed", "failed", "cancelled", "timeout"]>;
4450
- project: z.ZodBranded<z.ZodString, "ProjectId">;
4451
- mode: z.ZodEnum<["dag", "graph"]>;
4939
+ project: z.ZodOptional<z.ZodBranded<z.ZodString, "ProjectId">>;
4940
+ mode: z.ZodEnum<["dag", "graph", "discussion"]>;
4452
4941
  nodes: z.ZodArray<z.ZodObject<{
4453
4942
  nodeId: z.ZodString;
4454
4943
  status: z.ZodEnum<["pending", "ready", "running", "completed", "failed", "skipped", "cancelled"]>;
@@ -4460,6 +4949,35 @@ export declare const METHODS: {
4460
4949
  startedAt: z.ZodOptional<z.ZodString>;
4461
4950
  completedAt: z.ZodOptional<z.ZodString>;
4462
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>;
4463
4981
  }, "strip", z.ZodTypeAny, {
4464
4982
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
4465
4983
  agent: string & z.BRAND<"AgentId">;
@@ -4468,9 +4986,18 @@ export declare const METHODS: {
4468
4986
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4469
4987
  role?: string | undefined;
4470
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;
4471
4997
  error?: string | undefined;
4472
4998
  startedAt?: string | undefined;
4473
4999
  completedAt?: string | undefined;
5000
+ iterations?: number | undefined;
4474
5001
  }, {
4475
5002
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
4476
5003
  agent: string;
@@ -4479,19 +5006,30 @@ export declare const METHODS: {
4479
5006
  sessionId?: string | undefined;
4480
5007
  role?: string | undefined;
4481
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;
4482
5017
  error?: string | undefined;
4483
5018
  startedAt?: string | undefined;
4484
5019
  completedAt?: string | undefined;
5020
+ iterations?: number | undefined;
4485
5021
  }>, "many">;
4486
5022
  createdAt: z.ZodString;
4487
5023
  updatedAt: z.ZodString;
4488
5024
  completedAt: z.ZodOptional<z.ZodString>;
4489
5025
  error: z.ZodOptional<z.ZodString>;
5026
+ finalText: z.ZodOptional<z.ZodString>;
5027
+ resumable: z.ZodDefault<z.ZodBoolean>;
4490
5028
  }, "strip", z.ZodTypeAny, {
4491
5029
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4492
- project: string & z.BRAND<"ProjectId">;
4493
5030
  createdAt: string;
4494
- mode: "dag" | "graph";
5031
+ mode: "dag" | "graph" | "discussion";
5032
+ workflowId: string;
4495
5033
  updatedAt: string;
4496
5034
  nodes: {
4497
5035
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
@@ -4501,18 +5039,29 @@ export declare const METHODS: {
4501
5039
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4502
5040
  role?: string | undefined;
4503
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;
4504
5050
  error?: string | undefined;
4505
5051
  startedAt?: string | undefined;
4506
5052
  completedAt?: string | undefined;
5053
+ iterations?: number | undefined;
4507
5054
  }[];
4508
- workflowId: string;
5055
+ resumable: boolean;
5056
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4509
5057
  error?: string | undefined;
4510
5058
  completedAt?: string | undefined;
5059
+ finalText?: string | undefined;
4511
5060
  }, {
4512
5061
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4513
- project: string;
4514
5062
  createdAt: string;
4515
- mode: "dag" | "graph";
5063
+ mode: "dag" | "graph" | "discussion";
5064
+ workflowId: string;
4516
5065
  updatedAt: string;
4517
5066
  nodes: {
4518
5067
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
@@ -4522,21 +5071,32 @@ export declare const METHODS: {
4522
5071
  sessionId?: string | undefined;
4523
5072
  role?: string | undefined;
4524
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;
4525
5082
  error?: string | undefined;
4526
5083
  startedAt?: string | undefined;
4527
5084
  completedAt?: string | undefined;
5085
+ iterations?: number | undefined;
4528
5086
  }[];
4529
- workflowId: string;
5087
+ project?: string | undefined;
4530
5088
  error?: string | undefined;
4531
5089
  completedAt?: string | undefined;
5090
+ finalText?: string | undefined;
5091
+ resumable?: boolean | undefined;
4532
5092
  }>, "many">;
4533
5093
  nextCursor: z.ZodOptional<z.ZodString>;
4534
5094
  }, "strip", z.ZodTypeAny, {
4535
5095
  workflows: {
4536
5096
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4537
- project: string & z.BRAND<"ProjectId">;
4538
5097
  createdAt: string;
4539
- mode: "dag" | "graph";
5098
+ mode: "dag" | "graph" | "discussion";
5099
+ workflowId: string;
4540
5100
  updatedAt: string;
4541
5101
  nodes: {
4542
5102
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
@@ -4546,21 +5106,32 @@ export declare const METHODS: {
4546
5106
  sessionId?: (string & z.BRAND<"SessionId">) | undefined;
4547
5107
  role?: string | undefined;
4548
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;
4549
5117
  error?: string | undefined;
4550
5118
  startedAt?: string | undefined;
4551
5119
  completedAt?: string | undefined;
5120
+ iterations?: number | undefined;
4552
5121
  }[];
4553
- workflowId: string;
5122
+ resumable: boolean;
5123
+ project?: (string & z.BRAND<"ProjectId">) | undefined;
4554
5124
  error?: string | undefined;
4555
5125
  completedAt?: string | undefined;
5126
+ finalText?: string | undefined;
4556
5127
  }[];
4557
5128
  nextCursor?: string | undefined;
4558
5129
  }, {
4559
5130
  workflows: {
4560
5131
  status: "running" | "queued" | "completed" | "failed" | "timeout" | "cancelled";
4561
- project: string;
4562
5132
  createdAt: string;
4563
- mode: "dag" | "graph";
5133
+ mode: "dag" | "graph" | "discussion";
5134
+ workflowId: string;
4564
5135
  updatedAt: string;
4565
5136
  nodes: {
4566
5137
  status: "running" | "completed" | "failed" | "pending" | "cancelled" | "ready" | "skipped";
@@ -4570,13 +5141,24 @@ export declare const METHODS: {
4570
5141
  sessionId?: string | undefined;
4571
5142
  role?: string | undefined;
4572
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;
4573
5152
  error?: string | undefined;
4574
5153
  startedAt?: string | undefined;
4575
5154
  completedAt?: string | undefined;
5155
+ iterations?: number | undefined;
4576
5156
  }[];
4577
- workflowId: string;
5157
+ project?: string | undefined;
4578
5158
  error?: string | undefined;
4579
5159
  completedAt?: string | undefined;
5160
+ finalText?: string | undefined;
5161
+ resumable?: boolean | undefined;
4580
5162
  }[];
4581
5163
  nextCursor?: string | undefined;
4582
5164
  }>;
@@ -4587,7 +5169,7 @@ export declare const METHODS: {
4587
5169
  readonly params: z.ZodObject<{
4588
5170
  workflowId: z.ZodString;
4589
5171
  seq: z.ZodNumber;
4590
- type: z.ZodEnum<["workflow.status", "node.status", "node.stream", "edge.route", "executor.decision"]>;
5172
+ type: z.ZodEnum<["workflow.status", "node.status", "edge.route", "executor.decision", "round.started", "round.completed", "discussion.terminated"]>;
4591
5173
  nodeId: z.ZodOptional<z.ZodString>;
4592
5174
  sessionId: z.ZodOptional<z.ZodBranded<z.ZodString, "SessionId">>;
4593
5175
  turnId: z.ZodOptional<z.ZodString>;
@@ -4595,10 +5177,38 @@ export declare const METHODS: {
4595
5177
  model: z.ZodOptional<z.ZodString>;
4596
5178
  role: z.ZodOptional<z.ZodString>;
4597
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
+ }>>;
4598
5208
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4599
5209
  timestamp: z.ZodString;
4600
5210
  }, "strip", z.ZodTypeAny, {
4601
- type: "workflow.status" | "node.status" | "node.stream" | "edge.route" | "executor.decision";
5211
+ type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated";
4602
5212
  seq: number;
4603
5213
  workflowId: string;
4604
5214
  timestamp: string;
@@ -4608,10 +5218,18 @@ export declare const METHODS: {
4608
5218
  role?: string | undefined;
4609
5219
  model?: string | undefined;
4610
5220
  turnId?: string | undefined;
4611
- payload?: Record<string, unknown> | 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;
4612
5229
  nodeId?: string | undefined;
5230
+ payload?: Record<string, unknown> | undefined;
4613
5231
  }, {
4614
- type: "workflow.status" | "node.status" | "node.stream" | "edge.route" | "executor.decision";
5232
+ type: "workflow.status" | "node.status" | "edge.route" | "executor.decision" | "round.started" | "round.completed" | "discussion.terminated";
4615
5233
  seq: number;
4616
5234
  workflowId: string;
4617
5235
  timestamp: string;
@@ -4621,8 +5239,31 @@ export declare const METHODS: {
4621
5239
  role?: string | undefined;
4622
5240
  model?: string | undefined;
4623
5241
  turnId?: string | undefined;
4624
- payload?: Record<string, unknown> | 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;
4625
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;
4626
5267
  }>;
4627
5268
  readonly result: z.ZodUndefined;
4628
5269
  };