@goodtiming/baton-sdk 0.5.7 → 0.5.8
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 +4 -3
- package/dist/index.cjs +187 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +33 -20
- package/dist/index.d.ts +33 -20
- package/dist/index.js +186 -110
- 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-0.5.
|
|
3
|
+
declare const SDK_VERSION = "ts-0.5.8";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Zod schemas + TS types for the Baton event stream per SPEC §11.4.
|
|
@@ -20,10 +20,11 @@ declare const SDK_VERSION = "ts-0.5.7";
|
|
|
20
20
|
/** Emitted before the vendor handler runs. `params` is PII-scrubbed at
|
|
21
21
|
* emit-time per SPEC §7.
|
|
22
22
|
*
|
|
23
|
-
* `call_intent`
|
|
24
|
-
*
|
|
25
|
-
* `overall_task`
|
|
26
|
-
* `params` — `params` stays exactly the vendor-visible
|
|
23
|
+
* `call_intent` is the value the SDK stripped from the injected `user_goal`
|
|
24
|
+
* param, and `call_expected` / `call_workflow` the retired `expected_result` /
|
|
25
|
+
* `overall_task` a stale client may still send (see `llmText.ts`); they ride
|
|
26
|
+
* as SIBLINGS of `params` — `params` stays exactly the vendor-visible
|
|
27
|
+
* arguments.
|
|
27
28
|
* `call_intent`/`call_expected` are call-scoped diagnostics;
|
|
28
29
|
* `call_workflow` is the task-label grouping key (console rung 3b, exact
|
|
29
30
|
* string continuity). `intent_source` records provenance
|
|
@@ -2188,7 +2189,8 @@ interface BatonConfig {
|
|
|
2188
2189
|
* for the same reason: a capitalisation you never chose would be a
|
|
2189
2190
|
* fabricated name. Falls back to the DSN's server segment when the server's
|
|
2190
2191
|
* name is one a library made up, is blank or unreadable, or would push the
|
|
2191
|
-
* server instructions over their cap. With no `dsn`, this is required
|
|
2192
|
+
* server instructions over their cap. With no `dsn`, this is required
|
|
2193
|
+
* under `reportMode: "on"`, and unused otherwise. */
|
|
2192
2194
|
vendorDisplayName?: string;
|
|
2193
2195
|
/** End-user consent token attached to every emitted event per SPEC §2.3 —
|
|
2194
2196
|
* the Console MUST reject events missing it.
|
|
@@ -2222,21 +2224,29 @@ interface BatonConfig {
|
|
|
2222
2224
|
* `acme-knowledge-base_annotate`. It falls back to `{vendorId}_annotate`
|
|
2223
2225
|
* when the name is one a library made up, slugs to nothing, is unreadable,
|
|
2224
2226
|
* or would not fit the server instructions. Set this to keep a name you have
|
|
2225
|
-
* written into documentation, a prompt or a script.
|
|
2227
|
+
* written into documentation, a prompt or a script. Has no effect unless
|
|
2228
|
+
* `reportMode: "on"`, and warns if set without it. */
|
|
2226
2229
|
annotationToolName?: string;
|
|
2230
|
+
/** Whether the agent is given a tool to report a call that went wrong.
|
|
2231
|
+
* `"off"` (the default) registers no annotation tool, and Baton's server
|
|
2232
|
+
* instructions are `INTENT_INSTRUCTIONS` alone, below your own. Each call's
|
|
2233
|
+
* goal still arrives through `user_goal`. `"on"` registers the tool and
|
|
2234
|
+
* serves its instructions. */
|
|
2235
|
+
reportMode?: "on" | "off";
|
|
2227
2236
|
/** Per-tool intent-param injection (mirrors baton-extmcp's vendor-neutral
|
|
2228
|
-
* naming). `"required"` (default) injects `user_goal
|
|
2229
|
-
*
|
|
2230
|
-
*
|
|
2231
|
-
* `tools/list`, without enforcing them: a call that omits them still reaches
|
|
2237
|
+
* naming). `"required"` (default) injects a `user_goal` string param on
|
|
2238
|
+
* every wrapped tool's advertised schema and ADVERTISES it as required in
|
|
2239
|
+
* `tools/list`, without enforcing it: a call that omits it still reaches
|
|
2232
2240
|
* your handler, and its event simply carries no intent. `"optional"` injects
|
|
2233
|
-
* the same
|
|
2234
|
-
*
|
|
2241
|
+
* the same param and does not advertise it as required. There is no
|
|
2242
|
+
* `"off"`: this SDK has no proactive reports, so nothing else would capture
|
|
2243
|
+
* what the user is trying to do. The param is stripped before the vendor
|
|
2244
|
+
* handler runs, so the tool never sees it.
|
|
2235
2245
|
* This is what captures intent on runtimes that drop `instructions`
|
|
2236
2246
|
* (notably Claude Desktop) — where the annotation tool alone yields
|
|
2237
2247
|
* nothing. A tool registered with no `inputSchema` at all is left alone
|
|
2238
2248
|
* regardless of this setting (see `schemaCompat.injectGoalParams`). */
|
|
2239
|
-
intentParamMode?: "optional" | "required"
|
|
2249
|
+
intentParamMode?: "optional" | "required";
|
|
2240
2250
|
/** Whether tool RESPONSE data is captured at all (SPEC §11.4).
|
|
2241
2251
|
*
|
|
2242
2252
|
* `"full"` (the default) captures as it always has. `"off"` means nothing
|
|
@@ -2353,10 +2363,9 @@ declare class BatonHandle {
|
|
|
2353
2363
|
* MCP's error flag on a 200. Reading only the first is what this package did,
|
|
2354
2364
|
* and what §6.1's own wording told it to. Injects server `instructions`
|
|
2355
2365
|
* (SPEC §5.1.2), registers
|
|
2356
|
-
* the `<vendor>_annotate` tool (SPEC §5.1.1), injects
|
|
2357
|
-
* `
|
|
2358
|
-
*
|
|
2359
|
-
* `intent_source`), and captures a `surface_snapshot`
|
|
2366
|
+
* the `<vendor>_annotate` tool under `reportMode: "on"` (SPEC §5.1.1), injects
|
|
2367
|
+
* a `user_goal` intent param on every wrapped tool's schema (SPEC §11.4.1
|
|
2368
|
+
* `call_intent`/`intent_source`), and captures a `surface_snapshot`
|
|
2360
2369
|
* of the vendor-true surface. Every payload leaving here runs through the
|
|
2361
2370
|
* configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`)
|
|
2362
2371
|
* — see README "What is not here yet" for what's still not here (the low-level
|
|
@@ -2602,6 +2611,10 @@ declare class Client {
|
|
|
2602
2611
|
aclose(): Promise<void>;
|
|
2603
2612
|
}
|
|
2604
2613
|
|
|
2614
|
+
/** The server instructions a vendor serving MCP itself puts in its
|
|
2615
|
+
* `initialize` result beside `user_goal` (SPEC §5.6), and all of Baton's
|
|
2616
|
+
* instructions under `reportMode: "off"`. */
|
|
2617
|
+
declare const INTENT_INSTRUCTIONS: string;
|
|
2605
2618
|
/** One injected param, for a vendor adding it to its own API (SPEC §5.6).
|
|
2606
2619
|
* `description` is the text an agent reads on an MCP server, without the
|
|
2607
2620
|
* leading "OPTIONAL." / "REQUIRED." label: whether the vendor's API requires
|
|
@@ -2610,8 +2623,8 @@ declare class Client {
|
|
|
2610
2623
|
interface IntentParam {
|
|
2611
2624
|
readonly name: string;
|
|
2612
2625
|
readonly description: string;
|
|
2613
|
-
readonly traceOption: "intent"
|
|
2626
|
+
readonly traceOption: "intent";
|
|
2614
2627
|
}
|
|
2615
2628
|
declare const INTENT_PARAMS: readonly IntentParam[];
|
|
2616
2629
|
|
|
2617
|
-
export { type AnnotateOptions, type AnnotationEvent, AnnotationEventSchema, type AnnotationPayload, AnnotationPayloadSchema, type AuthInfo, type Baton, type BatonConfig, BatonHandle, Client, type ClientOptions, DEFAULT_CONSENT_TOKEN, DEPTH_LIMIT, type Event, EventSchema, type EventType, EventTypeSchema, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_PARAMS, type IntentParam, type ObservedError, PRINCIPAL_FORM_HASHED, PRINCIPAL_FORM_RAW, PRINCIPAL_SOURCE_ASSERTED, type Principal, type PrincipalForm, type PrincipalResolutionContext, PrincipalWireSchema, type PromptGetEndEvent, PromptGetEndEventSchema, type PromptGetEndPayload, PromptGetEndPayloadSchema, type PromptGetErrorEvent, PromptGetErrorEventSchema, type PromptGetErrorPayload, PromptGetErrorPayloadSchema, type PromptGetStartEvent, PromptGetStartEventSchema, type PromptGetStartPayload, PromptGetStartPayloadSchema, type PromptListEndEvent, PromptListEndEventSchema, type PromptListEndPayload, PromptListEndPayloadSchema, type PromptListErrorEvent, PromptListErrorEventSchema, type PromptListErrorPayload, PromptListErrorPayloadSchema, type PromptListStartEvent, PromptListStartEventSchema, type PromptListStartPayload, PromptListStartPayloadSchema, type ResolvePrincipalHook, type ResourceListEndEvent, ResourceListEndEventSchema, type ResourceListEndPayload, ResourceListEndPayloadSchema, type ResourceListErrorEvent, ResourceListErrorEventSchema, type ResourceListErrorPayload, ResourceListErrorPayloadSchema, type ResourceListStartEvent, ResourceListStartEventSchema, type ResourceListStartPayload, ResourceListStartPayloadSchema, type ResourceReadEndEvent, ResourceReadEndEventSchema, type ResourceReadEndPayload, ResourceReadEndPayloadSchema, type ResourceReadErrorEvent, ResourceReadErrorEventSchema, type ResourceReadErrorPayload, ResourceReadErrorPayloadSchema, type ResourceReadStartEvent, ResourceReadStartEventSchema, type ResourceReadStartPayload, ResourceReadStartPayloadSchema, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, SurfaceSnapshotEventSchema, type SurfaceSnapshotPayload, SurfaceSnapshotPayloadSchema, type ToolCallEndEvent, ToolCallEndEventSchema, type ToolCallEndPayload, ToolCallEndPayloadSchema, type ToolCallErrorEvent, ToolCallErrorEventSchema, type ToolCallErrorPayload, ToolCallErrorPayloadSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolCallStartPayload, ToolCallStartPayloadSchema, type ToolListEndEvent, ToolListEndEventSchema, type ToolListEndPayload, ToolListEndPayloadSchema, type ToolListErrorEvent, ToolListErrorEventSchema, type ToolListErrorPayload, ToolListErrorPayloadSchema, type ToolListStartEvent, ToolListStartEventSchema, type ToolListStartPayload, ToolListStartPayloadSchema, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, safeWrite, withBaton };
|
|
2630
|
+
export { type AnnotateOptions, type AnnotationEvent, AnnotationEventSchema, type AnnotationPayload, AnnotationPayloadSchema, type AuthInfo, type Baton, type BatonConfig, BatonHandle, Client, type ClientOptions, DEFAULT_CONSENT_TOKEN, DEPTH_LIMIT, type Event, EventSchema, type EventType, EventTypeSchema, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ObservedError, PRINCIPAL_FORM_HASHED, PRINCIPAL_FORM_RAW, PRINCIPAL_SOURCE_ASSERTED, type Principal, type PrincipalForm, type PrincipalResolutionContext, PrincipalWireSchema, type PromptGetEndEvent, PromptGetEndEventSchema, type PromptGetEndPayload, PromptGetEndPayloadSchema, type PromptGetErrorEvent, PromptGetErrorEventSchema, type PromptGetErrorPayload, PromptGetErrorPayloadSchema, type PromptGetStartEvent, PromptGetStartEventSchema, type PromptGetStartPayload, PromptGetStartPayloadSchema, type PromptListEndEvent, PromptListEndEventSchema, type PromptListEndPayload, PromptListEndPayloadSchema, type PromptListErrorEvent, PromptListErrorEventSchema, type PromptListErrorPayload, PromptListErrorPayloadSchema, type PromptListStartEvent, PromptListStartEventSchema, type PromptListStartPayload, PromptListStartPayloadSchema, type ResolvePrincipalHook, type ResourceListEndEvent, ResourceListEndEventSchema, type ResourceListEndPayload, ResourceListEndPayloadSchema, type ResourceListErrorEvent, ResourceListErrorEventSchema, type ResourceListErrorPayload, ResourceListErrorPayloadSchema, type ResourceListStartEvent, ResourceListStartEventSchema, type ResourceListStartPayload, ResourceListStartPayloadSchema, type ResourceReadEndEvent, ResourceReadEndEventSchema, type ResourceReadEndPayload, ResourceReadEndPayloadSchema, type ResourceReadErrorEvent, ResourceReadErrorEventSchema, type ResourceReadErrorPayload, ResourceReadErrorPayloadSchema, type ResourceReadStartEvent, ResourceReadStartEventSchema, type ResourceReadStartPayload, ResourceReadStartPayloadSchema, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, SurfaceSnapshotEventSchema, type SurfaceSnapshotPayload, SurfaceSnapshotPayloadSchema, type ToolCallEndEvent, ToolCallEndEventSchema, type ToolCallEndPayload, ToolCallEndPayloadSchema, type ToolCallErrorEvent, ToolCallErrorEventSchema, type ToolCallErrorPayload, ToolCallErrorPayloadSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolCallStartPayload, ToolCallStartPayloadSchema, type ToolListEndEvent, ToolListEndEventSchema, type ToolListEndPayload, ToolListEndPayloadSchema, type ToolListErrorEvent, ToolListErrorEventSchema, type ToolListErrorPayload, ToolListErrorPayloadSchema, type ToolListStartEvent, ToolListStartEventSchema, type ToolListStartPayload, ToolListStartPayloadSchema, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, safeWrite, 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-0.5.
|
|
3
|
+
declare const SDK_VERSION = "ts-0.5.8";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Zod schemas + TS types for the Baton event stream per SPEC §11.4.
|
|
@@ -20,10 +20,11 @@ declare const SDK_VERSION = "ts-0.5.7";
|
|
|
20
20
|
/** Emitted before the vendor handler runs. `params` is PII-scrubbed at
|
|
21
21
|
* emit-time per SPEC §7.
|
|
22
22
|
*
|
|
23
|
-
* `call_intent`
|
|
24
|
-
*
|
|
25
|
-
* `overall_task`
|
|
26
|
-
* `params` — `params` stays exactly the vendor-visible
|
|
23
|
+
* `call_intent` is the value the SDK stripped from the injected `user_goal`
|
|
24
|
+
* param, and `call_expected` / `call_workflow` the retired `expected_result` /
|
|
25
|
+
* `overall_task` a stale client may still send (see `llmText.ts`); they ride
|
|
26
|
+
* as SIBLINGS of `params` — `params` stays exactly the vendor-visible
|
|
27
|
+
* arguments.
|
|
27
28
|
* `call_intent`/`call_expected` are call-scoped diagnostics;
|
|
28
29
|
* `call_workflow` is the task-label grouping key (console rung 3b, exact
|
|
29
30
|
* string continuity). `intent_source` records provenance
|
|
@@ -2188,7 +2189,8 @@ interface BatonConfig {
|
|
|
2188
2189
|
* for the same reason: a capitalisation you never chose would be a
|
|
2189
2190
|
* fabricated name. Falls back to the DSN's server segment when the server's
|
|
2190
2191
|
* name is one a library made up, is blank or unreadable, or would push the
|
|
2191
|
-
* server instructions over their cap. With no `dsn`, this is required
|
|
2192
|
+
* server instructions over their cap. With no `dsn`, this is required
|
|
2193
|
+
* under `reportMode: "on"`, and unused otherwise. */
|
|
2192
2194
|
vendorDisplayName?: string;
|
|
2193
2195
|
/** End-user consent token attached to every emitted event per SPEC §2.3 —
|
|
2194
2196
|
* the Console MUST reject events missing it.
|
|
@@ -2222,21 +2224,29 @@ interface BatonConfig {
|
|
|
2222
2224
|
* `acme-knowledge-base_annotate`. It falls back to `{vendorId}_annotate`
|
|
2223
2225
|
* when the name is one a library made up, slugs to nothing, is unreadable,
|
|
2224
2226
|
* or would not fit the server instructions. Set this to keep a name you have
|
|
2225
|
-
* written into documentation, a prompt or a script.
|
|
2227
|
+
* written into documentation, a prompt or a script. Has no effect unless
|
|
2228
|
+
* `reportMode: "on"`, and warns if set without it. */
|
|
2226
2229
|
annotationToolName?: string;
|
|
2230
|
+
/** Whether the agent is given a tool to report a call that went wrong.
|
|
2231
|
+
* `"off"` (the default) registers no annotation tool, and Baton's server
|
|
2232
|
+
* instructions are `INTENT_INSTRUCTIONS` alone, below your own. Each call's
|
|
2233
|
+
* goal still arrives through `user_goal`. `"on"` registers the tool and
|
|
2234
|
+
* serves its instructions. */
|
|
2235
|
+
reportMode?: "on" | "off";
|
|
2227
2236
|
/** Per-tool intent-param injection (mirrors baton-extmcp's vendor-neutral
|
|
2228
|
-
* naming). `"required"` (default) injects `user_goal
|
|
2229
|
-
*
|
|
2230
|
-
*
|
|
2231
|
-
* `tools/list`, without enforcing them: a call that omits them still reaches
|
|
2237
|
+
* naming). `"required"` (default) injects a `user_goal` string param on
|
|
2238
|
+
* every wrapped tool's advertised schema and ADVERTISES it as required in
|
|
2239
|
+
* `tools/list`, without enforcing it: a call that omits it still reaches
|
|
2232
2240
|
* your handler, and its event simply carries no intent. `"optional"` injects
|
|
2233
|
-
* the same
|
|
2234
|
-
*
|
|
2241
|
+
* the same param and does not advertise it as required. There is no
|
|
2242
|
+
* `"off"`: this SDK has no proactive reports, so nothing else would capture
|
|
2243
|
+
* what the user is trying to do. The param is stripped before the vendor
|
|
2244
|
+
* handler runs, so the tool never sees it.
|
|
2235
2245
|
* This is what captures intent on runtimes that drop `instructions`
|
|
2236
2246
|
* (notably Claude Desktop) — where the annotation tool alone yields
|
|
2237
2247
|
* nothing. A tool registered with no `inputSchema` at all is left alone
|
|
2238
2248
|
* regardless of this setting (see `schemaCompat.injectGoalParams`). */
|
|
2239
|
-
intentParamMode?: "optional" | "required"
|
|
2249
|
+
intentParamMode?: "optional" | "required";
|
|
2240
2250
|
/** Whether tool RESPONSE data is captured at all (SPEC §11.4).
|
|
2241
2251
|
*
|
|
2242
2252
|
* `"full"` (the default) captures as it always has. `"off"` means nothing
|
|
@@ -2353,10 +2363,9 @@ declare class BatonHandle {
|
|
|
2353
2363
|
* MCP's error flag on a 200. Reading only the first is what this package did,
|
|
2354
2364
|
* and what §6.1's own wording told it to. Injects server `instructions`
|
|
2355
2365
|
* (SPEC §5.1.2), registers
|
|
2356
|
-
* the `<vendor>_annotate` tool (SPEC §5.1.1), injects
|
|
2357
|
-
* `
|
|
2358
|
-
*
|
|
2359
|
-
* `intent_source`), and captures a `surface_snapshot`
|
|
2366
|
+
* the `<vendor>_annotate` tool under `reportMode: "on"` (SPEC §5.1.1), injects
|
|
2367
|
+
* a `user_goal` intent param on every wrapped tool's schema (SPEC §11.4.1
|
|
2368
|
+
* `call_intent`/`intent_source`), and captures a `surface_snapshot`
|
|
2360
2369
|
* of the vendor-true surface. Every payload leaving here runs through the
|
|
2361
2370
|
* configured scrubber, which defaults to the shipped ruleset (`src/scrub.ts`)
|
|
2362
2371
|
* — see README "What is not here yet" for what's still not here (the low-level
|
|
@@ -2602,6 +2611,10 @@ declare class Client {
|
|
|
2602
2611
|
aclose(): Promise<void>;
|
|
2603
2612
|
}
|
|
2604
2613
|
|
|
2614
|
+
/** The server instructions a vendor serving MCP itself puts in its
|
|
2615
|
+
* `initialize` result beside `user_goal` (SPEC §5.6), and all of Baton's
|
|
2616
|
+
* instructions under `reportMode: "off"`. */
|
|
2617
|
+
declare const INTENT_INSTRUCTIONS: string;
|
|
2605
2618
|
/** One injected param, for a vendor adding it to its own API (SPEC §5.6).
|
|
2606
2619
|
* `description` is the text an agent reads on an MCP server, without the
|
|
2607
2620
|
* leading "OPTIONAL." / "REQUIRED." label: whether the vendor's API requires
|
|
@@ -2610,8 +2623,8 @@ declare class Client {
|
|
|
2610
2623
|
interface IntentParam {
|
|
2611
2624
|
readonly name: string;
|
|
2612
2625
|
readonly description: string;
|
|
2613
|
-
readonly traceOption: "intent"
|
|
2626
|
+
readonly traceOption: "intent";
|
|
2614
2627
|
}
|
|
2615
2628
|
declare const INTENT_PARAMS: readonly IntentParam[];
|
|
2616
2629
|
|
|
2617
|
-
export { type AnnotateOptions, type AnnotationEvent, AnnotationEventSchema, type AnnotationPayload, AnnotationPayloadSchema, type AuthInfo, type Baton, type BatonConfig, BatonHandle, Client, type ClientOptions, DEFAULT_CONSENT_TOKEN, DEPTH_LIMIT, type Event, EventSchema, type EventType, EventTypeSchema, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_PARAMS, type IntentParam, type ObservedError, PRINCIPAL_FORM_HASHED, PRINCIPAL_FORM_RAW, PRINCIPAL_SOURCE_ASSERTED, type Principal, type PrincipalForm, type PrincipalResolutionContext, PrincipalWireSchema, type PromptGetEndEvent, PromptGetEndEventSchema, type PromptGetEndPayload, PromptGetEndPayloadSchema, type PromptGetErrorEvent, PromptGetErrorEventSchema, type PromptGetErrorPayload, PromptGetErrorPayloadSchema, type PromptGetStartEvent, PromptGetStartEventSchema, type PromptGetStartPayload, PromptGetStartPayloadSchema, type PromptListEndEvent, PromptListEndEventSchema, type PromptListEndPayload, PromptListEndPayloadSchema, type PromptListErrorEvent, PromptListErrorEventSchema, type PromptListErrorPayload, PromptListErrorPayloadSchema, type PromptListStartEvent, PromptListStartEventSchema, type PromptListStartPayload, PromptListStartPayloadSchema, type ResolvePrincipalHook, type ResourceListEndEvent, ResourceListEndEventSchema, type ResourceListEndPayload, ResourceListEndPayloadSchema, type ResourceListErrorEvent, ResourceListErrorEventSchema, type ResourceListErrorPayload, ResourceListErrorPayloadSchema, type ResourceListStartEvent, ResourceListStartEventSchema, type ResourceListStartPayload, ResourceListStartPayloadSchema, type ResourceReadEndEvent, ResourceReadEndEventSchema, type ResourceReadEndPayload, ResourceReadEndPayloadSchema, type ResourceReadErrorEvent, ResourceReadErrorEventSchema, type ResourceReadErrorPayload, ResourceReadErrorPayloadSchema, type ResourceReadStartEvent, ResourceReadStartEventSchema, type ResourceReadStartPayload, ResourceReadStartPayloadSchema, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, SurfaceSnapshotEventSchema, type SurfaceSnapshotPayload, SurfaceSnapshotPayloadSchema, type ToolCallEndEvent, ToolCallEndEventSchema, type ToolCallEndPayload, ToolCallEndPayloadSchema, type ToolCallErrorEvent, ToolCallErrorEventSchema, type ToolCallErrorPayload, ToolCallErrorPayloadSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolCallStartPayload, ToolCallStartPayloadSchema, type ToolListEndEvent, ToolListEndEventSchema, type ToolListEndPayload, ToolListEndPayloadSchema, type ToolListErrorEvent, ToolListErrorEventSchema, type ToolListErrorPayload, ToolListErrorPayloadSchema, type ToolListStartEvent, ToolListStartEventSchema, type ToolListStartPayload, ToolListStartPayloadSchema, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, safeWrite, withBaton };
|
|
2630
|
+
export { type AnnotateOptions, type AnnotationEvent, AnnotationEventSchema, type AnnotationPayload, AnnotationPayloadSchema, type AuthInfo, type Baton, type BatonConfig, BatonHandle, Client, type ClientOptions, DEFAULT_CONSENT_TOKEN, DEPTH_LIMIT, type Event, EventSchema, type EventType, EventTypeSchema, type HeaderInput, HttpSink, type HttpSinkOptions, INTENT_INSTRUCTIONS, INTENT_PARAMS, type IntentParam, type ObservedError, PRINCIPAL_FORM_HASHED, PRINCIPAL_FORM_RAW, PRINCIPAL_SOURCE_ASSERTED, type Principal, type PrincipalForm, type PrincipalResolutionContext, PrincipalWireSchema, type PromptGetEndEvent, PromptGetEndEventSchema, type PromptGetEndPayload, PromptGetEndPayloadSchema, type PromptGetErrorEvent, PromptGetErrorEventSchema, type PromptGetErrorPayload, PromptGetErrorPayloadSchema, type PromptGetStartEvent, PromptGetStartEventSchema, type PromptGetStartPayload, PromptGetStartPayloadSchema, type PromptListEndEvent, PromptListEndEventSchema, type PromptListEndPayload, PromptListEndPayloadSchema, type PromptListErrorEvent, PromptListErrorEventSchema, type PromptListErrorPayload, PromptListErrorPayloadSchema, type PromptListStartEvent, PromptListStartEventSchema, type PromptListStartPayload, PromptListStartPayloadSchema, type ResolvePrincipalHook, type ResourceListEndEvent, ResourceListEndEventSchema, type ResourceListEndPayload, ResourceListEndPayloadSchema, type ResourceListErrorEvent, ResourceListErrorEventSchema, type ResourceListErrorPayload, ResourceListErrorPayloadSchema, type ResourceListStartEvent, ResourceListStartEventSchema, type ResourceListStartPayload, ResourceListStartPayloadSchema, type ResourceReadEndEvent, ResourceReadEndEventSchema, type ResourceReadEndPayload, ResourceReadEndPayloadSchema, type ResourceReadErrorEvent, ResourceReadErrorEventSchema, type ResourceReadErrorPayload, ResourceReadErrorPayloadSchema, type ResourceReadStartEvent, ResourceReadStartEventSchema, type ResourceReadStartPayload, ResourceReadStartPayloadSchema, type ResultCaptureMode, SDK_VERSION, Scrubber, type SessionOptions, type Sink, StdoutSink, type StdoutSinkOptions, type SupportedMcpServer, type SurfaceSnapshotEvent, SurfaceSnapshotEventSchema, type SurfaceSnapshotPayload, SurfaceSnapshotPayloadSchema, type ToolCallEndEvent, ToolCallEndEventSchema, type ToolCallEndPayload, ToolCallEndPayloadSchema, type ToolCallErrorEvent, ToolCallErrorEventSchema, type ToolCallErrorPayload, ToolCallErrorPayloadSchema, type ToolCallStartEvent, ToolCallStartEventSchema, type ToolCallStartPayload, ToolCallStartPayloadSchema, type ToolListEndEvent, ToolListEndEventSchema, type ToolListEndPayload, ToolListEndPayloadSchema, type ToolListErrorEvent, ToolListErrorEventSchema, type ToolListErrorPayload, ToolListErrorPayloadSchema, type ToolListStartEvent, ToolListStartEventSchema, type ToolListStartPayload, ToolListStartPayloadSchema, Trace, type TraceOptions, createBaton, identityScrub, principalFromOAuthEmail, principalFromOAuthSub, safeWrite, withBaton };
|