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