@livx.cc/agentx 0.99.156 → 0.99.158

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 CHANGED
@@ -945,11 +945,13 @@ declare function formatCatalog(entries: CatalogEntry[], opts: CatalogOptions): s
945
945
  * treats hold as cut. */
946
946
  type OverlapVerdict = 'keep' | 'cut' | 'hold';
947
947
 
948
+ /** A short closing line ("ok bye", "thanks, see you", "ביי", "להתראות"). Long lines that merely contain "bye" are not. */
949
+ declare function isClosing(text: string): boolean;
950
+
948
951
  /** Does the user's line stop mid-phrase (trailing connective / spelled punctuation / comma / slash)? Only the user's own
949
952
  * words count — host notes appended after a newline ("[the user interrupted you…]") are ignored. */
950
953
  declare function endsMidPhrase(text: string): boolean;
951
- /** A short closing line ("ok bye", "thanks, see you", "ביי", "להתראות"). Long lines that merely contain "bye" are not. */
952
- declare function isClosing(text: string): boolean;
954
+
953
955
  interface GateTurn {
954
956
  id: string;
955
957
  /** The user's words, verbatim (several finals joined by a space when merged). */
@@ -1859,6 +1861,8 @@ declare class VoiceCallOptions {
1859
1861
  speak: (text: string, kind: FillKind) => Promise<unknown> | boolean;
1860
1862
  /** Stop the in-flight fill line now (barge-in only). */
1861
1863
  cancel: () => void;
1864
+ /** Cut whatever the host is playing now (MAIN's reply draining): a farewell is said over nothing, then the call hangs up. */
1865
+ cutAudio: () => void;
1862
1866
  /** Host caption — never history. */
1863
1867
  show: (text: string, kind: FillKind) => void;
1864
1868
  /** The user's words that start no MAIN turn — the host's transcript shows them (sendTurn shows the rest): `quick` = a