@dropout-ai/runtime 0.4.1 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropout-ai/runtime",
3
- "version": "0.4.1",
3
+ "version": "0.4.3",
4
4
  "description": "Invisible Node.js runtime for understanding behavioral impact of AI interactions.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.d.ts ADDED
@@ -0,0 +1,38 @@
1
+ // packages/runtime/src/index.d.ts
2
+
3
+ export interface DropoutConfig {
4
+ projectId: string;
5
+ apiKey: string;
6
+ debug?: boolean;
7
+ privacy?: 'full' | 'mask';
8
+ }
9
+
10
+ export default class Dropout {
11
+ /**
12
+ * The project ID associated with this instance.
13
+ */
14
+ projectId: string;
15
+
16
+ /**
17
+ * The API Key used for authentication.
18
+ */
19
+ apiKey: string;
20
+
21
+ /**
22
+ * Enable debug mode for verbose logging.
23
+ */
24
+ debug: boolean;
25
+
26
+ /**
27
+ * Privacy setting ('full' captures text, 'mask' captures metadata only).
28
+ */
29
+ privacy: 'full' | 'mask';
30
+
31
+ /**
32
+ * Universal Initialization Method (Idempotent).
33
+ * Safe to call multiple times; will only initialize once.
34
+ */
35
+ static init(config: DropoutConfig): Dropout;
36
+
37
+ constructor(config: DropoutConfig);
38
+ }
package/src/index.js CHANGED
@@ -104,7 +104,7 @@ class Dropout {
104
104
  this.patchNetwork();
105
105
 
106
106
  // 5. SEND STARTUP PING
107
- this.sendStartupSignal();
107
+ //this.sendStartupSignal();
108
108
 
109
109
  // Lock the instance
110
110
  Dropout.instance = this;