lua-cli 3.17.0 → 3.17.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 +68 -7
- package/dist/api-exports.js +50 -2
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +606 -32
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +20 -0
- package/package.json +3 -3
- package/template/lua.skill.yaml +10 -4
- package/template/package.json +1 -1
|
@@ -556,6 +556,7 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
556
556
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
557
557
|
pronunciations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
558
558
|
persistTranscript: z.ZodOptional<z.ZodBoolean>;
|
|
559
|
+
onToolFailureSay: z.ZodOptional<z.ZodString>;
|
|
559
560
|
}, "strip", z.ZodTypeAny, {
|
|
560
561
|
vad?: string;
|
|
561
562
|
stt?: {
|
|
@@ -648,6 +649,7 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
648
649
|
};
|
|
649
650
|
pronunciations?: Record<string, string>;
|
|
650
651
|
persistTranscript?: boolean;
|
|
652
|
+
onToolFailureSay?: string;
|
|
651
653
|
}, {
|
|
652
654
|
vad?: string;
|
|
653
655
|
stt?: {
|
|
@@ -740,6 +742,7 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
740
742
|
};
|
|
741
743
|
pronunciations?: Record<string, string>;
|
|
742
744
|
persistTranscript?: boolean;
|
|
745
|
+
onToolFailureSay?: string;
|
|
743
746
|
}>, {
|
|
744
747
|
vad?: string;
|
|
745
748
|
stt?: {
|
|
@@ -832,6 +835,7 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
832
835
|
};
|
|
833
836
|
pronunciations?: Record<string, string>;
|
|
834
837
|
persistTranscript?: boolean;
|
|
838
|
+
onToolFailureSay?: string;
|
|
835
839
|
}, {
|
|
836
840
|
vad?: string;
|
|
837
841
|
stt?: {
|
|
@@ -924,6 +928,7 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
924
928
|
};
|
|
925
929
|
pronunciations?: Record<string, string>;
|
|
926
930
|
persistTranscript?: boolean;
|
|
931
|
+
onToolFailureSay?: string;
|
|
927
932
|
}>;
|
|
928
933
|
|
|
929
934
|
/**
|
|
@@ -1039,6 +1044,21 @@ declare interface LuaVoiceToolCtx {
|
|
|
1039
1044
|
mode?: 'bridge' | 'refer';
|
|
1040
1045
|
announce?: string;
|
|
1041
1046
|
}): Promise<void>;
|
|
1047
|
+
/**
|
|
1048
|
+
* End the live call. When `announce` is set, the agent speaks it and
|
|
1049
|
+
* waits for playout before closing the session — useful for a sign-off
|
|
1050
|
+
* like "Thanks for calling, goodbye." Without `announce`, the session
|
|
1051
|
+
* closes immediately (any in-flight TTS finishes via the SDK's
|
|
1052
|
+
* graceful `close()`).
|
|
1053
|
+
*
|
|
1054
|
+
* @example
|
|
1055
|
+
* ```typescript
|
|
1056
|
+
* await ctx.voice?.endCall({ announce: 'Thanks for calling. Goodbye.' });
|
|
1057
|
+
* ```
|
|
1058
|
+
*/
|
|
1059
|
+
endCall?(opts?: {
|
|
1060
|
+
announce?: string;
|
|
1061
|
+
}): Promise<void>;
|
|
1042
1062
|
/**
|
|
1043
1063
|
* @experimental Reserved for Phase 5 (BAC-213). Optional because
|
|
1044
1064
|
* unimplemented — the actual "lock the assistant's current
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lua-cli",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.2",
|
|
4
4
|
"description": "Build, test, and deploy AI agents with custom tools, webhooks, and scheduled jobs. Features LuaAgent unified configuration, streaming chat, and batch deployment.",
|
|
5
5
|
"readmeFilename": "README.md",
|
|
6
6
|
"main": "dist/api-exports.js",
|
|
@@ -109,9 +109,9 @@
|
|
|
109
109
|
"stripe": "^19.2.0",
|
|
110
110
|
"ts-node": "^10.9.2",
|
|
111
111
|
"tsup": "^8.5.1",
|
|
112
|
+
"@lua/shared-sandbox": "0.0.1",
|
|
112
113
|
"@lua/shared-source-sync": "0.0.1",
|
|
113
|
-
"@lua/shared-types": "0.0.1"
|
|
114
|
-
"@lua/shared-sandbox": "0.0.1"
|
|
114
|
+
"@lua/shared-types": "0.0.1"
|
|
115
115
|
},
|
|
116
116
|
"scripts": {
|
|
117
117
|
"clean": "rm -rf dist temp",
|
package/template/lua.skill.yaml
CHANGED
|
@@ -10,9 +10,15 @@ preprocessors: []
|
|
|
10
10
|
postprocessors: []
|
|
11
11
|
mcpServers: []
|
|
12
12
|
|
|
13
|
-
# Optional: opt-in git auto-commits.
|
|
14
|
-
#
|
|
15
|
-
# `lua
|
|
16
|
-
# auto-commit (and `version create`
|
|
13
|
+
# Optional: opt-in git auto-commits. This block is managed by the CLI — run
|
|
14
|
+
# `lua git connect` to enable (it runs sanity checks first); don't edit by hand.
|
|
15
|
+
# When enabled, `lua push`, `lua version create`, `lua version promote`,
|
|
16
|
+
# `lua version delete`, and `lua pull` auto-commit (and `version create` also
|
|
17
|
+
# annotate-tags lua/v<N>).
|
|
18
|
+
#
|
|
19
|
+
# To also push each auto-commit to GitHub, first link an account with
|
|
20
|
+
# `lua git auth github`, add a GitHub HTTPS origin remote, then run
|
|
21
|
+
# `lua git connect --auto-push` (writes autoPush: true below).
|
|
17
22
|
# git:
|
|
18
23
|
# enabled: true
|
|
24
|
+
# autoPush: true
|