@runtypelabs/sdk 9.7.0 → 9.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -699,6 +699,24 @@ interface paths {
699
699
  enabled: true;
700
700
  types: ("markdown" | "component")[];
701
701
  };
702
+ contextManagement?: {
703
+ compaction?: {
704
+ enabled?: boolean;
705
+ instructions?: string;
706
+ model?: string;
707
+ retainRecentTokens?: number;
708
+ /** @enum {string} */
709
+ strategy?: "auto" | "provider_native" | "summary";
710
+ thresholdRatio?: number;
711
+ thresholdTokens?: number;
712
+ };
713
+ toolResults?: {
714
+ inlineThresholdChars?: number;
715
+ pruneHotWindowTokens?: number;
716
+ /** @enum {string} */
717
+ pruneMode?: "mask" | "off";
718
+ };
719
+ };
702
720
  durability?: {
703
721
  /** @enum {string} */
704
722
  forced?: "durable" | "in_process";
@@ -911,9 +929,33 @@ interface paths {
911
929
  voiceId?: string;
912
930
  };
913
931
  enabled?: boolean;
932
+ endpointing?: {
933
+ silenceMs?: number;
934
+ /** @enum {string} */
935
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
936
+ };
937
+ greeting?: string;
914
938
  /** @enum {string} */
915
939
  interruptionMode?: "none" | "cancel" | "barge-in";
940
+ language?: string;
916
941
  provider?: string;
942
+ speech?: {
943
+ /** @enum {string} */
944
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
945
+ synthesizer: {
946
+ model?: string;
947
+ provider: string;
948
+ settings?: {
949
+ similarity?: number;
950
+ stability?: number;
951
+ };
952
+ voiceId?: string;
953
+ };
954
+ transcriber: {
955
+ model?: string;
956
+ provider: string;
957
+ };
958
+ };
917
959
  };
918
960
  };
919
961
  description?: string;
@@ -1151,6 +1193,24 @@ interface paths {
1151
1193
  enabled: true;
1152
1194
  types: ("markdown" | "component")[];
1153
1195
  };
1196
+ contextManagement?: {
1197
+ compaction?: {
1198
+ enabled?: boolean;
1199
+ instructions?: string;
1200
+ model?: string;
1201
+ retainRecentTokens?: number;
1202
+ /** @enum {string} */
1203
+ strategy?: "auto" | "provider_native" | "summary";
1204
+ thresholdRatio?: number;
1205
+ thresholdTokens?: number;
1206
+ };
1207
+ toolResults?: {
1208
+ inlineThresholdChars?: number;
1209
+ pruneHotWindowTokens?: number;
1210
+ /** @enum {string} */
1211
+ pruneMode?: "mask" | "off";
1212
+ };
1213
+ };
1154
1214
  durability?: {
1155
1215
  /** @enum {string} */
1156
1216
  forced?: "durable" | "in_process";
@@ -1363,9 +1423,33 @@ interface paths {
1363
1423
  voiceId?: string;
1364
1424
  };
1365
1425
  enabled?: boolean;
1426
+ endpointing?: {
1427
+ silenceMs?: number;
1428
+ /** @enum {string} */
1429
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
1430
+ };
1431
+ greeting?: string;
1366
1432
  /** @enum {string} */
1367
1433
  interruptionMode?: "none" | "cancel" | "barge-in";
1434
+ language?: string;
1368
1435
  provider?: string;
1436
+ speech?: {
1437
+ /** @enum {string} */
1438
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
1439
+ synthesizer: {
1440
+ model?: string;
1441
+ provider: string;
1442
+ settings?: {
1443
+ similarity?: number;
1444
+ stability?: number;
1445
+ };
1446
+ voiceId?: string;
1447
+ };
1448
+ transcriber: {
1449
+ model?: string;
1450
+ provider: string;
1451
+ };
1452
+ };
1369
1453
  };
1370
1454
  };
1371
1455
  description?: string;
@@ -2075,9 +2159,33 @@ interface paths {
2075
2159
  voiceId?: string;
2076
2160
  };
2077
2161
  enabled?: boolean;
2162
+ endpointing?: {
2163
+ silenceMs?: number;
2164
+ /** @enum {string} */
2165
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
2166
+ };
2167
+ greeting?: string;
2078
2168
  /** @enum {string} */
2079
2169
  interruptionMode?: "none" | "cancel" | "barge-in";
2170
+ language?: string;
2080
2171
  provider?: string;
2172
+ speech?: {
2173
+ /** @enum {string} */
2174
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
2175
+ synthesizer: {
2176
+ model?: string;
2177
+ provider: string;
2178
+ settings?: {
2179
+ similarity?: number;
2180
+ stability?: number;
2181
+ };
2182
+ voiceId?: string;
2183
+ };
2184
+ transcriber: {
2185
+ model?: string;
2186
+ provider: string;
2187
+ };
2188
+ };
2081
2189
  };
2082
2190
  };
2083
2191
  description?: string;
@@ -11166,9 +11274,33 @@ interface paths {
11166
11274
  voiceId?: string;
11167
11275
  };
11168
11276
  enabled?: boolean;
11277
+ endpointing?: {
11278
+ silenceMs?: number;
11279
+ /** @enum {string} */
11280
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
11281
+ };
11282
+ greeting?: string;
11169
11283
  /** @enum {string} */
11170
11284
  interruptionMode?: "none" | "cancel" | "barge-in";
11285
+ language?: string;
11171
11286
  provider?: string;
11287
+ speech?: {
11288
+ /** @enum {string} */
11289
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
11290
+ synthesizer: {
11291
+ model?: string;
11292
+ provider: string;
11293
+ settings?: {
11294
+ similarity?: number;
11295
+ stability?: number;
11296
+ };
11297
+ voiceId?: string;
11298
+ };
11299
+ transcriber: {
11300
+ model?: string;
11301
+ provider: string;
11302
+ };
11303
+ };
11172
11304
  };
11173
11305
  };
11174
11306
  clientTools?: ({
@@ -11346,7 +11478,7 @@ interface paths {
11346
11478
  ownerId?: string;
11347
11479
  type?: string;
11348
11480
  };
11349
- /** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED. There is no longer an exception: the legacy engine that honored it for single-turn agents behind `options.useRuntimePackage: false` has been removed, and that opt-out is itself a 400 now. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11481
+ /** @description Retired on BOTH dispatch targets. A NON-EMPTY map is rejected with 400: RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED on an agent dispatch, RUNTIME_FLOW_TRANSIENT_SECRETS_UNSUPPORTED on a flow dispatch (the flow target used to drop the map silently). An empty map is accepted and does nothing. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11350
11482
  secrets?: {
11351
11483
  [key: string]: string;
11352
11484
  };
@@ -11542,9 +11674,33 @@ interface paths {
11542
11674
  voiceId?: string;
11543
11675
  };
11544
11676
  enabled?: boolean;
11677
+ endpointing?: {
11678
+ silenceMs?: number;
11679
+ /** @enum {string} */
11680
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
11681
+ };
11682
+ greeting?: string;
11545
11683
  /** @enum {string} */
11546
11684
  interruptionMode?: "none" | "cancel" | "barge-in";
11685
+ language?: string;
11547
11686
  provider?: string;
11687
+ speech?: {
11688
+ /** @enum {string} */
11689
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
11690
+ synthesizer: {
11691
+ model?: string;
11692
+ provider: string;
11693
+ settings?: {
11694
+ similarity?: number;
11695
+ stability?: number;
11696
+ };
11697
+ voiceId?: string;
11698
+ };
11699
+ transcriber: {
11700
+ model?: string;
11701
+ provider: string;
11702
+ };
11703
+ };
11548
11704
  };
11549
11705
  };
11550
11706
  clientTools?: ({
@@ -11722,7 +11878,7 @@ interface paths {
11722
11878
  ownerId?: string;
11723
11879
  type?: string;
11724
11880
  };
11725
- /** @description Retired. A NON-EMPTY map on an agent dispatch is rejected with 400 RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED. There is no longer an exception: the legacy engine that honored it for single-turn agents behind `options.useRuntimePackage: false` has been removed, and that opt-out is itself a 400 now. An empty map is accepted and does nothing. Ignored on flow dispatches. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11881
+ /** @description Retired on BOTH dispatch targets. A NON-EMPTY map is rejected with 400: RUNTIME_AGENT_TRANSIENT_SECRETS_UNSUPPORTED on an agent dispatch, RUNTIME_FLOW_TRANSIENT_SECRETS_UNSUPPORTED on a flow dispatch (the flow target used to drop the map silently). An empty map is accepted and does nothing. Store credentials as managed secrets and reference them as {{secret:NAME}}. The field is kept on the wire for compatibility only. */
11726
11882
  secrets?: {
11727
11883
  [key: string]: string;
11728
11884
  };
@@ -25629,6 +25785,10 @@ interface paths {
25629
25785
  /** @default 4096 */
25630
25786
  maxOutputTokens?: number;
25631
25787
  outputCostPer1kTokens: number;
25788
+ reasoning?: {
25789
+ defaultEffort?: string;
25790
+ supported: boolean;
25791
+ };
25632
25792
  /**
25633
25793
  * @default [
25634
25794
  * "text",
@@ -26291,6 +26451,10 @@ interface paths {
26291
26451
  /** @default 4096 */
26292
26452
  maxOutputTokens?: number;
26293
26453
  outputCostPer1kTokens: number;
26454
+ reasoning?: {
26455
+ defaultEffort?: string;
26456
+ supported: boolean;
26457
+ };
26294
26458
  /**
26295
26459
  * @default [
26296
26460
  * "text",
@@ -34454,6 +34618,10 @@ interface paths {
34454
34618
  inputCostPer1kTokens?: number;
34455
34619
  maxOutputTokens?: number;
34456
34620
  outputCostPer1kTokens?: number;
34621
+ reasoning?: {
34622
+ defaultEffort?: string;
34623
+ supported: boolean;
34624
+ };
34457
34625
  supportedResponseFormats?: string[];
34458
34626
  supportsStreaming?: boolean;
34459
34627
  }[];
@@ -45385,6 +45553,24 @@ interface components {
45385
45553
  enabled: true;
45386
45554
  types: ("markdown" | "component")[];
45387
45555
  };
45556
+ contextManagement?: {
45557
+ compaction?: {
45558
+ enabled?: boolean;
45559
+ instructions?: string;
45560
+ model?: string;
45561
+ retainRecentTokens?: number;
45562
+ /** @enum {string} */
45563
+ strategy?: "auto" | "provider_native" | "summary";
45564
+ thresholdRatio?: number;
45565
+ thresholdTokens?: number;
45566
+ };
45567
+ toolResults?: {
45568
+ inlineThresholdChars?: number;
45569
+ pruneHotWindowTokens?: number;
45570
+ /** @enum {string} */
45571
+ pruneMode?: "mask" | "off";
45572
+ };
45573
+ };
45388
45574
  durability?: {
45389
45575
  /** @enum {string} */
45390
45576
  forced?: "durable" | "in_process";
@@ -45597,9 +45783,33 @@ interface components {
45597
45783
  voiceId?: string;
45598
45784
  };
45599
45785
  enabled?: boolean;
45786
+ endpointing?: {
45787
+ silenceMs?: number;
45788
+ /** @enum {string} */
45789
+ strategy: "provider_vad" | "server_vad" | "client_commit" | "manual";
45790
+ };
45791
+ greeting?: string;
45600
45792
  /** @enum {string} */
45601
45793
  interruptionMode?: "none" | "cancel" | "barge-in";
45794
+ language?: string;
45602
45795
  provider?: string;
45796
+ speech?: {
45797
+ /** @enum {string} */
45798
+ mode: "pipeline" | "speech_to_speech" | "provider_managed";
45799
+ synthesizer: {
45800
+ model?: string;
45801
+ provider: string;
45802
+ settings?: {
45803
+ similarity?: number;
45804
+ stability?: number;
45805
+ };
45806
+ voiceId?: string;
45807
+ };
45808
+ transcriber: {
45809
+ model?: string;
45810
+ provider: string;
45811
+ };
45812
+ };
45603
45813
  };
45604
45814
  };
45605
45815
  description?: string;
@@ -46411,6 +46621,11 @@ interface components {
46411
46621
  /** @enum {string} */
46412
46622
  role: "user" | "assistant" | "system";
46413
46623
  seq: number;
46624
+ subagent?: {
46625
+ agentName?: string;
46626
+ parentToolCallId?: string;
46627
+ toolName: string;
46628
+ };
46414
46629
  turnIndex?: number;
46415
46630
  /** @enum {string} */
46416
46631
  type: "turn_start";
@@ -46451,6 +46666,11 @@ interface components {
46451
46666
  seq: number;
46452
46667
  /** @enum {string} */
46453
46668
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
46669
+ subagent?: {
46670
+ agentName?: string;
46671
+ parentToolCallId?: string;
46672
+ toolName: string;
46673
+ };
46454
46674
  tokens?: {
46455
46675
  input: number;
46456
46676
  output: number;
@@ -46466,6 +46686,11 @@ interface components {
46466
46686
  seq: number;
46467
46687
  startedAt?: string;
46468
46688
  stepType?: string;
46689
+ subagent?: {
46690
+ agentName?: string;
46691
+ parentToolCallId?: string;
46692
+ toolName: string;
46693
+ };
46469
46694
  totalSteps?: number;
46470
46695
  /** @enum {string} */
46471
46696
  type: "step_start";
@@ -46496,6 +46721,11 @@ interface components {
46496
46721
  stepType?: string;
46497
46722
  /** @enum {string} */
46498
46723
  stopReason?: "end_turn" | "max_tool_calls" | "length" | "content_filter" | "error" | "unknown";
46724
+ subagent?: {
46725
+ agentName?: string;
46726
+ parentToolCallId?: string;
46727
+ toolName: string;
46728
+ };
46499
46729
  success?: boolean;
46500
46730
  tokensUsed?: number;
46501
46731
  /** @enum {string} */
@@ -46521,6 +46751,11 @@ interface components {
46521
46751
  role?: "user" | "assistant" | "system";
46522
46752
  seq: number;
46523
46753
  stepId?: string;
46754
+ subagent?: {
46755
+ agentName?: string;
46756
+ parentToolCallId?: string;
46757
+ toolName: string;
46758
+ };
46524
46759
  turnId?: string;
46525
46760
  /** @enum {string} */
46526
46761
  type: "text_start";
@@ -46529,12 +46764,22 @@ interface components {
46529
46764
  executionId: string;
46530
46765
  id: string;
46531
46766
  seq: number;
46767
+ subagent?: {
46768
+ agentName?: string;
46769
+ parentToolCallId?: string;
46770
+ toolName: string;
46771
+ };
46532
46772
  /** @enum {string} */
46533
46773
  type: "text_delta";
46534
46774
  } | {
46535
46775
  executionId: string;
46536
46776
  id: string;
46537
46777
  seq: number;
46778
+ subagent?: {
46779
+ agentName?: string;
46780
+ parentToolCallId?: string;
46781
+ toolName: string;
46782
+ };
46538
46783
  text?: string;
46539
46784
  /** @enum {string} */
46540
46785
  type: "text_complete";
@@ -46545,6 +46790,11 @@ interface components {
46545
46790
  /** @enum {string} */
46546
46791
  scope?: "turn" | "loop";
46547
46792
  seq: number;
46793
+ subagent?: {
46794
+ agentName?: string;
46795
+ parentToolCallId?: string;
46796
+ toolName: string;
46797
+ };
46548
46798
  /** @enum {string} */
46549
46799
  type: "reasoning_start";
46550
46800
  } | {
@@ -46552,6 +46802,11 @@ interface components {
46552
46802
  executionId: string;
46553
46803
  id: string;
46554
46804
  seq: number;
46805
+ subagent?: {
46806
+ agentName?: string;
46807
+ parentToolCallId?: string;
46808
+ toolName: string;
46809
+ };
46555
46810
  /** @enum {string} */
46556
46811
  type: "reasoning_delta";
46557
46812
  } | {
@@ -46560,6 +46815,11 @@ interface components {
46560
46815
  /** @enum {string} */
46561
46816
  scope?: "turn" | "loop";
46562
46817
  seq: number;
46818
+ subagent?: {
46819
+ agentName?: string;
46820
+ parentToolCallId?: string;
46821
+ toolName: string;
46822
+ };
46563
46823
  text?: string;
46564
46824
  /** @enum {string} */
46565
46825
  type: "reasoning_complete";
@@ -46674,6 +46934,11 @@ interface components {
46674
46934
  seq: number;
46675
46935
  startedAt?: string;
46676
46936
  stepId?: string;
46937
+ subagent?: {
46938
+ agentName?: string;
46939
+ parentToolCallId?: string;
46940
+ toolName: string;
46941
+ };
46677
46942
  toolCallId: string;
46678
46943
  toolName: string;
46679
46944
  toolType: string;
@@ -46683,6 +46948,11 @@ interface components {
46683
46948
  delta: string;
46684
46949
  executionId: string;
46685
46950
  seq: number;
46951
+ subagent?: {
46952
+ agentName?: string;
46953
+ parentToolCallId?: string;
46954
+ toolName: string;
46955
+ };
46686
46956
  toolCallId: string;
46687
46957
  /** @enum {string} */
46688
46958
  type: "tool_input_delta";
@@ -46693,6 +46963,11 @@ interface components {
46693
46963
  [key: string]: unknown;
46694
46964
  };
46695
46965
  seq: number;
46966
+ subagent?: {
46967
+ agentName?: string;
46968
+ parentToolCallId?: string;
46969
+ toolName: string;
46970
+ };
46696
46971
  toolCallId: string;
46697
46972
  toolName?: string;
46698
46973
  /** @enum {string} */
@@ -46712,6 +46987,11 @@ interface components {
46712
46987
  result?: unknown;
46713
46988
  seq: number;
46714
46989
  stepId?: string;
46990
+ subagent?: {
46991
+ agentName?: string;
46992
+ parentToolCallId?: string;
46993
+ toolName: string;
46994
+ };
46715
46995
  success: boolean;
46716
46996
  toolCallId: string;
46717
46997
  toolCost?: number;
@@ -49226,6 +49506,14 @@ interface ProviderKeyModel {
49226
49506
  inputCostPer1kTokens?: number;
49227
49507
  outputCostPer1kTokens?: number;
49228
49508
  supportedResponseFormats?: string[];
49509
+ /**
49510
+ * Whether the endpoint accepts `reasoning_effort` for this model, and the effort sent when an
49511
+ * agent or step sets no reasoning of its own. `defaultEffort` requires `supported: true`.
49512
+ */
49513
+ reasoning?: {
49514
+ supported: boolean;
49515
+ defaultEffort?: string;
49516
+ };
49229
49517
  }
49230
49518
  /** Content part types for multi-modal messages */
49231
49519
  interface TextContentPart {
@@ -52813,6 +53101,22 @@ declare function computeAgentContentHash(definition: {
52813
53101
  * loosely per SDK convention — the server validates strictly).
52814
53102
  */
52815
53103
  interface AgentDefinitionConfig {
53104
+ contextManagement?: {
53105
+ compaction?: {
53106
+ enabled?: boolean;
53107
+ strategy?: 'auto' | 'provider_native' | 'summary';
53108
+ thresholdRatio?: number;
53109
+ thresholdTokens?: number;
53110
+ retainRecentTokens?: number;
53111
+ instructions?: string;
53112
+ model?: string;
53113
+ };
53114
+ toolResults?: {
53115
+ inlineThresholdChars?: number;
53116
+ pruneHotWindowTokens?: number;
53117
+ pruneMode?: 'mask' | 'off';
53118
+ };
53119
+ };
52816
53120
  model?: string;
52817
53121
  systemPrompt?: string;
52818
53122
  temperature?: number;
@@ -53656,10 +53960,6 @@ declare class RuntypeClient$1 {
53656
53960
  * Make HTTP request that returns raw Response (for streaming)
53657
53961
  */
53658
53962
  private makeRawRequest;
53659
- /**
53660
- * Transform response (placeholder for snake_case to camelCase)
53661
- */
53662
- private transformResponse;
53663
53963
  }
53664
53964
  /**
53665
53965
  * Runtype - The unified SDK client for building and executing flows, batches, evals, and prompts.
@@ -56223,14 +56523,46 @@ interface AgentExecuteRequest {
56223
56523
  /** IDs of built-in tools to enable (e.g., "exa", "firecrawl", "dalle") */
56224
56524
  toolIds?: string[];
56225
56525
  };
56226
- /** Context-management hints for long-running marathon sessions */
56526
+ /**
56527
+ * How this run bounds its conversation as it approaches the model context
56528
+ * window. Only `compaction.strategy: 'provider_native'` with a
56529
+ * `compaction.thresholdTokens` is acted on today; the rest is accepted and
56530
+ * validated for forward compatibility.
56531
+ */
56227
56532
  contextManagement?: {
56228
- compactStrategy?: 'auto' | 'provider_native' | 'summary_fallback';
56229
- compactInstructions?: string;
56533
+ compaction?: {
56534
+ /** Set false to let the transcript grow until the provider rejects it. */
56535
+ enabled?: boolean;
56536
+ strategy?: 'auto' | 'provider_native' | 'summary';
56537
+ /** Trigger point as a fraction of the usable context window (0.3-0.98). */
56538
+ thresholdRatio?: number;
56539
+ /** Absolute trigger in input tokens. Overrides `thresholdRatio` when set. */
56540
+ thresholdTokens?: number;
56541
+ /** Recent transcript kept verbatim after a summary. 0 keeps the summary only. */
56542
+ retainRecentTokens?: number;
56543
+ /** Extra guidance handed to the summarizer or the provider's compactor. */
56544
+ instructions?: string;
56545
+ /** Model id for the summarizer. Defaults to the session's routed model. */
56546
+ model?: string;
56547
+ };
56548
+ toolResults?: {
56549
+ /** Tool results longer than this are spilled and replaced by a marker. */
56550
+ inlineThresholdChars?: number;
56551
+ /** Tool output newer than this budget is never masked. */
56552
+ pruneHotWindowTokens?: number;
56553
+ pruneMode?: 'mask' | 'off';
56554
+ };
56555
+ /**
56556
+ * @deprecated Use `compaction: { strategy: 'provider_native', thresholdTokens }`.
56557
+ */
56230
56558
  nativeCompaction?: {
56231
56559
  provider: 'anthropic';
56232
56560
  thresholdTokens: number;
56233
56561
  };
56562
+ /** @deprecated Use `compaction.instructions`. */
56563
+ compactInstructions?: string;
56564
+ /** @deprecated Never read; accepted and ignored. Use `compaction.strategy`. */
56565
+ compactStrategy?: 'auto' | 'provider_native' | 'summary_fallback';
56234
56566
  };
56235
56567
  /**
56236
56568
  * Per-request client-side tools (WebMCP page tools / SDK locals), admitted
@@ -56997,7 +57329,6 @@ declare class AgentsEndpoint {
56997
57329
  private resolveEffectiveInputBudgetTokens;
56998
57330
  private resolveCompactStrategy;
56999
57331
  private estimateTextTokens;
57000
- private estimateUnknownTokens;
57001
57332
  private extractDeclaredToolResultChars;
57002
57333
  private estimateMessageContentTokens;
57003
57334
  private estimateToolCallTokens;
@@ -57659,25 +57990,6 @@ declare const RUNTYPE_CLIENT_KIND = "sdk";
57659
57990
  */
57660
57991
  declare const SDK_USER_AGENT: string;
57661
57992
 
57662
- /**
57663
- * Offload marker contract — the single source of truth for the reference
57664
- * strings that replace large tool outputs in marathon send views.
57665
- *
57666
- * Two producers emit these markers:
57667
- * - the SDK's hot-tail send-view offload (`AgentsEndpoint.offloadToolResult`)
57668
- * - the CLI's ledger offload (`packages/cli/src/marathon/context-offload.ts`)
57669
- *
57670
- * Two consumers parse them back:
57671
- * - `extractDeclaredToolResultChars` recovers TRUE output sizes for honest
57672
- * token accounting (the compaction threshold must see real sizes, not
57673
- * placeholder sizes — the original "double lossy compression" bug)
57674
- * - the CLI session chunker re-expands ledger references to full payloads
57675
- * before semantic indexing
57676
- *
57677
- * Because accounting and recall silently degrade when a producer's copy
57678
- * drifts from a consumer's regex, both sides MUST build and parse through
57679
- * this module. Do not inline these strings elsewhere.
57680
- */
57681
57993
  declare const LEDGER_ARTIFACT_LINE_PREFIX = "Ledger artifact: ";
57682
57994
  /** SDK hot-tail send-view marker: large tool result replaced by a file pointer. */
57683
57995
  declare function buildSendViewOffloadMarker(details: {
@@ -57693,6 +58005,10 @@ declare function buildLedgerOffloadReference(details: {
57693
58005
  preview: string;
57694
58006
  truncated: boolean;
57695
58007
  }): string;
58008
+ /** Marathon observation-mask marker: the result is gone and re-running is the recovery. */
58009
+ declare function buildObservationMaskMarker(details: {
58010
+ toolName: string;
58011
+ }): string;
57696
58012
  /**
57697
58013
  * Recover the declared true size from an offload marker. Returns undefined
57698
58014
  * for values that are not offload markers (or not strings).
@@ -59010,4 +59326,4 @@ declare function getLikelySupportingCandidatePaths(bestCandidatePath: string | u
59010
59326
  declare function getDefaultPlanPath(taskName: string): string;
59011
59327
  declare function sanitizeTaskSlug(taskName: string): string;
59012
59328
 
59013
- export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackAppStatusResponse, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionPublishOptions, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };
59329
+ export { type AIGrader, type Agent, type AgentAdmissionOptions, type AgentApprovalCompleteEvent, type AgentApprovalStartEvent, type AgentCompleteEvent, type AgentDefinition, type AgentDefinitionConfig, AgentDriftError, type AgentElicitation, type AgentElicitationRequest, AgentEnsureConflictError, type AgentErrorEvent, type AgentEvent, type AgentEventType, type AgentExecuteRequest, type AgentExecuteResponse, type AgentIterationCompleteEvent, type AgentIterationStartEvent, type AgentMediaEvent, type AgentMessage, type AgentPausedEvent, type AgentPingEvent, type AgentPullResult, type AgentReflectionEvent, type AgentRuntimeToolDefinition, type AgentStartEvent, type AgentStreamCallbacks, type AgentStreamEvent, type AgentSubagentConfig, type AgentToolCompleteEvent, type AgentToolDeltaEvent, type AgentToolInputCompleteEvent, type AgentToolInputDeltaEvent, type AgentToolStartEvent, type AgentTurnCompleteEvent, type AgentTurnDeltaEvent, type AgentTurnStartEvent, type AgentVersionDetail, type AgentVersionListItem, type AgentVersionPublishResponse, AgentVersionsEndpoint, type AgentVersionsListResponse, AgentsEndpoint, AgentsNamespace, AnalyticsEndpoint, type ApiClient, type ApiKey, type ApiKeyRequest, type ApiKeyRequestDelivery, type ApiKeyRequestEnvironment, type ApiKeyRequestHandoff, type ApiKeyRequestListParams, type ApiKeyRequestRequester, type ApiKeyRequestStatus, ApiKeyRequestsEndpoint, ApiKeysEndpoint, type ApiResponse, type ApplyGeneratedProposalOptions, type ApplyGeneratedProposalResult, type AssetReferenceContentPart, type AsyncExecutionHandle, type AsyncExecutionStatus, type AttachRuntimeToolsOptions, type BaseAgentEvent, BatchBuilder, type BatchClient, type BatchListParams, type BatchOptions, type BatchRequest, type BatchResult, type BatchScheduleConfig, type BatchStatus, BatchesNamespace, BillingEndpoint, type BillingSpendAnalyticsParams, type BindSkillInput, type BuiltInGraderId, type BuiltInTool, type BulkEditCondition, type BulkEditRequest, type BulkEditResponse, type BulkEditResult, type CanonicalDispatchMessageContent, type CanonicalDispatchRequest, type CaseExpected, type CatalogClientToolRef, ChatEndpoint, type CheckGrader, type ClaimApiKeyRequestInput, type ClaimApiKeyRequestResponse, type ClaudeManagedEvalOverrideValues, ClientBatchBuilder, type ClientConfig, type ClientConversation, ClientEvalBuilder, ClientFlowBuilder, type ClientToken, type ClientTokenConfig, type ClientTokenEnvironment, type ClientTokenVersionPin, ClientTokensEndpoint, type ClientToolDefinition, type ClientToolEntry, type ClientWidgetTheme, type CollectionMeta, CollectionsEndpoint, type ConditionalGetResult, type ConditionalStepConfig$1 as ConditionalStepConfig, type ContextErrorHandling, type ContextFallback, ContextTemplatesEndpoint, type Conversation, type ConversationListItem, type ConversationListParams, type ConversationMessage, type ConversationSource, ConversationsEndpoint, type ConversationsListResponse, type CreateApiKeyRequest, type CreateApiKeyRequestInput, type CreateApiKeyRequestResponse, type CreateClientTokenRequest, type CreateClientTokenResponse, type CreateCollectionRequest, type CreateConversationRequest, type CreateEvalSuiteInput, type CreateFlowRequest, type CreateModelConfigRequest, type CreatePromptData, type CreatePromptRequest, type CreateProviderKeyRequest, type CreateRecordRequest, type CreateScheduleRequest, type CreateSecretRequest, type CreateToolRequest, type CurrentBilledSpendResponse, type CurrentBilledSpendSource, type CustomMCPServer, type CustomMCPServerAuth, type CustomToolConfig, DEFAULT_MAX_DETACHED_RECONNECTS, DEFAULT_RECOVERY_AFTER_EMPTY_SESSIONS, DEFAULT_STALL_STOP_AFTER, type DecomposeCriteriaResult, type DefineAgentInput, type DefineEvalCaseInput, type DefineEvalInput, type DefineFlowInput, type DefineProductInput, type DefineSkillInput, type DefineSurfaceInput, type DefineToolInput, type DeployCfSandboxRequest, type DeployCfSandboxResponse, type DeploySandboxRequest, type DeploySandboxResponse, type DetachedReattach, type DetachedReconnectOptions, type DiscoveredModel, type DispatchAgentInput, type DispatchApprovalContinuationResponse, type DispatchApproveRequest, type DispatchApproveResponse, type DispatchClient, type DispatchContinuationRequest, type DispatchContinuationResponse, type DispatchDetachedApprovalResponse, DispatchEndpoint, type DispatchEnvironment, type DispatchEvent, type DispatchFlowInput, type DispatchMessageContent, type DispatchOptions$1 as DispatchOptions, type DispatchRequest, type DispatchResponse, type DispatchResumeRequest, type DispatchResumeResponse, type EndUserUsageQuery, type EndUserUsageResponse, type EnsureAgentConverged, type EnsureAgentOptions, type EnsureAgentPlan, type EnsureAgentResult, type EnsureEvalResult, type EnsureFlowConverged, type EnsureFlowOptions, type EnsureFlowPlan, type EnsureFlowResult, type EnsureFpoOptions, type EnsureFpoResult, type EnsureProductConverged, type EnsureProductOptions, type EnsureProductPlan, type EnsureProductResult, type EnsureSkillConverged, type EnsureSkillOptions, type EnsureSkillPlan, type EnsureSkillResult, type EnsureSurfaceConverged, type EnsureSurfaceOptions, type EnsureSurfacePlan, type EnsureSurfaceResult, type EnsureToolConverged, type EnsureToolOptions, type EnsureToolPlan, type EnsureToolResult, type ErrorHandlingMode, EvalBuilder, type EvalCaseDefinition, type EvalCaseInput, type EvalCaseProposal, type EvalCaseProposalAccepted, type EvalCaseProposalListResult, type EvalCasesGenerated, type EvalClient, type EvalDefinition, EvalEndpoint, type EvalListParams, type EvalMessage, type EvalOptions, type EvalOverrideValues, type EvalProposalSource, type EvalProposalStatus, type EvalProposedCase, type EvalPullResult, type EvalRecord, type EvalRequest, type EvalResult, type EvalRunCaseScores, type EvalRunConfig, type EvalRunScores, EvalRunner, type EvalStatus, type EvalSuiteCase, type EvalSuiteCaseInput, type EvalSuiteCoverage, type EvalSuiteDetail, type EvalSuiteLatestRun, type EvalSuiteListResult, type EvalSuiteRunQueued, type EvalSuiteRunResult, type EvalSuiteSummary, EvalSuitesNamespace, type EvalTarget, EvalsNamespace, type ExecuteToolRequest, type ExecuteToolResponse, type ExecutionStreamEvent, ExecutionsEndpoint, ExecutionsNamespace, type ExternalAgentContext, type ExternalToolConfig, type FallbackFailEvent, type FallbackStartEvent, type FallbackSuccessEvent, type FallbackTrigger, type FallbackTriggerType, type FallbacksExhaustedEvent, type FallbacksInitiatedEvent, type FetchUrlStepConfig$1 as FetchUrlStepConfig, type FieldFormat, type FileContentPart, type Flow, type FlowAttachment, FlowBuilder, type FlowCompleteEvent, type FlowConfig$1 as FlowConfig, type FlowDefinition, type FlowDefinitionStep, FlowDriftError, FlowEnsureConflictError, type FlowErrorEvent, type FlowFallback, type FlowInlineEvalInput, type FlowListItem, type FlowPausedEvent, type FlowPullResult, FlowResult, type FlowStartEvent, type FlowStep, type FlowStepDefinition, type FlowStepType, FlowStepsEndpoint, type FlowStreamEvent, type FlowSummary, type FlowToolConfig, type FlowValidationClient, type FlowValidationIssue, type FlowValidationResult, type FlowVersionDetail, type FlowVersionListItem, type FlowVersionPublishResponse, FlowVersionsEndpoint, type FlowVersionsListResponse, FlowsEndpoint, FlowsNamespace, type FpoEntityOutcome, type FpoInput, type GenerateEmbeddingStepConfig$1 as GenerateEmbeddingStepConfig, type GenerateEvalCasesInput, type GeneratedRuntimeToolGateDecision, type GeneratedRuntimeToolGateOptions, type GetApiKeyRequestResponse, type GetRecordStepConfig$1 as GetRecordStepConfig, type Gradeable, type GraderConfig, type GraderOutcome, type GraderSeverity, type HumanVerdict, type ImageContentPart, type InferCollectionSchemaResponse, type Integration, type IntegrationTool, IntegrationsEndpoint, type IntegrationsListResponse, type JSONSchema, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, LEDGER_ARTIFACT_LINE_PREFIX, type ListCollectionsResponse, type ListConversationsResponse, type ListParams, type ListRecordsStepConfig$1 as ListRecordsStepConfig, type LocalToolConfig, type LocalToolDefinition, type LocalToolExecutionCompleteEvent, type LocalToolExecutionLoopSnapshotSlice, type LocalToolExecutionStartEvent, type LogEntry, type LogQueryParams, type LogQueryResponse, type LogQueryResult, type LogStatsParams, type LogStatsResponse, type LogStatsResult, LogsEndpoint, type LoopStepConfig$1 as LoopStepConfig, type Message$1 as Message, type MessageContent, type MessageFallback, type Metadata, type ModelConfig, ModelConfigsEndpoint, type ModelFallback, type ModelOverride, type ModelUsageDetail, type ModelUsageQueryParams, type ModelUsageResponse, type ModelUsageSummary, type ModelUsageTimeSeries, type PaginationResponse, type PersistedGraderOutcome, type ProductDefinition, ProductDriftError, ProductEnsureConflictError, type ProductPullResult, ProductsNamespace, type Prompt$1 as Prompt, type PromptErrorHandling, type PromptFallback, type PromptListParams, type PromptStepConfig$1 as PromptStepConfig, PromptsEndpoint, PromptsNamespace, type ProviderApiKey, type ProviderKeyModel, ProviderKeysEndpoint, type PullFpoResult, RUNTYPE_CLIENT_KIND, type ReasoningConfig, type ReasoningContentPart, type ReasoningValue, type RecordCollection, type RecordCollectionWithHistory, type RecordCollections, type RecordConfig$1 as RecordConfig, type RecordCostAggregation, type RecordCostModelBreakdown, type RecordFilter, type RecordFilterCondition, type RecordFilterGroup, type RecordFilterOperator, type RecordListItem, type RecordListParams, type RecordStepResult, type RecordStepResultsParams, type RecordStepResultsResponse, type RecordWriteResponse, RecordsEndpoint, type RetrieveRecordStepConfig$1 as RetrieveRecordStepConfig, type RetryFallback, type RunEvalCaseResult, type RunEvalInput, type RunEvalResult, type RunTaskContextBudgetBreakdown, type RunTaskContextCompactionEvent, type RunTaskContextCompactionStrategy, type RunTaskContextNoticeEvent, type RunTaskContextSummaryEntry, type RunTaskContinuation, type RunTaskOffloadRecorder, type RunTaskOnContextCompaction, type RunTaskOnContextNotice, type RunTaskOnSession, type RunTaskOptions, type RunTaskResult, type RunTaskResumeState, type RunTaskSessionSummary, type RunTaskState, type RunTaskStateSlice, type RunTaskStatus, type RunTaskToolTraceSlice, type RuntimeCustomToolConfig, type RuntimeExternalToolConfig, type RuntimeFlowToolConfig, type RuntimeLocalToolConfig, type RuntimeSubagentToolConfig, type RuntimeTool, type RuntimeToolConfig, Runtype, type AgentSkillBinding as RuntypeAgentSkillBinding, RuntypeApiError, RuntypeClient, type ConditionalStepConfig as RuntypeConditionalStepConfig, type RuntypeConfig, type FetchUrlStepConfig as RuntypeFetchUrlStepConfig, RuntypeFlowBuilder, type FlowConfig as RuntypeFlowConfig, type GenerateEmbeddingStepConfig as RuntypeGenerateEmbeddingStepConfig, type GetRecordStepConfig as RuntypeGetRecordStepConfig, type ListRecordsStepConfig as RuntypeListRecordsStepConfig, type LoopStepConfig as RuntypeLoopStepConfig, type Message as RuntypeMessage, type ModelOverride$1 as RuntypeModelOverride, type Prompt as RuntypePrompt, type PromptStepConfig as RuntypePromptStepConfig, type RuntypeRecord, type RecordConfig as RuntypeRecordConfig, type RetrieveRecordStepConfig as RuntypeRetrieveRecordStepConfig, type SearchStepConfig as RuntypeSearchStepConfig, type SendEmailStepConfig as RuntypeSendEmailStepConfig, type SendEventStepConfig as RuntypeSendEventStepConfig, type SendStreamStepConfig as RuntypeSendStreamStepConfig, type SetVariableStepConfig as RuntypeSetVariableStepConfig, type Skill as RuntypeSkill, type SkillCapabilities as RuntypeSkillCapabilities, type SkillFrontmatter as RuntypeSkillFrontmatter, type SkillManifest as RuntypeSkillManifest, type SkillProposal as RuntypeSkillProposal, type SkillRuntypeExtensions as RuntypeSkillRuntypeExtensions, type SkillVersion as RuntypeSkillVersion, type TransformDataStepConfig as RuntypeTransformDataStepConfig, type UpsertFlowConfig as RuntypeUpsertFlowConfig, type UpsertRecordStepConfig as RuntypeUpsertRecordStepConfig, type VectorSearchStepConfig as RuntypeVectorSearchStepConfig, type WaitUntilStepConfig as RuntypeWaitUntilStepConfig, SDK_USER_AGENT, SDK_VERSION, STEP_FIELD_REGISTRY, STEP_TYPE_TO_METHOD, type Schedule, type ScheduleExecutionOptions, type ScheduleListParams, type ScheduleMessage, type ScheduleMessageSet, type ScheduleMessages, type ScheduleMutationResponse, type ScheduleRun, type ScheduleRunNowResponse, type ScheduleStatusResponse, type ScheduleTarget, type ScheduleTrigger, SchedulesEndpoint, type SearchStepConfig$1 as SearchStepConfig, type Secret, type SecretCheckResponse, type SecretDeleteResponse, type SecretSetupUrlRequest, type SecretSetupUrlResponse, SecretsEndpoint, type SelectOrganizationProviderCredentialRequest, type SelectOrganizationProviderCredentialResponse, type SendEmailStepConfig$1 as SendEmailStepConfig, type SendEventStepConfig$1 as SendEventStepConfig, type SendStreamStepConfig$1 as SendStreamStepConfig, type SetVariableStepConfig$1 as SetVariableStepConfig, type SkillDefinition, SkillDriftError, SkillEnsureConflictError, type SkillListPage, type SkillListPagination, type SkillListParams, type SkillManifestInput, type SkillMarkdownInput, type SkillOrigin, type SkillProposalStatus, SkillProposalsNamespace, type SkillPullResult, type SkillStatus, type SkillTrustLevel, type SkillVersionStatus, type SkillWithVersion, type SkillWriteInput, SkillsNamespace, type SlackAppStatusResponse, type SlackInstallRequest, type SlackManifestRequest, type SlackManifestResponse, type SlackOAuthStartRequest, type SlackOAuthStartResponse, type StepCompleteEvent, type StepDeltaEvent, type StepFallback, type StepFieldMeta, type StepStartEvent, type StepWaitingLocalEvent, type StreamCallbacks, type StreamConsumeOptions, type StreamEvent, type StreamEventOf, type SubagentToolConfig, type Surface, type SurfaceDefinition, type SurfaceDefinitionStatus, type SurfaceDefinitionType, SurfaceDriftError, SurfaceEnsureConflictError, type SurfaceListParams, type SurfacePullResult, SurfacesEndpoint, SurfacesNamespace, type TextContentPart, type Tool, type ToolApprovalGrant, ToolApprovalGrantsEndpoint, type ToolConfig, type ToolDefinition, type ToolDefinitionType, ToolDriftError, ToolEnsureConflictError, type ToolPullResult, type ToolWithValidation, type ToolsConfig, ToolsEndpoint, ToolsNamespace, type TransformDataStepConfig$1 as TransformDataStepConfig, type TypedCreateRecordRequest, type TypedRecordListItem, type TypedRecordWriteResponse, TypedRecordsScope, type TypedRuntypeRecord, UNIFIED_EVENTS_QUERY, type UpdateClientTokenRequest, type UpdateCollectionRequest, type UpdateCollectionResponse, type UpdateConversationRequest, type UpdateEvalCaseInput, type UpdateEvalSuiteInput, type UpdateFlowRequest, type UpdatePromptData, type UpdateProviderKeyRequest, type UpdateScheduleRequest, type UpdateSecretRequest, type UpdateToolRequest, type UpdatedFlow, type UpsertFlowConfig$1 as UpsertFlowConfig, type UpsertOptions, type UpsertRecordStepConfig$1 as UpsertRecordStepConfig, type UserProfile, UsersEndpoint, type ValidateExistingRecordsResponse, type VectorSearchStepConfig$1 as VectorSearchStepConfig, type VersionPublishOptions, type VersionType, type WaitUntilStepConfig$1 as WaitUntilStepConfig, type WorkflowCompileDeps, type WorkflowCompletionCriteriaConfig, type WorkflowConfig, type WorkflowConfigFactory, type WorkflowContext, type WorkflowDefinition, type WorkflowHookEntry, type WorkflowHookKind, type WorkflowHookRef, type WorkflowHookSignatures, type WorkflowMilestoneConfig, type WorkflowPhase, type WorkflowPolicyConfig, type WorkflowRecoveryConfig, type WorkflowSlot, type WorkflowStallPolicy, applyGeneratedRuntimeToolProposalToDispatchRequest, attachRuntimeToolsToDispatchRequest, buildAgentAdmissionHeaders, buildEmptySessionNudge, buildGeneratedRuntimeToolGateOutput, buildLedgerOffloadReference, buildObservationMaskMarker, buildPolicyGuidance, buildSendViewOffloadMarker, calledTool, compileWorkflowConfig, completed, computeAgentContentHash, computeEvalContentHash, computeFlowContentHash, computeFpoContentHash, computeProductContentHash, computeSkillContentHash, computeSurfaceContentHash, computeToolContentHash, contains, cost, createAgentEventTranslator, createClient, createExternalTool, createFlowEventTranslator, defaultWorkflow, defaultWorkflowConfig, defineAgent, defineEval, defineFlow, defineFpo, definePlaybook, defineProduct, defineSkill, defineSurface, defineTool, deployWorkflow, ensureDefaultWorkflowHooks, ensureEval, ensureFpo, evaluateGeneratedRuntimeToolProposal, extractDeclaredToolResultChars, gameWorkflow, getDefaultPlanPath, getLikelySupportingCandidatePaths, interpolateWorkflowTemplate, isCatalogClientToolRef, isDiscoveryToolName, isMarathonArtifactPath, isPreservationSensitiveTask, isUnifiedEventType, isWorkflowHookRef, jsonField, judge, judges, latency, length, listWorkflowHooks, matchesExpected, maxToolCalls, noError, normalizeAgentDefinition, normalizeCandidatePath, normalizeFpoDefinition, normalizeProductDefinition, normalizeSkillDefinition, normalizeSurfaceDefinition, normalizeToolDefinition, notCalledTool, notContains, parseFinalBuffer, parseLedgerArtifactRelativePath, parseOffloadedOutputId, parseSSEChunk, processStream, pullEval, pullFpo, ranStep, regex, registerWorkflowHook, resolveStallStopAfter, resolveWorkflowHook, runEvalSuite, sanitizeTaskSlug, shouldInjectEmptySessionNudge, shouldRequestModelEscalation, stepOrder, streamEvents, toolOrder, unregisterWorkflowHook, usedNoTools, validJson, withDetachedReconnect, withUnifiedEvents };