writetrack 0.9.0 → 0.9.1
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/README.md +10 -2
- package/dist/browser/index.js +1 -1
- package/dist/browser/pipes.js +1 -1
- package/dist/browser/viz.js +9 -9
- package/dist/browser/writetrack.wasm +0 -0
- package/dist/esm/index.d.ts +32 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/pipes.js +1 -1
- package/dist/esm/verify.d.ts +1 -1
- package/dist/esm/viz.d.ts +3 -1
- package/dist/esm/viz.js +9 -9
- package/dist/esm/writetrack.wasm +0 -0
- package/dist/index.cjs +1 -1
- package/dist/lexical/index.d.ts +3 -0
- package/dist/pipes.cjs +1 -1
- package/dist/quill/index.d.ts +8 -1
- package/dist/slate/index.d.ts +2 -0
- package/dist/viz.cjs +9 -9
- package/dist/writetrack.wasm +0 -0
- package/package.json +11 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Detect AI-generated and pasted text through keystroke dynamics.
|
|
|
4
4
|
|
|
5
5
|
WriteTrack analyzes _how_ text was entered, not what was written. Human typing has natural variation in timing, rhythm, and corrections. Pasted or AI-generated text arrives all at once with no behavioral fingerprint. WriteTrack captures the difference.
|
|
6
6
|
|
|
7
|
-
- **~
|
|
7
|
+
- **~118KB** gzipped (18KB JS + 100KB WASM)
|
|
8
8
|
- **0** runtime dependencies
|
|
9
9
|
- **<1ms** per keystroke
|
|
10
10
|
- **100%** client-side
|
|
@@ -114,6 +114,7 @@ interface WriteTrackOptions {
|
|
|
114
114
|
wasmUrl?: string; // Custom URL for the WASM analysis binary
|
|
115
115
|
persist?: boolean; // Enable IndexedDB persistence (requires contentId)
|
|
116
116
|
cursorPositionProvider?: () => number; // Custom cursor position for rich-text editors
|
|
117
|
+
inputSourceProvider?: () => InputSource | undefined; // Input source classification (set by editor integrations)
|
|
117
118
|
}
|
|
118
119
|
```
|
|
119
120
|
|
|
@@ -143,6 +144,13 @@ interface WriteTrackOptions {
|
|
|
143
144
|
| `isTargetDetached()` | `boolean` | Whether the target element was removed |
|
|
144
145
|
| `clearPersistedData()` | `Promise<void>` | Clear IndexedDB persisted session |
|
|
145
146
|
|
|
147
|
+
### Static Methods
|
|
148
|
+
|
|
149
|
+
| Method | Returns | Description |
|
|
150
|
+
| ------------------------------------------------ | --------------------------------- | ---------------------------------------- |
|
|
151
|
+
| `WriteTrack.listPersistedSessions()` | `Promise<PersistedSessionInfo[]>` | List all persisted sessions in IndexedDB |
|
|
152
|
+
| `WriteTrack.deletePersistedSession(key, field?)` | `Promise<void>` | Delete persisted session data |
|
|
153
|
+
|
|
146
154
|
### Properties
|
|
147
155
|
|
|
148
156
|
| Property | Type | Description |
|
|
@@ -169,7 +177,7 @@ Full type definitions are included in the package:
|
|
|
169
177
|
|
|
170
178
|
**Functions:** `analyzeEvents`, `createSessionReport`, `formatIndicator`, `getHighResolutionTime`
|
|
171
179
|
|
|
172
|
-
**Types:** `KeystrokeEvent`, `ClipboardEvent`, `SelectionEvent`, `UndoRedoEvent`, `CompositionEvent`, `ProgrammaticInsertionEvent`, `ModifierState`, `WriteTrackDataSchema`, `DataQualityMetrics`, `SessionMetadata`, `SessionAnalysis`, `SessionReport`, `IndicatorOutput`, `AnalyzeEventsOptions`, `WriteTrackSink`
|
|
180
|
+
**Types:** `WriteTrackOptions`, `PersistedSessionInfo`, `KeystrokeEvent`, `ClipboardEvent`, `SelectionEvent`, `UndoRedoEvent`, `CompositionEvent`, `ProgrammaticInsertionEvent`, `ModifierState`, `InputSource`, `WriteTrackDataSchema`, `DataQualityMetrics`, `SessionMetadata`, `SessionAnalysis`, `SessionReport`, `IndicatorOutput`, `ContentOriginAnalysis`, `TimingAuthenticityAnalysis`, `SessionContinuityAnalysis`, `PhysicalPlausibilityAnalysis`, `RevisionBehaviorAnalysis`, `TemporalPatternsAnalysis`, `AnalyzeEventsOptions`, `WriteTrackSink`, `WebhookOptions`, `DatadogOptions`, `DatadogClient`, `SegmentOptions`, `SegmentClient`, `OpenTelemetryOptions`, `OTelTracer`, `OTelSpan`
|
|
173
181
|
|
|
174
182
|
## Browser Support
|
|
175
183
|
|