@automagik/omni 2.260730.3 → 2.260731.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/db/drizzle/0044_instance_agent_error_message.sql +17 -0
- package/db/drizzle/meta/_journal.json +7 -0
- package/dist/commands/instances.d.ts.map +1 -1
- package/dist/index.js +6 -4
- package/dist/sdk/types.generated.d.ts +30 -10
- package/dist/sdk/types.generated.d.ts.map +1 -1
- package/dist/server/index.js +7 -2
- package/package.json +2 -2
package/dist/server/index.js
CHANGED
|
@@ -163279,6 +163279,7 @@ var init_schema2 = __esm(() => {
|
|
|
163279
163279
|
agentId: uuid("agent_id").references(() => agents.id, { onDelete: "set null" }),
|
|
163280
163280
|
agentTimeout: integer("agent_timeout").notNull().default(600),
|
|
163281
163281
|
agentStreamMode: boolean("agent_stream_mode").notNull().default(false),
|
|
163282
|
+
agentErrorMessage: text("agent_error_message"),
|
|
163282
163283
|
agentReplyFilter: jsonb("agent_reply_filter").$type(),
|
|
163283
163284
|
agentSessionStrategy: varchar("agent_session_strategy", { length: 20 }).notNull().default("per_chat").$type(),
|
|
163284
163285
|
agentPrefixSenderName: boolean("agent_prefix_sender_name").notNull().default(true),
|
|
@@ -241329,7 +241330,7 @@ var init_sentry_scrub = __esm(() => {
|
|
|
241329
241330
|
var require_package7 = __commonJS((exports, module) => {
|
|
241330
241331
|
module.exports = {
|
|
241331
241332
|
name: "@omni/api",
|
|
241332
|
-
version: "2.
|
|
241333
|
+
version: "2.260731.1",
|
|
241333
241334
|
type: "module",
|
|
241334
241335
|
exports: {
|
|
241335
241336
|
".": {
|
|
@@ -347860,7 +347861,7 @@ async function handleDispatchFailure(services, db2, channel5, instance4, chatId,
|
|
|
347860
347861
|
const handedOff = await triggerErrorHandoff(services, db2, channel5, instance4, chatId, resolveErrorHandoffMessage(), trustedTenantId);
|
|
347861
347862
|
if (handedOff)
|
|
347862
347863
|
return;
|
|
347863
|
-
await sendErrorFeedback(channel5, instance4.id, chatId, error3, resolveDispatchErrorMessage(
|
|
347864
|
+
await sendErrorFeedback(channel5, instance4.id, chatId, error3, resolveDispatchErrorMessage(instance4.agentErrorMessage)).catch(() => {});
|
|
347864
347865
|
}
|
|
347865
347866
|
function sleep6(ms) {
|
|
347866
347867
|
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
@@ -357644,6 +357645,7 @@ var init_instances2 = __esm(() => {
|
|
|
357644
357645
|
agentId: exports_external.string().uuid().nullable().optional().openapi({ description: "Agent UUID (agents table)" }),
|
|
357645
357646
|
agentProviderId: exports_external.string().uuid().nullable().optional().openapi({ description: "Provider ID (agent provider)" }),
|
|
357646
357647
|
agentTimeout: exports_external.number().openapi({ description: "Agent timeout in seconds" }),
|
|
357648
|
+
agentErrorMessage: exports_external.string().nullable().optional().openapi({ description: "Customer-facing reply sent when agent dispatch fails (null = env/default fallback)" }),
|
|
357647
357649
|
agentStreamMode: exports_external.boolean().openapi({ description: "Whether streaming is enabled" }),
|
|
357648
357650
|
createdAt: exports_external.string().datetime().openapi({ description: "Creation timestamp" }),
|
|
357649
357651
|
updatedAt: exports_external.string().datetime().openapi({ description: "Last update timestamp" })
|
|
@@ -357653,6 +357655,7 @@ var init_instances2 = __esm(() => {
|
|
|
357653
357655
|
channel: ChannelTypeSchema.openapi({ description: "Channel type" }),
|
|
357654
357656
|
agentId: exports_external.string().uuid().nullable().optional().openapi({ description: "Agent UUID (agents table)" }),
|
|
357655
357657
|
agentTimeout: exports_external.number().int().positive().default(600).openapi({ description: "Agent timeout in seconds" }),
|
|
357658
|
+
agentErrorMessage: exports_external.string().nullable().optional().openapi({ description: "Customer-facing reply sent when agent dispatch fails (null = env/default fallback)" }),
|
|
357656
357659
|
agentStreamMode: exports_external.boolean().default(false).openapi({ description: "Enable streaming responses" }),
|
|
357657
357660
|
isDefault: exports_external.boolean().default(false).openapi({ description: "Set as default instance for channel" }),
|
|
357658
357661
|
token: exports_external.string().optional().openapi({ description: "Bot token for Discord instances" })
|
|
@@ -364425,6 +364428,7 @@ var init_instances3 = __esm(() => {
|
|
|
364425
364428
|
channel: ChannelTypeSchema.describe("Channel type (e.g., whatsapp-baileys, discord)"),
|
|
364426
364429
|
agentId: exports_external.string().uuid().nullable().optional().describe("Agent UUID referencing agents table"),
|
|
364427
364430
|
agentTimeout: exports_external.number().int().positive().default(600).describe("Agent timeout in seconds"),
|
|
364431
|
+
agentErrorMessage: exports_external.string().optional().nullable().describe("Customer-facing reply sent when agent dispatch fails (null = fall through to OMNI_AGENT_DISPATCH_ERROR_MESSAGE env, then built-in default)"),
|
|
364428
364432
|
agentStreamMode: exports_external.boolean().default(false).describe("Enable streaming responses"),
|
|
364429
364433
|
agentReplyFilter: agentReplyFilterSchema.optional().nullable().describe("When agent should reply"),
|
|
364430
364434
|
agentSessionStrategy: exports_external.enum(["per_user", "per_chat", "per_thread"]).default("per_chat").describe("Session strategy for agent memory"),
|
|
@@ -364482,6 +364486,7 @@ var init_instances3 = __esm(() => {
|
|
|
364482
364486
|
});
|
|
364483
364487
|
updateInstanceSchema = createInstanceSchema.partial().extend({
|
|
364484
364488
|
agentId: exports_external.string().uuid().nullable().optional(),
|
|
364489
|
+
agentErrorMessage: exports_external.string().nullable().optional(),
|
|
364485
364490
|
agentReplyFilter: agentReplyFilterSchema.nullable().optional(),
|
|
364486
364491
|
triggerEvents: exports_external.array(exports_external.string()).nullable().optional(),
|
|
364487
364492
|
telegramBotToken: exports_external.string().nullable().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automagik/omni",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.260731.1",
|
|
4
4
|
"description": "LLM-optimized CLI for Omni",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@anthropic-ai/claude-agent-sdk": "^0.2.62",
|
|
41
|
-
"@omni/channel-hermes": "workspace:*",
|
|
42
41
|
"@sentry/bun": "^10.43.0",
|
|
43
42
|
"@snazzah/davey": "^0.1.11",
|
|
44
43
|
"chalk": "^5.4.0",
|
|
@@ -58,6 +57,7 @@
|
|
|
58
57
|
"@omni/channel-a2a": "workspace:*",
|
|
59
58
|
"@omni/channel-discord": "workspace:*",
|
|
60
59
|
"@omni/channel-gupshup": "workspace:*",
|
|
60
|
+
"@omni/channel-hermes": "workspace:*",
|
|
61
61
|
"@omni/channel-sdk": "workspace:*",
|
|
62
62
|
"@omni/channel-slack": "workspace:*",
|
|
63
63
|
"@omni/channel-telegram": "workspace:*",
|