@dropout-ai/runtime 0.2.9 → 0.2.11

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 +3 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropout-ai/runtime",
3
- "version": "0.2.09",
3
+ "version": "0.2.11",
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
@@ -28,10 +28,12 @@ let lastTurnConfirmed = true;
28
28
  let lastPromptHash = null;
29
29
  let lastResponseHash = null;
30
30
 
31
+ const SUPABASE_FUNCTION_URL = "https://hipughmjlwmwjxzyxfzs.supabase.co/functions/v1/capture-sealed";
32
+
31
33
  // --- Runtime Guarantees ---
32
34
  let config = {
33
35
  maxOutputBytes: 32768,
34
- captureEndpoint: 'http://localhost:4000/capture',
36
+ captureEndpoint: SUPABASE_FUNCTION_URL,
35
37
  configEndpoint: 'http://localhost:4000/config',
36
38
  privacyMode: (typeof process !== 'undefined' && process.env.DROPOUT_PRIVACY_MODE) || 'safe'
37
39
  };
@@ -77,7 +79,6 @@ function emitSessionEnd(reason) {
77
79
  turn_index: turnIndex,
78
80
  direction: 'meta',
79
81
  turn_role: 'system',
80
- created_at: Date.now(),
81
82
  metadata_flags: {
82
83
  session_end: true,
83
84
  end_reason: reason
@@ -179,7 +180,6 @@ if (typeof GLOBAL_OBJ.fetch === 'function' && !GLOBAL_OBJ.fetch.__dropout_patche
179
180
  turn_index: activeTurn,
180
181
  direction: 'user_to_ai',
181
182
  turn_role: 'user',
182
- created_at: Date.now(),
183
183
  provider,
184
184
  model,
185
185
  content_raw: config.privacyMode === 'full' ? pText : null,
@@ -220,7 +220,6 @@ if (typeof GLOBAL_OBJ.fetch === 'function' && !GLOBAL_OBJ.fetch.__dropout_patche
220
220
  turn_index: activeTurn,
221
221
  direction: 'ai_to_user',
222
222
  turn_role: 'assistant',
223
- created_at: Date.now(),
224
223
  latency_ms: latency,
225
224
  provider,
226
225
  model,
@@ -279,7 +278,6 @@ async function capture(target, options = {}) {
279
278
  turn_index: activeTurn,
280
279
  direction: 'user_to_ai',
281
280
  turn_role: 'user',
282
- created_at: Date.now(),
283
281
  provider: options.provider || 'manual',
284
282
  model: options.model || 'unknown',
285
283
  content_raw: mode === 'full' ? prompt : null,
@@ -293,7 +291,6 @@ async function capture(target, options = {}) {
293
291
  turn_index: activeTurn,
294
292
  direction: 'ai_to_user',
295
293
  turn_role: 'assistant',
296
- created_at: Date.now(),
297
294
  latency_ms,
298
295
  provider: options.provider || 'manual',
299
296
  model: options.model || 'unknown',