@aigentyc/chat-sdk 0.5.5 → 0.7.0

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.
Files changed (52) hide show
  1. package/context7.json +1 -1
  2. package/dist/{ChatInterface-Bo0dU48x.d.cts → ChatInterface-CJwumV6Z.d.cts} +1 -1
  3. package/dist/{ChatInterface-D5tY6WT1.d.ts → ChatInterface-jIlVCXyV.d.ts} +1 -1
  4. package/dist/{SlotsContext-hUp2jze9.d.ts → SlotsContext-BFyBOPC2.d.ts} +1 -1
  5. package/dist/{SlotsContext-p_bTEjGT.d.cts → SlotsContext-CvGHgMRZ.d.cts} +1 -1
  6. package/dist/ai-elements.cjs +2 -2
  7. package/dist/ai-elements.cjs.map +1 -1
  8. package/dist/ai-elements.js +2 -2
  9. package/dist/ai-elements.js.map +1 -1
  10. package/dist/{chunk-G63CLUHC.js → chunk-2HJZDMY2.js} +134 -9
  11. package/dist/chunk-2HJZDMY2.js.map +1 -0
  12. package/dist/{chunk-ZPOCKCBF.js → chunk-4DC55YI3.js} +3 -3
  13. package/dist/{chunk-ZPOCKCBF.js.map → chunk-4DC55YI3.js.map} +1 -1
  14. package/dist/{chunk-7TMQBROA.js → chunk-7N5ELRVH.js} +4 -4
  15. package/dist/{chunk-7TMQBROA.js.map → chunk-7N5ELRVH.js.map} +1 -1
  16. package/dist/{chunk-AQTN4QLR.cjs → chunk-MN7RYGXK.cjs} +6 -6
  17. package/dist/{chunk-AQTN4QLR.cjs.map → chunk-MN7RYGXK.cjs.map} +1 -1
  18. package/dist/{chunk-7MHR4BSJ.cjs → chunk-SOU2OES4.cjs} +21 -21
  19. package/dist/{chunk-7MHR4BSJ.cjs.map → chunk-SOU2OES4.cjs.map} +1 -1
  20. package/dist/{chunk-JJRLHXHZ.cjs → chunk-XV7N7UXF.cjs} +133 -8
  21. package/dist/chunk-XV7N7UXF.cjs.map +1 -0
  22. package/dist/components.cjs +15 -15
  23. package/dist/components.d.cts +3 -3
  24. package/dist/components.d.ts +3 -3
  25. package/dist/components.js +4 -4
  26. package/dist/core.d.cts +2 -2
  27. package/dist/core.d.ts +2 -2
  28. package/dist/hooks.cjs +4 -4
  29. package/dist/hooks.d.cts +2 -2
  30. package/dist/hooks.d.ts +2 -2
  31. package/dist/hooks.js +1 -1
  32. package/dist/i18n.d.cts +1 -1
  33. package/dist/i18n.d.ts +1 -1
  34. package/dist/index.cjs +25 -23
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.cts +5 -5
  37. package/dist/index.d.ts +5 -5
  38. package/dist/index.js +8 -6
  39. package/dist/index.js.map +1 -1
  40. package/dist/llms-full.txt +9 -9
  41. package/dist/styles.css +1 -1
  42. package/dist/theme.d.cts +1 -1
  43. package/dist/theme.d.ts +1 -1
  44. package/dist/tools.cjs +5 -5
  45. package/dist/tools.d.cts +2 -2
  46. package/dist/tools.d.ts +2 -2
  47. package/dist/tools.js +2 -2
  48. package/dist/{types-DRa1zFlN.d.ts → types-BxvFxOg1.d.cts} +9 -0
  49. package/dist/{types-DRa1zFlN.d.cts → types-BxvFxOg1.d.ts} +9 -0
  50. package/package.json +5 -5
  51. package/dist/chunk-G63CLUHC.js.map +0 -1
  52. package/dist/chunk-JJRLHXHZ.cjs.map +0 -1
package/context7.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "url": "https://context7.com/llmstxt/cdn_jsdelivr_net_npm_aigentyc_chat-sdk_0_5_5_llms_txt",
2
+ "url": "https://context7.com/llmstxt/cdn_jsdelivr_net_npm_aigentyc_chat-sdk_0_7_0_llms_txt",
3
3
  "public_key": "pk_dHiyF4hGXkgbb1jdrT7TU"
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Q as QuestionConfig } from './types-DRa1zFlN.cjs';
2
+ import { Q as QuestionConfig } from './types-BxvFxOg1.cjs';
3
3
 
4
4
  /**
5
5
  * How wide the desktop chat panel is, and where the panels beside it go.
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Q as QuestionConfig } from './types-DRa1zFlN.js';
2
+ import { Q as QuestionConfig } from './types-BxvFxOg1.js';
3
3
 
4
4
  /**
5
5
  * How wide the desktop chat panel is, and where the panels beside it go.
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { RefObject, ComponentType } from 'react';
3
- import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-DRa1zFlN.js';
3
+ import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-BxvFxOg1.js';
4
4
 
5
5
  type ChatStatus$1 = "idle" | "streaming" | "error";
6
6
  interface ActiveTool$1 {
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { RefObject, ComponentType } from 'react';
3
- import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-DRa1zFlN.cjs';
3
+ import { h as LiveChatState, g as LiveChatMessage, b as ChatProviderProps, f as ChatMessage, c as ChatAttachmentInput, d as ChatConfig, e as ChatEventCallbacks } from './types-BxvFxOg1.cjs';
4
4
 
5
5
  type ChatStatus$1 = "idle" | "streaming" | "error";
6
6
  interface ActiveTool$1 {
@@ -1424,7 +1424,7 @@ var ContextReasoningUsage = ({
1424
1424
  ...props
1425
1425
  }) => {
1426
1426
  const { usage, modelId } = useContextValue();
1427
- const reasoningTokens = usage?.reasoningTokens ?? 0;
1427
+ const reasoningTokens = usage?.outputTokenDetails?.reasoningTokens ?? 0;
1428
1428
  if (children) {
1429
1429
  return children;
1430
1430
  }
@@ -1457,7 +1457,7 @@ var ContextCacheUsage = ({
1457
1457
  ...props
1458
1458
  }) => {
1459
1459
  const { usage, modelId } = useContextValue();
1460
- const cacheTokens = usage?.cachedInputTokens ?? 0;
1460
+ const cacheTokens = usage?.inputTokenDetails?.cacheReadTokens ?? 0;
1461
1461
  if (children) {
1462
1462
  return children;
1463
1463
  }