@pipecat-ai/daily-transport 1.6.0 → 1.6.2
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/index.d.ts.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +19 -5
- package/dist/index.module.js.map +1 -1
- package/package.json +11 -4
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;
|
|
1
|
+
{"mappings":";;ASwCA;IACE,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,iDAAkD,SAAQ,mBAAmB;IAC3E,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACzC;AAED;IACE,uBAAuB,4BAA4B;IACnD,uBAAuB,4BAA4B;CACpD;AAED,kCAAkC,kBAAkB,GAClD,OAAO,CAAC;IACN,uBAAuB,EAAE,MAAM,IAAI,CAAC;IACpC,uBAAuB,EAAE,MAAM,IAAI,CAAC;CACrC,CAAC,CAAC;AAoDL,2BAA4B,SAAQ,SAAS;IAE3C,UAAkB,UAAU,EAAE,mBAAmB,CAAC;gBAkBtC,IAAI,GAAE,gCAAqC;IAkCvD,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI;IA2B9C,eAAe,CAAC,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI;IAoBxC,UAAU,CACf,OAAO,EAAE,oBAAoB,EAC7B,cAAc,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,IAAI,GACxC,IAAI;IA8BP,IAAI,eAAe,IAAI,SAAS,CAE/B;IAED,IAAI,KAAK,IAAI,cAAc,CAE1B;IAED,OAAO,KAAK,KAAK,QAKhB;IAED,cAAc;IAIR,UAAU;IAKhB,SAAS,CAAC,KAAK,EAAE,MAAM;IAUvB,IAAI,WAAW,4CAEd;IAEK,UAAU;IAKhB,SAAS,CAAC,KAAK,EAAE,MAAM;IAUvB,IAAI,WAAW,4CAEd;IAEK,cAAc;IAKpB,aAAa,CAAC,SAAS,EAAE,MAAM;IAa/B,IAAI,eAAe,4CAElB;IAED,SAAS,CAAC,MAAM,EAAE,OAAO;IAYzB,IAAI,YAAY,YAEf;IAED,SAAS,CAAC,MAAM,EAAE,OAAO;IAOzB,IAAI,YAAY,YAEf;IAEM,iBAAiB,CAAC,MAAM,EAAE,OAAO;IAQxC,IAAW,eAAe,IAAI,OAAO,CAEpC;IAED,MAAM;IAuCA,OAAO,CAAC,gBAAgB,EAAE,gBAAgB;IAK1C,WAAW;IAgCjB,yBAAyB,CACvB,aAAa,CAAC,EAAE,OAAO,GACtB,gBAAgB,GAAG,SAAS;IA+BzB,QAAQ,CAAC,aAAa,CAAC,EAAE,gBAAgB;IAiCzC,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;IAiGjC,WAAW;IAYV,WAAW,CAAC,OAAO,EAAE,WAAW;CAwPxC","sources":["transports/lib/wavtools/lib/wav_packer.js","transports/lib/wavtools/lib/analysis/constants.js","transports/lib/wavtools/lib/analysis/audio_analysis.js","transports/lib/wavtools/lib/worklets/stream_processor.js","transports/lib/wavtools/lib/wav_stream_player.js","transports/lib/wavtools/lib/worklets/audio_processor.js","transports/lib/wavtools/lib/wav_recorder.js","transports/lib/wavtools/lib/mediastream_recorder.js","transports/lib/wavtools/index.js","transports/daily/src/src/transport.ts","transports/daily/src/src/index.ts","transports/daily/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,"export * from \"./transport\";\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.js
CHANGED
|
@@ -1523,7 +1523,7 @@ globalThis.WavRecorder = WavRecorder;
|
|
|
1523
1523
|
|
|
1524
1524
|
|
|
1525
1525
|
var $c2e964a535c1120e$exports = {};
|
|
1526
|
-
$c2e964a535c1120e$exports = JSON.parse("{\"name\":\"@pipecat-ai/daily-transport\",\"version\":\"1.6.
|
|
1526
|
+
$c2e964a535c1120e$exports = JSON.parse("{\"name\":\"@pipecat-ai/daily-transport\",\"version\":\"1.6.2\",\"license\":\"BSD-2-Clause\",\"main\":\"dist/index.js\",\"module\":\"dist/index.module.js\",\"types\":\"dist/index.d.ts\",\"source\":\"src/index.ts\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/pipecat-ai/pipecat-client-web-transports.git\"},\"exports\":{\".\":{\"types\":\"./dist/index.d.ts\",\"import\":\"./dist/index.module.js\",\"require\":\"./dist/index.js\"}},\"files\":[\"dist\",\"package.json\",\"README.md\"],\"scripts\":{\"build\":\"parcel build --no-cache\",\"dev\":\"parcel watch\",\"lint\":\"eslint . --ext ts --report-unused-disable-directives --max-warnings 0\"},\"devDependencies\":{\"@pipecat-ai/client-js\":\"^1.7.0\",\"eslint\":\"9.39.1\",\"eslint-config-prettier\":\"^9.1.0\",\"eslint-plugin-simple-import-sort\":\"^12.1.1\"},\"peerDependencies\":{\"@pipecat-ai/client-js\":\"~1.7.0\"},\"dependencies\":{\"@daily-co/daily-js\":\"^0.89.1\"},\"description\":\"Pipecat Daily Transport Package\",\"author\":\"Daily.co\",\"bugs\":{\"url\":\"https://github.com/pipecat-ai/pipecat-client-web-transports/issues\"},\"homepage\":\"https://github.com/pipecat-ai/pipecat-client-web-transports/blob/main/transports/daily-webrtc/README.md\"}");
|
|
1527
1527
|
|
|
1528
1528
|
|
|
1529
1529
|
var $28bdeb35415d61e8$export$ef180de88fd317cc;
|
|
@@ -1711,13 +1711,20 @@ class $28bdeb35415d61e8$export$b1ca982aa1e488c1 extends (0, $jrPAn$pipecataiclie
|
|
|
1711
1711
|
return this._selectedSpeaker;
|
|
1712
1712
|
}
|
|
1713
1713
|
enableMic(enable) {
|
|
1714
|
-
|
|
1714
|
+
// Persist the caller's preference so a subsequent connect() picks it
|
|
1715
|
+
// up via initDevices()'s startCamera({ startAudioOff }) call. Without
|
|
1716
|
+
// this, pre-session toggles were silently lost. Apply live only when
|
|
1717
|
+
// joined — pre-session, daily-js can't act on the request because the
|
|
1718
|
+
// call object isn't part of a meeting yet.
|
|
1719
|
+
this._dailyFactoryOptions.startAudioOff = !enable;
|
|
1720
|
+
if (this._daily.participants()?.local) this._daily.setLocalAudio(enable);
|
|
1715
1721
|
}
|
|
1716
1722
|
get isMicEnabled() {
|
|
1717
1723
|
return this._daily.localAudio();
|
|
1718
1724
|
}
|
|
1719
1725
|
enableCam(enable) {
|
|
1720
|
-
this.
|
|
1726
|
+
this._dailyFactoryOptions.startVideoOff = !enable;
|
|
1727
|
+
if (this._daily.participants()?.local) this._daily.setLocalVideo(enable);
|
|
1721
1728
|
}
|
|
1722
1729
|
get isCamEnabled() {
|
|
1723
1730
|
return this._daily.localVideo();
|
|
@@ -1819,6 +1826,8 @@ class $28bdeb35415d61e8$export$b1ca982aa1e488c1 extends (0, $jrPAn$pipecataiclie
|
|
|
1819
1826
|
throw new (0, $jrPAn$pipecataiclientjs.TransportStartError)();
|
|
1820
1827
|
}
|
|
1821
1828
|
if (this._abortController?.signal.aborted) return;
|
|
1829
|
+
const r = await this._daily.room();
|
|
1830
|
+
this._maxMessageSize = r?.domainConfig?.max_app_message_size || 10485760;
|
|
1822
1831
|
this.state = "connected";
|
|
1823
1832
|
this._callbacks.onConnected?.();
|
|
1824
1833
|
}
|
|
@@ -1897,7 +1906,12 @@ class $28bdeb35415d61e8$export$b1ca982aa1e488c1 extends (0, $jrPAn$pipecataiclie
|
|
|
1897
1906
|
await this._daily.leave();
|
|
1898
1907
|
}
|
|
1899
1908
|
sendMessage(message) {
|
|
1900
|
-
|
|
1909
|
+
try {
|
|
1910
|
+
this._daily.sendAppMessage(message, "*");
|
|
1911
|
+
} catch (error) {
|
|
1912
|
+
if (error instanceof Error && error.message.includes("Message data too large")) throw new (0, $jrPAn$pipecataiclientjs.MessageTooLargeError)(error.message);
|
|
1913
|
+
throw error;
|
|
1914
|
+
}
|
|
1901
1915
|
}
|
|
1902
1916
|
handleAppMessage(ev) {
|
|
1903
1917
|
// Bubble any messages with rtvi-ai label
|