lua-cli 3.39.0 → 3.39.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/api-exports.d.ts +72 -72
- package/dist/api-exports.js +529 -283
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +778 -500
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +72 -72
- package/dist/workflow-builder.js +478 -241
- package/dist/workflow-builder.js.map +1 -1
- package/package.json +4 -3
- package/template/package.json +1 -1
|
@@ -223,14 +223,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
223
223
|
*/
|
|
224
224
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
225
225
|
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
voice?: string;
|
|
227
226
|
kind?: "inference";
|
|
228
227
|
options?: Record<string, unknown>;
|
|
228
|
+
voice?: string;
|
|
229
229
|
model?: string;
|
|
230
230
|
}, {
|
|
231
|
-
voice?: string;
|
|
232
231
|
kind?: "inference";
|
|
233
232
|
options?: Record<string, unknown>;
|
|
233
|
+
voice?: string;
|
|
234
234
|
model?: string;
|
|
235
235
|
}>, z.ZodObject<{
|
|
236
236
|
kind: z.ZodLiteral<"plugin">;
|
|
@@ -244,15 +244,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
244
244
|
*/
|
|
245
245
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
|
-
provider?: "deepgram" | "elevenlabs";
|
|
248
247
|
kind?: "plugin";
|
|
249
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
250
248
|
options?: Record<string, unknown>;
|
|
251
|
-
}, {
|
|
252
249
|
provider?: "deepgram" | "elevenlabs";
|
|
253
|
-
kind?: "plugin";
|
|
254
250
|
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
251
|
+
}, {
|
|
252
|
+
kind?: "plugin";
|
|
255
253
|
options?: Record<string, unknown>;
|
|
254
|
+
provider?: "deepgram" | "elevenlabs";
|
|
255
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
256
256
|
}>, z.ZodObject<{
|
|
257
257
|
kind: z.ZodLiteral<"realtime">;
|
|
258
258
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -264,13 +264,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
264
264
|
*/
|
|
265
265
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
266
266
|
}, "strip", z.ZodTypeAny, {
|
|
267
|
-
provider?: "google" | "xai" | "openai";
|
|
268
267
|
kind?: "realtime";
|
|
269
268
|
options?: Record<string, unknown>;
|
|
270
|
-
}, {
|
|
271
269
|
provider?: "google" | "xai" | "openai";
|
|
270
|
+
}, {
|
|
272
271
|
kind?: "realtime";
|
|
273
272
|
options?: Record<string, unknown>;
|
|
273
|
+
provider?: "google" | "xai" | "openai";
|
|
274
274
|
}>]>;
|
|
275
275
|
stt: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
276
276
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -289,14 +289,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
289
289
|
*/
|
|
290
290
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
voice?: string;
|
|
293
292
|
kind?: "inference";
|
|
294
293
|
options?: Record<string, unknown>;
|
|
294
|
+
voice?: string;
|
|
295
295
|
model?: string;
|
|
296
296
|
}, {
|
|
297
|
-
voice?: string;
|
|
298
297
|
kind?: "inference";
|
|
299
298
|
options?: Record<string, unknown>;
|
|
299
|
+
voice?: string;
|
|
300
300
|
model?: string;
|
|
301
301
|
}>, z.ZodObject<{
|
|
302
302
|
kind: z.ZodLiteral<"plugin">;
|
|
@@ -310,15 +310,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
310
310
|
*/
|
|
311
311
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
provider?: "deepgram" | "elevenlabs";
|
|
314
313
|
kind?: "plugin";
|
|
315
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
316
314
|
options?: Record<string, unknown>;
|
|
317
|
-
}, {
|
|
318
315
|
provider?: "deepgram" | "elevenlabs";
|
|
319
|
-
kind?: "plugin";
|
|
320
316
|
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
317
|
+
}, {
|
|
318
|
+
kind?: "plugin";
|
|
321
319
|
options?: Record<string, unknown>;
|
|
320
|
+
provider?: "deepgram" | "elevenlabs";
|
|
321
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
322
322
|
}>, z.ZodObject<{
|
|
323
323
|
kind: z.ZodLiteral<"realtime">;
|
|
324
324
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -330,13 +330,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
330
330
|
*/
|
|
331
331
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
332
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
|
-
provider?: "google" | "xai" | "openai";
|
|
334
333
|
kind?: "realtime";
|
|
335
334
|
options?: Record<string, unknown>;
|
|
336
|
-
}, {
|
|
337
335
|
provider?: "google" | "xai" | "openai";
|
|
336
|
+
}, {
|
|
338
337
|
kind?: "realtime";
|
|
339
338
|
options?: Record<string, unknown>;
|
|
339
|
+
provider?: "google" | "xai" | "openai";
|
|
340
340
|
}>]>>;
|
|
341
341
|
tts: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
342
342
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -355,14 +355,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
355
355
|
*/
|
|
356
356
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
357
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
-
voice?: string;
|
|
359
358
|
kind?: "inference";
|
|
360
359
|
options?: Record<string, unknown>;
|
|
360
|
+
voice?: string;
|
|
361
361
|
model?: string;
|
|
362
362
|
}, {
|
|
363
|
-
voice?: string;
|
|
364
363
|
kind?: "inference";
|
|
365
364
|
options?: Record<string, unknown>;
|
|
365
|
+
voice?: string;
|
|
366
366
|
model?: string;
|
|
367
367
|
}>, z.ZodObject<{
|
|
368
368
|
kind: z.ZodLiteral<"plugin">;
|
|
@@ -376,15 +376,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
376
376
|
*/
|
|
377
377
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
378
378
|
}, "strip", z.ZodTypeAny, {
|
|
379
|
-
provider?: "deepgram" | "elevenlabs";
|
|
380
379
|
kind?: "plugin";
|
|
381
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
382
380
|
options?: Record<string, unknown>;
|
|
383
|
-
}, {
|
|
384
381
|
provider?: "deepgram" | "elevenlabs";
|
|
385
|
-
kind?: "plugin";
|
|
386
382
|
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
383
|
+
}, {
|
|
384
|
+
kind?: "plugin";
|
|
387
385
|
options?: Record<string, unknown>;
|
|
386
|
+
provider?: "deepgram" | "elevenlabs";
|
|
387
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
388
388
|
}>, z.ZodObject<{
|
|
389
389
|
kind: z.ZodLiteral<"realtime">;
|
|
390
390
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -396,13 +396,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
396
396
|
*/
|
|
397
397
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
398
398
|
}, "strip", z.ZodTypeAny, {
|
|
399
|
-
provider?: "google" | "xai" | "openai";
|
|
400
399
|
kind?: "realtime";
|
|
401
400
|
options?: Record<string, unknown>;
|
|
402
|
-
}, {
|
|
403
401
|
provider?: "google" | "xai" | "openai";
|
|
402
|
+
}, {
|
|
404
403
|
kind?: "realtime";
|
|
405
404
|
options?: Record<string, unknown>;
|
|
405
|
+
provider?: "google" | "xai" | "openai";
|
|
406
406
|
}>]>>;
|
|
407
407
|
vad: z.ZodOptional<z.ZodString>;
|
|
408
408
|
vadOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -563,50 +563,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
563
563
|
name?: string;
|
|
564
564
|
vad?: string;
|
|
565
565
|
stt?: {
|
|
566
|
-
voice?: string;
|
|
567
566
|
kind?: "inference";
|
|
568
567
|
options?: Record<string, unknown>;
|
|
568
|
+
voice?: string;
|
|
569
569
|
model?: string;
|
|
570
570
|
} | {
|
|
571
|
-
provider?: "deepgram" | "elevenlabs";
|
|
572
571
|
kind?: "plugin";
|
|
573
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
574
572
|
options?: Record<string, unknown>;
|
|
573
|
+
provider?: "deepgram" | "elevenlabs";
|
|
574
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
575
575
|
} | {
|
|
576
|
-
provider?: "google" | "xai" | "openai";
|
|
577
576
|
kind?: "realtime";
|
|
578
577
|
options?: Record<string, unknown>;
|
|
578
|
+
provider?: "google" | "xai" | "openai";
|
|
579
579
|
};
|
|
580
580
|
volume?: number;
|
|
581
581
|
llm?: {
|
|
582
|
-
voice?: string;
|
|
583
582
|
kind?: "inference";
|
|
584
583
|
options?: Record<string, unknown>;
|
|
584
|
+
voice?: string;
|
|
585
585
|
model?: string;
|
|
586
586
|
} | {
|
|
587
|
-
provider?: "deepgram" | "elevenlabs";
|
|
588
587
|
kind?: "plugin";
|
|
589
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
590
588
|
options?: Record<string, unknown>;
|
|
589
|
+
provider?: "deepgram" | "elevenlabs";
|
|
590
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
591
591
|
} | {
|
|
592
|
-
provider?: "google" | "xai" | "openai";
|
|
593
592
|
kind?: "realtime";
|
|
594
593
|
options?: Record<string, unknown>;
|
|
594
|
+
provider?: "google" | "xai" | "openai";
|
|
595
595
|
};
|
|
596
596
|
tts?: {
|
|
597
|
-
voice?: string;
|
|
598
597
|
kind?: "inference";
|
|
599
598
|
options?: Record<string, unknown>;
|
|
599
|
+
voice?: string;
|
|
600
600
|
model?: string;
|
|
601
601
|
} | {
|
|
602
|
-
provider?: "deepgram" | "elevenlabs";
|
|
603
602
|
kind?: "plugin";
|
|
604
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
605
603
|
options?: Record<string, unknown>;
|
|
604
|
+
provider?: "deepgram" | "elevenlabs";
|
|
605
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
606
606
|
} | {
|
|
607
|
-
provider?: "google" | "xai" | "openai";
|
|
608
607
|
kind?: "realtime";
|
|
609
608
|
options?: Record<string, unknown>;
|
|
609
|
+
provider?: "google" | "xai" | "openai";
|
|
610
610
|
};
|
|
611
611
|
vadOptions?: {
|
|
612
612
|
minSpeechDuration?: number;
|
|
@@ -657,50 +657,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
657
657
|
name?: string;
|
|
658
658
|
vad?: string;
|
|
659
659
|
stt?: {
|
|
660
|
-
voice?: string;
|
|
661
660
|
kind?: "inference";
|
|
662
661
|
options?: Record<string, unknown>;
|
|
662
|
+
voice?: string;
|
|
663
663
|
model?: string;
|
|
664
664
|
} | {
|
|
665
|
-
provider?: "deepgram" | "elevenlabs";
|
|
666
665
|
kind?: "plugin";
|
|
667
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
668
666
|
options?: Record<string, unknown>;
|
|
667
|
+
provider?: "deepgram" | "elevenlabs";
|
|
668
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
669
669
|
} | {
|
|
670
|
-
provider?: "google" | "xai" | "openai";
|
|
671
670
|
kind?: "realtime";
|
|
672
671
|
options?: Record<string, unknown>;
|
|
672
|
+
provider?: "google" | "xai" | "openai";
|
|
673
673
|
};
|
|
674
674
|
volume?: number;
|
|
675
675
|
llm?: {
|
|
676
|
-
voice?: string;
|
|
677
676
|
kind?: "inference";
|
|
678
677
|
options?: Record<string, unknown>;
|
|
678
|
+
voice?: string;
|
|
679
679
|
model?: string;
|
|
680
680
|
} | {
|
|
681
|
-
provider?: "deepgram" | "elevenlabs";
|
|
682
681
|
kind?: "plugin";
|
|
683
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
684
682
|
options?: Record<string, unknown>;
|
|
683
|
+
provider?: "deepgram" | "elevenlabs";
|
|
684
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
685
685
|
} | {
|
|
686
|
-
provider?: "google" | "xai" | "openai";
|
|
687
686
|
kind?: "realtime";
|
|
688
687
|
options?: Record<string, unknown>;
|
|
688
|
+
provider?: "google" | "xai" | "openai";
|
|
689
689
|
};
|
|
690
690
|
tts?: {
|
|
691
|
-
voice?: string;
|
|
692
691
|
kind?: "inference";
|
|
693
692
|
options?: Record<string, unknown>;
|
|
693
|
+
voice?: string;
|
|
694
694
|
model?: string;
|
|
695
695
|
} | {
|
|
696
|
-
provider?: "deepgram" | "elevenlabs";
|
|
697
696
|
kind?: "plugin";
|
|
698
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
699
697
|
options?: Record<string, unknown>;
|
|
698
|
+
provider?: "deepgram" | "elevenlabs";
|
|
699
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
700
700
|
} | {
|
|
701
|
-
provider?: "google" | "xai" | "openai";
|
|
702
701
|
kind?: "realtime";
|
|
703
702
|
options?: Record<string, unknown>;
|
|
703
|
+
provider?: "google" | "xai" | "openai";
|
|
704
704
|
};
|
|
705
705
|
vadOptions?: {
|
|
706
706
|
minSpeechDuration?: number;
|
|
@@ -751,50 +751,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
751
751
|
name?: string;
|
|
752
752
|
vad?: string;
|
|
753
753
|
stt?: {
|
|
754
|
-
voice?: string;
|
|
755
754
|
kind?: "inference";
|
|
756
755
|
options?: Record<string, unknown>;
|
|
756
|
+
voice?: string;
|
|
757
757
|
model?: string;
|
|
758
758
|
} | {
|
|
759
|
-
provider?: "deepgram" | "elevenlabs";
|
|
760
759
|
kind?: "plugin";
|
|
761
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
762
760
|
options?: Record<string, unknown>;
|
|
761
|
+
provider?: "deepgram" | "elevenlabs";
|
|
762
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
763
763
|
} | {
|
|
764
|
-
provider?: "google" | "xai" | "openai";
|
|
765
764
|
kind?: "realtime";
|
|
766
765
|
options?: Record<string, unknown>;
|
|
766
|
+
provider?: "google" | "xai" | "openai";
|
|
767
767
|
};
|
|
768
768
|
volume?: number;
|
|
769
769
|
llm?: {
|
|
770
|
-
voice?: string;
|
|
771
770
|
kind?: "inference";
|
|
772
771
|
options?: Record<string, unknown>;
|
|
772
|
+
voice?: string;
|
|
773
773
|
model?: string;
|
|
774
774
|
} | {
|
|
775
|
-
provider?: "deepgram" | "elevenlabs";
|
|
776
775
|
kind?: "plugin";
|
|
777
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
778
776
|
options?: Record<string, unknown>;
|
|
777
|
+
provider?: "deepgram" | "elevenlabs";
|
|
778
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
779
779
|
} | {
|
|
780
|
-
provider?: "google" | "xai" | "openai";
|
|
781
780
|
kind?: "realtime";
|
|
782
781
|
options?: Record<string, unknown>;
|
|
782
|
+
provider?: "google" | "xai" | "openai";
|
|
783
783
|
};
|
|
784
784
|
tts?: {
|
|
785
|
-
voice?: string;
|
|
786
785
|
kind?: "inference";
|
|
787
786
|
options?: Record<string, unknown>;
|
|
787
|
+
voice?: string;
|
|
788
788
|
model?: string;
|
|
789
789
|
} | {
|
|
790
|
-
provider?: "deepgram" | "elevenlabs";
|
|
791
790
|
kind?: "plugin";
|
|
792
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
793
791
|
options?: Record<string, unknown>;
|
|
792
|
+
provider?: "deepgram" | "elevenlabs";
|
|
793
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
794
794
|
} | {
|
|
795
|
-
provider?: "google" | "xai" | "openai";
|
|
796
795
|
kind?: "realtime";
|
|
797
796
|
options?: Record<string, unknown>;
|
|
797
|
+
provider?: "google" | "xai" | "openai";
|
|
798
798
|
};
|
|
799
799
|
vadOptions?: {
|
|
800
800
|
minSpeechDuration?: number;
|
|
@@ -845,50 +845,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
845
845
|
name?: string;
|
|
846
846
|
vad?: string;
|
|
847
847
|
stt?: {
|
|
848
|
-
voice?: string;
|
|
849
848
|
kind?: "inference";
|
|
850
849
|
options?: Record<string, unknown>;
|
|
850
|
+
voice?: string;
|
|
851
851
|
model?: string;
|
|
852
852
|
} | {
|
|
853
|
-
provider?: "deepgram" | "elevenlabs";
|
|
854
853
|
kind?: "plugin";
|
|
855
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
856
854
|
options?: Record<string, unknown>;
|
|
855
|
+
provider?: "deepgram" | "elevenlabs";
|
|
856
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
857
857
|
} | {
|
|
858
|
-
provider?: "google" | "xai" | "openai";
|
|
859
858
|
kind?: "realtime";
|
|
860
859
|
options?: Record<string, unknown>;
|
|
860
|
+
provider?: "google" | "xai" | "openai";
|
|
861
861
|
};
|
|
862
862
|
volume?: number;
|
|
863
863
|
llm?: {
|
|
864
|
-
voice?: string;
|
|
865
864
|
kind?: "inference";
|
|
866
865
|
options?: Record<string, unknown>;
|
|
866
|
+
voice?: string;
|
|
867
867
|
model?: string;
|
|
868
868
|
} | {
|
|
869
|
-
provider?: "deepgram" | "elevenlabs";
|
|
870
869
|
kind?: "plugin";
|
|
871
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
872
870
|
options?: Record<string, unknown>;
|
|
871
|
+
provider?: "deepgram" | "elevenlabs";
|
|
872
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
873
873
|
} | {
|
|
874
|
-
provider?: "google" | "xai" | "openai";
|
|
875
874
|
kind?: "realtime";
|
|
876
875
|
options?: Record<string, unknown>;
|
|
876
|
+
provider?: "google" | "xai" | "openai";
|
|
877
877
|
};
|
|
878
878
|
tts?: {
|
|
879
|
-
voice?: string;
|
|
880
879
|
kind?: "inference";
|
|
881
880
|
options?: Record<string, unknown>;
|
|
881
|
+
voice?: string;
|
|
882
882
|
model?: string;
|
|
883
883
|
} | {
|
|
884
|
-
provider?: "deepgram" | "elevenlabs";
|
|
885
884
|
kind?: "plugin";
|
|
886
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
887
885
|
options?: Record<string, unknown>;
|
|
886
|
+
provider?: "deepgram" | "elevenlabs";
|
|
887
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
888
888
|
} | {
|
|
889
|
-
provider?: "google" | "xai" | "openai";
|
|
890
889
|
kind?: "realtime";
|
|
891
890
|
options?: Record<string, unknown>;
|
|
891
|
+
provider?: "google" | "xai" | "openai";
|
|
892
892
|
};
|
|
893
893
|
vadOptions?: {
|
|
894
894
|
minSpeechDuration?: number;
|