@linnlabs/linnkit 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/dist/cli.cjs +113 -5
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +113 -5
  5. package/dist/cli.js.map +1 -1
  6. package/dist/context-manager/profiles/agent/context/config.d.cts +1 -1
  7. package/dist/context-manager/profiles/agent/context/config.d.ts +1 -1
  8. package/dist/context-manager.cjs +37 -4
  9. package/dist/context-manager.cjs.map +1 -1
  10. package/dist/context-manager.js +37 -4
  11. package/dist/context-manager.js.map +1 -1
  12. package/dist/contracts/events.d.cts +4 -0
  13. package/dist/contracts/events.d.ts +4 -0
  14. package/dist/contracts/messages.d.cts +226 -2
  15. package/dist/contracts/messages.d.ts +226 -2
  16. package/dist/contracts/sse.d.cts +65 -1
  17. package/dist/contracts/sse.d.ts +65 -1
  18. package/dist/contracts.cjs +19 -2
  19. package/dist/contracts.cjs.map +1 -1
  20. package/dist/contracts.d.cts +1 -1
  21. package/dist/contracts.d.ts +1 -1
  22. package/dist/contracts.js +19 -3
  23. package/dist/contracts.js.map +1 -1
  24. package/dist/index.cjs +115 -5
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.js +115 -5
  27. package/dist/index.js.map +1 -1
  28. package/dist/quickstart.cjs +113 -5
  29. package/dist/quickstart.cjs.map +1 -1
  30. package/dist/quickstart.js +113 -5
  31. package/dist/quickstart.js.map +1 -1
  32. package/dist/runtime-kernel/events.cjs +29 -2
  33. package/dist/runtime-kernel/events.cjs.map +1 -1
  34. package/dist/runtime-kernel/events.js +29 -2
  35. package/dist/runtime-kernel/events.js.map +1 -1
  36. package/dist/runtime-kernel/graph-engine/definitions/pendingUserInput.d.cts +27 -0
  37. package/dist/runtime-kernel/graph-engine/definitions/pendingUserInput.d.ts +27 -0
  38. package/dist/runtime-kernel/graph-engine/engine.d.cts +2 -1
  39. package/dist/runtime-kernel/graph-engine/engine.d.ts +2 -1
  40. package/dist/runtime-kernel/graph-engine/index.d.cts +1 -0
  41. package/dist/runtime-kernel/graph-engine/index.d.ts +1 -0
  42. package/dist/runtime-kernel/graph-engine/types.d.cts +3 -0
  43. package/dist/runtime-kernel/graph-engine/types.d.ts +3 -0
  44. package/dist/runtime-kernel.cjs +113 -5
  45. package/dist/runtime-kernel.cjs.map +1 -1
  46. package/dist/runtime-kernel.d.cts +1 -0
  47. package/dist/runtime-kernel.d.ts +1 -0
  48. package/dist/runtime-kernel.js +113 -5
  49. package/dist/runtime-kernel.js.map +1 -1
  50. package/dist/testkit/agent-harness/scriptedInferenceHarness.d.cts +24 -6
  51. package/dist/testkit/agent-harness/scriptedInferenceHarness.d.ts +24 -6
  52. package/dist/testkit/scenario/graphScenario.d.cts +89 -0
  53. package/dist/testkit/scenario/graphScenario.d.ts +89 -0
  54. package/dist/testkit/scenario/pendingUserInputQueue.d.cts +26 -0
  55. package/dist/testkit/scenario/pendingUserInputQueue.d.ts +26 -0
  56. package/dist/testkit/scenario/runtimeEventRecorder.d.cts +36 -0
  57. package/dist/testkit/scenario/runtimeEventRecorder.d.ts +36 -0
  58. package/dist/testkit/scenario/scriptedToolRuntime.d.cts +51 -0
  59. package/dist/testkit/scenario/scriptedToolRuntime.d.ts +51 -0
  60. package/dist/testkit/scenario/steeringInvariants.d.cts +33 -0
  61. package/dist/testkit/scenario/steeringInvariants.d.ts +33 -0
  62. package/dist/testkit/scenario/timeline.d.cts +27 -0
  63. package/dist/testkit/scenario/timeline.d.ts +27 -0
  64. package/dist/testkit.cjs +683 -18
  65. package/dist/testkit.cjs.map +1 -1
  66. package/dist/testkit.d.cts +7 -1
  67. package/dist/testkit.d.ts +7 -1
  68. package/dist/testkit.js +675 -19
  69. package/dist/testkit.js.map +1 -1
  70. package/docs/integration/README.md +1 -0
  71. package/docs/integration/mid-run-user-input.md +73 -0
  72. package/docs/integration/realtime.md +4 -0
  73. package/docs/integration/testing.md +40 -4
  74. package/docs/integration/tool-development-guide.md +1 -0
  75. package/package.json +2 -2
@@ -179,6 +179,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
179
179
  fileName: z.ZodOptional<z.ZodString>;
180
180
  label: z.ZodOptional<z.ZodString>;
181
181
  }, z.core.$strict>>>;
182
+ delivery: z.ZodOptional<z.ZodLiteral<"mid_run">>;
182
183
  }, z.core.$strip>, z.ZodObject<{
183
184
  id: z.ZodString;
184
185
  conversation_id: z.ZodString;
@@ -1036,6 +1037,7 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
1036
1037
  fileName: z.ZodOptional<z.ZodString>;
1037
1038
  label: z.ZodOptional<z.ZodString>;
1038
1039
  }, z.core.$strict>>>;
1040
+ delivery: z.ZodOptional<z.ZodLiteral<"mid_run">>;
1039
1041
  }, z.core.$strip>, z.ZodObject<{
1040
1042
  id: z.ZodString;
1041
1043
  conversation_id: z.ZodString;
@@ -1943,6 +1945,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
1943
1945
  fileName?: string | undefined;
1944
1946
  label?: string | undefined;
1945
1947
  }[] | undefined;
1948
+ delivery?: "mid_run" | undefined;
1946
1949
  } | {
1947
1950
  id: string;
1948
1951
  conversation_id: string;
@@ -2528,6 +2531,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
2528
2531
  fileName?: string | undefined;
2529
2532
  label?: string | undefined;
2530
2533
  }[] | undefined;
2534
+ delivery?: "mid_run" | undefined;
2531
2535
  } | {
2532
2536
  id: string;
2533
2537
  conversation_id: string;
@@ -179,6 +179,7 @@ declare const RuntimeEventShape: z.ZodDiscriminatedUnion<[z.ZodObject<{
179
179
  fileName: z.ZodOptional<z.ZodString>;
180
180
  label: z.ZodOptional<z.ZodString>;
181
181
  }, z.core.$strict>>>;
182
+ delivery: z.ZodOptional<z.ZodLiteral<"mid_run">>;
182
183
  }, z.core.$strip>, z.ZodObject<{
183
184
  id: z.ZodString;
184
185
  conversation_id: z.ZodString;
@@ -1036,6 +1037,7 @@ declare const RuntimeEvent: z.ZodPipe<z.ZodUnknown, z.ZodDiscriminatedUnion<[z.Z
1036
1037
  fileName: z.ZodOptional<z.ZodString>;
1037
1038
  label: z.ZodOptional<z.ZodString>;
1038
1039
  }, z.core.$strict>>>;
1040
+ delivery: z.ZodOptional<z.ZodLiteral<"mid_run">>;
1039
1041
  }, z.core.$strip>, z.ZodObject<{
1040
1042
  id: z.ZodString;
1041
1043
  conversation_id: z.ZodString;
@@ -1943,6 +1945,7 @@ declare const validateRuntimeEvent: (event: unknown) => z.ZodSafeParseResult<{
1943
1945
  fileName?: string | undefined;
1944
1946
  label?: string | undefined;
1945
1947
  }[] | undefined;
1948
+ delivery?: "mid_run" | undefined;
1946
1949
  } | {
1947
1950
  id: string;
1948
1951
  conversation_id: string;
@@ -2528,6 +2531,7 @@ declare const validateRuntimeEvents: (events: unknown[]) => z.ZodSafeParseResult
2528
2531
  fileName?: string | undefined;
2529
2532
  label?: string | undefined;
2530
2533
  }[] | undefined;
2534
+ delivery?: "mid_run" | undefined;
2531
2535
  } | {
2532
2536
  id: string;
2533
2537
  conversation_id: string;
@@ -587,6 +587,117 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
587
587
  fencePlacement: z.ZodOptional<z.ZodString>;
588
588
  }, z.core.$loose>>;
589
589
  role: z.ZodLiteral<"user">;
590
+ type: z.ZodLiteral<"user_steer">;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ id: z.ZodString;
593
+ content: z.ZodString;
594
+ timestamp: z.ZodNumber;
595
+ metadata: z.ZodOptional<z.ZodObject<{
596
+ messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
597
+ originalMessageCount: z.ZodOptional<z.ZodNumber>;
598
+ compressionRatio: z.ZodOptional<z.ZodNumber>;
599
+ includedOldSummary: z.ZodOptional<z.ZodBoolean>;
600
+ replacedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
601
+ summarySeq: z.ZodOptional<z.ZodNumber>;
602
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
603
+ id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
604
+ type: z.ZodLiteral<"function">;
605
+ function: z.ZodObject<{
606
+ name: z.ZodString;
607
+ arguments: z.ZodString;
608
+ }, z.core.$strip>;
609
+ }, z.core.$strict>>>;
610
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
611
+ schema_version: z.ZodLiteral<2>;
612
+ producer: z.ZodObject<{
613
+ model_id: z.ZodString;
614
+ endpoint_id: z.ZodString;
615
+ api_surface: z.ZodString;
616
+ capability_id: z.ZodString;
617
+ endpoint_model_id: z.ZodString;
618
+ }, z.core.$strict>;
619
+ kind: z.ZodString;
620
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
621
+ }, z.core.$strict>>>;
622
+ assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
623
+ type: z.ZodLiteral<"text">;
624
+ text: z.ZodString;
625
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
626
+ schema_version: z.ZodLiteral<2>;
627
+ producer: z.ZodObject<{
628
+ model_id: z.ZodString;
629
+ endpoint_id: z.ZodString;
630
+ api_surface: z.ZodString;
631
+ capability_id: z.ZodString;
632
+ endpoint_model_id: z.ZodString;
633
+ }, z.core.$strict>;
634
+ kind: z.ZodString;
635
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
636
+ }, z.core.$strict>>>;
637
+ }, z.core.$strict>, z.ZodObject<{
638
+ type: z.ZodLiteral<"reasoning">;
639
+ text: z.ZodString;
640
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ schema_version: z.ZodLiteral<2>;
642
+ producer: z.ZodObject<{
643
+ model_id: z.ZodString;
644
+ endpoint_id: z.ZodString;
645
+ api_surface: z.ZodString;
646
+ capability_id: z.ZodString;
647
+ endpoint_model_id: z.ZodString;
648
+ }, z.core.$strict>;
649
+ kind: z.ZodString;
650
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
651
+ }, z.core.$strict>>>;
652
+ }, z.core.$strict>, z.ZodObject<{
653
+ type: z.ZodLiteral<"tool_call">;
654
+ tool_call_id: z.ZodString;
655
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
656
+ schema_version: z.ZodLiteral<2>;
657
+ producer: z.ZodObject<{
658
+ model_id: z.ZodString;
659
+ endpoint_id: z.ZodString;
660
+ api_surface: z.ZodString;
661
+ capability_id: z.ZodString;
662
+ endpoint_model_id: z.ZodString;
663
+ }, z.core.$strict>;
664
+ kind: z.ZodString;
665
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
666
+ }, z.core.$strict>>>;
667
+ }, z.core.$strict>], "type">>>;
668
+ tool_name: z.ZodOptional<z.ZodString>;
669
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
671
+ observationTruncation: z.ZodOptional<z.ZodObject<{
672
+ blobId: z.ZodOptional<z.ZodString>;
673
+ originalChars: z.ZodNumber;
674
+ previewChars: z.ZodNumber;
675
+ originalLines: z.ZodOptional<z.ZodNumber>;
676
+ previewLines: z.ZodOptional<z.ZodNumber>;
677
+ }, z.core.$strip>>;
678
+ data: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
679
+ error: z.ZodOptional<z.ZodString>;
680
+ presentation: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
681
+ taskType: z.ZodOptional<z.ZodString>;
682
+ taskId: z.ZodOptional<z.ZodString>;
683
+ taskStatus: z.ZodOptional<z.ZodEnum<{
684
+ failed: "failed";
685
+ requested: "requested";
686
+ completed: "completed";
687
+ in_progress: "in_progress";
688
+ }>>;
689
+ taskTrackingInfo: z.ZodOptional<z.ZodObject<{
690
+ startTime: z.ZodOptional<z.ZodNumber>;
691
+ endTime: z.ZodOptional<z.ZodNumber>;
692
+ duration: z.ZodOptional<z.ZodNumber>;
693
+ retryCount: z.ZodOptional<z.ZodNumber>;
694
+ lastError: z.ZodOptional<z.ZodString>;
695
+ }, z.core.$strip>>;
696
+ fenceKind: z.ZodOptional<z.ZodString>;
697
+ fenceAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
698
+ fencePlacement: z.ZodOptional<z.ZodString>;
699
+ }, z.core.$loose>>;
700
+ role: z.ZodLiteral<"user">;
590
701
  type: z.ZodEnum<{
591
702
  context_injection: "context_injection";
592
703
  task_request: "task_request";
@@ -1193,6 +1304,117 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1193
1304
  fencePlacement: z.ZodOptional<z.ZodString>;
1194
1305
  }, z.core.$loose>>;
1195
1306
  role: z.ZodLiteral<"user">;
1307
+ type: z.ZodLiteral<"user_steer">;
1308
+ }, z.core.$strip>, z.ZodObject<{
1309
+ id: z.ZodString;
1310
+ content: z.ZodString;
1311
+ timestamp: z.ZodNumber;
1312
+ metadata: z.ZodOptional<z.ZodObject<{
1313
+ messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
1314
+ originalMessageCount: z.ZodOptional<z.ZodNumber>;
1315
+ compressionRatio: z.ZodOptional<z.ZodNumber>;
1316
+ includedOldSummary: z.ZodOptional<z.ZodBoolean>;
1317
+ replacedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1318
+ summarySeq: z.ZodOptional<z.ZodNumber>;
1319
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1320
+ id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
1321
+ type: z.ZodLiteral<"function">;
1322
+ function: z.ZodObject<{
1323
+ name: z.ZodString;
1324
+ arguments: z.ZodString;
1325
+ }, z.core.$strip>;
1326
+ }, z.core.$strict>>>;
1327
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1328
+ schema_version: z.ZodLiteral<2>;
1329
+ producer: z.ZodObject<{
1330
+ model_id: z.ZodString;
1331
+ endpoint_id: z.ZodString;
1332
+ api_surface: z.ZodString;
1333
+ capability_id: z.ZodString;
1334
+ endpoint_model_id: z.ZodString;
1335
+ }, z.core.$strict>;
1336
+ kind: z.ZodString;
1337
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1338
+ }, z.core.$strict>>>;
1339
+ assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1340
+ type: z.ZodLiteral<"text">;
1341
+ text: z.ZodString;
1342
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1343
+ schema_version: z.ZodLiteral<2>;
1344
+ producer: z.ZodObject<{
1345
+ model_id: z.ZodString;
1346
+ endpoint_id: z.ZodString;
1347
+ api_surface: z.ZodString;
1348
+ capability_id: z.ZodString;
1349
+ endpoint_model_id: z.ZodString;
1350
+ }, z.core.$strict>;
1351
+ kind: z.ZodString;
1352
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1353
+ }, z.core.$strict>>>;
1354
+ }, z.core.$strict>, z.ZodObject<{
1355
+ type: z.ZodLiteral<"reasoning">;
1356
+ text: z.ZodString;
1357
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1358
+ schema_version: z.ZodLiteral<2>;
1359
+ producer: z.ZodObject<{
1360
+ model_id: z.ZodString;
1361
+ endpoint_id: z.ZodString;
1362
+ api_surface: z.ZodString;
1363
+ capability_id: z.ZodString;
1364
+ endpoint_model_id: z.ZodString;
1365
+ }, z.core.$strict>;
1366
+ kind: z.ZodString;
1367
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1368
+ }, z.core.$strict>>>;
1369
+ }, z.core.$strict>, z.ZodObject<{
1370
+ type: z.ZodLiteral<"tool_call">;
1371
+ tool_call_id: z.ZodString;
1372
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1373
+ schema_version: z.ZodLiteral<2>;
1374
+ producer: z.ZodObject<{
1375
+ model_id: z.ZodString;
1376
+ endpoint_id: z.ZodString;
1377
+ api_surface: z.ZodString;
1378
+ capability_id: z.ZodString;
1379
+ endpoint_model_id: z.ZodString;
1380
+ }, z.core.$strict>;
1381
+ kind: z.ZodString;
1382
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1383
+ }, z.core.$strict>>>;
1384
+ }, z.core.$strict>], "type">>>;
1385
+ tool_name: z.ZodOptional<z.ZodString>;
1386
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1387
+ tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
1388
+ observationTruncation: z.ZodOptional<z.ZodObject<{
1389
+ blobId: z.ZodOptional<z.ZodString>;
1390
+ originalChars: z.ZodNumber;
1391
+ previewChars: z.ZodNumber;
1392
+ originalLines: z.ZodOptional<z.ZodNumber>;
1393
+ previewLines: z.ZodOptional<z.ZodNumber>;
1394
+ }, z.core.$strip>>;
1395
+ data: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
1396
+ error: z.ZodOptional<z.ZodString>;
1397
+ presentation: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
1398
+ taskType: z.ZodOptional<z.ZodString>;
1399
+ taskId: z.ZodOptional<z.ZodString>;
1400
+ taskStatus: z.ZodOptional<z.ZodEnum<{
1401
+ failed: "failed";
1402
+ requested: "requested";
1403
+ completed: "completed";
1404
+ in_progress: "in_progress";
1405
+ }>>;
1406
+ taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1407
+ startTime: z.ZodOptional<z.ZodNumber>;
1408
+ endTime: z.ZodOptional<z.ZodNumber>;
1409
+ duration: z.ZodOptional<z.ZodNumber>;
1410
+ retryCount: z.ZodOptional<z.ZodNumber>;
1411
+ lastError: z.ZodOptional<z.ZodString>;
1412
+ }, z.core.$strip>>;
1413
+ fenceKind: z.ZodOptional<z.ZodString>;
1414
+ fenceAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1415
+ fencePlacement: z.ZodOptional<z.ZodString>;
1416
+ }, z.core.$loose>>;
1417
+ role: z.ZodLiteral<"user">;
1196
1418
  type: z.ZodEnum<{
1197
1419
  context_injection: "context_injection";
1198
1420
  task_request: "task_request";
@@ -1444,7 +1666,7 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1444
1666
  }, z.core.$strip>]>>;
1445
1667
  type AiMessage = z.infer<typeof AiMessage>;
1446
1668
  declare function createSystemMessage(type: SystemMessage['type'], content: string, metadata?: PersistentMetadata): SystemMessage;
1447
- type UserContextMessageType = Exclude<UserMessage['type'], 'user_input'>;
1669
+ type UserContextMessageType = Exclude<UserMessage['type'], 'user_input' | 'user_steer'>;
1448
1670
  declare const UserInputMessage: z.ZodObject<{
1449
1671
  id: z.ZodString;
1450
1672
  content: z.ZodString;
@@ -1691,7 +1913,9 @@ declare const UserContextMessage: z.ZodObject<{
1691
1913
  task_request: "task_request";
1692
1914
  }>;
1693
1915
  }, z.core.$strip>;
1694
- type UserContextMessage = Exclude<UserMessage, UserInputMessage>;
1916
+ type UserContextMessage = Exclude<UserMessage, UserInputMessage | {
1917
+ type: 'user_steer';
1918
+ }>;
1695
1919
  declare function createUserMessage(type: 'user_input', content: string, metadata?: PersistentMetadata, attachments?: readonly RuntimeResourceRef[]): UserInputMessage;
1696
1920
  declare function createUserMessage(type: UserContextMessageType, content: string, metadata?: PersistentMetadata): UserContextMessage;
1697
1921
  declare function createAssistantMessage(type: AssistantMessage['type'], content: string, metadata?: PersistentMetadata): AssistantMessage;
@@ -587,6 +587,117 @@ declare const UserMessage: z.ZodUnion<readonly [z.ZodObject<{
587
587
  fencePlacement: z.ZodOptional<z.ZodString>;
588
588
  }, z.core.$loose>>;
589
589
  role: z.ZodLiteral<"user">;
590
+ type: z.ZodLiteral<"user_steer">;
591
+ }, z.core.$strip>, z.ZodObject<{
592
+ id: z.ZodString;
593
+ content: z.ZodString;
594
+ timestamp: z.ZodNumber;
595
+ metadata: z.ZodOptional<z.ZodObject<{
596
+ messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
597
+ originalMessageCount: z.ZodOptional<z.ZodNumber>;
598
+ compressionRatio: z.ZodOptional<z.ZodNumber>;
599
+ includedOldSummary: z.ZodOptional<z.ZodBoolean>;
600
+ replacedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
601
+ summarySeq: z.ZodOptional<z.ZodNumber>;
602
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
603
+ id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
604
+ type: z.ZodLiteral<"function">;
605
+ function: z.ZodObject<{
606
+ name: z.ZodString;
607
+ arguments: z.ZodString;
608
+ }, z.core.$strip>;
609
+ }, z.core.$strict>>>;
610
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
611
+ schema_version: z.ZodLiteral<2>;
612
+ producer: z.ZodObject<{
613
+ model_id: z.ZodString;
614
+ endpoint_id: z.ZodString;
615
+ api_surface: z.ZodString;
616
+ capability_id: z.ZodString;
617
+ endpoint_model_id: z.ZodString;
618
+ }, z.core.$strict>;
619
+ kind: z.ZodString;
620
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
621
+ }, z.core.$strict>>>;
622
+ assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
623
+ type: z.ZodLiteral<"text">;
624
+ text: z.ZodString;
625
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
626
+ schema_version: z.ZodLiteral<2>;
627
+ producer: z.ZodObject<{
628
+ model_id: z.ZodString;
629
+ endpoint_id: z.ZodString;
630
+ api_surface: z.ZodString;
631
+ capability_id: z.ZodString;
632
+ endpoint_model_id: z.ZodString;
633
+ }, z.core.$strict>;
634
+ kind: z.ZodString;
635
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
636
+ }, z.core.$strict>>>;
637
+ }, z.core.$strict>, z.ZodObject<{
638
+ type: z.ZodLiteral<"reasoning">;
639
+ text: z.ZodString;
640
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
641
+ schema_version: z.ZodLiteral<2>;
642
+ producer: z.ZodObject<{
643
+ model_id: z.ZodString;
644
+ endpoint_id: z.ZodString;
645
+ api_surface: z.ZodString;
646
+ capability_id: z.ZodString;
647
+ endpoint_model_id: z.ZodString;
648
+ }, z.core.$strict>;
649
+ kind: z.ZodString;
650
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
651
+ }, z.core.$strict>>>;
652
+ }, z.core.$strict>, z.ZodObject<{
653
+ type: z.ZodLiteral<"tool_call">;
654
+ tool_call_id: z.ZodString;
655
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
656
+ schema_version: z.ZodLiteral<2>;
657
+ producer: z.ZodObject<{
658
+ model_id: z.ZodString;
659
+ endpoint_id: z.ZodString;
660
+ api_surface: z.ZodString;
661
+ capability_id: z.ZodString;
662
+ endpoint_model_id: z.ZodString;
663
+ }, z.core.$strict>;
664
+ kind: z.ZodString;
665
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
666
+ }, z.core.$strict>>>;
667
+ }, z.core.$strict>], "type">>>;
668
+ tool_name: z.ZodOptional<z.ZodString>;
669
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
670
+ tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
671
+ observationTruncation: z.ZodOptional<z.ZodObject<{
672
+ blobId: z.ZodOptional<z.ZodString>;
673
+ originalChars: z.ZodNumber;
674
+ previewChars: z.ZodNumber;
675
+ originalLines: z.ZodOptional<z.ZodNumber>;
676
+ previewLines: z.ZodOptional<z.ZodNumber>;
677
+ }, z.core.$strip>>;
678
+ data: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
679
+ error: z.ZodOptional<z.ZodString>;
680
+ presentation: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
681
+ taskType: z.ZodOptional<z.ZodString>;
682
+ taskId: z.ZodOptional<z.ZodString>;
683
+ taskStatus: z.ZodOptional<z.ZodEnum<{
684
+ failed: "failed";
685
+ requested: "requested";
686
+ completed: "completed";
687
+ in_progress: "in_progress";
688
+ }>>;
689
+ taskTrackingInfo: z.ZodOptional<z.ZodObject<{
690
+ startTime: z.ZodOptional<z.ZodNumber>;
691
+ endTime: z.ZodOptional<z.ZodNumber>;
692
+ duration: z.ZodOptional<z.ZodNumber>;
693
+ retryCount: z.ZodOptional<z.ZodNumber>;
694
+ lastError: z.ZodOptional<z.ZodString>;
695
+ }, z.core.$strip>>;
696
+ fenceKind: z.ZodOptional<z.ZodString>;
697
+ fenceAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
698
+ fencePlacement: z.ZodOptional<z.ZodString>;
699
+ }, z.core.$loose>>;
700
+ role: z.ZodLiteral<"user">;
590
701
  type: z.ZodEnum<{
591
702
  context_injection: "context_injection";
592
703
  task_request: "task_request";
@@ -1193,6 +1304,117 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1193
1304
  fencePlacement: z.ZodOptional<z.ZodString>;
1194
1305
  }, z.core.$loose>>;
1195
1306
  role: z.ZodLiteral<"user">;
1307
+ type: z.ZodLiteral<"user_steer">;
1308
+ }, z.core.$strip>, z.ZodObject<{
1309
+ id: z.ZodString;
1310
+ content: z.ZodString;
1311
+ timestamp: z.ZodNumber;
1312
+ metadata: z.ZodOptional<z.ZodObject<{
1313
+ messageType: z.ZodOptional<z.ZodLiteral<"summary">>;
1314
+ originalMessageCount: z.ZodOptional<z.ZodNumber>;
1315
+ compressionRatio: z.ZodOptional<z.ZodNumber>;
1316
+ includedOldSummary: z.ZodOptional<z.ZodBoolean>;
1317
+ replacedMessageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1318
+ summarySeq: z.ZodOptional<z.ZodNumber>;
1319
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1320
+ id: z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">;
1321
+ type: z.ZodLiteral<"function">;
1322
+ function: z.ZodObject<{
1323
+ name: z.ZodString;
1324
+ arguments: z.ZodString;
1325
+ }, z.core.$strip>;
1326
+ }, z.core.$strict>>>;
1327
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1328
+ schema_version: z.ZodLiteral<2>;
1329
+ producer: z.ZodObject<{
1330
+ model_id: z.ZodString;
1331
+ endpoint_id: z.ZodString;
1332
+ api_surface: z.ZodString;
1333
+ capability_id: z.ZodString;
1334
+ endpoint_model_id: z.ZodString;
1335
+ }, z.core.$strict>;
1336
+ kind: z.ZodString;
1337
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1338
+ }, z.core.$strict>>>;
1339
+ assistant_replay_parts: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1340
+ type: z.ZodLiteral<"text">;
1341
+ text: z.ZodString;
1342
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1343
+ schema_version: z.ZodLiteral<2>;
1344
+ producer: z.ZodObject<{
1345
+ model_id: z.ZodString;
1346
+ endpoint_id: z.ZodString;
1347
+ api_surface: z.ZodString;
1348
+ capability_id: z.ZodString;
1349
+ endpoint_model_id: z.ZodString;
1350
+ }, z.core.$strict>;
1351
+ kind: z.ZodString;
1352
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1353
+ }, z.core.$strict>>>;
1354
+ }, z.core.$strict>, z.ZodObject<{
1355
+ type: z.ZodLiteral<"reasoning">;
1356
+ text: z.ZodString;
1357
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1358
+ schema_version: z.ZodLiteral<2>;
1359
+ producer: z.ZodObject<{
1360
+ model_id: z.ZodString;
1361
+ endpoint_id: z.ZodString;
1362
+ api_surface: z.ZodString;
1363
+ capability_id: z.ZodString;
1364
+ endpoint_model_id: z.ZodString;
1365
+ }, z.core.$strict>;
1366
+ kind: z.ZodString;
1367
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1368
+ }, z.core.$strict>>>;
1369
+ }, z.core.$strict>, z.ZodObject<{
1370
+ type: z.ZodLiteral<"tool_call">;
1371
+ tool_call_id: z.ZodString;
1372
+ provider_continuations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1373
+ schema_version: z.ZodLiteral<2>;
1374
+ producer: z.ZodObject<{
1375
+ model_id: z.ZodString;
1376
+ endpoint_id: z.ZodString;
1377
+ api_surface: z.ZodString;
1378
+ capability_id: z.ZodString;
1379
+ endpoint_model_id: z.ZodString;
1380
+ }, z.core.$strict>;
1381
+ kind: z.ZodString;
1382
+ payload: z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>;
1383
+ }, z.core.$strict>>>;
1384
+ }, z.core.$strict>], "type">>>;
1385
+ tool_name: z.ZodOptional<z.ZodString>;
1386
+ args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1387
+ tool_call_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "ToolCallId", "out">>;
1388
+ observationTruncation: z.ZodOptional<z.ZodObject<{
1389
+ blobId: z.ZodOptional<z.ZodString>;
1390
+ originalChars: z.ZodNumber;
1391
+ previewChars: z.ZodNumber;
1392
+ originalLines: z.ZodOptional<z.ZodNumber>;
1393
+ previewLines: z.ZodOptional<z.ZodNumber>;
1394
+ }, z.core.$strip>>;
1395
+ data: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
1396
+ error: z.ZodOptional<z.ZodString>;
1397
+ presentation: z.ZodOptional<z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>;
1398
+ taskType: z.ZodOptional<z.ZodString>;
1399
+ taskId: z.ZodOptional<z.ZodString>;
1400
+ taskStatus: z.ZodOptional<z.ZodEnum<{
1401
+ failed: "failed";
1402
+ requested: "requested";
1403
+ completed: "completed";
1404
+ in_progress: "in_progress";
1405
+ }>>;
1406
+ taskTrackingInfo: z.ZodOptional<z.ZodObject<{
1407
+ startTime: z.ZodOptional<z.ZodNumber>;
1408
+ endTime: z.ZodOptional<z.ZodNumber>;
1409
+ duration: z.ZodOptional<z.ZodNumber>;
1410
+ retryCount: z.ZodOptional<z.ZodNumber>;
1411
+ lastError: z.ZodOptional<z.ZodString>;
1412
+ }, z.core.$strip>>;
1413
+ fenceKind: z.ZodOptional<z.ZodString>;
1414
+ fenceAttrs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1415
+ fencePlacement: z.ZodOptional<z.ZodString>;
1416
+ }, z.core.$loose>>;
1417
+ role: z.ZodLiteral<"user">;
1196
1418
  type: z.ZodEnum<{
1197
1419
  context_injection: "context_injection";
1198
1420
  task_request: "task_request";
@@ -1444,7 +1666,7 @@ declare const AiMessage: z.ZodPipe<z.ZodUnknown, z.ZodUnion<readonly [z.ZodObjec
1444
1666
  }, z.core.$strip>]>>;
1445
1667
  type AiMessage = z.infer<typeof AiMessage>;
1446
1668
  declare function createSystemMessage(type: SystemMessage['type'], content: string, metadata?: PersistentMetadata): SystemMessage;
1447
- type UserContextMessageType = Exclude<UserMessage['type'], 'user_input'>;
1669
+ type UserContextMessageType = Exclude<UserMessage['type'], 'user_input' | 'user_steer'>;
1448
1670
  declare const UserInputMessage: z.ZodObject<{
1449
1671
  id: z.ZodString;
1450
1672
  content: z.ZodString;
@@ -1691,7 +1913,9 @@ declare const UserContextMessage: z.ZodObject<{
1691
1913
  task_request: "task_request";
1692
1914
  }>;
1693
1915
  }, z.core.$strip>;
1694
- type UserContextMessage = Exclude<UserMessage, UserInputMessage>;
1916
+ type UserContextMessage = Exclude<UserMessage, UserInputMessage | {
1917
+ type: 'user_steer';
1918
+ }>;
1695
1919
  declare function createUserMessage(type: 'user_input', content: string, metadata?: PersistentMetadata, attachments?: readonly RuntimeResourceRef[]): UserInputMessage;
1696
1920
  declare function createUserMessage(type: UserContextMessageType, content: string, metadata?: PersistentMetadata): UserContextMessage;
1697
1921
  declare function createAssistantMessage(type: AssistantMessage['type'], content: string, metadata?: PersistentMetadata): AssistantMessage;
@@ -37,6 +37,34 @@ declare const SSEExecutionScope: z.ZodObject<{
37
37
  }, z.core.$strip>;
38
38
  type SSEExecutionScope = z.infer<typeof SSEExecutionScope>;
39
39
  declare function parseSSEExecutionScope(event: Pick<BaseSSEEvent, 'run_id' | 'execution_id'>): SSEExecutionScope;
40
+ /**
41
+ * 运行中途送达的用户输入(插话)。运行起点的用户输入由客户端自己先显示,不经 SSE 回传;
42
+ * 插话由 Host 在一批工具结算后写入,客户端只能从这里得知它送达的位置。
43
+ */
44
+ declare const SSEUserInputEvent: z.ZodObject<{
45
+ id: z.ZodString;
46
+ timestamp: z.ZodNumber;
47
+ conversation_id: z.ZodString;
48
+ turn_id: z.ZodString;
49
+ run_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RunId", "out">>;
50
+ execution_id: z.ZodOptional<z.ZodString>;
51
+ lane: z.ZodOptional<z.ZodEnum<{
52
+ foreground: "foreground";
53
+ auxiliary: "auxiliary";
54
+ child: "child";
55
+ }>>;
56
+ visibility: z.ZodOptional<z.ZodEnum<{
57
+ conversation: "conversation";
58
+ "parent-trace": "parent-trace";
59
+ none: "none";
60
+ }>>;
61
+ execution_seq: z.ZodOptional<z.ZodNumber>;
62
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
63
+ type: z.ZodLiteral<"user_input">;
64
+ content: z.ZodString;
65
+ delivery: z.ZodLiteral<"mid_run">;
66
+ }, z.core.$strip>;
67
+ type SSEUserInputEvent = z.infer<typeof SSEUserInputEvent>;
40
68
  declare const SSEThoughtEvent: z.ZodObject<{
41
69
  id: z.ZodString;
42
70
  timestamp: z.ZodNumber;
@@ -827,6 +855,28 @@ declare const SSESummarizationErrorEvent: z.ZodObject<{
827
855
  }, z.core.$strip>;
828
856
  type SSESummarizationErrorEvent = z.infer<typeof SSESummarizationErrorEvent>;
829
857
  declare const SSEEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
858
+ id: z.ZodString;
859
+ timestamp: z.ZodNumber;
860
+ conversation_id: z.ZodString;
861
+ turn_id: z.ZodString;
862
+ run_id: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RunId", "out">>;
863
+ execution_id: z.ZodOptional<z.ZodString>;
864
+ lane: z.ZodOptional<z.ZodEnum<{
865
+ foreground: "foreground";
866
+ auxiliary: "auxiliary";
867
+ child: "child";
868
+ }>>;
869
+ visibility: z.ZodOptional<z.ZodEnum<{
870
+ conversation: "conversation";
871
+ "parent-trace": "parent-trace";
872
+ none: "none";
873
+ }>>;
874
+ execution_seq: z.ZodOptional<z.ZodNumber>;
875
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJsonValue, SerializableJsonValue, z.core.$ZodTypeInternals<SerializableJsonValue, SerializableJsonValue>>>>;
876
+ type: z.ZodLiteral<"user_input">;
877
+ content: z.ZodString;
878
+ delivery: z.ZodLiteral<"mid_run">;
879
+ }, z.core.$strip>, z.ZodObject<{
830
880
  id: z.ZodString;
831
881
  timestamp: z.ZodNumber;
832
882
  conversation_id: z.ZodString;
@@ -1573,6 +1623,20 @@ type SSEEvent = z.infer<typeof SSEEvent>;
1573
1623
  /** Renderer/transport admission 前的 wire 输入;strict parse 后才可作为 SSEEvent 使用。 */
1574
1624
  type SSEEventInput = z.input<typeof SSEEvent>;
1575
1625
  declare const validateSSEEvent: (event: unknown) => z.ZodSafeParseResult<{
1626
+ id: string;
1627
+ timestamp: number;
1628
+ conversation_id: string;
1629
+ turn_id: string;
1630
+ type: "user_input";
1631
+ content: string;
1632
+ delivery: "mid_run";
1633
+ run_id?: (string & z.core.$brand<"RunId">) | undefined;
1634
+ execution_id?: string | undefined;
1635
+ lane?: "foreground" | "auxiliary" | "child" | undefined;
1636
+ visibility?: "conversation" | "parent-trace" | "none" | undefined;
1637
+ execution_seq?: number | undefined;
1638
+ metadata?: Record<string, SerializableJsonValue> | undefined;
1639
+ } | {
1576
1640
  id: string;
1577
1641
  timestamp: number;
1578
1642
  conversation_id: string;
@@ -2057,5 +2121,5 @@ declare const createSSERunStatusEvent: (id: string, conversationId: string, turn
2057
2121
  declare const createSSETransportEndEvent: (id: string, conversationId: string, turnId: string, options: SSEEventCreatorOptions<SSETransportEndEvent> & Pick<SSETransportEndEvent, "execution_id">) => SSETransportEndEvent;
2058
2122
  declare const createSSEHistorySummaryEvent: (id: string, conversationId: string, turnId: string, content: string, replacedMessageIds: readonly string[], originalMessageCount: number, summarySeq: number, options?: SSEEventCreatorOptions<SSEHistorySummaryEvent, "summary_id" | "content" | "replaced_message_ids" | "original_message_count" | "summary_seq">) => SSEHistorySummaryEvent;
2059
2123
 
2060
- export { BaseSSEEvent, SSEContextUsageSnapshotEvent, SSEErrorEvent, SSEEvent, SSEExecutionScope, SSEFinalAnswerChunkEvent, SSEFinalAnswerEvent, SSEFinalAnswerResetEvent, SSEHistorySummaryEvent, SSELlmRetryEvent, SSEMarkdownChunkEvent, SSERequiresUserInteractionEvent, SSERunExecutionMetricsEvent, SSERunStatusEvent, SSESubRunTraceEvent, SSESummarizationEndEvent, SSESummarizationErrorEvent, SSESummarizationStartEvent, SSEThoughtEvent, SSEToolCallDecisionEvent, SSEToolOutputEvent, SSEToolProcessEvent, SSETransportEndEvent, SSETransportErrorEvent, createSSEErrorEvent, createSSEFinalAnswerChunkEvent, createSSEFinalAnswerEvent, createSSEHistorySummaryEvent, createSSEMarkdownChunkEvent, createSSERequiresUserInteractionEvent, createSSERunStatusEvent, createSSESubRunTraceEvent, createSSEThoughtEvent, createSSEToolCallDecisionEvent, createSSEToolOutputEvent, createSSEToolProcessEvent, createSSETransportEndEvent, createSSETransportErrorEvent, parseSSEExecutionScope, runtimeEventToSSEEvent, validateSSEEvent };
2124
+ export { BaseSSEEvent, SSEContextUsageSnapshotEvent, SSEErrorEvent, SSEEvent, SSEExecutionScope, SSEFinalAnswerChunkEvent, SSEFinalAnswerEvent, SSEFinalAnswerResetEvent, SSEHistorySummaryEvent, SSELlmRetryEvent, SSEMarkdownChunkEvent, SSERequiresUserInteractionEvent, SSERunExecutionMetricsEvent, SSERunStatusEvent, SSESubRunTraceEvent, SSESummarizationEndEvent, SSESummarizationErrorEvent, SSESummarizationStartEvent, SSEThoughtEvent, SSEToolCallDecisionEvent, SSEToolOutputEvent, SSEToolProcessEvent, SSETransportEndEvent, SSETransportErrorEvent, SSEUserInputEvent, createSSEErrorEvent, createSSEFinalAnswerChunkEvent, createSSEFinalAnswerEvent, createSSEHistorySummaryEvent, createSSEMarkdownChunkEvent, createSSERequiresUserInteractionEvent, createSSERunStatusEvent, createSSESubRunTraceEvent, createSSEThoughtEvent, createSSEToolCallDecisionEvent, createSSEToolOutputEvent, createSSEToolProcessEvent, createSSETransportEndEvent, createSSETransportErrorEvent, parseSSEExecutionScope, runtimeEventToSSEEvent, validateSSEEvent };
2061
2125
  export type { SSEEventInput };