lua-cli 3.51.0 → 3.52.0
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 +26 -18
- package/dist/api-exports.js +12 -0
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +34 -3
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +18 -18
- package/dist/workflow-builder.js +5 -0
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +3 -3
- package/docs/api/Data.md +38 -1
- package/package.json +1 -1
- package/template/package.json +1 -1
package/dist/api-exports.d.ts
CHANGED
|
@@ -6870,15 +6870,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6870
6870
|
*/
|
|
6871
6871
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6872
6872
|
}, "strip", z.ZodTypeAny, {
|
|
6873
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6874
6873
|
options: Record<string, unknown>;
|
|
6875
6874
|
provider: "deepgram" | "elevenlabs";
|
|
6876
6875
|
kind: "plugin";
|
|
6877
|
-
}, {
|
|
6878
6876
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6877
|
+
}, {
|
|
6879
6878
|
options: Record<string, unknown>;
|
|
6880
6879
|
provider: "deepgram" | "elevenlabs";
|
|
6881
6880
|
kind: "plugin";
|
|
6881
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6882
6882
|
}>, z.ZodObject<{
|
|
6883
6883
|
kind: z.ZodLiteral<"realtime">;
|
|
6884
6884
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -6936,15 +6936,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6936
6936
|
*/
|
|
6937
6937
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6938
6938
|
}, "strip", z.ZodTypeAny, {
|
|
6939
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6940
6939
|
options: Record<string, unknown>;
|
|
6941
6940
|
provider: "deepgram" | "elevenlabs";
|
|
6942
6941
|
kind: "plugin";
|
|
6943
|
-
}, {
|
|
6944
6942
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6943
|
+
}, {
|
|
6945
6944
|
options: Record<string, unknown>;
|
|
6946
6945
|
provider: "deepgram" | "elevenlabs";
|
|
6947
6946
|
kind: "plugin";
|
|
6947
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6948
6948
|
}>, z.ZodObject<{
|
|
6949
6949
|
kind: z.ZodLiteral<"realtime">;
|
|
6950
6950
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -7002,15 +7002,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7002
7002
|
*/
|
|
7003
7003
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7004
7004
|
}, "strip", z.ZodTypeAny, {
|
|
7005
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7006
7005
|
options: Record<string, unknown>;
|
|
7007
7006
|
provider: "deepgram" | "elevenlabs";
|
|
7008
7007
|
kind: "plugin";
|
|
7009
|
-
}, {
|
|
7010
7008
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7009
|
+
}, {
|
|
7011
7010
|
options: Record<string, unknown>;
|
|
7012
7011
|
provider: "deepgram" | "elevenlabs";
|
|
7013
7012
|
kind: "plugin";
|
|
7013
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7014
7014
|
}>, z.ZodObject<{
|
|
7015
7015
|
kind: z.ZodLiteral<"realtime">;
|
|
7016
7016
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -7192,10 +7192,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7192
7192
|
voice?: string | undefined;
|
|
7193
7193
|
options?: Record<string, unknown> | undefined;
|
|
7194
7194
|
} | {
|
|
7195
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7196
7195
|
options: Record<string, unknown>;
|
|
7197
7196
|
provider: "deepgram" | "elevenlabs";
|
|
7198
7197
|
kind: "plugin";
|
|
7198
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7199
7199
|
} | {
|
|
7200
7200
|
options: Record<string, unknown>;
|
|
7201
7201
|
provider: "openai" | "google" | "xai";
|
|
@@ -7209,10 +7209,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7209
7209
|
voice?: string | undefined;
|
|
7210
7210
|
options?: Record<string, unknown> | undefined;
|
|
7211
7211
|
} | {
|
|
7212
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7213
7212
|
options: Record<string, unknown>;
|
|
7214
7213
|
provider: "deepgram" | "elevenlabs";
|
|
7215
7214
|
kind: "plugin";
|
|
7215
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7216
7216
|
} | {
|
|
7217
7217
|
options: Record<string, unknown>;
|
|
7218
7218
|
provider: "openai" | "google" | "xai";
|
|
@@ -7225,10 +7225,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7225
7225
|
voice?: string | undefined;
|
|
7226
7226
|
options?: Record<string, unknown> | undefined;
|
|
7227
7227
|
} | {
|
|
7228
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7229
7228
|
options: Record<string, unknown>;
|
|
7230
7229
|
provider: "deepgram" | "elevenlabs";
|
|
7231
7230
|
kind: "plugin";
|
|
7231
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7232
7232
|
} | {
|
|
7233
7233
|
options: Record<string, unknown>;
|
|
7234
7234
|
provider: "openai" | "google" | "xai";
|
|
@@ -7286,10 +7286,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7286
7286
|
voice?: string | undefined;
|
|
7287
7287
|
options?: Record<string, unknown> | undefined;
|
|
7288
7288
|
} | {
|
|
7289
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7290
7289
|
options: Record<string, unknown>;
|
|
7291
7290
|
provider: "deepgram" | "elevenlabs";
|
|
7292
7291
|
kind: "plugin";
|
|
7292
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7293
7293
|
} | {
|
|
7294
7294
|
options: Record<string, unknown>;
|
|
7295
7295
|
provider: "openai" | "google" | "xai";
|
|
@@ -7303,10 +7303,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7303
7303
|
voice?: string | undefined;
|
|
7304
7304
|
options?: Record<string, unknown> | undefined;
|
|
7305
7305
|
} | {
|
|
7306
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7307
7306
|
options: Record<string, unknown>;
|
|
7308
7307
|
provider: "deepgram" | "elevenlabs";
|
|
7309
7308
|
kind: "plugin";
|
|
7309
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7310
7310
|
} | {
|
|
7311
7311
|
options: Record<string, unknown>;
|
|
7312
7312
|
provider: "openai" | "google" | "xai";
|
|
@@ -7319,10 +7319,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7319
7319
|
voice?: string | undefined;
|
|
7320
7320
|
options?: Record<string, unknown> | undefined;
|
|
7321
7321
|
} | {
|
|
7322
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7323
7322
|
options: Record<string, unknown>;
|
|
7324
7323
|
provider: "deepgram" | "elevenlabs";
|
|
7325
7324
|
kind: "plugin";
|
|
7325
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7326
7326
|
} | {
|
|
7327
7327
|
options: Record<string, unknown>;
|
|
7328
7328
|
provider: "openai" | "google" | "xai";
|
|
@@ -7380,10 +7380,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7380
7380
|
voice?: string | undefined;
|
|
7381
7381
|
options?: Record<string, unknown> | undefined;
|
|
7382
7382
|
} | {
|
|
7383
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7384
7383
|
options: Record<string, unknown>;
|
|
7385
7384
|
provider: "deepgram" | "elevenlabs";
|
|
7386
7385
|
kind: "plugin";
|
|
7386
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7387
7387
|
} | {
|
|
7388
7388
|
options: Record<string, unknown>;
|
|
7389
7389
|
provider: "openai" | "google" | "xai";
|
|
@@ -7397,10 +7397,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7397
7397
|
voice?: string | undefined;
|
|
7398
7398
|
options?: Record<string, unknown> | undefined;
|
|
7399
7399
|
} | {
|
|
7400
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7401
7400
|
options: Record<string, unknown>;
|
|
7402
7401
|
provider: "deepgram" | "elevenlabs";
|
|
7403
7402
|
kind: "plugin";
|
|
7403
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7404
7404
|
} | {
|
|
7405
7405
|
options: Record<string, unknown>;
|
|
7406
7406
|
provider: "openai" | "google" | "xai";
|
|
@@ -7413,10 +7413,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7413
7413
|
voice?: string | undefined;
|
|
7414
7414
|
options?: Record<string, unknown> | undefined;
|
|
7415
7415
|
} | {
|
|
7416
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7417
7416
|
options: Record<string, unknown>;
|
|
7418
7417
|
provider: "deepgram" | "elevenlabs";
|
|
7419
7418
|
kind: "plugin";
|
|
7419
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7420
7420
|
} | {
|
|
7421
7421
|
options: Record<string, unknown>;
|
|
7422
7422
|
provider: "openai" | "google" | "xai";
|
|
@@ -7474,10 +7474,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7474
7474
|
voice?: string | undefined;
|
|
7475
7475
|
options?: Record<string, unknown> | undefined;
|
|
7476
7476
|
} | {
|
|
7477
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7478
7477
|
options: Record<string, unknown>;
|
|
7479
7478
|
provider: "deepgram" | "elevenlabs";
|
|
7480
7479
|
kind: "plugin";
|
|
7480
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7481
7481
|
} | {
|
|
7482
7482
|
options: Record<string, unknown>;
|
|
7483
7483
|
provider: "openai" | "google" | "xai";
|
|
@@ -7491,10 +7491,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7491
7491
|
voice?: string | undefined;
|
|
7492
7492
|
options?: Record<string, unknown> | undefined;
|
|
7493
7493
|
} | {
|
|
7494
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7495
7494
|
options: Record<string, unknown>;
|
|
7496
7495
|
provider: "deepgram" | "elevenlabs";
|
|
7497
7496
|
kind: "plugin";
|
|
7497
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7498
7498
|
} | {
|
|
7499
7499
|
options: Record<string, unknown>;
|
|
7500
7500
|
provider: "openai" | "google" | "xai";
|
|
@@ -7507,10 +7507,10 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
7507
7507
|
voice?: string | undefined;
|
|
7508
7508
|
options?: Record<string, unknown> | undefined;
|
|
7509
7509
|
} | {
|
|
7510
|
-
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7511
7510
|
options: Record<string, unknown>;
|
|
7512
7511
|
provider: "deepgram" | "elevenlabs";
|
|
7513
7512
|
kind: "plugin";
|
|
7513
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
7514
7514
|
} | {
|
|
7515
7515
|
options: Record<string, unknown>;
|
|
7516
7516
|
provider: "openai" | "google" | "xai";
|
|
@@ -7748,6 +7748,8 @@ export declare class LuaWebApp {
|
|
|
7748
7748
|
/** The display name, or `undefined` (the shells then show `branding.name`, then `name`). */
|
|
7749
7749
|
getTitle(): string | undefined;
|
|
7750
7750
|
getDescription(): string | undefined;
|
|
7751
|
+
/** Whether the app has an agent pane: `true` unless `agentPane: false`. */
|
|
7752
|
+
getAgentPane(): boolean;
|
|
7751
7753
|
getPages(): WebAppPages;
|
|
7752
7754
|
getBranding(): WebAppBranding | undefined;
|
|
7753
7755
|
getRoutes(): Record<string, RouteDefinition<any, any, any>>;
|
|
@@ -7767,6 +7769,12 @@ export declare interface LuaWebAppConfig {
|
|
|
7767
7769
|
description?: string;
|
|
7768
7770
|
pages: WebAppPages;
|
|
7769
7771
|
branding?: WebAppBranding;
|
|
7772
|
+
/**
|
|
7773
|
+
* The agent pane: a chat with this agent inside the app's pages (`<AgentPane>`). Default `true`;
|
|
7774
|
+
* `false` turns it off (the page's `<AgentPane>` renders nothing and the gateway refuses the app's
|
|
7775
|
+
* chat calls). Stored per version, so a change takes effect when the version that sets it is live.
|
|
7776
|
+
*/
|
|
7777
|
+
agentPane?: boolean;
|
|
7770
7778
|
/** Typed route handlers keyed by `'<METHOD> /<path>'`. */
|
|
7771
7779
|
routes?: Record<string, RouteDefinition<any, any, any>>;
|
|
7772
7780
|
/** Escape hatch: a Web-standard `fetch` handler (Hono, itty-router, …) for
|
package/dist/api-exports.js
CHANGED
|
@@ -6656,6 +6656,9 @@ function isWebRouteInput(value3) {
|
|
|
6656
6656
|
if (!app || typeof app.id !== "string" || typeof app.name !== "string" || typeof app.origin !== "string") return false;
|
|
6657
6657
|
return true;
|
|
6658
6658
|
}
|
|
6659
|
+
function agentPaneEnabled(version) {
|
|
6660
|
+
return version?.agentPane !== false;
|
|
6661
|
+
}
|
|
6659
6662
|
function evidenceDisplayText(text2) {
|
|
6660
6663
|
const raw = typeof text2 === "string" ? text2 : "";
|
|
6661
6664
|
if (!raw.trim()) return "";
|
|
@@ -12587,6 +12590,8 @@ listed here; never invent a target.`;
|
|
|
12587
12590
|
__name4(isWebRouteInput, "isWebRouteInput");
|
|
12588
12591
|
WEB_APP_NAME_PATTERN = /^[a-z][a-z0-9-]*$/;
|
|
12589
12592
|
WEB_APP_TITLE_MAX_CHARS = 80;
|
|
12593
|
+
__name(agentPaneEnabled, "agentPaneEnabled");
|
|
12594
|
+
__name4(agentPaneEnabled, "agentPaneEnabled");
|
|
12590
12595
|
WEB_APP_ENTRY_HTML_MAX_CHARS = 256 * 1024;
|
|
12591
12596
|
WEB_APP_MAX_ASSET_BYTES = 8 * 1024 * 1024;
|
|
12592
12597
|
EVIDENCE_SESSION_IDLE_MS = 30 * 6e4;
|
|
@@ -29368,6 +29373,9 @@ var LuaWebApp = class {
|
|
|
29368
29373
|
if (config.title !== void 0 && (typeof config.title !== "string" || !config.title.trim() || config.title.length > WEB_APP_TITLE_MAX_CHARS)) {
|
|
29369
29374
|
throw new Error(`defineWebApp(${config.name}): \`title\` must be a non-empty string of at most ${WEB_APP_TITLE_MAX_CHARS} characters; got ${JSON.stringify(config.title)}.`);
|
|
29370
29375
|
}
|
|
29376
|
+
if (config.agentPane !== void 0 && typeof config.agentPane !== "boolean") {
|
|
29377
|
+
throw new Error(`defineWebApp(${config.name}): \`agentPane\` must be true or false; got ${JSON.stringify(config.agentPane)}.`);
|
|
29378
|
+
}
|
|
29371
29379
|
if (!config.pages || typeof config.pages.root !== "string" || !config.pages.root.trim()) {
|
|
29372
29380
|
throw new Error(`defineWebApp(${config.name}): \`pages.root\` (the Vite project directory) is required.`);
|
|
29373
29381
|
}
|
|
@@ -29402,6 +29410,10 @@ var LuaWebApp = class {
|
|
|
29402
29410
|
getDescription() {
|
|
29403
29411
|
return this.config.description;
|
|
29404
29412
|
}
|
|
29413
|
+
/** Whether the app has an agent pane: `true` unless `agentPane: false`. */
|
|
29414
|
+
getAgentPane() {
|
|
29415
|
+
return this.config.agentPane !== false;
|
|
29416
|
+
}
|
|
29405
29417
|
getPages() {
|
|
29406
29418
|
return this.config.pages;
|
|
29407
29419
|
}
|