@hyperdrive.bot/paseo-client 0.3.48 → 0.3.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/daemon-client.d.ts +2 -2
- package/dist/daemon-client.js +9 -3
- package/package.json +3 -3
package/dist/daemon-client.d.ts
CHANGED
|
@@ -970,9 +970,9 @@ export declare class DaemonClient {
|
|
|
970
970
|
restartServer(reason?: string, requestId?: string): Promise<RestartRequestedStatusPayload>;
|
|
971
971
|
shutdownServer(options?: ShutdownServerOptions): Promise<ShutdownRequestedStatusPayload>;
|
|
972
972
|
updateDaemon(requestId?: string): Promise<DaemonUpdateResponse["payload"]>;
|
|
973
|
-
setVoiceMode(enabled: boolean, agentId?: string): Promise<SetVoiceModePayload>;
|
|
973
|
+
setVoiceMode(enabled: boolean, agentId?: string, language?: string): Promise<SetVoiceModePayload>;
|
|
974
974
|
sendVoiceAudioChunk(audio: string, format: string, isLast?: boolean): Promise<void>;
|
|
975
|
-
startDictationStream(dictationId: string, format: string): Promise<void>;
|
|
975
|
+
startDictationStream(dictationId: string, format: string, language?: string): Promise<void>;
|
|
976
976
|
sendDictationStreamChunk(dictationId: string, seq: number, audio: string, format: string): void;
|
|
977
977
|
finishDictationStream(dictationId: string, finalSeq: number): Promise<{
|
|
978
978
|
dictationId: string;
|
package/dist/daemon-client.js
CHANGED
|
@@ -2431,12 +2431,13 @@ export class DaemonClient {
|
|
|
2431
2431
|
// ============================================================================
|
|
2432
2432
|
// Audio / Voice
|
|
2433
2433
|
// ============================================================================
|
|
2434
|
-
async setVoiceMode(enabled, agentId) {
|
|
2434
|
+
async setVoiceMode(enabled, agentId, language) {
|
|
2435
2435
|
const requestId = this.createRequestId();
|
|
2436
2436
|
const message = SessionInboundMessageSchema.parse({
|
|
2437
2437
|
type: "set_voice_mode",
|
|
2438
2438
|
enabled,
|
|
2439
2439
|
...(agentId ? { agentId } : {}),
|
|
2440
|
+
...(language ? { language } : {}),
|
|
2440
2441
|
requestId,
|
|
2441
2442
|
});
|
|
2442
2443
|
const response = await this.sendRequest({
|
|
@@ -2463,7 +2464,7 @@ export class DaemonClient {
|
|
|
2463
2464
|
async sendVoiceAudioChunk(audio, format, isLast = false) {
|
|
2464
2465
|
this.sendSessionMessage({ type: "voice_audio_chunk", audio, format, isLast });
|
|
2465
2466
|
}
|
|
2466
|
-
async startDictationStream(dictationId, format) {
|
|
2467
|
+
async startDictationStream(dictationId, format, language) {
|
|
2467
2468
|
const ack = this.waitForWithCancel((msg) => {
|
|
2468
2469
|
if (msg.type !== "dictation_stream_ack") {
|
|
2469
2470
|
return null;
|
|
@@ -2491,7 +2492,12 @@ export class DaemonClient {
|
|
|
2491
2492
|
});
|
|
2492
2493
|
const cleanupError = new Error("Cancelled dictation start waiter");
|
|
2493
2494
|
try {
|
|
2494
|
-
this.sendSessionMessageStrict({
|
|
2495
|
+
this.sendSessionMessageStrict({
|
|
2496
|
+
type: "dictation_stream_start",
|
|
2497
|
+
dictationId,
|
|
2498
|
+
format,
|
|
2499
|
+
...(language ? { language } : {}),
|
|
2500
|
+
});
|
|
2495
2501
|
await Promise.race([ackPromise, errorPromise]);
|
|
2496
2502
|
}
|
|
2497
2503
|
finally {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperdrive.bot/paseo-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.53",
|
|
4
4
|
"description": "Paseo client SDK package",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"test": "vitest run"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@hyperdrive.bot/paseo-protocol": "0.3.
|
|
39
|
-
"@hyperdrive.bot/paseo-relay": "0.3.
|
|
38
|
+
"@hyperdrive.bot/paseo-protocol": "0.3.53",
|
|
39
|
+
"@hyperdrive.bot/paseo-relay": "0.3.53",
|
|
40
40
|
"zod": "^4.4.3"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|