@adminforth/agent 1.18.2 → 1.18.4
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 +2 -2
- package/custom/ChatSurface.vue +0 -1
- package/custom/SessionsHistory.vue +0 -1
- package/custom/ToolRenderer.vue +2 -2
- package/custom/composables/useAgentStore.ts +8 -0
- package/dist/custom/ChatSurface.vue +0 -1
- package/dist/custom/SessionsHistory.vue +0 -1
- package/dist/custom/ToolRenderer.vue +2 -2
- package/dist/custom/composables/useAgentStore.ts +8 -0
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -32,5 +32,5 @@ custom/skills/fetch_data/SKILL.md
|
|
|
32
32
|
custom/skills/mutate_data/
|
|
33
33
|
custom/skills/mutate_data/SKILL.md
|
|
34
34
|
|
|
35
|
-
sent 187,
|
|
36
|
-
total size is 185,
|
|
35
|
+
sent 187,156 bytes received 451 bytes 375,214.00 bytes/sec
|
|
36
|
+
total size is 185,304 speedup is 0.99
|
package/custom/ChatSurface.vue
CHANGED
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
:class="{
|
|
34
34
|
'bg-lightPrimary/20 hover:bg-lightPrimary/20 dark:bg-darkPrimary/20 dark:hover:bg-darkPrimary/20': agentStore.activeSessionId === session.sessionId,
|
|
35
35
|
'cursor-default opacity-50 pointer-events-none': agentStore.isResponseInProgress,
|
|
36
|
-
'pl-8': agentStore.isFullScreen
|
|
37
36
|
}"
|
|
38
37
|
@click="agentStore.setActiveSession(session.sessionId); agentStore.setSessionHistoryOpen(false);"
|
|
39
38
|
:disabled="agentStore.isResponseInProgress"
|
package/custom/ToolRenderer.vue
CHANGED
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
:key="section.label"
|
|
32
32
|
class="overflow-hidden rounded-xl border border-black/5 bg-white/70 shadow-sm backdrop-blur-sm dark:border-white/10 dark:bg-slate-900/50"
|
|
33
33
|
>
|
|
34
|
-
<header class="border-b border-black/5 px-3 py-2 text-[
|
|
34
|
+
<header class="border-b border-black/5 px-3 py-2 text-[0.7rem] font-semibold uppercase tracking-[0.22em] text-gray-500 dark:border-white/10 dark:text-gray-400">
|
|
35
35
|
{{ section.label }}
|
|
36
36
|
</header>
|
|
37
37
|
<div class="grid grid-cols-[auto,1fr] gap-x-3 gap-y-1 px-3 py-3 font-mono text-xs leading-5 text-gray-700 dark:text-gray-200">
|
|
38
38
|
<template v-for="line in section.lines" :key="`${section.label}-${line.number}`">
|
|
39
|
-
<span class="select-none text-[
|
|
39
|
+
<span class="select-none text-[0.7rem] text-gray-400 dark:text-gray-500">{{ line.number }}</span>
|
|
40
40
|
<span class="whitespace-pre-wrap break-words">{{ line.content || ' ' }}</span>
|
|
41
41
|
</template>
|
|
42
42
|
</div>
|
|
@@ -129,12 +129,14 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
129
129
|
function setFullScreen(fullScreen: boolean) {
|
|
130
130
|
isFullScreen.value = fullScreen;
|
|
131
131
|
if (fullScreen) {
|
|
132
|
+
document.body.style.overflow = 'hidden';
|
|
132
133
|
setLocalStorageItem('chatWidthBeforeFullScreen', chatWidth.value.toString());
|
|
133
134
|
setLocalStorageItem('isTeleportedToBodyBeforeFullScreen', isTeleportedToBody.value ? 'true' : 'false');
|
|
134
135
|
setIsTeleportedToBody(false);
|
|
135
136
|
useAgentTransitions().setChatSurfaceTransition(false);
|
|
136
137
|
setChatWidth(window.innerWidth, false);
|
|
137
138
|
} else {
|
|
139
|
+
document.body.style.overflow = '';
|
|
138
140
|
const lastChatWidth = parseInt(getLocalStorageItem('chatWidthBeforeFullScreen') || DEFAULT_CHAT_WIDTH.toString(), 10);
|
|
139
141
|
const isTeleportedBeforeFullScreen = getLocalStorageItem('isTeleportedToBodyBeforeFullScreen') === 'true';
|
|
140
142
|
agentTransitions.setAppRootTransition(true);
|
|
@@ -315,6 +317,9 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
function closeChat() {
|
|
320
|
+
if(isFullScreen.value) {
|
|
321
|
+
document.body.style.overflow = '';
|
|
322
|
+
}
|
|
318
323
|
if (blockCloseOfChat.value) {
|
|
319
324
|
return;
|
|
320
325
|
}
|
|
@@ -323,6 +328,9 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
323
328
|
}
|
|
324
329
|
|
|
325
330
|
function openChat() {
|
|
331
|
+
if (isFullScreen.value) {
|
|
332
|
+
document.body.style.overflow = 'hidden';
|
|
333
|
+
}
|
|
326
334
|
isChatOpen.value = true;
|
|
327
335
|
nextTick(() => {
|
|
328
336
|
focusTextInput();
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
:class="{
|
|
34
34
|
'bg-lightPrimary/20 hover:bg-lightPrimary/20 dark:bg-darkPrimary/20 dark:hover:bg-darkPrimary/20': agentStore.activeSessionId === session.sessionId,
|
|
35
35
|
'cursor-default opacity-50 pointer-events-none': agentStore.isResponseInProgress,
|
|
36
|
-
'pl-8': agentStore.isFullScreen
|
|
37
36
|
}"
|
|
38
37
|
@click="agentStore.setActiveSession(session.sessionId); agentStore.setSessionHistoryOpen(false);"
|
|
39
38
|
:disabled="agentStore.isResponseInProgress"
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
:key="section.label"
|
|
32
32
|
class="overflow-hidden rounded-xl border border-black/5 bg-white/70 shadow-sm backdrop-blur-sm dark:border-white/10 dark:bg-slate-900/50"
|
|
33
33
|
>
|
|
34
|
-
<header class="border-b border-black/5 px-3 py-2 text-[
|
|
34
|
+
<header class="border-b border-black/5 px-3 py-2 text-[0.7rem] font-semibold uppercase tracking-[0.22em] text-gray-500 dark:border-white/10 dark:text-gray-400">
|
|
35
35
|
{{ section.label }}
|
|
36
36
|
</header>
|
|
37
37
|
<div class="grid grid-cols-[auto,1fr] gap-x-3 gap-y-1 px-3 py-3 font-mono text-xs leading-5 text-gray-700 dark:text-gray-200">
|
|
38
38
|
<template v-for="line in section.lines" :key="`${section.label}-${line.number}`">
|
|
39
|
-
<span class="select-none text-[
|
|
39
|
+
<span class="select-none text-[0.7rem] text-gray-400 dark:text-gray-500">{{ line.number }}</span>
|
|
40
40
|
<span class="whitespace-pre-wrap break-words">{{ line.content || ' ' }}</span>
|
|
41
41
|
</template>
|
|
42
42
|
</div>
|
|
@@ -129,12 +129,14 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
129
129
|
function setFullScreen(fullScreen: boolean) {
|
|
130
130
|
isFullScreen.value = fullScreen;
|
|
131
131
|
if (fullScreen) {
|
|
132
|
+
document.body.style.overflow = 'hidden';
|
|
132
133
|
setLocalStorageItem('chatWidthBeforeFullScreen', chatWidth.value.toString());
|
|
133
134
|
setLocalStorageItem('isTeleportedToBodyBeforeFullScreen', isTeleportedToBody.value ? 'true' : 'false');
|
|
134
135
|
setIsTeleportedToBody(false);
|
|
135
136
|
useAgentTransitions().setChatSurfaceTransition(false);
|
|
136
137
|
setChatWidth(window.innerWidth, false);
|
|
137
138
|
} else {
|
|
139
|
+
document.body.style.overflow = '';
|
|
138
140
|
const lastChatWidth = parseInt(getLocalStorageItem('chatWidthBeforeFullScreen') || DEFAULT_CHAT_WIDTH.toString(), 10);
|
|
139
141
|
const isTeleportedBeforeFullScreen = getLocalStorageItem('isTeleportedToBodyBeforeFullScreen') === 'true';
|
|
140
142
|
agentTransitions.setAppRootTransition(true);
|
|
@@ -315,6 +317,9 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
315
317
|
}
|
|
316
318
|
|
|
317
319
|
function closeChat() {
|
|
320
|
+
if(isFullScreen.value) {
|
|
321
|
+
document.body.style.overflow = '';
|
|
322
|
+
}
|
|
318
323
|
if (blockCloseOfChat.value) {
|
|
319
324
|
return;
|
|
320
325
|
}
|
|
@@ -323,6 +328,9 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
323
328
|
}
|
|
324
329
|
|
|
325
330
|
function openChat() {
|
|
331
|
+
if (isFullScreen.value) {
|
|
332
|
+
document.body.style.overflow = 'hidden';
|
|
333
|
+
}
|
|
326
334
|
isChatOpen.value = true;
|
|
327
335
|
nextTick(() => {
|
|
328
336
|
focusTextInput();
|