@agenticmail/enterprise 0.5.29 → 0.5.30
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.
|
@@ -125,10 +125,10 @@ export function KnowledgeBasePage() {
|
|
|
125
125
|
// Stats
|
|
126
126
|
selected.stats && h('div', { style: { display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 12, marginBottom: 16 } },
|
|
127
127
|
[
|
|
128
|
-
{ label: 'Documents', value: selected.stats
|
|
129
|
-
{ label: 'Chunks', value: selected.stats
|
|
130
|
-
{ label: 'Total Tokens', value: selected.stats
|
|
131
|
-
{ label: 'Queries', value: selected.stats
|
|
128
|
+
{ label: 'Documents', value: selected.stats?.documentCount || selected.stats?.documents || selected.stats?.totalDocuments || docs.length },
|
|
129
|
+
{ label: 'Chunks', value: selected.stats?.chunkCount || selected.stats?.chunks || selected.stats?.totalChunks || 0 },
|
|
130
|
+
{ label: 'Total Tokens', value: selected.stats?.totalTokens || 0 },
|
|
131
|
+
{ label: 'Queries', value: selected.stats?.queryCount || 0 },
|
|
132
132
|
].map(s => h('div', { key: s.label, className: 'card', style: { textAlign: 'center', padding: 12 } },
|
|
133
133
|
h('div', { style: { fontSize: 22, fontWeight: 700, color: 'var(--brand-color, #6366f1)' } }, typeof s.value === 'number' && s.value > 1000 ? (s.value / 1000).toFixed(1) + 'K' : s.value),
|
|
134
134
|
h('div', { style: { fontSize: 12, color: 'var(--text-muted)', marginTop: 2 } }, s.label)
|
|
@@ -219,8 +219,8 @@ export function KnowledgeBasePage() {
|
|
|
219
219
|
h('h3', { style: { fontSize: 15, fontWeight: 600, marginBottom: 4 } }, kb.name),
|
|
220
220
|
h('p', { style: { fontSize: 12, color: 'var(--text-muted)', marginBottom: 12, minHeight: 32 } }, kb.description || 'No description'),
|
|
221
221
|
h('div', { style: { display: 'flex', gap: 8, flexWrap: 'wrap' } },
|
|
222
|
-
h('span', { className: 'badge badge-info' }, (kb.stats?.documentCount || kb.documents?.length || 0) + ' docs'),
|
|
223
|
-
h('span', { className: 'badge badge-neutral' }, (kb.stats?.chunkCount || 0) + ' chunks'),
|
|
222
|
+
h('span', { className: 'badge badge-info' }, (kb.stats?.documentCount || kb.stats?.documents || kb.stats?.totalDocuments || kb.documents?.length || 0) + ' docs'),
|
|
223
|
+
h('span', { className: 'badge badge-neutral' }, (kb.stats?.chunkCount || kb.stats?.chunks || kb.stats?.totalChunks || 0) + ' chunks'),
|
|
224
224
|
kb.agentIds && kb.agentIds.length > 0 && h('span', { className: 'badge badge-success' }, kb.agentIds.length + ' agent(s)')
|
|
225
225
|
),
|
|
226
226
|
h('div', { style: { fontSize: 11, color: 'var(--text-muted)', marginTop: 8 } }, 'Click to view details \u2192')
|
package/package.json
CHANGED
|
@@ -125,10 +125,10 @@ export function KnowledgeBasePage() {
|
|
|
125
125
|
// Stats
|
|
126
126
|
selected.stats && h('div', { style: { display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 12, marginBottom: 16 } },
|
|
127
127
|
[
|
|
128
|
-
{ label: 'Documents', value: selected.stats
|
|
129
|
-
{ label: 'Chunks', value: selected.stats
|
|
130
|
-
{ label: 'Total Tokens', value: selected.stats
|
|
131
|
-
{ label: 'Queries', value: selected.stats
|
|
128
|
+
{ label: 'Documents', value: selected.stats?.documentCount || selected.stats?.documents || selected.stats?.totalDocuments || docs.length },
|
|
129
|
+
{ label: 'Chunks', value: selected.stats?.chunkCount || selected.stats?.chunks || selected.stats?.totalChunks || 0 },
|
|
130
|
+
{ label: 'Total Tokens', value: selected.stats?.totalTokens || 0 },
|
|
131
|
+
{ label: 'Queries', value: selected.stats?.queryCount || 0 },
|
|
132
132
|
].map(s => h('div', { key: s.label, className: 'card', style: { textAlign: 'center', padding: 12 } },
|
|
133
133
|
h('div', { style: { fontSize: 22, fontWeight: 700, color: 'var(--brand-color, #6366f1)' } }, typeof s.value === 'number' && s.value > 1000 ? (s.value / 1000).toFixed(1) + 'K' : s.value),
|
|
134
134
|
h('div', { style: { fontSize: 12, color: 'var(--text-muted)', marginTop: 2 } }, s.label)
|
|
@@ -219,8 +219,8 @@ export function KnowledgeBasePage() {
|
|
|
219
219
|
h('h3', { style: { fontSize: 15, fontWeight: 600, marginBottom: 4 } }, kb.name),
|
|
220
220
|
h('p', { style: { fontSize: 12, color: 'var(--text-muted)', marginBottom: 12, minHeight: 32 } }, kb.description || 'No description'),
|
|
221
221
|
h('div', { style: { display: 'flex', gap: 8, flexWrap: 'wrap' } },
|
|
222
|
-
h('span', { className: 'badge badge-info' }, (kb.stats?.documentCount || kb.documents?.length || 0) + ' docs'),
|
|
223
|
-
h('span', { className: 'badge badge-neutral' }, (kb.stats?.chunkCount || 0) + ' chunks'),
|
|
222
|
+
h('span', { className: 'badge badge-info' }, (kb.stats?.documentCount || kb.stats?.documents || kb.stats?.totalDocuments || kb.documents?.length || 0) + ' docs'),
|
|
223
|
+
h('span', { className: 'badge badge-neutral' }, (kb.stats?.chunkCount || kb.stats?.chunks || kb.stats?.totalChunks || 0) + ' chunks'),
|
|
224
224
|
kb.agentIds && kb.agentIds.length > 0 && h('span', { className: 'badge badge-success' }, kb.agentIds.length + ' agent(s)')
|
|
225
225
|
),
|
|
226
226
|
h('div', { style: { fontSize: 11, color: 'var(--text-muted)', marginTop: 8 } }, 'Click to view details \u2192')
|