@automagik/omni 2.260914.1 → 2.260914.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/commands/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,KAAK,mBAAmB,EAAsB,MAAM,YAAY,CAAC;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE1E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwJpC,iFAAiF;AACjF,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,qBAAqB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CASzF;AAqDD,2DAA2D;AAC3D,UAAU,UAAU;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,EAAE;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AA+BD,wEAAwE;AACxE,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAKzE;AAyCD,wDAAwD;AACxD,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EA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E,MAAM,CAAC;IACd,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,sFAAsF;IACtF,GAAG,EAAE,OAAO,CAAC;IACb,8EAA8E;IAC9E,SAAS,EAAE,OAAO,CAAC;IACnB,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC;IAC1B,sEAAsE;IACtE,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,qGAAqG;IACrG,MAAM,CAAC,EAAE;QAAE,MAAM,EAAE,UAAU,CAAC;QAAC,MAAM,EAAE,iBAAiB,CAAA;KAAE,CAAC;IAC3D,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AA2CD;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CA+CxE;AA+FD,wBAAgB,mBAAmB,IAAI,OAAO,CAga7C"}
@@ -1 +1 @@
1
- {"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../src/commands/instances.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkNpC,wBAAgB,sBAAsB,IAAI,OAAO,CA+4ChD"}
1
+ {"version":3,"file":"instances.d.ts","sourceRoot":"","sources":["../../src/commands/instances.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAkNpC,wBAAgB,sBAAsB,IAAI,OAAO,CAg5ChD"}
@@ -14,6 +14,8 @@
14
14
  */
15
15
  import type { WebhookEventTypeMappingBody, WebhookSignatureConfigBody } from '@omni/sdk';
16
16
  import { Command } from 'commander';
17
+ /** Ingress receive URL for a source: absolute when a non-loopback API URL is configured, else the path. */
18
+ declare function ingressUrl(name: string, apiUrl?: string | undefined): string;
17
19
  interface SignatureSecretOptions {
18
20
  signatureSecret?: string;
19
21
  signatureSecretEnv?: string;
@@ -85,6 +87,8 @@ declare const MUTATION_POLICIES: readonly ["same_id", "new_id"];
85
87
  export declare function createWebhooksCommand(): Command;
86
88
  /** Test-only surface — not part of the CLI contract. */
87
89
  export declare const __testables: {
90
+ INGRESS_PATH: string;
91
+ ingressUrl: typeof ingressUrl;
88
92
  resolveSignatureSecret: typeof resolveSignatureSecret;
89
93
  buildSignatureConfig: typeof buildSignatureConfig;
90
94
  assertPairedSignatureOnCreate: typeof assertPairedSignatureOnCreate;
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/commands/webhooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAapC,UAAU,sBAAsB;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AAcD;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,sBAAsB,EAC/B,SAAS,GAAE,MAAM,OAAO,CAAC,MAAM,CAAuB,GACrD,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAqC7B;AAED,6FAA6F;AAC7F,iBAAS,oBAAoB,CAAC,OAAO,EAAE;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,GAAG,0BAA0B,GAAG,SAAS,CAczC;AAoBD;;;;;;GAMG;AACH,iBAAS,uBAAuB,CAAC,GAAG,EAAE,MAAM,G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;IACpD,cAAc,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;CACrD;AAED,2EAA2E;AAC3E,iBAAe,sBAAsB,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAuB9F;AAED;;;;;GAKG;AACH,iBAAS,6BAA6B,CACpC,eAAe,EAAE,0BAA0B,GAAG,SAAS,EACvD,eAAe,EAAE,MAAM,GAAG,SAAS,GAClC,IAAI,CAQN;AAID,QAAA,MAAM,gBAAgB,kDAAmD,CAAC;AAC1E,QAAA,MAAM,iBAAiB,gCAAiC,CAAC;AAuDzD,wBAAgB,qBAAqB,IAAI,OAAO,CAmU/C;AAED,wDAAwD;AACxD,eAAO,MAAM,WAAW;;;;;;;;CAQvB,CAAC"}
package/dist/index.js CHANGED
@@ -115808,7 +115808,7 @@ var require_client2 = __commonJS((exports) => {
115808
115808
 
115809
115809
  // ../../node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js
115810
115810
  var require_esmLoader = __commonJS((exports) => {
115811
- var __filename = "/home/runner/work/omni/omni/node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js";
115811
+ var __filename = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js";
115812
115812
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
115813
115813
  var core = require_cjs();
115814
115814
  var importInTheMiddle = require_import_in_the_middle();
@@ -137251,7 +137251,7 @@ import { fileURLToPath } from "url";
137251
137251
  // package.json
137252
137252
  var package_default = {
137253
137253
  name: "@automagik/omni",
137254
- version: "2.260914.1",
137254
+ version: "2.260914.3",
137255
137255
  repository: {
137256
137256
  type: "git",
137257
137257
  url: "git+https://github.com/automagik-dev/omni.git",
@@ -137733,23 +137733,39 @@ ${names}`);
137733
137733
  }
137734
137734
  error(`No instance found matching "${input}"`);
137735
137735
  }
137736
+ async function assertChatInInstance(input, instanceId) {
137737
+ const client = getClient();
137738
+ let chat = null;
137739
+ try {
137740
+ chat = await client.chats.get(input);
137741
+ } catch {}
137742
+ if (!chat) {
137743
+ error(`No chat found matching "${input}"`);
137744
+ }
137745
+ if (chat.instanceId !== instanceId) {
137746
+ error(`Chat ${input.slice(0, 8)} belongs to instance ${chat.instanceId}, not ${instanceId}`);
137747
+ }
137748
+ }
137749
+ async function resolveChatByExternalId(input, instanceId) {
137750
+ const result = await getClient().chats.list({ limit: 100, instanceId, search: input });
137751
+ const matches = result.items.filter((c2) => c2.externalId === input);
137752
+ if (matches.length > 1) {
137753
+ const names = matches.map((c2) => ` ${c2.id.slice(0, 8)} ${c2.name || "(unnamed)"}`).join(`
137754
+ `);
137755
+ error(`Ambiguous external ID "${input}" matches ${matches.length} chats (pass --instance):
137756
+ ${names}`);
137757
+ }
137758
+ return matches[0]?.id;
137759
+ }
137736
137760
  async function resolveChatId(input, instanceId) {
137737
137761
  if (UUID_RE.test(input)) {
137738
- if (instanceId) {
137739
- const client2 = getClient();
137740
- let chat = null;
137741
- try {
137742
- chat = await client2.chats.get(input);
137743
- } catch {}
137744
- if (!chat) {
137745
- error(`No chat found matching "${input}"`);
137746
- }
137747
- if (chat.instanceId !== instanceId) {
137748
- error(`Chat ${input.slice(0, 8)} belongs to instance ${chat.instanceId}, not ${instanceId}`);
137749
- }
137750
- }
137762
+ if (instanceId)
137763
+ await assertChatInInstance(input, instanceId);
137751
137764
  return input;
137752
137765
  }
137766
+ const byExternal = input.includes("@") ? await resolveChatByExternalId(input, instanceId) : undefined;
137767
+ if (byExternal)
137768
+ return byExternal;
137753
137769
  const client = getClient();
137754
137770
  const result = await client.chats.list({ limit: 100, instanceId });
137755
137771
  const chats = result.items;
@@ -144627,7 +144643,7 @@ function createConsumersCommand() {
144627
144643
  error(`Failed to create consumer: ${errorMessage(err2)}`);
144628
144644
  }
144629
144645
  });
144630
- consumers.command("ls").description("List durable consumers with their cursor and lag").action(async () => {
144646
+ consumers.command("ls").alias("list").description("List durable consumers with their cursor and lag").action(async () => {
144631
144647
  try {
144632
144648
  const result = await consumersApiRequest("");
144633
144649
  list(result.items.map(summarizeConsumerRow), { emptyMessage: "No durable consumers registered." });
@@ -146070,7 +146086,7 @@ function createInstancesCommand() {
146070
146086
  error(`Failed to logout: ${message2}`);
146071
146087
  }
146072
146088
  });
146073
- instances.command("sync <id>").description("Start a sync operation").requiredOption("--type <type>", `Sync type (${VALID_SYNC_TYPES.join(", ")})`).option("--depth <depth>", "Sync depth (7d, 30d, 90d, 1y, all)").option("--download-media", "Download media files").option("--chat <jid>", "Specific chat JID for per-chat active sync (WhatsApp only)").action(async (rawId, options) => {
146089
+ instances.command("sync <id>").description("Start a sync operation").requiredOption("--type <type>", `Sync type (${VALID_SYNC_TYPES.join(", ")})`).option("--depth <depth>", "Sync depth (7d, 30d, 90d, 1y, all; default: all with --chat, otherwise 7d)").option("--download-media", "Download media files").option("--chat <jid>", "Specific chat JID for per-chat active sync (WhatsApp only)").action(async (rawId, options) => {
146074
146090
  if (!VALID_SYNC_TYPES.includes(options.type)) {
146075
146091
  error(`Invalid sync type: ${options.type}`, {
146076
146092
  validTypes: VALID_SYNC_TYPES
@@ -146095,6 +146111,7 @@ function createInstancesCommand() {
146095
146111
  jobId: result.jobId,
146096
146112
  type: result.type,
146097
146113
  status: result.status,
146114
+ depth: result.config?.depth,
146098
146115
  mode: syncMode
146099
146116
  });
146100
146117
  } catch (err2) {
@@ -150965,7 +150982,15 @@ var custom_github_release_default = {
150965
150982
  // src/commands/webhooks.ts
150966
150983
  import { readFileSync as readFileSync18 } from "fs";
150967
150984
  init_zod();
150985
+ init_config();
150968
150986
  init_output();
150987
+ var INGRESS_PATH = "/api/v2/webhooks/ingress/";
150988
+ function ingressUrl(name, apiUrl = loadConfig().apiUrl) {
150989
+ const path = `${INGRESS_PATH}${encodeURIComponent(name)}`;
150990
+ if (!apiUrl || /^https?:\/\/(localhost|127\.|\[?::1\]?)/i.test(apiUrl))
150991
+ return path;
150992
+ return `${apiUrl.replace(/\/+$/, "")}${path}`;
150993
+ }
150969
150994
  var SIGNATURE_ALGORITHMS = ["hmac-sha256", "hmac-sha1", "token-match"];
150970
150995
  var signatureSecretSchema = exports_external.string().min(8, "at least 8 characters").max(512, "at most 512 characters");
150971
150996
  var SECRET_SOURCE_FLAGS = "--signature-secret, --signature-secret-env, --signature-secret-stdin";
@@ -151178,6 +151203,7 @@ function createWebhooksCommand() {
151178
151203
  enabled: w.enabled ? "yes" : "no",
151179
151204
  health: w.livenessStatus ?? "-",
151180
151205
  cadence: w.expectedIntervalSeconds != null ? `${w.expectedIntervalSeconds}s` : "-",
151206
+ url: ingressUrl(w.name),
151181
151207
  createdAt: w.createdAt
151182
151208
  }));
151183
151209
  list(items, { emptyMessage: "No webhook sources found." });
@@ -151191,7 +151217,7 @@ function createWebhooksCommand() {
151191
151217
  const client = getClient();
151192
151218
  try {
151193
151219
  const source = await client.webhooks.getSource(resolvedId);
151194
- data(source);
151220
+ data({ ...source, url: ingressUrl(source.name) });
151195
151221
  } catch (err2) {
151196
151222
  const message2 = err2 instanceof Error ? err2.message : "Unknown error";
151197
151223
  error(`Failed to get webhook source: ${message2}`);
@@ -151228,10 +151254,11 @@ function createWebhooksCommand() {
151228
151254
  const details = {
151229
151255
  id: source.id,
151230
151256
  name: source.name,
151231
- url: `POST /api/v2/webhooks/${source.name}`
151257
+ url: `POST ${ingressUrl(source.name)}`,
151258
+ internalUrl: `POST /api/v2/webhooks/${source.name} (requires x-api-key)`
151232
151259
  };
151233
- if (signatureConfig) {
151234
- details.publicUrl = `POST /api/v2/webhooks/ingress/${source.name}`;
151260
+ if (!signatureConfig) {
151261
+ details.note = "Ingress rejects deliveries until a signature config + secret is set (webhooks update)";
151235
151262
  }
151236
151263
  success(`Webhook source created: ${source.id}`, details);
151237
151264
  } catch (err2) {
package/dist/resolve.d.ts CHANGED
@@ -24,6 +24,7 @@ export declare function resolveInstanceId(input: string): Promise<string>;
24
24
  * 2. UUID prefix match (minimum 2 hex chars)
25
25
  * 3. Exact name match (case-insensitive)
26
26
  * 4. Name substring match (case-insensitive)
27
+ * (inputs containing "@" first try an exact external id / JID match)
27
28
  *
28
29
  * Exits with error if no match or ambiguous.
29
30
  */
@@ -81,6 +82,7 @@ export declare function resolveKeyId(input: string): Promise<string>;
81
82
  * 2. UUID prefix match (minimum 2 hex chars)
82
83
  * 3. Exact name match (case-insensitive)
83
84
  * 4. Name substring match (case-insensitive)
85
+ * (inputs containing "@" first try an exact external id / JID match)
84
86
  *
85
87
  * Exits with error if no match or ambiguous.
86
88
  */
@@ -105,6 +107,7 @@ export declare function resolveBatchJobId(input: string): Promise<string>;
105
107
  * 2. UUID prefix match (minimum 2 hex chars)
106
108
  * 3. Exact name match (case-insensitive)
107
109
  * 4. Name substring match (case-insensitive)
110
+ * (inputs containing "@" first try an exact external id / JID match)
108
111
  *
109
112
  * Exits with error if no match or ambiguous.
110
113
  */
@@ -117,6 +120,7 @@ export declare function resolveProviderId(input: string): Promise<string>;
117
120
  * 2. UUID prefix match (minimum 2 hex chars)
118
121
  * 3. Exact name match (case-insensitive)
119
122
  * 4. Name substring match (case-insensitive)
123
+ * (inputs containing "@" first try an exact external id / JID match)
120
124
  *
121
125
  * Exits with error if no match or ambiguous.
122
126
  */
@@ -129,6 +133,7 @@ export declare function resolveAgentId(input: string): Promise<string>;
129
133
  * 2. UUID prefix match (minimum 2 hex chars)
130
134
  * 3. Exact name match (case-insensitive)
131
135
  * 4. Name substring match (case-insensitive)
136
+ * (inputs containing "@" first try an exact external id / JID match)
132
137
  *
133
138
  * Exits with error if no match or ambiguous.
134
139
  */
@@ -1 +1 @@
1
- {"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;;;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,MAAM,CAAC,CA8BtE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BnE;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAiBvF"}
@@ -77027,7 +77027,7 @@ var require_ClientVoiceManager = __commonJS((exports, module) => {
77027
77027
 
77028
77028
  // ../../node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist/index.js
77029
77029
  var require_dist9 = __commonJS((exports, module) => {
77030
- var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist";
77030
+ var __dirname = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/@discordjs+ws@1.2.3/node_modules/@discordjs/ws/dist";
77031
77031
  var __create2 = Object.create;
77032
77032
  var __defProp2 = Object.defineProperty;
77033
77033
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -161540,7 +161540,7 @@ var require_indexes = __commonJS((exports, module) => {
161540
161540
 
161541
161541
  // ../../node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream/index.js
161542
161542
  var require_thread_stream = __commonJS((exports, module) => {
161543
- var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream";
161543
+ var __dirname = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/thread-stream@3.1.0/node_modules/thread-stream";
161544
161544
  var { version } = require_package5();
161545
161545
  var { EventEmitter: EventEmitter3 } = __require("events");
161546
161546
  var { Worker } = __require("worker_threads");
@@ -161961,7 +161961,7 @@ var require_thread_stream = __commonJS((exports, module) => {
161961
161961
 
161962
161962
  // ../../node_modules/.bun/pino@9.14.0/node_modules/pino/lib/transport.js
161963
161963
  var require_transport2 = __commonJS((exports, module) => {
161964
- var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/pino@9.14.0/node_modules/pino/lib";
161964
+ var __dirname = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/pino@9.14.0/node_modules/pino/lib";
161965
161965
  var { createRequire: createRequire2 } = __require("module");
161966
161966
  var getCallers = require_caller();
161967
161967
  var { join: join8, isAbsolute, sep: sep2 } = __require("path");
@@ -243708,7 +243708,7 @@ var require_client3 = __commonJS((exports) => {
243708
243708
 
243709
243709
  // ../../node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js
243710
243710
  var require_esmLoader = __commonJS((exports) => {
243711
- var __filename = "/home/runner/work/omni/omni/node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js";
243711
+ var __filename = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/@sentry+node-core@10.52.0+2c50d7e904f6cfd7/node_modules/@sentry/node-core/build/cjs/sdk/esmLoader.js";
243712
243712
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
243713
243713
  var core3 = require_cjs6();
243714
243714
  var importInTheMiddle = require_import_in_the_middle();
@@ -250934,7 +250934,7 @@ var init_sentry_scrub = __esm(() => {
250934
250934
  var require_package7 = __commonJS((exports, module) => {
250935
250935
  module.exports = {
250936
250936
  name: "@omni/api",
250937
- version: "2.260914.1",
250937
+ version: "2.260914.3",
250938
250938
  private: true,
250939
250939
  type: "module",
250940
250940
  exports: {
@@ -278036,7 +278036,7 @@ var require_src45 = __commonJS((exports) => {
278036
278036
 
278037
278037
  // ../../node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/channelz.js
278038
278038
  var require_channelz = __commonJS((exports) => {
278039
- var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src";
278039
+ var __dirname = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src";
278040
278040
  Object.defineProperty(exports, "__esModule", { value: true });
278041
278041
  exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = undefined;
278042
278042
  exports.unregisterChannelzRef = unregisterChannelzRef;
@@ -283439,7 +283439,7 @@ var require_duration = __commonJS((exports) => {
283439
283439
 
283440
283440
  // ../../node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src/orca.js
283441
283441
  var require_orca = __commonJS((exports) => {
283442
- var __dirname = "/home/runner/work/omni/omni/node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src";
283442
+ var __dirname = "/home/runner/work/omni/omni/.stable-source/node_modules/.bun/@grpc+grpc-js@1.14.3/node_modules/@grpc/grpc-js/build/src";
283443
283443
  Object.defineProperty(exports, "__esModule", { value: true });
283444
283444
  exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = undefined;
283445
283445
  exports.createOrcaClient = createOrcaClient;
@@ -378672,12 +378672,13 @@ function registerAutomationSchemas(registry4) {
378672
378672
  }
378673
378673
  var ConditionSchema, WebhookActionSchema, SendMessageActionSchema, EmitEventActionSchema, LogActionSchema, CallAgentActionSchema, ActionSchema, DebounceSchema, AutomationSchema, CreateAutomationSchema, AutomationLogSchema, TestAutomationSchema, AutomationTestResultSchema, AutomationMetricsSchema;
378674
378674
  var init_automations3 = __esm(() => {
378675
+ init_src();
378675
378676
  init_strict_config();
378676
378677
  init_zod_openapi();
378677
378678
  init_common4();
378678
378679
  ConditionSchema = exports_external.object({
378679
378680
  field: exports_external.string().min(1).openapi({ description: "Dot notation field path" }),
378680
- operator: exports_external.enum(["eq", "neq", "gt", "lt", "gte", "lte", "contains", "not_contains", "exists", "not_exists", "regex"]).openapi({ description: "Operator" }),
378681
+ operator: exports_external.enum(CONDITION_OPERATORS).openapi({ description: "Operator" }),
378681
378682
  value: exports_external.unknown().optional().openapi({ description: "Value to compare" })
378682
378683
  });
378683
378684
  WebhookActionSchema = exports_external.object({
@@ -384540,16 +384541,24 @@ async function resolveTestEvent(services, body) {
384540
384541
  timestamp: row.receivedAt.getTime()
384541
384542
  };
384542
384543
  }
384543
- var automationsRoutes, conditionSchema, webhookActionSchema, sendMessageActionSchema, emitEventActionSchema, logActionSchema, callAgentActionSchema, actionSchema, debounceKeySchema, debounceSchema, createAutomationSchema, updateAutomationSchema, listQuerySchema5, testAutomationSchema, logsQuerySchema;
384544
+ var automationsRoutes, validationHook = (result, c) => {
384545
+ if (result.success)
384546
+ return;
384547
+ const message2 = result.error.issues.map((i) => `${i.path.join(".") || "body"}: ${i.message}`).join("; ");
384548
+ return c.json({ error: { code: "VALIDATION_ERROR", message: message2, issues: result.error.issues } }, 400);
384549
+ }, conditionSchema, webhookActionSchema, sendMessageActionSchema, emitEventActionSchema, logActionSchema, callAgentActionSchema, actionSchema, debounceKeySchema, debounceSchema, createAutomationSchema, updateAutomationSchema, listQuerySchema5, testAutomationSchema, logsQuerySchema;
384544
384550
  var init_automations4 = __esm(() => {
384545
384551
  init_dist6();
384552
+ init_src();
384546
384553
  init_dist2();
384547
384554
  init_zod();
384548
384555
  init_strict_config();
384549
384556
  automationsRoutes = new Hono2;
384550
384557
  conditionSchema = exports_external.object({
384551
384558
  field: exports_external.string().min(1).describe("Dot notation path into the event payload (e.g., content.type, pull_request.merged)"),
384552
- operator: exports_external.enum(["eq", "neq", "gt", "lt", "gte", "lte", "contains", "not_contains", "exists", "not_exists", "regex"]).describe("Comparison operator"),
384559
+ operator: exports_external.enum(CONDITION_OPERATORS, {
384560
+ errorMap: () => ({ message: `Invalid operator. Expected one of: ${CONDITION_OPERATORS.join(", ")}` })
384561
+ }).describe("Comparison operator"),
384553
384562
  value: exports_external.unknown().optional().describe("Value to compare against")
384554
384563
  });
384555
384564
  webhookActionSchema = exports_external.object({
@@ -384698,13 +384707,13 @@ var init_automations4 = __esm(() => {
384698
384707
  const automation = await services.automations.getById(id);
384699
384708
  return c.json({ data: automation });
384700
384709
  });
384701
- automationsRoutes.post("/", zValidator("json", createAutomationSchema), async (c) => {
384710
+ automationsRoutes.post("/", zValidator("json", createAutomationSchema, validationHook), async (c) => {
384702
384711
  const data = c.req.valid("json");
384703
384712
  const services = c.get("services");
384704
384713
  const automation = await services.automations.create(data);
384705
384714
  return c.json({ data: automation }, 201);
384706
384715
  });
384707
- automationsRoutes.patch("/:id", zValidator("json", updateAutomationSchema), async (c) => {
384716
+ automationsRoutes.patch("/:id", zValidator("json", updateAutomationSchema, validationHook), async (c) => {
384708
384717
  const id = c.req.param("id");
384709
384718
  const data = c.req.valid("json");
384710
384719
  const services = c.get("services");
@@ -388424,6 +388433,9 @@ async function validateMessageSyncPreconditions(services, instanceId, channel5,
388424
388433
  }
388425
388434
  return null;
388426
388435
  }
388436
+ function resolveSyncDepth(depth, chatJids) {
388437
+ return depth ?? (chatJids?.length ? "all" : "7d");
388438
+ }
388427
388439
  async function enrichContactNames(contacts, services, instanceId) {
388428
388440
  const nameless = contacts.filter((c) => !c.name);
388429
388441
  if (nameless.length === 0)
@@ -389196,7 +389208,7 @@ var init_instances3 = __esm(() => {
389196
389208
  });
389197
389209
  syncRequestSchema = exports_external.object({
389198
389210
  type: exports_external.enum(["profile", "messages", "contacts", "groups", "all"]).describe("Type of sync: profile, messages, contacts, groups, or all"),
389199
- depth: exports_external.enum(["7d", "30d", "90d", "1y", "all"]).optional().describe("Sync depth for message history"),
389211
+ depth: exports_external.enum(["7d", "30d", "90d", "1y", "all"]).optional().describe("Sync depth for message history (default: all when chatJids is set, otherwise 7d)"),
389200
389212
  channelId: exports_external.string().optional().describe("Discord channel ID for channel-specific sync"),
389201
389213
  downloadMedia: exports_external.boolean().optional().describe("Download and store media files"),
389202
389214
  chatJids: exports_external.array(exports_external.string().min(1).max(128)).max(50).optional().describe("Specific chat JIDs for per-chat active sync (WhatsApp only). Omit for passive sync.")
@@ -389310,7 +389322,7 @@ var init_instances3 = __esm(() => {
389310
389322
  channelType: instance4.channel,
389311
389323
  type,
389312
389324
  config: {
389313
- depth: depth ?? "7d",
389325
+ depth: resolveSyncDepth(depth, chatJids),
389314
389326
  channelId,
389315
389327
  downloadMedia: downloadMedia ?? instance4.downloadMediaOnSync,
389316
389328
  ...chatJids?.length ? { chatJids } : {}
@@ -389322,6 +389334,7 @@ var init_instances3 = __esm(() => {
389322
389334
  instanceId: id,
389323
389335
  type,
389324
389336
  status: job.status,
389337
+ depth: job.config.depth,
389325
389338
  config: job.config,
389326
389339
  message: "Sync job created"
389327
389340
  }
@@ -390224,6 +390237,7 @@ var init_instances3 = __esm(() => {
390224
390237
  config: {
390225
390238
  since: sinceDate.toISOString(),
390226
390239
  until: untilDate.toISOString(),
390240
+ downloadMedia: instance4.downloadMediaOnSync,
390227
390241
  ...chatJids?.length ? { chatJids } : {}
390228
390242
  }
390229
390243
  });
@@ -398670,6 +398684,7 @@ async function processMessageSync(jobId, instanceId, channelType, config4, servi
398670
398684
  jobId,
398671
398685
  instanceId,
398672
398686
  channelType,
398687
+ depth: config4.depth,
398673
398688
  since: since?.toISOString()
398674
398689
  });
398675
398690
  let anchors = [];
@@ -398697,6 +398712,7 @@ async function processMessageSync(jobId, instanceId, channelType, config4, servi
398697
398712
  since,
398698
398713
  until: new Date,
398699
398714
  count: 50,
398715
+ downloadMedia: config4.downloadMedia,
398700
398716
  anchors: anchors.length > 0 ? anchors : undefined,
398701
398717
  onProgress: async (count3, progress) => {
398702
398718
  if (inflightRevoked)
@@ -528345,8 +528361,8 @@ async function tryDownloadMedia(msg, instanceId, externalId, apiBaseUrl, backend
528345
528361
  if (declaredSize !== undefined) {
528346
528362
  downloadGuard9.checkSize(declaredSize, log53, { instanceId, channel: "whatsapp" });
528347
528363
  }
528348
- const now = new Date;
528349
- const yearMonth = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, "0")}`;
528364
+ const messageDate = new Date(getPlatformTimestamp(msg));
528365
+ const yearMonth = `${messageDate.getFullYear()}-${String(messageDate.getMonth() + 1).padStart(2, "0")}`;
528350
528366
  const ext = getExtension2(mediaInfo.mimeType);
528351
528367
  const safeExternalId = basename3(externalId).replace(/[^a-zA-Z0-9_\-]/g, "_");
528352
528368
  const relativePath = join9(instanceId, yearMonth, `${safeExternalId}${ext}`);
@@ -528362,10 +528378,26 @@ async function tryDownloadMedia(msg, instanceId, externalId, apiBaseUrl, backend
528362
528378
  size: result.size
528363
528379
  };
528364
528380
  } catch (error) {
528365
- log53.warn("Media download failed, continuing without media", { externalId, error: String(error) });
528381
+ logMediaDownloadFailure(externalId, error);
528366
528382
  return null;
528367
528383
  }
528368
528384
  }
528385
+ var MEDIA_FAILURE_LOG_WINDOW_MS = 60000;
528386
+ var mediaFailureLog = { windowStart: 0, suppressed: 0 };
528387
+ function logMediaDownloadFailure(externalId, error, now = Date.now()) {
528388
+ if (now - mediaFailureLog.windowStart < MEDIA_FAILURE_LOG_WINDOW_MS) {
528389
+ mediaFailureLog.suppressed++;
528390
+ return false;
528391
+ }
528392
+ log53.warn("Media download failed, continuing without media", {
528393
+ externalId,
528394
+ error: String(error),
528395
+ suppressedSinceLastLog: mediaFailureLog.suppressed
528396
+ });
528397
+ mediaFailureLog.windowStart = now;
528398
+ mediaFailureLog.suppressed = 0;
528399
+ return true;
528400
+ }
528369
528401
  async function handleEncryptedEdit(plugin10, instanceId, content, chatId, msg) {
528370
528402
  const targetMessageId = content.targetMessageId;
528371
528403
  const stored = getMessageSecret(targetMessageId);
@@ -531002,7 +531034,9 @@ class WhatsAppPlugin extends BaseChannelPlugin {
531002
531034
  options.onMessage?.(msg);
531003
531035
  },
531004
531036
  onComplete: options.onProgress ? () => options.onProgress?.(messages2.length, 100) : undefined,
531005
- totalFetched: 0
531037
+ totalFetched: 0,
531038
+ downloadMedia: options.downloadMedia,
531039
+ skippedBeforeSince: 0
531006
531040
  };
531007
531041
  this.historySyncCallbacks.set(instanceId, syncState);
531008
531042
  try {
@@ -531909,14 +531943,25 @@ class WhatsAppPlugin extends BaseChannelPlugin {
531909
531943
  this.handleContactsUpsert(instanceId, contacts);
531910
531944
  }
531911
531945
  const BATCH_SIZE = 50;
531946
+ const skippedBefore = syncState?.skippedBeforeSince ?? 0;
531912
531947
  for (let i = 0;i < messages2.length; i += BATCH_SIZE) {
531913
531948
  const batch = messages2.slice(i, i + BATCH_SIZE);
531914
531949
  await Promise.all(batch.map((msg) => this.processHistoryMessage(instanceId, msg, syncState)));
531915
531950
  }
531951
+ const skippedBeforeSince = (syncState?.skippedBeforeSince ?? 0) - skippedBefore;
531952
+ if (skippedBeforeSince > 0) {
531953
+ this.logger.info("Skipped history messages before since (widen --depth to include them)", {
531954
+ instanceId,
531955
+ skippedBeforeSince,
531956
+ batchSize: messages2.length,
531957
+ since: syncState?.since?.toISOString()
531958
+ });
531959
+ }
531916
531960
  this.reportHistorySyncProgress(instanceId, syncState, progress, isLatest, messages2.length);
531917
531961
  }
531918
531962
  isHistoryMessageWithinSyncRange(msg, timestamp, syncState, instanceId) {
531919
531963
  if (syncState?.since && timestamp < syncState.since) {
531964
+ syncState.skippedBeforeSince = (syncState.skippedBeforeSince ?? 0) + 1;
531920
531965
  this.logger.debug("Skipping history message - before since", {
531921
531966
  instanceId,
531922
531967
  messageId: msg.key?.id,
@@ -531965,7 +532010,7 @@ class WhatsAppPlugin extends BaseChannelPlugin {
531965
532010
  });
531966
532011
  return;
531967
532012
  }
531968
- const mediaResult = await tryDownloadMedia(msg, instanceId, msg.key.id, this.config.apiBaseUrl);
532013
+ const mediaResult = syncState?.downloadMedia === false ? null : await tryDownloadMedia(msg, instanceId, msg.key.id, this.config.apiBaseUrl);
531969
532014
  if (mediaResult) {
531970
532015
  content.mediaUrl = mediaResult.mediaUrl;
531971
532016
  content.localPath = mediaResult.mediaLocalPath;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260914.1",
3
+ "version": "2.260914.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/automagik-dev/omni.git",