@dropout-ai/runtime 0.2.8 → 0.2.9

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropout-ai/runtime",
3
- "version": "0.2.08",
3
+ "version": "0.2.09",
4
4
  "description": "Invisible Node.js runtime for capturing AI interactions.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/index.js CHANGED
@@ -177,7 +177,7 @@ if (typeof GLOBAL_OBJ.fetch === 'function' && !GLOBAL_OBJ.fetch.__dropout_patche
177
177
  const requestEvent = {
178
178
  session_id: GLOBAL_OBJ.__dropout_session_id__,
179
179
  turn_index: activeTurn,
180
- direction: 'request',
180
+ direction: 'user_to_ai',
181
181
  turn_role: 'user',
182
182
  created_at: Date.now(),
183
183
  provider,
@@ -218,7 +218,7 @@ if (typeof GLOBAL_OBJ.fetch === 'function' && !GLOBAL_OBJ.fetch.__dropout_patche
218
218
  const responseEvent = {
219
219
  session_id: GLOBAL_OBJ.__dropout_session_id__,
220
220
  turn_index: activeTurn,
221
- direction: 'response',
221
+ direction: 'ai_to_user',
222
222
  turn_role: 'assistant',
223
223
  created_at: Date.now(),
224
224
  latency_ms: latency,
@@ -277,7 +277,7 @@ async function capture(target, options = {}) {
277
277
  emit({
278
278
  session_id: GLOBAL_OBJ.__dropout_session_id__,
279
279
  turn_index: activeTurn,
280
- direction: 'request',
280
+ direction: 'user_to_ai',
281
281
  turn_role: 'user',
282
282
  created_at: Date.now(),
283
283
  provider: options.provider || 'manual',
@@ -291,7 +291,7 @@ async function capture(target, options = {}) {
291
291
  emit({
292
292
  session_id: GLOBAL_OBJ.__dropout_session_id__,
293
293
  turn_index: activeTurn,
294
- direction: 'response',
294
+ direction: 'ai_to_user',
295
295
  turn_role: 'assistant',
296
296
  created_at: Date.now(),
297
297
  latency_ms,