@automagik/omni 2.260423.10 → 2.260424.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/index.js CHANGED
@@ -113929,7 +113929,7 @@ import { fileURLToPath } from "url";
113929
113929
  // package.json
113930
113930
  var package_default = {
113931
113931
  name: "@automagik/omni",
113932
- version: "2.260423.10",
113932
+ version: "2.260424.1",
113933
113933
  description: "LLM-optimized CLI for Omni",
113934
113934
  type: "module",
113935
113935
  bin: {
@@ -224554,7 +224554,7 @@ var init_sentry_scrub = __esm(() => {
224554
224554
  var require_package8 = __commonJS((exports, module) => {
224555
224555
  module.exports = {
224556
224556
  name: "@omni/api",
224557
- version: "2.260423.10",
224557
+ version: "2.260424.1",
224558
224558
  type: "module",
224559
224559
  exports: {
224560
224560
  ".": {
@@ -280785,7 +280785,7 @@ class FollowUpSweeperService {
280785
280785
  lastInboundCustomerMessageAt: chatFollowUpState.lastInboundCustomerMessageAt,
280786
280786
  chatName: chats.name,
280787
280787
  channelType: instances.channel
280788
- }).from(chatFollowUpState).leftJoin(chats, eq(chatFollowUpState.chatId, chats.id)).leftJoin(instances, eq(chatFollowUpState.instanceId, instances.id)).where(and2(isNull2(chatFollowUpState.disarmReason), lte(chatFollowUpState.nextFireAt, now))).orderBy(chatFollowUpState.nextFireAt).limit(limit2).for("update", { of: chatFollowUpState, skipLocked: true });
280788
+ }).from(chatFollowUpState).leftJoin(chats, eq(chatFollowUpState.chatId, chats.id)).leftJoin(instances, eq(chatFollowUpState.instanceId, instances.id)).where(and2(isNull2(chatFollowUpState.disarmReason), lte(chatFollowUpState.nextFireAt, now), sql`(${chats.settings}->>'agentPaused')::boolean IS DISTINCT FROM true`)).orderBy(chatFollowUpState.nextFireAt).limit(limit2).for("update", { of: chatFollowUpState, skipLocked: true });
280789
280789
  return claimed;
280790
280790
  });
280791
280791
  return rows.map((r) => ({
@@ -300728,6 +300728,11 @@ var init_messages5 = __esm(() => {
300728
300728
  await services.chats.update(data.chatId, {
300729
300729
  settings: { agentPaused: true }
300730
300730
  });
300731
+ await services.followUpLifecycle.disarm({
300732
+ chatId: data.chatId,
300733
+ instanceId: data.instanceId,
300734
+ reason: "handoff"
300735
+ });
300731
300736
  db2.insert(handoffLogs).values({
300732
300737
  instanceId: data.instanceId,
300733
300738
  chatUuid: data.chatId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260423.10",
3
+ "version": "2.260424.1",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {
@@ -39,15 +39,15 @@
39
39
  "qrcode-terminal": "^0.12.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@omni/api": "2.260423.9",
43
- "@omni/channel-discord": "2.260423.9",
44
- "@omni/channel-gupshup": "2.260423.9",
45
- "@omni/channel-sdk": "2.260423.9",
46
- "@omni/channel-slack": "2.260423.9",
47
- "@omni/channel-telegram": "2.260423.9",
48
- "@omni/channel-whatsapp": "2.260423.9",
49
- "@omni/core": "2.260423.9",
50
- "@omni/sdk": "2.260423.9",
42
+ "@omni/api": "2.260423.10",
43
+ "@omni/channel-discord": "2.260423.10",
44
+ "@omni/channel-gupshup": "2.260423.10",
45
+ "@omni/channel-sdk": "2.260423.10",
46
+ "@omni/channel-slack": "2.260423.10",
47
+ "@omni/channel-telegram": "2.260423.10",
48
+ "@omni/channel-whatsapp": "2.260423.10",
49
+ "@omni/core": "2.260423.10",
50
+ "@omni/sdk": "2.260423.10",
51
51
  "@types/node": "^22.10.3",
52
52
  "@types/qrcode-terminal": "^0.12.2",
53
53
  "typescript": "^5.7.3"