@adminforth/agent 1.26.0 → 1.26.2

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
@@ -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 206,204 bytes received 562 bytes 413,532.00 bytes/sec
42
- total size is 203,890 speedup is 0.99
41
+ sent 206,064 bytes received 562 bytes 413,252.00 bytes/sec
42
+ total size is 203,750 speedup is 0.99
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  <transition name="expand" class="max-h-96 overflow-y-auto mb-4 pt-1">
16
16
  <CustomAutoScrollContainer
17
- :enabled="true"
17
+ :enabled="isResponseInProgress"
18
18
  behavior="smooth"
19
19
  v-if="ToolOrReasoningParts.length > 0"
20
20
  v-show="isExpanded"
@@ -21,7 +21,7 @@
21
21
  :wrapperStyle="{
22
22
  marginRight: '8rem',
23
23
  }"
24
- :enabled="true"
24
+ :enabled="isStreaming"
25
25
  >
26
26
  <IncremarkContent
27
27
  :content="reasoningText"
@@ -38,19 +38,15 @@ import type { IPart } from '../types';
38
38
  import { ref, computed, watch, defineAsyncComponent } from 'vue';
39
39
  import ThreeDotsAnimation from './ThreeDotsAnimation.vue';
40
40
  import { extractTitleAndTextFromReasoning } from '../utils';
41
- import { useAgentStore } from '../composables/useAgentStore';
42
41
  import CustomAutoScrollContainer from '../CustomAutoScrollContainer.vue';
43
42
 
44
43
  const IncremarkContent = defineAsyncComponent(() => import('@incremark/vue').then(module => module.IncremarkContent))
45
- // const AutoScrollContainer = defineAsyncComponent(() => import('@incremark/vue').then(module => module.AutoScrollContainer))
46
44
 
47
45
  const props = defineProps<{
48
46
  state?: IPart['state']
49
47
  text?: string
50
48
  }>();
51
49
 
52
- const agentStore = useAgentStore();
53
-
54
50
  const isStreaming = computed(() => props.state === 'streaming');
55
51
  const isExpanded = ref(true);
56
52
  const parsedReasoning = computed(() => extractTitleAndTextFromReasoning(props.text ?? ''));
@@ -29,7 +29,7 @@
29
29
  <span v-if="props.data?.toolInfo?.durationMs" class="text-xs">({{ (props.data.toolInfo.durationMs / 1000).toFixed(2) }}s)</span>
30
30
  </p> -->
31
31
  <p class="break-all font-mono text-sm leading-5 text-nowrap">
32
- {{ props.data?.toolInfo?.toolInfo }}
32
+ {{ props.data?.toolInfo?.toolInfo ? props.data.toolInfo.toolInfo : props.data?.toolInfo?.toolName}}
33
33
  </p>
34
34
  </div>
35
35
  <IconAngleDownOutline
@@ -14,7 +14,7 @@
14
14
  </div>
15
15
  <transition name="expand" class="max-h-96 overflow-y-auto mb-4 pt-1">
16
16
  <CustomAutoScrollContainer
17
- :enabled="true"
17
+ :enabled="isResponseInProgress"
18
18
  behavior="smooth"
19
19
  v-if="ToolOrReasoningParts.length > 0"
20
20
  v-show="isExpanded"
@@ -21,7 +21,7 @@
21
21
  :wrapperStyle="{
22
22
  marginRight: '8rem',
23
23
  }"
24
- :enabled="true"
24
+ :enabled="isStreaming"
25
25
  >
26
26
  <IncremarkContent
27
27
  :content="reasoningText"
@@ -38,19 +38,15 @@ import type { IPart } from '../types';
38
38
  import { ref, computed, watch, defineAsyncComponent } from 'vue';
39
39
  import ThreeDotsAnimation from './ThreeDotsAnimation.vue';
40
40
  import { extractTitleAndTextFromReasoning } from '../utils';
41
- import { useAgentStore } from '../composables/useAgentStore';
42
41
  import CustomAutoScrollContainer from '../CustomAutoScrollContainer.vue';
43
42
 
44
43
  const IncremarkContent = defineAsyncComponent(() => import('@incremark/vue').then(module => module.IncremarkContent))
45
- // const AutoScrollContainer = defineAsyncComponent(() => import('@incremark/vue').then(module => module.AutoScrollContainer))
46
44
 
47
45
  const props = defineProps<{
48
46
  state?: IPart['state']
49
47
  text?: string
50
48
  }>();
51
49
 
52
- const agentStore = useAgentStore();
53
-
54
50
  const isStreaming = computed(() => props.state === 'streaming');
55
51
  const isExpanded = ref(true);
56
52
  const parsedReasoning = computed(() => extractTitleAndTextFromReasoning(props.text ?? ''));
@@ -29,7 +29,7 @@
29
29
  <span v-if="props.data?.toolInfo?.durationMs" class="text-xs">({{ (props.data.toolInfo.durationMs / 1000).toFixed(2) }}s)</span>
30
30
  </p> -->
31
31
  <p class="break-all font-mono text-sm leading-5 text-nowrap">
32
- {{ props.data?.toolInfo?.toolInfo }}
32
+ {{ props.data?.toolInfo?.toolInfo ? props.data.toolInfo.toolInfo : props.data?.toolInfo?.toolName}}
33
33
  </p>
34
34
  </div>
35
35
  <IconAngleDownOutline
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/agent",
3
- "version": "1.26.0",
3
+ "version": "1.26.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",