@iblai/iblai-js 2.11.0 → 2.11.1
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.
|
@@ -2132,7 +2132,7 @@ var analyticsAnalyticsOverview$3 = {
|
|
|
2132
2132
|
topicsChartDescription: "The most discussed topics, ranked by how many messages each one generated.",
|
|
2133
2133
|
activeUsersChartDescription: "Unique active users per day, showing how engagement changes over time.",
|
|
2134
2134
|
llmSpend: "LLM spend",
|
|
2135
|
-
llmSpendDescription: "Raw cost of every traced LLM call in the selected period, from the trace store. Billing totals live on the Cost
|
|
2135
|
+
llmSpendDescription: "Raw cost of every traced LLM call in the selected period, from the trace store. Billing totals live on the Cost tab.",
|
|
2136
2136
|
allTopics: "All topics",
|
|
2137
2137
|
topicsRankedFooter: "{shown} of {total} topics · ranked by message volume"
|
|
2138
2138
|
};
|
|
@@ -8089,7 +8089,7 @@ var analyticsChartCard$3 = {
|
|
|
8089
8089
|
adjustRangeHint: "This card only — the page range stays where it is."
|
|
8090
8090
|
};
|
|
8091
8091
|
var analyticsCostTabs$3 = {
|
|
8092
|
-
ariaLabel: "Cost
|
|
8092
|
+
ariaLabel: "Cost sections",
|
|
8093
8093
|
spend: "Spend",
|
|
8094
8094
|
usage: "Usage & latency",
|
|
8095
8095
|
traces: "Traces"
|
|
@@ -9280,7 +9280,7 @@ var analyticsAnalyticsOverview$2 = {
|
|
|
9280
9280
|
topicsChartDescription: "Les sujets les plus abordés, classés selon le nombre de messages générés.",
|
|
9281
9281
|
activeUsersChartDescription: "Utilisateurs actifs uniques par jour, pour suivre l’évolution de l’engagement.",
|
|
9282
9282
|
llmSpend: "Dépenses LLM",
|
|
9283
|
-
llmSpendDescription: "Coût brut de chaque appel LLM tracé sur la période sélectionnée, issu du magasin de traces. Les totaux de facturation sont dans l'onglet Coûts
|
|
9283
|
+
llmSpendDescription: "Coût brut de chaque appel LLM tracé sur la période sélectionnée, issu du magasin de traces. Les totaux de facturation sont dans l'onglet Coûts.",
|
|
9284
9284
|
allTopics: "Tous les sujets",
|
|
9285
9285
|
topicsRankedFooter: "{shown} sur {total} sujets · classés par volume de messages"
|
|
9286
9286
|
};
|
|
@@ -15237,7 +15237,7 @@ var analyticsChartCard$2 = {
|
|
|
15237
15237
|
adjustRangeHint: "Cette carte uniquement — la plage de la page reste inchangée."
|
|
15238
15238
|
};
|
|
15239
15239
|
var analyticsCostTabs$2 = {
|
|
15240
|
-
ariaLabel: "Sections Coûts
|
|
15240
|
+
ariaLabel: "Sections Coûts",
|
|
15241
15241
|
spend: "Dépenses",
|
|
15242
15242
|
usage: "Utilisation et latence",
|
|
15243
15243
|
traces: "Traces"
|
|
@@ -16428,7 +16428,7 @@ var analyticsAnalyticsOverview$1 = {
|
|
|
16428
16428
|
topicsChartDescription: "Los temas más tratados, ordenados por la cantidad de mensajes que generó cada uno.",
|
|
16429
16429
|
activeUsersChartDescription: "Usuarios activos únicos por día, para ver cómo cambia la participación con el tiempo.",
|
|
16430
16430
|
llmSpend: "Gasto LLM",
|
|
16431
|
-
llmSpendDescription: "Costo bruto de cada llamada LLM trazada en el período seleccionado, del almacén de trazas. Los totales de facturación están en la pestaña Costos
|
|
16431
|
+
llmSpendDescription: "Costo bruto de cada llamada LLM trazada en el período seleccionado, del almacén de trazas. Los totales de facturación están en la pestaña Costos.",
|
|
16432
16432
|
allTopics: "Todos los temas",
|
|
16433
16433
|
topicsRankedFooter: "{shown} de {total} temas · ordenados por volumen de mensajes"
|
|
16434
16434
|
};
|
|
@@ -22385,7 +22385,7 @@ var analyticsChartCard$1 = {
|
|
|
22385
22385
|
adjustRangeHint: "Solo esta tarjeta — el rango de la página no cambia."
|
|
22386
22386
|
};
|
|
22387
22387
|
var analyticsCostTabs$1 = {
|
|
22388
|
-
ariaLabel: "Secciones de Costos
|
|
22388
|
+
ariaLabel: "Secciones de Costos",
|
|
22389
22389
|
spend: "Gasto",
|
|
22390
22390
|
usage: "Uso y latencia",
|
|
22391
22391
|
traces: "Trazas"
|
|
@@ -23576,7 +23576,7 @@ var analyticsAnalyticsOverview = {
|
|
|
23576
23576
|
topicsChartDescription: "讨论最多的主题,按各自产生的消息数排序。",
|
|
23577
23577
|
activeUsersChartDescription: "每日独立活跃用户数,展示参与度随时间的变化。",
|
|
23578
23578
|
llmSpend: "LLM 支出",
|
|
23579
|
-
llmSpendDescription: "所选时段内每次被追踪的 LLM
|
|
23579
|
+
llmSpendDescription: "所选时段内每次被追踪的 LLM 调用的原始成本,来自追踪存储。计费总额在成本页。",
|
|
23580
23580
|
allTopics: "所有主题",
|
|
23581
23581
|
topicsRankedFooter: "共 {total} 个主题,显示 {shown} 个 · 按消息量排序"
|
|
23582
23582
|
};
|
|
@@ -29533,7 +29533,7 @@ var analyticsChartCard = {
|
|
|
29533
29533
|
adjustRangeHint: "仅此卡片 — 页面范围保持不变。"
|
|
29534
29534
|
};
|
|
29535
29535
|
var analyticsCostTabs = {
|
|
29536
|
-
ariaLabel: "
|
|
29536
|
+
ariaLabel: "成本分区",
|
|
29537
29537
|
spend: "支出",
|
|
29538
29538
|
usage: "用量与延迟",
|
|
29539
29539
|
traces: "追踪"
|
|
@@ -229549,7 +229549,7 @@ const useOverview = ({ tenantKey, mentorId, usergroupIds, }) => {
|
|
|
229549
229549
|
...((usergroupIds === null || usergroupIds === void 0 ? void 0 : usergroupIds.length) ? { usergroup_ids: usergroupIds } : {}),
|
|
229550
229550
|
});
|
|
229551
229551
|
// LLM spend joins the KPI row so cost is visible before anyone opens the
|
|
229552
|
-
// Cost
|
|
229552
|
+
// Cost tab. It follows the page range; unavailable renders as an
|
|
229553
229553
|
// em-dash, never $0.00.
|
|
229554
229554
|
const globalFilters = (_o = useAnalyticsGlobalFilters()) === null || _o === void 0 ? void 0 : _o.filters;
|
|
229555
229555
|
const { data: llmSpendData, isLoading: isLoadingLlmSpend, error: llmSpendError, } = useGetLlmUsageMetricsQuery({
|
|
@@ -229959,7 +229959,7 @@ const defaultTabs = [
|
|
|
229959
229959
|
},
|
|
229960
229960
|
{
|
|
229961
229961
|
// The unified cost surface: ClickHouse billing + Langfuse LLM usage.
|
|
229962
|
-
label: 'Cost
|
|
229962
|
+
label: 'Cost',
|
|
229963
229963
|
value: 'financial',
|
|
229964
229964
|
},
|
|
229965
229965
|
{
|
|
@@ -230507,7 +230507,7 @@ const byProvider = (models) => {
|
|
|
230507
230507
|
.sort((a, b) => b.total_cost - a.total_cost);
|
|
230508
230508
|
};
|
|
230509
230509
|
/**
|
|
230510
|
-
* Spend view-model for the Cost
|
|
230510
|
+
* Spend view-model for the Cost tab, backed by the ClickHouse
|
|
230511
230511
|
* `/api/ai-analytics/` cost endpoints (KPIs, per-model, per-user) and the
|
|
230512
230512
|
* Langfuse `llm-usage` metrics resource (the daily spend series). The
|
|
230513
230513
|
* deprecated `/api/analytics/financial/` family is gone; the return shape is
|
|
@@ -230716,7 +230716,7 @@ const formatCompactNumber = (value) => {
|
|
|
230716
230716
|
const formatLatencySeconds = (value) => `${value.toFixed(2)}s`;
|
|
230717
230717
|
const UNAVAILABLE = '—';
|
|
230718
230718
|
/**
|
|
230719
|
-
* The Langfuse side of the Cost
|
|
230719
|
+
* The Langfuse side of the Cost tab: tokens, calls, latency percentiles
|
|
230720
230720
|
* and spend breakdowns per service and model. Ranked per-user/per-session
|
|
230721
230721
|
* totals live on the Spend sub-tab (ClickHouse) — Langfuse cannot group by
|
|
230722
230722
|
* those dimensions.
|
|
@@ -230788,7 +230788,7 @@ function useDebouncedValue(value, delay) {
|
|
|
230788
230788
|
}
|
|
230789
230789
|
/**
|
|
230790
230790
|
* Tenant user picker for the analytics filter rows — memory, transcripts and
|
|
230791
|
-
* the Cost
|
|
230791
|
+
* the Cost traces list.
|
|
230792
230792
|
* Both endpoints behind it do the searching, so the dropdown only pages in the
|
|
230793
230793
|
* first {@link USERS_PAGE_SIZE} matches for whatever is typed rather than
|
|
230794
230794
|
* filtering client-side.
|
|
@@ -231105,7 +231105,7 @@ function SpendTab({ tenantKey, mentorId: currentMentorId, userId, onOpenUserTrac
|
|
|
231105
231105
|
}) }), jsxs("div", { className: "flex items-center space-x-2", children: [jsxs(Button$1, { variant: "outline", size: "sm", className: "h-8 p-2 !w-auto !inline-flex bg-transparent", onClick: handleFirstPage, disabled: costPerUserPage === 1, children: [jsx("span", { className: "sr-only", children: t('analyticsAnalyticsFinancialStats.goToFirstPage') }), jsx(ChevronsLeft, { className: "h-4 w-4" })] }), jsxs(Button$1, { variant: "outline", size: "sm", className: "h-8 p-2 !w-auto !inline-flex bg-transparent", onClick: handlePreviousPage, disabled: costPerUserPage === 1, children: [jsx("span", { className: "sr-only", children: t('analyticsAnalyticsFinancialStats.goToPreviousPage') }), jsx(ChevronLeft, { className: "h-4 w-4" })] }), generatePageNumbers().map((page, index) => (jsx(React__default.Fragment, { children: page === '...' ? (jsx("span", { className: "px-2 text-gray-500", children: "..." })) : (jsx(Button$1, { variant: costPerUserPage === page ? 'default' : 'outline', size: "sm", className: `h-8 p-3 !w-auto !inline-flex ${costPerUserPage === page ? 'bg-blue-50 text-blue-600' : 'bg-transparent'}`, onClick: () => setCostPerUserPage(page), children: page })) }, index))), jsxs(Button$1, { variant: "outline", size: "sm", className: "h-8 p-2 !w-auto !inline-flex bg-transparent", onClick: handleNextPage, disabled: costPerUserPage === detailedCostPerUserData.total_pages, children: [jsx("span", { className: "sr-only", children: t('analyticsAnalyticsFinancialStats.goToNextPage') }), jsx(ChevronRight, { className: "h-4 w-4" })] }), jsxs(Button$1, { variant: "outline", size: "sm", className: "h-8 p-2 !w-auto !inline-flex bg-transparent", onClick: handleLastPage, disabled: costPerUserPage === detailedCostPerUserData.total_pages, children: [jsx("span", { className: "sr-only", children: t('analyticsAnalyticsFinancialStats.goToLastPage') }), jsx(ChevronsRight, { className: "h-4 w-4" })] })] })] }))] }) }) })] }));
|
|
231106
231106
|
}
|
|
231107
231107
|
/**
|
|
231108
|
-
* The Cost
|
|
231108
|
+
* The Cost tab: one surface over two backends, split where the backends
|
|
231109
231109
|
* actually split. Spend is ClickHouse (billing truth: marked-up USD, ranked
|
|
231110
231110
|
* per-user history); Usage & latency and Traces are the Langfuse proxy
|
|
231111
231111
|
* (tokens, latency percentiles, per-call drill-down). Every card names its
|
|
@@ -96915,7 +96915,7 @@ var analyticsAnalyticsOverview$3 = {
|
|
|
96915
96915
|
topicsChartDescription: "The most discussed topics, ranked by how many messages each one generated.",
|
|
96916
96916
|
activeUsersChartDescription: "Unique active users per day, showing how engagement changes over time.",
|
|
96917
96917
|
llmSpend: "LLM spend",
|
|
96918
|
-
llmSpendDescription: "Raw cost of every traced LLM call in the selected period, from the trace store. Billing totals live on the Cost
|
|
96918
|
+
llmSpendDescription: "Raw cost of every traced LLM call in the selected period, from the trace store. Billing totals live on the Cost tab.",
|
|
96919
96919
|
allTopics: "All topics",
|
|
96920
96920
|
topicsRankedFooter: "{shown} of {total} topics · ranked by message volume"
|
|
96921
96921
|
};
|
|
@@ -102872,7 +102872,7 @@ var analyticsChartCard$3 = {
|
|
|
102872
102872
|
adjustRangeHint: "This card only — the page range stays where it is."
|
|
102873
102873
|
};
|
|
102874
102874
|
var analyticsCostTabs$3 = {
|
|
102875
|
-
ariaLabel: "Cost
|
|
102875
|
+
ariaLabel: "Cost sections",
|
|
102876
102876
|
spend: "Spend",
|
|
102877
102877
|
usage: "Usage & latency",
|
|
102878
102878
|
traces: "Traces"
|
|
@@ -104063,7 +104063,7 @@ var analyticsAnalyticsOverview$2 = {
|
|
|
104063
104063
|
topicsChartDescription: "Les sujets les plus abordés, classés selon le nombre de messages générés.",
|
|
104064
104064
|
activeUsersChartDescription: "Utilisateurs actifs uniques par jour, pour suivre l’évolution de l’engagement.",
|
|
104065
104065
|
llmSpend: "Dépenses LLM",
|
|
104066
|
-
llmSpendDescription: "Coût brut de chaque appel LLM tracé sur la période sélectionnée, issu du magasin de traces. Les totaux de facturation sont dans l'onglet Coûts
|
|
104066
|
+
llmSpendDescription: "Coût brut de chaque appel LLM tracé sur la période sélectionnée, issu du magasin de traces. Les totaux de facturation sont dans l'onglet Coûts.",
|
|
104067
104067
|
allTopics: "Tous les sujets",
|
|
104068
104068
|
topicsRankedFooter: "{shown} sur {total} sujets · classés par volume de messages"
|
|
104069
104069
|
};
|
|
@@ -110020,7 +110020,7 @@ var analyticsChartCard$2 = {
|
|
|
110020
110020
|
adjustRangeHint: "Cette carte uniquement — la plage de la page reste inchangée."
|
|
110021
110021
|
};
|
|
110022
110022
|
var analyticsCostTabs$2 = {
|
|
110023
|
-
ariaLabel: "Sections Coûts
|
|
110023
|
+
ariaLabel: "Sections Coûts",
|
|
110024
110024
|
spend: "Dépenses",
|
|
110025
110025
|
usage: "Utilisation et latence",
|
|
110026
110026
|
traces: "Traces"
|
|
@@ -111211,7 +111211,7 @@ var analyticsAnalyticsOverview$1 = {
|
|
|
111211
111211
|
topicsChartDescription: "Los temas más tratados, ordenados por la cantidad de mensajes que generó cada uno.",
|
|
111212
111212
|
activeUsersChartDescription: "Usuarios activos únicos por día, para ver cómo cambia la participación con el tiempo.",
|
|
111213
111213
|
llmSpend: "Gasto LLM",
|
|
111214
|
-
llmSpendDescription: "Costo bruto de cada llamada LLM trazada en el período seleccionado, del almacén de trazas. Los totales de facturación están en la pestaña Costos
|
|
111214
|
+
llmSpendDescription: "Costo bruto de cada llamada LLM trazada en el período seleccionado, del almacén de trazas. Los totales de facturación están en la pestaña Costos.",
|
|
111215
111215
|
allTopics: "Todos los temas",
|
|
111216
111216
|
topicsRankedFooter: "{shown} de {total} temas · ordenados por volumen de mensajes"
|
|
111217
111217
|
};
|
|
@@ -117168,7 +117168,7 @@ var analyticsChartCard$1 = {
|
|
|
117168
117168
|
adjustRangeHint: "Solo esta tarjeta — el rango de la página no cambia."
|
|
117169
117169
|
};
|
|
117170
117170
|
var analyticsCostTabs$1 = {
|
|
117171
|
-
ariaLabel: "Secciones de Costos
|
|
117171
|
+
ariaLabel: "Secciones de Costos",
|
|
117172
117172
|
spend: "Gasto",
|
|
117173
117173
|
usage: "Uso y latencia",
|
|
117174
117174
|
traces: "Trazas"
|
|
@@ -118359,7 +118359,7 @@ var analyticsAnalyticsOverview = {
|
|
|
118359
118359
|
topicsChartDescription: "讨论最多的主题,按各自产生的消息数排序。",
|
|
118360
118360
|
activeUsersChartDescription: "每日独立活跃用户数,展示参与度随时间的变化。",
|
|
118361
118361
|
llmSpend: "LLM 支出",
|
|
118362
|
-
llmSpendDescription: "所选时段内每次被追踪的 LLM
|
|
118362
|
+
llmSpendDescription: "所选时段内每次被追踪的 LLM 调用的原始成本,来自追踪存储。计费总额在成本页。",
|
|
118363
118363
|
allTopics: "所有主题",
|
|
118364
118364
|
topicsRankedFooter: "共 {total} 个主题,显示 {shown} 个 · 按消息量排序"
|
|
118365
118365
|
};
|
|
@@ -124316,7 +124316,7 @@ var analyticsChartCard = {
|
|
|
124316
124316
|
adjustRangeHint: "仅此卡片 — 页面范围保持不变。"
|
|
124317
124317
|
};
|
|
124318
124318
|
var analyticsCostTabs = {
|
|
124319
|
-
ariaLabel: "
|
|
124319
|
+
ariaLabel: "成本分区",
|
|
124320
124320
|
spend: "支出",
|
|
124321
124321
|
usage: "用量与延迟",
|
|
124322
124322
|
traces: "追踪"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "Unified JavaScript SDK for IBL.ai — re-exports data-layer, web-containers, and web-utils under a single package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
"axios": "1.13.6",
|
|
77
77
|
"dotenv": "16.6.1",
|
|
78
78
|
"winston": "3.19.0",
|
|
79
|
+
"@iblai/mcp": "1.12.13",
|
|
79
80
|
"@iblai/data-layer": "1.13.3",
|
|
80
|
-
"@iblai/web-containers": "1.20.
|
|
81
|
-
"@iblai/web-utils": "2.4.6"
|
|
82
|
-
"@iblai/mcp": "1.12.12"
|
|
81
|
+
"@iblai/web-containers": "1.20.1",
|
|
82
|
+
"@iblai/web-utils": "2.4.6"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|
|
85
85
|
"@iblai/iblai-api": "4.166.0-ai",
|