blink 0.1.83 → 0.1.85
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/browser/agent/client/index.d.cts +3 -3
- package/dist/browser/agent/client/index.d.ts +3 -3
- package/dist/browser/agent/index.browser.d.cts +3 -3
- package/dist/browser/agent/index.browser.d.ts +3 -3
- package/dist/browser/{chat-B3FNVJ5h.d.cts → chat-DRPmcXCS.d.ts} +11 -1
- package/dist/browser/{chat-BpCaFSfj.d.ts → chat-DaDo5oPq.d.cts} +11 -1
- package/dist/browser/control/index.cjs +1 -1
- package/dist/browser/control/index.d.cts +11 -2
- package/dist/browser/control/index.d.ts +11 -2
- package/dist/browser/control/index.js +1 -1
- package/dist/browser/{index-BGb3gwCe.d.ts → index-C3lpcocP.d.ts} +2 -2
- package/dist/browser/{index-SJ6TJMW8.d.cts → index-D0FLmR9p.d.cts} +2 -2
- package/dist/browser/{index.browser-CddR1S-T.d.ts → index.browser-CmI6JZoo.d.ts} +1 -1
- package/dist/browser/{index.browser-Bivj_NTA.d.cts → index.browser-DAen9O_U.d.cts} +1 -1
- package/dist/browser/react/index.d.cts +3 -3
- package/dist/browser/react/index.d.ts +3 -3
- package/dist/cli/{dev-CLlX_x0y.js → dev-B7pxRmaT.js} +5 -5
- package/dist/cli/index.js +2 -2
- package/dist/node/agent/index.node.cjs +25 -25
- package/dist/node/agent/index.node.d.cts +2 -2
- package/dist/node/agent/index.node.d.ts +2 -2
- package/dist/node/agent/index.node.js +25 -25
- package/dist/node/{index.browser-DePGDuoD.d.cts → index.browser-CS2PXHA_.d.cts} +11 -1
- package/dist/node/{index.browser-K_A3oWLI.d.ts → index.browser-DonjglNq.d.ts} +11 -1
- package/dist/node/test.d.cts +1 -1
- package/dist/node/test.d.ts +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,10 @@ interface Context {
|
|
|
9
9
|
* Commonly used for: authentication state, caching external resources, or other state.
|
|
10
10
|
*/
|
|
11
11
|
readonly store: StoreContext;
|
|
12
|
+
/**
|
|
13
|
+
* Otlp is for forwarding OpenTelemetry traces.
|
|
14
|
+
*/
|
|
15
|
+
readonly otlp?: OtlpContext;
|
|
12
16
|
}
|
|
13
17
|
interface ChatContext {
|
|
14
18
|
/**
|
|
@@ -84,6 +88,12 @@ interface StoreContext {
|
|
|
84
88
|
cursor?: string;
|
|
85
89
|
}>;
|
|
86
90
|
}
|
|
91
|
+
interface OtlpContext {
|
|
92
|
+
/**
|
|
93
|
+
* traces forwards OpenTelemetry traces.
|
|
94
|
+
*/
|
|
95
|
+
traces: (request: Request) => Promise<Response>;
|
|
96
|
+
}
|
|
87
97
|
//#endregion
|
|
88
98
|
//#region src/agent/internal/types.d.ts
|
|
89
99
|
type Promisable<T> = T | Promise<T>;
|
|
@@ -302,4 +312,4 @@ type StreamResponseFormat = "ui-message" | "openai-chat" | "openai-response" | "
|
|
|
302
312
|
declare const StreamResponseFormatHeader = "x-blink-stream-response-format";
|
|
303
313
|
declare function withResponseFormat(response: Response, format: StreamResponseFormat): Response;
|
|
304
314
|
//#endregion
|
|
305
|
-
export { Chat, ChatBehavior, ChatContext, ChatEvent, ChatHandler, ChatResponse, Context, ContextFromTools, EnsuredChat, ExtractUIOptions, MessageOptions, Promisable, StoreContext, StreamResponseFormat, StreamResponseFormatHeader, ToolApprovalOutput, ToolSetWithApproval, ToolWithApproval, ToolWithContext, UIEvent, UIHandler, UIOptionSelect, UIOptionSelectValue, UIOptions, UIOptionsSchema, WithUIOptions, isToolApprovalOutput, lastUIOptions, toolWithApproval, tools, withResponseFormat };
|
|
315
|
+
export { Chat, ChatBehavior, ChatContext, ChatEvent, ChatHandler, ChatResponse, Context, ContextFromTools, EnsuredChat, ExtractUIOptions, MessageOptions, OtlpContext, Promisable, StoreContext, StreamResponseFormat, StreamResponseFormatHeader, ToolApprovalOutput, ToolSetWithApproval, ToolWithApproval, ToolWithContext, UIEvent, UIHandler, UIOptionSelect, UIOptionSelectValue, UIOptions, UIOptionsSchema, WithUIOptions, isToolApprovalOutput, lastUIOptions, toolWithApproval, tools, withResponseFormat };
|
|
@@ -9,6 +9,10 @@ interface Context {
|
|
|
9
9
|
* Commonly used for: authentication state, caching external resources, or other state.
|
|
10
10
|
*/
|
|
11
11
|
readonly store: StoreContext;
|
|
12
|
+
/**
|
|
13
|
+
* Otlp is for forwarding OpenTelemetry traces.
|
|
14
|
+
*/
|
|
15
|
+
readonly otlp?: OtlpContext;
|
|
12
16
|
}
|
|
13
17
|
interface ChatContext {
|
|
14
18
|
/**
|
|
@@ -84,6 +88,12 @@ interface StoreContext {
|
|
|
84
88
|
cursor?: string;
|
|
85
89
|
}>;
|
|
86
90
|
}
|
|
91
|
+
interface OtlpContext {
|
|
92
|
+
/**
|
|
93
|
+
* traces forwards OpenTelemetry traces.
|
|
94
|
+
*/
|
|
95
|
+
traces: (request: Request) => Promise<Response>;
|
|
96
|
+
}
|
|
87
97
|
//#endregion
|
|
88
98
|
//#region src/agent/internal/types.d.ts
|
|
89
99
|
type Promisable<T> = T | Promise<T>;
|
|
@@ -302,4 +312,4 @@ type StreamResponseFormat = "ui-message" | "openai-chat" | "openai-response" | "
|
|
|
302
312
|
declare const StreamResponseFormatHeader = "x-blink-stream-response-format";
|
|
303
313
|
declare function withResponseFormat(response: Response, format: StreamResponseFormat): Response;
|
|
304
314
|
//#endregion
|
|
305
|
-
export { Chat, ChatBehavior, ChatContext, ChatEvent, ChatHandler, ChatResponse, Context, ContextFromTools, EnsuredChat, ExtractUIOptions, MessageOptions, Promisable, StoreContext, StreamResponseFormat, StreamResponseFormatHeader, ToolApprovalOutput, ToolSetWithApproval, ToolWithApproval, ToolWithContext, UIEvent, UIHandler, UIOptionSelect, UIOptionSelectValue, UIOptions, UIOptionsSchema, WithUIOptions, isToolApprovalOutput, lastUIOptions, toolWithApproval, tools, withResponseFormat };
|
|
315
|
+
export { Chat, ChatBehavior, ChatContext, ChatEvent, ChatHandler, ChatResponse, Context, ContextFromTools, EnsuredChat, ExtractUIOptions, MessageOptions, OtlpContext, Promisable, StoreContext, StreamResponseFormat, StreamResponseFormatHeader, ToolApprovalOutput, ToolSetWithApproval, ToolWithApproval, ToolWithContext, UIEvent, UIHandler, UIOptionSelect, UIOptionSelectValue, UIOptions, UIOptionsSchema, WithUIOptions, isToolApprovalOutput, lastUIOptions, toolWithApproval, tools, withResponseFormat };
|
package/dist/node/test.d.cts
CHANGED
package/dist/node/test.d.ts
CHANGED