@automagik/omni 2.260430.11 → 2.260430.12

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
@@ -114079,7 +114079,7 @@ import { fileURLToPath } from "url";
114079
114079
  // package.json
114080
114080
  var package_default = {
114081
114081
  name: "@automagik/omni",
114082
- version: "2.260430.11",
114082
+ version: "2.260430.12",
114083
114083
  description: "LLM-optimized CLI for Omni",
114084
114084
  type: "module",
114085
114085
  bin: {
@@ -224556,7 +224556,7 @@ var init_sentry_scrub = __esm(() => {
224556
224556
  var require_package8 = __commonJS((exports, module) => {
224557
224557
  module.exports = {
224558
224558
  name: "@omni/api",
224559
- version: "2.260430.11",
224559
+ version: "2.260430.12",
224560
224560
  type: "module",
224561
224561
  exports: {
224562
224562
  ".": {
@@ -284814,13 +284814,13 @@ async function applyCloseContactGate(services, chatRecordId, instanceId, chatId,
284814
284814
  if (!Number.isFinite(closeUntilMs))
284815
284815
  return "pass";
284816
284816
  if (Date.now() < closeUntilMs) {
284817
- log95.debug("Chat in close cooldown, skipping dispatch", {
284817
+ log95.debug("Chat in soft close cooldown, follow-up disarmed but agent reactive", {
284818
284818
  instanceId,
284819
284819
  chatId,
284820
284820
  closeUntil: chatSettings.closeUntil,
284821
284821
  outcome: chatSettings.closeOutcome ?? null
284822
284822
  });
284823
- return "skip";
284823
+ return "pass";
284824
284824
  }
284825
284825
  if (!chatRecordId)
284826
284826
  return "pass";
@@ -284833,7 +284833,7 @@ async function applyCloseContactGate(services, chatRecordId, instanceId, chatId,
284833
284833
  agentResumedAt: new Date().toISOString()
284834
284834
  }
284835
284835
  });
284836
- log95.info("Close cooldown expired, agent reopened", {
284836
+ log95.info("Close cooldown expired, state cleaned", {
284837
284837
  instanceId,
284838
284838
  chatId,
284839
284839
  closeOutcome: chatSettings.closeOutcome ?? null
@@ -301417,10 +301417,11 @@ var init_messages5 = __esm(() => {
301417
301417
  }
301418
301418
  }).returning();
301419
301419
  const { terminal, escalated, closeUntil } = await computeCloseContactTerminalState(db2, data.chatId, outcome, auditRow?.id ?? null);
301420
+ const shouldPauseAgent = outcome === "lost";
301420
301421
  const closedAt = new Date;
301421
301422
  await services.chats.update(data.chatId, {
301422
301423
  settings: {
301423
- agentPaused: true,
301424
+ ...shouldPauseAgent ? { agentPaused: true } : {},
301424
301425
  closed: terminal,
301425
301426
  closeUntil: closeUntil?.toISOString() ?? null,
301426
301427
  closeOutcome: outcome
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260430.11",
3
+ "version": "2.260430.12",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,15 +51,15 @@
51
51
  "qrcode-terminal": "^0.12.0"
52
52
  },
53
53
  "devDependencies": {
54
- "@omni/api": "2.260430.10",
55
- "@omni/channel-discord": "2.260430.10",
56
- "@omni/channel-gupshup": "2.260430.10",
57
- "@omni/channel-sdk": "2.260430.10",
58
- "@omni/channel-slack": "2.260430.10",
59
- "@omni/channel-telegram": "2.260430.10",
60
- "@omni/channel-whatsapp": "2.260430.10",
61
- "@omni/core": "2.260430.10",
62
- "@omni/sdk": "2.260430.10",
54
+ "@omni/api": "2.260430.11",
55
+ "@omni/channel-discord": "2.260430.11",
56
+ "@omni/channel-gupshup": "2.260430.11",
57
+ "@omni/channel-sdk": "2.260430.11",
58
+ "@omni/channel-slack": "2.260430.11",
59
+ "@omni/channel-telegram": "2.260430.11",
60
+ "@omni/channel-whatsapp": "2.260430.11",
61
+ "@omni/core": "2.260430.11",
62
+ "@omni/sdk": "2.260430.11",
63
63
  "@types/node": "^22.10.3",
64
64
  "@types/qrcode-terminal": "^0.12.2",
65
65
  "typescript": "^5.7.3"