@automagik/omni 2.260422.2 → 2.260422.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.
package/dist/index.js CHANGED
@@ -113804,7 +113804,7 @@ import { fileURLToPath } from "url";
113804
113804
  // package.json
113805
113805
  var package_default = {
113806
113806
  name: "@automagik/omni",
113807
- version: "2.260422.2",
113807
+ version: "2.260422.3",
113808
113808
  description: "LLM-optimized CLI for Omni",
113809
113809
  type: "module",
113810
113810
  bin: {
@@ -224451,7 +224451,7 @@ var init_sentry_scrub = __esm(() => {
224451
224451
  var require_package8 = __commonJS((exports, module) => {
224452
224452
  module.exports = {
224453
224453
  name: "@omni/api",
224454
- version: "2.260422.2",
224454
+ version: "2.260422.3",
224455
224455
  type: "module",
224456
224456
  exports: {
224457
224457
  ".": {
@@ -347976,7 +347976,7 @@ function computeEstimatedCostCents(counts, pricing = BATCH_PRICING_V1) {
347976
347976
  const totalUsd = audioUsd + imageUsd + videoUsd + documentUsd;
347977
347977
  return Math.ceil(totalUsd * 100);
347978
347978
  }
347979
- var BATCH_PRICING_V1;
347979
+ var BATCH_PRICING_V1, BATCH_PRICING_VERSION = "2026-04-v1";
347980
347980
  var init_batch_pricing = __esm(() => {
347981
347981
  BATCH_PRICING_V1 = {
347982
347982
  audioPerMinuteUsd: 0.04 / 60,
@@ -348203,7 +348203,8 @@ class BatchJobService {
348203
348203
  contentTypes: contentTypes2 ?? ["audio", "image", "video", "document"],
348204
348204
  force,
348205
348205
  delayMinMs: delayMinMs ?? BatchJobService.DEFAULT_DELAY_MIN_MS,
348206
- delayMaxMs: delayMaxMs ?? BatchJobService.DEFAULT_DELAY_MAX_MS
348206
+ delayMaxMs: delayMaxMs ?? BatchJobService.DEFAULT_DELAY_MAX_MS,
348207
+ pricingVersion: BATCH_PRICING_VERSION
348207
348208
  };
348208
348209
  const jobData = {
348209
348210
  jobType,
@@ -348222,7 +348223,12 @@ class BatchJobService {
348222
348223
  if (!created) {
348223
348224
  throw new Error("Failed to create batch job");
348224
348225
  }
348225
- log76.info("Batch job created", { jobId: created.id, jobType, instanceId });
348226
+ log76.info("Batch job created", {
348227
+ jobId: created.id,
348228
+ jobType,
348229
+ instanceId,
348230
+ pricingVersion: BATCH_PRICING_VERSION
348231
+ });
348226
348232
  if (this.eventBus) {
348227
348233
  await this.eventBus.publish("batch-job.created", {
348228
348234
  jobId: created.id,
@@ -348327,6 +348333,11 @@ class BatchJobService {
348327
348333
  counts.documentCount++;
348328
348334
  }
348329
348335
  const estimatedCostCents = computeEstimatedCostCents(counts);
348336
+ log76.debug("Batch cost estimated", {
348337
+ totalItems: items.length,
348338
+ estimatedCostCents,
348339
+ pricingVersion: BATCH_PRICING_VERSION
348340
+ });
348330
348341
  const avgDelayMs = (BatchJobService.DEFAULT_DELAY_MIN_MS + BatchJobService.DEFAULT_DELAY_MAX_MS) / 2;
348331
348342
  const estimatedDurationMinutes = Math.ceil(items.length * (BatchJobService.AVG_PROCESSING_TIME_MS + avgDelayMs) / 60000);
348332
348343
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260422.2",
3
+ "version": "2.260422.3",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,14 +36,14 @@
36
36
  "qrcode-terminal": "^0.12.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@omni/api": "2.260422.1",
40
- "@omni/channel-discord": "2.260422.1",
41
- "@omni/channel-sdk": "2.260422.1",
42
- "@omni/channel-slack": "2.260422.1",
43
- "@omni/channel-telegram": "2.260422.1",
44
- "@omni/channel-whatsapp": "2.260422.1",
45
- "@omni/core": "2.260422.1",
46
- "@omni/sdk": "2.260422.1",
39
+ "@omni/api": "2.260422.2",
40
+ "@omni/channel-discord": "2.260422.2",
41
+ "@omni/channel-sdk": "2.260422.2",
42
+ "@omni/channel-slack": "2.260422.2",
43
+ "@omni/channel-telegram": "2.260422.2",
44
+ "@omni/channel-whatsapp": "2.260422.2",
45
+ "@omni/core": "2.260422.2",
46
+ "@omni/sdk": "2.260422.2",
47
47
  "@types/node": "^22.10.3",
48
48
  "@types/qrcode-terminal": "^0.12.2",
49
49
  "typescript": "^5.7.3"