@adminforth/agent 1.26.10 → 1.26.11
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/apiBasedTools.ts +2 -1
- package/build.log +2 -2
- package/custom/CustomAutoScrollContainer.vue +8 -1
- package/custom/conversation_area/ProcessingTimeline.vue +2 -1
- package/custom/conversation_area/ReasoningRenderer.vue +6 -11
- package/custom/conversation_area/TextRenderer.vue +2 -2
- package/dist/apiBasedTools.js +2 -1
- package/dist/custom/CustomAutoScrollContainer.vue +8 -1
- package/dist/custom/conversation_area/ProcessingTimeline.vue +2 -1
- package/dist/custom/conversation_area/ReasoningRenderer.vue +6 -11
- package/dist/custom/conversation_area/TextRenderer.vue +2 -2
- package/package.json +1 -1
package/apiBasedTools.ts
CHANGED
|
@@ -48,6 +48,7 @@ type GetResourceDataToolResponse = {
|
|
|
48
48
|
type DateTimeColumnType = AdminForthDataTypes.DATETIME | AdminForthDataTypes.TIME;
|
|
49
49
|
|
|
50
50
|
const DEFAULT_USER_TIME_ZONE = 'UTC';
|
|
51
|
+
const DEFAULT_REQUEST_PROTOCOL = process.env.NODE_ENV === 'production' ? 'https' : 'http';
|
|
51
52
|
|
|
52
53
|
function getInputString(inputs: Record<string, unknown> | undefined, key: string) {
|
|
53
54
|
const value = inputs?.[key];
|
|
@@ -618,7 +619,7 @@ function getRequestOrigin(httpExtra?: Partial<HttpExtra>) {
|
|
|
618
619
|
return undefined;
|
|
619
620
|
}
|
|
620
621
|
|
|
621
|
-
const protocol = getHeaderValue(httpExtra?.headers, 'x-forwarded-proto') ??
|
|
622
|
+
const protocol = getHeaderValue(httpExtra?.headers, 'x-forwarded-proto') ?? DEFAULT_REQUEST_PROTOCOL;
|
|
622
623
|
return `${protocol}://${host}`;
|
|
623
624
|
}
|
|
624
625
|
|
package/build.log
CHANGED
|
@@ -38,5 +38,5 @@ custom/skills/fetch_data/SKILL.md
|
|
|
38
38
|
custom/skills/mutate_data/
|
|
39
39
|
custom/skills/mutate_data/SKILL.md
|
|
40
40
|
|
|
41
|
-
sent 207,
|
|
42
|
-
total size is 205,
|
|
41
|
+
sent 207,946 bytes received 562 bytes 417,016.00 bytes/sec
|
|
42
|
+
total size is 205,632 speedup is 0.99
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
class="auto-scroll-container mask-y"
|
|
5
5
|
:wrapperStyle = "wrapperStyle"
|
|
6
6
|
:contentStyle = "contentStyle"
|
|
7
|
+
:autoHide = "scrollBarAutoHide"
|
|
7
8
|
@scroll="handleScroll"
|
|
8
9
|
>
|
|
9
10
|
<slot />
|
|
@@ -28,10 +29,12 @@ const props = withDefaults(defineProps<{
|
|
|
28
29
|
behavior?: ScrollBehavior
|
|
29
30
|
wrapperStyle?: Record<string, string>
|
|
30
31
|
contentStyle?: Record<string, string>
|
|
32
|
+
scrollBarAutoHide?: boolean
|
|
31
33
|
}>(), {
|
|
32
34
|
enabled: true,
|
|
33
35
|
threshold: 50,
|
|
34
|
-
behavior: 'instant'
|
|
36
|
+
behavior: 'instant',
|
|
37
|
+
scrollBarAutoHide: true
|
|
35
38
|
})
|
|
36
39
|
|
|
37
40
|
const containerRef = ref<HTMLDivElement | null>(null)
|
|
@@ -153,4 +156,8 @@ defineExpose({
|
|
|
153
156
|
transparent
|
|
154
157
|
);
|
|
155
158
|
}
|
|
159
|
+
|
|
160
|
+
.scrollbar__thumb {
|
|
161
|
+
border-radius: 0.25rem;
|
|
162
|
+
}
|
|
156
163
|
</style>
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
v-show="isExpanded"
|
|
22
22
|
:threshold="5"
|
|
23
23
|
:wrapperStyle="{
|
|
24
|
-
marginRight: '
|
|
24
|
+
marginRight: '1rem',
|
|
25
25
|
}"
|
|
26
|
+
:scrollBarAutoHide="false"
|
|
26
27
|
>
|
|
27
28
|
<ol class="ml-8 my-2 relative border-l border-l-2 border-black border-default border-listTableHeadingText dark:border-darkListTableHeadingText">
|
|
28
29
|
<template v-for="(part, index) in ToolOrReasoningParts" :key="index">
|
|
@@ -17,17 +17,12 @@
|
|
|
17
17
|
/>
|
|
18
18
|
</h3>
|
|
19
19
|
<transition name="expand">
|
|
20
|
-
<
|
|
21
|
-
v-if="isExpanded"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
>
|
|
27
|
-
<IncremarkContent
|
|
28
|
-
:content="reasoningText"
|
|
29
|
-
/>
|
|
30
|
-
</CustomAutoScrollContainer>
|
|
20
|
+
<IncremarkContent
|
|
21
|
+
v-if="isExpanded"
|
|
22
|
+
v-show="isExpanded"
|
|
23
|
+
class="pl-4 text-sm"
|
|
24
|
+
:content="reasoningText"
|
|
25
|
+
/>
|
|
31
26
|
</transition>
|
|
32
27
|
</li>
|
|
33
28
|
</template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="
|
|
3
|
+
class="flex px-4 m-2 rounded-xl border border-gray-200 dark:border-gray-700"
|
|
4
4
|
@click="handleMarkdownLinkClick"
|
|
5
5
|
:class="[
|
|
6
6
|
hasVegaLite ? 'w-full' : '',
|
|
7
|
-
props.role === 'user' ? 'bg-lightListTableHeading dark:bg-darkListTableHeading self-end'
|
|
7
|
+
props.role === 'user' ? 'bg-lightListTableHeading dark:bg-darkListTableHeading self-end max-w-[80%]'
|
|
8
8
|
: 'border-none self-start'
|
|
9
9
|
]"
|
|
10
10
|
>
|
package/dist/apiBasedTools.js
CHANGED
|
@@ -16,6 +16,7 @@ import YAML from 'yaml';
|
|
|
16
16
|
dayjs.extend(utc);
|
|
17
17
|
dayjs.extend(timezone);
|
|
18
18
|
const DEFAULT_USER_TIME_ZONE = 'UTC';
|
|
19
|
+
const DEFAULT_REQUEST_PROTOCOL = process.env.NODE_ENV === 'production' ? 'https' : 'http';
|
|
19
20
|
function getInputString(inputs, key) {
|
|
20
21
|
const value = inputs === null || inputs === void 0 ? void 0 : inputs[key];
|
|
21
22
|
return typeof value === 'string' && value ? value : undefined;
|
|
@@ -422,7 +423,7 @@ function getRequestOrigin(httpExtra) {
|
|
|
422
423
|
if (!host) {
|
|
423
424
|
return undefined;
|
|
424
425
|
}
|
|
425
|
-
const protocol = (_b = getHeaderValue(httpExtra === null || httpExtra === void 0 ? void 0 : httpExtra.headers, 'x-forwarded-proto')) !== null && _b !== void 0 ? _b :
|
|
426
|
+
const protocol = (_b = getHeaderValue(httpExtra === null || httpExtra === void 0 ? void 0 : httpExtra.headers, 'x-forwarded-proto')) !== null && _b !== void 0 ? _b : DEFAULT_REQUEST_PROTOCOL;
|
|
426
427
|
return `${protocol}://${host}`;
|
|
427
428
|
}
|
|
428
429
|
function resolveOpenApiRequestUrl(params) {
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
class="auto-scroll-container mask-y"
|
|
5
5
|
:wrapperStyle = "wrapperStyle"
|
|
6
6
|
:contentStyle = "contentStyle"
|
|
7
|
+
:autoHide = "scrollBarAutoHide"
|
|
7
8
|
@scroll="handleScroll"
|
|
8
9
|
>
|
|
9
10
|
<slot />
|
|
@@ -28,10 +29,12 @@ const props = withDefaults(defineProps<{
|
|
|
28
29
|
behavior?: ScrollBehavior
|
|
29
30
|
wrapperStyle?: Record<string, string>
|
|
30
31
|
contentStyle?: Record<string, string>
|
|
32
|
+
scrollBarAutoHide?: boolean
|
|
31
33
|
}>(), {
|
|
32
34
|
enabled: true,
|
|
33
35
|
threshold: 50,
|
|
34
|
-
behavior: 'instant'
|
|
36
|
+
behavior: 'instant',
|
|
37
|
+
scrollBarAutoHide: true
|
|
35
38
|
})
|
|
36
39
|
|
|
37
40
|
const containerRef = ref<HTMLDivElement | null>(null)
|
|
@@ -153,4 +156,8 @@ defineExpose({
|
|
|
153
156
|
transparent
|
|
154
157
|
);
|
|
155
158
|
}
|
|
159
|
+
|
|
160
|
+
.scrollbar__thumb {
|
|
161
|
+
border-radius: 0.25rem;
|
|
162
|
+
}
|
|
156
163
|
</style>
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
v-show="isExpanded"
|
|
22
22
|
:threshold="5"
|
|
23
23
|
:wrapperStyle="{
|
|
24
|
-
marginRight: '
|
|
24
|
+
marginRight: '1rem',
|
|
25
25
|
}"
|
|
26
|
+
:scrollBarAutoHide="false"
|
|
26
27
|
>
|
|
27
28
|
<ol class="ml-8 my-2 relative border-l border-l-2 border-black border-default border-listTableHeadingText dark:border-darkListTableHeadingText">
|
|
28
29
|
<template v-for="(part, index) in ToolOrReasoningParts" :key="index">
|
|
@@ -17,17 +17,12 @@
|
|
|
17
17
|
/>
|
|
18
18
|
</h3>
|
|
19
19
|
<transition name="expand">
|
|
20
|
-
<
|
|
21
|
-
v-if="isExpanded"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
>
|
|
27
|
-
<IncremarkContent
|
|
28
|
-
:content="reasoningText"
|
|
29
|
-
/>
|
|
30
|
-
</CustomAutoScrollContainer>
|
|
20
|
+
<IncremarkContent
|
|
21
|
+
v-if="isExpanded"
|
|
22
|
+
v-show="isExpanded"
|
|
23
|
+
class="pl-4 text-sm"
|
|
24
|
+
:content="reasoningText"
|
|
25
|
+
/>
|
|
31
26
|
</transition>
|
|
32
27
|
</li>
|
|
33
28
|
</template>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
|
-
class="
|
|
3
|
+
class="flex px-4 m-2 rounded-xl border border-gray-200 dark:border-gray-700"
|
|
4
4
|
@click="handleMarkdownLinkClick"
|
|
5
5
|
:class="[
|
|
6
6
|
hasVegaLite ? 'w-full' : '',
|
|
7
|
-
props.role === 'user' ? 'bg-lightListTableHeading dark:bg-darkListTableHeading self-end'
|
|
7
|
+
props.role === 'user' ? 'bg-lightListTableHeading dark:bg-darkListTableHeading self-end max-w-[80%]'
|
|
8
8
|
: 'border-none self-start'
|
|
9
9
|
]"
|
|
10
10
|
>
|