lua-cli 3.39.2 → 3.39.4
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 +270 -72
- package/dist/api-exports.js +175 -8
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +164 -30
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +72 -72
- package/dist/workflow-builder.js +77 -0
- package/dist/workflow-builder.js.map +1 -1
- package/package.json +5 -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;
|
|
226
227
|
kind?: "inference";
|
|
227
228
|
options?: Record<string, unknown>;
|
|
228
|
-
voice?: string;
|
|
229
229
|
model?: string;
|
|
230
230
|
}, {
|
|
231
|
+
voice?: string;
|
|
231
232
|
kind?: "inference";
|
|
232
233
|
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
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
248
|
+
provider?: "deepgram" | "elevenlabs";
|
|
247
249
|
kind?: "plugin";
|
|
248
250
|
options?: Record<string, unknown>;
|
|
249
|
-
provider?: "deepgram" | "elevenlabs";
|
|
250
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
251
251
|
}, {
|
|
252
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
253
|
+
provider?: "deepgram" | "elevenlabs";
|
|
252
254
|
kind?: "plugin";
|
|
253
255
|
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";
|
|
267
268
|
kind?: "realtime";
|
|
268
269
|
options?: Record<string, unknown>;
|
|
269
|
-
provider?: "google" | "xai" | "openai";
|
|
270
270
|
}, {
|
|
271
|
+
provider?: "google" | "xai" | "openai";
|
|
271
272
|
kind?: "realtime";
|
|
272
273
|
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;
|
|
292
293
|
kind?: "inference";
|
|
293
294
|
options?: Record<string, unknown>;
|
|
294
|
-
voice?: string;
|
|
295
295
|
model?: string;
|
|
296
296
|
}, {
|
|
297
|
+
voice?: string;
|
|
297
298
|
kind?: "inference";
|
|
298
299
|
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
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
314
|
+
provider?: "deepgram" | "elevenlabs";
|
|
313
315
|
kind?: "plugin";
|
|
314
316
|
options?: Record<string, unknown>;
|
|
315
|
-
provider?: "deepgram" | "elevenlabs";
|
|
316
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
317
317
|
}, {
|
|
318
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
319
|
+
provider?: "deepgram" | "elevenlabs";
|
|
318
320
|
kind?: "plugin";
|
|
319
321
|
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";
|
|
333
334
|
kind?: "realtime";
|
|
334
335
|
options?: Record<string, unknown>;
|
|
335
|
-
provider?: "google" | "xai" | "openai";
|
|
336
336
|
}, {
|
|
337
|
+
provider?: "google" | "xai" | "openai";
|
|
337
338
|
kind?: "realtime";
|
|
338
339
|
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;
|
|
358
359
|
kind?: "inference";
|
|
359
360
|
options?: Record<string, unknown>;
|
|
360
|
-
voice?: string;
|
|
361
361
|
model?: string;
|
|
362
362
|
}, {
|
|
363
|
+
voice?: string;
|
|
363
364
|
kind?: "inference";
|
|
364
365
|
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
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
380
|
+
provider?: "deepgram" | "elevenlabs";
|
|
379
381
|
kind?: "plugin";
|
|
380
382
|
options?: Record<string, unknown>;
|
|
381
|
-
provider?: "deepgram" | "elevenlabs";
|
|
382
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
383
383
|
}, {
|
|
384
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
385
|
+
provider?: "deepgram" | "elevenlabs";
|
|
384
386
|
kind?: "plugin";
|
|
385
387
|
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";
|
|
399
400
|
kind?: "realtime";
|
|
400
401
|
options?: Record<string, unknown>;
|
|
401
|
-
provider?: "google" | "xai" | "openai";
|
|
402
402
|
}, {
|
|
403
|
+
provider?: "google" | "xai" | "openai";
|
|
403
404
|
kind?: "realtime";
|
|
404
405
|
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;
|
|
566
567
|
kind?: "inference";
|
|
567
568
|
options?: Record<string, unknown>;
|
|
568
|
-
voice?: string;
|
|
569
569
|
model?: string;
|
|
570
570
|
} | {
|
|
571
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
572
|
+
provider?: "deepgram" | "elevenlabs";
|
|
571
573
|
kind?: "plugin";
|
|
572
574
|
options?: Record<string, unknown>;
|
|
573
|
-
provider?: "deepgram" | "elevenlabs";
|
|
574
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
575
575
|
} | {
|
|
576
|
+
provider?: "google" | "xai" | "openai";
|
|
576
577
|
kind?: "realtime";
|
|
577
578
|
options?: Record<string, unknown>;
|
|
578
|
-
provider?: "google" | "xai" | "openai";
|
|
579
579
|
};
|
|
580
580
|
volume?: number;
|
|
581
581
|
llm?: {
|
|
582
|
+
voice?: string;
|
|
582
583
|
kind?: "inference";
|
|
583
584
|
options?: Record<string, unknown>;
|
|
584
|
-
voice?: string;
|
|
585
585
|
model?: string;
|
|
586
586
|
} | {
|
|
587
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
588
|
+
provider?: "deepgram" | "elevenlabs";
|
|
587
589
|
kind?: "plugin";
|
|
588
590
|
options?: Record<string, unknown>;
|
|
589
|
-
provider?: "deepgram" | "elevenlabs";
|
|
590
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
591
591
|
} | {
|
|
592
|
+
provider?: "google" | "xai" | "openai";
|
|
592
593
|
kind?: "realtime";
|
|
593
594
|
options?: Record<string, unknown>;
|
|
594
|
-
provider?: "google" | "xai" | "openai";
|
|
595
595
|
};
|
|
596
596
|
tts?: {
|
|
597
|
+
voice?: string;
|
|
597
598
|
kind?: "inference";
|
|
598
599
|
options?: Record<string, unknown>;
|
|
599
|
-
voice?: string;
|
|
600
600
|
model?: string;
|
|
601
601
|
} | {
|
|
602
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
603
|
+
provider?: "deepgram" | "elevenlabs";
|
|
602
604
|
kind?: "plugin";
|
|
603
605
|
options?: Record<string, unknown>;
|
|
604
|
-
provider?: "deepgram" | "elevenlabs";
|
|
605
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
606
606
|
} | {
|
|
607
|
+
provider?: "google" | "xai" | "openai";
|
|
607
608
|
kind?: "realtime";
|
|
608
609
|
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;
|
|
660
661
|
kind?: "inference";
|
|
661
662
|
options?: Record<string, unknown>;
|
|
662
|
-
voice?: string;
|
|
663
663
|
model?: string;
|
|
664
664
|
} | {
|
|
665
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
666
|
+
provider?: "deepgram" | "elevenlabs";
|
|
665
667
|
kind?: "plugin";
|
|
666
668
|
options?: Record<string, unknown>;
|
|
667
|
-
provider?: "deepgram" | "elevenlabs";
|
|
668
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
669
669
|
} | {
|
|
670
|
+
provider?: "google" | "xai" | "openai";
|
|
670
671
|
kind?: "realtime";
|
|
671
672
|
options?: Record<string, unknown>;
|
|
672
|
-
provider?: "google" | "xai" | "openai";
|
|
673
673
|
};
|
|
674
674
|
volume?: number;
|
|
675
675
|
llm?: {
|
|
676
|
+
voice?: string;
|
|
676
677
|
kind?: "inference";
|
|
677
678
|
options?: Record<string, unknown>;
|
|
678
|
-
voice?: string;
|
|
679
679
|
model?: string;
|
|
680
680
|
} | {
|
|
681
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
682
|
+
provider?: "deepgram" | "elevenlabs";
|
|
681
683
|
kind?: "plugin";
|
|
682
684
|
options?: Record<string, unknown>;
|
|
683
|
-
provider?: "deepgram" | "elevenlabs";
|
|
684
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
685
685
|
} | {
|
|
686
|
+
provider?: "google" | "xai" | "openai";
|
|
686
687
|
kind?: "realtime";
|
|
687
688
|
options?: Record<string, unknown>;
|
|
688
|
-
provider?: "google" | "xai" | "openai";
|
|
689
689
|
};
|
|
690
690
|
tts?: {
|
|
691
|
+
voice?: string;
|
|
691
692
|
kind?: "inference";
|
|
692
693
|
options?: Record<string, unknown>;
|
|
693
|
-
voice?: string;
|
|
694
694
|
model?: string;
|
|
695
695
|
} | {
|
|
696
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
697
|
+
provider?: "deepgram" | "elevenlabs";
|
|
696
698
|
kind?: "plugin";
|
|
697
699
|
options?: Record<string, unknown>;
|
|
698
|
-
provider?: "deepgram" | "elevenlabs";
|
|
699
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
700
700
|
} | {
|
|
701
|
+
provider?: "google" | "xai" | "openai";
|
|
701
702
|
kind?: "realtime";
|
|
702
703
|
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;
|
|
754
755
|
kind?: "inference";
|
|
755
756
|
options?: Record<string, unknown>;
|
|
756
|
-
voice?: string;
|
|
757
757
|
model?: string;
|
|
758
758
|
} | {
|
|
759
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
760
|
+
provider?: "deepgram" | "elevenlabs";
|
|
759
761
|
kind?: "plugin";
|
|
760
762
|
options?: Record<string, unknown>;
|
|
761
|
-
provider?: "deepgram" | "elevenlabs";
|
|
762
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
763
763
|
} | {
|
|
764
|
+
provider?: "google" | "xai" | "openai";
|
|
764
765
|
kind?: "realtime";
|
|
765
766
|
options?: Record<string, unknown>;
|
|
766
|
-
provider?: "google" | "xai" | "openai";
|
|
767
767
|
};
|
|
768
768
|
volume?: number;
|
|
769
769
|
llm?: {
|
|
770
|
+
voice?: string;
|
|
770
771
|
kind?: "inference";
|
|
771
772
|
options?: Record<string, unknown>;
|
|
772
|
-
voice?: string;
|
|
773
773
|
model?: string;
|
|
774
774
|
} | {
|
|
775
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
776
|
+
provider?: "deepgram" | "elevenlabs";
|
|
775
777
|
kind?: "plugin";
|
|
776
778
|
options?: Record<string, unknown>;
|
|
777
|
-
provider?: "deepgram" | "elevenlabs";
|
|
778
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
779
779
|
} | {
|
|
780
|
+
provider?: "google" | "xai" | "openai";
|
|
780
781
|
kind?: "realtime";
|
|
781
782
|
options?: Record<string, unknown>;
|
|
782
|
-
provider?: "google" | "xai" | "openai";
|
|
783
783
|
};
|
|
784
784
|
tts?: {
|
|
785
|
+
voice?: string;
|
|
785
786
|
kind?: "inference";
|
|
786
787
|
options?: Record<string, unknown>;
|
|
787
|
-
voice?: string;
|
|
788
788
|
model?: string;
|
|
789
789
|
} | {
|
|
790
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
791
|
+
provider?: "deepgram" | "elevenlabs";
|
|
790
792
|
kind?: "plugin";
|
|
791
793
|
options?: Record<string, unknown>;
|
|
792
|
-
provider?: "deepgram" | "elevenlabs";
|
|
793
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
794
794
|
} | {
|
|
795
|
+
provider?: "google" | "xai" | "openai";
|
|
795
796
|
kind?: "realtime";
|
|
796
797
|
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;
|
|
848
849
|
kind?: "inference";
|
|
849
850
|
options?: Record<string, unknown>;
|
|
850
|
-
voice?: string;
|
|
851
851
|
model?: string;
|
|
852
852
|
} | {
|
|
853
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
854
|
+
provider?: "deepgram" | "elevenlabs";
|
|
853
855
|
kind?: "plugin";
|
|
854
856
|
options?: Record<string, unknown>;
|
|
855
|
-
provider?: "deepgram" | "elevenlabs";
|
|
856
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
857
857
|
} | {
|
|
858
|
+
provider?: "google" | "xai" | "openai";
|
|
858
859
|
kind?: "realtime";
|
|
859
860
|
options?: Record<string, unknown>;
|
|
860
|
-
provider?: "google" | "xai" | "openai";
|
|
861
861
|
};
|
|
862
862
|
volume?: number;
|
|
863
863
|
llm?: {
|
|
864
|
+
voice?: string;
|
|
864
865
|
kind?: "inference";
|
|
865
866
|
options?: Record<string, unknown>;
|
|
866
|
-
voice?: string;
|
|
867
867
|
model?: string;
|
|
868
868
|
} | {
|
|
869
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
870
|
+
provider?: "deepgram" | "elevenlabs";
|
|
869
871
|
kind?: "plugin";
|
|
870
872
|
options?: Record<string, unknown>;
|
|
871
|
-
provider?: "deepgram" | "elevenlabs";
|
|
872
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
873
873
|
} | {
|
|
874
|
+
provider?: "google" | "xai" | "openai";
|
|
874
875
|
kind?: "realtime";
|
|
875
876
|
options?: Record<string, unknown>;
|
|
876
|
-
provider?: "google" | "xai" | "openai";
|
|
877
877
|
};
|
|
878
878
|
tts?: {
|
|
879
|
+
voice?: string;
|
|
879
880
|
kind?: "inference";
|
|
880
881
|
options?: Record<string, unknown>;
|
|
881
|
-
voice?: string;
|
|
882
882
|
model?: string;
|
|
883
883
|
} | {
|
|
884
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
885
|
+
provider?: "deepgram" | "elevenlabs";
|
|
884
886
|
kind?: "plugin";
|
|
885
887
|
options?: Record<string, unknown>;
|
|
886
|
-
provider?: "deepgram" | "elevenlabs";
|
|
887
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
888
888
|
} | {
|
|
889
|
+
provider?: "google" | "xai" | "openai";
|
|
889
890
|
kind?: "realtime";
|
|
890
891
|
options?: Record<string, unknown>;
|
|
891
|
-
provider?: "google" | "xai" | "openai";
|
|
892
892
|
};
|
|
893
893
|
vadOptions?: {
|
|
894
894
|
minSpeechDuration?: number;
|
package/dist/workflow-builder.js
CHANGED
|
@@ -221,6 +221,11 @@ function removeNavigateBlock(input) {
|
|
|
221
221
|
}
|
|
222
222
|
__name(removeNavigateBlock, "removeNavigateBlock");
|
|
223
223
|
__name2(removeNavigateBlock, "removeNavigateBlock");
|
|
224
|
+
function removeHiddenBlocks(input) {
|
|
225
|
+
return input.replace(/::: hide\b[\s\S]*?:::/gi, "").replace(/::: hide\b[\s\S]*$/gi, "").trim();
|
|
226
|
+
}
|
|
227
|
+
__name(removeHiddenBlocks, "removeHiddenBlocks");
|
|
228
|
+
__name2(removeHiddenBlocks, "removeHiddenBlocks");
|
|
224
229
|
function transformChatHistoryContentParts(parts) {
|
|
225
230
|
const content = [];
|
|
226
231
|
for (const rawPart of parts ?? []) {
|
|
@@ -1405,6 +1410,7 @@ var AGENT_LOG_SOURCES = [
|
|
|
1405
1410
|
"skill",
|
|
1406
1411
|
"job",
|
|
1407
1412
|
"webhook",
|
|
1413
|
+
"web-route",
|
|
1408
1414
|
"trigger",
|
|
1409
1415
|
"preprocessor",
|
|
1410
1416
|
"postprocessor",
|
|
@@ -1452,6 +1458,7 @@ __name(utf8Bytes, "utf8Bytes");
|
|
|
1452
1458
|
__name2(utf8Bytes, "utf8Bytes");
|
|
1453
1459
|
function isPlainFieldKey(key) {
|
|
1454
1460
|
if (!LOG_FIELD_KEY_PATTERN.test(key)) return false;
|
|
1461
|
+
if (key === LOG_FIELDS_CLAMPED_KEY) return false;
|
|
1455
1462
|
return !LOG_FIELD_SECRET_SHAPED_KEY_PATTERNS.some((pattern) => pattern.test(key));
|
|
1456
1463
|
}
|
|
1457
1464
|
__name(isPlainFieldKey, "isPlainFieldKey");
|
|
@@ -4346,6 +4353,76 @@ function parsePublishedOnboardingResponse(value3) {
|
|
|
4346
4353
|
}
|
|
4347
4354
|
__name(parsePublishedOnboardingResponse, "parsePublishedOnboardingResponse");
|
|
4348
4355
|
__name2(parsePublishedOnboardingResponse, "parsePublishedOnboardingResponse");
|
|
4356
|
+
var WEB_ROUTE_PROTOCOL_VERSION = 1;
|
|
4357
|
+
var WEB_ROUTE_METHODS = [
|
|
4358
|
+
"GET",
|
|
4359
|
+
"POST",
|
|
4360
|
+
"PUT",
|
|
4361
|
+
"PATCH",
|
|
4362
|
+
"DELETE"
|
|
4363
|
+
];
|
|
4364
|
+
var WEB_ROUTE_REQUEST_HEADER_ALLOWLIST = [
|
|
4365
|
+
"accept",
|
|
4366
|
+
"accept-language",
|
|
4367
|
+
"content-type",
|
|
4368
|
+
"if-none-match",
|
|
4369
|
+
"idempotency-key"
|
|
4370
|
+
];
|
|
4371
|
+
var WEB_ROUTE_RESPONSE_HEADER_ALLOWLIST = [
|
|
4372
|
+
"content-type",
|
|
4373
|
+
"cache-control",
|
|
4374
|
+
"etag",
|
|
4375
|
+
"location",
|
|
4376
|
+
"content-disposition",
|
|
4377
|
+
"content-language"
|
|
4378
|
+
];
|
|
4379
|
+
function isForwardableWebRouteRequestHeader(name) {
|
|
4380
|
+
const n2 = name.toLowerCase();
|
|
4381
|
+
return WEB_ROUTE_REQUEST_HEADER_ALLOWLIST.includes(n2) || n2.startsWith("x-lua-");
|
|
4382
|
+
}
|
|
4383
|
+
__name(isForwardableWebRouteRequestHeader, "isForwardableWebRouteRequestHeader");
|
|
4384
|
+
__name2(isForwardableWebRouteRequestHeader, "isForwardableWebRouteRequestHeader");
|
|
4385
|
+
function isForwardableWebRouteResponseHeader(name) {
|
|
4386
|
+
const n2 = name.toLowerCase();
|
|
4387
|
+
if (n2 === "set-cookie") return false;
|
|
4388
|
+
return WEB_ROUTE_RESPONSE_HEADER_ALLOWLIST.includes(n2) || n2.startsWith("x-lua-");
|
|
4389
|
+
}
|
|
4390
|
+
__name(isForwardableWebRouteResponseHeader, "isForwardableWebRouteResponseHeader");
|
|
4391
|
+
__name2(isForwardableWebRouteResponseHeader, "isForwardableWebRouteResponseHeader");
|
|
4392
|
+
var WEB_ROUTE_MAX_REQUEST_BODY_BYTES = 1 * 1024 * 1024;
|
|
4393
|
+
var WEB_ROUTE_MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
4394
|
+
function isWebRouteBody(value3) {
|
|
4395
|
+
if (!value3 || typeof value3 !== "object") return false;
|
|
4396
|
+
const b = value3;
|
|
4397
|
+
if (b.kind === "json") return "value" in b;
|
|
4398
|
+
if (b.kind === "text" || b.kind === "base64") return typeof b.value === "string";
|
|
4399
|
+
return false;
|
|
4400
|
+
}
|
|
4401
|
+
__name(isWebRouteBody, "isWebRouteBody");
|
|
4402
|
+
__name2(isWebRouteBody, "isWebRouteBody");
|
|
4403
|
+
function isWebRouteInput(value3) {
|
|
4404
|
+
if (!value3 || typeof value3 !== "object") return false;
|
|
4405
|
+
const v = value3;
|
|
4406
|
+
if (v.v !== WEB_ROUTE_PROTOCOL_VERSION) return false;
|
|
4407
|
+
const r = v.request;
|
|
4408
|
+
if (!r || typeof r !== "object") return false;
|
|
4409
|
+
if (!WEB_ROUTE_METHODS.includes(String(r.method))) return false;
|
|
4410
|
+
if (typeof r.path !== "string" || !r.path.startsWith("/")) return false;
|
|
4411
|
+
if (!r.params || typeof r.params !== "object") return false;
|
|
4412
|
+
if (!r.query || typeof r.query !== "object") return false;
|
|
4413
|
+
if (!r.headers || typeof r.headers !== "object") return false;
|
|
4414
|
+
if (r.body !== void 0) {
|
|
4415
|
+
if (r.method === "GET") return false;
|
|
4416
|
+
if (!isWebRouteBody(r.body)) return false;
|
|
4417
|
+
}
|
|
4418
|
+
const a = v.auth;
|
|
4419
|
+
if (!a || typeof a.userId !== "string" || typeof a.orgId !== "string" || typeof a.agentId !== "string") return false;
|
|
4420
|
+
const app = v.app;
|
|
4421
|
+
if (!app || typeof app.id !== "string" || typeof app.name !== "string" || typeof app.origin !== "string") return false;
|
|
4422
|
+
return true;
|
|
4423
|
+
}
|
|
4424
|
+
__name(isWebRouteInput, "isWebRouteInput");
|
|
4425
|
+
__name2(isWebRouteInput, "isWebRouteInput");
|
|
4349
4426
|
|
|
4350
4427
|
// ../workflow-graph/dist/index.mjs
|
|
4351
4428
|
import { createHash } from "crypto";
|