@decartai/sdk 0.0.51 → 0.0.52
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.
|
@@ -98,6 +98,14 @@ var WebRTCConnection = class {
|
|
|
98
98
|
durationMs: performance.now() - promptStart,
|
|
99
99
|
success: true
|
|
100
100
|
});
|
|
101
|
+
} else if (localStream) {
|
|
102
|
+
const nullStart = performance.now();
|
|
103
|
+
await Promise.race([this.setImageBase64(null, { prompt: null }), connectAbort]);
|
|
104
|
+
this.emitDiagnostic("phaseTiming", {
|
|
105
|
+
phase: "initial-prompt",
|
|
106
|
+
durationMs: performance.now() - nullStart,
|
|
107
|
+
success: true
|
|
108
|
+
});
|
|
101
109
|
}
|
|
102
110
|
const handshakeStart = performance.now();
|
|
103
111
|
await this.setupNewPeerConnection();
|