@automagik/omni 2.260624.1 → 2.260624.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
@@ -62332,15 +62332,19 @@ var init_claude_code_client = __esm(() => {
62332
62332
  function isUnsafeCustomerFacingProviderText(text) {
62333
62333
  return Boolean(text && PROVIDER_ERROR_PATTERN.test(text));
62334
62334
  }
62335
- function toSafeCustomerFallback(text) {
62335
+ function resolveSafeProviderErrorMessage(env2 = process.env) {
62336
+ const override = env2.OMNI_SAFE_PROVIDER_ERROR_MESSAGE?.trim();
62337
+ return override || SAFE_PROVIDER_ERROR_MESSAGE;
62338
+ }
62339
+ function toSafeCustomerFallback(text, env2 = process.env) {
62336
62340
  if (isUnsafeCustomerFacingProviderText(text)) {
62337
- return SAFE_PROVIDER_ERROR_MESSAGE;
62341
+ return resolveSafeProviderErrorMessage(env2);
62338
62342
  }
62339
62343
  return text ?? "";
62340
62344
  }
62341
62345
  var SAFE_PROVIDER_ERROR_MESSAGE = "T\xF4 com um probleminha t\xE9cnico aqui agora. J\xE1 estou avisando o time. Pode tentar de novo em alguns minutos? \uD83D\uDE4F", PROVIDER_ERROR_PATTERN;
62342
62346
  var init_customer_safe_errors = __esm(() => {
62343
- PROVIDER_ERROR_PATTERN = /(litellm\.(BadRequestError|AuthenticationError|RateLimitError|APIError)|ModelProviderError|AnthropicException|Authentication Error|Invalid proxy server token|Received API Key|Available Model Group Fallbacks|credit balance is too low|Plans\s*&\s*Billing|\bsk-[A-Za-z0-9_-]{8,}|Bearer\s+[A-Za-z0-9._-]+|api[_ -]?key\s*[=:])/i;
62347
+ PROVIDER_ERROR_PATTERN = /(litellm\.(BadRequestError|AuthenticationError|RateLimitError|APIError)|ModelProviderError|AnthropicException|Authentication Error|Invalid proxy server token|Received API Key|Available Model Group Fallbacks|credit balance is too low|Plans\s*&\s*Billing|\bsk-[A-Za-z0-9_-]{8,}|Bearer\s+[A-Za-z0-9._-]{20,}|api[_ -]?key\s*[=:])/i;
62344
62348
  });
62345
62349
 
62346
62350
  // ../core/src/providers/agno-provider.ts
@@ -62453,7 +62457,7 @@ class AgnoAgentProvider {
62453
62457
  traceId: context.traceId,
62454
62458
  error: message3
62455
62459
  });
62456
- yield { phase: "error", error: SAFE_PROVIDER_ERROR_MESSAGE };
62460
+ yield { phase: "error", error: resolveSafeProviderErrorMessage() };
62457
62461
  }
62458
62462
  }
62459
62463
  async checkHealth() {
@@ -124998,7 +125002,7 @@ import { fileURLToPath } from "url";
124998
125002
  // package.json
124999
125003
  var package_default = {
125000
125004
  name: "@automagik/omni",
125001
- version: "2.260624.1",
125005
+ version: "2.260624.2",
125002
125006
  description: "LLM-optimized CLI for Omni",
125003
125007
  type: "module",
125004
125008
  bin: {
@@ -30665,15 +30665,19 @@ var init_claude_code_client = __esm(() => {
30665
30665
  function isUnsafeCustomerFacingProviderText(text) {
30666
30666
  return Boolean(text && PROVIDER_ERROR_PATTERN.test(text));
30667
30667
  }
30668
- function toSafeCustomerFallback(text) {
30668
+ function resolveSafeProviderErrorMessage(env = process.env) {
30669
+ const override = env.OMNI_SAFE_PROVIDER_ERROR_MESSAGE?.trim();
30670
+ return override || SAFE_PROVIDER_ERROR_MESSAGE;
30671
+ }
30672
+ function toSafeCustomerFallback(text, env = process.env) {
30669
30673
  if (isUnsafeCustomerFacingProviderText(text)) {
30670
- return SAFE_PROVIDER_ERROR_MESSAGE;
30674
+ return resolveSafeProviderErrorMessage(env);
30671
30675
  }
30672
30676
  return text ?? "";
30673
30677
  }
30674
30678
  var SAFE_PROVIDER_ERROR_MESSAGE = "T\xF4 com um probleminha t\xE9cnico aqui agora. J\xE1 estou avisando o time. Pode tentar de novo em alguns minutos? \uD83D\uDE4F", PROVIDER_ERROR_PATTERN;
30675
30679
  var init_customer_safe_errors = __esm(() => {
30676
- PROVIDER_ERROR_PATTERN = /(litellm\.(BadRequestError|AuthenticationError|RateLimitError|APIError)|ModelProviderError|AnthropicException|Authentication Error|Invalid proxy server token|Received API Key|Available Model Group Fallbacks|credit balance is too low|Plans\s*&\s*Billing|\bsk-[A-Za-z0-9_-]{8,}|Bearer\s+[A-Za-z0-9._-]+|api[_ -]?key\s*[=:])/i;
30680
+ PROVIDER_ERROR_PATTERN = /(litellm\.(BadRequestError|AuthenticationError|RateLimitError|APIError)|ModelProviderError|AnthropicException|Authentication Error|Invalid proxy server token|Received API Key|Available Model Group Fallbacks|credit balance is too low|Plans\s*&\s*Billing|\bsk-[A-Za-z0-9_-]{8,}|Bearer\s+[A-Za-z0-9._-]{20,}|api[_ -]?key\s*[=:])/i;
30677
30681
  });
30678
30682
 
30679
30683
  // ../core/src/providers/agno-provider.ts
@@ -30786,7 +30790,7 @@ class AgnoAgentProvider {
30786
30790
  traceId: context2.traceId,
30787
30791
  error: message3
30788
30792
  });
30789
- yield { phase: "error", error: SAFE_PROVIDER_ERROR_MESSAGE };
30793
+ yield { phase: "error", error: resolveSafeProviderErrorMessage() };
30790
30794
  }
30791
30795
  }
30792
30796
  async checkHealth() {
@@ -225285,7 +225289,7 @@ var init_sentry_scrub = __esm(() => {
225285
225289
  var require_package7 = __commonJS((exports, module) => {
225286
225290
  module.exports = {
225287
225291
  name: "@omni/api",
225288
- version: "2.260624.1",
225292
+ version: "2.260624.2",
225289
225293
  type: "module",
225290
225294
  exports: {
225291
225295
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automagik/omni",
3
- "version": "2.260624.1",
3
+ "version": "2.260624.2",
4
4
  "description": "LLM-optimized CLI for Omni",
5
5
  "type": "module",
6
6
  "bin": {