@urun-sh/openai 0.6.52 → 0.6.53
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/dist/{chunk-JU5V4ZET.js → chunk-5PA6542H.js} +1 -1
- package/dist/chunk-7IT4XK2K.js +66 -0
- package/dist/{chunk-3O4TBGQL.js → chunk-D7PBMXB6.js} +1 -1
- package/dist/{chunk-2JEZNE5Z.js → chunk-K5TQMHAY.js} +1 -1
- package/dist/{chunk-JR5TNOMP.js → chunk-ZWDQPTSH.js} +1 -1
- package/dist/{composite-D7icObdD.d.cts → composite-4ppY0Kv6.d.cts} +11 -0
- package/dist/{composite-DyRe-KRu.d.ts → composite-BKEde6hP.d.ts} +2 -0
- package/dist/hosted/bin.cjs +41 -41
- package/dist/hosted/bin.js +1 -1
- package/dist/hosted/index.cjs +33 -33
- package/dist/hosted/index.d.cts +1 -1
- package/dist/hosted/index.d.ts +1 -1
- package/dist/hosted/index.js +1 -1
- package/dist/pooler/bin.js +1 -1
- package/dist/proxy/cli.cjs +36 -36
- package/dist/proxy/cli.js +1 -1
- package/dist/proxy/index.cjs +24 -24
- package/dist/proxy/index.d.cts +10 -2
- package/dist/proxy/index.d.ts +10 -2
- package/dist/proxy/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-ONFTTWZH.js +0 -66
package/dist/proxy/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Server, IncomingMessage } from 'node:http';
|
|
2
|
-
import { h as ProxyHandlerOptions, P as ProxyClients, l as RealtimeCompanionsFor, k as RealtimeBinding, R as RealtimeAdmissionNotifier } from '../composite-
|
|
3
|
-
export { D as DialObserver, a as DialReport, O as OPENAI_REALTIME_PATH, f as OpenAIRealtimeOptions, g as OpenAIRealtimeResolver, i as ProxyIdentity, j as ProxyVideoOutLane, S as SessionGoneError, U as UnknownModelError, o as attachOpenAIRealtime } from '../composite-
|
|
2
|
+
import { h as ProxyHandlerOptions, P as ProxyClients, l as RealtimeCompanionsFor, k as RealtimeBinding, R as RealtimeAdmissionNotifier } from '../composite-4ppY0Kv6.cjs';
|
|
3
|
+
export { D as DialObserver, a as DialReport, O as OPENAI_REALTIME_PATH, f as OpenAIRealtimeOptions, g as OpenAIRealtimeResolver, i as ProxyIdentity, j as ProxyVideoOutLane, S as SessionGoneError, U as UnknownModelError, o as attachOpenAIRealtime } from '../composite-4ppY0Kv6.cjs';
|
|
4
4
|
export { h as GEMINI_LIVE_PATH, V as VIDEO_OUT_SETUP_KEY } from '../translator-C6MpaZS-.cjs';
|
|
5
5
|
import { WebSocket } from 'ws';
|
|
6
6
|
import '../models-D7F0bLJ3.cjs';
|
|
@@ -382,6 +382,10 @@ declare class OpenAIRealtimeConnection<S = unknown> {
|
|
|
382
382
|
private audioLaneOwner;
|
|
383
383
|
private audioUnsubscribe;
|
|
384
384
|
private outOfTurnAudioWarned;
|
|
385
|
+
/** Contiguous quiet-track audio (ms) inside the open duplex reply. */
|
|
386
|
+
private duplexSilenceMs;
|
|
387
|
+
/** Transcript length when the open duplex reply opened (its output boundary). */
|
|
388
|
+
private duplexInputCount;
|
|
385
389
|
private audioOnlyTranscriptGapWarned;
|
|
386
390
|
private closed;
|
|
387
391
|
/** The backend's turn/transcript lane consumer (binding.turns), if wired. */
|
|
@@ -617,6 +621,10 @@ declare class OpenAIRealtimeConnection<S = unknown> {
|
|
|
617
621
|
* `out_of_turn_audio` error that caught the speak-lane bug class.
|
|
618
622
|
*/
|
|
619
623
|
private onOutputAudioFrame;
|
|
624
|
+
/** Open a server-initiated reply for duplex engine speech (no upstream turn). */
|
|
625
|
+
private openDuplexResponse;
|
|
626
|
+
/** Close the open duplex reply: its audio item, then `response.done`. */
|
|
627
|
+
private closeDuplexResponse;
|
|
620
628
|
/** One assistant message item per turn (text and audio parts share it). */
|
|
621
629
|
private messageItemAdded;
|
|
622
630
|
/** true when an audio delta opened the message item this turn. */
|
package/dist/proxy/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Server, IncomingMessage } from 'node:http';
|
|
2
|
-
import { h as ProxyHandlerOptions, P as ProxyClients, l as RealtimeCompanionsFor, k as RealtimeBinding, R as RealtimeAdmissionNotifier } from '../composite-
|
|
3
|
-
export { D as DialObserver, a as DialReport, O as OPENAI_REALTIME_PATH, f as OpenAIRealtimeOptions, g as OpenAIRealtimeResolver, i as ProxyIdentity, j as ProxyVideoOutLane, S as SessionGoneError, U as UnknownModelError, o as attachOpenAIRealtime } from '../composite-
|
|
2
|
+
import { h as ProxyHandlerOptions, P as ProxyClients, l as RealtimeCompanionsFor, k as RealtimeBinding, R as RealtimeAdmissionNotifier } from '../composite-BKEde6hP.js';
|
|
3
|
+
export { D as DialObserver, a as DialReport, O as OPENAI_REALTIME_PATH, f as OpenAIRealtimeOptions, g as OpenAIRealtimeResolver, i as ProxyIdentity, j as ProxyVideoOutLane, S as SessionGoneError, U as UnknownModelError, o as attachOpenAIRealtime } from '../composite-BKEde6hP.js';
|
|
4
4
|
export { h as GEMINI_LIVE_PATH, V as VIDEO_OUT_SETUP_KEY } from '../translator-CaOqL-V8.js';
|
|
5
5
|
import { WebSocket } from 'ws';
|
|
6
6
|
import '../models-D7F0bLJ3.js';
|
|
@@ -115,6 +115,10 @@ declare class OpenAIRealtimeConnection<S = unknown> {
|
|
|
115
115
|
private audioLaneOwner;
|
|
116
116
|
private audioUnsubscribe;
|
|
117
117
|
private outOfTurnAudioWarned;
|
|
118
|
+
|
|
119
|
+
private duplexSilenceMs;
|
|
120
|
+
|
|
121
|
+
private duplexInputCount;
|
|
118
122
|
private audioOnlyTranscriptGapWarned;
|
|
119
123
|
private closed;
|
|
120
124
|
|
|
@@ -189,6 +193,10 @@ declare class OpenAIRealtimeConnection<S = unknown> {
|
|
|
189
193
|
|
|
190
194
|
private onOutputAudioFrame;
|
|
191
195
|
|
|
196
|
+
private openDuplexResponse;
|
|
197
|
+
|
|
198
|
+
private closeDuplexResponse;
|
|
199
|
+
|
|
192
200
|
private messageItemAdded;
|
|
193
201
|
|
|
194
202
|
private messageItemOpenForAudio;
|
package/dist/proxy/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{F as I,a as n,b as p,c as m,k as l,l as a,m as x,o as s,r as O,s as f}from"../chunk-
|
|
1
|
+
import{F as I,a as n,b as p,c as m,k as l,l as a,m as x,o as s,r as O,s as f}from"../chunk-7IT4XK2K.js";import{a as o,h as t}from"../chunk-X5BLQXHK.js";import"../chunk-64VO62LW.js";import"../chunk-ZWDQPTSH.js";import{i as r,j as i}from"../chunk-C452ZIU5.js";import{c as e}from"../chunk-YSFSRI3D.js";e();export{o as GEMINI_LIVE_PATH,a as OPENAI_REALTIME_PATH,l as OpenAIRealtimeConnection,n as ResumptionRegistry,i as SessionGoneError,r as UnknownModelError,t as VIDEO_OUT_SETUP_KEY,p as attachGeminiLive,x as attachOpenAIRealtime,I as createOpenAIProxy,f as fixedClientsResolver,O as realtimeBindingFor,s as realtimeModelOf,m as serveGeminiLiveSocket};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@urun-sh/openai",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.53",
|
|
4
4
|
"description": "OpenAI-compatible Realtime + Responses SDK over uRun session primitives (not websockets).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"build:bin": "bun build --compile --external @roamhq/wrtc src/proxy/bin.ts --outfile dist/bin/urun-openai && node scripts/assert-bin-transport.mjs"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@urun-sh/core": "^0.6.
|
|
73
|
+
"@urun-sh/core": "^0.6.53"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@prometheus-io/client": "^0.16.1",
|