@aintela/chat 0.2.26 → 0.2.28

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,10 +1,10 @@
1
- var v = Object.defineProperty;
2
- var i = (t, n) => v(t, "name", { value: n, configurable: !0 });
3
- import d from "@mui/icons-material/Psychology";
1
+ var C = Object.defineProperty;
2
+ var i = (t, n) => C(t, "name", { value: n, configurable: !0 });
3
+ import c from "@mui/icons-material/Psychology";
4
4
  import a from "@mui/icons-material/FlashOn";
5
5
  import s from "@mui/icons-material/RocketLaunch";
6
- import C from "@mui/icons-material/GeneratingTokensOutlined";
7
- import c from "@mui/icons-material/SortByAlphaOutlined";
6
+ import v from "@mui/icons-material/GeneratingTokensOutlined";
7
+ import d from "@mui/icons-material/SortByAlphaOutlined";
8
8
  import m from "@mui/icons-material/AllInclusive";
9
9
  const l = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1 };
10
10
  function D(t) {
@@ -22,7 +22,7 @@ const G = {
22
22
  }, R = {
23
23
  Interactive: "interactive",
24
24
  Autonomous: "autonomous"
25
- }, U = {
25
+ }, F = {
26
26
  SendMessage: "SendMessage",
27
27
  Other: "Other",
28
28
  Suspend: "Suspend",
@@ -54,7 +54,7 @@ const G = {
54
54
  NotDefined: "not_defined",
55
55
  Waiting: "waiting",
56
56
  Suspended: "suspended"
57
- }, b = /* @__PURE__ */ i((t) => {
57
+ }, U = /* @__PURE__ */ i((t) => {
58
58
  switch (t.trim().toLowerCase()) {
59
59
  case "function_call":
60
60
  return e.FunctionCall;
@@ -79,16 +79,32 @@ const G = {
79
79
  default:
80
80
  return e.Other;
81
81
  }
82
- }, "GetEventTypeFromPythonName"), F = /* @__PURE__ */ i((t) => {
82
+ }, "GetEventTypeFromPythonName"), b = /* @__PURE__ */ i((t) => {
83
83
  switch (t.toLocaleLowerCase()) {
84
84
  case "functioncall":
85
85
  return e.FunctionCall;
86
86
  case "functionresponse":
87
87
  return e.FunctionResponse;
88
+ // Streaming "final" call/result carry their own $type on the wire — map them like their collapsed
89
+ // KernelContent forms so the top-level event classifies as call/response, not NotDefined.
90
+ case "streamingfinalfunctioncallcontent":
91
+ return e.FunctionCall;
92
+ case "streamingfinalfunctionresultcontent":
93
+ return e.FunctionResponse;
88
94
  case "text":
89
95
  return e.Text;
96
+ case "streamingtextcontent":
97
+ return e.Text;
90
98
  case "partialfunctioncall":
91
99
  return e.PartialFunctionCall;
100
+ case "streamingfunctioncallupdatecontent":
101
+ return e.PartialFunctionCall;
102
+ case "streamingreasoningcontent":
103
+ return e.Thought;
104
+ case "functionclientoutputcontent":
105
+ return e.FunctionClientOutput;
106
+ case "streamingclientoutputcontent":
107
+ return e.FunctionClientOutput;
92
108
  case "partialText":
93
109
  return e.Text;
94
110
  case "unknown":
@@ -96,7 +112,7 @@ const G = {
96
112
  default:
97
113
  return e.NotDefined;
98
114
  }
99
- }, "GetEventTypeFromDotNetName"), q = {
115
+ }, "GetEventTypeFromDotNetName"), O = {
100
116
  [e.FunctionCall]: "Executing function call",
101
117
  [e.FunctionResponse]: "Getting response",
102
118
  [e.Video]: "Video",
@@ -108,7 +124,7 @@ const G = {
108
124
  [e.Other]: "Other",
109
125
  [e.Text]: "Text",
110
126
  [e.NotDefined]: "NotDefined"
111
- }, O = {
127
+ }, q = {
112
128
  Regular: "Regular",
113
129
  Artifact: "Artifact"
114
130
  }, I = {
@@ -179,7 +195,7 @@ para sua organização`
179
195
  ShowGuideDemo: "ShowGuideDemo",
180
196
  uiToolShowcase: "uiToolShowcase",
181
197
  AUTO: "AUTO"
182
- }, H = {
198
+ }, P = {
183
199
  [o.Claude_Opus_4_6]: {
184
200
  name: "Claude Opus 4.6",
185
201
  description: "Modelo mais avançado da anthropic, no entanto, não tão rápido como o Sonnet",
@@ -201,7 +217,7 @@ para sua organização`
201
217
  description: `Modelo mais avançado
202
218
  Melhor qualidade para tarefas complexas
203
219
  Contexto: 2M tokens`,
204
- icon: d,
220
+ icon: c,
205
221
  contextWindow: "2M tokens",
206
222
  speed: "Moderate",
207
223
  quality: "Highest"
@@ -261,7 +277,7 @@ Contexto: 1M tokens`,
261
277
  [o["Glm-5_2"]]: {
262
278
  name: "Z.ai Glm-5",
263
279
  description: "Modelo open weights bem competente da Z.Ai. Apesar de gerar respostas mais longas o modelo é muito capaz.",
264
- icon: c,
280
+ icon: d,
265
281
  contextWindow: "200k tokens",
266
282
  speed: "Good",
267
283
  quality: "Highest"
@@ -269,7 +285,7 @@ Contexto: 1M tokens`,
269
285
  [o["Glm_4.7"]]: {
270
286
  name: "Z.ai Glm-4.7",
271
287
  description: "",
272
- icon: c,
288
+ icon: d,
273
289
  contextWindow: "200k tokens",
274
290
  speed: "Fast",
275
291
  quality: "High"
@@ -277,7 +293,7 @@ Contexto: 1M tokens`,
277
293
  [o["Glm_4.7_flash"]]: {
278
294
  name: "Z.ai Glm-4.7",
279
295
  description: "",
280
- icon: c,
296
+ icon: d,
281
297
  contextWindow: "200k tokens",
282
298
  speed: "Good",
283
299
  quality: "High"
@@ -286,7 +302,7 @@ Contexto: 1M tokens`,
286
302
  name: "DeepSeek Reasoner",
287
303
  description: `Modelo da DeepSeek com modo de raciocínio profundo (thinking mode).
288
304
  Ideal para tarefas complexas que se beneficiam de cadeia de pensamento extensa.`,
289
- icon: d,
305
+ icon: c,
290
306
  contextWindow: "128k tokens",
291
307
  speed: "Moderate",
292
308
  quality: "Highest"
@@ -304,7 +320,7 @@ Ideal para tarefas complexas que se beneficiam de cadeia de pensamento extensa.`
304
320
  name: "Kimi K2.6 Pro",
305
321
  description: `Modelo híbrido da Moonshot com modo de raciocínio (thinking) ativado por padrão.
306
322
  Melhor capacidade da família K2 para tarefas complexas.`,
307
- icon: d,
323
+ icon: c,
308
324
  contextWindow: "256k tokens",
309
325
  speed: "Moderate",
310
326
  quality: "Highest"
@@ -337,18 +353,18 @@ Melhor capacidade da família K2 para tarefas complexas.`,
337
353
  [o.uiToolShowcase]: {
338
354
  name: "UiToolShowcase - Testing",
339
355
  description: "Cria um stream de testes.",
340
- icon: C,
356
+ icon: v,
341
357
  contextWindow: "256k tokens",
342
358
  speed: "Fast",
343
359
  quality: "High"
344
360
  }
345
361
  };
346
- function P(t) {
362
+ function H(t) {
347
363
  if (!t) return "Unknown";
348
364
  const n = t.toLowerCase();
349
365
  return n.startsWith("gemini") || n.startsWith("live") ? "Google" : n.startsWith("claude") ? "Anthropic" : n.startsWith("gpt") ? "OpenAI" : n.startsWith("glm") ? "ZhiPu" : n.startsWith("kimi") ? "Moonshot" : n.startsWith("deepseek") ? "DeepSeek" : "Unknown";
350
366
  }
351
- i(P, "getModelVendor");
367
+ i(H, "getModelVendor");
352
368
  const V = /* @__PURE__ */ i((t, n) => {
353
369
  switch (t) {
354
370
  case "Connected":
@@ -430,12 +446,12 @@ function j() {
430
446
  i(j, "getEnvironmentInfo");
431
447
  export {
432
448
  Q as A,
433
- U as C,
449
+ F as C,
434
450
  _ as D,
435
451
  e as E,
436
- F as G,
437
- H as M,
438
- O as R,
452
+ b as G,
453
+ P as M,
454
+ q as R,
439
455
  L as S,
440
456
  N as a,
441
457
  B as b,
@@ -443,8 +459,8 @@ export {
443
459
  W as d,
444
460
  I as e,
445
461
  G as f,
446
- q as g,
447
- b as h,
462
+ O as g,
463
+ U as h,
448
464
  o as i,
449
465
  R as j,
450
466
  K as k,
@@ -452,11 +468,11 @@ export {
452
468
  V as m,
453
469
  D as n,
454
470
  j as o,
455
- P as p,
471
+ H as p,
456
472
  M as q,
457
473
  f as r,
458
474
  Z as s,
459
475
  p as t,
460
476
  $ as u
461
477
  };
462
- //# sourceMappingURL=environmentUtils-BaKw5_VD.js.map
478
+ //# sourceMappingURL=environmentUtils-CUVZ6Dq1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environmentUtils-CUVZ6Dq1.js","sources":["../src/utils/envUtils.ts","../src/models/enums.ts","../src/utils/envOverrides.ts","../src/utils/environmentUtils.ts"],"sourcesContent":["/**\n * Environment utilities for cross-platform (browser/Node.js) environment variable access\n */\n\n// Type-safe environment variable access\nexport function getEnvVar(key: string): string | undefined {\n // Check if we're in a browser environment with Vite\n if (typeof window !== 'undefined' && typeof import.meta !== 'undefined') {\n return (import.meta as any).env?.[key];\n }\n\n // Node.js environment\n return process.env[key];\n}\n\n// Check if we're running in a Vite environment (browser)\nexport function isViteEnvironment(): boolean {\n return typeof window !== 'undefined' && typeof import.meta !== 'undefined';\n}\n\n// Check if we're running in Node.js\nexport function isNodeEnvironment(): boolean {\n return typeof process !== 'undefined' && !!process.versions?.node;\n}\n\nexport function getRandomUUID(): string {\n return globalThis.crypto.randomUUID().replaceAll(\"-\", \"\");\n}\n\n// Default export for compatibility\nexport default {\n getEnvVar,\n isViteEnvironment,\n isNodeEnvironment\n};\n","import type { ConnectionState } from \"./connectionState\";\nimport type { Theme } from \"@mui/material/styles\";\nimport PsychologyIcon from '@mui/icons-material/Psychology';\nimport FlashOnIcon from '@mui/icons-material/FlashOn';\nimport RocketLaunchIcon from '@mui/icons-material/RocketLaunch';\nimport GeneratingTokensOutlined from '@mui/icons-material/GeneratingTokensOutlined';\nimport AutoFixHighIcon from '@mui/icons-material/AutoFixHigh';\nimport SortByAlphaOutlined from \"@mui/icons-material/SortByAlphaOutlined\";\nimport AllInclusiveIcon from '@mui/icons-material/AllInclusive';\n\nexport type ChatEventType = 'ChatEvent' | 'ChatResponse' | 'ChatRequest';\nexport const ChatEventType = {\n ChatEvent: 'ChatEvent',\n ChatResponse: 'ChatResponse',\n ChatRequest: 'ChatRequest',\n} as const;\n\nexport type RunMode = 'interactive' | 'autonomous';\nexport const RunMode = {\n Interactive: 'interactive',\n Autonomous: 'autonomous'\n} as const;\n\nexport type ChatAction = 'SendMessage' | 'Suspend' | 'Ping' | 'Close' | 'Other' | 'AnswerHumanTool';\nexport const ChatAction = {\n SendMessage: 'SendMessage',\n Other: 'Other',\n Suspend: 'Suspend',\n Close: 'Close',\n Ping: 'Ping',\n AnswerHumanTool: 'AnswerHumanTool'\n} as const;\n\n\nexport type EventType = 'partial_function_call' | 'tool_event' | 'function_call' | 'not_defined' | 'function_response' | 'function_client_output' | 'user_answer' | 'video' | 'thought' | 'inline_data' | 'file_data' | 'code_execution_result' | 'executable_code' | 'text' | 'other' | 'waiting' | 'suspended' | 'server_error';\nexport const EventType = {\n FunctionCall: 'function_call',\n PartialFunctionCall: 'partial_function_call',\n FunctionResponse: 'function_response',\n // Persisted, client-only sibling carrying a tool's ToolClientOutput payload, keyed by call id.\n // Folded into its call part on replay (never rendered on its own); the live turn delivers the\n // same payload inline on the StreamingFinalFunctionResultContent result event.\n FunctionClientOutput: 'function_client_output',\n // A user turn's rich UI representation (from UserUiContent). Carries functionDetails {name,args,\n // isUi,status:'Done'} so it routes through the uiTool dispatcher/registry exactly like an\n // agent-emitted UI tool — but authored by the user and rendered on the user side of the turn.\n UserAnswer: 'user_answer',\n Video: 'video',\n Thought: 'thought',\n InlineData: 'inline_data',\n FileData: 'file_data',\n CodeExecutionResult: 'code_execution_result',\n ExecutableCode: 'executable_code',\n Other: 'other',\n Text: 'text',\n ToolEvent: 'tool_event',\n ServerError: 'server_error',\n NotDefined: 'not_defined',\n Waiting: 'waiting',\n Suspended: 'suspended'\n} as const;\n\nexport const GetEventTypeFromPythonName = (name: string): EventType => {\n switch (name.trim().toLowerCase()) {\n case 'function_call':\n return EventType.FunctionCall;\n case 'function_response':\n return EventType.FunctionResponse;\n case 'executable_code':\n return EventType.ExecutableCode;\n case 'code_execution_result':\n return EventType.CodeExecutionResult;\n case 'video_metadata':\n return EventType.Video;\n case 'thought':\n return EventType.Thought;\n case 'inline_data':\n return EventType.InlineData;\n case 'file_data':\n return EventType.FileData;\n case 'text':\n return EventType.Text;\n case 'not_defined':\n return EventType.NotDefined;\n default:\n return EventType.Other;\n }\n}\n\nexport const GetEventTypeFromDotNetName = (name: string): EventType => {\n switch (name.toLocaleLowerCase()) {\n case 'functioncall':\n return EventType.FunctionCall;\n case 'functionresponse':\n return EventType.FunctionResponse;\n // Streaming \"final\" call/result carry their own $type on the wire — map them like their collapsed\n // KernelContent forms so the top-level event classifies as call/response, not NotDefined.\n case 'streamingfinalfunctioncallcontent':\n return EventType.FunctionCall;\n case 'streamingfinalfunctionresultcontent':\n return EventType.FunctionResponse;\n case 'text':\n return EventType.Text;\n case 'streamingtextcontent':\n return EventType.Text;\n case 'partialfunctioncall':\n return EventType.PartialFunctionCall;\n case 'streamingfunctioncallupdatecontent':\n return EventType.PartialFunctionCall;\n case 'streamingreasoningcontent':\n return EventType.Thought;\n case 'functionclientoutputcontent':\n return EventType.FunctionClientOutput;\n case 'streamingclientoutputcontent':\n return EventType.FunctionClientOutput;\n case 'partialText':\n return EventType.Text;\n case 'unknown':\n return EventType.Other;\n default:\n return EventType.NotDefined;\n }\n}\n\nexport const EventTypeDescriptions = {\n [EventType.FunctionCall]: 'Executing function call',\n [EventType.FunctionResponse]: 'Getting response',\n [EventType.Video]: 'Video',\n [EventType.Thought]: 'Thought',\n [EventType.InlineData]: 'InlineData',\n [EventType.FileData]: 'FileData',\n [EventType.CodeExecutionResult]: 'Coding...',\n [EventType.ExecutableCode]: 'Coding...',\n [EventType.Other]: 'Other',\n [EventType.Text]: 'Text',\n [EventType.NotDefined]: 'NotDefined'\n};\n\nexport type ResponseType = 'Regular' | 'Artifact';\nexport const ResponseType = {\n Regular: 'Regular',\n Artifact: 'Artifact',\n} as const;\n\nexport type AuthorType = 'User' | 'Agent' | \"System\";\nexport const AuthorType = {\n User: 'User',\n Agent: 'Agent',\n System: 'System'\n} as const;\n\nexport type ArtifactType = 'Dashboard' | 'Chart' | 'Code';\nexport const ArtifactType = {\n Dashboard: 'Dashboard',\n Chart: 'Chart',\n Code: 'Code',\n} as const;\n\n// Agent selection types\nexport type AgentType = 'BI_Envision_Agent' | 'BI_Master_Customer_Agent' | 'BI_Dedicated_Customer_Agent' | 'Unknown';\nexport const AgentType = {\n BI_Envision_Agent: 'BI_Envision_Agent',\n BI_Master_Customer_Agent: 'BI_Master_Customer_Agent',\n BI_Dedicated_Customer_Agent: 'BI_Dedicated_Customer_Agent',\n Unknown: 'Unknown',\n} as const;\n\n// Agent mode\nexport type AgentMode = 'Interactive' | 'Newsletter'\nexport const AgentMode = {\n Interactive: 'Interactive',\n Newsletter: 'Newsletter'\n} as const;\n\nexport const AgentConfig = {\n [AgentType.BI_Envision_Agent]: {\n name: 'Envision',\n description: 'Analisa dados de vendas globais\\ncom insights consolidados de todos os clientes\\ne métricas agregadas do mercado'\n },\n [AgentType.BI_Master_Customer_Agent]: {\n name: 'Clientes Master',\n description: 'Visão consolidada de todos os clientes\\ncom análises comparativas e benchmarks\\nentre diferentes organizações'\n },\n [AgentType.BI_Dedicated_Customer_Agent]: {\n name: 'Cliente Único',\n description: 'Foco em um cliente específico\\ncom análises detalhadas e personalizadas\\npara sua organização'\n },\n [AgentType.Unknown]: {\n name: 'Não definido',\n description: 'Não definido'\n }\n} as const;\n\nexport type SkillLevel = 'FAST' | 'BALANCED' | 'PRO' | 'LIVE'\nexport const SkillLevel = {\n 'FAST': 'FAST',\n 'BALANCED': 'BALANCED',\n 'PRO': 'PRO',\n 'LIVE': 'LIVE',\n} as const;\n\n// Model selection types\nexport type ModelType = 'claude-opus-4-6' | 'claude-sonnet-4-6' | 'gemini_3_1_flash_lite_preview' | 'gemini_3_5_flash' | 'gemini-3.1-pro-preview' | 'gpt-5.1' | 'glm-5' | 'glm-4.7' | 'glm-4.7-flash' | 'kimi-k2.6' | 'kimi-k2-turbo-preview' | 'gpt-5.2' | 'gpt-5.4' | 'gpt-5.4-mini' | 'deepseek-v4-pro' | 'deepseek-v4-flash' | 'wen3.6-plus' | 'qwen3.7-max' | 'uiToolShowcase';\nexport const ModelType = {\n 'gemini_3_5_flash': 'gemini-3.5-flash',\n 'gemini_3_1_pro_preview': 'gemini-3.1-pro-preview',\n 'gemini_3_1_flash_lite_preview': 'gemini-3.1-flash-lite-preview',\n 'Gemini_live_2_5_flash_preview': 'gemini-live-2.5-flash-lite',\n 'Claude_Sonnet_4_6': 'claude-sonnet-4-6',\n 'Claude_Opus_4_6': 'claude-opus-4-6',\n 'Gpt_5_1': 'gpt-5.1',\n 'Gpt_5_2': 'gpt-5.2',\n 'Gpt_5_5': 'gpt-5.5-2026-04-23',\n 'Gpt_5_4_mini': 'gpt-5.4-mini',\n 'Glm-5_2': 'Glm-5.2',\n 'Glm_4.7': 'Glm-4.7',\n 'Glm_4.7_flash': 'Glm-4.7-Flash',\n 'Kimi_K26': 'kimi-k2.6',\n 'Kimi_Turbo': 'kimi-k2-turbo-preview',\n 'DeepSeek_v4_Pro': 'deepseek-v4-pro',\n 'DeepSeek_v4-Flash': 'deepseek-v4-flash',\n 'Qwen3_6-plus': 'qwen3.6-plus',\n 'Qwen3_7-max': 'qwen3.7-max',\n 'CorporateTravelDashboard': \"CorporateTravelDashboard\",\n 'ShowGuideDemo': \"ShowGuideDemo\",\n 'uiToolShowcase': 'uiToolShowcase',\n 'AUTO': 'AUTO'\n} as const;\n\nexport const ModelConfig = {\n [ModelType.Claude_Opus_4_6]: {\n name: 'Claude Opus 4.6',\n description: 'Modelo mais avançado da anthropic, no entanto, não tão rápido como o Sonnet',\n icon: AllInclusiveIcon,\n contextWindow: '1M tokens',\n speed: 'Moderate',\n quality: 'Highest'\n },\n [ModelType.Claude_Sonnet_4_6]: {\n name: 'Claude Sonnet 4.6',\n description: 'Ótima relação velocidade/qualidade',\n icon: AllInclusiveIcon,\n contextWindow: '1M tokens',\n speed: 'Fast',\n quality: 'High'\n },\n [ModelType.gemini_3_1_pro_preview]: {\n name: 'Gemini 3.1 Pro',\n description: 'Modelo mais avançado\\nMelhor qualidade para tarefas complexas\\nContexto: 2M tokens',\n icon: PsychologyIcon,\n contextWindow: '2M tokens',\n speed: 'Moderate',\n quality: 'Highest'\n },\n [ModelType.gemini_3_5_flash]: {\n name: 'Gemini 3.5 Flash',\n description: 'Equilibrio ideal entre velocidade e qualidade\\nÓtimo para a maioria das tarefas\\nContexto: 1M tokens',\n icon: FlashOnIcon,\n contextWindow: '1M tokens',\n speed: 'Fast',\n quality: 'High'\n },\n [ModelType.gemini_3_1_flash_lite_preview]: {\n name: 'Gemini 3 Lite Flash',\n description: 'NOVO: Equilibrio ideal entre velocidade e qualidade\\nÓtimo para a maioria das tarefas\\nContexto: 1M tokens',\n icon: FlashOnIcon,\n contextWindow: '1M tokens',\n speed: 'Fast',\n quality: 'High'\n },\n\n [ModelType.Gpt_5_1]: {\n name: 'Chat GPT 5.1',\n description: 'Chat GPT 5.1',\n icon: RocketLaunchIcon,\n contextWindow: '200k tokens',\n speed: 'Good',\n quality: 'High'\n },\n [ModelType.Gpt_5_2]: {\n name: 'Chat GPT 5.2',\n description: 'Chat GPT 5.2',\n icon: RocketLaunchIcon,\n contextWindow: '200k tokens',\n speed: 'Good',\n quality: 'Highest'\n },\n [ModelType.Gpt_5_5]: {\n name: 'Chat GPT 5.5',\n description: 'A melhor inteligência em escala para fluxos de trabalho de agentes, codificação e profissionais.',\n icon: RocketLaunchIcon,\n contextWindow: '200k tokens',\n speed: 'Good',\n quality: 'Highest'\n },\n [ModelType.Gpt_5_4_mini]: {\n name: 'Chat GPT 5.4 Mini',\n description: 'Modelo compacto mais robusto da OpenAi até momento para codificação, uso de computadores e subagentes.',\n icon: RocketLaunchIcon,\n contextWindow: '200k tokens',\n speed: 'Fast',\n quality: 'Highest'\n },\n [ModelType[\"Glm-5_2\"]]: {\n name: 'Z.ai Glm-5',\n description: 'Modelo open weights bem competente da Z.Ai. Apesar de gerar respostas mais longas o modelo é muito capaz.',\n icon: SortByAlphaOutlined,\n contextWindow: '200k tokens',\n speed: 'Good',\n quality: 'Highest'\n },\n [ModelType[\"Glm_4.7\"]]: {\n name: 'Z.ai Glm-4.7',\n description: '',\n icon: SortByAlphaOutlined,\n contextWindow: '200k tokens',\n speed: 'Fast',\n quality: 'High'\n },\n [ModelType[\"Glm_4.7_flash\"]]: {\n name: 'Z.ai Glm-4.7',\n description: '',\n icon: SortByAlphaOutlined,\n contextWindow: '200k tokens',\n speed: 'Good',\n quality: 'High'\n },\n [ModelType.DeepSeek_v4_Pro]: {\n name: 'DeepSeek Reasoner',\n description: 'Modelo da DeepSeek com modo de raciocínio profundo (thinking mode).\\nIdeal para tarefas complexas que se beneficiam de cadeia de pensamento extensa.',\n icon: PsychologyIcon,\n contextWindow: '128k tokens',\n speed: 'Moderate',\n quality: 'Highest'\n },\n [ModelType[\"DeepSeek_v4-Flash\"]]: {\n name: 'DeepSeek Chat',\n description: 'Modelo de chat rápido da DeepSeek, sem modo de raciocínio.\\nÓtimo equilíbrio entre velocidade e qualidade para uso geral.',\n icon: FlashOnIcon,\n contextWindow: '128k tokens',\n speed: 'Fast',\n quality: 'High'\n },\n [ModelType.Kimi_K26]: {\n name: 'Kimi K2.6 Pro',\n description: 'Modelo híbrido da Moonshot com modo de raciocínio (thinking) ativado por padrão.\\nMelhor capacidade da família K2 para tarefas complexas.',\n icon: PsychologyIcon,\n contextWindow: '256k tokens',\n speed: 'Moderate',\n quality: 'Highest'\n },\n [ModelType.Kimi_Turbo]: {\n name: 'Kimi K2 Turbo',\n description: 'Variante rápida (não-thinking) da Moonshot.\\nÓtima relação velocidade/qualidade para uso geral.',\n icon: FlashOnIcon,\n contextWindow: '256k tokens',\n speed: 'Fast',\n quality: 'High'\n },\n [ModelType[\"Qwen3_6-plus\"]]: {\n name: 'Qwen 3.6 Plus - Alibaba',\n description: 'Multimodal nativo, context window - 1 milhão de tokens, codificação agentiva',\n icon: FlashOnIcon,\n contextWindow: '1 milhão',\n speed: 'Moderate',\n quality: 'Highest'\n },\n [ModelType[\"Qwen3_7-max\"]]: {\n name: 'Qwen 3.7 Max - Alibaba',\n description: 'Multimodal nativo, context window - 1 milhão de tokens, codificação agentiva',\n icon: FlashOnIcon,\n contextWindow: '1 milhão',\n speed: 'Moderate',\n quality: 'Highest'\n },\n [ModelType.uiToolShowcase]: {\n name: 'UiToolShowcase - Testing',\n description: 'Cria um stream de testes.',\n icon: GeneratingTokensOutlined,\n contextWindow: '256k tokens',\n speed: 'Fast',\n quality: 'High'\n }\n\n} as const;\n\nexport type ModelVendor = 'Google' | 'Anthropic' | 'OpenAI' | 'ZhiPu' | 'Moonshot' | 'DeepSeek' | 'Unknown';\n\nexport function getModelVendor(modelId: string | undefined): ModelVendor {\n if (!modelId) return 'Unknown';\n const id = modelId.toLowerCase();\n if (id.startsWith('gemini') || id.startsWith('live')) return 'Google';\n if (id.startsWith('claude')) return 'Anthropic';\n if (id.startsWith('gpt')) return 'OpenAI';\n if (id.startsWith('glm')) return 'ZhiPu';\n if (id.startsWith('kimi')) return 'Moonshot';\n if (id.startsWith('deepseek')) return 'DeepSeek';\n if (id === 'auto') return 'Unknown';\n return 'Unknown';\n}\n\nexport const getConnectionStateColor = (connectionState: ConnectionState, theme: Theme) => {\n switch (connectionState) {\n case 'Connected':\n return theme.palette.primary.light;\n case 'Paused':\n return theme.palette.warning.light;\n case 'Disconnected':\n return theme.palette.text.secondary;\n case 'Connecting':\n return theme.palette.success.dark;\n case 'Unknown':\n return theme.palette.text.secondary;\n default:\n return theme.palette.text.secondary;\n }\n};","/**\n * Deployment-URL overrides (e.g. a staging environment), resolved per environment:\n *\n * - Node (SSR / tests): real environment variables, read at call time.\n * - Browser: `process` doesn't exist. The HOST app's Vite build statically\n * replaces these exact `process.env.X` member expressions via `define`\n * (see envision-abi dashboard-app vite.config.ts — the same channel it\n * already uses for `process.env.MODE`). Without such a define the read\n * throws on the bare `process` global → caught → no override.\n *\n * NOTE: `import.meta.env.VITE_*` is NOT usable here — this package builds in\n * Vite lib mode, which inlines `import.meta.env` at PACKAGE build time, so a\n * consumer's VITE_* values can never reach the published dist. `process.env.X`\n * member expressions survive the lib build, which is what makes the consumer\n * `define` channel work.\n *\n * The reads must stay literal static member accesses (no dynamic key lookup),\n * or the consumer's define replacement won't match them.\n */\n\n/** Base URL of the .NET agent server (overrides `https://agent.tripapi.com.br`). */\nexport function agentBaseUrlOverride(): string | undefined {\n try {\n return process.env.AGENT_BASE_URL || undefined;\n } catch {\n return undefined;\n }\n}\n\n/** Public base URL of the dashboard client app (overrides `https://client-agent.tripapi.com.br`). */\nexport function clientBaseUrlOverride(): string | undefined {\n try {\n return process.env.CLIENT_BASE_URL || undefined;\n } catch {\n return undefined;\n }\n}\n","/**\n * Environment detection and URL resolution utilities\n * Provides different base URLs for client vs server-side execution\n */\n\nimport { clientBaseUrlOverride } from './envOverrides';\n\nconst PROD_CLIENT_BASE_URL = \"https://client-agent.tripapi.com.br\";\n\n// Static server configuration\nexport const DEV_SERVER_CONFIG = {\n // When running on server-side, use localhost with the port\n SERVER_BASE_URL: 'http://localhost:3000',\n // When running on server-side, use localhost with the port\n CLIENT_BASE_URL: 'http://localhost:5800',\n\n CUSTOM_HEADERS: {}\n} as const;\n\nexport const ANALYTICS_AGENT_NAME = \"analytics_agent\"\n\n/**\n * Detects if code is running in browser vs server environment\n */\nexport function isBrowser(): boolean {\n return typeof window !== 'undefined' && typeof window.document !== 'undefined';\n}\n\n/**\n * Detects if code is running in Node.js server environment\n */\nexport function isServer(): boolean {\n return typeof process !== 'undefined' && process.versions?.node !== undefined;\n}\n\n/**\n * Gets the appropriate base URL for API calls\n * - Browser: Returns empty string (uses relative URLs)\n * - Server: Returns full localhost URL\n */\n\nexport function getServerBaseAbUrl(): string {\n if (isBrowser()) {\n return \"\";\n }\n\n if (isServer()) {\n // Explicit env override (e.g. staging) wins; else prod default / dev localhost\n const baseUrl = clientBaseUrlOverride() ?? (process.env.MODE == 'production' ? PROD_CLIENT_BASE_URL : DEV_SERVER_CONFIG.SERVER_BASE_URL);\n\n return baseUrl;\n }\n\n throw new Error(\"Could not resolve server URL\")\n}\n\nexport function getServerBaseUrl(): string {\n if (isBrowser()) {\n if (window.location.host.indexOf(\"localhost\") > -1 || window.location.host.indexOf(\"host.docker.internal\") > -1)\n return DEV_SERVER_CONFIG.SERVER_BASE_URL\n else\n return \"\";\n }\n\n if (isServer()) {\n // Explicit env override (e.g. staging) wins; else prod default / dev localhost\n const baseUrl = clientBaseUrlOverride() ?? (process.env.MODE == 'production' ? PROD_CLIENT_BASE_URL : DEV_SERVER_CONFIG.SERVER_BASE_URL);\n\n return baseUrl;\n }\n\n throw new Error(\"Could not resolve server URL\")\n}\n\nexport function getServerClientBaseUrl(): string {\n return clientBaseUrlOverride() ?? (process.env.MODE !== 'production' ? `http://localhost:5800` : PROD_CLIENT_BASE_URL)\n}\n\n// The library no longer ships URL helpers — hosts pass `serverBaseUrl` to\n// AiChatProvider explicitly. This stub remains only for legacy call sites\n// inside the carved code; remove once those are migrated.\nexport function getAgentServerBaseUrl(): string {\n return \"\";\n}\n\n/**\n * Resolves a relative API path to full URL when needed\n * @param relativePath - API path like \"/api/sessions\"\n * @returns Full URL for server, relative path for browser\n */\nexport function resolveApiUrl(relativePath: string): string {\n const baseUrl = getServerBaseUrl();\n\n // Ensure relativePath starts with /\n const cleanPath = relativePath.startsWith('/') ? relativePath : `/${relativePath}`;\n\n return `${baseUrl}${cleanPath}`;\n}\n\n/**\n * Gets environment info for debugging\n */\nexport function getEnvironmentInfo() {\n return {\n isBrowser: isBrowser(),\n isServer: isServer(),\n baseUrl: getServerBaseUrl(),\n userAgent: isBrowser() ? navigator.userAgent : 'Node.js',\n nodeVersion: isServer() ? process.version : 'N/A'\n };\n}\n"],"names":["getEnvVar","key","__vite_import_meta_env__","__name","getRandomUUID","ChatEventType","RunMode","ChatAction","EventType","GetEventTypeFromPythonName","name","GetEventTypeFromDotNetName","EventTypeDescriptions","ResponseType","AuthorType","ArtifactType","AgentType","AgentMode","AgentConfig","SkillLevel","ModelType","ModelConfig","AllInclusiveIcon","PsychologyIcon","FlashOnIcon","RocketLaunchIcon","SortByAlphaOutlined","GeneratingTokensOutlined","getModelVendor","modelId","id","getConnectionStateColor","connectionState","theme","agentBaseUrlOverride","clientBaseUrlOverride","PROD_CLIENT_BASE_URL","DEV_SERVER_CONFIG","ANALYTICS_AGENT_NAME","isBrowser","isServer","_a","getServerBaseUrl","getServerClientBaseUrl","getAgentServerBaseUrl","resolveApiUrl","relativePath","baseUrl","cleanPath","getEnvironmentInfo"],"mappings":";;;;;;;;;AAKO,SAASA,EAAUC,GAAiC;AAEvD,SAAI,OAAO,SAAW,OAAe,OAAO,cAAgB,MAChDC,KAAA,gBAAAA,EAA0BD,KAI/B,QAAQ,IAAIA,CAAG;AAC1B;AARgBE,EAAAH,GAAA;AAoBT,SAASI,IAAwB;AACpC,SAAO,WAAW,OAAO,WAAA,EAAa,WAAW,KAAK,EAAE;AAC5D;AAFgBD,EAAAC,GAAA;ACdT,MAAMC,IAAgB;AAAA,EAC3B,WAAW;AAAA,EACX,cAAc;AAAA,EACd,aAAa;AACf,GAGaC,IAAU;AAAA,EACrB,aAAa;AAAA,EACb,YAAY;AACd,GAGaC,IAAa;AAAA,EACxB,aAAa;AAAA,EACb,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,iBAAiB;AACnB,GAIaC,IAAY;AAAA,EACvB,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,kBAAkB;AAAA;AAAA;AAAA;AAAA,EAIlB,sBAAsB;AAAA;AAAA;AAAA;AAAA,EAItB,YAAY;AAAA,EACZ,OAAO;AAAA,EACP,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,qBAAqB;AAAA,EACrB,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,WAAW;AAAA,EACX,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,WAAW;AACb,GAEaC,IAA6B,gBAAAN,EAAA,CAACO,MAA4B;AACrE,UAAQA,EAAK,KAAA,EAAO,YAAA,GAAY;AAAA,IAC9B,KAAK;AACH,aAAOF,EAAU;AAAA,IACnB,KAAK;AACH,aAAOA,EAAU;AAAA,IACnB,KAAK;AACH,aAAOA,EAAU;AAAA,IACnB,KAAK;AACH,aAAOA,EAAU;AAAA,IACnB,KAA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jC,EAAAwC,GAAA;AAOT,SAASC,IAAgC;AAC5C,SAAO;AACX;AAFgBzC,EAAAyC,GAAA;AAST,SAASC,EAAcC,GAA8B;AACxD,QAAMC,IAAUL,EAAA,GAGVM,IAAYF,EAAa,WAAW,GAAG,IAAIA,IAAe,IAAIA,CAAY;AAEhF,SAAO,GAAGC,CAAO,GAAGC,CAAS;AACjC;AAPgB7C,EAAA0C,GAAA;AAYT,SAASI,IAAqB;AACjC,SAAO;AAAA,IACH,WAAWV,EAAA;AAAA,IACX,UAAUC,EAAA;AAAA,IACV,SAASE,EAAA;AAAA,IACT,WAAWH,EAAA,IAAc,UAAU,YAAY;AAAA,IAC/C,aAAaC,EAAA,IAAa,QAAQ,UAAU;AAAA,EAAA;AAEpD;AARgBrC,EAAA8C,GAAA;"}
package/dist/hooks.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { u as a, a as t, b as o, c as r } from "./useContainerWidth-0EA-kdzl.js";
2
- import { u } from "./useChatSessions-C1rHmRuS.js";
2
+ import { u } from "./useChatSessions-DsHPo0GV.js";
3
3
  export {
4
4
  u as useChatSessions,
5
5
  a as useContainerRectangle,