feat(agent): 增强 Agent 配置,新增结构化字段与聊天功能支持

This commit is contained in:
hugo committed 2026-07-07 11:10:32 +08:00
1 parent ac4262cd75
commit c8ce77199e
183 files changed
+11690 -2300

No files matched your search

@@ -14,6 +14,7 @@ import {
Mic,
Paperclip,
Send,
Square,
X,
} from 'lucide-vue-next';
import type { PendingAttachment } from '../types/shipping.types';
@@ -51,6 +52,7 @@ const props = defineProps<{
const emit = defineEmits<{
send: [];
stop: [];
'voice-click': [];
'remove-attachment': [id: string];
'local-files-selected': [event: Event];
@@ -386,6 +388,17 @@ watch(
</div>
<button
v-if="isThinking && !isUploadingAttachments"
type="button"
class="flex h-10 w-10 items-center justify-center rounded-full border border-rose-300 bg-rose-50 text-rose-600 shadow-sm transition-all duration-200 hover:scale-105 hover:bg-rose-100 active:scale-95"
:title="$t('chat.stopGenerating')"
:aria-label="$t('chat.stopGenerating')"
@click="emit('stop')"
>
<Square class="h-4 w-4 fill-current" />
</button>
<button
v-else
type="button"
:disabled="!canSendMessage"
class="flex h-10 w-10 items-center justify-center rounded-full border shadow-sm transition-all duration-200 disabled:cursor-not-allowed disabled:opacity-50"
@@ -394,7 +407,7 @@ watch(
: 'border-brand-500 bg-brand-500 text-white shadow-[0_0_0_4px_rgba(59,130,246,0.18)] hover:scale-105 hover:bg-brand-600 hover:shadow-[0_0_0_6px_rgba(59,130,246,0.24)] active:scale-95'"
@click="emit('send')"
>
<Loader2 v-if="isUploadingAttachments || isThinking" class="h-4 w-4 animate-spin" />
<Loader2 v-if="isUploadingAttachments" class="h-4 w-4 animate-spin" />
<Send v-else class="h-4 w-4" />
</button>
</div>