@lokutor/sdk 1.1.42 → 1.1.43
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -2
- package/src/conversational-panel.ts +3 -2
package/dist/index.d.mts
CHANGED
|
@@ -662,7 +662,7 @@ interface ConversationalPanelConfig {
|
|
|
662
662
|
tools?: any[];
|
|
663
663
|
/** Maximum conversation duration in seconds (default 300) */
|
|
664
664
|
maxDuration?: number;
|
|
665
|
-
/** Seconds of silence before auto-close (default
|
|
665
|
+
/** Seconds of silence before auto-close (default 60) */
|
|
666
666
|
silenceTimeout?: number;
|
|
667
667
|
}
|
|
668
668
|
declare class ConversationalPanel {
|
package/dist/index.d.ts
CHANGED
|
@@ -662,7 +662,7 @@ interface ConversationalPanelConfig {
|
|
|
662
662
|
tools?: any[];
|
|
663
663
|
/** Maximum conversation duration in seconds (default 300) */
|
|
664
664
|
maxDuration?: number;
|
|
665
|
-
/** Seconds of silence before auto-close (default
|
|
665
|
+
/** Seconds of silence before auto-close (default 60) */
|
|
666
666
|
silenceTimeout?: number;
|
|
667
667
|
}
|
|
668
668
|
declare class ConversationalPanel {
|
package/dist/index.js
CHANGED
|
@@ -1827,6 +1827,7 @@ var ConversationalPanel = class {
|
|
|
1827
1827
|
else if (status === "thinking") this.el.classList.add("cv-is-thinking");
|
|
1828
1828
|
},
|
|
1829
1829
|
onTranscription: (text) => {
|
|
1830
|
+
this._lastSpeechTime = Date.now();
|
|
1830
1831
|
this.onTranscription?.(text);
|
|
1831
1832
|
},
|
|
1832
1833
|
onResponse: (text) => {
|
|
@@ -1986,7 +1987,7 @@ var ConversationalPanel = class {
|
|
|
1986
1987
|
startTimer() {
|
|
1987
1988
|
let elapsed = 0;
|
|
1988
1989
|
const maxDur = this.cfg.maxDuration || 300;
|
|
1989
|
-
const silentMax = this.cfg.silenceTimeout ||
|
|
1990
|
+
const silentMax = this.cfg.silenceTimeout || 60;
|
|
1990
1991
|
this._lastSpeechTime = Date.now();
|
|
1991
1992
|
this.timerEl.textContent = this.fmt(maxDur);
|
|
1992
1993
|
this.timerTicker = window.setInterval(() => {
|
package/dist/index.mjs
CHANGED
|
@@ -1780,6 +1780,7 @@ var ConversationalPanel = class {
|
|
|
1780
1780
|
else if (status === "thinking") this.el.classList.add("cv-is-thinking");
|
|
1781
1781
|
},
|
|
1782
1782
|
onTranscription: (text) => {
|
|
1783
|
+
this._lastSpeechTime = Date.now();
|
|
1783
1784
|
this.onTranscription?.(text);
|
|
1784
1785
|
},
|
|
1785
1786
|
onResponse: (text) => {
|
|
@@ -1939,7 +1940,7 @@ var ConversationalPanel = class {
|
|
|
1939
1940
|
startTimer() {
|
|
1940
1941
|
let elapsed = 0;
|
|
1941
1942
|
const maxDur = this.cfg.maxDuration || 300;
|
|
1942
|
-
const silentMax = this.cfg.silenceTimeout ||
|
|
1943
|
+
const silentMax = this.cfg.silenceTimeout || 60;
|
|
1943
1944
|
this._lastSpeechTime = Date.now();
|
|
1944
1945
|
this.timerEl.textContent = this.fmt(maxDur);
|
|
1945
1946
|
this.timerTicker = window.setInterval(() => {
|
package/package.json
CHANGED
|
@@ -321,7 +321,7 @@ export interface ConversationalPanelConfig {
|
|
|
321
321
|
tools?: any[];
|
|
322
322
|
/** Maximum conversation duration in seconds (default 300) */
|
|
323
323
|
maxDuration?: number;
|
|
324
|
-
/** Seconds of silence before auto-close (default
|
|
324
|
+
/** Seconds of silence before auto-close (default 60) */
|
|
325
325
|
silenceTimeout?: number;
|
|
326
326
|
}
|
|
327
327
|
|
|
@@ -501,6 +501,7 @@ export class ConversationalPanel {
|
|
|
501
501
|
else if (status === 'thinking') this.el.classList.add('cv-is-thinking');
|
|
502
502
|
},
|
|
503
503
|
onTranscription: (text: string) => {
|
|
504
|
+
this._lastSpeechTime = Date.now();
|
|
504
505
|
this.onTranscription?.(text);
|
|
505
506
|
},
|
|
506
507
|
onResponse: (text: string) => {
|
|
@@ -674,7 +675,7 @@ export class ConversationalPanel {
|
|
|
674
675
|
private startTimer() {
|
|
675
676
|
let elapsed = 0;
|
|
676
677
|
const maxDur = this.cfg.maxDuration || 300;
|
|
677
|
-
const silentMax = this.cfg.silenceTimeout ||
|
|
678
|
+
const silentMax = this.cfg.silenceTimeout || 60;
|
|
678
679
|
this._lastSpeechTime = Date.now();
|
|
679
680
|
this.timerEl.textContent = this.fmt(maxDur);
|
|
680
681
|
this.timerTicker = window.setInterval(() => {
|