@automagik/omni 2.260618.3 → 2.260619.2

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
@@ -124960,7 +124960,7 @@ import { fileURLToPath } from "url";
124960
124960
  // package.json
124961
124961
  var package_default = {
124962
124962
  name: "@automagik/omni",
124963
- version: "2.260618.3",
124963
+ version: "2.260619.2",
124964
124964
  description: "LLM-optimized CLI for Omni",
124965
124965
  type: "module",
124966
124966
  bin: {
@@ -225245,7 +225245,7 @@ var init_sentry_scrub = __esm(() => {
225245
225245
  var require_package7 = __commonJS((exports, module) => {
225246
225246
  module.exports = {
225247
225247
  name: "@omni/api",
225248
- version: "2.260618.3",
225248
+ version: "2.260619.2",
225249
225249
  type: "module",
225250
225250
  exports: {
225251
225251
  ".": {
@@ -366915,12 +366915,13 @@ async function sendText(client, to, text) {
366915
366915
  }
366916
366916
 
366917
366917
  // ../channel-gupshup/src/utils/identity.ts
366918
- function normalizePhone(phone) {
366919
- const clean = phone.startsWith("+") ? phone.slice(1) : phone;
366920
- return clean.replace(/^(55\d{2})9(\d{8})$/, "$1$2");
366918
+ function stripFormatting(phone) {
366919
+ if (typeof phone !== "string")
366920
+ return "";
366921
+ return phone.trim().replace(/^\+/, "").replace(/@.*$/, "").replace(/:\d+$/, "");
366921
366922
  }
366922
366923
  function toGupshupPhone(phone) {
366923
- return normalizePhone(phone);
366924
+ return stripFormatting(phone);
366924
366925
  }
366925
366926
 
366926
366927
  // ../channel-gupshup/src/plugin.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260618.3",
3
+ "version": "2.260619.2",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {