@iblai/iblai-js 2.36.1 → 2.36.3
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.
|
@@ -4838,13 +4838,10 @@ var memoryTabLabels$3 = {
|
|
|
4838
4838
|
subTabs: {
|
|
4839
4839
|
ariaLabel: "Memory sections",
|
|
4840
4840
|
personal: "Personal Memories",
|
|
4841
|
-
shared: "Shared
|
|
4841
|
+
shared: "Shared Memories"
|
|
4842
4842
|
},
|
|
4843
4843
|
sharedMemory: {
|
|
4844
|
-
|
|
4845
|
-
description: "Facts, rules, and background this agent should always keep in mind. Every person who chats with this agent gets these memories.",
|
|
4846
|
-
gatingHint: "Shared memories reach chats only while Long-term Memory is on for this agent and the person chatting has memory turned on.",
|
|
4847
|
-
addButton: "Add Shared Memory",
|
|
4844
|
+
addButton: "Add Memory",
|
|
4848
4845
|
addButtonShort: "Add",
|
|
4849
4846
|
listAriaLabel: "Shared memories",
|
|
4850
4847
|
actionsAria: "Shared memory actions",
|
|
@@ -4852,19 +4849,17 @@ var memoryTabLabels$3 = {
|
|
|
4852
4849
|
"delete": "Delete",
|
|
4853
4850
|
loading: "Loading shared memories...",
|
|
4854
4851
|
loadError: "Couldn't load this agent's shared memories. Please try again.",
|
|
4855
|
-
unknownAuthor: "Unknown",
|
|
4856
|
-
addedBy: "Added by {name}",
|
|
4857
4852
|
empty: {
|
|
4858
4853
|
title: "No Shared Memories Yet",
|
|
4859
4854
|
description: "Add anything this agent should always keep in mind — how to behave, key facts, or house rules. Every person who chats with this agent gets these memories."
|
|
4860
4855
|
},
|
|
4861
4856
|
denied: {
|
|
4862
|
-
title: "No Access to Shared
|
|
4857
|
+
title: "No Access to Shared Memories",
|
|
4863
4858
|
description: "You don't have permission to view this agent's shared memories. Ask an administrator for access."
|
|
4864
4859
|
},
|
|
4865
4860
|
modal: {
|
|
4866
|
-
addTitle: "Add
|
|
4867
|
-
editTitle: "Edit
|
|
4861
|
+
addTitle: "Add Memory",
|
|
4862
|
+
editTitle: "Edit Memory",
|
|
4868
4863
|
contentLabel: "Memory",
|
|
4869
4864
|
placeholder: "Write what this agent should always keep in mind...",
|
|
4870
4865
|
charCountMinimum: "{count}/10 characters minimum",
|
|
@@ -4874,8 +4869,8 @@ var memoryTabLabels$3 = {
|
|
|
4874
4869
|
cancel: "Cancel"
|
|
4875
4870
|
},
|
|
4876
4871
|
deleteModal: {
|
|
4877
|
-
title: "Delete
|
|
4878
|
-
description: "Are you sure you want to delete this
|
|
4872
|
+
title: "Delete Memory",
|
|
4873
|
+
description: "Are you sure you want to delete this memory? This action cannot be undone.",
|
|
4879
4874
|
"delete": "Delete",
|
|
4880
4875
|
deleting: "Deleting...",
|
|
4881
4876
|
cancel: "Cancel"
|
|
@@ -4948,7 +4943,6 @@ var memoryTabManageMemories$3 = {
|
|
|
4948
4943
|
addMemory: "Add Memory",
|
|
4949
4944
|
add: "Add",
|
|
4950
4945
|
loadingMemories: "Loading memories...",
|
|
4951
|
-
unknown: "Unknown",
|
|
4952
4946
|
edit: "Edit",
|
|
4953
4947
|
"delete": "Delete",
|
|
4954
4948
|
deleteAll: "Delete All",
|
|
@@ -13307,13 +13301,10 @@ var memoryTabLabels$2 = {
|
|
|
13307
13301
|
subTabs: {
|
|
13308
13302
|
ariaLabel: "Sections de la mémoire",
|
|
13309
13303
|
personal: "Souvenirs personnels",
|
|
13310
|
-
shared: "
|
|
13304
|
+
shared: "Souvenirs partagés"
|
|
13311
13305
|
},
|
|
13312
13306
|
sharedMemory: {
|
|
13313
|
-
|
|
13314
|
-
description: "Faits, règles et contexte que cet agent doit toujours garder à l'esprit. Chaque personne qui discute avec cet agent bénéficie de ces souvenirs.",
|
|
13315
|
-
gatingHint: "Les souvenirs partagés n'atteignent les conversations que lorsque la mémoire à long terme est activée pour cet agent et que la personne qui discute a activé sa mémoire.",
|
|
13316
|
-
addButton: "Ajouter un souvenir partagé",
|
|
13307
|
+
addButton: "Ajouter un souvenir",
|
|
13317
13308
|
addButtonShort: "Ajouter",
|
|
13318
13309
|
listAriaLabel: "Souvenirs partagés",
|
|
13319
13310
|
actionsAria: "Actions sur le souvenir partagé",
|
|
@@ -13321,19 +13312,17 @@ var memoryTabLabels$2 = {
|
|
|
13321
13312
|
"delete": "Supprimer",
|
|
13322
13313
|
loading: "Chargement des souvenirs partagés...",
|
|
13323
13314
|
loadError: "Impossible de charger les souvenirs partagés de cet agent. Veuillez réessayer.",
|
|
13324
|
-
unknownAuthor: "Inconnu",
|
|
13325
|
-
addedBy: "Ajouté par {name}",
|
|
13326
13315
|
empty: {
|
|
13327
13316
|
title: "Aucun souvenir partagé pour l'instant",
|
|
13328
13317
|
description: "Ajoutez tout ce que cet agent doit toujours garder à l'esprit — comment se comporter, faits essentiels ou règles internes. Chaque personne qui discute avec cet agent bénéficie de ces souvenirs."
|
|
13329
13318
|
},
|
|
13330
13319
|
denied: {
|
|
13331
|
-
title: "Pas d'accès
|
|
13320
|
+
title: "Pas d'accès aux souvenirs partagés",
|
|
13332
13321
|
description: "Vous n'avez pas la permission de voir les souvenirs partagés de cet agent. Demandez l'accès à un administrateur."
|
|
13333
13322
|
},
|
|
13334
13323
|
modal: {
|
|
13335
|
-
addTitle: "Ajouter un souvenir
|
|
13336
|
-
editTitle: "Modifier
|
|
13324
|
+
addTitle: "Ajouter un souvenir",
|
|
13325
|
+
editTitle: "Modifier la mémoire",
|
|
13337
13326
|
contentLabel: "Souvenir",
|
|
13338
13327
|
placeholder: "Écrivez ce que cet agent doit toujours garder à l'esprit...",
|
|
13339
13328
|
charCountMinimum: "{count}/10 caractères minimum",
|
|
@@ -13343,8 +13332,8 @@ var memoryTabLabels$2 = {
|
|
|
13343
13332
|
cancel: "Annuler"
|
|
13344
13333
|
},
|
|
13345
13334
|
deleteModal: {
|
|
13346
|
-
title: "Supprimer
|
|
13347
|
-
description: "
|
|
13335
|
+
title: "Supprimer la mémoire",
|
|
13336
|
+
description: "Êtes-vous sûr de vouloir supprimer cette mémoire ? Cette action ne peut pas être annulée.",
|
|
13348
13337
|
"delete": "Supprimer",
|
|
13349
13338
|
deleting: "Suppression...",
|
|
13350
13339
|
cancel: "Annuler"
|
|
@@ -13417,7 +13406,6 @@ var memoryTabManageMemories$2 = {
|
|
|
13417
13406
|
addMemory: "Ajouter un souvenir",
|
|
13418
13407
|
add: "Ajouter",
|
|
13419
13408
|
loadingMemories: "Chargement des souvenirs...",
|
|
13420
|
-
unknown: "Inconnu",
|
|
13421
13409
|
edit: "Modifier",
|
|
13422
13410
|
"delete": "Supprimer",
|
|
13423
13411
|
deleteAll: "Tout supprimer",
|
|
@@ -21610,13 +21598,10 @@ var memoryTabLabels$1 = {
|
|
|
21610
21598
|
subTabs: {
|
|
21611
21599
|
ariaLabel: "Secciones de memoria",
|
|
21612
21600
|
personal: "Memorias personales",
|
|
21613
|
-
shared: "
|
|
21601
|
+
shared: "Memorias compartidas"
|
|
21614
21602
|
},
|
|
21615
21603
|
sharedMemory: {
|
|
21616
|
-
|
|
21617
|
-
description: "Hechos, reglas y contexto que este agente debe tener siempre presentes. Todas las personas que chatean con este agente reciben estas memorias.",
|
|
21618
|
-
gatingHint: "Las memorias compartidas llegan a los chats solo mientras la memoria a largo plazo esté activada para este agente y la persona que chatea tenga la memoria activada.",
|
|
21619
|
-
addButton: "Agregar memoria compartida",
|
|
21604
|
+
addButton: "Agregar memoria",
|
|
21620
21605
|
addButtonShort: "Agregar",
|
|
21621
21606
|
listAriaLabel: "Memorias compartidas",
|
|
21622
21607
|
actionsAria: "Acciones de memoria compartida",
|
|
@@ -21624,19 +21609,17 @@ var memoryTabLabels$1 = {
|
|
|
21624
21609
|
"delete": "Eliminar",
|
|
21625
21610
|
loading: "Cargando memorias compartidas...",
|
|
21626
21611
|
loadError: "No se pudieron cargar las memorias compartidas de este agente. Inténtalo de nuevo.",
|
|
21627
|
-
unknownAuthor: "Desconocido",
|
|
21628
|
-
addedBy: "Agregado por {name}",
|
|
21629
21612
|
empty: {
|
|
21630
21613
|
title: "Aún no hay memorias compartidas",
|
|
21631
21614
|
description: "Agrega todo lo que este agente debe tener siempre presente: cómo comportarse, hechos clave o reglas internas. Todas las personas que chatean con este agente reciben estas memorias."
|
|
21632
21615
|
},
|
|
21633
21616
|
denied: {
|
|
21634
|
-
title: "Sin acceso a
|
|
21617
|
+
title: "Sin acceso a las memorias compartidas",
|
|
21635
21618
|
description: "No tienes permiso para ver las memorias compartidas de este agente. Pide acceso a un administrador."
|
|
21636
21619
|
},
|
|
21637
21620
|
modal: {
|
|
21638
|
-
addTitle: "Agregar memoria
|
|
21639
|
-
editTitle: "Editar memoria
|
|
21621
|
+
addTitle: "Agregar memoria",
|
|
21622
|
+
editTitle: "Editar memoria",
|
|
21640
21623
|
contentLabel: "Memoria",
|
|
21641
21624
|
placeholder: "Escribe lo que este agente debe tener siempre presente...",
|
|
21642
21625
|
charCountMinimum: "{count}/10 caracteres mínimo",
|
|
@@ -21646,8 +21629,8 @@ var memoryTabLabels$1 = {
|
|
|
21646
21629
|
cancel: "Cancelar"
|
|
21647
21630
|
},
|
|
21648
21631
|
deleteModal: {
|
|
21649
|
-
title: "Eliminar memoria
|
|
21650
|
-
description: "¿
|
|
21632
|
+
title: "Eliminar memoria",
|
|
21633
|
+
description: "¿Está seguro de que desea eliminar esta memoria? Esta acción no se puede deshacer.",
|
|
21651
21634
|
"delete": "Eliminar",
|
|
21652
21635
|
deleting: "Eliminando...",
|
|
21653
21636
|
cancel: "Cancelar"
|
|
@@ -21720,7 +21703,6 @@ var memoryTabManageMemories$1 = {
|
|
|
21720
21703
|
addMemory: "Agregar memoria",
|
|
21721
21704
|
add: "Agregar",
|
|
21722
21705
|
loadingMemories: "Cargando memorias...",
|
|
21723
|
-
unknown: "Desconocido",
|
|
21724
21706
|
edit: "Editar",
|
|
21725
21707
|
"delete": "Eliminar",
|
|
21726
21708
|
deleteAll: "Eliminar todo",
|
|
@@ -29916,10 +29898,7 @@ var memoryTabLabels = {
|
|
|
29916
29898
|
shared: "共享记忆"
|
|
29917
29899
|
},
|
|
29918
29900
|
sharedMemory: {
|
|
29919
|
-
|
|
29920
|
-
description: "此智能体应始终牢记的事实、规则和背景信息。所有与此智能体聊天的人都会获得这些记忆。",
|
|
29921
|
-
gatingHint: "只有在此智能体开启长期记忆、且聊天者也开启了记忆时,共享记忆才会用于聊天。",
|
|
29922
|
-
addButton: "添加共享记忆",
|
|
29901
|
+
addButton: "添加记忆",
|
|
29923
29902
|
addButtonShort: "添加",
|
|
29924
29903
|
listAriaLabel: "共享记忆",
|
|
29925
29904
|
actionsAria: "共享记忆操作",
|
|
@@ -29927,8 +29906,6 @@ var memoryTabLabels = {
|
|
|
29927
29906
|
"delete": "删除",
|
|
29928
29907
|
loading: "加载共享记忆中...",
|
|
29929
29908
|
loadError: "无法加载此智能体的共享记忆。请重试。",
|
|
29930
|
-
unknownAuthor: "未知",
|
|
29931
|
-
addedBy: "由 {name} 添加",
|
|
29932
29909
|
empty: {
|
|
29933
29910
|
title: "暂无共享记忆",
|
|
29934
29911
|
description: "添加此智能体应始终牢记的内容——行为方式、关键事实或内部规则。所有与此智能体聊天的人都会获得这些记忆。"
|
|
@@ -29938,8 +29915,8 @@ var memoryTabLabels = {
|
|
|
29938
29915
|
description: "您没有权限查看此智能体的共享记忆。请向管理员申请访问权限。"
|
|
29939
29916
|
},
|
|
29940
29917
|
modal: {
|
|
29941
|
-
addTitle: "
|
|
29942
|
-
editTitle: "
|
|
29918
|
+
addTitle: "添加记忆",
|
|
29919
|
+
editTitle: "编辑记忆",
|
|
29943
29920
|
contentLabel: "记忆",
|
|
29944
29921
|
placeholder: "写下此智能体应始终牢记的内容...",
|
|
29945
29922
|
charCountMinimum: "{count}/10 个字符(最少)",
|
|
@@ -29949,8 +29926,8 @@ var memoryTabLabels = {
|
|
|
29949
29926
|
cancel: "取消"
|
|
29950
29927
|
},
|
|
29951
29928
|
deleteModal: {
|
|
29952
|
-
title: "
|
|
29953
|
-
description: "
|
|
29929
|
+
title: "删除记忆",
|
|
29930
|
+
description: "您确定要删除此记忆吗?此操作无法撤销。",
|
|
29954
29931
|
"delete": "删除",
|
|
29955
29932
|
deleting: "删除中...",
|
|
29956
29933
|
cancel: "取消"
|
|
@@ -30023,7 +30000,6 @@ var memoryTabManageMemories = {
|
|
|
30023
30000
|
addMemory: "添加记忆",
|
|
30024
30001
|
add: "添加",
|
|
30025
30002
|
loadingMemories: "加载记忆中...",
|
|
30026
|
-
unknown: "未知",
|
|
30027
30003
|
edit: "编辑",
|
|
30028
30004
|
"delete": "删除",
|
|
30029
30005
|
deleteAll: "全部删除",
|
|
@@ -265918,6 +265894,7 @@ function ManageMemories({ tenantKey, username, mentorId }) {
|
|
|
265918
265894
|
name: memory.category.name,
|
|
265919
265895
|
slug: memory.category.slug,
|
|
265920
265896
|
},
|
|
265897
|
+
username: memory.username,
|
|
265921
265898
|
email: memory.email,
|
|
265922
265899
|
createdAt: memory.created_at,
|
|
265923
265900
|
}));
|
|
@@ -266122,8 +266099,8 @@ function ManageMemories({ tenantKey, username, mentorId }) {
|
|
|
266122
266099
|
locale: dateFnsLocale,
|
|
266123
266100
|
})
|
|
266124
266101
|
: '';
|
|
266125
|
-
const displayUser = memory.email ||
|
|
266126
|
-
return (jsxs("div", { role: "listitem", className: "flex items-start gap-3 rounded-lg border border-gray-200 bg-white p-3", children: [jsxs("div", { className: "flex-1", children: [(timeAgo || displayUser) && (jsxs("div", { className: "mb-2 flex items-center justify-between", children: [timeAgo && jsx("span", { className: "text-sm text-gray-600", children: timeAgo }), displayUser && (jsx(
|
|
266102
|
+
const displayUser = memory.email || memory.username;
|
|
266103
|
+
return (jsxs("div", { role: "listitem", className: "flex items-start gap-3 rounded-lg border border-gray-200 bg-white p-3", children: [jsxs("div", { className: "flex-1", children: [(timeAgo || displayUser) && (jsxs("div", { className: "mb-2 flex items-center justify-between", children: [timeAgo && jsx("span", { className: "text-sm text-gray-600", children: timeAgo }), displayUser && (jsx(UserProfileLink, { tenantKey: tenantKey, username: memory.username, display: displayUser, className: "max-w-[100px] truncate text-sm text-gray-900 sm:max-w-[200px]" }))] })), jsx("p", { className: "text-sm leading-relaxed text-gray-900", children: memory.content })] }), jsxs(DropdownMenu, { children: [jsx(DropdownMenuTrigger, { asChild: true, children: jsx(Button$2, { variant: "ghost", size: "sm", "aria-label": t('memoryTabManageMemories.memoryActionsAriaLabel'), className: "h-6 w-6 flex-shrink-0 p-0 text-gray-600 hover:text-gray-900", children: jsx(Ellipsis, { className: "h-4 w-4" }) }) }), jsxs(DropdownMenuContent, { align: "end", children: [jsx(DropdownMenuItem, { onClick: () => startEdit(memory), children: t('memoryTabManageMemories.edit') }), jsx(DropdownMenuItem, { onClick: () => setShowDeleteConfirm(memory.id), children: t('memoryTabManageMemories.delete') })] })] })] }, memory.id));
|
|
266127
266104
|
})) }), filteredMemories.length > 0 && selectedCategorySlug !== 'all' && (jsx("div", { className: "flex justify-end", children: jsx(Button$2, { variant: "outline", onClick: () => setShowBulkDeleteConfirm(true), children: t('memoryTabManageMemories.deleteAll') }) })), filteredMemories.length === 0 && !isLoadingMemories && (jsx("div", { className: "py-8 text-center text-gray-600", children: jsx("p", { children: t('memoryTabManageMemories.noSavedMemories') }) })), totalPages > 1 && (jsx("div", { className: "flex justify-center pt-2", children: jsx(IblPagination, { currentPage: page, totalPages: totalPages, onPageChange: setPage, disabled: isLoadingMemories }) }))] }), jsx(EditMemoryModal$1, { open: !!editingMemory, onOpenChange: (open) => !open && cancelEdit(), editContent: editContent, editCategory: editCategory, onContentChange: setEditContent, onCategoryChange: setEditCategory, onSave: saveEdit, onCancel: cancelEdit, categories: categoryNames, isSaving: isEditing }), jsx(AddMemoryModal$1, { open: showAddMemory, onOpenChange: (open) => !open && cancelAddMemory(), newMemoryContent: newMemoryContent, newMemoryCategory: newMemoryCategory, onContentChange: setNewMemoryContent, onCategoryChange: setNewMemoryCategory, onSave: saveNewMemory, onCancel: cancelAddMemory, categories: categoryNames, isSaving: isSaving }), jsx(DeleteMemoryModal, { open: !!showDeleteConfirm, onOpenChange: (open) => !open && setShowDeleteConfirm(null), onConfirm: () => showDeleteConfirm !== null && handleDeleteMemory(showDeleteConfirm), onCancel: () => setShowDeleteConfirm(null), isDeleting: isDeleting }), jsx(ManageCategoriesModal$1, { open: showManageCategories, onOpenChange: setShowManageCategories, tenantKey: tenantKey, mentorId: mentorId }), jsx(BulkDeleteMemoryModal$1, { open: showBulkDeleteConfirm, onOpenChange: setShowBulkDeleteConfirm, onConfirm: handleBulkDelete, onCancel: () => setShowBulkDeleteConfirm(false), isDeleting: isBulkDeleting, selectedCategory: selectedCategoryName })] }));
|
|
266128
266105
|
}
|
|
266129
266106
|
|
|
@@ -99382,13 +99382,10 @@ var memoryTabLabels$3 = {
|
|
|
99382
99382
|
subTabs: {
|
|
99383
99383
|
ariaLabel: "Memory sections",
|
|
99384
99384
|
personal: "Personal Memories",
|
|
99385
|
-
shared: "Shared
|
|
99385
|
+
shared: "Shared Memories"
|
|
99386
99386
|
},
|
|
99387
99387
|
sharedMemory: {
|
|
99388
|
-
|
|
99389
|
-
description: "Facts, rules, and background this agent should always keep in mind. Every person who chats with this agent gets these memories.",
|
|
99390
|
-
gatingHint: "Shared memories reach chats only while Long-term Memory is on for this agent and the person chatting has memory turned on.",
|
|
99391
|
-
addButton: "Add Shared Memory",
|
|
99388
|
+
addButton: "Add Memory",
|
|
99392
99389
|
addButtonShort: "Add",
|
|
99393
99390
|
listAriaLabel: "Shared memories",
|
|
99394
99391
|
actionsAria: "Shared memory actions",
|
|
@@ -99396,19 +99393,17 @@ var memoryTabLabels$3 = {
|
|
|
99396
99393
|
"delete": "Delete",
|
|
99397
99394
|
loading: "Loading shared memories...",
|
|
99398
99395
|
loadError: "Couldn't load this agent's shared memories. Please try again.",
|
|
99399
|
-
unknownAuthor: "Unknown",
|
|
99400
|
-
addedBy: "Added by {name}",
|
|
99401
99396
|
empty: {
|
|
99402
99397
|
title: "No Shared Memories Yet",
|
|
99403
99398
|
description: "Add anything this agent should always keep in mind — how to behave, key facts, or house rules. Every person who chats with this agent gets these memories."
|
|
99404
99399
|
},
|
|
99405
99400
|
denied: {
|
|
99406
|
-
title: "No Access to Shared
|
|
99401
|
+
title: "No Access to Shared Memories",
|
|
99407
99402
|
description: "You don't have permission to view this agent's shared memories. Ask an administrator for access."
|
|
99408
99403
|
},
|
|
99409
99404
|
modal: {
|
|
99410
|
-
addTitle: "Add
|
|
99411
|
-
editTitle: "Edit
|
|
99405
|
+
addTitle: "Add Memory",
|
|
99406
|
+
editTitle: "Edit Memory",
|
|
99412
99407
|
contentLabel: "Memory",
|
|
99413
99408
|
placeholder: "Write what this agent should always keep in mind...",
|
|
99414
99409
|
charCountMinimum: "{count}/10 characters minimum",
|
|
@@ -99418,8 +99413,8 @@ var memoryTabLabels$3 = {
|
|
|
99418
99413
|
cancel: "Cancel"
|
|
99419
99414
|
},
|
|
99420
99415
|
deleteModal: {
|
|
99421
|
-
title: "Delete
|
|
99422
|
-
description: "Are you sure you want to delete this
|
|
99416
|
+
title: "Delete Memory",
|
|
99417
|
+
description: "Are you sure you want to delete this memory? This action cannot be undone.",
|
|
99423
99418
|
"delete": "Delete",
|
|
99424
99419
|
deleting: "Deleting...",
|
|
99425
99420
|
cancel: "Cancel"
|
|
@@ -99492,7 +99487,6 @@ var memoryTabManageMemories$3 = {
|
|
|
99492
99487
|
addMemory: "Add Memory",
|
|
99493
99488
|
add: "Add",
|
|
99494
99489
|
loadingMemories: "Loading memories...",
|
|
99495
|
-
unknown: "Unknown",
|
|
99496
99490
|
edit: "Edit",
|
|
99497
99491
|
"delete": "Delete",
|
|
99498
99492
|
deleteAll: "Delete All",
|
|
@@ -107851,13 +107845,10 @@ var memoryTabLabels$2 = {
|
|
|
107851
107845
|
subTabs: {
|
|
107852
107846
|
ariaLabel: "Sections de la mémoire",
|
|
107853
107847
|
personal: "Souvenirs personnels",
|
|
107854
|
-
shared: "
|
|
107848
|
+
shared: "Souvenirs partagés"
|
|
107855
107849
|
},
|
|
107856
107850
|
sharedMemory: {
|
|
107857
|
-
|
|
107858
|
-
description: "Faits, règles et contexte que cet agent doit toujours garder à l'esprit. Chaque personne qui discute avec cet agent bénéficie de ces souvenirs.",
|
|
107859
|
-
gatingHint: "Les souvenirs partagés n'atteignent les conversations que lorsque la mémoire à long terme est activée pour cet agent et que la personne qui discute a activé sa mémoire.",
|
|
107860
|
-
addButton: "Ajouter un souvenir partagé",
|
|
107851
|
+
addButton: "Ajouter un souvenir",
|
|
107861
107852
|
addButtonShort: "Ajouter",
|
|
107862
107853
|
listAriaLabel: "Souvenirs partagés",
|
|
107863
107854
|
actionsAria: "Actions sur le souvenir partagé",
|
|
@@ -107865,19 +107856,17 @@ var memoryTabLabels$2 = {
|
|
|
107865
107856
|
"delete": "Supprimer",
|
|
107866
107857
|
loading: "Chargement des souvenirs partagés...",
|
|
107867
107858
|
loadError: "Impossible de charger les souvenirs partagés de cet agent. Veuillez réessayer.",
|
|
107868
|
-
unknownAuthor: "Inconnu",
|
|
107869
|
-
addedBy: "Ajouté par {name}",
|
|
107870
107859
|
empty: {
|
|
107871
107860
|
title: "Aucun souvenir partagé pour l'instant",
|
|
107872
107861
|
description: "Ajoutez tout ce que cet agent doit toujours garder à l'esprit — comment se comporter, faits essentiels ou règles internes. Chaque personne qui discute avec cet agent bénéficie de ces souvenirs."
|
|
107873
107862
|
},
|
|
107874
107863
|
denied: {
|
|
107875
|
-
title: "Pas d'accès
|
|
107864
|
+
title: "Pas d'accès aux souvenirs partagés",
|
|
107876
107865
|
description: "Vous n'avez pas la permission de voir les souvenirs partagés de cet agent. Demandez l'accès à un administrateur."
|
|
107877
107866
|
},
|
|
107878
107867
|
modal: {
|
|
107879
|
-
addTitle: "Ajouter un souvenir
|
|
107880
|
-
editTitle: "Modifier
|
|
107868
|
+
addTitle: "Ajouter un souvenir",
|
|
107869
|
+
editTitle: "Modifier la mémoire",
|
|
107881
107870
|
contentLabel: "Souvenir",
|
|
107882
107871
|
placeholder: "Écrivez ce que cet agent doit toujours garder à l'esprit...",
|
|
107883
107872
|
charCountMinimum: "{count}/10 caractères minimum",
|
|
@@ -107887,8 +107876,8 @@ var memoryTabLabels$2 = {
|
|
|
107887
107876
|
cancel: "Annuler"
|
|
107888
107877
|
},
|
|
107889
107878
|
deleteModal: {
|
|
107890
|
-
title: "Supprimer
|
|
107891
|
-
description: "
|
|
107879
|
+
title: "Supprimer la mémoire",
|
|
107880
|
+
description: "Êtes-vous sûr de vouloir supprimer cette mémoire ? Cette action ne peut pas être annulée.",
|
|
107892
107881
|
"delete": "Supprimer",
|
|
107893
107882
|
deleting: "Suppression...",
|
|
107894
107883
|
cancel: "Annuler"
|
|
@@ -107961,7 +107950,6 @@ var memoryTabManageMemories$2 = {
|
|
|
107961
107950
|
addMemory: "Ajouter un souvenir",
|
|
107962
107951
|
add: "Ajouter",
|
|
107963
107952
|
loadingMemories: "Chargement des souvenirs...",
|
|
107964
|
-
unknown: "Inconnu",
|
|
107965
107953
|
edit: "Modifier",
|
|
107966
107954
|
"delete": "Supprimer",
|
|
107967
107955
|
deleteAll: "Tout supprimer",
|
|
@@ -116154,13 +116142,10 @@ var memoryTabLabels$1 = {
|
|
|
116154
116142
|
subTabs: {
|
|
116155
116143
|
ariaLabel: "Secciones de memoria",
|
|
116156
116144
|
personal: "Memorias personales",
|
|
116157
|
-
shared: "
|
|
116145
|
+
shared: "Memorias compartidas"
|
|
116158
116146
|
},
|
|
116159
116147
|
sharedMemory: {
|
|
116160
|
-
|
|
116161
|
-
description: "Hechos, reglas y contexto que este agente debe tener siempre presentes. Todas las personas que chatean con este agente reciben estas memorias.",
|
|
116162
|
-
gatingHint: "Las memorias compartidas llegan a los chats solo mientras la memoria a largo plazo esté activada para este agente y la persona que chatea tenga la memoria activada.",
|
|
116163
|
-
addButton: "Agregar memoria compartida",
|
|
116148
|
+
addButton: "Agregar memoria",
|
|
116164
116149
|
addButtonShort: "Agregar",
|
|
116165
116150
|
listAriaLabel: "Memorias compartidas",
|
|
116166
116151
|
actionsAria: "Acciones de memoria compartida",
|
|
@@ -116168,19 +116153,17 @@ var memoryTabLabels$1 = {
|
|
|
116168
116153
|
"delete": "Eliminar",
|
|
116169
116154
|
loading: "Cargando memorias compartidas...",
|
|
116170
116155
|
loadError: "No se pudieron cargar las memorias compartidas de este agente. Inténtalo de nuevo.",
|
|
116171
|
-
unknownAuthor: "Desconocido",
|
|
116172
|
-
addedBy: "Agregado por {name}",
|
|
116173
116156
|
empty: {
|
|
116174
116157
|
title: "Aún no hay memorias compartidas",
|
|
116175
116158
|
description: "Agrega todo lo que este agente debe tener siempre presente: cómo comportarse, hechos clave o reglas internas. Todas las personas que chatean con este agente reciben estas memorias."
|
|
116176
116159
|
},
|
|
116177
116160
|
denied: {
|
|
116178
|
-
title: "Sin acceso a
|
|
116161
|
+
title: "Sin acceso a las memorias compartidas",
|
|
116179
116162
|
description: "No tienes permiso para ver las memorias compartidas de este agente. Pide acceso a un administrador."
|
|
116180
116163
|
},
|
|
116181
116164
|
modal: {
|
|
116182
|
-
addTitle: "Agregar memoria
|
|
116183
|
-
editTitle: "Editar memoria
|
|
116165
|
+
addTitle: "Agregar memoria",
|
|
116166
|
+
editTitle: "Editar memoria",
|
|
116184
116167
|
contentLabel: "Memoria",
|
|
116185
116168
|
placeholder: "Escribe lo que este agente debe tener siempre presente...",
|
|
116186
116169
|
charCountMinimum: "{count}/10 caracteres mínimo",
|
|
@@ -116190,8 +116173,8 @@ var memoryTabLabels$1 = {
|
|
|
116190
116173
|
cancel: "Cancelar"
|
|
116191
116174
|
},
|
|
116192
116175
|
deleteModal: {
|
|
116193
|
-
title: "Eliminar memoria
|
|
116194
|
-
description: "¿
|
|
116176
|
+
title: "Eliminar memoria",
|
|
116177
|
+
description: "¿Está seguro de que desea eliminar esta memoria? Esta acción no se puede deshacer.",
|
|
116195
116178
|
"delete": "Eliminar",
|
|
116196
116179
|
deleting: "Eliminando...",
|
|
116197
116180
|
cancel: "Cancelar"
|
|
@@ -116264,7 +116247,6 @@ var memoryTabManageMemories$1 = {
|
|
|
116264
116247
|
addMemory: "Agregar memoria",
|
|
116265
116248
|
add: "Agregar",
|
|
116266
116249
|
loadingMemories: "Cargando memorias...",
|
|
116267
|
-
unknown: "Desconocido",
|
|
116268
116250
|
edit: "Editar",
|
|
116269
116251
|
"delete": "Eliminar",
|
|
116270
116252
|
deleteAll: "Eliminar todo",
|
|
@@ -124460,10 +124442,7 @@ var memoryTabLabels = {
|
|
|
124460
124442
|
shared: "共享记忆"
|
|
124461
124443
|
},
|
|
124462
124444
|
sharedMemory: {
|
|
124463
|
-
|
|
124464
|
-
description: "此智能体应始终牢记的事实、规则和背景信息。所有与此智能体聊天的人都会获得这些记忆。",
|
|
124465
|
-
gatingHint: "只有在此智能体开启长期记忆、且聊天者也开启了记忆时,共享记忆才会用于聊天。",
|
|
124466
|
-
addButton: "添加共享记忆",
|
|
124445
|
+
addButton: "添加记忆",
|
|
124467
124446
|
addButtonShort: "添加",
|
|
124468
124447
|
listAriaLabel: "共享记忆",
|
|
124469
124448
|
actionsAria: "共享记忆操作",
|
|
@@ -124471,8 +124450,6 @@ var memoryTabLabels = {
|
|
|
124471
124450
|
"delete": "删除",
|
|
124472
124451
|
loading: "加载共享记忆中...",
|
|
124473
124452
|
loadError: "无法加载此智能体的共享记忆。请重试。",
|
|
124474
|
-
unknownAuthor: "未知",
|
|
124475
|
-
addedBy: "由 {name} 添加",
|
|
124476
124453
|
empty: {
|
|
124477
124454
|
title: "暂无共享记忆",
|
|
124478
124455
|
description: "添加此智能体应始终牢记的内容——行为方式、关键事实或内部规则。所有与此智能体聊天的人都会获得这些记忆。"
|
|
@@ -124482,8 +124459,8 @@ var memoryTabLabels = {
|
|
|
124482
124459
|
description: "您没有权限查看此智能体的共享记忆。请向管理员申请访问权限。"
|
|
124483
124460
|
},
|
|
124484
124461
|
modal: {
|
|
124485
|
-
addTitle: "
|
|
124486
|
-
editTitle: "
|
|
124462
|
+
addTitle: "添加记忆",
|
|
124463
|
+
editTitle: "编辑记忆",
|
|
124487
124464
|
contentLabel: "记忆",
|
|
124488
124465
|
placeholder: "写下此智能体应始终牢记的内容...",
|
|
124489
124466
|
charCountMinimum: "{count}/10 个字符(最少)",
|
|
@@ -124493,8 +124470,8 @@ var memoryTabLabels = {
|
|
|
124493
124470
|
cancel: "取消"
|
|
124494
124471
|
},
|
|
124495
124472
|
deleteModal: {
|
|
124496
|
-
title: "
|
|
124497
|
-
description: "
|
|
124473
|
+
title: "删除记忆",
|
|
124474
|
+
description: "您确定要删除此记忆吗?此操作无法撤销。",
|
|
124498
124475
|
"delete": "删除",
|
|
124499
124476
|
deleting: "删除中...",
|
|
124500
124477
|
cancel: "取消"
|
|
@@ -124567,7 +124544,6 @@ var memoryTabManageMemories = {
|
|
|
124567
124544
|
addMemory: "添加记忆",
|
|
124568
124545
|
add: "添加",
|
|
124569
124546
|
loadingMemories: "加载记忆中...",
|
|
124570
|
-
unknown: "未知",
|
|
124571
124547
|
edit: "编辑",
|
|
124572
124548
|
"delete": "删除",
|
|
124573
124549
|
deleteAll: "全部删除",
|
|
@@ -297703,6 +297679,7 @@ function ManageMemories({ tenantKey, username, mentorId }) {
|
|
|
297703
297679
|
name: memory.category.name,
|
|
297704
297680
|
slug: memory.category.slug,
|
|
297705
297681
|
},
|
|
297682
|
+
username: memory.username,
|
|
297706
297683
|
email: memory.email,
|
|
297707
297684
|
createdAt: memory.created_at,
|
|
297708
297685
|
}));
|
|
@@ -297907,8 +297884,8 @@ function ManageMemories({ tenantKey, username, mentorId }) {
|
|
|
297907
297884
|
locale: dateFnsLocale,
|
|
297908
297885
|
})
|
|
297909
297886
|
: '';
|
|
297910
|
-
const displayUser = memory.email ||
|
|
297911
|
-
return (jsxs("div", { role: "listitem", className: "flex items-start gap-3 rounded-lg border border-gray-200 bg-white p-3", children: [jsxs("div", { className: "flex-1", children: [(timeAgo || displayUser) && (jsxs("div", { className: "mb-2 flex items-center justify-between", children: [timeAgo && jsx("span", { className: "text-sm text-gray-600", children: timeAgo }), displayUser && (jsx(
|
|
297887
|
+
const displayUser = memory.email || memory.username;
|
|
297888
|
+
return (jsxs("div", { role: "listitem", className: "flex items-start gap-3 rounded-lg border border-gray-200 bg-white p-3", children: [jsxs("div", { className: "flex-1", children: [(timeAgo || displayUser) && (jsxs("div", { className: "mb-2 flex items-center justify-between", children: [timeAgo && jsx("span", { className: "text-sm text-gray-600", children: timeAgo }), displayUser && (jsx(UserProfileLink, { tenantKey: tenantKey, username: memory.username, display: displayUser, className: "max-w-[100px] truncate text-sm text-gray-900 sm:max-w-[200px]" }))] })), jsx("p", { className: "text-sm leading-relaxed text-gray-900", children: memory.content })] }), jsxs(DropdownMenu, { children: [jsx(DropdownMenuTrigger, { asChild: true, children: jsx(Button$2, { variant: "ghost", size: "sm", "aria-label": t('memoryTabManageMemories.memoryActionsAriaLabel'), className: "h-6 w-6 flex-shrink-0 p-0 text-gray-600 hover:text-gray-900", children: jsx(Ellipsis, { className: "h-4 w-4" }) }) }), jsxs(DropdownMenuContent, { align: "end", children: [jsx(DropdownMenuItem, { onClick: () => startEdit(memory), children: t('memoryTabManageMemories.edit') }), jsx(DropdownMenuItem, { onClick: () => setShowDeleteConfirm(memory.id), children: t('memoryTabManageMemories.delete') })] })] })] }, memory.id));
|
|
297912
297889
|
})) }), filteredMemories.length > 0 && selectedCategorySlug !== 'all' && (jsx("div", { className: "flex justify-end", children: jsx(Button$2, { variant: "outline", onClick: () => setShowBulkDeleteConfirm(true), children: t('memoryTabManageMemories.deleteAll') }) })), filteredMemories.length === 0 && !isLoadingMemories && (jsx("div", { className: "py-8 text-center text-gray-600", children: jsx("p", { children: t('memoryTabManageMemories.noSavedMemories') }) })), totalPages > 1 && (jsx("div", { className: "flex justify-center pt-2", children: jsx(IblPagination, { currentPage: page, totalPages: totalPages, onPageChange: setPage, disabled: isLoadingMemories }) }))] }), jsx(EditMemoryModal$1, { open: !!editingMemory, onOpenChange: (open) => !open && cancelEdit(), editContent: editContent, editCategory: editCategory, onContentChange: setEditContent, onCategoryChange: setEditCategory, onSave: saveEdit, onCancel: cancelEdit, categories: categoryNames, isSaving: isEditing }), jsx(AddMemoryModal$1, { open: showAddMemory, onOpenChange: (open) => !open && cancelAddMemory(), newMemoryContent: newMemoryContent, newMemoryCategory: newMemoryCategory, onContentChange: setNewMemoryContent, onCategoryChange: setNewMemoryCategory, onSave: saveNewMemory, onCancel: cancelAddMemory, categories: categoryNames, isSaving: isSaving }), jsx(DeleteMemoryModal, { open: !!showDeleteConfirm, onOpenChange: (open) => !open && setShowDeleteConfirm(null), onConfirm: () => showDeleteConfirm !== null && handleDeleteMemory(showDeleteConfirm), onCancel: () => setShowDeleteConfirm(null), isDeleting: isDeleting }), jsx(ManageCategoriesModal$1, { open: showManageCategories, onOpenChange: setShowManageCategories, tenantKey: tenantKey, mentorId: mentorId }), jsx(BulkDeleteMemoryModal$1, { open: showBulkDeleteConfirm, onOpenChange: setShowBulkDeleteConfirm, onConfirm: handleBulkDelete, onCancel: () => setShowBulkDeleteConfirm(false), isDeleting: isBulkDeleting, selectedCategory: selectedCategoryName })] }));
|
|
297913
297890
|
}
|
|
297914
297891
|
|
|
@@ -317902,10 +317879,13 @@ function SharedMemorySection({ tenantKey, mentorId, labels, canWrite, }) {
|
|
|
317902
317879
|
}
|
|
317903
317880
|
}
|
|
317904
317881
|
};
|
|
317905
|
-
return (jsxs("div", { className: "space-y-4", "data-testid": "shared-memory-section", children: [
|
|
317906
|
-
|
|
317882
|
+
return (jsxs("div", { className: "space-y-4", "data-testid": "shared-memory-section", children: [canEdit && (jsx("div", { className: "flex justify-end", children: jsxs(Button$2, { onClick: () => openEditor({ mode: 'add' }), size: "sm", className: "ibl-button-primary shrink-0", "data-testid": "shared-memory-add-button", children: [jsx(Plus, { className: "mr-1 h-4 w-4 sm:mr-2" }), jsx("span", { className: "hidden sm:inline", children: labels.addButton }), jsx("span", { className: "sm:hidden", children: labels.addButtonShort })] }) })), showLoading ? (jsx("div", { className: "py-8 text-center text-gray-600", children: jsx("p", { children: labels.loading }) })) : isListForbidden ? (jsxs("div", { className: "flex flex-col items-center gap-2 rounded-lg border border-gray-200 bg-gray-50 px-4 py-10 text-center", "data-testid": "shared-memory-denied", children: [jsx(ShieldAlert, { className: "h-6 w-6 text-gray-400" }), jsx("p", { className: "text-sm font-medium text-gray-900", children: labels.denied.title }), jsx("p", { className: "max-w-sm text-xs text-gray-600", children: labels.denied.description })] })) : error ? (jsx("div", { className: "py-8 text-center text-gray-600", "data-testid": "shared-memory-error", children: jsx("p", { children: labels.loadError }) })) : entries.length === 0 ? (jsxs("div", { className: "rounded-lg border border-dashed border-gray-300 px-4 py-8 text-center", "data-testid": "shared-memory-empty", children: [jsx("h5", { className: "text-sm font-medium text-gray-900", children: labels.empty.title }), jsx("p", { className: "mx-auto mt-1 max-w-md text-xs text-gray-600", children: labels.empty.description })] })) : (jsx("div", { role: "list", "aria-label": labels.listAriaLabel, className: "space-y-3", children: entries.map((entry) => {
|
|
317883
|
+
// Only a row with a known creator gets an identity; service / API-token rows have none.
|
|
317884
|
+
const author = entry.created_by
|
|
317885
|
+
? entry.created_by_email || entry.created_by_full_name || entry.created_by
|
|
317886
|
+
: null;
|
|
317907
317887
|
const added = timeAgo(entry.created_at, dateFnsLocale);
|
|
317908
|
-
return (jsxs("div", { role: "listitem", className: "flex items-start gap-3 rounded-lg border border-gray-200 bg-white p-3", "data-testid": "shared-memory-entry", children: [jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
317888
|
+
return (jsxs("div", { role: "listitem", className: "flex items-start gap-3 rounded-lg border border-gray-200 bg-white p-3", "data-testid": "shared-memory-entry", children: [jsxs("div", { className: "min-w-0 flex-1", children: [(added || author) && (jsxs("div", { className: "mb-2 flex items-center justify-between", children: [added && jsx("span", { className: "text-sm text-gray-600", children: added }), author && (jsx(UserProfileLink, { tenantKey: tenantKey, username: entry.created_by, display: author, className: "max-w-[100px] truncate text-sm text-gray-900 sm:max-w-[200px]" }))] })), jsx("p", { className: "text-sm leading-relaxed whitespace-pre-wrap break-words text-gray-900", "data-testid": "shared-memory-entry-content", children: entry.content })] }), canEdit && (jsxs(DropdownMenu, { children: [jsx(DropdownMenuTrigger, { asChild: true, children: jsx(Button$2, { variant: "ghost", size: "sm", className: "h-6 w-6 flex-shrink-0 p-0 text-gray-600 hover:text-gray-900", "aria-label": labels.actionsAria, children: jsx(Ellipsis, { className: "h-4 w-4" }) }) }), jsxs(DropdownMenuContent, { align: "end", children: [jsx(DropdownMenuItem, { onClick: () => openEditor({ mode: 'edit', entry }), children: labels.edit }), jsx(DropdownMenuItem, { onClick: () => setEntryToDelete(entry), children: labels.delete })] })] }))] }, entry.id));
|
|
317909
317889
|
}) })), count > PAGE_SIZE$4 && (jsx("div", { className: "flex justify-center pt-2", "data-testid": "shared-memory-pagination", children: jsx(IblPagination, { currentPage: page, totalPages: totalPages, onPageChange: setPage, disabled: isFetching }) })), jsx(SharedMemoryModal, { open: editor !== null, mode: (_c = editor === null || editor === void 0 ? void 0 : editor.mode) !== null && _c !== void 0 ? _c : 'add', initialContent: (editor === null || editor === void 0 ? void 0 : editor.mode) === 'edit' ? editor.entry.content : '', isSaving: isCreating || isUpdating, fieldError: fieldError, labels: labels.modal, onOpenChange: (open) => {
|
|
317910
317890
|
if (!open)
|
|
317911
317891
|
closeEditor();
|
|
@@ -317928,13 +317908,10 @@ const AGENT_MEMORY_TAB_LABELS = {
|
|
|
317928
317908
|
subTabs: {
|
|
317929
317909
|
ariaLabel: 'Memory sections',
|
|
317930
317910
|
personal: 'Personal Memories',
|
|
317931
|
-
shared: 'Shared
|
|
317911
|
+
shared: 'Shared Memories',
|
|
317932
317912
|
},
|
|
317933
317913
|
sharedMemory: {
|
|
317934
|
-
|
|
317935
|
-
description: 'Facts, rules, and background this agent should always keep in mind. Every person who chats with this agent gets these memories.',
|
|
317936
|
-
gatingHint: 'Shared memories reach chats only while Long-term Memory is on for this agent and the person chatting has memory turned on.',
|
|
317937
|
-
addButton: 'Add Shared Memory',
|
|
317914
|
+
addButton: 'Add Memory',
|
|
317938
317915
|
addButtonShort: 'Add',
|
|
317939
317916
|
listAriaLabel: 'Shared memories',
|
|
317940
317917
|
actionsAria: 'Shared memory actions',
|
|
@@ -317942,19 +317919,17 @@ const AGENT_MEMORY_TAB_LABELS = {
|
|
|
317942
317919
|
delete: 'Delete',
|
|
317943
317920
|
loading: 'Loading shared memories...',
|
|
317944
317921
|
loadError: "Couldn't load this agent's shared memories. Please try again.",
|
|
317945
|
-
unknownAuthor: 'Unknown',
|
|
317946
|
-
addedBy: (name) => `Added by ${name}`,
|
|
317947
317922
|
empty: {
|
|
317948
317923
|
title: 'No Shared Memories Yet',
|
|
317949
317924
|
description: 'Add anything this agent should always keep in mind — how to behave, key facts, or house rules. Every person who chats with this agent gets these memories.',
|
|
317950
317925
|
},
|
|
317951
317926
|
denied: {
|
|
317952
|
-
title: 'No Access to Shared
|
|
317927
|
+
title: 'No Access to Shared Memories',
|
|
317953
317928
|
description: "You don't have permission to view this agent's shared memories. Ask an administrator for access.",
|
|
317954
317929
|
},
|
|
317955
317930
|
modal: {
|
|
317956
|
-
addTitle: 'Add
|
|
317957
|
-
editTitle: 'Edit
|
|
317931
|
+
addTitle: 'Add Memory',
|
|
317932
|
+
editTitle: 'Edit Memory',
|
|
317958
317933
|
contentLabel: 'Memory',
|
|
317959
317934
|
placeholder: 'Write what this agent should always keep in mind...',
|
|
317960
317935
|
charCountMinimum: (count) => `${count}/10 characters minimum`,
|
|
@@ -317964,8 +317939,8 @@ const AGENT_MEMORY_TAB_LABELS = {
|
|
|
317964
317939
|
cancel: 'Cancel',
|
|
317965
317940
|
},
|
|
317966
317941
|
deleteModal: {
|
|
317967
|
-
title: 'Delete
|
|
317968
|
-
description: 'Are you sure you want to delete this
|
|
317942
|
+
title: 'Delete Memory',
|
|
317943
|
+
description: 'Are you sure you want to delete this memory? This action cannot be undone.',
|
|
317969
317944
|
delete: 'Delete',
|
|
317970
317945
|
deleting: 'Deleting...',
|
|
317971
317946
|
cancel: 'Cancel',
|
|
@@ -318006,9 +317981,6 @@ function buildMemoryTabLabels(t) {
|
|
|
318006
317981
|
shared: t('memoryTabLabels.subTabs.shared'),
|
|
318007
317982
|
},
|
|
318008
317983
|
sharedMemory: {
|
|
318009
|
-
title: t('memoryTabLabels.sharedMemory.title'),
|
|
318010
|
-
description: t('memoryTabLabels.sharedMemory.description'),
|
|
318011
|
-
gatingHint: t('memoryTabLabels.sharedMemory.gatingHint'),
|
|
318012
317984
|
addButton: t('memoryTabLabels.sharedMemory.addButton'),
|
|
318013
317985
|
addButtonShort: t('memoryTabLabels.sharedMemory.addButtonShort'),
|
|
318014
317986
|
listAriaLabel: t('memoryTabLabels.sharedMemory.listAriaLabel'),
|
|
@@ -318017,8 +317989,6 @@ function buildMemoryTabLabels(t) {
|
|
|
318017
317989
|
delete: t('memoryTabLabels.sharedMemory.delete'),
|
|
318018
317990
|
loading: t('memoryTabLabels.sharedMemory.loading'),
|
|
318019
317991
|
loadError: t('memoryTabLabels.sharedMemory.loadError'),
|
|
318020
|
-
unknownAuthor: t('memoryTabLabels.sharedMemory.unknownAuthor'),
|
|
318021
|
-
addedBy: (name) => t('memoryTabLabels.sharedMemory.addedBy', { name }),
|
|
318022
317992
|
empty: {
|
|
318023
317993
|
title: t('memoryTabLabels.sharedMemory.empty.title'),
|
|
318024
317994
|
description: t('memoryTabLabels.sharedMemory.empty.description'),
|
|
@@ -318130,7 +318100,7 @@ const MEMORY_SUB_TABS = {
|
|
|
318130
318100
|
* Standalone top-level tab for the agent's memory: the in-tab toggle flips
|
|
318131
318101
|
* `enable_memory_component` on the agent, and the gated content splits into
|
|
318132
318102
|
* two sub-tabs — Personal Memories (what the agent remembered per person) and
|
|
318133
|
-
* Shared
|
|
318103
|
+
* Shared Memories (memories every chat gets). Both sit under the same gate
|
|
318134
318104
|
* because the backend injects neither into chats while that flag is off.
|
|
318135
318105
|
*/
|
|
318136
318106
|
function AgentMemoryTab({ labels: labelsOverride, tenantKey: tenantKeyProp, mentorId: mentorIdProp, username: usernameProp, enableRBAC: enableRBACProp, rbacPermissions: rbacPermissionsProp, }) {
|
|
@@ -330432,7 +330402,7 @@ async function loadTtsAudio(audio, dmUrl, org, userId, chatMessageId, signal) {
|
|
|
330432
330402
|
const token = typeof window !== 'undefined'
|
|
330433
330403
|
? window.localStorage.getItem(LOCAL_STORAGE_KEYS.DM_TOKEN_KEY)
|
|
330434
330404
|
: null;
|
|
330435
|
-
const url = `${dmUrl}/api/ai-mentor/orgs/${org}/users/${userId}/chat-messages/${chatMessageId}/tts
|
|
330405
|
+
const url = `${dmUrl}/api/ai-mentor/orgs/${org}/users/${userId}/chat-messages/${chatMessageId}/tts/`;
|
|
330436
330406
|
const response = await fetch(url, {
|
|
330437
330407
|
method: 'GET',
|
|
330438
330408
|
cache: 'no-cache',
|
|
@@ -333327,7 +333297,7 @@ function ChatInner({ mode = 'default', isPreviewMode = false, hasBorder = true,
|
|
|
333327
333297
|
minHeight: 0,
|
|
333328
333298
|
maxHeight: '100%',
|
|
333329
333299
|
height: '100%',
|
|
333330
|
-
}, children: [jsx(CanvasView, { canvasTitle: canvasState.title, canvasContent: canvasState.content, canvasType: canvasState.type, artifactId: canvasState.artifactId, org: canvasState.org, userId: canvasState.userId, fileExtension: canvasState.fileExtension, metadata: canvasState.metadata, sessionId: sessionId, tenantKey: tenantKey, refreshTrigger: canvasRefreshTrigger, sendMessage: (text, options) => {
|
|
333300
|
+
}, children: [jsx(CanvasView, { canvasTitle: canvasState.title, canvasContent: canvasState.content, canvasType: canvasState.type, artifactId: canvasState.artifactId, org: canvasState.org, userId: canvasState.userId, fileExtension: canvasState.fileExtension, metadata: canvasState.metadata, sessionId: sessionId, tenantKey: tenantKey, activeTools: activeTools, artifactsEnabled: artifactsEnabled, refreshTrigger: canvasRefreshTrigger, sendMessage: (text, options) => {
|
|
333331
333301
|
sendMessage(activeTab, text, options);
|
|
333332
333302
|
}, onClose: handleCloseCanvas }, `${(_m = canvasState.artifactId) !== null && _m !== void 0 ? _m : 'canvas'}-${canvasRefreshTrigger}`), jsx("div", { className: "flex-shrink-0 border-t border-gray-200 bg-white p-3 md:hidden", children: jsx(ChatInputForm, { variant: "redesign", stopStreamingButtonRef: stopStreamingButtonRef, sessionId: sessionId, onSubmit: handleSubmit, stopGenerating: stopAnyGeneration, onScreenSharingClick: handleScreenSharingClick, isScreenSharingModalOpen: isScreenSharingModalOpen, onPhoneCallClick: handlePhoneCallClick, tenantKey: tenantKey, username: username !== null && username !== void 0 ? username : '', setMessage: setMessage, enableSafetyDisclaimer: enableSafetyDisclaimer, isPreviewMode: isPreviewMode, enableWebBrowsing: enableWebBrowsing, isStreaming: isStreaming, updateSessionTools: updateSessionTools, setSessionTools: setSessionTools, activeTools: activeTools, screenSharing: screenSharing, deepResearch: deepResearch, studyMode: studyMode, imageGeneration: imageGeneration, codeInterpreter: codeInterpreter, promptsIsEnabled: promptsIsEnabled, googleSlidesIsEnabled: googleSlidesIsEnabled, googleDocumentIsEnabled: googleDocumentIsEnabled, artifactsEnabled: artifactsEnabled, compactMode: isCompactMode, isConnecting: !isConnected }) })] })] })) : (
|
|
333333
333303
|
/* Normal chat layout when canvas is closed */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iblai/iblai-js",
|
|
3
|
-
"version": "2.36.
|
|
3
|
+
"version": "2.36.3",
|
|
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,9 +76,9 @@
|
|
|
76
76
|
"axios": "1.13.6",
|
|
77
77
|
"dotenv": "16.6.1",
|
|
78
78
|
"winston": "3.19.0",
|
|
79
|
-
"@iblai/data-layer": "1.30.
|
|
80
|
-
"@iblai/mcp": "1.29.
|
|
81
|
-
"@iblai/web-containers": "1.41.
|
|
79
|
+
"@iblai/data-layer": "1.30.1",
|
|
80
|
+
"@iblai/mcp": "1.29.1",
|
|
81
|
+
"@iblai/web-containers": "1.41.2",
|
|
82
82
|
"@iblai/web-utils": "2.8.0"
|
|
83
83
|
},
|
|
84
84
|
"peerDependencies": {
|