@makaio/framework 1.0.0-dev-1782480236258 → 1.0.0-dev-1783355411417

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 (154) hide show
  1. package/dist/.makaio-build.json +2 -2
  2. package/dist/adapter-BRxCc72E.mjs +1 -0
  3. package/dist/adapters/index.d.mts +11 -2
  4. package/dist/adapters/index.mjs +1 -1
  5. package/dist/adapters/node.d.mts +1 -1
  6. package/dist/{base-orchestrator-Cw0vpNgB.d.mts → base-orchestrator-BNysGvaM.d.mts} +70 -2
  7. package/dist/bus/index.d.mts +39 -1
  8. package/dist/bus/index.mjs +1 -1
  9. package/dist/bus-D-ioC0DE.mjs +1 -0
  10. package/dist/bus-rgUFuO2a.mjs +2 -0
  11. package/dist/{client-BcfR-LJC.mjs → client-BgUjVbXX.mjs} +1 -1
  12. package/dist/contracts/adapter/index.d.mts +1 -1
  13. package/dist/contracts/adapter/index.mjs +1 -1
  14. package/dist/contracts/adapter/schemas/session-lineage.d.mts +1 -1
  15. package/dist/contracts/artifact/index.d.mts +1 -1
  16. package/dist/contracts/client/index.d.mts +1 -1
  17. package/dist/contracts/client/index.mjs +1 -1
  18. package/dist/contracts/config/index.d.mts +6 -6
  19. package/dist/contracts/extension/index.d.mts +2 -2
  20. package/dist/contracts/facet/index.d.mts +1 -1
  21. package/dist/contracts/index.d.mts +14 -14
  22. package/dist/contracts/index.mjs +1 -1
  23. package/dist/contracts/materialization/index.d.mts +3 -3
  24. package/dist/contracts/provider/index.d.mts +1 -1
  25. package/dist/contracts/session/index.d.mts +3 -3
  26. package/dist/contracts/session/index.mjs +1 -1
  27. package/dist/contracts/workflow/index.d.mts +2 -2
  28. package/dist/contracts/workflow/index.mjs +1 -1
  29. package/dist/{definition-DePb3ke-.d.mts → definition-b9jyJqPD.d.mts} +1 -1
  30. package/dist/drizzle/0021_m_mr8e1j84.sql +3 -0
  31. package/dist/drizzle/0022_m_mr8i4ky3.sql +43 -0
  32. package/dist/drizzle/meta/_journal.json +14 -0
  33. package/dist/{handler-2bPhRn0u.mjs → handler-BFNvtv5t.mjs} +1 -1
  34. package/dist/handlers-v47Gbsr1.mjs +57 -0
  35. package/dist/hooks/index.d.mts +8 -0
  36. package/dist/hooks/index.mjs +1 -1
  37. package/dist/{index-BhOLtp0B.d.mts → index-31vR1sxk.d.mts} +47 -29
  38. package/dist/{index-Clqt7Nm3.d.mts → index-3J0HZlPH.d.mts} +372 -87
  39. package/dist/{index-D4gn93gL.d.mts → index-3X0368CL.d.mts} +12 -12
  40. package/dist/{index-gAFwNiJT.d.mts → index-BYfSAJRC.d.mts} +64 -0
  41. package/dist/{index-B1XsbrAr.d.mts → index-BwGfdbI0.d.mts} +6 -6
  42. package/dist/{index-D8ScOpus.d.mts → index-C5C1tk9f.d.mts} +222 -9
  43. package/dist/{index-Cvjnj7Zh.d.mts → index-C6Ys8pxt.d.mts} +5 -5
  44. package/dist/{index-mU2lnU7O.d.mts → index-CqCe7Phc.d.mts} +6 -6
  45. package/dist/{index-Cyi7y_aG.d.mts → index-D6aAzr32.d.mts} +20 -20
  46. package/dist/{index-wfSedMR9.d.mts → index-D7rWAEY0.d.mts} +2 -1
  47. package/dist/{index-CYHWOXUm.d.mts → index-DEzdNQum.d.mts} +1 -1
  48. package/dist/{index-DsLpP5ek.d.mts → index-DQYj8-53.d.mts} +1 -1
  49. package/dist/{index-0WhPbKnH.d.mts → index-DV4nRk0h.d.mts} +21 -21
  50. package/dist/{index-C6SLILCZ.d.mts → index-DvHYpi-J.d.mts} +378 -176
  51. package/dist/{index-BMbmoarE.d.mts → index-O08Q2ikz.d.mts} +8 -8
  52. package/dist/kernel/extension/index.d.mts +1 -1
  53. package/dist/kernel/index.d.mts +2 -2
  54. package/dist/kernel/observability/index.d.mts +1 -1
  55. package/dist/{lib-Ba55od_d.mjs → lib-BOmKyjWD.mjs} +1 -1
  56. package/dist/{lib-CM_BUxN8.mjs → lib-DLZYp5z3.mjs} +1 -1
  57. package/dist/{loop-gate-handlers-BLoGCWMQ.mjs → loop-gate-handlers-Bjmat-K3.mjs} +1 -1
  58. package/dist/{namespace-CGxFYDlK.d.mts → namespace-B4cV_pk3.d.mts} +32 -32
  59. package/dist/{namespace-LUNf8zo5.d.mts → namespace-D1_9WVCo.d.mts} +157 -0
  60. package/dist/{namespace-BsYKEMd8.d.mts → namespace-DAj_riOn.d.mts} +138 -0
  61. package/dist/{namespace-BeMGmLrp.d.mts → namespace-DhDY0juT.d.mts} +75 -9
  62. package/dist/{namespace-Bmi5bjm4.d.mts → namespace-DmqoDDRD.d.mts} +156 -20
  63. package/dist/namespace-dFBD2ZmS.mjs +1 -0
  64. package/dist/node/transports/index.d.mts +8 -0
  65. package/dist/node/transports/index.mjs +2 -2
  66. package/dist/orchestrator-shared-ChygCvR1.mjs +1 -0
  67. package/dist/{orchestrator-shared-ChOdIgh6.d.mts → orchestrator-shared-DFLb1otg.d.mts} +9 -3
  68. package/dist/package-BmRhhi-3.mjs +1 -0
  69. package/dist/package.json +1 -1
  70. package/dist/runtime-node/index.mjs +1 -1
  71. package/dist/schema-7aKBGB7S.mjs +1 -0
  72. package/dist/{schema-DHlTAy0N.mjs → schema-CHp6I33k.mjs} +1 -1
  73. package/dist/{schema-Bf_ZNjif.d.mts → schema-DLNBajAV.d.mts} +23 -1
  74. package/dist/{schemas-D512XweP.d.mts → schemas-DMMWmWjq.d.mts} +4 -4
  75. package/dist/schemas-DZGnr9Tl.mjs +1 -0
  76. package/dist/{schemas-C6TVJ80V2.d.mts → schemas-DuuVuhHX2.d.mts} +2 -2
  77. package/dist/schemas-ftgVeWIG.mjs +1 -0
  78. package/dist/scoped-bus-CZId-Df8.mjs +1 -0
  79. package/dist/services/adapter-subsystem/index.d.mts +2 -2
  80. package/dist/services/adapter-subsystem/namespace.d.mts +1 -1
  81. package/dist/services/execution-target/index.d.mts +1 -1
  82. package/dist/services/filesystem/namespace.d.mts +6 -6
  83. package/dist/services/filesystem/schemas.d.mts +3 -3
  84. package/dist/services/harness/index.d.mts +1 -1
  85. package/dist/services/harness/index.mjs +1 -1
  86. package/dist/services/index.d.mts +103 -34
  87. package/dist/services/index.mjs +1 -1
  88. package/dist/services/log-import/browser.d.mts +2 -2
  89. package/dist/services/log-import/index.d.mts +73 -6
  90. package/dist/services/log-import/index.mjs +2 -2
  91. package/dist/services/log-import/log-import.d.mts +1 -1
  92. package/dist/services/log-import/log-import.mjs +1 -1
  93. package/dist/services/log-import/namespace.d.mts +56 -2
  94. package/dist/services/log-import/namespace.mjs +1 -1
  95. package/dist/services/log-import/schemas.d.mts +45 -1
  96. package/dist/services/log-import/schemas.mjs +1 -1
  97. package/dist/services/session/handlers/index.d.mts +1 -1
  98. package/dist/services/session/handlers/index.mjs +1 -1
  99. package/dist/services/session/index.d.mts +8 -8
  100. package/dist/services/session/index.mjs +1 -1
  101. package/dist/services/session/messages/namespace.mjs +1 -1
  102. package/dist/services/session/orchestrator-testing/index.d.mts +1 -1
  103. package/dist/services/session/orchestrator-testing/index.mjs +1 -1
  104. package/dist/services/session/session-events/namespace.d.mts +1 -1
  105. package/dist/services/session/session-events/namespace.mjs +1 -1
  106. package/dist/services/session/storage/namespace.d.mts +1 -1
  107. package/dist/services/session/storage/schema.d.mts +1 -1
  108. package/dist/services/session/storage/schema.mjs +1 -1
  109. package/dist/services/session/testing/index.mjs +9 -4
  110. package/dist/services/session/testing/orchestrator-shared.d.mts +1 -1
  111. package/dist/services/session/testing/orchestrator-shared.mjs +1 -1
  112. package/dist/services/session/turns/namespace.d.mts +1 -1
  113. package/dist/services/session/turns/namespace.mjs +1 -1
  114. package/dist/services/settings/namespace.d.mts +5 -5
  115. package/dist/services/settings/storage/extension-configs/namespace.d.mts +3 -3
  116. package/dist/services/subagent-template/index.d.mts +1 -1
  117. package/dist/services/subagent-template/schemas.d.mts +1 -1
  118. package/dist/services/tool-approval/index.mjs +1 -1
  119. package/dist/services/tools/index.mjs +1 -1
  120. package/dist/services/turn/index.d.mts +1 -1
  121. package/dist/services/turn/namespace.d.mts +1 -1
  122. package/dist/services/turn/schemas.d.mts +89 -0
  123. package/dist/services/turn/schemas.mjs +1 -1
  124. package/dist/session-CKWfn3oc.mjs +1 -0
  125. package/dist/session-DCbJwYEU.mjs +69 -0
  126. package/dist/{session-lineage-5-wRBzuC.d.mts → session-lineage-DR-9DU-U.d.mts} +1 -1
  127. package/dist/storage/drizzle/index.d.mts +1 -1
  128. package/dist/storage/drizzle/index.mjs +1 -1
  129. package/dist/{tool-approval-service-DEQiipxj.mjs → tool-approval-service-MU_DmJsf.mjs} +1 -1
  130. package/dist/tools-BrNm-een.mjs +1 -0
  131. package/dist/{transition-CBjccCMw.d.mts → transition-Dq41YCkc.d.mts} +1 -1
  132. package/dist/{types-InWSdi-V.d.mts → types-BMlzmWp6.d.mts} +11 -1
  133. package/dist/{types-8rhArs_K.d.mts → types-C76EP81O.d.mts} +136 -93
  134. package/dist/ui-components/index.mjs +1 -1
  135. package/dist/{workflow-BqH6ar-D.mjs → workflow-C1z7I5CI.mjs} +1 -1
  136. package/dist/workflow-engine/index.d.mts +12 -12
  137. package/dist/workflow-engine/index.mjs +1 -1
  138. package/dist/workflow-engine/package.mjs +1 -1
  139. package/dist/workflow-engine/workflow-orchestrator.mjs +1 -1
  140. package/package.json +1 -1
  141. package/dist/adapter-DaQqmKOJ.mjs +0 -1
  142. package/dist/bus-BgodbPl9.mjs +0 -2
  143. package/dist/bus-HgaFcCZ1.mjs +0 -1
  144. package/dist/handlers-BAycjV02.mjs +0 -41
  145. package/dist/namespace-C-piH3w4.mjs +0 -1
  146. package/dist/orchestrator-shared-Cxk3x8Vs.mjs +0 -1
  147. package/dist/package-B1AXe-oz.mjs +0 -1
  148. package/dist/schema-D6WAI8OL.mjs +0 -1
  149. package/dist/schemas-ArqQTC0Q.mjs +0 -1
  150. package/dist/schemas-uID59wR8.mjs +0 -1
  151. package/dist/scoped-bus-H3xMYR0E.mjs +0 -1
  152. package/dist/session-0nWT4st6.mjs +0 -39
  153. package/dist/session-DH-ja8Ka.mjs +0 -1
  154. package/dist/tools-DFOsOboy.mjs +0 -1
@@ -8,11 +8,11 @@ import * as _$zod_v4_core0 from "zod/v4/core";
8
8
 
9
9
  //#region core/contracts/src/session/schemas/crud.d.ts
10
10
  /**
11
- * Caller-facing fields shared by `session.create` and `session.registerExternal`.
11
+ * Caller-facing fields of `session.create`.
12
12
  *
13
- * Extracted so that both subjects stay in sync changes here are automatically
14
- * reflected in both schemas. Both subjects apply {@link refineSpawningToolCallId}
15
- * over this shape for the `spawningToolCallId` invariant.
13
+ * Kept as a named base shape so subjects that create sessions share one
14
+ * contract; {@link refineSpawningToolCallId} enforces the
15
+ * `spawningToolCallId` invariant over this shape.
16
16
  */
17
17
  declare const SessionCreateBaseSchema: z.ZodObject<{
18
18
  sessionId: z.ZodOptional<z.ZodString>;
@@ -23,10 +23,10 @@ declare const SessionCreateBaseSchema: z.ZodObject<{
23
23
  }>>;
24
24
  forkPointMessageId: z.ZodOptional<z.ZodString>;
25
25
  branchKind: z.ZodOptional<z.ZodEnum<{
26
- branch: "branch";
27
26
  fork: "fork";
28
27
  subagent: "subagent";
29
28
  compress: "compress";
29
+ branch: "branch";
30
30
  rewrite: "rewrite";
31
31
  coordinator: "coordinator";
32
32
  aside: "aside";
@@ -176,10 +176,10 @@ declare const MakaioSessionSchema: z.ZodObject<{
176
176
  rootSessionId: z.ZodOptional<z.ZodString>;
177
177
  forkPointMessageId: z.ZodOptional<z.ZodString>;
178
178
  branchKind: z.ZodOptional<z.ZodEnum<{
179
- branch: "branch";
180
179
  fork: "fork";
181
180
  subagent: "subagent";
182
181
  compress: "compress";
182
+ branch: "branch";
183
183
  rewrite: "rewrite";
184
184
  coordinator: "coordinator";
185
185
  aside: "aside";
@@ -239,6 +239,7 @@ declare const MakaioSessionSchema: z.ZodObject<{
239
239
  imported: "imported";
240
240
  tracking: "tracking";
241
241
  }>>;
242
+ isSidechain: z.ZodOptional<z.ZodBoolean>;
242
243
  }, z.core.$strip>;
243
244
  /**
244
245
  * Preview data for session list display.
@@ -302,10 +303,10 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
302
303
  rootSessionId: z.ZodOptional<z.ZodString>;
303
304
  forkPointMessageId: z.ZodOptional<z.ZodString>;
304
305
  branchKind: z.ZodOptional<z.ZodEnum<{
305
- branch: "branch";
306
306
  fork: "fork";
307
307
  subagent: "subagent";
308
308
  compress: "compress";
309
+ branch: "branch";
309
310
  rewrite: "rewrite";
310
311
  coordinator: "coordinator";
311
312
  aside: "aside";
@@ -365,6 +366,7 @@ declare const SessionWithPreviewSchema: z.ZodObject<{
365
366
  imported: "imported";
366
367
  tracking: "tracking";
367
368
  }>>;
369
+ isSidechain: z.ZodOptional<z.ZodBoolean>;
368
370
  preview: z.ZodOptional<z.ZodObject<{
369
371
  messageCount: z.ZodNumber;
370
372
  firstUserMessage: z.ZodNullable<z.ZodString>;
@@ -502,10 +504,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
502
504
  rootSessionId: z.ZodOptional<z.ZodString>;
503
505
  forkPointMessageId: z.ZodOptional<z.ZodString>;
504
506
  branchKind: z.ZodOptional<z.ZodEnum<{
505
- branch: "branch";
506
507
  fork: "fork";
507
508
  subagent: "subagent";
508
509
  compress: "compress";
510
+ branch: "branch";
509
511
  rewrite: "rewrite";
510
512
  coordinator: "coordinator";
511
513
  aside: "aside";
@@ -565,6 +567,7 @@ declare const SessionSnapshotSchema: z.ZodObject<{
565
567
  imported: "imported";
566
568
  tracking: "tracking";
567
569
  }>>;
570
+ isSidechain: z.ZodOptional<z.ZodBoolean>;
568
571
  }, z.core.$strip>>;
569
572
  agents: z.ZodArray<z.ZodObject<{
570
573
  agentId: z.ZodString;
@@ -925,6 +928,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
925
928
  }>;
926
929
  sourceId: z.ZodOptional<z.ZodString>;
927
930
  }, z.core.$strip>>;
931
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
932
+ live: "live";
933
+ backfill: "backfill";
934
+ }>>;
928
935
  }, z.core.$strip>;
929
936
  }, z.core.$strip>, z.ZodObject<{
930
937
  sessionId: z.ZodString;
@@ -957,6 +964,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
957
964
  }>;
958
965
  sourceId: z.ZodOptional<z.ZodString>;
959
966
  }, z.core.$strip>>;
967
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
968
+ live: "live";
969
+ backfill: "backfill";
970
+ }>>;
960
971
  }, z.core.$strip>;
961
972
  }, z.core.$strip>, z.ZodObject<{
962
973
  sessionId: z.ZodString;
@@ -980,10 +991,10 @@ declare const SessionSnapshotSchema: z.ZodObject<{
980
991
  childSessionId: z.ZodString;
981
992
  parentSessionId: z.ZodString;
982
993
  kind: z.ZodEnum<{
983
- branch: "branch";
984
994
  fork: "fork";
985
995
  subagent: "subagent";
986
996
  compress: "compress";
997
+ branch: "branch";
987
998
  rewrite: "rewrite";
988
999
  coordinator: "coordinator";
989
1000
  aside: "aside";
@@ -1064,10 +1075,10 @@ type AgentRole = z.infer<typeof AgentRoleSchema>;
1064
1075
  * by session boundary (child sessions are never in parent's context assembly)
1065
1076
  */
1066
1077
  declare const BranchKindSchema: z.ZodEnum<{
1067
- branch: "branch";
1068
1078
  fork: "fork";
1069
1079
  subagent: "subagent";
1070
1080
  compress: "compress";
1081
+ branch: "branch";
1071
1082
  rewrite: "rewrite";
1072
1083
  coordinator: "coordinator";
1073
1084
  aside: "aside";
@@ -1166,7 +1177,7 @@ declare const SessionMessageOriginSchema: z.ZodEnum<{
1166
1177
  voice: "voice";
1167
1178
  compact: "compact";
1168
1179
  }>;
1169
- type SessionMessageOrigin = z.infer<typeof SessionMessageOriginSchema>;
1180
+ type SessionMessageOrigin$1 = z.infer<typeof SessionMessageOriginSchema>;
1170
1181
  /**
1171
1182
  * A stored message in a session conversation.
1172
1183
  *
@@ -1293,7 +1304,7 @@ declare const TurnUsageSchema$1: z.ZodObject<{
1293
1304
  cost: z.ZodOptional<z.ZodNumber>;
1294
1305
  }, z.core.$strip>>>;
1295
1306
  }, z.core.$strip>;
1296
- type TurnUsage = z.infer<typeof TurnUsageSchema$1>;
1307
+ type TurnUsage$1 = z.infer<typeof TurnUsageSchema$1>;
1297
1308
  /**
1298
1309
  * Identifies the origin of a turn for loop prevention and audit.
1299
1310
  *
@@ -1378,6 +1389,30 @@ type MessageRouting = z.infer<typeof MessageRoutingSchema$1>;
1378
1389
  //#region core/contracts/src/session/schemas/orchestrator.d.ts
1379
1390
  /** Parsed type for {@link TurnInitiatorSchema}. */
1380
1391
  type TurnInitiator$1 = z.infer<typeof TurnInitiatorSchema$1>;
1392
+ /**
1393
+ * How a `session.turn.*` event entered the system.
1394
+ *
1395
+ * - `'live'` — the turn is ingested as it happens: managed orchestration
1396
+ * (session.sendMessage driving the turn) or a hook-triggered import of the
1397
+ * turn that just finished in an observed client.
1398
+ * - `'backfill'` — the turn is replayed from history: watcher discovery of an
1399
+ * existing transcript or an on-demand import of past sessions.
1400
+ *
1401
+ * This is an **emission property, not a session property**. The same observed
1402
+ * session can be live-followed today and backfilled for yesterday, so the
1403
+ * marker describes each individual emission and must never be persisted on the
1404
+ * turns table. Session classification lives on the session row instead
1405
+ * (`source` / `adapterName` / `adapterSessionId`).
1406
+ *
1407
+ * Orthogonal to {@link TurnInitiatorSchema}, which encodes actor provenance
1408
+ * (user | extension | system) of whoever started the turn.
1409
+ */
1410
+ declare const TurnIngestionMarkerSchema$1: z.ZodEnum<{
1411
+ live: "live";
1412
+ backfill: "backfill";
1413
+ }>;
1414
+ /** Parsed type for {@link TurnIngestionMarkerSchema}. */
1415
+ type TurnIngestionMarker$1 = z.infer<typeof TurnIngestionMarkerSchema$1>;
1381
1416
  /**
1382
1417
  * Orchestrator schemas for turn lifecycle and user message routing.
1383
1418
  *
@@ -2590,6 +2625,10 @@ declare const OrchestratorSchemas: {
2590
2625
  }>;
2591
2626
  sourceId: z.ZodOptional<z.ZodString>;
2592
2627
  }, z.core.$strip>>;
2628
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
2629
+ live: "live";
2630
+ backfill: "backfill";
2631
+ }>>;
2593
2632
  }, z.core.$strip>;
2594
2633
  /**
2595
2634
  * Turn completed.
@@ -2631,6 +2670,10 @@ declare const OrchestratorSchemas: {
2631
2670
  }>;
2632
2671
  sourceId: z.ZodOptional<z.ZodString>;
2633
2672
  }, z.core.$strip>>;
2673
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
2674
+ live: "live";
2675
+ backfill: "backfill";
2676
+ }>>;
2634
2677
  }, z.core.$strip>;
2635
2678
  /**
2636
2679
  * Await completion of a specific session turn.
@@ -2677,6 +2720,10 @@ declare const OrchestratorSchemas: {
2677
2720
  }>;
2678
2721
  sourceId: z.ZodOptional<z.ZodString>;
2679
2722
  }, z.core.$strip>>;
2723
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
2724
+ live: "live";
2725
+ backfill: "backfill";
2726
+ }>>;
2680
2727
  }, z.core.$strip>;
2681
2728
  }, z.core.$strip>;
2682
2729
  };
@@ -2897,8 +2944,8 @@ declare const OrchestratorSchemas: {
2897
2944
  fromMessageId: z.ZodOptional<z.ZodString>;
2898
2945
  name: z.ZodOptional<z.ZodString>;
2899
2946
  branchKind: z.ZodOptional<z.ZodEnum<{
2900
- branch: "branch";
2901
2947
  fork: "fork";
2948
+ branch: "branch";
2902
2949
  aside: "aside";
2903
2950
  }>>;
2904
2951
  transforms: z.ZodOptional<z.ZodObject<{
@@ -2932,6 +2979,8 @@ declare const OrchestratorSchemas: {
2932
2979
  };
2933
2980
  type SendMessageRequest = z.infer<typeof OrchestratorSchemas.sendMessage.request>;
2934
2981
  type SendMessageResponse = z.infer<typeof OrchestratorSchemas.sendMessage.response>;
2982
+ type TurnStarted = z.infer<(typeof OrchestratorSchemas)['turn.started']>;
2983
+ type TurnCompleted = z.infer<(typeof OrchestratorSchemas)['turn.completed']>;
2935
2984
  //#endregion
2936
2985
  //#region core/contracts/src/session/schemas/event.d.ts
2937
2986
  /**
@@ -3168,6 +3217,10 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
3168
3217
  }>;
3169
3218
  sourceId: z.ZodOptional<z.ZodString>;
3170
3219
  }, z.core.$strip>>;
3220
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
3221
+ live: "live";
3222
+ backfill: "backfill";
3223
+ }>>;
3171
3224
  }, z.core.$strip>;
3172
3225
  }, z.core.$strip>, z.ZodObject<{
3173
3226
  sessionId: z.ZodString;
@@ -3200,6 +3253,10 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
3200
3253
  }>;
3201
3254
  sourceId: z.ZodOptional<z.ZodString>;
3202
3255
  }, z.core.$strip>>;
3256
+ ingestionMarker: z.ZodOptional<z.ZodEnum<{
3257
+ live: "live";
3258
+ backfill: "backfill";
3259
+ }>>;
3203
3260
  }, z.core.$strip>;
3204
3261
  }, z.core.$strip>, z.ZodObject<{
3205
3262
  sessionId: z.ZodString;
@@ -3223,10 +3280,10 @@ declare const MakaioSessionEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedU
3223
3280
  childSessionId: z.ZodString;
3224
3281
  parentSessionId: z.ZodString;
3225
3282
  kind: z.ZodEnum<{
3226
- branch: "branch";
3227
3283
  fork: "fork";
3228
3284
  subagent: "subagent";
3229
3285
  compress: "compress";
3286
+ branch: "branch";
3230
3287
  rewrite: "rewrite";
3231
3288
  coordinator: "coordinator";
3232
3289
  aside: "aside";
@@ -3320,9 +3377,11 @@ interface SessionEventTypeMap {
3320
3377
  'turn.started': {
3321
3378
  sessionId: string;
3322
3379
  turnId: string;
3380
+ turnNumber: number;
3323
3381
  messageId: string;
3324
3382
  agentIds: string[];
3325
3383
  initiator?: TurnInitiator$1;
3384
+ ingestionMarker?: TurnIngestionMarker$1;
3326
3385
  };
3327
3386
  /**
3328
3387
  * Turn completed event.
@@ -3333,8 +3392,9 @@ interface SessionEventTypeMap {
3333
3392
  turnNumber: number;
3334
3393
  success: boolean;
3335
3394
  error?: string;
3336
- usage?: TurnUsage;
3395
+ usage?: TurnUsage$1;
3337
3396
  initiator?: TurnInitiator$1;
3397
+ ingestionMarker?: TurnIngestionMarker$1;
3338
3398
  };
3339
3399
  /**
3340
3400
  * User message sent to session.
@@ -3392,7 +3452,7 @@ interface SessionEventTypeMap {
3392
3452
  * Runtime validation uses {@link SessionEventTypeSchema} (accepts any string).
3393
3453
  * Compile-time typing is derived from {@link SessionEventTypeMap} keys.
3394
3454
  */
3395
- type SessionEventType = keyof SessionEventTypeMap;
3455
+ type SessionEventType$1 = keyof SessionEventTypeMap;
3396
3456
  /**
3397
3457
  * Get the payload type for a specific session event type.
3398
3458
  * @typeParam T - The event type key
@@ -3402,7 +3462,7 @@ type SessionEventType = keyof SessionEventTypeMap;
3402
3462
  * // { messageId: string; turnId: string | null; role: 'user' | 'assistant' }
3403
3463
  * ```
3404
3464
  */
3405
- type SessionEventPayload<T extends SessionEventType> = SessionEventTypeMap[T];
3465
+ type SessionEventPayload<T extends SessionEventType$1> = SessionEventTypeMap[T];
3406
3466
  //#endregion
3407
3467
  //#region core/contracts/src/session/schemas/fork-child-info.d.ts
3408
3468
  /**
@@ -3414,10 +3474,10 @@ declare const ForkChildInfoSchema: z.ZodObject<{
3414
3474
  title: z.ZodNullable<z.ZodString>;
3415
3475
  forkPointMessageId: z.ZodNullable<z.ZodString>;
3416
3476
  branchKind: z.ZodNullable<z.ZodEnum<{
3417
- branch: "branch";
3418
3477
  fork: "fork";
3419
3478
  subagent: "subagent";
3420
3479
  compress: "compress";
3480
+ branch: "branch";
3421
3481
  rewrite: "rewrite";
3422
3482
  coordinator: "coordinator";
3423
3483
  aside: "aside";
@@ -3488,10 +3548,10 @@ declare const SessionCreatedEventSchema: z.ZodObject<{
3488
3548
  sessionId: z.ZodString;
3489
3549
  parentSessionId: z.ZodNullable<z.ZodString>;
3490
3550
  branchKind: z.ZodNullable<z.ZodEnum<{
3491
- branch: "branch";
3492
3551
  fork: "fork";
3493
3552
  subagent: "subagent";
3494
3553
  compress: "compress";
3554
+ branch: "branch";
3495
3555
  rewrite: "rewrite";
3496
3556
  coordinator: "coordinator";
3497
3557
  aside: "aside";
@@ -4795,6 +4855,10 @@ declare const SessionSchemas: {
4795
4855
  }>;
4796
4856
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
4797
4857
  }, _$zod_v4_core0.$strip>>;
4858
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
4859
+ live: "live";
4860
+ backfill: "backfill";
4861
+ }>>;
4798
4862
  }, _$zod_v4_core0.$strip>;
4799
4863
  'turn.completed': _$zod.ZodObject<{
4800
4864
  sessionId: _$zod.ZodString;
@@ -4822,6 +4886,10 @@ declare const SessionSchemas: {
4822
4886
  }>;
4823
4887
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
4824
4888
  }, _$zod_v4_core0.$strip>>;
4889
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
4890
+ live: "live";
4891
+ backfill: "backfill";
4892
+ }>>;
4825
4893
  }, _$zod_v4_core0.$strip>;
4826
4894
  'turn.await': {
4827
4895
  request: _$zod.ZodObject<{
@@ -4856,6 +4924,10 @@ declare const SessionSchemas: {
4856
4924
  }>;
4857
4925
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
4858
4926
  }, _$zod_v4_core0.$strip>>;
4927
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
4928
+ live: "live";
4929
+ backfill: "backfill";
4930
+ }>>;
4859
4931
  }, _$zod_v4_core0.$strip>;
4860
4932
  }, _$zod_v4_core0.$strip>;
4861
4933
  };
@@ -5029,8 +5101,8 @@ declare const SessionSchemas: {
5029
5101
  fromMessageId: _$zod.ZodOptional<_$zod.ZodString>;
5030
5102
  name: _$zod.ZodOptional<_$zod.ZodString>;
5031
5103
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
5032
- branch: "branch";
5033
5104
  fork: "fork";
5105
+ branch: "branch";
5034
5106
  aside: "aside";
5035
5107
  }>>;
5036
5108
  transforms: _$zod.ZodOptional<_$zod.ZodObject<{
@@ -5103,10 +5175,10 @@ declare const SessionSchemas: {
5103
5175
  title: _$zod.ZodNullable<_$zod.ZodString>;
5104
5176
  forkPointMessageId: _$zod.ZodNullable<_$zod.ZodString>;
5105
5177
  branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
5106
- branch: "branch";
5107
5178
  fork: "fork";
5108
5179
  subagent: "subagent";
5109
5180
  compress: "compress";
5181
+ branch: "branch";
5110
5182
  rewrite: "rewrite";
5111
5183
  coordinator: "coordinator";
5112
5184
  aside: "aside";
@@ -5160,10 +5232,10 @@ declare const SessionSchemas: {
5160
5232
  childSessionId: _$zod.ZodString;
5161
5233
  parentSessionId: _$zod.ZodString;
5162
5234
  kind: _$zod.ZodEnum<{
5163
- branch: "branch";
5164
5235
  fork: "fork";
5165
5236
  subagent: "subagent";
5166
5237
  compress: "compress";
5238
+ branch: "branch";
5167
5239
  rewrite: "rewrite";
5168
5240
  coordinator: "coordinator";
5169
5241
  aside: "aside";
@@ -5208,10 +5280,10 @@ declare const SessionSchemas: {
5208
5280
  sessionId: _$zod.ZodString;
5209
5281
  parentSessionId: _$zod.ZodNullable<_$zod.ZodString>;
5210
5282
  branchKind: _$zod.ZodNullable<_$zod.ZodEnum<{
5211
- branch: "branch";
5212
5283
  fork: "fork";
5213
5284
  subagent: "subagent";
5214
5285
  compress: "compress";
5286
+ branch: "branch";
5215
5287
  rewrite: "rewrite";
5216
5288
  coordinator: "coordinator";
5217
5289
  aside: "aside";
@@ -5309,10 +5381,10 @@ declare const SessionSchemas: {
5309
5381
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5310
5382
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
5311
5383
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
5312
- branch: "branch";
5313
5384
  fork: "fork";
5314
5385
  subagent: "subagent";
5315
5386
  compress: "compress";
5387
+ branch: "branch";
5316
5388
  rewrite: "rewrite";
5317
5389
  coordinator: "coordinator";
5318
5390
  aside: "aside";
@@ -5372,6 +5444,7 @@ declare const SessionSchemas: {
5372
5444
  imported: "imported";
5373
5445
  tracking: "tracking";
5374
5446
  }>>;
5447
+ isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
5375
5448
  }, _$zod_v4_core0.$strip>>;
5376
5449
  agents: _$zod.ZodArray<_$zod.ZodObject<{
5377
5450
  agentId: _$zod.ZodString;
@@ -5732,6 +5805,10 @@ declare const SessionSchemas: {
5732
5805
  }>;
5733
5806
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
5734
5807
  }, _$zod_v4_core0.$strip>>;
5808
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
5809
+ live: "live";
5810
+ backfill: "backfill";
5811
+ }>>;
5735
5812
  }, _$zod_v4_core0.$strip>;
5736
5813
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5737
5814
  sessionId: _$zod.ZodString;
@@ -5764,6 +5841,10 @@ declare const SessionSchemas: {
5764
5841
  }>;
5765
5842
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
5766
5843
  }, _$zod_v4_core0.$strip>>;
5844
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
5845
+ live: "live";
5846
+ backfill: "backfill";
5847
+ }>>;
5767
5848
  }, _$zod_v4_core0.$strip>;
5768
5849
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
5769
5850
  sessionId: _$zod.ZodString;
@@ -5787,10 +5868,10 @@ declare const SessionSchemas: {
5787
5868
  childSessionId: _$zod.ZodString;
5788
5869
  parentSessionId: _$zod.ZodString;
5789
5870
  kind: _$zod.ZodEnum<{
5790
- branch: "branch";
5791
5871
  fork: "fork";
5792
5872
  subagent: "subagent";
5793
5873
  compress: "compress";
5874
+ branch: "branch";
5794
5875
  rewrite: "rewrite";
5795
5876
  coordinator: "coordinator";
5796
5877
  aside: "aside";
@@ -5891,10 +5972,10 @@ declare const SessionSchemas: {
5891
5972
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
5892
5973
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
5893
5974
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
5894
- branch: "branch";
5895
5975
  fork: "fork";
5896
5976
  subagent: "subagent";
5897
5977
  compress: "compress";
5978
+ branch: "branch";
5898
5979
  rewrite: "rewrite";
5899
5980
  coordinator: "coordinator";
5900
5981
  aside: "aside";
@@ -5954,6 +6035,7 @@ declare const SessionSchemas: {
5954
6035
  imported: "imported";
5955
6036
  tracking: "tracking";
5956
6037
  }>>;
6038
+ isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
5957
6039
  }, _$zod_v4_core0.$strip>>;
5958
6040
  agents: _$zod.ZodArray<_$zod.ZodObject<{
5959
6041
  agentId: _$zod.ZodString;
@@ -6314,6 +6396,10 @@ declare const SessionSchemas: {
6314
6396
  }>;
6315
6397
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
6316
6398
  }, _$zod_v4_core0.$strip>>;
6399
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
6400
+ live: "live";
6401
+ backfill: "backfill";
6402
+ }>>;
6317
6403
  }, _$zod_v4_core0.$strip>;
6318
6404
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6319
6405
  sessionId: _$zod.ZodString;
@@ -6346,6 +6432,10 @@ declare const SessionSchemas: {
6346
6432
  }>;
6347
6433
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
6348
6434
  }, _$zod_v4_core0.$strip>>;
6435
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
6436
+ live: "live";
6437
+ backfill: "backfill";
6438
+ }>>;
6349
6439
  }, _$zod_v4_core0.$strip>;
6350
6440
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6351
6441
  sessionId: _$zod.ZodString;
@@ -6369,10 +6459,10 @@ declare const SessionSchemas: {
6369
6459
  childSessionId: _$zod.ZodString;
6370
6460
  parentSessionId: _$zod.ZodString;
6371
6461
  kind: _$zod.ZodEnum<{
6372
- branch: "branch";
6373
6462
  fork: "fork";
6374
6463
  subagent: "subagent";
6375
6464
  compress: "compress";
6465
+ branch: "branch";
6376
6466
  rewrite: "rewrite";
6377
6467
  coordinator: "coordinator";
6378
6468
  aside: "aside";
@@ -6737,6 +6827,10 @@ declare const SessionSchemas: {
6737
6827
  }>;
6738
6828
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
6739
6829
  }, _$zod_v4_core0.$strip>>;
6830
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
6831
+ live: "live";
6832
+ backfill: "backfill";
6833
+ }>>;
6740
6834
  }, _$zod_v4_core0.$strip>;
6741
6835
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6742
6836
  sessionId: _$zod.ZodString;
@@ -6769,6 +6863,10 @@ declare const SessionSchemas: {
6769
6863
  }>;
6770
6864
  sourceId: _$zod.ZodOptional<_$zod.ZodString>;
6771
6865
  }, _$zod_v4_core0.$strip>>;
6866
+ ingestionMarker: _$zod.ZodOptional<_$zod.ZodEnum<{
6867
+ live: "live";
6868
+ backfill: "backfill";
6869
+ }>>;
6772
6870
  }, _$zod_v4_core0.$strip>;
6773
6871
  }, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
6774
6872
  sessionId: _$zod.ZodString;
@@ -6792,10 +6890,10 @@ declare const SessionSchemas: {
6792
6890
  childSessionId: _$zod.ZodString;
6793
6891
  parentSessionId: _$zod.ZodString;
6794
6892
  kind: _$zod.ZodEnum<{
6795
- branch: "branch";
6796
6893
  fork: "fork";
6797
6894
  subagent: "subagent";
6798
6895
  compress: "compress";
6896
+ branch: "branch";
6799
6897
  rewrite: "rewrite";
6800
6898
  coordinator: "coordinator";
6801
6899
  aside: "aside";
@@ -6897,10 +6995,10 @@ declare const SessionSchemas: {
6897
6995
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
6898
6996
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
6899
6997
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
6900
- branch: "branch";
6901
6998
  fork: "fork";
6902
6999
  subagent: "subagent";
6903
7000
  compress: "compress";
7001
+ branch: "branch";
6904
7002
  rewrite: "rewrite";
6905
7003
  coordinator: "coordinator";
6906
7004
  aside: "aside";
@@ -6960,6 +7058,7 @@ declare const SessionSchemas: {
6960
7058
  imported: "imported";
6961
7059
  tracking: "tracking";
6962
7060
  }>>;
7061
+ isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
6963
7062
  preview: _$zod.ZodOptional<_$zod.ZodObject<{
6964
7063
  messageCount: _$zod.ZodNumber;
6965
7064
  firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
@@ -7033,10 +7132,10 @@ declare const SessionSchemas: {
7033
7132
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7034
7133
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
7035
7134
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
7036
- branch: "branch";
7037
7135
  fork: "fork";
7038
7136
  subagent: "subagent";
7039
7137
  compress: "compress";
7138
+ branch: "branch";
7040
7139
  rewrite: "rewrite";
7041
7140
  coordinator: "coordinator";
7042
7141
  aside: "aside";
@@ -7096,6 +7195,7 @@ declare const SessionSchemas: {
7096
7195
  imported: "imported";
7097
7196
  tracking: "tracking";
7098
7197
  }>>;
7198
+ isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
7099
7199
  preview: _$zod.ZodOptional<_$zod.ZodObject<{
7100
7200
  messageCount: _$zod.ZodNumber;
7101
7201
  firstUserMessage: _$zod.ZodNullable<_$zod.ZodString>;
@@ -7160,10 +7260,10 @@ declare const SessionSchemas: {
7160
7260
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7161
7261
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
7162
7262
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
7163
- branch: "branch";
7164
7263
  fork: "fork";
7165
7264
  subagent: "subagent";
7166
7265
  compress: "compress";
7266
+ branch: "branch";
7167
7267
  rewrite: "rewrite";
7168
7268
  coordinator: "coordinator";
7169
7269
  aside: "aside";
@@ -7223,6 +7323,7 @@ declare const SessionSchemas: {
7223
7323
  imported: "imported";
7224
7324
  tracking: "tracking";
7225
7325
  }>>;
7326
+ isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
7226
7327
  }, _$zod_v4_core0.$strip>>;
7227
7328
  }, _$zod_v4_core0.$strip>;
7228
7329
  };
@@ -7236,10 +7337,10 @@ declare const SessionSchemas: {
7236
7337
  }>>;
7237
7338
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
7238
7339
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
7239
- branch: "branch";
7240
7340
  fork: "fork";
7241
7341
  subagent: "subagent";
7242
7342
  compress: "compress";
7343
+ branch: "branch";
7243
7344
  rewrite: "rewrite";
7244
7345
  coordinator: "coordinator";
7245
7346
  aside: "aside";
@@ -7399,10 +7500,10 @@ declare const SessionSchemas: {
7399
7500
  rootSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7400
7501
  forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
7401
7502
  branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
7402
- branch: "branch";
7403
7503
  fork: "fork";
7404
7504
  subagent: "subagent";
7405
7505
  compress: "compress";
7506
+ branch: "branch";
7406
7507
  rewrite: "rewrite";
7407
7508
  coordinator: "coordinator";
7408
7509
  aside: "aside";
@@ -7462,6 +7563,7 @@ declare const SessionSchemas: {
7462
7563
  imported: "imported";
7463
7564
  tracking: "tracking";
7464
7565
  }>>;
7566
+ isSidechain: _$zod.ZodOptional<_$zod.ZodBoolean>;
7465
7567
  }, _$zod_v4_core0.$strip>>;
7466
7568
  }, _$zod_v4_core0.$strip>;
7467
7569
  };
@@ -7475,65 +7577,6 @@ declare const SessionSchemas: {
7475
7577
  discovered: _$zod.ZodNumber;
7476
7578
  }, _$zod_v4_core0.$strip>;
7477
7579
  };
7478
- registerExternal: {
7479
- request: _$zod.ZodObject<{
7480
- sessionId: _$zod.ZodOptional<_$zod.ZodString>;
7481
- parentSessionId: _$zod.ZodOptional<_$zod.ZodString>;
7482
- contextInheritance: _$zod.ZodOptional<_$zod.ZodEnum<{
7483
- none: "none";
7484
- "parent-history": "parent-history";
7485
- }>>;
7486
- forkPointMessageId: _$zod.ZodOptional<_$zod.ZodString>;
7487
- branchKind: _$zod.ZodOptional<_$zod.ZodEnum<{
7488
- branch: "branch";
7489
- fork: "fork";
7490
- subagent: "subagent";
7491
- compress: "compress";
7492
- rewrite: "rewrite";
7493
- coordinator: "coordinator";
7494
- aside: "aside";
7495
- }>>;
7496
- forkTransforms: _$zod.ZodOptional<_$zod.ZodObject<{
7497
- removedMessageIds: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
7498
- appliedPipeline: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
7499
- actionId: _$zod.ZodString;
7500
- options: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
7501
- }, _$zod_v4_core0.$strip>>>;
7502
- segments: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodObject<{
7503
- fromMessageId: _$zod.ZodString;
7504
- toMessageId: _$zod.ZodString;
7505
- policy: _$zod.ZodEnum<{
7506
- verbatim: "verbatim";
7507
- summarize: "summarize";
7508
- exclude: "exclude";
7509
- }>;
7510
- stripReasoning: _$zod.ZodOptional<_$zod.ZodBoolean>;
7511
- stripToolOutputs: _$zod.ZodOptional<_$zod.ZodBoolean>;
7512
- overrides: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodLiteral<"exclude">>>;
7513
- summaryText: _$zod.ZodOptional<_$zod.ZodString>;
7514
- }, _$zod_v4_core0.$strip>>>;
7515
- }, _$zod_v4_core0.$strip>>;
7516
- title: _$zod.ZodOptional<_$zod.ZodString>;
7517
- targetWorkingDirectory: _$zod.ZodOptional<_$zod.ZodString>;
7518
- executionTargetId: _$zod.ZodOptional<_$zod.ZodString>;
7519
- metadata: _$zod.ZodOptional<_$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>>>>;
7520
- spawningToolCallId: _$zod.ZodOptional<_$zod.ZodString>;
7521
- originWindowId: _$zod.ZodOptional<_$zod.ZodString>;
7522
- adapterName: _$zod.ZodString;
7523
- adapterSessionId: _$zod.ZodString;
7524
- lastClientIdentityObservation: _$zod.ZodOptional<_$zod.ZodObject<{
7525
- clientId: _$zod.ZodString;
7526
- source: _$zod.ZodString;
7527
- kind: _$zod.ZodString;
7528
- observedAt: _$zod.ZodNumber;
7529
- payload: _$zod.ZodType<Record<string, unknown>, Record<string, unknown>, _$zod_v4_core0.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>;
7530
- }, _$zod_v4_core0.$strip>>;
7531
- }, _$zod_v4_core0.$strip>;
7532
- response: _$zod.ZodObject<{
7533
- sessionId: _$zod.ZodString;
7534
- created: _$zod.ZodBoolean;
7535
- }, _$zod_v4_core0.$strip>;
7536
- };
7537
7580
  };
7538
7581
  //#endregion
7539
7582
  //#region core/contracts/src/session/types.d.ts
@@ -7637,4 +7680,4 @@ type KnownSessionEvent = { [K in RuntimeKnownSessionEventType]: SessionEventBase
7637
7680
  */
7638
7681
  declare function isKnownSessionEvent(event: MakaioSessionEvent$1): event is KnownSessionEvent;
7639
7682
  //#endregion
7640
- export { ImportStatus as $, MessageRoutingStatusSchema as A, TurnInitiator$2 as B, SessionEventTypeMap as C, MessageRouting as D, SendMessageResponse as E, SessionMessageOriginSchema as F, TurnUsage as G, TurnSchema$1 as H, SessionMessageRole as I, UsageMetricsSchema as J, TurnUsageSchema$1 as K, SessionMessageRoleSchema as L, SessionMessageBlock$1 as M, SessionMessageBlockSchema as N, MessageRoutingSchema$1 as O, SessionMessageOrigin as P, BranchKindSchema as Q, SessionMessageSchema$1 as R, SessionEventType as S, SendMessageRequest as T, TurnStatus as U, TurnInitiatorSchema$1 as V, TurnStatusSchema$1 as W, AgentRoleSchema as X, AgentRole as Y, BranchKind$1 as Z, ForkChildInfo as _, MakaioSessionAgentSchema$1 as _t, SessionPreviewData as a, SnapshotExportOptionsSchema as at, SESSION_EVENT_TYPES as b, SessionSchemas as c, safeValidateSnapshot as ct, SegmentPolicy as d, SessionPreviewDataSchema as dt, ImportStatusSchema as et, SegmentPolicySchema as f, SessionRecordMetadata as ft, SessionUpdatedEventSchema as g, AgentStatusSchema$1 as gt, SessionUpdatedEvent as h, AgentStatus as ht, MakaioSessionEvent$1 as i, SnapshotExportOptions as it, SessionMessage$1 as j, MessageRoutingStatus as k, ForkTransforms$1 as l, validateSnapshot as lt, SessionCreatedEventSchema as m, SessionWithPreviewSchema as mt, KnownSessionEvent as n, SessionSnapshot as nt, SessionWithPreview as o, SnapshotImportConflictErrorData as ot, SessionCreated as p, SessionRecordMetadataSchema$1 as pt, UsageMetrics as q, MakaioSessionAgent$1 as r, SessionSnapshotSchema as rt, isKnownSessionEvent as s, SnapshotPreviewData as st, IMakaioSession$1 as t, SNAPSHOT_VERSION as tt, ForkTransformsSchema$1 as u, MakaioSessionSchema as ut, ForkChildInfoSchema as v, SessionCreateBase as vt, SessionEventTypeSchema as w, SessionEventPayload as x, MakaioSessionEventSchema as y, SessionCreateBaseSchema as yt, Turn$1 as z };
7683
+ export { AgentRole as $, TurnStarted as A, SessionMessageRole as B, SessionEventTypeMap as C, SessionCreateBaseSchema as Ct, TurnCompleted as D, SendMessageResponse as E, SessionMessage$1 as F, TurnInitiatorSchema$1 as G, SessionMessageSchema$1 as H, SessionMessageBlock$1 as I, TurnStatusSchema$1 as J, TurnSchema$1 as K, SessionMessageBlockSchema as L, MessageRoutingSchema$1 as M, MessageRoutingStatus as N, TurnIngestionMarker$1 as O, MessageRoutingStatusSchema as P, UsageMetricsSchema as Q, SessionMessageOrigin$1 as R, SessionEventType$1 as S, SessionCreateBase as St, SendMessageRequest as T, Turn$1 as U, SessionMessageRoleSchema as V, TurnInitiator$2 as W, TurnUsageSchema$1 as X, TurnUsage$1 as Y, UsageMetrics as Z, ForkChildInfo as _, SessionRecordMetadataSchema$1 as _t, SessionPreviewData as a, SNAPSHOT_VERSION as at, SESSION_EVENT_TYPES as b, AgentStatusSchema$1 as bt, SessionSchemas as c, SnapshotExportOptions as ct, SegmentPolicy as d, SnapshotPreviewData as dt, AgentRoleSchema as et, SegmentPolicySchema as f, safeValidateSnapshot as ft, SessionUpdatedEventSchema as g, SessionRecordMetadata as gt, SessionUpdatedEvent as h, SessionPreviewDataSchema as ht, MakaioSessionEvent$1 as i, ImportStatusSchema as it, MessageRouting as j, TurnIngestionMarkerSchema$1 as k, ForkTransforms$1 as l, SnapshotExportOptionsSchema as lt, SessionCreatedEventSchema as m, MakaioSessionSchema as mt, KnownSessionEvent as n, BranchKindSchema as nt, SessionWithPreview as o, SessionSnapshot as ot, SessionCreated as p, validateSnapshot as pt, TurnStatus as q, MakaioSessionAgent$1 as r, ImportStatus as rt, isKnownSessionEvent as s, SessionSnapshotSchema as st, IMakaioSession$1 as t, BranchKind$1 as tt, ForkTransformsSchema$1 as u, SnapshotImportConflictErrorData as ut, ForkChildInfoSchema as v, SessionWithPreviewSchema as vt, SessionEventTypeSchema as w, SessionEventPayload as x, MakaioSessionAgentSchema$1 as xt, MakaioSessionEventSchema as y, AgentStatus as yt, SessionMessageOriginSchema as z };