@adminforth/agent 1.36.0 → 1.37.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.
package/build.log
CHANGED
|
@@ -47,5 +47,5 @@ custom/skills/fetch_data/SKILL.md
|
|
|
47
47
|
custom/skills/mutate_data/
|
|
48
48
|
custom/skills/mutate_data/SKILL.md
|
|
49
49
|
|
|
50
|
-
sent 216,
|
|
51
|
-
total size is 213,
|
|
50
|
+
sent 216,524 bytes received 699 bytes 434,446.00 bytes/sec
|
|
51
|
+
total size is 213,674 speedup is 0.98
|
|
@@ -2,6 +2,7 @@ import type { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
|
2
2
|
import { callAdminForthApi } from '@/utils';
|
|
3
3
|
import type { Chat } from '../../chat';
|
|
4
4
|
import type { IAgentSession, ISessionsListItem, IPart } from '../../types';
|
|
5
|
+
import { useI18n } from 'vue-i18n';
|
|
5
6
|
|
|
6
7
|
type AdminforthLike = {
|
|
7
8
|
confirm(options: { message: string; yes: string; no: string }): Promise<boolean>;
|
|
@@ -40,6 +41,7 @@ export function createAgentSessionManager({
|
|
|
40
41
|
return [...sessionsListToSort].sort((a: ISessionsListItem, b: ISessionsListItem) => b.timestamp.localeCompare(a.timestamp));
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
const { t } = useI18n();
|
|
43
45
|
function saveCurrentSessionInCache() {
|
|
44
46
|
if (currentSession.value) {
|
|
45
47
|
currentSession.value.messages = currentChat.value?.messages.map((m: any) => ({
|
|
@@ -169,7 +171,7 @@ export function createAgentSessionManager({
|
|
|
169
171
|
return;
|
|
170
172
|
}
|
|
171
173
|
blockCloseOfChat.value = true;
|
|
172
|
-
const isConfirmed = await adminforth.confirm({
|
|
174
|
+
const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No'});
|
|
173
175
|
blockCloseOfChat.value = false;
|
|
174
176
|
if (!isConfirmed) {
|
|
175
177
|
return;
|
|
@@ -2,6 +2,7 @@ import type { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
|
2
2
|
import { callAdminForthApi } from '@/utils';
|
|
3
3
|
import type { Chat } from '../../chat';
|
|
4
4
|
import type { IAgentSession, ISessionsListItem, IPart } from '../../types';
|
|
5
|
+
import { useI18n } from 'vue-i18n';
|
|
5
6
|
|
|
6
7
|
type AdminforthLike = {
|
|
7
8
|
confirm(options: { message: string; yes: string; no: string }): Promise<boolean>;
|
|
@@ -40,6 +41,7 @@ export function createAgentSessionManager({
|
|
|
40
41
|
return [...sessionsListToSort].sort((a: ISessionsListItem, b: ISessionsListItem) => b.timestamp.localeCompare(a.timestamp));
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
const { t } = useI18n();
|
|
43
45
|
function saveCurrentSessionInCache() {
|
|
44
46
|
if (currentSession.value) {
|
|
45
47
|
currentSession.value.messages = currentChat.value?.messages.map((m: any) => ({
|
|
@@ -169,7 +171,7 @@ export function createAgentSessionManager({
|
|
|
169
171
|
return;
|
|
170
172
|
}
|
|
171
173
|
blockCloseOfChat.value = true;
|
|
172
|
-
const isConfirmed = await adminforth.confirm({
|
|
174
|
+
const isConfirmed = await adminforth.confirm({title: t('Are you sure, that you want to delete this session?'), message: t('This process is irreversible.'), yes: 'Yes', no: 'No'});
|
|
173
175
|
blockCloseOfChat.value = false;
|
|
174
176
|
if (!isConfirmed) {
|
|
175
177
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"adminforth": "2.51.0",
|
|
37
37
|
"dayjs": "^1.11.20",
|
|
38
38
|
"langchain": "^1.3.3",
|
|
39
|
+
"vue-i18n": "^11.4.0",
|
|
39
40
|
"yaml": "^2.8.3",
|
|
40
41
|
"zod": "^4.3.6"
|
|
41
42
|
},
|