@adminforth/agent 2.0.4 → 2.0.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
CHANGED
|
@@ -63,5 +63,5 @@ custom/speech_recognition_frontend/voiceActivityDetection.ts
|
|
|
63
63
|
custom/speech_recognition_frontend/types/
|
|
64
64
|
custom/speech_recognition_frontend/types/voice-activity-detection.d.ts
|
|
65
65
|
|
|
66
|
-
sent 1,682,
|
|
67
|
-
total size is 1,678,
|
|
66
|
+
sent 1,682,452 bytes received 940 bytes 3,366,784.00 bytes/sec
|
|
67
|
+
total size is 1,678,191 speedup is 1.00
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="toolRendererRef"
|
|
4
|
-
class="py-1 inline-flex justify-center m-2
|
|
5
|
-
flex-col gap-3 rounded-xl px-2 text-lightListTableHeadingText
|
|
4
|
+
class="py-1 inline-flex justify-center m-2 max-w-full min-w-0
|
|
5
|
+
flex-col gap-3 rounded-xl px-2 text-lightListTableHeadingText
|
|
6
6
|
dark:text-darkListTableHeadingText select-none
|
|
7
|
-
"
|
|
7
|
+
"
|
|
8
8
|
:class="[
|
|
9
9
|
isInputOutputExpanded ? 'items-start border-none' : '',
|
|
10
10
|
activateShrinkedStyle ? 'border items-center' : '',
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
<div class="min-w-0">
|
|
28
|
-
<p class="break-
|
|
28
|
+
<p class="break-words font-mono text-sm leading-5">
|
|
29
29
|
{{ props.data?.toolInfo?.toolInfo ? props.data.toolInfo.toolInfo : props.data?.toolInfo?.toolName}}
|
|
30
30
|
</p>
|
|
31
31
|
</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
v-if="hasToolSections"
|
|
34
34
|
:class="isInputOutputExpanded ? 'rotate-180' : 'rotate-0'"
|
|
35
35
|
@transitionend="finishTransition()"
|
|
36
|
-
class="cursor-pointer transition-transform duration-300 hover:scale-105"
|
|
36
|
+
class="shrink-0 cursor-pointer transition-transform duration-300 hover:scale-105"
|
|
37
37
|
/>
|
|
38
38
|
</div>
|
|
39
39
|
<transition name="expand">
|
|
@@ -112,9 +112,11 @@
|
|
|
112
112
|
onMounted(async () => {
|
|
113
113
|
await nextTick();
|
|
114
114
|
if (toolRendererRef.value && props.data.toolInfo) {
|
|
115
|
-
|
|
115
|
+
const contentWidth = Math.ceil(toolRendererRef.value.getBoundingClientRect().width);
|
|
116
|
+
const parentWidth = toolRendererRef.value.parentElement?.clientWidth ?? Infinity;
|
|
117
|
+
toolRendererInitialWidth.value = Math.min(contentWidth, parentWidth);
|
|
116
118
|
}
|
|
117
|
-
});
|
|
119
|
+
});
|
|
118
120
|
|
|
119
121
|
watch(isInputOutputExpanded, (newValue) => {
|
|
120
122
|
if (newValue) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="toolRendererRef"
|
|
4
|
-
class="py-1 inline-flex justify-center m-2
|
|
5
|
-
flex-col gap-3 rounded-xl px-2 text-lightListTableHeadingText
|
|
4
|
+
class="py-1 inline-flex justify-center m-2 max-w-full min-w-0
|
|
5
|
+
flex-col gap-3 rounded-xl px-2 text-lightListTableHeadingText
|
|
6
6
|
dark:text-darkListTableHeadingText select-none
|
|
7
|
-
"
|
|
7
|
+
"
|
|
8
8
|
:class="[
|
|
9
9
|
isInputOutputExpanded ? 'items-start border-none' : '',
|
|
10
10
|
activateShrinkedStyle ? 'border items-center' : '',
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
|
|
27
27
|
<div class="min-w-0">
|
|
28
|
-
<p class="break-
|
|
28
|
+
<p class="break-words font-mono text-sm leading-5">
|
|
29
29
|
{{ props.data?.toolInfo?.toolInfo ? props.data.toolInfo.toolInfo : props.data?.toolInfo?.toolName}}
|
|
30
30
|
</p>
|
|
31
31
|
</div>
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
v-if="hasToolSections"
|
|
34
34
|
:class="isInputOutputExpanded ? 'rotate-180' : 'rotate-0'"
|
|
35
35
|
@transitionend="finishTransition()"
|
|
36
|
-
class="cursor-pointer transition-transform duration-300 hover:scale-105"
|
|
36
|
+
class="shrink-0 cursor-pointer transition-transform duration-300 hover:scale-105"
|
|
37
37
|
/>
|
|
38
38
|
</div>
|
|
39
39
|
<transition name="expand">
|
|
@@ -112,9 +112,11 @@
|
|
|
112
112
|
onMounted(async () => {
|
|
113
113
|
await nextTick();
|
|
114
114
|
if (toolRendererRef.value && props.data.toolInfo) {
|
|
115
|
-
|
|
115
|
+
const contentWidth = Math.ceil(toolRendererRef.value.getBoundingClientRect().width);
|
|
116
|
+
const parentWidth = toolRendererRef.value.parentElement?.clientWidth ?? Infinity;
|
|
117
|
+
toolRendererInitialWidth.value = Math.min(contentWidth, parentWidth);
|
|
116
118
|
}
|
|
117
|
-
});
|
|
119
|
+
});
|
|
118
120
|
|
|
119
121
|
watch(isInputOutputExpanded, (newValue) => {
|
|
120
122
|
if (newValue) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/agent",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"description": "AI agent plugin for AdminForth with tool-based workflows and persistent chat sessions",
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/node": "latest",
|
|
28
|
-
"adminforth": "^3.6.
|
|
28
|
+
"adminforth": "^3.6.21",
|
|
29
29
|
"semantic-release": "^24.2.1",
|
|
30
30
|
"semantic-release-slack-bot": "^4.0.2",
|
|
31
31
|
"typescript": "^5.7.3"
|
|
@@ -67,6 +67,6 @@
|
|
|
67
67
|
}
|
|
68
68
|
],
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"adminforth": "^3.6.
|
|
70
|
+
"adminforth": "^3.6.21"
|
|
71
71
|
}
|
|
72
72
|
}
|