@adminforth/agent 1.18.4 → 1.18.6
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 +6 -3
- package/custom/Message.vue +6 -1
- package/custom/composables/useAgentStore.ts +3 -0
- package/dist/custom/ChatSurface.vue +6 -3
- package/dist/custom/Message.vue +6 -1
- package/dist/custom/composables/useAgentStore.ts +3 -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,526 bytes received 451 bytes 125,318.00 bytes/sec
|
|
36
|
+
total size is 185,674 speedup is 0.99
|
package/custom/ChatSurface.vue
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
:style="{ width: agentStore.chatWidth + 'rem' }"
|
|
27
27
|
>
|
|
28
28
|
<div
|
|
29
|
-
v-if="!coreStore.isMobile"
|
|
29
|
+
v-if="!(coreStore.isMobile || agentStore.isFullScreen)"
|
|
30
30
|
class="w-2 cursor-ew-resize absolute left-0 top-0 h-full z-30"
|
|
31
31
|
@mousedown="startResize"
|
|
32
32
|
></div>
|
|
@@ -247,8 +247,11 @@ onMounted(async () => {
|
|
|
247
247
|
agentStore.regisrerTextInput(textInput.value);
|
|
248
248
|
textInput.value?.focus();
|
|
249
249
|
const isTeleportedToBodyFromLocalStorage = agentStore.getLocalStorageItem('isTeleportedToBody') === 'true';
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
if( coreStore.isMobile ) {
|
|
251
|
+
agentStore.setIsTeleportedToBody(false);
|
|
252
|
+
} else {
|
|
253
|
+
agentStore.setIsTeleportedToBody(isTeleportedToBodyFromLocalStorage || props.meta.stickByDefault);
|
|
254
|
+
}
|
|
252
255
|
await agentStore.fetchSessionsList();
|
|
253
256
|
});
|
|
254
257
|
|
package/custom/Message.vue
CHANGED
|
@@ -58,10 +58,13 @@
|
|
|
58
58
|
import { useRouter } from 'vue-router';
|
|
59
59
|
import { IconAngleDownOutline } from '@iconify-prerendered/vue-flowbite';
|
|
60
60
|
import { useAgentStore } from './composables/useAgentStore';
|
|
61
|
+
import { useCoreStore } from '@/stores/core';
|
|
62
|
+
|
|
61
63
|
const IncremarkContent = defineAsyncComponent(() => import('@incremark/vue').then(module => module.IncremarkContent))
|
|
62
64
|
const ShikiCodeBlock = defineAsyncComponent(() => import('./incremark_code_renderers/IncremarkShikiCodeBlock.vue'))
|
|
63
65
|
|
|
64
66
|
const agentStore = useAgentStore();
|
|
67
|
+
const coreStore = useCoreStore();
|
|
65
68
|
|
|
66
69
|
const incremarkComponents = {
|
|
67
70
|
code: ShikiCodeBlock,
|
|
@@ -134,8 +137,10 @@
|
|
|
134
137
|
|
|
135
138
|
const internalRoute = resolveInternalRoute(href);
|
|
136
139
|
if (internalRoute !== null) {
|
|
137
|
-
if (agentStore.isFullScreen) {
|
|
140
|
+
if (agentStore.isFullScreen && !coreStore.isMobile) {
|
|
138
141
|
agentStore.setFullScreen(false);
|
|
142
|
+
} else if (coreStore.isMobile) {
|
|
143
|
+
agentStore.setIsChatOpen(false);
|
|
139
144
|
}
|
|
140
145
|
void router.push(internalRoute);
|
|
141
146
|
return;
|
|
@@ -331,6 +331,9 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
331
331
|
if (isFullScreen.value) {
|
|
332
332
|
document.body.style.overflow = 'hidden';
|
|
333
333
|
}
|
|
334
|
+
if (coreStore.isMobile) {
|
|
335
|
+
setFullScreen(true);
|
|
336
|
+
}
|
|
334
337
|
isChatOpen.value = true;
|
|
335
338
|
nextTick(() => {
|
|
336
339
|
focusTextInput();
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
:style="{ width: agentStore.chatWidth + 'rem' }"
|
|
27
27
|
>
|
|
28
28
|
<div
|
|
29
|
-
v-if="!coreStore.isMobile"
|
|
29
|
+
v-if="!(coreStore.isMobile || agentStore.isFullScreen)"
|
|
30
30
|
class="w-2 cursor-ew-resize absolute left-0 top-0 h-full z-30"
|
|
31
31
|
@mousedown="startResize"
|
|
32
32
|
></div>
|
|
@@ -247,8 +247,11 @@ onMounted(async () => {
|
|
|
247
247
|
agentStore.regisrerTextInput(textInput.value);
|
|
248
248
|
textInput.value?.focus();
|
|
249
249
|
const isTeleportedToBodyFromLocalStorage = agentStore.getLocalStorageItem('isTeleportedToBody') === 'true';
|
|
250
|
-
|
|
251
|
-
|
|
250
|
+
if( coreStore.isMobile ) {
|
|
251
|
+
agentStore.setIsTeleportedToBody(false);
|
|
252
|
+
} else {
|
|
253
|
+
agentStore.setIsTeleportedToBody(isTeleportedToBodyFromLocalStorage || props.meta.stickByDefault);
|
|
254
|
+
}
|
|
252
255
|
await agentStore.fetchSessionsList();
|
|
253
256
|
});
|
|
254
257
|
|
package/dist/custom/Message.vue
CHANGED
|
@@ -58,10 +58,13 @@
|
|
|
58
58
|
import { useRouter } from 'vue-router';
|
|
59
59
|
import { IconAngleDownOutline } from '@iconify-prerendered/vue-flowbite';
|
|
60
60
|
import { useAgentStore } from './composables/useAgentStore';
|
|
61
|
+
import { useCoreStore } from '@/stores/core';
|
|
62
|
+
|
|
61
63
|
const IncremarkContent = defineAsyncComponent(() => import('@incremark/vue').then(module => module.IncremarkContent))
|
|
62
64
|
const ShikiCodeBlock = defineAsyncComponent(() => import('./incremark_code_renderers/IncremarkShikiCodeBlock.vue'))
|
|
63
65
|
|
|
64
66
|
const agentStore = useAgentStore();
|
|
67
|
+
const coreStore = useCoreStore();
|
|
65
68
|
|
|
66
69
|
const incremarkComponents = {
|
|
67
70
|
code: ShikiCodeBlock,
|
|
@@ -134,8 +137,10 @@
|
|
|
134
137
|
|
|
135
138
|
const internalRoute = resolveInternalRoute(href);
|
|
136
139
|
if (internalRoute !== null) {
|
|
137
|
-
if (agentStore.isFullScreen) {
|
|
140
|
+
if (agentStore.isFullScreen && !coreStore.isMobile) {
|
|
138
141
|
agentStore.setFullScreen(false);
|
|
142
|
+
} else if (coreStore.isMobile) {
|
|
143
|
+
agentStore.setIsChatOpen(false);
|
|
139
144
|
}
|
|
140
145
|
void router.push(internalRoute);
|
|
141
146
|
return;
|
|
@@ -331,6 +331,9 @@ export const useAgentStore = defineStore('agent', () => {
|
|
|
331
331
|
if (isFullScreen.value) {
|
|
332
332
|
document.body.style.overflow = 'hidden';
|
|
333
333
|
}
|
|
334
|
+
if (coreStore.isMobile) {
|
|
335
|
+
setFullScreen(true);
|
|
336
|
+
}
|
|
334
337
|
isChatOpen.value = true;
|
|
335
338
|
nextTick(() => {
|
|
336
339
|
focusTextInput();
|