@goodtiming/baton-sdk 1.0.0 → 1.1.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.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const SDK_VERSION = "ts-1.0.0";
3
+ declare const SDK_VERSION = "ts-1.1.0";
4
4
 
5
5
  /**
6
6
  * Zod schemas + TS types for the Baton event stream per SPEC §11.4.
@@ -14,7 +14,7 @@ declare const SDK_VERSION = "ts-1.0.0";
14
14
  *
15
15
  * All concrete event schemas share the same envelope fields and differ only
16
16
  * in `payload`. Fields match Python field-for-field (snake_case on the wire,
17
- * per CHARTER's wire-compatibility requirement — NOT camelCase).
17
+ * NOT camelCase).
18
18
  */
19
19
 
20
20
  /** Emitted before the vendor handler runs. `params` is PII-scrubbed at
@@ -133,7 +133,6 @@ declare const CaptureObservedSchema: z.ZodObject<{
133
133
  audience: z.ZodOptional<z.ZodString>;
134
134
  overlay: z.ZodOptional<z.ZodString>;
135
135
  }, z.core.$strict>;
136
- /** @experimental May change in a minor release. */
137
136
  type CaptureObserved = z.infer<typeof CaptureObservedSchema>;
138
137
  declare const EventTypeSchema: z.ZodEnum<{
139
138
  tool_call_start: "tool_call_start";
@@ -2489,7 +2488,8 @@ interface HttpSinkOptions {
2489
2488
  /** How long the flush at process exit, or an explicit `flush()` or
2490
2489
  * `aclose()`, may take in total, in ms, at most 2^31 - 1. Default 3000. */
2491
2490
  shutdownFlushTimeoutMs?: number;
2492
- /** The longest an event waits before its batch is sent, in ms. Default 5000. */
2491
+ /** The longest an event waits before its batch is sent, in ms. Default
2492
+ * 5000, or 0 on Cloudflare Workers. At 0 a write sends at once. */
2493
2493
  flushIntervalMs?: number;
2494
2494
  /** Injectable for tests; defaults to the global `fetch`. */
2495
2495
  fetchImpl?: typeof fetch;
@@ -2545,8 +2545,12 @@ declare class HttpSink implements Sink {
2545
2545
  /** Whether the queued pass sends everything waiting, not only what is due. */
2546
2546
  private forceNext;
2547
2547
  private flushTimer;
2548
- /** Set by a failed batch: only the timer, a flush or a close tries again. */
2548
+ /** Set by a failed batch: only the timer, a flush, a close or, at
2549
+ * `flushIntervalMs` 0, a write after `retryFrom` tries again. */
2549
2550
  private waitForTimer;
2551
+ /** When a failed batch may be tried again. At `flushIntervalMs` 0 the
2552
+ * first write from then retries, as a Worker may drop the timer. */
2553
+ private retryFrom;
2550
2554
  /** Nothing is sent before this `Date.now()`, from a 429's `Retry-After`. */
2551
2555
  private retryAt;
2552
2556
  /** Set for the life of the sink by a 404 or 405 on the batch path. */
@@ -2702,9 +2706,7 @@ interface Principal {
2702
2706
  /** The company this principal belongs to. Sent as `organization`, and
2703
2707
  * dropped alone when unusable (SPEC §11.4). */
2704
2708
  organization?: Organization | null | undefined;
2705
- /** @experimental May change in a minor release.
2706
- *
2707
- * As `Organization.labels`. A principal's labels and its organization's
2709
+ /** As `Organization.labels`. A principal's labels and its organization's
2708
2710
  * are sent together. */
2709
2711
  labels?: readonly string[] | undefined;
2710
2712
  }
@@ -2715,9 +2717,7 @@ interface Organization {
2715
2717
  organizationId: string;
2716
2718
  form?: PrincipalForm | undefined;
2717
2719
  displayName?: string | null | undefined;
2718
- /** @experimental May change in a minor release.
2719
- *
2720
- * Your names for the groups this caller is in, for Console settings to
2720
+ /** Your names for the groups this caller is in, for Console settings to
2721
2721
  * match (SPEC §11.4). Baton sees them, so use group names or keys you keep,
2722
2722
  * never raw ids. */
2723
2723
  labels?: readonly string[] | undefined;
@@ -2920,9 +2920,7 @@ interface BatonConfig {
2920
2920
  * goal still arrives through `user_goal`. `"on"` registers the tool and
2921
2921
  * serves its instructions. */
2922
2922
  reportMode?: "on" | "off";
2923
- /** @experimental May change in a minor release.
2924
- *
2925
- * Where capture settings come from. `"local"` (default): the values in
2923
+ /** Where capture settings come from. `"local"` (default): the values in
2926
2924
  * this config, and Baton is never asked. `"console"`: the settings saved on
2927
2925
  * the Console's Capture page, read from the collector every
2928
2926
  * `settingsRefreshMs`, so they can differ by label, client or a share of
@@ -2936,9 +2934,7 @@ interface BatonConfig {
2936
2934
  * so the Console can hide reports from some callers only when they are on
2937
2935
  * here. */
2938
2936
  settings?: SettingsMode;
2939
- /** @experimental May change in a minor release.
2940
- *
2941
- * How often `settings: "console"` reads the saved settings, in
2937
+ /** How often `settings: "console"` reads the saved settings, in
2942
2938
  * milliseconds. Default 60000, at least 15000. */
2943
2939
  settingsRefreshMs?: number;
2944
2940
  /** Per-tool intent-param injection (mirrors baton-extmcp's vendor-neutral
@@ -3007,6 +3003,13 @@ interface BatonConfig {
3007
3003
  * what a page shows. A vendor who must not send real identities hashes
3008
3004
  * inside the hook and returns `form: "hashed"`. */
3009
3005
  resolvePrincipal?: ResolvePrincipalHook;
3006
+ /** A low-level `Server`'s tools, as its `tools/list` answers them, or a
3007
+ * function that returns them. Read once per `withBaton` or `createBaton`.
3008
+ * Without it Baton learns the tools from the lists its servers serve, so a
3009
+ * process that has served none yet, such as a fresh worker, takes
3010
+ * `user_goal` off every call, even from a tool that declares its own. An
3011
+ * `McpServer` does not read it. */
3012
+ tools?: readonly unknown[] | (() => readonly unknown[]);
3010
3013
  }
3011
3014
 
3012
3015
  /**
@@ -3077,9 +3080,9 @@ declare class BatonHandle {
3077
3080
  * a `user_goal` intent param on every wrapped tool's schema (SPEC §11.4.1
3078
3081
  * `call_intent`/`intent_source`), and captures a `surface_snapshot`
3079
3082
  * of the vendor-true surface. Every payload leaving here runs through the
3080
- * configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`)
3081
- * — see README "What is not here yet" for what's still not here (the low-level
3082
- * `Server` adapter).
3083
+ * configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`).
3084
+ * On a low-level `Server`, which has no tool registry, the same is done at its
3085
+ * `tools/list` and `tools/call` handlers: see `installLowLevelToolSeams`.
3083
3086
  *
3084
3087
  * Interception mechanism: `McpServer` has no middleware API (unlike the
3085
3088
  * standalone `fastmcp` library's `Middleware`/`CallNext`), so this patches
@@ -3136,12 +3139,19 @@ interface SupportedMcpServer {
3136
3139
  readonly server: unknown;
3137
3140
  registerTool(name: string, ...rest: unknown[]): unknown;
3138
3141
  }
3139
- /** Install Baton into an `McpServer`. See module docstring for usage. */
3140
- declare function withBaton(server: SupportedMcpServer, supplied?: BatonConfig): BatonHandle;
3142
+ /** The official SDK's low-level `Server`, 1.x or v2, on which the vendor sets
3143
+ * its own `tools/list` and `tools/call` handlers. */
3144
+ interface SupportedLowLevelServer {
3145
+ setRequestHandler(method: unknown, ...rest: unknown[]): unknown;
3146
+ }
3147
+ type SupportedServer = SupportedMcpServer | SupportedLowLevelServer;
3148
+ /** Install Baton into an `McpServer` or a low-level `Server`. See module
3149
+ * docstring for usage. */
3150
+ declare function withBaton(server: SupportedServer, supplied?: BatonConfig): BatonHandle;
3141
3151
  /** One Baton for a process that builds a new `McpServer` for every request.
3142
3152
  * Owns the sink, so a request has nothing to close. */
3143
3153
  interface Baton {
3144
- wrap(server: SupportedMcpServer): void;
3154
+ wrap(server: SupportedServer): void;
3145
3155
  flush(): Promise<void>;
3146
3156
  aclose(): Promise<void>;
3147
3157
  }
@@ -3247,8 +3257,8 @@ interface SessionOptions {
3247
3257
  sessionId?: string;
3248
3258
  /** Who the vendor says is calling: a `Principal`, which may carry its
3249
3259
  * `organization`, or an `Organization` alone when only the company is known.
3250
- * A block with only a company and no `sessionId` is never joined to another
3251
- * (SPEC §11.5.1), so pass your own `sessionId` then. */
3260
+ * A block with only a company and no `sessionId` gets a session of its own,
3261
+ * so pass your own `sessionId` to keep a conversation's blocks together. */
3252
3262
  principal?: Principal | Organization;
3253
3263
  /** What the calling client said about itself. */
3254
3264
  clientInfo?: {
@@ -3379,4 +3389,4 @@ interface IntentParam {
3379
3389
  }
3380
3390
  declare const INTENT_PARAMS: readonly IntentParam[];
3381
3391
 
3382
- export { type AnnotateOptions, type AnnotationEvent, type AnnotationPayload, type AuthInfo, type Baton, type BatonConfig, BatonHandle, type CaptureObserved, Client, type ClientOptions, type ClientReportEvent, type ClientReportPayload, type Event, EventSchema, type EventType, FileSink, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ListToolsOptions, MultiSink, type ObservedError, type Organization, type Principal, type PrincipalForm, type PrincipalResolutionContext, type PromptGetEndEvent, type PromptGetEndPayload, type PromptGetErrorEvent, type PromptGetErrorPayload, type PromptGetStartEvent, type PromptGetStartPayload, type PromptListEndEvent, type PromptListEndPayload, type PromptListErrorEvent, type PromptListErrorPayload, type PromptListStartEvent, type PromptListStartPayload, type ReportTool, type ResolvePrincipalHook, type ResourceListEndEvent, type ResourceListEndPayload, type ResourceListErrorEvent, type ResourceListErrorPayload, type ResourceListStartEvent, type ResourceListStartPayload, type ResourceReadEndEvent, type ResourceReadEndPayload, type ResourceReadErrorEvent, type ResourceReadErrorPayload, type ResourceReadStartEvent, type ResourceReadStartPayload, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, SinkClosedError, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, type SurfaceSnapshotPayload, type ToolCallEndEvent, type ToolCallEndPayload, type ToolCallErrorEvent, type ToolCallErrorPayload, type ToolCallStartEvent, type ToolCallStartPayload, type ToolListEndEvent, type ToolListEndPayload, type ToolListErrorEvent, type ToolListErrorPayload, type ToolListStartEvent, type ToolListStartPayload, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, reportTool, withBaton };
3392
+ export { type AnnotateOptions, type AnnotationEvent, type AnnotationPayload, type AuthInfo, type Baton, type BatonConfig, BatonHandle, type CaptureObserved, Client, type ClientOptions, type ClientReportEvent, type ClientReportPayload, type Event, EventSchema, type EventType, FileSink, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ListToolsOptions, MultiSink, type ObservedError, type Organization, type Principal, type PrincipalForm, type PrincipalResolutionContext, type PromptGetEndEvent, type PromptGetEndPayload, type PromptGetErrorEvent, type PromptGetErrorPayload, type PromptGetStartEvent, type PromptGetStartPayload, type PromptListEndEvent, type PromptListEndPayload, type PromptListErrorEvent, type PromptListErrorPayload, type PromptListStartEvent, type PromptListStartPayload, type ReportTool, type ResolvePrincipalHook, type ResourceListEndEvent, type ResourceListEndPayload, type ResourceListErrorEvent, type ResourceListErrorPayload, type ResourceListStartEvent, type ResourceListStartPayload, type ResourceReadEndEvent, type ResourceReadEndPayload, type ResourceReadErrorEvent, type ResourceReadErrorPayload, type ResourceReadStartEvent, type ResourceReadStartPayload, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, SinkClosedError, StdoutSink, type StdoutSinkOptions, type SupportedLowLevelServer, type SupportedMcpServer, type SupportedServer, type SurfaceSnapshotEvent, type SurfaceSnapshotPayload, type ToolCallEndEvent, type ToolCallEndPayload, type ToolCallErrorEvent, type ToolCallErrorPayload, type ToolCallStartEvent, type ToolCallStartPayload, type ToolListEndEvent, type ToolListEndPayload, type ToolListErrorEvent, type ToolListErrorPayload, type ToolListStartEvent, type ToolListStartPayload, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, reportTool, withBaton };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const SDK_VERSION = "ts-1.0.0";
3
+ declare const SDK_VERSION = "ts-1.1.0";
4
4
 
5
5
  /**
6
6
  * Zod schemas + TS types for the Baton event stream per SPEC §11.4.
@@ -14,7 +14,7 @@ declare const SDK_VERSION = "ts-1.0.0";
14
14
  *
15
15
  * All concrete event schemas share the same envelope fields and differ only
16
16
  * in `payload`. Fields match Python field-for-field (snake_case on the wire,
17
- * per CHARTER's wire-compatibility requirement — NOT camelCase).
17
+ * NOT camelCase).
18
18
  */
19
19
 
20
20
  /** Emitted before the vendor handler runs. `params` is PII-scrubbed at
@@ -133,7 +133,6 @@ declare const CaptureObservedSchema: z.ZodObject<{
133
133
  audience: z.ZodOptional<z.ZodString>;
134
134
  overlay: z.ZodOptional<z.ZodString>;
135
135
  }, z.core.$strict>;
136
- /** @experimental May change in a minor release. */
137
136
  type CaptureObserved = z.infer<typeof CaptureObservedSchema>;
138
137
  declare const EventTypeSchema: z.ZodEnum<{
139
138
  tool_call_start: "tool_call_start";
@@ -2489,7 +2488,8 @@ interface HttpSinkOptions {
2489
2488
  /** How long the flush at process exit, or an explicit `flush()` or
2490
2489
  * `aclose()`, may take in total, in ms, at most 2^31 - 1. Default 3000. */
2491
2490
  shutdownFlushTimeoutMs?: number;
2492
- /** The longest an event waits before its batch is sent, in ms. Default 5000. */
2491
+ /** The longest an event waits before its batch is sent, in ms. Default
2492
+ * 5000, or 0 on Cloudflare Workers. At 0 a write sends at once. */
2493
2493
  flushIntervalMs?: number;
2494
2494
  /** Injectable for tests; defaults to the global `fetch`. */
2495
2495
  fetchImpl?: typeof fetch;
@@ -2545,8 +2545,12 @@ declare class HttpSink implements Sink {
2545
2545
  /** Whether the queued pass sends everything waiting, not only what is due. */
2546
2546
  private forceNext;
2547
2547
  private flushTimer;
2548
- /** Set by a failed batch: only the timer, a flush or a close tries again. */
2548
+ /** Set by a failed batch: only the timer, a flush, a close or, at
2549
+ * `flushIntervalMs` 0, a write after `retryFrom` tries again. */
2549
2550
  private waitForTimer;
2551
+ /** When a failed batch may be tried again. At `flushIntervalMs` 0 the
2552
+ * first write from then retries, as a Worker may drop the timer. */
2553
+ private retryFrom;
2550
2554
  /** Nothing is sent before this `Date.now()`, from a 429's `Retry-After`. */
2551
2555
  private retryAt;
2552
2556
  /** Set for the life of the sink by a 404 or 405 on the batch path. */
@@ -2702,9 +2706,7 @@ interface Principal {
2702
2706
  /** The company this principal belongs to. Sent as `organization`, and
2703
2707
  * dropped alone when unusable (SPEC §11.4). */
2704
2708
  organization?: Organization | null | undefined;
2705
- /** @experimental May change in a minor release.
2706
- *
2707
- * As `Organization.labels`. A principal's labels and its organization's
2709
+ /** As `Organization.labels`. A principal's labels and its organization's
2708
2710
  * are sent together. */
2709
2711
  labels?: readonly string[] | undefined;
2710
2712
  }
@@ -2715,9 +2717,7 @@ interface Organization {
2715
2717
  organizationId: string;
2716
2718
  form?: PrincipalForm | undefined;
2717
2719
  displayName?: string | null | undefined;
2718
- /** @experimental May change in a minor release.
2719
- *
2720
- * Your names for the groups this caller is in, for Console settings to
2720
+ /** Your names for the groups this caller is in, for Console settings to
2721
2721
  * match (SPEC §11.4). Baton sees them, so use group names or keys you keep,
2722
2722
  * never raw ids. */
2723
2723
  labels?: readonly string[] | undefined;
@@ -2920,9 +2920,7 @@ interface BatonConfig {
2920
2920
  * goal still arrives through `user_goal`. `"on"` registers the tool and
2921
2921
  * serves its instructions. */
2922
2922
  reportMode?: "on" | "off";
2923
- /** @experimental May change in a minor release.
2924
- *
2925
- * Where capture settings come from. `"local"` (default): the values in
2923
+ /** Where capture settings come from. `"local"` (default): the values in
2926
2924
  * this config, and Baton is never asked. `"console"`: the settings saved on
2927
2925
  * the Console's Capture page, read from the collector every
2928
2926
  * `settingsRefreshMs`, so they can differ by label, client or a share of
@@ -2936,9 +2934,7 @@ interface BatonConfig {
2936
2934
  * so the Console can hide reports from some callers only when they are on
2937
2935
  * here. */
2938
2936
  settings?: SettingsMode;
2939
- /** @experimental May change in a minor release.
2940
- *
2941
- * How often `settings: "console"` reads the saved settings, in
2937
+ /** How often `settings: "console"` reads the saved settings, in
2942
2938
  * milliseconds. Default 60000, at least 15000. */
2943
2939
  settingsRefreshMs?: number;
2944
2940
  /** Per-tool intent-param injection (mirrors baton-extmcp's vendor-neutral
@@ -3007,6 +3003,13 @@ interface BatonConfig {
3007
3003
  * what a page shows. A vendor who must not send real identities hashes
3008
3004
  * inside the hook and returns `form: "hashed"`. */
3009
3005
  resolvePrincipal?: ResolvePrincipalHook;
3006
+ /** A low-level `Server`'s tools, as its `tools/list` answers them, or a
3007
+ * function that returns them. Read once per `withBaton` or `createBaton`.
3008
+ * Without it Baton learns the tools from the lists its servers serve, so a
3009
+ * process that has served none yet, such as a fresh worker, takes
3010
+ * `user_goal` off every call, even from a tool that declares its own. An
3011
+ * `McpServer` does not read it. */
3012
+ tools?: readonly unknown[] | (() => readonly unknown[]);
3010
3013
  }
3011
3014
 
3012
3015
  /**
@@ -3077,9 +3080,9 @@ declare class BatonHandle {
3077
3080
  * a `user_goal` intent param on every wrapped tool's schema (SPEC §11.4.1
3078
3081
  * `call_intent`/`intent_source`), and captures a `surface_snapshot`
3079
3082
  * of the vendor-true surface. Every payload leaving here runs through the
3080
- * configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`)
3081
- * — see README "What is not here yet" for what's still not here (the low-level
3082
- * `Server` adapter).
3083
+ * configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`).
3084
+ * On a low-level `Server`, which has no tool registry, the same is done at its
3085
+ * `tools/list` and `tools/call` handlers: see `installLowLevelToolSeams`.
3083
3086
  *
3084
3087
  * Interception mechanism: `McpServer` has no middleware API (unlike the
3085
3088
  * standalone `fastmcp` library's `Middleware`/`CallNext`), so this patches
@@ -3136,12 +3139,19 @@ interface SupportedMcpServer {
3136
3139
  readonly server: unknown;
3137
3140
  registerTool(name: string, ...rest: unknown[]): unknown;
3138
3141
  }
3139
- /** Install Baton into an `McpServer`. See module docstring for usage. */
3140
- declare function withBaton(server: SupportedMcpServer, supplied?: BatonConfig): BatonHandle;
3142
+ /** The official SDK's low-level `Server`, 1.x or v2, on which the vendor sets
3143
+ * its own `tools/list` and `tools/call` handlers. */
3144
+ interface SupportedLowLevelServer {
3145
+ setRequestHandler(method: unknown, ...rest: unknown[]): unknown;
3146
+ }
3147
+ type SupportedServer = SupportedMcpServer | SupportedLowLevelServer;
3148
+ /** Install Baton into an `McpServer` or a low-level `Server`. See module
3149
+ * docstring for usage. */
3150
+ declare function withBaton(server: SupportedServer, supplied?: BatonConfig): BatonHandle;
3141
3151
  /** One Baton for a process that builds a new `McpServer` for every request.
3142
3152
  * Owns the sink, so a request has nothing to close. */
3143
3153
  interface Baton {
3144
- wrap(server: SupportedMcpServer): void;
3154
+ wrap(server: SupportedServer): void;
3145
3155
  flush(): Promise<void>;
3146
3156
  aclose(): Promise<void>;
3147
3157
  }
@@ -3247,8 +3257,8 @@ interface SessionOptions {
3247
3257
  sessionId?: string;
3248
3258
  /** Who the vendor says is calling: a `Principal`, which may carry its
3249
3259
  * `organization`, or an `Organization` alone when only the company is known.
3250
- * A block with only a company and no `sessionId` is never joined to another
3251
- * (SPEC §11.5.1), so pass your own `sessionId` then. */
3260
+ * A block with only a company and no `sessionId` gets a session of its own,
3261
+ * so pass your own `sessionId` to keep a conversation's blocks together. */
3252
3262
  principal?: Principal | Organization;
3253
3263
  /** What the calling client said about itself. */
3254
3264
  clientInfo?: {
@@ -3379,4 +3389,4 @@ interface IntentParam {
3379
3389
  }
3380
3390
  declare const INTENT_PARAMS: readonly IntentParam[];
3381
3391
 
3382
- export { type AnnotateOptions, type AnnotationEvent, type AnnotationPayload, type AuthInfo, type Baton, type BatonConfig, BatonHandle, type CaptureObserved, Client, type ClientOptions, type ClientReportEvent, type ClientReportPayload, type Event, EventSchema, type EventType, FileSink, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ListToolsOptions, MultiSink, type ObservedError, type Organization, type Principal, type PrincipalForm, type PrincipalResolutionContext, type PromptGetEndEvent, type PromptGetEndPayload, type PromptGetErrorEvent, type PromptGetErrorPayload, type PromptGetStartEvent, type PromptGetStartPayload, type PromptListEndEvent, type PromptListEndPayload, type PromptListErrorEvent, type PromptListErrorPayload, type PromptListStartEvent, type PromptListStartPayload, type ReportTool, type ResolvePrincipalHook, type ResourceListEndEvent, type ResourceListEndPayload, type ResourceListErrorEvent, type ResourceListErrorPayload, type ResourceListStartEvent, type ResourceListStartPayload, type ResourceReadEndEvent, type ResourceReadEndPayload, type ResourceReadErrorEvent, type ResourceReadErrorPayload, type ResourceReadStartEvent, type ResourceReadStartPayload, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, SinkClosedError, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, type SurfaceSnapshotPayload, type ToolCallEndEvent, type ToolCallEndPayload, type ToolCallErrorEvent, type ToolCallErrorPayload, type ToolCallStartEvent, type ToolCallStartPayload, type ToolListEndEvent, type ToolListEndPayload, type ToolListErrorEvent, type ToolListErrorPayload, type ToolListStartEvent, type ToolListStartPayload, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, reportTool, withBaton };
3392
+ export { type AnnotateOptions, type AnnotationEvent, type AnnotationPayload, type AuthInfo, type Baton, type BatonConfig, BatonHandle, type CaptureObserved, Client, type ClientOptions, type ClientReportEvent, type ClientReportPayload, type Event, EventSchema, type EventType, FileSink, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ListToolsOptions, MultiSink, type ObservedError, type Organization, type Principal, type PrincipalForm, type PrincipalResolutionContext, type PromptGetEndEvent, type PromptGetEndPayload, type PromptGetErrorEvent, type PromptGetErrorPayload, type PromptGetStartEvent, type PromptGetStartPayload, type PromptListEndEvent, type PromptListEndPayload, type PromptListErrorEvent, type PromptListErrorPayload, type PromptListStartEvent, type PromptListStartPayload, type ReportTool, type ResolvePrincipalHook, type ResourceListEndEvent, type ResourceListEndPayload, type ResourceListErrorEvent, type ResourceListErrorPayload, type ResourceListStartEvent, type ResourceListStartPayload, type ResourceReadEndEvent, type ResourceReadEndPayload, type ResourceReadErrorEvent, type ResourceReadErrorPayload, type ResourceReadStartEvent, type ResourceReadStartPayload, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, SinkClosedError, StdoutSink, type StdoutSinkOptions, type SupportedLowLevelServer, type SupportedMcpServer, type SupportedServer, type SurfaceSnapshotEvent, type SurfaceSnapshotPayload, type ToolCallEndEvent, type ToolCallEndPayload, type ToolCallErrorEvent, type ToolCallErrorPayload, type ToolCallStartEvent, type ToolCallStartPayload, type ToolListEndEvent, type ToolListEndPayload, type ToolListErrorEvent, type ToolListErrorPayload, type ToolListStartEvent, type ToolListStartPayload, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, reportTool, withBaton };