@raindrop-ai/ai-sdk 0.0.6 → 0.0.7

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.
@@ -84,7 +84,7 @@ async function postJson(url, body, headers, opts) {
84
84
  // package.json
85
85
  var package_default = {
86
86
  name: "@raindrop-ai/ai-sdk",
87
- version: "0.0.6"};
87
+ version: "0.0.7"};
88
88
 
89
89
  // src/internal/version.ts
90
90
  var libraryName = package_default.name;
@@ -270,19 +270,21 @@ var EventShipper = class {
270
270
  }
271
271
  return;
272
272
  }
273
+ const { wizardSession, ...restProperties } = (_e = accumulated.properties) != null ? _e : {};
273
274
  const payload = {
274
275
  event_id: eventId,
275
276
  user_id: userId,
276
277
  event: eventName,
277
- timestamp: (_e = accumulated.timestamp) != null ? _e : (/* @__PURE__ */ new Date()).toISOString(),
278
+ timestamp: (_f = accumulated.timestamp) != null ? _f : (/* @__PURE__ */ new Date()).toISOString(),
278
279
  ai_data: {
279
280
  input: accumulated.input,
280
281
  output: accumulated.output,
281
282
  model: accumulated.model,
282
- convo_id: (_f = accumulated.convoId) != null ? _f : sticky.convoId
283
+ convo_id: (_g = accumulated.convoId) != null ? _g : sticky.convoId
283
284
  },
284
285
  properties: {
285
- ...(_g = accumulated.properties) != null ? _g : {},
286
+ ...restProperties,
287
+ ...wizardSession ? { "raindrop.wizardSession": wizardSession } : {},
286
288
  $context: this.context
287
289
  },
288
290
  attachments: accumulated.attachments,
package/dist/index.js CHANGED
@@ -86,7 +86,7 @@ async function postJson(url, body, headers, opts) {
86
86
  // package.json
87
87
  var package_default = {
88
88
  name: "@raindrop-ai/ai-sdk",
89
- version: "0.0.6"};
89
+ version: "0.0.7"};
90
90
 
91
91
  // src/internal/version.ts
92
92
  var libraryName = package_default.name;
@@ -272,19 +272,21 @@ var EventShipper = class {
272
272
  }
273
273
  return;
274
274
  }
275
+ const { wizardSession, ...restProperties } = (_e = accumulated.properties) != null ? _e : {};
275
276
  const payload = {
276
277
  event_id: eventId,
277
278
  user_id: userId,
278
279
  event: eventName,
279
- timestamp: (_e = accumulated.timestamp) != null ? _e : (/* @__PURE__ */ new Date()).toISOString(),
280
+ timestamp: (_f = accumulated.timestamp) != null ? _f : (/* @__PURE__ */ new Date()).toISOString(),
280
281
  ai_data: {
281
282
  input: accumulated.input,
282
283
  output: accumulated.output,
283
284
  model: accumulated.model,
284
- convo_id: (_f = accumulated.convoId) != null ? _f : sticky.convoId
285
+ convo_id: (_g = accumulated.convoId) != null ? _g : sticky.convoId
285
286
  },
286
287
  properties: {
287
- ...(_g = accumulated.properties) != null ? _g : {},
288
+ ...restProperties,
289
+ ...wizardSession ? { "raindrop.wizardSession": wizardSession } : {},
288
290
  $context: this.context
289
291
  },
290
292
  attachments: accumulated.attachments,
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-5S6OYWE3.mjs';
1
+ export { _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-6ICSE4FE.mjs';
@@ -90,7 +90,7 @@ async function postJson(url, body, headers, opts) {
90
90
  // package.json
91
91
  var package_default = {
92
92
  name: "@raindrop-ai/ai-sdk",
93
- version: "0.0.6"};
93
+ version: "0.0.7"};
94
94
 
95
95
  // src/internal/version.ts
96
96
  var libraryName = package_default.name;
@@ -276,19 +276,21 @@ var EventShipper = class {
276
276
  }
277
277
  return;
278
278
  }
279
+ const { wizardSession, ...restProperties } = (_e = accumulated.properties) != null ? _e : {};
279
280
  const payload = {
280
281
  event_id: eventId,
281
282
  user_id: userId,
282
283
  event: eventName,
283
- timestamp: (_e = accumulated.timestamp) != null ? _e : (/* @__PURE__ */ new Date()).toISOString(),
284
+ timestamp: (_f = accumulated.timestamp) != null ? _f : (/* @__PURE__ */ new Date()).toISOString(),
284
285
  ai_data: {
285
286
  input: accumulated.input,
286
287
  output: accumulated.output,
287
288
  model: accumulated.model,
288
- convo_id: (_f = accumulated.convoId) != null ? _f : sticky.convoId
289
+ convo_id: (_g = accumulated.convoId) != null ? _g : sticky.convoId
289
290
  },
290
291
  properties: {
291
- ...(_g = accumulated.properties) != null ? _g : {},
292
+ ...restProperties,
293
+ ...wizardSession ? { "raindrop.wizardSession": wizardSession } : {},
292
294
  $context: this.context
293
295
  },
294
296
  attachments: accumulated.attachments,
@@ -1,4 +1,4 @@
1
- export { _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-5S6OYWE3.mjs';
1
+ export { _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-6ICSE4FE.mjs';
2
2
  import { AsyncLocalStorage } from 'async_hooks';
3
3
 
4
4
  globalThis.RAINDROP_ASYNC_LOCAL_STORAGE = AsyncLocalStorage;
@@ -90,7 +90,7 @@ async function postJson(url, body, headers, opts) {
90
90
  // package.json
91
91
  var package_default = {
92
92
  name: "@raindrop-ai/ai-sdk",
93
- version: "0.0.6"};
93
+ version: "0.0.7"};
94
94
 
95
95
  // src/internal/version.ts
96
96
  var libraryName = package_default.name;
@@ -276,19 +276,21 @@ var EventShipper = class {
276
276
  }
277
277
  return;
278
278
  }
279
+ const { wizardSession, ...restProperties } = (_e = accumulated.properties) != null ? _e : {};
279
280
  const payload = {
280
281
  event_id: eventId,
281
282
  user_id: userId,
282
283
  event: eventName,
283
- timestamp: (_e = accumulated.timestamp) != null ? _e : (/* @__PURE__ */ new Date()).toISOString(),
284
+ timestamp: (_f = accumulated.timestamp) != null ? _f : (/* @__PURE__ */ new Date()).toISOString(),
284
285
  ai_data: {
285
286
  input: accumulated.input,
286
287
  output: accumulated.output,
287
288
  model: accumulated.model,
288
- convo_id: (_f = accumulated.convoId) != null ? _f : sticky.convoId
289
+ convo_id: (_g = accumulated.convoId) != null ? _g : sticky.convoId
289
290
  },
290
291
  properties: {
291
- ...(_g = accumulated.properties) != null ? _g : {},
292
+ ...restProperties,
293
+ ...wizardSession ? { "raindrop.wizardSession": wizardSession } : {},
292
294
  $context: this.context
293
295
  },
294
296
  attachments: accumulated.attachments,
@@ -1,4 +1,4 @@
1
- export { _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-5S6OYWE3.mjs';
1
+ export { _resetWarnedMissingUserId, createRaindropAISDK, currentSpan, eventMetadata, getContextManager, withCurrent } from './chunk-6ICSE4FE.mjs';
2
2
  import { AsyncLocalStorage } from 'async_hooks';
3
3
 
4
4
  if (!globalThis.RAINDROP_ASYNC_LOCAL_STORAGE) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@raindrop-ai/ai-sdk",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "Standalone Vercel AI SDK integration for Raindrop (events + OTLP/HTTP JSON traces, no OTEL runtime)",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",