@goodtiming/baton-sdk 1.2.2 → 1.3.1
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/README.md +48 -2
- package/dist/index.cjs +740 -149
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +64 -24
- package/dist/index.d.ts +64 -24
- package/dist/index.js +740 -149
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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.
|
|
3
|
+
declare const SDK_VERSION = "ts-1.3.1";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Zod schemas + TS types for the Baton event stream per SPEC §11.4.
|
|
@@ -2852,6 +2852,7 @@ type ResultCaptureMode = (typeof RESULT_CAPTURE_MODES)[number];
|
|
|
2852
2852
|
|
|
2853
2853
|
declare const SETTINGS_MODES: readonly ["local", "console"];
|
|
2854
2854
|
type SettingsMode = (typeof SETTINGS_MODES)[number];
|
|
2855
|
+
type ReportMode = "on" | "off";
|
|
2855
2856
|
|
|
2856
2857
|
/** `BatonConfig.resolvePrincipal` — the ONLY identity provenance (SPEC §11.4).
|
|
2857
2858
|
*
|
|
@@ -3295,6 +3296,28 @@ declare function principalFromOAuthSub(context: PrincipalResolutionContext): Pri
|
|
|
3295
3296
|
* good enough is the vendor's call. */
|
|
3296
3297
|
declare function principalFromOAuthEmail(context: PrincipalResolutionContext): Principal | null;
|
|
3297
3298
|
|
|
3299
|
+
/** The annotation tool as data, for a vendor offering it through its own API (SPEC §5.6). */
|
|
3300
|
+
|
|
3301
|
+
/** The tool an MCP adapter registers under `reportMode: "on"`. */
|
|
3302
|
+
interface ReportTool {
|
|
3303
|
+
readonly name: string;
|
|
3304
|
+
readonly description: string;
|
|
3305
|
+
readonly inputSchema: Record<string, unknown>;
|
|
3306
|
+
/** The report pointer and `INTENT_INSTRUCTIONS`, for a vendor serving MCP itself. */
|
|
3307
|
+
readonly instructions: string;
|
|
3308
|
+
/** What to answer when `annotateArgs` returns `null`. */
|
|
3309
|
+
readonly refusal: string;
|
|
3310
|
+
/** The `annotate()` options for this tool's `args`, or `null` when there is
|
|
3311
|
+
* no `what_happened`: answer `refusal` and send nothing. */
|
|
3312
|
+
annotateArgs(args: Readonly<Record<string, unknown>>): AnnotateOptions | null;
|
|
3313
|
+
}
|
|
3314
|
+
/** The annotation tool an adapter registers on a server named
|
|
3315
|
+
* `vendorDisplayName`. `name` overrides the name made from it. */
|
|
3316
|
+
declare function reportTool(options: {
|
|
3317
|
+
vendorDisplayName: string;
|
|
3318
|
+
name?: string;
|
|
3319
|
+
}): ReportTool;
|
|
3320
|
+
|
|
3298
3321
|
/** The library's `listTools`: the tool list a vendor serving MCP itself hands
|
|
3299
3322
|
* its agents, and the `surface_snapshot` of the list it started from (SPEC
|
|
3300
3323
|
* §5.6, §11.4.2). */
|
|
@@ -3305,6 +3328,13 @@ interface ListToolsOptions {
|
|
|
3305
3328
|
instructions?: string | null;
|
|
3306
3329
|
}
|
|
3307
3330
|
|
|
3331
|
+
/** `serve()`: Baton around a vendor's own MCP dispatch function (SPEC §5.6).
|
|
3332
|
+
*
|
|
3333
|
+
* Each step here is pure and may throw; the client's `serve()` guards each
|
|
3334
|
+
* one, so a failure serves the vendor's own answer. */
|
|
3335
|
+
|
|
3336
|
+
type VendorTools = readonly unknown[] | (() => readonly unknown[]);
|
|
3337
|
+
|
|
3308
3338
|
/**
|
|
3309
3339
|
* The library API (SPEC §5.6): `Client` for a vendor whose agents reach it
|
|
3310
3340
|
* through something other than MCP — a REST API, a skill, or a tool loop in
|
|
@@ -3339,6 +3369,20 @@ interface ClientOptions {
|
|
|
3339
3369
|
scrubber?: (value: unknown) => unknown;
|
|
3340
3370
|
/** `"off"` sends no result: see `BatonConfig.resultCaptureMode`. */
|
|
3341
3371
|
resultCaptureMode?: ResultCaptureMode;
|
|
3372
|
+
/** `"console"` takes each caller's capture settings from the Console's
|
|
3373
|
+
* Capture page, read with the `dsn`'s key (experimental). */
|
|
3374
|
+
settings?: SettingsMode;
|
|
3375
|
+
/** How often the Console's settings are read, in milliseconds. Default 60000, at least 15000. */
|
|
3376
|
+
settingsRefreshMs?: number;
|
|
3377
|
+
/** Whether `serve()` adds the report tool. Default `"on"` with
|
|
3378
|
+
* `settings: "console"`, else `"off"`. */
|
|
3379
|
+
reportMode?: ReportMode;
|
|
3380
|
+
/** The name Baton's report text gives this server. Defaults to the server id. */
|
|
3381
|
+
vendorDisplayName?: string;
|
|
3382
|
+
/** The vendor's tools, or a function returning them, so `serve()` knows
|
|
3383
|
+
* them before it serves a list: pass them when a tool declares its own
|
|
3384
|
+
* `user_goal` or has the report tool's name. Read once, at the first request. */
|
|
3385
|
+
tools?: VendorTools;
|
|
3342
3386
|
}
|
|
3343
3387
|
interface SessionOptions {
|
|
3344
3388
|
/** The vendor's own id for the conversation; without one, the block mints one. */
|
|
@@ -3379,6 +3423,7 @@ interface AnnotateOptions {
|
|
|
3379
3423
|
suggestedImprovement?: string;
|
|
3380
3424
|
context?: Record<string, unknown>;
|
|
3381
3425
|
}
|
|
3426
|
+
type ServeOptions = Pick<SessionOptions, "principal" | "headers" | "sessionId">;
|
|
3382
3427
|
interface ObservedError {
|
|
3383
3428
|
/** `errorType` and `errorBody` are derived from it unless given. */
|
|
3384
3429
|
error?: unknown;
|
|
@@ -3432,6 +3477,23 @@ declare class Client {
|
|
|
3432
3477
|
* tool list: one it cannot read is returned as it came. Does not wait for
|
|
3433
3478
|
* the snapshot to be sent; `flush()` does. */
|
|
3434
3479
|
listTools<T>(tools: readonly T[], options?: ListToolsOptions): Promise<T[]>;
|
|
3480
|
+
/** Answer one MCP JSON-RPC `message` with `dispatch`, the vendor's own
|
|
3481
|
+
* function from message to answer, and Baton around it (SPEC §5.6).
|
|
3482
|
+
* Experimental.
|
|
3483
|
+
*
|
|
3484
|
+
* `initialize` gets Baton's instructions. `tools/list` gets `user_goal` and
|
|
3485
|
+
* the report tool, under the caller's Console settings, and sends the
|
|
3486
|
+
* snapshot. `tools/call` is traced, with `user_goal` removed before
|
|
3487
|
+
* `dispatch` sees it; Baton answers the report tool and a tool the caller's
|
|
3488
|
+
* overlay hides itself. Anything else goes to `dispatch` as it came.
|
|
3489
|
+
*
|
|
3490
|
+
* `options` are as on `session()`. A process learns the vendor's tools from
|
|
3491
|
+
* the lists it serves. Until it has, a call loses `user_goal` and the report
|
|
3492
|
+
* tool's name is Baton's; pass the `tools` option when a tool declares its
|
|
3493
|
+
* own `user_goal` or has the report tool's name. `dispatch` is called at
|
|
3494
|
+
* most once, and what it returns or throws comes back unchanged apart from
|
|
3495
|
+
* Baton's additions. A failure in Baton's own work is logged, never thrown. */
|
|
3496
|
+
serve(message: unknown, dispatch: (message: unknown) => unknown, options?: ServeOptions): Promise<unknown>;
|
|
3435
3497
|
/** Wait for events so far to reach the sink, then flush it. Never rejects;
|
|
3436
3498
|
* returns within the sink's shutdown budget plus 250 ms (SPEC §11.2 rule 7). */
|
|
3437
3499
|
flush(): Promise<void>;
|
|
@@ -3439,28 +3501,6 @@ declare class Client {
|
|
|
3439
3501
|
aclose(): Promise<void>;
|
|
3440
3502
|
}
|
|
3441
3503
|
|
|
3442
|
-
/** The annotation tool as data, for a vendor offering it through its own API (SPEC §5.6). */
|
|
3443
|
-
|
|
3444
|
-
/** The tool an MCP adapter registers under `reportMode: "on"`. */
|
|
3445
|
-
interface ReportTool {
|
|
3446
|
-
readonly name: string;
|
|
3447
|
-
readonly description: string;
|
|
3448
|
-
readonly inputSchema: Record<string, unknown>;
|
|
3449
|
-
/** The report pointer and `INTENT_INSTRUCTIONS`, for a vendor serving MCP itself. */
|
|
3450
|
-
readonly instructions: string;
|
|
3451
|
-
/** What to answer when `annotateArgs` returns `null`. */
|
|
3452
|
-
readonly refusal: string;
|
|
3453
|
-
/** The `annotate()` options for this tool's `args`, or `null` when there is
|
|
3454
|
-
* no `what_happened`: answer `refusal` and send nothing. */
|
|
3455
|
-
annotateArgs(args: Readonly<Record<string, unknown>>): AnnotateOptions | null;
|
|
3456
|
-
}
|
|
3457
|
-
/** The annotation tool an adapter registers on a server named
|
|
3458
|
-
* `vendorDisplayName`. `name` overrides the name made from it. */
|
|
3459
|
-
declare function reportTool(options: {
|
|
3460
|
-
vendorDisplayName: string;
|
|
3461
|
-
name?: string;
|
|
3462
|
-
}): ReportTool;
|
|
3463
|
-
|
|
3464
3504
|
/**
|
|
3465
3505
|
* Shared LLM-facing text: server instructions + annotation tool
|
|
3466
3506
|
* description. Byte-for-byte port of `baton` (Python)'s
|
|
@@ -3492,4 +3532,4 @@ interface IntentParam {
|
|
|
3492
3532
|
}
|
|
3493
3533
|
declare const INTENT_PARAMS: readonly IntentParam[];
|
|
3494
3534
|
|
|
3495
|
-
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 };
|
|
3535
|
+
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 ServeOptions, 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, type VendorTools, 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.
|
|
3
|
+
declare const SDK_VERSION = "ts-1.3.1";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Zod schemas + TS types for the Baton event stream per SPEC §11.4.
|
|
@@ -2852,6 +2852,7 @@ type ResultCaptureMode = (typeof RESULT_CAPTURE_MODES)[number];
|
|
|
2852
2852
|
|
|
2853
2853
|
declare const SETTINGS_MODES: readonly ["local", "console"];
|
|
2854
2854
|
type SettingsMode = (typeof SETTINGS_MODES)[number];
|
|
2855
|
+
type ReportMode = "on" | "off";
|
|
2855
2856
|
|
|
2856
2857
|
/** `BatonConfig.resolvePrincipal` — the ONLY identity provenance (SPEC §11.4).
|
|
2857
2858
|
*
|
|
@@ -3295,6 +3296,28 @@ declare function principalFromOAuthSub(context: PrincipalResolutionContext): Pri
|
|
|
3295
3296
|
* good enough is the vendor's call. */
|
|
3296
3297
|
declare function principalFromOAuthEmail(context: PrincipalResolutionContext): Principal | null;
|
|
3297
3298
|
|
|
3299
|
+
/** The annotation tool as data, for a vendor offering it through its own API (SPEC §5.6). */
|
|
3300
|
+
|
|
3301
|
+
/** The tool an MCP adapter registers under `reportMode: "on"`. */
|
|
3302
|
+
interface ReportTool {
|
|
3303
|
+
readonly name: string;
|
|
3304
|
+
readonly description: string;
|
|
3305
|
+
readonly inputSchema: Record<string, unknown>;
|
|
3306
|
+
/** The report pointer and `INTENT_INSTRUCTIONS`, for a vendor serving MCP itself. */
|
|
3307
|
+
readonly instructions: string;
|
|
3308
|
+
/** What to answer when `annotateArgs` returns `null`. */
|
|
3309
|
+
readonly refusal: string;
|
|
3310
|
+
/** The `annotate()` options for this tool's `args`, or `null` when there is
|
|
3311
|
+
* no `what_happened`: answer `refusal` and send nothing. */
|
|
3312
|
+
annotateArgs(args: Readonly<Record<string, unknown>>): AnnotateOptions | null;
|
|
3313
|
+
}
|
|
3314
|
+
/** The annotation tool an adapter registers on a server named
|
|
3315
|
+
* `vendorDisplayName`. `name` overrides the name made from it. */
|
|
3316
|
+
declare function reportTool(options: {
|
|
3317
|
+
vendorDisplayName: string;
|
|
3318
|
+
name?: string;
|
|
3319
|
+
}): ReportTool;
|
|
3320
|
+
|
|
3298
3321
|
/** The library's `listTools`: the tool list a vendor serving MCP itself hands
|
|
3299
3322
|
* its agents, and the `surface_snapshot` of the list it started from (SPEC
|
|
3300
3323
|
* §5.6, §11.4.2). */
|
|
@@ -3305,6 +3328,13 @@ interface ListToolsOptions {
|
|
|
3305
3328
|
instructions?: string | null;
|
|
3306
3329
|
}
|
|
3307
3330
|
|
|
3331
|
+
/** `serve()`: Baton around a vendor's own MCP dispatch function (SPEC §5.6).
|
|
3332
|
+
*
|
|
3333
|
+
* Each step here is pure and may throw; the client's `serve()` guards each
|
|
3334
|
+
* one, so a failure serves the vendor's own answer. */
|
|
3335
|
+
|
|
3336
|
+
type VendorTools = readonly unknown[] | (() => readonly unknown[]);
|
|
3337
|
+
|
|
3308
3338
|
/**
|
|
3309
3339
|
* The library API (SPEC §5.6): `Client` for a vendor whose agents reach it
|
|
3310
3340
|
* through something other than MCP — a REST API, a skill, or a tool loop in
|
|
@@ -3339,6 +3369,20 @@ interface ClientOptions {
|
|
|
3339
3369
|
scrubber?: (value: unknown) => unknown;
|
|
3340
3370
|
/** `"off"` sends no result: see `BatonConfig.resultCaptureMode`. */
|
|
3341
3371
|
resultCaptureMode?: ResultCaptureMode;
|
|
3372
|
+
/** `"console"` takes each caller's capture settings from the Console's
|
|
3373
|
+
* Capture page, read with the `dsn`'s key (experimental). */
|
|
3374
|
+
settings?: SettingsMode;
|
|
3375
|
+
/** How often the Console's settings are read, in milliseconds. Default 60000, at least 15000. */
|
|
3376
|
+
settingsRefreshMs?: number;
|
|
3377
|
+
/** Whether `serve()` adds the report tool. Default `"on"` with
|
|
3378
|
+
* `settings: "console"`, else `"off"`. */
|
|
3379
|
+
reportMode?: ReportMode;
|
|
3380
|
+
/** The name Baton's report text gives this server. Defaults to the server id. */
|
|
3381
|
+
vendorDisplayName?: string;
|
|
3382
|
+
/** The vendor's tools, or a function returning them, so `serve()` knows
|
|
3383
|
+
* them before it serves a list: pass them when a tool declares its own
|
|
3384
|
+
* `user_goal` or has the report tool's name. Read once, at the first request. */
|
|
3385
|
+
tools?: VendorTools;
|
|
3342
3386
|
}
|
|
3343
3387
|
interface SessionOptions {
|
|
3344
3388
|
/** The vendor's own id for the conversation; without one, the block mints one. */
|
|
@@ -3379,6 +3423,7 @@ interface AnnotateOptions {
|
|
|
3379
3423
|
suggestedImprovement?: string;
|
|
3380
3424
|
context?: Record<string, unknown>;
|
|
3381
3425
|
}
|
|
3426
|
+
type ServeOptions = Pick<SessionOptions, "principal" | "headers" | "sessionId">;
|
|
3382
3427
|
interface ObservedError {
|
|
3383
3428
|
/** `errorType` and `errorBody` are derived from it unless given. */
|
|
3384
3429
|
error?: unknown;
|
|
@@ -3432,6 +3477,23 @@ declare class Client {
|
|
|
3432
3477
|
* tool list: one it cannot read is returned as it came. Does not wait for
|
|
3433
3478
|
* the snapshot to be sent; `flush()` does. */
|
|
3434
3479
|
listTools<T>(tools: readonly T[], options?: ListToolsOptions): Promise<T[]>;
|
|
3480
|
+
/** Answer one MCP JSON-RPC `message` with `dispatch`, the vendor's own
|
|
3481
|
+
* function from message to answer, and Baton around it (SPEC §5.6).
|
|
3482
|
+
* Experimental.
|
|
3483
|
+
*
|
|
3484
|
+
* `initialize` gets Baton's instructions. `tools/list` gets `user_goal` and
|
|
3485
|
+
* the report tool, under the caller's Console settings, and sends the
|
|
3486
|
+
* snapshot. `tools/call` is traced, with `user_goal` removed before
|
|
3487
|
+
* `dispatch` sees it; Baton answers the report tool and a tool the caller's
|
|
3488
|
+
* overlay hides itself. Anything else goes to `dispatch` as it came.
|
|
3489
|
+
*
|
|
3490
|
+
* `options` are as on `session()`. A process learns the vendor's tools from
|
|
3491
|
+
* the lists it serves. Until it has, a call loses `user_goal` and the report
|
|
3492
|
+
* tool's name is Baton's; pass the `tools` option when a tool declares its
|
|
3493
|
+
* own `user_goal` or has the report tool's name. `dispatch` is called at
|
|
3494
|
+
* most once, and what it returns or throws comes back unchanged apart from
|
|
3495
|
+
* Baton's additions. A failure in Baton's own work is logged, never thrown. */
|
|
3496
|
+
serve(message: unknown, dispatch: (message: unknown) => unknown, options?: ServeOptions): Promise<unknown>;
|
|
3435
3497
|
/** Wait for events so far to reach the sink, then flush it. Never rejects;
|
|
3436
3498
|
* returns within the sink's shutdown budget plus 250 ms (SPEC §11.2 rule 7). */
|
|
3437
3499
|
flush(): Promise<void>;
|
|
@@ -3439,28 +3501,6 @@ declare class Client {
|
|
|
3439
3501
|
aclose(): Promise<void>;
|
|
3440
3502
|
}
|
|
3441
3503
|
|
|
3442
|
-
/** The annotation tool as data, for a vendor offering it through its own API (SPEC §5.6). */
|
|
3443
|
-
|
|
3444
|
-
/** The tool an MCP adapter registers under `reportMode: "on"`. */
|
|
3445
|
-
interface ReportTool {
|
|
3446
|
-
readonly name: string;
|
|
3447
|
-
readonly description: string;
|
|
3448
|
-
readonly inputSchema: Record<string, unknown>;
|
|
3449
|
-
/** The report pointer and `INTENT_INSTRUCTIONS`, for a vendor serving MCP itself. */
|
|
3450
|
-
readonly instructions: string;
|
|
3451
|
-
/** What to answer when `annotateArgs` returns `null`. */
|
|
3452
|
-
readonly refusal: string;
|
|
3453
|
-
/** The `annotate()` options for this tool's `args`, or `null` when there is
|
|
3454
|
-
* no `what_happened`: answer `refusal` and send nothing. */
|
|
3455
|
-
annotateArgs(args: Readonly<Record<string, unknown>>): AnnotateOptions | null;
|
|
3456
|
-
}
|
|
3457
|
-
/** The annotation tool an adapter registers on a server named
|
|
3458
|
-
* `vendorDisplayName`. `name` overrides the name made from it. */
|
|
3459
|
-
declare function reportTool(options: {
|
|
3460
|
-
vendorDisplayName: string;
|
|
3461
|
-
name?: string;
|
|
3462
|
-
}): ReportTool;
|
|
3463
|
-
|
|
3464
3504
|
/**
|
|
3465
3505
|
* Shared LLM-facing text: server instructions + annotation tool
|
|
3466
3506
|
* description. Byte-for-byte port of `baton` (Python)'s
|
|
@@ -3492,4 +3532,4 @@ interface IntentParam {
|
|
|
3492
3532
|
}
|
|
3493
3533
|
declare const INTENT_PARAMS: readonly IntentParam[];
|
|
3494
3534
|
|
|
3495
|
-
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 };
|
|
3535
|
+
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 ServeOptions, 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, type VendorTools, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, reportTool, withBaton };
|