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.
Files changed (27) hide show
  1. package/dist/browser/agent/client/index.d.cts +3 -3
  2. package/dist/browser/agent/client/index.d.ts +3 -3
  3. package/dist/browser/agent/index.browser.d.cts +3 -3
  4. package/dist/browser/agent/index.browser.d.ts +3 -3
  5. package/dist/browser/{chat-B3FNVJ5h.d.cts → chat-DRPmcXCS.d.ts} +11 -1
  6. package/dist/browser/{chat-BpCaFSfj.d.ts → chat-DaDo5oPq.d.cts} +11 -1
  7. package/dist/browser/control/index.cjs +1 -1
  8. package/dist/browser/control/index.d.cts +11 -2
  9. package/dist/browser/control/index.d.ts +11 -2
  10. package/dist/browser/control/index.js +1 -1
  11. package/dist/browser/{index-BGb3gwCe.d.ts → index-C3lpcocP.d.ts} +2 -2
  12. package/dist/browser/{index-SJ6TJMW8.d.cts → index-D0FLmR9p.d.cts} +2 -2
  13. package/dist/browser/{index.browser-CddR1S-T.d.ts → index.browser-CmI6JZoo.d.ts} +1 -1
  14. package/dist/browser/{index.browser-Bivj_NTA.d.cts → index.browser-DAen9O_U.d.cts} +1 -1
  15. package/dist/browser/react/index.d.cts +3 -3
  16. package/dist/browser/react/index.d.ts +3 -3
  17. package/dist/cli/{dev-CLlX_x0y.js → dev-B7pxRmaT.js} +5 -5
  18. package/dist/cli/index.js +2 -2
  19. package/dist/node/agent/index.node.cjs +25 -25
  20. package/dist/node/agent/index.node.d.cts +2 -2
  21. package/dist/node/agent/index.node.d.ts +2 -2
  22. package/dist/node/agent/index.node.js +25 -25
  23. package/dist/node/{index.browser-DePGDuoD.d.cts → index.browser-CS2PXHA_.d.cts} +11 -1
  24. package/dist/node/{index.browser-K_A3oWLI.d.ts → index.browser-DonjglNq.d.ts} +11 -1
  25. package/dist/node/test.d.cts +1 -1
  26. package/dist/node/test.d.ts +1 -1
  27. 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 };
@@ -1,4 +1,4 @@
1
- import { Chat, UIOptions, UIOptionsSchema } from "./index.browser-DePGDuoD.cjs";
1
+ import { Chat, UIOptions, UIOptionsSchema } from "./index.browser-CS2PXHA_.cjs";
2
2
  import { UIMessage, UIMessageChunk } from "ai";
3
3
 
4
4
  //#region src/agent/client/index.d.ts
@@ -1,4 +1,4 @@
1
- import { Chat, UIOptions, UIOptionsSchema } from "./index.browser-K_A3oWLI.js";
1
+ import { Chat, UIOptions, UIOptionsSchema } from "./index.browser-DonjglNq.js";
2
2
  import { UIMessage, UIMessageChunk } from "ai";
3
3
 
4
4
  //#region src/agent/client/index.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blink",
3
- "version": "0.1.83",
3
+ "version": "0.1.85",
4
4
  "description": "Blink is a JavaScript runtime for building and deploying AI agents.",
5
5
  "type": "module",
6
6
  "bin": {