@speechos/core 0.2.10 → 0.2.11

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.
@@ -12,30 +12,15 @@ export interface VoiceBackend {
12
12
  startVoiceSession(options?: VoiceSessionOptions): Promise<void>;
13
13
  stopVoiceSession(): Promise<string>;
14
14
  requestEditText(originalText: string): Promise<string>;
15
- requestCommand(commands: CommandDefinition[]): Promise<CommandResult | null>;
15
+ requestCommand(commands: CommandDefinition[]): Promise<CommandResult[]>;
16
16
  disconnect(): Promise<void>;
17
17
  isConnected(): boolean;
18
18
  /** Get the last input text (transcript) from a command result */
19
19
  getLastInputText?(): string | undefined;
20
- prefetchToken?(): Promise<unknown>;
21
- startAutoRefresh?(): void;
22
- stopAutoRefresh?(): void;
23
- invalidateTokenCache?(): void;
24
20
  }
25
21
  /**
26
22
  * Get the active voice backend.
27
- * Always returns WebSocket backend (LiveKit is legacy).
28
23
  *
29
24
  * @returns The websocket backend
30
25
  */
31
26
  export declare function getBackend(): VoiceBackend;
32
- /**
33
- * Check if the current backend is LiveKit.
34
- * @deprecated Always returns false - LiveKit is legacy
35
- */
36
- export declare function isLiveKitBackend(): boolean;
37
- /**
38
- * Check if the current backend is WebSocket.
39
- * @deprecated Always returns true - WebSocket is the only backend
40
- */
41
- export declare function isWebSocketBackend(): boolean;
package/dist/backend.d.ts CHANGED
@@ -12,30 +12,15 @@ export interface VoiceBackend {
12
12
  startVoiceSession(options?: VoiceSessionOptions): Promise<void>;
13
13
  stopVoiceSession(): Promise<string>;
14
14
  requestEditText(originalText: string): Promise<string>;
15
- requestCommand(commands: CommandDefinition[]): Promise<CommandResult | null>;
15
+ requestCommand(commands: CommandDefinition[]): Promise<CommandResult[]>;
16
16
  disconnect(): Promise<void>;
17
17
  isConnected(): boolean;
18
18
  /** Get the last input text (transcript) from a command result */
19
19
  getLastInputText?(): string | undefined;
20
- prefetchToken?(): Promise<unknown>;
21
- startAutoRefresh?(): void;
22
- stopAutoRefresh?(): void;
23
- invalidateTokenCache?(): void;
24
20
  }
25
21
  /**
26
22
  * Get the active voice backend.
27
- * Always returns WebSocket backend (LiveKit is legacy).
28
23
  *
29
24
  * @returns The websocket backend
30
25
  */
31
26
  export declare function getBackend(): VoiceBackend;
32
- /**
33
- * Check if the current backend is LiveKit.
34
- * @deprecated Always returns false - LiveKit is legacy
35
- */
36
- export declare function isLiveKitBackend(): boolean;
37
- /**
38
- * Check if the current backend is WebSocket.
39
- * @deprecated Always returns true - WebSocket is the only backend
40
- */
41
- export declare function isWebSocketBackend(): boolean;