raindrop-ai 0.0.78 → 0.0.79

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.js CHANGED
@@ -138,7 +138,7 @@ var CategorizationRequestSchema = import_zod.z.object({
138
138
  // package.json
139
139
  var package_default = {
140
140
  name: "raindrop-ai",
141
- version: "0.0.78",
141
+ version: "0.0.79",
142
142
  main: "dist/index.js",
143
143
  module: "dist/index.mjs",
144
144
  types: "dist/index.d.ts",
package/dist/index.mjs CHANGED
@@ -104,7 +104,7 @@ var CategorizationRequestSchema = z.object({
104
104
  // package.json
105
105
  var package_default = {
106
106
  name: "raindrop-ai",
107
- version: "0.0.78",
107
+ version: "0.0.79",
108
108
  main: "dist/index.js",
109
109
  module: "dist/index.mjs",
110
110
  types: "dist/index.d.ts",
@@ -7,6 +7,8 @@
7
7
  * @param eventName - Optional custom event name (defaults to "ai_generation" on the backend)
8
8
  * @param eventId - Optional event identifier. If not provided, a unique ID is generated.
9
9
  * Call metadata() for each AI SDK call to get unique event IDs.
10
+ * @param toolEvents - Optional. Set to true to emit events for tool-call-only responses
11
+ * (e.g., when using stopWhen with tool calls).
10
12
  *
11
13
  * @example
12
14
  * ```typescript
@@ -23,11 +25,12 @@
23
25
  * });
24
26
  * ```
25
27
  */
26
- declare function metadata({ userId, convoId, eventName, eventId, wizardSession, }: {
28
+ declare function metadata({ userId, convoId, eventName, eventId, toolEvents, wizardSession, }: {
27
29
  userId: string;
28
30
  convoId?: string;
29
31
  eventName?: string;
30
32
  eventId?: string;
33
+ toolEvents?: boolean;
31
34
  wizardSession?: string;
32
35
  }): Record<string, string>;
33
36
  declare const _default: {
@@ -7,6 +7,8 @@
7
7
  * @param eventName - Optional custom event name (defaults to "ai_generation" on the backend)
8
8
  * @param eventId - Optional event identifier. If not provided, a unique ID is generated.
9
9
  * Call metadata() for each AI SDK call to get unique event IDs.
10
+ * @param toolEvents - Optional. Set to true to emit events for tool-call-only responses
11
+ * (e.g., when using stopWhen with tool calls).
10
12
  *
11
13
  * @example
12
14
  * ```typescript
@@ -23,11 +25,12 @@
23
25
  * });
24
26
  * ```
25
27
  */
26
- declare function metadata({ userId, convoId, eventName, eventId, wizardSession, }: {
28
+ declare function metadata({ userId, convoId, eventName, eventId, toolEvents, wizardSession, }: {
27
29
  userId: string;
28
30
  convoId?: string;
29
31
  eventName?: string;
30
32
  eventId?: string;
33
+ toolEvents?: boolean;
31
34
  wizardSession?: string;
32
35
  }): Record<string, string>;
33
36
  declare const _default: {
@@ -29,6 +29,7 @@ function metadata({
29
29
  convoId,
30
30
  eventName,
31
31
  eventId,
32
+ toolEvents,
32
33
  wizardSession
33
34
  }) {
34
35
  const result = {
@@ -37,6 +38,7 @@ function metadata({
37
38
  };
38
39
  if (convoId) result["raindrop.convoId"] = convoId;
39
40
  if (eventName) result["raindrop.eventName"] = eventName;
41
+ if (toolEvents) result["raindrop.toolEvents"] = "allow";
40
42
  if (wizardSession) result["raindrop.wizardSession"] = wizardSession;
41
43
  return result;
42
44
  }
@@ -4,6 +4,7 @@ function metadata({
4
4
  convoId,
5
5
  eventName,
6
6
  eventId,
7
+ toolEvents,
7
8
  wizardSession
8
9
  }) {
9
10
  const result = {
@@ -12,6 +13,7 @@ function metadata({
12
13
  };
13
14
  if (convoId) result["raindrop.convoId"] = convoId;
14
15
  if (eventName) result["raindrop.eventName"] = eventName;
16
+ if (toolEvents) result["raindrop.toolEvents"] = "allow";
15
17
  if (wizardSession) result["raindrop.wizardSession"] = wizardSession;
16
18
  return result;
17
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "raindrop-ai",
3
- "version": "0.0.78",
3
+ "version": "0.0.79",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",