@makaio/framework 1.0.0-dev-1781397017668 → 1.0.0-dev-1781442380278

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.
Files changed (93) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/{adapter-D_p5kKxi.mjs → adapter-BH1X0THX.mjs} +1 -1
  3. package/dist/adapters/index.d.mts +1 -1
  4. package/dist/bus/index.d.mts +20 -20
  5. package/dist/bus/index.mjs +1 -1
  6. package/dist/contracts/adapter/index.d.mts +1 -1
  7. package/dist/contracts/adapter/index.mjs +1 -1
  8. package/dist/contracts/artifact/index.d.mts +1 -1
  9. package/dist/contracts/canonical-model/index.d.mts +1 -1
  10. package/dist/contracts/config/index.d.mts +6 -6
  11. package/dist/contracts/extension/index.d.mts +2 -2
  12. package/dist/contracts/facet/index.d.mts +1 -1
  13. package/dist/contracts/harness/index.d.mts +1 -1
  14. package/dist/contracts/index.d.mts +188 -183
  15. package/dist/contracts/index.mjs +1 -1
  16. package/dist/contracts/materialization/index.d.mts +3 -3
  17. package/dist/contracts/provider/index.d.mts +1 -1
  18. package/dist/contracts/session/index.d.mts +2 -2
  19. package/dist/contracts/session/index.mjs +1 -1
  20. package/dist/contracts/variant/index.d.mts +1 -1
  21. package/dist/{definition-CPc6oKaF.d.mts → definition-CZcVOhXZ.d.mts} +1 -1
  22. package/dist/handlers-Cpy9Q8ho.mjs +41 -0
  23. package/dist/{index-C24PcW2r.d.mts → index-B1PgTu7q.d.mts} +8 -8
  24. package/dist/{index-CEdOq5Om.d.mts → index-BDnI2oqX.d.mts} +1 -1
  25. package/dist/{index-QvciMc7_.d.mts → index-BF84QInS.d.mts} +875 -361
  26. package/dist/{index-DfNIhEm_.d.mts → index-BVMF3kRv.d.mts} +16 -16
  27. package/dist/{index-CszoKxxO.d.mts → index-Cj3XCjXZ.d.mts} +342 -342
  28. package/dist/{index-BLqtL-_a.d.mts → index-DHVoVh-j.d.mts} +7 -7
  29. package/dist/{index-WKF5BHsw.d.mts → index-DUI1W-zN.d.mts} +8 -8
  30. package/dist/{index-B99Prx5a.d.mts → index-DUsm-DeE.d.mts} +100 -100
  31. package/dist/{index-B92SK0rO.d.mts → index-DigeEyrf.d.mts} +19 -16
  32. package/dist/{index-GuspCNLR.d.mts → index-DyqZej9j.d.mts} +8 -8
  33. package/dist/{index-DBgv39-Q.d.mts → index-HiAth5G0.d.mts} +52 -52
  34. package/dist/{index-NyKdb8kT.d.mts → index-LrZlZUvQ.d.mts} +16 -16
  35. package/dist/{index-BM_y78ZA2.d.mts → index-cN4DkU5Y2.d.mts} +9 -9
  36. package/dist/{index-C0TEY7RE.d.mts → index-oUqyVvsD.d.mts} +1 -1
  37. package/dist/kernel/extension/index.d.mts +1 -1
  38. package/dist/kernel/index.d.mts +2 -2
  39. package/dist/kernel/observability/index.d.mts +1 -1
  40. package/dist/{namespace-DbvQ4HYc.d.mts → namespace-BXuuv8L9.d.mts} +152 -152
  41. package/dist/{namespace-CN2TfSCY.d.mts → namespace-Ba1gUpUu.d.mts} +4 -4
  42. package/dist/{namespace-D_ZXa76m.d.mts → namespace-CWgNi8Gv.d.mts} +26 -26
  43. package/dist/{namespace-BAJTZXWc.d.mts → namespace-DM3TSh_y.d.mts} +38 -38
  44. package/dist/{namespace-C_kaVySz.d.mts → namespace-Q-z7Lr2f.d.mts} +8 -8
  45. package/dist/{package-Bn665ylV.mjs → package-DMoFY63f.mjs} +1 -1
  46. package/dist/package.json +1 -1
  47. package/dist/primitive-runtime-DWbV7f_r.mjs +1 -0
  48. package/dist/{schema-msWs4YhT.d.mts → schema-BKdn_bdY.d.mts} +2 -2
  49. package/dist/{schemas-DMl7IKG-.d.mts → schemas-BbFAwUpf.d.mts} +5 -5
  50. package/dist/{schemas-xoTn8JZb.d.mts → schemas-CyEdMtnQ.d.mts} +152 -152
  51. package/dist/schemas-CzvG8xq7.mjs +1 -0
  52. package/dist/{schemas-DRZJK6hW2.d.mts → schemas-DvjQHkmw2.d.mts} +6 -6
  53. package/dist/{schemas-CN9hprME.d.mts → schemas-IDGAJ_zv.d.mts} +6 -6
  54. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  55. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  56. package/dist/services/agent-runtime/index.d.mts +2 -2
  57. package/dist/services/agent-runtime/namespace.d.mts +1 -1
  58. package/dist/services/agent-runtime/schemas.d.mts +1 -1
  59. package/dist/services/context-rules/index.d.mts +3 -3
  60. package/dist/services/filesystem/namespace.d.mts +12 -12
  61. package/dist/services/filesystem/schemas.d.mts +6 -6
  62. package/dist/services/harness/index.d.mts +3 -3
  63. package/dist/services/index.d.mts +117 -117
  64. package/dist/services/index.mjs +1 -1
  65. package/dist/services/session/handlers/index.mjs +1 -1
  66. package/dist/services/session/index.d.mts +4 -4
  67. package/dist/services/session/index.mjs +1 -1
  68. package/dist/services/session/messages/namespace.d.mts +1 -1
  69. package/dist/services/session/storage/namespace.d.mts +1 -1
  70. package/dist/services/session/storage/schema.d.mts +1 -1
  71. package/dist/services/session/testing/index.mjs +1 -1
  72. package/dist/services/settings/namespace.d.mts +6 -6
  73. package/dist/services/subagent-template/index.d.mts +1 -1
  74. package/dist/services/subagent-template/schemas.d.mts +1 -1
  75. package/dist/services/tool-approval/index.mjs +1 -1
  76. package/dist/services/tools/index.mjs +1 -1
  77. package/dist/services/tray-menu/index.d.mts +2 -2
  78. package/dist/services/tray-menu/namespace.d.mts +1 -1
  79. package/dist/services/tray-menu/schemas.d.mts +1 -1
  80. package/dist/session-ZAJrcudH.mjs +39 -0
  81. package/dist/{session-bKk-XeaY.mjs → session-owtKCoUX.mjs} +1 -1
  82. package/dist/{tool-approval-service-C2xXBtdJ.mjs → tool-approval-service-B_28RhuK.mjs} +1 -1
  83. package/dist/{tools-DEUzCPBB.mjs → tools-BpzJterj.mjs} +1 -1
  84. package/dist/{types-4LKM7ZfA.d.mts → types-Bo2-N1YR.d.mts} +887 -357
  85. package/dist/workflow-engine/index.d.mts +34 -34
  86. package/dist/workflow-engine/index.mjs +1 -1
  87. package/dist/workflow-engine/package.mjs +1 -1
  88. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  89. package/package.json +1 -1
  90. package/dist/handlers-CTrL8wmC.mjs +0 -41
  91. package/dist/primitive-runtime-C2yw4-F8.mjs +0 -1
  92. package/dist/schemas-CiMm2zrE.mjs +0 -1
  93. package/dist/session-Me3XO-l9.mjs +0 -39
@@ -1,6 +1,7 @@
1
1
  import { s as MessageBlock$1 } from "./index-B3mq3Qjf.mjs";
2
2
  import * as _$zod from "zod";
3
3
  import { z } from "zod";
4
+ import * as _$_makaio_core0 from "@makaio/framework/core";
4
5
  import * as _$_makaio_contracts0 from "@makaio/framework/contracts";
5
6
  import * as _$zod_v4_core0 from "zod/v4/core";
6
7
 
@@ -67,8 +68,8 @@ type SessionCreateBase = z.infer<typeof SessionCreateBaseSchema>;
67
68
  * - 'disposed': Agent replaced (cross-adapter switch) — retained for message metadata
68
69
  */
69
70
  declare const AgentStatusSchema$1: z.ZodEnum<{
70
- active: "active";
71
71
  idle: "idle";
72
+ active: "active";
72
73
  dead: "dead";
73
74
  disposed: "disposed";
74
75
  }>;
@@ -103,8 +104,8 @@ declare const MakaioSessionAgentSchema$1: z.ZodObject<{
103
104
  member: "member";
104
105
  }>;
105
106
  status: z.ZodEnum<{
106
- active: "active";
107
107
  idle: "idle";
108
+ active: "active";
108
109
  dead: "dead";
109
110
  disposed: "disposed";
110
111
  }>;
@@ -147,8 +148,8 @@ declare const MakaioSessionSchema: z.ZodObject<{
147
148
  member: "member";
148
149
  }>;
149
150
  status: z.ZodEnum<{
150
- active: "active";
151
151
  idle: "idle";
152
+ active: "active";
152
153
  dead: "dead";
153
154
  disposed: "disposed";
154
155
  }>;
@@ -156,10 +157,10 @@ declare const MakaioSessionSchema: z.ZodObject<{
156
157
  lastActivityAt: z.ZodNumber;
157
158
  }, z.core.$strip>>;
158
159
  status: z.ZodEnum<{
160
+ closed: "closed";
159
161
  active: "active";
160
162
  archived: "archived";
161
163
  discovered: "discovered";
162
- closed: "closed";
163
164
  }>;
164
165
  leadAgentId: z.ZodOptional<z.ZodString>;
165
166
  parentSessionId: z.ZodOptional<z.ZodString>;
@@ -272,8 +273,8 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
272
273
  member: "member";
273
274
  }>;
274
275
  status: z.ZodEnum<{
275
- active: "active";
276
276
  idle: "idle";
277
+ active: "active";
277
278
  dead: "dead";
278
279
  disposed: "disposed";
279
280
  }>;
@@ -281,10 +282,10 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
281
282
  lastActivityAt: z.ZodNumber;
282
283
  }, z.core.$strip>>;
283
284
  status: z.ZodEnum<{
285
+ closed: "closed";
284
286
  active: "active";
285
287
  archived: "archived";
286
288
  discovered: "discovered";
287
- closed: "closed";
288
289
  }>;
289
290
  leadAgentId: z.ZodOptional<z.ZodString>;
290
291
  parentSessionId: z.ZodOptional<z.ZodString>;
@@ -471,8 +472,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
471
472
  member: "member";
472
473
  }>;
473
474
  status: z.ZodEnum<{
474
- active: "active";
475
475
  idle: "idle";
476
+ active: "active";
476
477
  dead: "dead";
477
478
  disposed: "disposed";
478
479
  }>;
@@ -480,10 +481,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
480
481
  lastActivityAt: z.ZodNumber;
481
482
  }, z.core.$strip>>;
482
483
  status: z.ZodEnum<{
484
+ closed: "closed";
483
485
  active: "active";
484
486
  archived: "archived";
485
487
  discovered: "discovered";
486
- closed: "closed";
487
488
  }>;
488
489
  leadAgentId: z.ZodOptional<z.ZodString>;
489
490
  parentSessionId: z.ZodOptional<z.ZodString>;
@@ -581,8 +582,8 @@ declare const SessionSnapshotSchema: z.ZodObject<{
581
582
  member: "member";
582
583
  }>;
583
584
  status: z.ZodEnum<{
584
- active: "active";
585
585
  idle: "idle";
586
+ active: "active";
586
587
  dead: "dead";
587
588
  disposed: "disposed";
588
589
  }>;
@@ -1392,7 +1393,9 @@ declare const OrchestratorSchemas: {
1392
1393
  *
1393
1394
  * `responseSchema.schema` is a JSON Schema document serialized as a
1394
1395
  * JSON-safe `Record<string, JsonValue>` so it can cross bus, storage, and
1395
- * provider adapter boundaries without runtime-only values.
1396
+ * provider adapter boundaries without runtime-only values. Pass structured
1397
+ * output constraints as `{ schema, name?, strict? }`; raw JSON Schema
1398
+ * documents are intentionally not accepted at this session boundary.
1396
1399
  * @example
1397
1400
  * ```typescript
1398
1401
  * // Start new conversation (client generates sessionId)
@@ -1561,25 +1564,6 @@ declare const OrchestratorSchemas: {
1561
1564
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1562
1565
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
1563
1566
  sessionId: z.ZodString;
1564
- directTools: z.ZodArray<z.ZodObject<{
1565
- fullName: z.ZodString;
1566
- originalName: z.ZodString;
1567
- serverName: z.ZodString;
1568
- description: z.ZodOptional<z.ZodString>;
1569
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1570
- exposureMode: z.ZodEnum<{
1571
- hidden: "hidden";
1572
- discovery: "discovery";
1573
- direct: "direct";
1574
- }>;
1575
- enabled: z.ZodBoolean;
1576
- enabledBy: z.ZodOptional<z.ZodEnum<{
1577
- discovery: "discovery";
1578
- toolset: "toolset";
1579
- }>>;
1580
- enabledAt: z.ZodOptional<z.ZodNumber>;
1581
- exposed: z.ZodBoolean;
1582
- }, z.core.$strip>>;
1583
1567
  servers: z.ZodArray<z.ZodObject<{
1584
1568
  name: z.ZodString;
1585
1569
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1616,9 +1600,28 @@ declare const OrchestratorSchemas: {
1616
1600
  type: z.ZodLiteral<"http">;
1617
1601
  }, z.core.$strip>], "type">;
1618
1602
  exposureMode: z.ZodEnum<{
1603
+ direct: "direct";
1619
1604
  discovery: "discovery";
1605
+ }>;
1606
+ }, z.core.$strip>>;
1607
+ directTools: z.ZodArray<z.ZodObject<{
1608
+ fullName: z.ZodString;
1609
+ originalName: z.ZodString;
1610
+ serverName: z.ZodString;
1611
+ description: z.ZodOptional<z.ZodString>;
1612
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1613
+ exposureMode: z.ZodEnum<{
1614
+ hidden: "hidden";
1620
1615
  direct: "direct";
1616
+ discovery: "discovery";
1621
1617
  }>;
1618
+ enabled: z.ZodBoolean;
1619
+ enabledBy: z.ZodOptional<z.ZodEnum<{
1620
+ discovery: "discovery";
1621
+ toolset: "toolset";
1622
+ }>>;
1623
+ enabledAt: z.ZodOptional<z.ZodNumber>;
1624
+ exposed: z.ZodBoolean;
1622
1625
  }, z.core.$strip>>;
1623
1626
  discoverableTools: z.ZodArray<z.ZodObject<{
1624
1627
  fullName: z.ZodString;
@@ -1628,8 +1631,8 @@ declare const OrchestratorSchemas: {
1628
1631
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1629
1632
  exposureMode: z.ZodEnum<{
1630
1633
  hidden: "hidden";
1631
- discovery: "discovery";
1632
1634
  direct: "direct";
1635
+ discovery: "discovery";
1633
1636
  }>;
1634
1637
  enabled: z.ZodBoolean;
1635
1638
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -1664,25 +1667,6 @@ declare const OrchestratorSchemas: {
1664
1667
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1665
1668
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
1666
1669
  sessionId: z.ZodString;
1667
- directTools: z.ZodArray<z.ZodObject<{
1668
- fullName: z.ZodString;
1669
- originalName: z.ZodString;
1670
- serverName: z.ZodString;
1671
- description: z.ZodOptional<z.ZodString>;
1672
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1673
- exposureMode: z.ZodEnum<{
1674
- hidden: "hidden";
1675
- discovery: "discovery";
1676
- direct: "direct";
1677
- }>;
1678
- enabled: z.ZodBoolean;
1679
- enabledBy: z.ZodOptional<z.ZodEnum<{
1680
- discovery: "discovery";
1681
- toolset: "toolset";
1682
- }>>;
1683
- enabledAt: z.ZodOptional<z.ZodNumber>;
1684
- exposed: z.ZodBoolean;
1685
- }, z.core.$strip>>;
1686
1670
  servers: z.ZodArray<z.ZodObject<{
1687
1671
  name: z.ZodString;
1688
1672
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1719,9 +1703,28 @@ declare const OrchestratorSchemas: {
1719
1703
  type: z.ZodLiteral<"http">;
1720
1704
  }, z.core.$strip>], "type">;
1721
1705
  exposureMode: z.ZodEnum<{
1706
+ direct: "direct";
1722
1707
  discovery: "discovery";
1708
+ }>;
1709
+ }, z.core.$strip>>;
1710
+ directTools: z.ZodArray<z.ZodObject<{
1711
+ fullName: z.ZodString;
1712
+ originalName: z.ZodString;
1713
+ serverName: z.ZodString;
1714
+ description: z.ZodOptional<z.ZodString>;
1715
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1716
+ exposureMode: z.ZodEnum<{
1717
+ hidden: "hidden";
1723
1718
  direct: "direct";
1719
+ discovery: "discovery";
1724
1720
  }>;
1721
+ enabled: z.ZodBoolean;
1722
+ enabledBy: z.ZodOptional<z.ZodEnum<{
1723
+ discovery: "discovery";
1724
+ toolset: "toolset";
1725
+ }>>;
1726
+ enabledAt: z.ZodOptional<z.ZodNumber>;
1727
+ exposed: z.ZodBoolean;
1725
1728
  }, z.core.$strip>>;
1726
1729
  discoverableTools: z.ZodArray<z.ZodObject<{
1727
1730
  fullName: z.ZodString;
@@ -1731,8 +1734,8 @@ declare const OrchestratorSchemas: {
1731
1734
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1732
1735
  exposureMode: z.ZodEnum<{
1733
1736
  hidden: "hidden";
1734
- discovery: "discovery";
1735
1737
  direct: "direct";
1738
+ discovery: "discovery";
1736
1739
  }>;
1737
1740
  enabled: z.ZodBoolean;
1738
1741
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -1767,25 +1770,6 @@ declare const OrchestratorSchemas: {
1767
1770
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1768
1771
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
1769
1772
  sessionId: z.ZodString;
1770
- directTools: z.ZodArray<z.ZodObject<{
1771
- fullName: z.ZodString;
1772
- originalName: z.ZodString;
1773
- serverName: z.ZodString;
1774
- description: z.ZodOptional<z.ZodString>;
1775
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1776
- exposureMode: z.ZodEnum<{
1777
- hidden: "hidden";
1778
- discovery: "discovery";
1779
- direct: "direct";
1780
- }>;
1781
- enabled: z.ZodBoolean;
1782
- enabledBy: z.ZodOptional<z.ZodEnum<{
1783
- discovery: "discovery";
1784
- toolset: "toolset";
1785
- }>>;
1786
- enabledAt: z.ZodOptional<z.ZodNumber>;
1787
- exposed: z.ZodBoolean;
1788
- }, z.core.$strip>>;
1789
1773
  servers: z.ZodArray<z.ZodObject<{
1790
1774
  name: z.ZodString;
1791
1775
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1822,9 +1806,28 @@ declare const OrchestratorSchemas: {
1822
1806
  type: z.ZodLiteral<"http">;
1823
1807
  }, z.core.$strip>], "type">;
1824
1808
  exposureMode: z.ZodEnum<{
1809
+ direct: "direct";
1825
1810
  discovery: "discovery";
1811
+ }>;
1812
+ }, z.core.$strip>>;
1813
+ directTools: z.ZodArray<z.ZodObject<{
1814
+ fullName: z.ZodString;
1815
+ originalName: z.ZodString;
1816
+ serverName: z.ZodString;
1817
+ description: z.ZodOptional<z.ZodString>;
1818
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1819
+ exposureMode: z.ZodEnum<{
1820
+ hidden: "hidden";
1826
1821
  direct: "direct";
1822
+ discovery: "discovery";
1827
1823
  }>;
1824
+ enabled: z.ZodBoolean;
1825
+ enabledBy: z.ZodOptional<z.ZodEnum<{
1826
+ discovery: "discovery";
1827
+ toolset: "toolset";
1828
+ }>>;
1829
+ enabledAt: z.ZodOptional<z.ZodNumber>;
1830
+ exposed: z.ZodBoolean;
1828
1831
  }, z.core.$strip>>;
1829
1832
  discoverableTools: z.ZodArray<z.ZodObject<{
1830
1833
  fullName: z.ZodString;
@@ -1834,8 +1837,8 @@ declare const OrchestratorSchemas: {
1834
1837
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1835
1838
  exposureMode: z.ZodEnum<{
1836
1839
  hidden: "hidden";
1837
- discovery: "discovery";
1838
1840
  direct: "direct";
1841
+ discovery: "discovery";
1839
1842
  }>;
1840
1843
  enabled: z.ZodBoolean;
1841
1844
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2067,25 +2070,6 @@ declare const OrchestratorSchemas: {
2067
2070
  env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2068
2071
  mcpSessionContext: z.ZodOptional<z.ZodObject<{
2069
2072
  sessionId: z.ZodString;
2070
- directTools: z.ZodArray<z.ZodObject<{
2071
- fullName: z.ZodString;
2072
- originalName: z.ZodString;
2073
- serverName: z.ZodString;
2074
- description: z.ZodOptional<z.ZodString>;
2075
- inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2076
- exposureMode: z.ZodEnum<{
2077
- hidden: "hidden";
2078
- discovery: "discovery";
2079
- direct: "direct";
2080
- }>;
2081
- enabled: z.ZodBoolean;
2082
- enabledBy: z.ZodOptional<z.ZodEnum<{
2083
- discovery: "discovery";
2084
- toolset: "toolset";
2085
- }>>;
2086
- enabledAt: z.ZodOptional<z.ZodNumber>;
2087
- exposed: z.ZodBoolean;
2088
- }, z.core.$strip>>;
2089
2073
  servers: z.ZodArray<z.ZodObject<{
2090
2074
  name: z.ZodString;
2091
2075
  transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -2122,9 +2106,28 @@ declare const OrchestratorSchemas: {
2122
2106
  type: z.ZodLiteral<"http">;
2123
2107
  }, z.core.$strip>], "type">;
2124
2108
  exposureMode: z.ZodEnum<{
2109
+ direct: "direct";
2125
2110
  discovery: "discovery";
2111
+ }>;
2112
+ }, z.core.$strip>>;
2113
+ directTools: z.ZodArray<z.ZodObject<{
2114
+ fullName: z.ZodString;
2115
+ originalName: z.ZodString;
2116
+ serverName: z.ZodString;
2117
+ description: z.ZodOptional<z.ZodString>;
2118
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2119
+ exposureMode: z.ZodEnum<{
2120
+ hidden: "hidden";
2126
2121
  direct: "direct";
2122
+ discovery: "discovery";
2127
2123
  }>;
2124
+ enabled: z.ZodBoolean;
2125
+ enabledBy: z.ZodOptional<z.ZodEnum<{
2126
+ discovery: "discovery";
2127
+ toolset: "toolset";
2128
+ }>>;
2129
+ enabledAt: z.ZodOptional<z.ZodNumber>;
2130
+ exposed: z.ZodBoolean;
2128
2131
  }, z.core.$strip>>;
2129
2132
  discoverableTools: z.ZodArray<z.ZodObject<{
2130
2133
  fullName: z.ZodString;
@@ -2134,8 +2137,8 @@ declare const OrchestratorSchemas: {
2134
2137
  inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2135
2138
  exposureMode: z.ZodEnum<{
2136
2139
  hidden: "hidden";
2137
- discovery: "discovery";
2138
2140
  direct: "direct";
2141
+ discovery: "discovery";
2139
2142
  }>;
2140
2143
  enabled: z.ZodBoolean;
2141
2144
  enabledBy: z.ZodOptional<z.ZodEnum<{
@@ -2288,90 +2291,360 @@ declare const OrchestratorSchemas: {
2288
2291
  }, z.core.$strip>;
2289
2292
  };
2290
2293
  /**
2291
- * Turn started.
2292
- *
2293
- * Subject: `session.turn.started`
2294
- * Type: Event (fire-and-forget)
2295
- * Emitted when: First user message of a turn is received
2296
- */
2297
- 'turn.started': z.ZodObject<{
2298
- sessionId: z.ZodString;
2299
- turnId: z.ZodString;
2300
- turnNumber: z.ZodNumber;
2301
- messageId: z.ZodString;
2302
- agentIds: z.ZodArray<z.ZodString>;
2303
- initiator: z.ZodOptional<z.ZodObject<{
2304
- source: z.ZodEnum<{
2305
- user: "user";
2306
- system: "system";
2307
- extension: "extension";
2308
- }>;
2309
- sourceId: z.ZodOptional<z.ZodString>;
2310
- }, z.core.$strip>>;
2311
- }, z.core.$strip>;
2312
- /**
2313
- * Turn completed.
2314
- *
2315
- * Subject: `session.turn.completed`
2316
- * Type: Event (fire-and-forget)
2317
- * Emitted when: All targeted agents have completed processing
2318
- *
2319
- * Semantics:
2320
- * - success=true: all agents completed with outcome='completed'
2321
- * - success=false: any agent had outcome='error'
2322
- * - cancelled/superseded/merged outcomes are neutral (not errors)
2323
- */
2324
- 'turn.completed': z.ZodObject<{
2325
- sessionId: z.ZodString;
2326
- turnId: z.ZodString;
2327
- turnNumber: z.ZodNumber;
2328
- success: z.ZodBoolean;
2329
- error: z.ZodOptional<z.ZodString>;
2330
- usage: z.ZodOptional<z.ZodObject<{
2331
- total: z.ZodObject<{
2332
- inputTokens: z.ZodNumber;
2333
- outputTokens: z.ZodNumber;
2334
- cost: z.ZodOptional<z.ZodNumber>;
2335
- }, z.core.$strip>;
2336
- byAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2337
- inputTokens: z.ZodNumber;
2338
- outputTokens: z.ZodNumber;
2339
- cost: z.ZodOptional<z.ZodNumber>;
2340
- }, z.core.$strip>>>;
2341
- }, z.core.$strip>>;
2342
- initiator: z.ZodOptional<z.ZodObject<{
2343
- source: z.ZodEnum<{
2344
- user: "user";
2345
- system: "system";
2346
- extension: "extension";
2347
- }>;
2348
- sourceId: z.ZodOptional<z.ZodString>;
2349
- }, z.core.$strip>>;
2350
- }, z.core.$strip>;
2351
- /**
2352
- * Await completion of a specific session turn.
2294
+ * Attach an adapter agent with an already resolved provider context.
2353
2295
  *
2354
- * Subject: `session.turn.await`
2355
- * Type: Request (RPC)
2356
- *
2357
- * Resolves with the matching `session.turn.completed` payload. The timeout is
2358
- * required so callers cannot accidentally create an unbounded wait.
2296
+ * Local-only internal seam for framework runtimes that resolve provider
2297
+ * credentials/endpoints before delegating to the session subsystem. Public
2298
+ * callers must use `agent.attach`/`sendMessage` with `providerConfigId` so
2299
+ * session startup performs provider resolution itself.
2359
2300
  */
2360
- 'turn.await': {
2301
+ 'agent.attachResolved': _$_makaio_core0.LocalSubjectSchema<{
2361
2302
  request: z.ZodObject<{
2362
2303
  sessionId: z.ZodString;
2363
- turnId: z.ZodString;
2364
- timeoutMs: z.ZodNumber;
2365
- }, z.core.$strip>;
2366
- response: z.ZodObject<{
2367
- completion: z.ZodObject<{
2368
- sessionId: z.ZodString;
2369
- turnId: z.ZodString;
2370
- turnNumber: z.ZodNumber;
2371
- success: z.ZodBoolean;
2372
- error: z.ZodOptional<z.ZodString>;
2373
- usage: z.ZodOptional<z.ZodObject<{
2374
- total: z.ZodObject<{
2304
+ agent: z.ZodObject<{
2305
+ providerConfigId: z.ZodOptional<z.ZodString>;
2306
+ model: z.ZodOptional<z.ZodString>;
2307
+ reasoningEffort: z.ZodOptional<z.ZodEnum<{
2308
+ none: "none";
2309
+ low: "low";
2310
+ medium: "medium";
2311
+ high: "high";
2312
+ "extra-high": "extra-high";
2313
+ }>>;
2314
+ cwd: z.ZodOptional<z.ZodString>;
2315
+ systemPrompt: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2316
+ mode: z.ZodLiteral<"append">;
2317
+ content: z.ZodString;
2318
+ }, z.core.$strip>]>>;
2319
+ allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2320
+ disallowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
2321
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2322
+ mcpSessionContext: z.ZodOptional<z.ZodObject<{
2323
+ sessionId: z.ZodString;
2324
+ servers: z.ZodArray<z.ZodObject<{
2325
+ name: z.ZodString;
2326
+ transport: z.ZodDiscriminatedUnion<[z.ZodObject<{
2327
+ type: z.ZodLiteral<"stdio">;
2328
+ command: z.ZodString;
2329
+ args: z.ZodOptional<z.ZodArray<z.ZodString>>;
2330
+ env: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2331
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
2332
+ }, z.core.$strip>, z.ZodObject<{
2333
+ url: z.ZodString;
2334
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2335
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
2336
+ name: z.ZodString;
2337
+ permission_policy: z.ZodEnum<{
2338
+ always_allow: "always_allow";
2339
+ always_ask: "always_ask";
2340
+ always_deny: "always_deny";
2341
+ }>;
2342
+ }, z.core.$strip>>>;
2343
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
2344
+ type: z.ZodLiteral<"sse">;
2345
+ }, z.core.$strip>, z.ZodObject<{
2346
+ url: z.ZodString;
2347
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2348
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
2349
+ name: z.ZodString;
2350
+ permission_policy: z.ZodEnum<{
2351
+ always_allow: "always_allow";
2352
+ always_ask: "always_ask";
2353
+ always_deny: "always_deny";
2354
+ }>;
2355
+ }, z.core.$strip>>>;
2356
+ alwaysLoad: z.ZodOptional<z.ZodBoolean>;
2357
+ type: z.ZodLiteral<"http">;
2358
+ }, z.core.$strip>], "type">;
2359
+ exposureMode: z.ZodEnum<{
2360
+ direct: "direct";
2361
+ discovery: "discovery";
2362
+ }>;
2363
+ }, z.core.$strip>>;
2364
+ directTools: z.ZodArray<z.ZodObject<{
2365
+ fullName: z.ZodString;
2366
+ originalName: z.ZodString;
2367
+ serverName: z.ZodString;
2368
+ description: z.ZodOptional<z.ZodString>;
2369
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2370
+ exposureMode: z.ZodEnum<{
2371
+ hidden: "hidden";
2372
+ direct: "direct";
2373
+ discovery: "discovery";
2374
+ }>;
2375
+ enabled: z.ZodBoolean;
2376
+ enabledBy: z.ZodOptional<z.ZodEnum<{
2377
+ discovery: "discovery";
2378
+ toolset: "toolset";
2379
+ }>>;
2380
+ enabledAt: z.ZodOptional<z.ZodNumber>;
2381
+ exposed: z.ZodBoolean;
2382
+ }, z.core.$strip>>;
2383
+ discoverableTools: z.ZodArray<z.ZodObject<{
2384
+ fullName: z.ZodString;
2385
+ originalName: z.ZodString;
2386
+ serverName: z.ZodString;
2387
+ description: z.ZodOptional<z.ZodString>;
2388
+ inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2389
+ exposureMode: z.ZodEnum<{
2390
+ hidden: "hidden";
2391
+ direct: "direct";
2392
+ discovery: "discovery";
2393
+ }>;
2394
+ enabled: z.ZodBoolean;
2395
+ enabledBy: z.ZodOptional<z.ZodEnum<{
2396
+ discovery: "discovery";
2397
+ toolset: "toolset";
2398
+ }>>;
2399
+ enabledAt: z.ZodOptional<z.ZodNumber>;
2400
+ exposed: z.ZodBoolean;
2401
+ }, z.core.$strip>>;
2402
+ }, z.core.$strip>>;
2403
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
2404
+ adapterConfig: z.ZodOptional<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
2405
+ kind: z.ZodLiteral<"adapter">;
2406
+ adapterName: z.ZodOptional<z.ZodString>;
2407
+ adapterId: z.ZodOptional<z.ZodString>;
2408
+ providerContext: z.ZodOptional<z.ZodObject<{
2409
+ providerConfigId: z.ZodString;
2410
+ definitionId: z.ZodString;
2411
+ endpointOverrides: z.ZodOptional<z.ZodObject<{
2412
+ anthropic: z.ZodOptional<z.ZodString>;
2413
+ openai: z.ZodOptional<z.ZodString>;
2414
+ }, z.core.$strip>>;
2415
+ credentialRefs: z.ZodRecord<z.ZodString, z.core.$ZodBranded<z.ZodString, "CredentialRef", "out">>;
2416
+ credentialEnvVars: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2417
+ ambientCredentialEnvVars: z.ZodOptional<z.ZodArray<z.ZodString>>;
2418
+ }, z.core.$strip>>;
2419
+ }, z.core.$loose>;
2420
+ initialMessage: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
2421
+ role: z.ZodOptional<z.ZodEnum<{
2422
+ user: "user";
2423
+ assistant: "assistant";
2424
+ system: "system";
2425
+ }>>;
2426
+ blocks: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
2427
+ type: z.ZodLiteral<"text">;
2428
+ content: z.ZodString;
2429
+ }, z.core.$strip>, z.ZodObject<{
2430
+ type: z.ZodLiteral<"image">;
2431
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2432
+ type: z.ZodLiteral<"base64">;
2433
+ data: z.ZodString;
2434
+ mimeType: z.ZodString;
2435
+ }, z.core.$strip>, z.ZodObject<{
2436
+ type: z.ZodLiteral<"url">;
2437
+ url: z.ZodString;
2438
+ mimeType: z.ZodOptional<z.ZodString>;
2439
+ }, z.core.$strip>], "type">;
2440
+ }, z.core.$strip>, z.ZodObject<{
2441
+ type: z.ZodLiteral<"document">;
2442
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2443
+ type: z.ZodLiteral<"base64">;
2444
+ data: z.ZodString;
2445
+ mimeType: z.ZodString;
2446
+ }, z.core.$strip>, z.ZodObject<{
2447
+ type: z.ZodLiteral<"url">;
2448
+ url: z.ZodString;
2449
+ mimeType: z.ZodOptional<z.ZodString>;
2450
+ }, z.core.$strip>], "type">;
2451
+ }, z.core.$strip>, z.ZodObject<{
2452
+ type: z.ZodLiteral<"attachment">;
2453
+ fileName: z.ZodString;
2454
+ filePath: z.ZodString;
2455
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2456
+ type: z.ZodLiteral<"base64">;
2457
+ data: z.ZodString;
2458
+ mimeType: z.ZodString;
2459
+ }, z.core.$strip>, z.ZodObject<{
2460
+ type: z.ZodLiteral<"url">;
2461
+ url: z.ZodString;
2462
+ mimeType: z.ZodOptional<z.ZodString>;
2463
+ }, z.core.$strip>], "type">;
2464
+ displayName: z.ZodOptional<z.ZodString>;
2465
+ attachmentType: z.ZodEnum<{
2466
+ file: "file";
2467
+ directory: "directory";
2468
+ }>;
2469
+ }, z.core.$strip>, z.ZodObject<{
2470
+ type: z.ZodLiteral<"reasoning">;
2471
+ content: z.ZodString;
2472
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2473
+ }, z.core.$strip>, z.ZodObject<{
2474
+ type: z.ZodLiteral<"tool_call">;
2475
+ toolCallId: z.ZodString;
2476
+ name: z.ZodString;
2477
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2478
+ }, z.core.$strip>, z.ZodObject<{
2479
+ type: z.ZodLiteral<"tool_output">;
2480
+ toolCallId: z.ZodString;
2481
+ output: z.ZodString;
2482
+ isError: z.ZodOptional<z.ZodBoolean>;
2483
+ }, z.core.$strip>], "type">, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2484
+ type: z.ZodLiteral<"text">;
2485
+ content: z.ZodString;
2486
+ }, z.core.$strip>, z.ZodObject<{
2487
+ type: z.ZodLiteral<"image">;
2488
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2489
+ type: z.ZodLiteral<"base64">;
2490
+ data: z.ZodString;
2491
+ mimeType: z.ZodString;
2492
+ }, z.core.$strip>, z.ZodObject<{
2493
+ type: z.ZodLiteral<"url">;
2494
+ url: z.ZodString;
2495
+ mimeType: z.ZodOptional<z.ZodString>;
2496
+ }, z.core.$strip>], "type">;
2497
+ }, z.core.$strip>, z.ZodObject<{
2498
+ type: z.ZodLiteral<"document">;
2499
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2500
+ type: z.ZodLiteral<"base64">;
2501
+ data: z.ZodString;
2502
+ mimeType: z.ZodString;
2503
+ }, z.core.$strip>, z.ZodObject<{
2504
+ type: z.ZodLiteral<"url">;
2505
+ url: z.ZodString;
2506
+ mimeType: z.ZodOptional<z.ZodString>;
2507
+ }, z.core.$strip>], "type">;
2508
+ }, z.core.$strip>, z.ZodObject<{
2509
+ type: z.ZodLiteral<"attachment">;
2510
+ fileName: z.ZodString;
2511
+ filePath: z.ZodString;
2512
+ source: z.ZodDiscriminatedUnion<[z.ZodObject<{
2513
+ type: z.ZodLiteral<"base64">;
2514
+ data: z.ZodString;
2515
+ mimeType: z.ZodString;
2516
+ }, z.core.$strip>, z.ZodObject<{
2517
+ type: z.ZodLiteral<"url">;
2518
+ url: z.ZodString;
2519
+ mimeType: z.ZodOptional<z.ZodString>;
2520
+ }, z.core.$strip>], "type">;
2521
+ displayName: z.ZodOptional<z.ZodString>;
2522
+ attachmentType: z.ZodEnum<{
2523
+ file: "file";
2524
+ directory: "directory";
2525
+ }>;
2526
+ }, z.core.$strip>, z.ZodObject<{
2527
+ type: z.ZodLiteral<"reasoning">;
2528
+ content: z.ZodString;
2529
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2530
+ }, z.core.$strip>, z.ZodObject<{
2531
+ type: z.ZodLiteral<"tool_call">;
2532
+ toolCallId: z.ZodString;
2533
+ name: z.ZodString;
2534
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2535
+ }, z.core.$strip>, z.ZodObject<{
2536
+ type: z.ZodLiteral<"tool_output">;
2537
+ toolCallId: z.ZodString;
2538
+ output: z.ZodString;
2539
+ isError: z.ZodOptional<z.ZodBoolean>;
2540
+ }, z.core.$strip>], "type">>]>;
2541
+ }, z.core.$strip>]>>;
2542
+ role: z.ZodOptional<z.ZodEnum<{
2543
+ lead: "lead";
2544
+ member: "member";
2545
+ }>>;
2546
+ }, z.core.$strip>;
2547
+ response: z.ZodObject<{
2548
+ agentId: z.ZodString;
2549
+ adapterSessionId: z.ZodString;
2550
+ role: z.ZodEnum<{
2551
+ lead: "lead";
2552
+ member: "member";
2553
+ }>;
2554
+ messageId: z.ZodOptional<z.ZodString>;
2555
+ turnId: z.ZodOptional<z.ZodString>;
2556
+ }, z.core.$strip>;
2557
+ }>;
2558
+ /**
2559
+ * Turn started.
2560
+ *
2561
+ * Subject: `session.turn.started`
2562
+ * Type: Event (fire-and-forget)
2563
+ * Emitted when: First user message of a turn is received
2564
+ */
2565
+ 'turn.started': z.ZodObject<{
2566
+ sessionId: z.ZodString;
2567
+ turnId: z.ZodString;
2568
+ turnNumber: z.ZodNumber;
2569
+ messageId: z.ZodString;
2570
+ agentIds: z.ZodArray<z.ZodString>;
2571
+ initiator: z.ZodOptional<z.ZodObject<{
2572
+ source: z.ZodEnum<{
2573
+ user: "user";
2574
+ system: "system";
2575
+ extension: "extension";
2576
+ }>;
2577
+ sourceId: z.ZodOptional<z.ZodString>;
2578
+ }, z.core.$strip>>;
2579
+ }, z.core.$strip>;
2580
+ /**
2581
+ * Turn completed.
2582
+ *
2583
+ * Subject: `session.turn.completed`
2584
+ * Type: Event (fire-and-forget)
2585
+ * Emitted when: All targeted agents have completed processing
2586
+ *
2587
+ * Semantics:
2588
+ * - success=true: all agents completed with outcome='completed'
2589
+ * - success=false: any agent had outcome='error'
2590
+ * - cancelled/superseded/merged outcomes are neutral (not errors)
2591
+ * - usage is present when agents emitted token usage before the turn
2592
+ * completed; absence means unknown usage, not zero usage
2593
+ */
2594
+ 'turn.completed': z.ZodObject<{
2595
+ sessionId: z.ZodString;
2596
+ turnId: z.ZodString;
2597
+ turnNumber: z.ZodNumber;
2598
+ success: z.ZodBoolean;
2599
+ error: z.ZodOptional<z.ZodString>;
2600
+ usage: z.ZodOptional<z.ZodObject<{
2601
+ total: z.ZodObject<{
2602
+ inputTokens: z.ZodNumber;
2603
+ outputTokens: z.ZodNumber;
2604
+ cost: z.ZodOptional<z.ZodNumber>;
2605
+ }, z.core.$strip>;
2606
+ byAgent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
2607
+ inputTokens: z.ZodNumber;
2608
+ outputTokens: z.ZodNumber;
2609
+ cost: z.ZodOptional<z.ZodNumber>;
2610
+ }, z.core.$strip>>>;
2611
+ }, z.core.$strip>>;
2612
+ initiator: z.ZodOptional<z.ZodObject<{
2613
+ source: z.ZodEnum<{
2614
+ user: "user";
2615
+ system: "system";
2616
+ extension: "extension";
2617
+ }>;
2618
+ sourceId: z.ZodOptional<z.ZodString>;
2619
+ }, z.core.$strip>>;
2620
+ }, z.core.$strip>;
2621
+ /**
2622
+ * Await completion of a specific session turn.
2623
+ *
2624
+ * Subject: `session.turn.await`
2625
+ * Type: Request (RPC)
2626
+ *
2627
+ * Resolves with the matching `session.turn.completed` payload. The
2628
+ * completion payload is the canonical live read path for turn usage keyed by
2629
+ * `sessionId` and `turnId`; `usage` is omitted when the adapter did not
2630
+ * report token counts. The timeout is required so callers cannot accidentally
2631
+ * create an unbounded wait.
2632
+ */
2633
+ 'turn.await': {
2634
+ request: z.ZodObject<{
2635
+ sessionId: z.ZodString;
2636
+ turnId: z.ZodString;
2637
+ timeoutMs: z.ZodNumber;
2638
+ }, z.core.$strip>;
2639
+ response: z.ZodObject<{
2640
+ completion: z.ZodObject<{
2641
+ sessionId: z.ZodString;
2642
+ turnId: z.ZodString;
2643
+ turnNumber: z.ZodNumber;
2644
+ success: z.ZodBoolean;
2645
+ error: z.ZodOptional<z.ZodString>;
2646
+ usage: z.ZodOptional<z.ZodObject<{
2647
+ total: z.ZodObject<{
2375
2648
  inputTokens: z.ZodNumber;
2376
2649
  outputTokens: z.ZodNumber;
2377
2650
  cost: z.ZodOptional<z.ZodNumber>;
@@ -3281,25 +3554,6 @@ declare const SessionSchemas: {
3281
3554
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
3282
3555
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
3283
3556
  sessionId: _$zod.ZodString;
3284
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
3285
- fullName: _$zod.ZodString;
3286
- originalName: _$zod.ZodString;
3287
- serverName: _$zod.ZodString;
3288
- description: _$zod.ZodOptional<_$zod.ZodString>;
3289
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3290
- exposureMode: _$zod.ZodEnum<{
3291
- hidden: "hidden";
3292
- discovery: "discovery";
3293
- direct: "direct";
3294
- }>;
3295
- enabled: _$zod.ZodBoolean;
3296
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3297
- discovery: "discovery";
3298
- toolset: "toolset";
3299
- }>>;
3300
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3301
- exposed: _$zod.ZodBoolean;
3302
- }, _$zod_v4_core0.$strip>>;
3303
3557
  servers: _$zod.ZodArray<_$zod.ZodObject<{
3304
3558
  name: _$zod.ZodString;
3305
3559
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -3336,9 +3590,28 @@ declare const SessionSchemas: {
3336
3590
  type: _$zod.ZodLiteral<"http">;
3337
3591
  }, _$zod_v4_core0.$strip>], "type">;
3338
3592
  exposureMode: _$zod.ZodEnum<{
3593
+ direct: "direct";
3339
3594
  discovery: "discovery";
3595
+ }>;
3596
+ }, _$zod_v4_core0.$strip>>;
3597
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
3598
+ fullName: _$zod.ZodString;
3599
+ originalName: _$zod.ZodString;
3600
+ serverName: _$zod.ZodString;
3601
+ description: _$zod.ZodOptional<_$zod.ZodString>;
3602
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3603
+ exposureMode: _$zod.ZodEnum<{
3604
+ hidden: "hidden";
3340
3605
  direct: "direct";
3606
+ discovery: "discovery";
3341
3607
  }>;
3608
+ enabled: _$zod.ZodBoolean;
3609
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3610
+ discovery: "discovery";
3611
+ toolset: "toolset";
3612
+ }>>;
3613
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3614
+ exposed: _$zod.ZodBoolean;
3342
3615
  }, _$zod_v4_core0.$strip>>;
3343
3616
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
3344
3617
  fullName: _$zod.ZodString;
@@ -3348,8 +3621,8 @@ declare const SessionSchemas: {
3348
3621
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3349
3622
  exposureMode: _$zod.ZodEnum<{
3350
3623
  hidden: "hidden";
3351
- discovery: "discovery";
3352
3624
  direct: "direct";
3625
+ discovery: "discovery";
3353
3626
  }>;
3354
3627
  enabled: _$zod.ZodBoolean;
3355
3628
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3537,25 +3810,6 @@ declare const SessionSchemas: {
3537
3810
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
3538
3811
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
3539
3812
  sessionId: _$zod.ZodString;
3540
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
3541
- fullName: _$zod.ZodString;
3542
- originalName: _$zod.ZodString;
3543
- serverName: _$zod.ZodString;
3544
- description: _$zod.ZodOptional<_$zod.ZodString>;
3545
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3546
- exposureMode: _$zod.ZodEnum<{
3547
- hidden: "hidden";
3548
- discovery: "discovery";
3549
- direct: "direct";
3550
- }>;
3551
- enabled: _$zod.ZodBoolean;
3552
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3553
- discovery: "discovery";
3554
- toolset: "toolset";
3555
- }>>;
3556
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3557
- exposed: _$zod.ZodBoolean;
3558
- }, _$zod_v4_core0.$strip>>;
3559
3813
  servers: _$zod.ZodArray<_$zod.ZodObject<{
3560
3814
  name: _$zod.ZodString;
3561
3815
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -3592,9 +3846,28 @@ declare const SessionSchemas: {
3592
3846
  type: _$zod.ZodLiteral<"http">;
3593
3847
  }, _$zod_v4_core0.$strip>], "type">;
3594
3848
  exposureMode: _$zod.ZodEnum<{
3849
+ direct: "direct";
3595
3850
  discovery: "discovery";
3851
+ }>;
3852
+ }, _$zod_v4_core0.$strip>>;
3853
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
3854
+ fullName: _$zod.ZodString;
3855
+ originalName: _$zod.ZodString;
3856
+ serverName: _$zod.ZodString;
3857
+ description: _$zod.ZodOptional<_$zod.ZodString>;
3858
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3859
+ exposureMode: _$zod.ZodEnum<{
3860
+ hidden: "hidden";
3596
3861
  direct: "direct";
3862
+ discovery: "discovery";
3597
3863
  }>;
3864
+ enabled: _$zod.ZodBoolean;
3865
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3866
+ discovery: "discovery";
3867
+ toolset: "toolset";
3868
+ }>>;
3869
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3870
+ exposed: _$zod.ZodBoolean;
3598
3871
  }, _$zod_v4_core0.$strip>>;
3599
3872
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
3600
3873
  fullName: _$zod.ZodString;
@@ -3604,8 +3877,8 @@ declare const SessionSchemas: {
3604
3877
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3605
3878
  exposureMode: _$zod.ZodEnum<{
3606
3879
  hidden: "hidden";
3607
- discovery: "discovery";
3608
3880
  direct: "direct";
3881
+ discovery: "discovery";
3609
3882
  }>;
3610
3883
  enabled: _$zod.ZodBoolean;
3611
3884
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3640,25 +3913,6 @@ declare const SessionSchemas: {
3640
3913
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
3641
3914
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
3642
3915
  sessionId: _$zod.ZodString;
3643
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
3644
- fullName: _$zod.ZodString;
3645
- originalName: _$zod.ZodString;
3646
- serverName: _$zod.ZodString;
3647
- description: _$zod.ZodOptional<_$zod.ZodString>;
3648
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3649
- exposureMode: _$zod.ZodEnum<{
3650
- hidden: "hidden";
3651
- discovery: "discovery";
3652
- direct: "direct";
3653
- }>;
3654
- enabled: _$zod.ZodBoolean;
3655
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3656
- discovery: "discovery";
3657
- toolset: "toolset";
3658
- }>>;
3659
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3660
- exposed: _$zod.ZodBoolean;
3661
- }, _$zod_v4_core0.$strip>>;
3662
3916
  servers: _$zod.ZodArray<_$zod.ZodObject<{
3663
3917
  name: _$zod.ZodString;
3664
3918
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -3695,9 +3949,28 @@ declare const SessionSchemas: {
3695
3949
  type: _$zod.ZodLiteral<"http">;
3696
3950
  }, _$zod_v4_core0.$strip>], "type">;
3697
3951
  exposureMode: _$zod.ZodEnum<{
3952
+ direct: "direct";
3698
3953
  discovery: "discovery";
3954
+ }>;
3955
+ }, _$zod_v4_core0.$strip>>;
3956
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
3957
+ fullName: _$zod.ZodString;
3958
+ originalName: _$zod.ZodString;
3959
+ serverName: _$zod.ZodString;
3960
+ description: _$zod.ZodOptional<_$zod.ZodString>;
3961
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3962
+ exposureMode: _$zod.ZodEnum<{
3963
+ hidden: "hidden";
3699
3964
  direct: "direct";
3965
+ discovery: "discovery";
3700
3966
  }>;
3967
+ enabled: _$zod.ZodBoolean;
3968
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3969
+ discovery: "discovery";
3970
+ toolset: "toolset";
3971
+ }>>;
3972
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3973
+ exposed: _$zod.ZodBoolean;
3701
3974
  }, _$zod_v4_core0.$strip>>;
3702
3975
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
3703
3976
  fullName: _$zod.ZodString;
@@ -3707,8 +3980,8 @@ declare const SessionSchemas: {
3707
3980
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3708
3981
  exposureMode: _$zod.ZodEnum<{
3709
3982
  hidden: "hidden";
3710
- discovery: "discovery";
3711
3983
  direct: "direct";
3984
+ discovery: "discovery";
3712
3985
  }>;
3713
3986
  enabled: _$zod.ZodBoolean;
3714
3987
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3743,25 +4016,6 @@ declare const SessionSchemas: {
3743
4016
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
3744
4017
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
3745
4018
  sessionId: _$zod.ZodString;
3746
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
3747
- fullName: _$zod.ZodString;
3748
- originalName: _$zod.ZodString;
3749
- serverName: _$zod.ZodString;
3750
- description: _$zod.ZodOptional<_$zod.ZodString>;
3751
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3752
- exposureMode: _$zod.ZodEnum<{
3753
- hidden: "hidden";
3754
- discovery: "discovery";
3755
- direct: "direct";
3756
- }>;
3757
- enabled: _$zod.ZodBoolean;
3758
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
3759
- discovery: "discovery";
3760
- toolset: "toolset";
3761
- }>>;
3762
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
3763
- exposed: _$zod.ZodBoolean;
3764
- }, _$zod_v4_core0.$strip>>;
3765
4019
  servers: _$zod.ZodArray<_$zod.ZodObject<{
3766
4020
  name: _$zod.ZodString;
3767
4021
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -3798,9 +4052,28 @@ declare const SessionSchemas: {
3798
4052
  type: _$zod.ZodLiteral<"http">;
3799
4053
  }, _$zod_v4_core0.$strip>], "type">;
3800
4054
  exposureMode: _$zod.ZodEnum<{
4055
+ direct: "direct";
3801
4056
  discovery: "discovery";
4057
+ }>;
4058
+ }, _$zod_v4_core0.$strip>>;
4059
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
4060
+ fullName: _$zod.ZodString;
4061
+ originalName: _$zod.ZodString;
4062
+ serverName: _$zod.ZodString;
4063
+ description: _$zod.ZodOptional<_$zod.ZodString>;
4064
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4065
+ exposureMode: _$zod.ZodEnum<{
4066
+ hidden: "hidden";
3802
4067
  direct: "direct";
4068
+ discovery: "discovery";
3803
4069
  }>;
4070
+ enabled: _$zod.ZodBoolean;
4071
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
4072
+ discovery: "discovery";
4073
+ toolset: "toolset";
4074
+ }>>;
4075
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
4076
+ exposed: _$zod.ZodBoolean;
3804
4077
  }, _$zod_v4_core0.$strip>>;
3805
4078
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
3806
4079
  fullName: _$zod.ZodString;
@@ -3810,8 +4083,8 @@ declare const SessionSchemas: {
3810
4083
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
3811
4084
  exposureMode: _$zod.ZodEnum<{
3812
4085
  hidden: "hidden";
3813
- discovery: "discovery";
3814
4086
  direct: "direct";
4087
+ discovery: "discovery";
3815
4088
  }>;
3816
4089
  enabled: _$zod.ZodBoolean;
3817
4090
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -3910,87 +4183,330 @@ declare const SessionSchemas: {
3910
4183
  mimeType: _$zod.ZodOptional<_$zod.ZodString>;
3911
4184
  }, _$zod_v4_core0.$strip>], "type">;
3912
4185
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3913
- type: _$zod.ZodLiteral<"document">;
3914
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3915
- type: _$zod.ZodLiteral<"base64">;
3916
- data: _$zod.ZodString;
3917
- mimeType: _$zod.ZodString;
3918
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3919
- type: _$zod.ZodLiteral<"url">;
3920
- url: _$zod.ZodString;
3921
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
3922
- }, _$zod_v4_core0.$strip>], "type">;
4186
+ type: _$zod.ZodLiteral<"document">;
4187
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4188
+ type: _$zod.ZodLiteral<"base64">;
4189
+ data: _$zod.ZodString;
4190
+ mimeType: _$zod.ZodString;
4191
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4192
+ type: _$zod.ZodLiteral<"url">;
4193
+ url: _$zod.ZodString;
4194
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4195
+ }, _$zod_v4_core0.$strip>], "type">;
4196
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4197
+ type: _$zod.ZodLiteral<"attachment">;
4198
+ fileName: _$zod.ZodString;
4199
+ filePath: _$zod.ZodString;
4200
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4201
+ type: _$zod.ZodLiteral<"base64">;
4202
+ data: _$zod.ZodString;
4203
+ mimeType: _$zod.ZodString;
4204
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4205
+ type: _$zod.ZodLiteral<"url">;
4206
+ url: _$zod.ZodString;
4207
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4208
+ }, _$zod_v4_core0.$strip>], "type">;
4209
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
4210
+ attachmentType: _$zod.ZodEnum<{
4211
+ file: "file";
4212
+ directory: "directory";
4213
+ }>;
4214
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4215
+ type: _$zod.ZodLiteral<"reasoning">;
4216
+ content: _$zod.ZodString;
4217
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
4218
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4219
+ type: _$zod.ZodLiteral<"tool_call">;
4220
+ toolCallId: _$zod.ZodString;
4221
+ name: _$zod.ZodString;
4222
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4223
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4224
+ type: _$zod.ZodLiteral<"tool_output">;
4225
+ toolCallId: _$zod.ZodString;
4226
+ output: _$zod.ZodString;
4227
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
4228
+ }, _$zod_v4_core0.$strip>], "type">>]>;
4229
+ }, _$zod_v4_core0.$strip>>>;
4230
+ hasNewTransforms: _$zod.ZodOptional<_$zod.ZodBoolean>;
4231
+ hasCompression: _$zod.ZodOptional<_$zod.ZodBoolean>;
4232
+ extractedContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
4233
+ isFirstTurn: _$zod.ZodOptional<_$zod.ZodBoolean>;
4234
+ hasConnectorSwap: _$zod.ZodOptional<_$zod.ZodBoolean>;
4235
+ turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
4236
+ }, _$zod_v4_core0.$strip>>;
4237
+ responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
4238
+ schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
4239
+ name: _$zod.ZodOptional<_$zod.ZodString>;
4240
+ strict: _$zod.ZodOptional<_$zod.ZodBoolean>;
4241
+ }, _$zod_v4_core0.$strict>>;
4242
+ source: _$zod.ZodOptional<_$zod.ZodEnum<{
4243
+ user: "user";
4244
+ system: "system";
4245
+ extension: "extension";
4246
+ }>>;
4247
+ extensionId: _$zod.ZodOptional<_$zod.ZodString>;
4248
+ originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
4249
+ skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
4250
+ origin: _$zod.ZodOptional<_$zod.ZodEnum<{
4251
+ text: "text";
4252
+ voice: "voice";
4253
+ compact: "compact";
4254
+ }>>;
4255
+ }, _$zod_v4_core0.$strip>;
4256
+ response: _$zod.ZodObject<{
4257
+ messageId: _$zod.ZodString;
4258
+ turnId: _$zod.ZodString;
4259
+ sessionId: _$zod.ZodString;
4260
+ }, _$zod_v4_core0.$strip>;
4261
+ };
4262
+ 'agent.attach': {
4263
+ request: _$zod.ZodObject<{
4264
+ sessionId: _$zod.ZodString;
4265
+ agent: _$zod.ZodObject<{
4266
+ kind: _$zod.ZodString;
4267
+ providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
4268
+ model: _$zod.ZodOptional<_$zod.ZodString>;
4269
+ reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
4270
+ none: "none";
4271
+ low: "low";
4272
+ medium: "medium";
4273
+ high: "high";
4274
+ "extra-high": "extra-high";
4275
+ }>>;
4276
+ cwd: _$zod.ZodOptional<_$zod.ZodString>;
4277
+ systemPrompt: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
4278
+ mode: _$zod.ZodLiteral<"append">;
4279
+ content: _$zod.ZodString;
4280
+ }, _$zod_v4_core0.$strip>]>>;
4281
+ allowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4282
+ disallowedTools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4283
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4284
+ mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
4285
+ sessionId: _$zod.ZodString;
4286
+ servers: _$zod.ZodArray<_$zod.ZodObject<{
4287
+ name: _$zod.ZodString;
4288
+ transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4289
+ type: _$zod.ZodLiteral<"stdio">;
4290
+ command: _$zod.ZodString;
4291
+ args: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4292
+ env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4293
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
4294
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4295
+ url: _$zod.ZodString;
4296
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4297
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
4298
+ name: _$zod.ZodString;
4299
+ permission_policy: _$zod.ZodEnum<{
4300
+ always_allow: "always_allow";
4301
+ always_ask: "always_ask";
4302
+ always_deny: "always_deny";
4303
+ }>;
4304
+ }, _$zod_v4_core0.$strip>>>;
4305
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
4306
+ type: _$zod.ZodLiteral<"sse">;
4307
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4308
+ url: _$zod.ZodString;
4309
+ headers: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4310
+ tools: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
4311
+ name: _$zod.ZodString;
4312
+ permission_policy: _$zod.ZodEnum<{
4313
+ always_allow: "always_allow";
4314
+ always_ask: "always_ask";
4315
+ always_deny: "always_deny";
4316
+ }>;
4317
+ }, _$zod_v4_core0.$strip>>>;
4318
+ alwaysLoad: _$zod.ZodOptional<_$zod.ZodBoolean>;
4319
+ type: _$zod.ZodLiteral<"http">;
4320
+ }, _$zod_v4_core0.$strip>], "type">;
4321
+ exposureMode: _$zod.ZodEnum<{
4322
+ direct: "direct";
4323
+ discovery: "discovery";
4324
+ }>;
4325
+ }, _$zod_v4_core0.$strip>>;
4326
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
4327
+ fullName: _$zod.ZodString;
4328
+ originalName: _$zod.ZodString;
4329
+ serverName: _$zod.ZodString;
4330
+ description: _$zod.ZodOptional<_$zod.ZodString>;
4331
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4332
+ exposureMode: _$zod.ZodEnum<{
4333
+ hidden: "hidden";
4334
+ direct: "direct";
4335
+ discovery: "discovery";
4336
+ }>;
4337
+ enabled: _$zod.ZodBoolean;
4338
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
4339
+ discovery: "discovery";
4340
+ toolset: "toolset";
4341
+ }>>;
4342
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
4343
+ exposed: _$zod.ZodBoolean;
4344
+ }, _$zod_v4_core0.$strip>>;
4345
+ discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
4346
+ fullName: _$zod.ZodString;
4347
+ originalName: _$zod.ZodString;
4348
+ serverName: _$zod.ZodString;
4349
+ description: _$zod.ZodOptional<_$zod.ZodString>;
4350
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4351
+ exposureMode: _$zod.ZodEnum<{
4352
+ hidden: "hidden";
4353
+ direct: "direct";
4354
+ discovery: "discovery";
4355
+ }>;
4356
+ enabled: _$zod.ZodBoolean;
4357
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
4358
+ discovery: "discovery";
4359
+ toolset: "toolset";
4360
+ }>>;
4361
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
4362
+ exposed: _$zod.ZodBoolean;
4363
+ }, _$zod_v4_core0.$strip>>;
4364
+ }, _$zod_v4_core0.$strip>>;
4365
+ allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4366
+ adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4367
+ }, _$zod_v4_core0.$loose>;
4368
+ initialMessage: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
4369
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
4370
+ user: "user";
4371
+ assistant: "assistant";
4372
+ system: "system";
4373
+ }>>;
4374
+ blocks: _$zod.ZodUnion<readonly [_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4375
+ type: _$zod.ZodLiteral<"text">;
4376
+ content: _$zod.ZodString;
4377
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4378
+ type: _$zod.ZodLiteral<"image">;
4379
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4380
+ type: _$zod.ZodLiteral<"base64">;
4381
+ data: _$zod.ZodString;
4382
+ mimeType: _$zod.ZodString;
4383
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4384
+ type: _$zod.ZodLiteral<"url">;
4385
+ url: _$zod.ZodString;
4386
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4387
+ }, _$zod_v4_core0.$strip>], "type">;
4388
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4389
+ type: _$zod.ZodLiteral<"document">;
4390
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4391
+ type: _$zod.ZodLiteral<"base64">;
4392
+ data: _$zod.ZodString;
4393
+ mimeType: _$zod.ZodString;
4394
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4395
+ type: _$zod.ZodLiteral<"url">;
4396
+ url: _$zod.ZodString;
4397
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4398
+ }, _$zod_v4_core0.$strip>], "type">;
4399
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4400
+ type: _$zod.ZodLiteral<"attachment">;
4401
+ fileName: _$zod.ZodString;
4402
+ filePath: _$zod.ZodString;
4403
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4404
+ type: _$zod.ZodLiteral<"base64">;
4405
+ data: _$zod.ZodString;
4406
+ mimeType: _$zod.ZodString;
3923
4407
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3924
- type: _$zod.ZodLiteral<"attachment">;
3925
- fileName: _$zod.ZodString;
3926
- filePath: _$zod.ZodString;
3927
- source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
3928
- type: _$zod.ZodLiteral<"base64">;
3929
- data: _$zod.ZodString;
3930
- mimeType: _$zod.ZodString;
3931
- }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3932
- type: _$zod.ZodLiteral<"url">;
3933
- url: _$zod.ZodString;
3934
- mimeType: _$zod.ZodOptional<_$zod.ZodString>;
3935
- }, _$zod_v4_core0.$strip>], "type">;
3936
- displayName: _$zod.ZodOptional<_$zod.ZodString>;
3937
- attachmentType: _$zod.ZodEnum<{
3938
- file: "file";
3939
- directory: "directory";
3940
- }>;
4408
+ type: _$zod.ZodLiteral<"url">;
4409
+ url: _$zod.ZodString;
4410
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4411
+ }, _$zod_v4_core0.$strip>], "type">;
4412
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
4413
+ attachmentType: _$zod.ZodEnum<{
4414
+ file: "file";
4415
+ directory: "directory";
4416
+ }>;
4417
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4418
+ type: _$zod.ZodLiteral<"reasoning">;
4419
+ content: _$zod.ZodString;
4420
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
4421
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4422
+ type: _$zod.ZodLiteral<"tool_call">;
4423
+ toolCallId: _$zod.ZodString;
4424
+ name: _$zod.ZodString;
4425
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4426
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4427
+ type: _$zod.ZodLiteral<"tool_output">;
4428
+ toolCallId: _$zod.ZodString;
4429
+ output: _$zod.ZodString;
4430
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
4431
+ }, _$zod_v4_core0.$strip>], "type">, _$zod.ZodArray<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4432
+ type: _$zod.ZodLiteral<"text">;
4433
+ content: _$zod.ZodString;
4434
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4435
+ type: _$zod.ZodLiteral<"image">;
4436
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4437
+ type: _$zod.ZodLiteral<"base64">;
4438
+ data: _$zod.ZodString;
4439
+ mimeType: _$zod.ZodString;
3941
4440
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3942
- type: _$zod.ZodLiteral<"reasoning">;
3943
- content: _$zod.ZodString;
3944
- metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
4441
+ type: _$zod.ZodLiteral<"url">;
4442
+ url: _$zod.ZodString;
4443
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4444
+ }, _$zod_v4_core0.$strip>], "type">;
4445
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4446
+ type: _$zod.ZodLiteral<"document">;
4447
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4448
+ type: _$zod.ZodLiteral<"base64">;
4449
+ data: _$zod.ZodString;
4450
+ mimeType: _$zod.ZodString;
3945
4451
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3946
- type: _$zod.ZodLiteral<"tool_call">;
3947
- toolCallId: _$zod.ZodString;
3948
- name: _$zod.ZodString;
3949
- args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4452
+ type: _$zod.ZodLiteral<"url">;
4453
+ url: _$zod.ZodString;
4454
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4455
+ }, _$zod_v4_core0.$strip>], "type">;
4456
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4457
+ type: _$zod.ZodLiteral<"attachment">;
4458
+ fileName: _$zod.ZodString;
4459
+ filePath: _$zod.ZodString;
4460
+ source: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
4461
+ type: _$zod.ZodLiteral<"base64">;
4462
+ data: _$zod.ZodString;
4463
+ mimeType: _$zod.ZodString;
3950
4464
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
3951
- type: _$zod.ZodLiteral<"tool_output">;
3952
- toolCallId: _$zod.ZodString;
3953
- output: _$zod.ZodString;
3954
- isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
3955
- }, _$zod_v4_core0.$strip>], "type">>]>;
3956
- }, _$zod_v4_core0.$strip>>>;
3957
- hasNewTransforms: _$zod.ZodOptional<_$zod.ZodBoolean>;
3958
- hasCompression: _$zod.ZodOptional<_$zod.ZodBoolean>;
3959
- extractedContext: _$zod.ZodOptional<_$zod.ZodUnknown>;
3960
- isFirstTurn: _$zod.ZodOptional<_$zod.ZodBoolean>;
3961
- hasConnectorSwap: _$zod.ZodOptional<_$zod.ZodBoolean>;
3962
- turnContext: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodType<_$_makaio_contracts0.JsonValue, unknown, _$zod_v4_core0.$ZodTypeInternals<_$_makaio_contracts0.JsonValue, unknown>>>>;
3963
- }, _$zod_v4_core0.$strip>>;
3964
- responseSchema: _$zod.ZodOptional<_$zod.ZodObject<{
3965
- schema: _$zod.ZodType<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>, _$zod_v4_core0.$ZodTypeInternals<Record<string, _$_makaio_contracts0.JsonValue>, Record<string, _$_makaio_contracts0.JsonValue>>>;
3966
- name: _$zod.ZodOptional<_$zod.ZodString>;
3967
- strict: _$zod.ZodOptional<_$zod.ZodBoolean>;
3968
- }, _$zod_v4_core0.$strict>>;
3969
- source: _$zod.ZodOptional<_$zod.ZodEnum<{
3970
- user: "user";
3971
- system: "system";
3972
- extension: "extension";
3973
- }>>;
3974
- extensionId: _$zod.ZodOptional<_$zod.ZodString>;
3975
- originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
3976
- skipConnectorSwapWarning: _$zod.ZodOptional<_$zod.ZodBoolean>;
3977
- origin: _$zod.ZodOptional<_$zod.ZodEnum<{
3978
- text: "text";
3979
- voice: "voice";
3980
- compact: "compact";
4465
+ type: _$zod.ZodLiteral<"url">;
4466
+ url: _$zod.ZodString;
4467
+ mimeType: _$zod.ZodOptional<_$zod.ZodString>;
4468
+ }, _$zod_v4_core0.$strip>], "type">;
4469
+ displayName: _$zod.ZodOptional<_$zod.ZodString>;
4470
+ attachmentType: _$zod.ZodEnum<{
4471
+ file: "file";
4472
+ directory: "directory";
4473
+ }>;
4474
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4475
+ type: _$zod.ZodLiteral<"reasoning">;
4476
+ content: _$zod.ZodString;
4477
+ metadata: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
4478
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4479
+ type: _$zod.ZodLiteral<"tool_call">;
4480
+ toolCallId: _$zod.ZodString;
4481
+ name: _$zod.ZodString;
4482
+ args: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4483
+ }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
4484
+ type: _$zod.ZodLiteral<"tool_output">;
4485
+ toolCallId: _$zod.ZodString;
4486
+ output: _$zod.ZodString;
4487
+ isError: _$zod.ZodOptional<_$zod.ZodBoolean>;
4488
+ }, _$zod_v4_core0.$strip>], "type">>]>;
4489
+ }, _$zod_v4_core0.$strip>]>>;
4490
+ role: _$zod.ZodOptional<_$zod.ZodEnum<{
4491
+ lead: "lead";
4492
+ member: "member";
3981
4493
  }>>;
3982
4494
  }, _$zod_v4_core0.$strip>;
3983
4495
  response: _$zod.ZodObject<{
3984
- messageId: _$zod.ZodString;
3985
- turnId: _$zod.ZodString;
3986
- sessionId: _$zod.ZodString;
4496
+ agentId: _$zod.ZodString;
4497
+ adapterSessionId: _$zod.ZodString;
4498
+ role: _$zod.ZodEnum<{
4499
+ lead: "lead";
4500
+ member: "member";
4501
+ }>;
4502
+ messageId: _$zod.ZodOptional<_$zod.ZodString>;
4503
+ turnId: _$zod.ZodOptional<_$zod.ZodString>;
3987
4504
  }, _$zod_v4_core0.$strip>;
3988
4505
  };
3989
- 'agent.attach': {
4506
+ 'agent.attachResolved': _$_makaio_core0.LocalSubjectSchema<{
3990
4507
  request: _$zod.ZodObject<{
3991
4508
  sessionId: _$zod.ZodString;
3992
4509
  agent: _$zod.ZodObject<{
3993
- kind: _$zod.ZodString;
3994
4510
  providerConfigId: _$zod.ZodOptional<_$zod.ZodString>;
3995
4511
  model: _$zod.ZodOptional<_$zod.ZodString>;
3996
4512
  reasoningEffort: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4010,25 +4526,6 @@ declare const SessionSchemas: {
4010
4526
  env: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4011
4527
  mcpSessionContext: _$zod.ZodOptional<_$zod.ZodObject<{
4012
4528
  sessionId: _$zod.ZodString;
4013
- directTools: _$zod.ZodArray<_$zod.ZodObject<{
4014
- fullName: _$zod.ZodString;
4015
- originalName: _$zod.ZodString;
4016
- serverName: _$zod.ZodString;
4017
- description: _$zod.ZodOptional<_$zod.ZodString>;
4018
- inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4019
- exposureMode: _$zod.ZodEnum<{
4020
- hidden: "hidden";
4021
- discovery: "discovery";
4022
- direct: "direct";
4023
- }>;
4024
- enabled: _$zod.ZodBoolean;
4025
- enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
4026
- discovery: "discovery";
4027
- toolset: "toolset";
4028
- }>>;
4029
- enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
4030
- exposed: _$zod.ZodBoolean;
4031
- }, _$zod_v4_core0.$strip>>;
4032
4529
  servers: _$zod.ZodArray<_$zod.ZodObject<{
4033
4530
  name: _$zod.ZodString;
4034
4531
  transport: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
@@ -4065,9 +4562,28 @@ declare const SessionSchemas: {
4065
4562
  type: _$zod.ZodLiteral<"http">;
4066
4563
  }, _$zod_v4_core0.$strip>], "type">;
4067
4564
  exposureMode: _$zod.ZodEnum<{
4565
+ direct: "direct";
4068
4566
  discovery: "discovery";
4567
+ }>;
4568
+ }, _$zod_v4_core0.$strip>>;
4569
+ directTools: _$zod.ZodArray<_$zod.ZodObject<{
4570
+ fullName: _$zod.ZodString;
4571
+ originalName: _$zod.ZodString;
4572
+ serverName: _$zod.ZodString;
4573
+ description: _$zod.ZodOptional<_$zod.ZodString>;
4574
+ inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4575
+ exposureMode: _$zod.ZodEnum<{
4576
+ hidden: "hidden";
4069
4577
  direct: "direct";
4578
+ discovery: "discovery";
4070
4579
  }>;
4580
+ enabled: _$zod.ZodBoolean;
4581
+ enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
4582
+ discovery: "discovery";
4583
+ toolset: "toolset";
4584
+ }>>;
4585
+ enabledAt: _$zod.ZodOptional<_$zod.ZodNumber>;
4586
+ exposed: _$zod.ZodBoolean;
4071
4587
  }, _$zod_v4_core0.$strip>>;
4072
4588
  discoverableTools: _$zod.ZodArray<_$zod.ZodObject<{
4073
4589
  fullName: _$zod.ZodString;
@@ -4077,8 +4593,8 @@ declare const SessionSchemas: {
4077
4593
  inputSchema: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
4078
4594
  exposureMode: _$zod.ZodEnum<{
4079
4595
  hidden: "hidden";
4080
- discovery: "discovery";
4081
4596
  direct: "direct";
4597
+ discovery: "discovery";
4082
4598
  }>;
4083
4599
  enabled: _$zod.ZodBoolean;
4084
4600
  enabledBy: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4091,6 +4607,20 @@ declare const SessionSchemas: {
4091
4607
  }, _$zod_v4_core0.$strip>>;
4092
4608
  allowedDirectories: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4093
4609
  adapterConfig: _$zod.ZodOptional<_$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>;
4610
+ kind: _$zod.ZodLiteral<"adapter">;
4611
+ adapterName: _$zod.ZodOptional<_$zod.ZodString>;
4612
+ adapterId: _$zod.ZodOptional<_$zod.ZodString>;
4613
+ providerContext: _$zod.ZodOptional<_$zod.ZodObject<{
4614
+ providerConfigId: _$zod.ZodString;
4615
+ definitionId: _$zod.ZodString;
4616
+ endpointOverrides: _$zod.ZodOptional<_$zod.ZodObject<{
4617
+ anthropic: _$zod.ZodOptional<_$zod.ZodString>;
4618
+ openai: _$zod.ZodOptional<_$zod.ZodString>;
4619
+ }, _$zod_v4_core0.$strip>>;
4620
+ credentialRefs: _$zod.ZodRecord<_$zod.ZodString, _$zod_v4_core0.$ZodBranded<_$zod.ZodString, "CredentialRef", "out">>;
4621
+ credentialEnvVars: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodString>>;
4622
+ ambientCredentialEnvVars: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
4623
+ }, _$zod_v4_core0.$strip>>;
4094
4624
  }, _$zod_v4_core0.$loose>;
4095
4625
  initialMessage: _$zod.ZodOptional<_$zod.ZodUnion<readonly [_$zod.ZodString, _$zod.ZodObject<{
4096
4626
  role: _$zod.ZodOptional<_$zod.ZodEnum<{
@@ -4229,7 +4759,7 @@ declare const SessionSchemas: {
4229
4759
  messageId: _$zod.ZodOptional<_$zod.ZodString>;
4230
4760
  turnId: _$zod.ZodOptional<_$zod.ZodString>;
4231
4761
  }, _$zod_v4_core0.$strip>;
4232
- };
4762
+ }>;
4233
4763
  'turn.started': _$zod.ZodObject<{
4234
4764
  sessionId: _$zod.ZodString;
4235
4765
  turnId: _$zod.ZodString;
@@ -4734,8 +5264,8 @@ declare const SessionSchemas: {
4734
5264
  member: "member";
4735
5265
  }>;
4736
5266
  status: _$zod.ZodEnum<{
4737
- active: "active";
4738
5267
  idle: "idle";
5268
+ active: "active";
4739
5269
  dead: "dead";
4740
5270
  disposed: "disposed";
4741
5271
  }>;
@@ -4743,10 +5273,10 @@ declare const SessionSchemas: {
4743
5273
  lastActivityAt: _$zod.ZodNumber;
4744
5274
  }, _$zod_v4_core0.$strip>>;
4745
5275
  status: _$zod.ZodEnum<{
5276
+ closed: "closed";
4746
5277
  active: "active";
4747
5278
  archived: "archived";
4748
5279
  discovered: "discovered";
4749
- closed: "closed";
4750
5280
  }>;
4751
5281
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
4752
5282
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -4844,8 +5374,8 @@ declare const SessionSchemas: {
4844
5374
  member: "member";
4845
5375
  }>;
4846
5376
  status: _$zod.ZodEnum<{
4847
- active: "active";
4848
5377
  idle: "idle";
5378
+ active: "active";
4849
5379
  dead: "dead";
4850
5380
  disposed: "disposed";
4851
5381
  }>;
@@ -5315,8 +5845,8 @@ declare const SessionSchemas: {
5315
5845
  member: "member";
5316
5846
  }>;
5317
5847
  status: _$zod.ZodEnum<{
5318
- active: "active";
5319
5848
  idle: "idle";
5849
+ active: "active";
5320
5850
  dead: "dead";
5321
5851
  disposed: "disposed";
5322
5852
  }>;
@@ -5324,10 +5854,10 @@ declare const SessionSchemas: {
5324
5854
  lastActivityAt: _$zod.ZodNumber;
5325
5855
  }, _$zod_v4_core0.$strip>>;
5326
5856
  status: _$zod.ZodEnum<{
5857
+ closed: "closed";
5327
5858
  active: "active";
5328
5859
  archived: "archived";
5329
5860
  discovered: "discovered";
5330
- closed: "closed";
5331
5861
  }>;
5332
5862
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
5333
5863
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -5425,8 +5955,8 @@ declare const SessionSchemas: {
5425
5955
  member: "member";
5426
5956
  }>;
5427
5957
  status: _$zod.ZodEnum<{
5428
- active: "active";
5429
5958
  idle: "idle";
5959
+ active: "active";
5430
5960
  dead: "dead";
5431
5961
  disposed: "disposed";
5432
5962
  }>;
@@ -5946,8 +6476,8 @@ declare const SessionSchemas: {
5946
6476
  maxTokens: _$zod.ZodNumber;
5947
6477
  percentage: _$zod.ZodNumber;
5948
6478
  level: _$zod.ZodEnum<{
5949
- warn: "warn";
5950
6479
  ok: "ok";
6480
+ warn: "warn";
5951
6481
  critical: "critical";
5952
6482
  }>;
5953
6483
  lastUpdatedAt: _$zod.ZodNumber;
@@ -6281,10 +6811,10 @@ declare const SessionSchemas: {
6281
6811
  request: _$zod.ZodObject<{
6282
6812
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
6283
6813
  all: "all";
6814
+ closed: "closed";
6284
6815
  active: "active";
6285
6816
  archived: "archived";
6286
6817
  discovered: "discovered";
6287
- closed: "closed";
6288
6818
  }>>;
6289
6819
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
6290
6820
  offset: _$zod.ZodOptional<_$zod.ZodNumber>;
@@ -6320,8 +6850,8 @@ declare const SessionSchemas: {
6320
6850
  member: "member";
6321
6851
  }>;
6322
6852
  status: _$zod.ZodEnum<{
6323
- active: "active";
6324
6853
  idle: "idle";
6854
+ active: "active";
6325
6855
  dead: "dead";
6326
6856
  disposed: "disposed";
6327
6857
  }>;
@@ -6329,10 +6859,10 @@ declare const SessionSchemas: {
6329
6859
  lastActivityAt: _$zod.ZodNumber;
6330
6860
  }, _$zod_v4_core0.$strip>>;
6331
6861
  status: _$zod.ZodEnum<{
6862
+ closed: "closed";
6332
6863
  active: "active";
6333
6864
  archived: "archived";
6334
6865
  discovered: "discovered";
6335
- closed: "closed";
6336
6866
  }>;
6337
6867
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
6338
6868
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6419,10 +6949,10 @@ declare const SessionSchemas: {
6419
6949
  limit: _$zod.ZodOptional<_$zod.ZodNumber>;
6420
6950
  status: _$zod.ZodOptional<_$zod.ZodEnum<{
6421
6951
  all: "all";
6952
+ closed: "closed";
6422
6953
  active: "active";
6423
6954
  archived: "archived";
6424
6955
  discovered: "discovered";
6425
- closed: "closed";
6426
6956
  }>>;
6427
6957
  isImported: _$zod.ZodOptional<_$zod.ZodBoolean>;
6428
6958
  }, _$zod_v4_core0.$strip>;
@@ -6455,8 +6985,8 @@ declare const SessionSchemas: {
6455
6985
  member: "member";
6456
6986
  }>;
6457
6987
  status: _$zod.ZodEnum<{
6458
- active: "active";
6459
6988
  idle: "idle";
6989
+ active: "active";
6460
6990
  dead: "dead";
6461
6991
  disposed: "disposed";
6462
6992
  }>;
@@ -6464,10 +6994,10 @@ declare const SessionSchemas: {
6464
6994
  lastActivityAt: _$zod.ZodNumber;
6465
6995
  }, _$zod_v4_core0.$strip>>;
6466
6996
  status: _$zod.ZodEnum<{
6997
+ closed: "closed";
6467
6998
  active: "active";
6468
6999
  archived: "archived";
6469
7000
  discovered: "discovered";
6470
- closed: "closed";
6471
7001
  }>;
6472
7002
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
6473
7003
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6581,8 +7111,8 @@ declare const SessionSchemas: {
6581
7111
  member: "member";
6582
7112
  }>;
6583
7113
  status: _$zod.ZodEnum<{
6584
- active: "active";
6585
7114
  idle: "idle";
7115
+ active: "active";
6586
7116
  dead: "dead";
6587
7117
  disposed: "disposed";
6588
7118
  }>;
@@ -6590,10 +7120,10 @@ declare const SessionSchemas: {
6590
7120
  lastActivityAt: _$zod.ZodNumber;
6591
7121
  }, _$zod_v4_core0.$strip>>;
6592
7122
  status: _$zod.ZodEnum<{
7123
+ closed: "closed";
6593
7124
  active: "active";
6594
7125
  archived: "archived";
6595
7126
  discovered: "discovered";
6596
- closed: "closed";
6597
7127
  }>;
6598
7128
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
6599
7129
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
@@ -6817,8 +7347,8 @@ declare const SessionSchemas: {
6817
7347
  member: "member";
6818
7348
  }>;
6819
7349
  status: _$zod.ZodEnum<{
6820
- active: "active";
6821
7350
  idle: "idle";
7351
+ active: "active";
6822
7352
  dead: "dead";
6823
7353
  disposed: "disposed";
6824
7354
  }>;
@@ -6826,10 +7356,10 @@ declare const SessionSchemas: {
6826
7356
  lastActivityAt: _$zod.ZodNumber;
6827
7357
  }, _$zod_v4_core0.$strip>>;
6828
7358
  status: _$zod.ZodEnum<{
7359
+ closed: "closed";
6829
7360
  active: "active";
6830
7361
  archived: "archived";
6831
7362
  discovered: "discovered";
6832
- closed: "closed";
6833
7363
  }>;
6834
7364
  leadAgentId: _$zod.ZodOptional<_$zod.ZodString>;
6835
7365
  parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;