lua-cli 3.41.0 → 3.42.0-beta.1
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 +57 -33
- package/dist/api-exports.js +32 -6
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +2124 -501
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +18 -18
- package/dist/workflow-builder.js +26 -2
- package/dist/workflow-builder.js.map +1 -1
- package/docs/workflows/reply-channels.md +2 -2
- package/package.json +4 -3
- package/template/package.json +1 -1
- package/template/tsconfig.json +1 -1
- package/template-web-app/app.ts +29 -0
- package/template-web-app/web/index.html +12 -0
- package/template-web-app/web/package.json +27 -0
- package/template-web-app/web/src/App.tsx +28 -0
- package/template-web-app/web/src/index.css +3 -0
- package/template-web-app/web/src/lua/client.ts +254 -0
- package/template-web-app/web/src/main.tsx +16 -0
- package/template-web-app/web/tsconfig.json +14 -0
- package/template-web-app/web/vite.config.ts +9 -0
|
@@ -255,14 +255,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
255
255
|
*/
|
|
256
256
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
257
257
|
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
258
259
|
provider?: "deepgram" | "elevenlabs";
|
|
259
260
|
kind?: "plugin";
|
|
260
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
261
261
|
options?: Record<string, unknown>;
|
|
262
262
|
}, {
|
|
263
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
263
264
|
provider?: "deepgram" | "elevenlabs";
|
|
264
265
|
kind?: "plugin";
|
|
265
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
266
266
|
options?: Record<string, unknown>;
|
|
267
267
|
}>, z.ZodObject<{
|
|
268
268
|
kind: z.ZodLiteral<"realtime">;
|
|
@@ -321,14 +321,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
321
321
|
*/
|
|
322
322
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
323
323
|
}, "strip", z.ZodTypeAny, {
|
|
324
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
324
325
|
provider?: "deepgram" | "elevenlabs";
|
|
325
326
|
kind?: "plugin";
|
|
326
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
327
327
|
options?: Record<string, unknown>;
|
|
328
328
|
}, {
|
|
329
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
329
330
|
provider?: "deepgram" | "elevenlabs";
|
|
330
331
|
kind?: "plugin";
|
|
331
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
332
332
|
options?: Record<string, unknown>;
|
|
333
333
|
}>, z.ZodObject<{
|
|
334
334
|
kind: z.ZodLiteral<"realtime">;
|
|
@@ -387,14 +387,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
387
387
|
*/
|
|
388
388
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
389
389
|
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
390
391
|
provider?: "deepgram" | "elevenlabs";
|
|
391
392
|
kind?: "plugin";
|
|
392
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
393
393
|
options?: Record<string, unknown>;
|
|
394
394
|
}, {
|
|
395
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
395
396
|
provider?: "deepgram" | "elevenlabs";
|
|
396
397
|
kind?: "plugin";
|
|
397
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
398
398
|
options?: Record<string, unknown>;
|
|
399
399
|
}>, z.ZodObject<{
|
|
400
400
|
kind: z.ZodLiteral<"realtime">;
|
|
@@ -579,9 +579,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
579
579
|
options?: Record<string, unknown>;
|
|
580
580
|
model?: string;
|
|
581
581
|
} | {
|
|
582
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
582
583
|
provider?: "deepgram" | "elevenlabs";
|
|
583
584
|
kind?: "plugin";
|
|
584
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
585
585
|
options?: Record<string, unknown>;
|
|
586
586
|
} | {
|
|
587
587
|
provider?: "google" | "xai" | "openai";
|
|
@@ -595,9 +595,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
595
595
|
options?: Record<string, unknown>;
|
|
596
596
|
model?: string;
|
|
597
597
|
} | {
|
|
598
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
598
599
|
provider?: "deepgram" | "elevenlabs";
|
|
599
600
|
kind?: "plugin";
|
|
600
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
601
601
|
options?: Record<string, unknown>;
|
|
602
602
|
} | {
|
|
603
603
|
provider?: "google" | "xai" | "openai";
|
|
@@ -610,9 +610,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
610
610
|
options?: Record<string, unknown>;
|
|
611
611
|
model?: string;
|
|
612
612
|
} | {
|
|
613
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
613
614
|
provider?: "deepgram" | "elevenlabs";
|
|
614
615
|
kind?: "plugin";
|
|
615
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
616
616
|
options?: Record<string, unknown>;
|
|
617
617
|
} | {
|
|
618
618
|
provider?: "google" | "xai" | "openai";
|
|
@@ -673,9 +673,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
673
673
|
options?: Record<string, unknown>;
|
|
674
674
|
model?: string;
|
|
675
675
|
} | {
|
|
676
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
676
677
|
provider?: "deepgram" | "elevenlabs";
|
|
677
678
|
kind?: "plugin";
|
|
678
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
679
679
|
options?: Record<string, unknown>;
|
|
680
680
|
} | {
|
|
681
681
|
provider?: "google" | "xai" | "openai";
|
|
@@ -689,9 +689,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
689
689
|
options?: Record<string, unknown>;
|
|
690
690
|
model?: string;
|
|
691
691
|
} | {
|
|
692
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
692
693
|
provider?: "deepgram" | "elevenlabs";
|
|
693
694
|
kind?: "plugin";
|
|
694
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
695
695
|
options?: Record<string, unknown>;
|
|
696
696
|
} | {
|
|
697
697
|
provider?: "google" | "xai" | "openai";
|
|
@@ -704,9 +704,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
704
704
|
options?: Record<string, unknown>;
|
|
705
705
|
model?: string;
|
|
706
706
|
} | {
|
|
707
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
707
708
|
provider?: "deepgram" | "elevenlabs";
|
|
708
709
|
kind?: "plugin";
|
|
709
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
710
710
|
options?: Record<string, unknown>;
|
|
711
711
|
} | {
|
|
712
712
|
provider?: "google" | "xai" | "openai";
|
|
@@ -767,9 +767,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
767
767
|
options?: Record<string, unknown>;
|
|
768
768
|
model?: string;
|
|
769
769
|
} | {
|
|
770
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
770
771
|
provider?: "deepgram" | "elevenlabs";
|
|
771
772
|
kind?: "plugin";
|
|
772
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
773
773
|
options?: Record<string, unknown>;
|
|
774
774
|
} | {
|
|
775
775
|
provider?: "google" | "xai" | "openai";
|
|
@@ -783,9 +783,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
783
783
|
options?: Record<string, unknown>;
|
|
784
784
|
model?: string;
|
|
785
785
|
} | {
|
|
786
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
786
787
|
provider?: "deepgram" | "elevenlabs";
|
|
787
788
|
kind?: "plugin";
|
|
788
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
789
789
|
options?: Record<string, unknown>;
|
|
790
790
|
} | {
|
|
791
791
|
provider?: "google" | "xai" | "openai";
|
|
@@ -798,9 +798,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
798
798
|
options?: Record<string, unknown>;
|
|
799
799
|
model?: string;
|
|
800
800
|
} | {
|
|
801
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
801
802
|
provider?: "deepgram" | "elevenlabs";
|
|
802
803
|
kind?: "plugin";
|
|
803
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
804
804
|
options?: Record<string, unknown>;
|
|
805
805
|
} | {
|
|
806
806
|
provider?: "google" | "xai" | "openai";
|
|
@@ -861,9 +861,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
861
861
|
options?: Record<string, unknown>;
|
|
862
862
|
model?: string;
|
|
863
863
|
} | {
|
|
864
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
864
865
|
provider?: "deepgram" | "elevenlabs";
|
|
865
866
|
kind?: "plugin";
|
|
866
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
867
867
|
options?: Record<string, unknown>;
|
|
868
868
|
} | {
|
|
869
869
|
provider?: "google" | "xai" | "openai";
|
|
@@ -877,9 +877,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
877
877
|
options?: Record<string, unknown>;
|
|
878
878
|
model?: string;
|
|
879
879
|
} | {
|
|
880
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
880
881
|
provider?: "deepgram" | "elevenlabs";
|
|
881
882
|
kind?: "plugin";
|
|
882
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
883
883
|
options?: Record<string, unknown>;
|
|
884
884
|
} | {
|
|
885
885
|
provider?: "google" | "xai" | "openai";
|
|
@@ -892,9 +892,9 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
892
892
|
options?: Record<string, unknown>;
|
|
893
893
|
model?: string;
|
|
894
894
|
} | {
|
|
895
|
+
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
895
896
|
provider?: "deepgram" | "elevenlabs";
|
|
896
897
|
kind?: "plugin";
|
|
897
|
-
class?: "LLM" | "STT" | "STTv2" | "TTS";
|
|
898
898
|
options?: Record<string, unknown>;
|
|
899
899
|
} | {
|
|
900
900
|
provider?: "google" | "xai" | "openai";
|
package/dist/workflow-builder.js
CHANGED
|
@@ -352,7 +352,8 @@ var REVIEWABLE_ACTION_EXECUTE_TOOL_ALLOWLIST = [
|
|
|
352
352
|
"sendWebchatMessage",
|
|
353
353
|
"sendTeamsMessage",
|
|
354
354
|
"sendInstagramMessage",
|
|
355
|
-
"sendMessengerMessage"
|
|
355
|
+
"sendMessengerMessage",
|
|
356
|
+
"sendSlackMessage"
|
|
356
357
|
];
|
|
357
358
|
function isAllowedReviewableExecuteTool(tool) {
|
|
358
359
|
return REVIEWABLE_ACTION_EXECUTE_TOOL_ALLOWLIST.includes(tool);
|
|
@@ -4637,6 +4638,24 @@ var onboardingTemplateSectionSchema = z4.object({
|
|
|
4637
4638
|
label: copy(100),
|
|
4638
4639
|
body: onboardingRichTextSchema
|
|
4639
4640
|
}).strict();
|
|
4641
|
+
var onboardingInstallScreenSchema = z4.object({
|
|
4642
|
+
title: onboardingHeadingSchema,
|
|
4643
|
+
subtitle: copy(240),
|
|
4644
|
+
ctaLabel: copy(80),
|
|
4645
|
+
ctaHelperText: onboardingRichTextSchema
|
|
4646
|
+
}).strict();
|
|
4647
|
+
var onboardingResultScreenSchema = z4.object({
|
|
4648
|
+
title: onboardingHeadingSchema,
|
|
4649
|
+
subheader: copy(240),
|
|
4650
|
+
inputPlaceholder: copy(120)
|
|
4651
|
+
}).strict();
|
|
4652
|
+
var onboardingConnectScreenSchema = z4.object({
|
|
4653
|
+
title: onboardingHeadingSchema,
|
|
4654
|
+
description: onboardingRichTextSchema,
|
|
4655
|
+
ctaLabel: copy(80),
|
|
4656
|
+
neverLine: copy(120),
|
|
4657
|
+
footnote: copy(240)
|
|
4658
|
+
}).strict();
|
|
4640
4659
|
var onboardingTemplateContentSchema = z4.object({
|
|
4641
4660
|
id,
|
|
4642
4661
|
templateId: copy(160),
|
|
@@ -4649,7 +4668,10 @@ var onboardingTemplateContentSchema = z4.object({
|
|
|
4649
4668
|
artwork: onboardingArtworkSchema,
|
|
4650
4669
|
hireButtonLabel: copy(80),
|
|
4651
4670
|
changeRoleButtonLabel: copy(80),
|
|
4652
|
-
nextStepText: onboardingRichTextSchema
|
|
4671
|
+
nextStepText: onboardingRichTextSchema,
|
|
4672
|
+
install: onboardingInstallScreenSchema.optional(),
|
|
4673
|
+
result: onboardingResultScreenSchema.optional(),
|
|
4674
|
+
connect: onboardingConnectScreenSchema.optional()
|
|
4653
4675
|
}).strict();
|
|
4654
4676
|
var onboardingUnavailableOutcomeSchema = z4.object({
|
|
4655
4677
|
id,
|
|
@@ -4870,6 +4892,8 @@ function isWebRouteInput(value3) {
|
|
|
4870
4892
|
}
|
|
4871
4893
|
__name(isWebRouteInput, "isWebRouteInput");
|
|
4872
4894
|
__name3(isWebRouteInput, "isWebRouteInput");
|
|
4895
|
+
var WEB_APP_ENTRY_HTML_MAX_CHARS = 256 * 1024;
|
|
4896
|
+
var WEB_APP_MAX_ASSET_BYTES = 8 * 1024 * 1024;
|
|
4873
4897
|
var EVIDENCE_SESSION_IDLE_MS = 30 * 6e4;
|
|
4874
4898
|
var EVIDENCE_MIN_CONVERSATIONS = 20;
|
|
4875
4899
|
var EVIDENCE_LOW_CONFIDENCE_N = 5;
|