lua-cli 3.29.1 → 3.30.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 +165 -36
- package/dist/api-exports.js +48 -0
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +72 -9
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +36 -36
- package/docs/README.md +2 -2
- package/package.json +3 -3
- package/template/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -852,7 +852,7 @@ function isKnownProfile(profiles, profileId) {
|
|
|
852
852
|
function hasCapability(profiles, profileId, required) {
|
|
853
853
|
return capabilitiesFor(profiles, profileId).includes(required);
|
|
854
854
|
}
|
|
855
|
-
var __defProp2, __name2, REVIEWABLE_ACTION_EXECUTE_TOOL_ALLOWLIST, REVIEWABLE_MCP_SEND_TOOL_SUFFIX, MCP_TOOL_READ_VERB_RE, MCP_DRAFT_CREATE_VERBS, NON_INTERACTIVE_CHANNELS, RICH_PARTS_MESSAGE_ID_PREFIX, SCREENSHOT_MESSAGE_ID_PREFIX, BROWSER_COMMANDS, BROWSER_COMMAND_NAMES, DESKTOP_FILE_COMMANDS, DESKTOP_FILE_COMMAND_SET, REASONING_EFFORT_VALUES, IMPLICIT_MODEL_SELECTION_SOURCES, AGENT_NAME_TOKEN, DEFAULT_PERSONA_GUIDE, PERSONAL_SPACE_STARTING_PERSONA, AGENT_LOG_SOURCES, CORE_DRAINING_CODE, CORE_DRAINING_DEFAULT_RETRY_MS, CORE_DRAINING_MAX_RETRY_MS, VoiceNameSchema, PluginProviderSchema, RealtimeProviderSchema, PluginClassSchema, ModelDescriptorSchema, InferenceModelSchema, PluginModelSchema, RealtimeModelSchema, LuaVoiceModelSchema, TurnDetectionSchema, InterruptionSchema, BuiltinAudioClipSchema, AudioConfigSchema, BackgroundAudioEntrySchema, BackgroundAudioSchema, LuaVoiceConfigInnerSchema, LuaVoiceConfigSchema, LuaVoiceRefSchema, LUA_JOB_DEFAULT_TIMEOUT_SECONDS, LUA_JOB_MIN_TIMEOUT_SECONDS, LUA_JOB_MAX_TIMEOUT_SECONDS, TEMPLATE_TRIGGER_URL_ENV_PREFIX, SUBJECT_TYPES, SubjectTypeSchema, CREDENTIAL_TYPES, CredentialTypeSchema, DEVICE_OPERATIONS, DeviceOperationSchema, DEVICE_SCOPE_BY_OPERATION, DeviceBindingSchema, TYPED_API_KEY, IdSchema, PrincipalDescriptorSchema, ActorDescriptorSchema, PrincipalOwnerSchema, CredentialLifecycleSchema, GeneralCredentialDescriptorSchema, DeviceCredentialDescriptorSchema, GeneralPrincipalContextSchema, DeviceCredentialPrincipalContextSchema, RawPrincipalContextSchema, PrincipalContextSchema, DeviceCredentialClaimSchema, LUA_CLIENT_HEADER, LUA_CLIENT_APPS, SEMVER_PATTERN, WEB_RELEASE_PATTERN, CLIENT_HEADER_PATTERN, AUTHZ_PROJECTION_VERSION, ProjectedScopeSchema, DisplayRoleSchema, AuthorizationPrincipalSchema, CredentialContextSchema, ProjectionAnomalySchema, ProjectedOrgSchema, ProjectedResourceSchema, CapabilityProfilesSchema, RoleCatalogSchema, EffectiveAuthorizationSchema, ResourcePageSchema;
|
|
855
|
+
var __defProp2, __name2, REVIEWABLE_ACTION_EXECUTE_TOOL_ALLOWLIST, REVIEWABLE_MCP_SEND_TOOL_SUFFIX, MCP_TOOL_READ_VERB_RE, MCP_DRAFT_CREATE_VERBS, NON_INTERACTIVE_CHANNELS, RICH_PARTS_MESSAGE_ID_PREFIX, SCREENSHOT_MESSAGE_ID_PREFIX, BROWSER_COMMANDS, BROWSER_COMMAND_NAMES, DESKTOP_FILE_COMMANDS, DESKTOP_FILE_COMMAND_SET, REASONING_EFFORT_VALUES, IMPLICIT_MODEL_SELECTION_SOURCES, AGENT_NAME_TOKEN, DEFAULT_PERSONA_GUIDE, PERSONAL_SPACE_STARTING_PERSONA, AGENT_LOG_SOURCES, CORE_DRAINING_CODE, CORE_DRAINING_DEFAULT_RETRY_MS, CORE_DRAINING_MAX_RETRY_MS, VoiceNameSchema, PluginProviderSchema, RealtimeProviderSchema, PluginClassSchema, ModelDescriptorSchema, InferenceModelSchema, PluginModelSchema, RealtimeModelSchema, LuaVoiceModelSchema, TurnDetectionSchema, InterruptionSchema, BuiltinAudioClipSchema, AudioConfigSchema, BackgroundAudioEntrySchema, BackgroundAudioSchema, LuaVoiceConfigInnerSchema, LuaVoiceConfigSchema, LuaVoiceRefSchema, EventType, LUA_JOB_DEFAULT_TIMEOUT_SECONDS, LUA_JOB_MIN_TIMEOUT_SECONDS, LUA_JOB_MAX_TIMEOUT_SECONDS, TEMPLATE_TRIGGER_URL_ENV_PREFIX, SUBJECT_TYPES, SubjectTypeSchema, CREDENTIAL_TYPES, CredentialTypeSchema, DEVICE_OPERATIONS, DeviceOperationSchema, DEVICE_SCOPE_BY_OPERATION, DeviceBindingSchema, TYPED_API_KEY, IdSchema, PrincipalDescriptorSchema, ActorDescriptorSchema, PrincipalOwnerSchema, CredentialLifecycleSchema, GeneralCredentialDescriptorSchema, DeviceCredentialDescriptorSchema, GeneralPrincipalContextSchema, DeviceCredentialPrincipalContextSchema, RawPrincipalContextSchema, PrincipalContextSchema, DeviceCredentialClaimSchema, LUA_CLIENT_HEADER, LUA_CLIENT_APPS, SEMVER_PATTERN, WEB_RELEASE_PATTERN, CLIENT_HEADER_PATTERN, AUTHZ_PROJECTION_VERSION, ProjectedScopeSchema, DisplayRoleSchema, AuthorizationPrincipalSchema, CredentialContextSchema, ProjectionAnomalySchema, ProjectedOrgSchema, ProjectedResourceSchema, CapabilityProfilesSchema, RoleCatalogSchema, EffectiveAuthorizationSchema, ResourcePageSchema;
|
|
856
856
|
var init_dist = __esm({
|
|
857
857
|
"../shared-types/dist/index.mjs"() {
|
|
858
858
|
"use strict";
|
|
@@ -1533,6 +1533,26 @@ This text is who you are for this person. As you learn them, their name, their w
|
|
|
1533
1533
|
voiceId: z.string().min(1),
|
|
1534
1534
|
version: z.string().optional()
|
|
1535
1535
|
});
|
|
1536
|
+
EventType = /* @__PURE__ */ (function(EventType2) {
|
|
1537
|
+
EventType2["AGENT_CREATED"] = "agent.created";
|
|
1538
|
+
EventType2["CHANNEL_ADDED"] = "channel.added";
|
|
1539
|
+
EventType2["MESSAGE_RECEIVED"] = "message.received";
|
|
1540
|
+
EventType2["INQUIRY_CREATED"] = "inquiry.created";
|
|
1541
|
+
EventType2["USER_LOGIN"] = "user.login";
|
|
1542
|
+
EventType2["CREDIT_UPDATED"] = "credit.updated";
|
|
1543
|
+
EventType2["CREDIT_PURCHASED"] = "credit.purchased";
|
|
1544
|
+
EventType2["CREDIT_THRESHOLD_50"] = "credit.threshold.50";
|
|
1545
|
+
EventType2["CREDIT_THRESHOLD_20"] = "credit.threshold.20";
|
|
1546
|
+
EventType2["CREDIT_THRESHOLD_0"] = "credit.threshold.0";
|
|
1547
|
+
EventType2["USER_SIGNUP"] = "user.signup";
|
|
1548
|
+
EventType2["ORG_CREATED"] = "org.created";
|
|
1549
|
+
EventType2["MESSAGE_SENT"] = "message.sent";
|
|
1550
|
+
EventType2["MESSAGE_DELIVERED"] = "message.delivered";
|
|
1551
|
+
EventType2["MESSAGE_READ"] = "message.read";
|
|
1552
|
+
EventType2["MESSAGE_FAILED"] = "message.failed";
|
|
1553
|
+
EventType2["MESSAGE_PLAYED"] = "message.played";
|
|
1554
|
+
return EventType2;
|
|
1555
|
+
})({});
|
|
1536
1556
|
LUA_JOB_DEFAULT_TIMEOUT_SECONDS = 300;
|
|
1537
1557
|
LUA_JOB_MIN_TIMEOUT_SECONDS = 1;
|
|
1538
1558
|
LUA_JOB_MAX_TIMEOUT_SECONDS = 600;
|
|
@@ -14538,11 +14558,22 @@ var init_voice_api_service = __esm({
|
|
|
14538
14558
|
});
|
|
14539
14559
|
|
|
14540
14560
|
// src/api/channels-send.api.service.ts
|
|
14561
|
+
function deliveryQuery(filter) {
|
|
14562
|
+
const params = new URLSearchParams();
|
|
14563
|
+
if (filter?.userId) params.set("userId", filter.userId);
|
|
14564
|
+
if (filter?.status) params.set("status", filter.status);
|
|
14565
|
+
if (filter?.channel) params.set("channel", filter.channel);
|
|
14566
|
+
if (filter?.since) params.set("since", new Date(filter.since).toISOString());
|
|
14567
|
+
if (filter?.limit !== void 0) params.set("limit", String(filter.limit));
|
|
14568
|
+
const query = params.toString();
|
|
14569
|
+
return query ? `?${query}` : "";
|
|
14570
|
+
}
|
|
14541
14571
|
var ChannelsSendApiService;
|
|
14542
14572
|
var init_channels_send_api_service = __esm({
|
|
14543
14573
|
"src/api/channels-send.api.service.ts"() {
|
|
14544
14574
|
"use strict";
|
|
14545
14575
|
init_http_client();
|
|
14576
|
+
__name(deliveryQuery, "deliveryQuery");
|
|
14546
14577
|
ChannelsSendApiService = class extends HttpClient {
|
|
14547
14578
|
static {
|
|
14548
14579
|
__name(this, "ChannelsSendApiService");
|
|
@@ -14614,6 +14645,33 @@ var init_channels_send_api_service = __esm({
|
|
|
14614
14645
|
}
|
|
14615
14646
|
return result.data;
|
|
14616
14647
|
}
|
|
14648
|
+
/** GET /developer/agents/:agentId/channels/deliveries/:deliveryId */
|
|
14649
|
+
async getDeliveryStatus(deliveryId) {
|
|
14650
|
+
return this.httpGet(`/developer/agents/${this.agentId}/channels/deliveries/${encodeURIComponent(deliveryId)}`);
|
|
14651
|
+
}
|
|
14652
|
+
/** GET /developer/agents/:agentId/channels/deliveries */
|
|
14653
|
+
async listDeliveries(filter) {
|
|
14654
|
+
return this.httpGet(`/developer/agents/${this.agentId}/channels/deliveries${deliveryQuery(filter)}`);
|
|
14655
|
+
}
|
|
14656
|
+
/** Sandbox helper for a single delivery read. */
|
|
14657
|
+
async getDeliveryStatusForSandbox(deliveryId) {
|
|
14658
|
+
const result = await this.getDeliveryStatus(deliveryId);
|
|
14659
|
+
if (!result.success) {
|
|
14660
|
+
throw new Error(result.error?.message || "Delivery status lookup failed");
|
|
14661
|
+
}
|
|
14662
|
+
if (!result.data) {
|
|
14663
|
+
throw new Error("Delivery status lookup failed: empty response");
|
|
14664
|
+
}
|
|
14665
|
+
return result.data;
|
|
14666
|
+
}
|
|
14667
|
+
/** Sandbox helper for the delivery list read. */
|
|
14668
|
+
async listDeliveriesForSandbox(filter) {
|
|
14669
|
+
const result = await this.listDeliveries(filter);
|
|
14670
|
+
if (!result.success) {
|
|
14671
|
+
throw new Error(result.error?.message || "Delivery list failed");
|
|
14672
|
+
}
|
|
14673
|
+
return result.data ?? [];
|
|
14674
|
+
}
|
|
14617
14675
|
};
|
|
14618
14676
|
}
|
|
14619
14677
|
});
|
|
@@ -22853,7 +22911,17 @@ function createSandbox(options) {
|
|
|
22853
22911
|
const channels = await getChannelsSendInstance2();
|
|
22854
22912
|
return channels.sendEmailForSandbox(input);
|
|
22855
22913
|
}, "send")
|
|
22856
|
-
}
|
|
22914
|
+
},
|
|
22915
|
+
getStatus: /* @__PURE__ */ __name(async (deliveryId) => {
|
|
22916
|
+
const { getChannelsSendInstance: getChannelsSendInstance2 } = await Promise.resolve().then(() => (init_lazy_instances(), lazy_instances_exports));
|
|
22917
|
+
const channels = await getChannelsSendInstance2();
|
|
22918
|
+
return channels.getDeliveryStatusForSandbox(deliveryId);
|
|
22919
|
+
}, "getStatus"),
|
|
22920
|
+
listDeliveries: /* @__PURE__ */ __name(async (filter) => {
|
|
22921
|
+
const { getChannelsSendInstance: getChannelsSendInstance2 } = await Promise.resolve().then(() => (init_lazy_instances(), lazy_instances_exports));
|
|
22922
|
+
const channels = await getChannelsSendInstance2();
|
|
22923
|
+
return channels.listDeliveriesForSandbox(filter);
|
|
22924
|
+
}, "listDeliveries")
|
|
22857
22925
|
},
|
|
22858
22926
|
// Workspace directory. Resolve a teammate by name within the agent's org and
|
|
22859
22927
|
// get the channel handles they opted to share — feed the result straight into
|
|
@@ -34555,13 +34623,8 @@ init_constants();
|
|
|
34555
34623
|
init_command_utils();
|
|
34556
34624
|
init_webhook_api_service();
|
|
34557
34625
|
init_analytics();
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
"message.delivered",
|
|
34561
|
-
"message.read",
|
|
34562
|
-
"message.failed",
|
|
34563
|
-
"message.played"
|
|
34564
|
-
];
|
|
34626
|
+
init_dist();
|
|
34627
|
+
var AVAILABLE_EVENT_TYPES = Object.values(EventType).filter((event) => event.startsWith("message."));
|
|
34565
34628
|
async function webhooksCommand(action, cmdObj) {
|
|
34566
34629
|
return withErrorHandling(async () => {
|
|
34567
34630
|
const options = {
|