🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🔨 chore: premerge Task detail page UI (#13653)
Tsuki70e7e441b239
diff --git a/apps/cli/src/commands/task/index.ts b/apps/cli/src/commands/task/index.tsindex ea8c9d1feef..cc236dadc8f 100644--- a/apps/cli/src/commands/task/index.ts+++ b/apps/cli/src/commands/task/index.ts@@ -56,7 +56,7 @@ export function registerTaskCommand(program: Command) {const client = await getTrpcClient();const input: Record<string, any> = {};- if (options.status) input.status = options.status;+ if (options.status) input.statuses = [options.status];if (options.root) input.parentTaskId = null;if (options.parent) input.parentTaskId = options.parent;if (options.agent) input.assigneeAgentId = options.agent;diff --git a/locales/ar/auth.json b/locales/ar/auth.jsonindex 1bc8cd17621..34f7a5c19ad 100644--- a/locales/ar/auth.json+++ b/locales/ar/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "إعادة تعيين كلمة المرور","profile.email": "عنوان البريد الإلكتروني","profile.emailChangeSuccess": "تم إرسال بريد التحقق. يرجى التحقق من صندوق الوارد للبريد الإلكتروني الجديد.",- "profile.emailInputHint": "أدخل عنوان بريدك الإلكتروني الجديد","profile.emailInvalid": "يرجى إدخال عنوان بريد إلكتروني صالح","profile.emailPlaceholder": "[email protected]","profile.fullName": "الاسم الكامل",diff --git a/locales/ar/chat.json b/locales/ar/chat.jsonindex 919d4deebba..d5f5a637ca8 100644--- a/locales/ar/chat.json+++ b/locales/ar/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "مرحبًا، أنا **{{name}}**. جملة واحدة تكفي.\n\nهل ترغب في أن أتناسب مع سير عملك بشكل أفضل؟ انتقل إلى [إعدادات الوكيل]({{url}}) واملأ ملف تعريف الوكيل (يمكنك تعديله في أي وقت).","agentDefaultMessageWithSystemRole": "مرحبًا، أنا **{{name}}**. جملة واحدة تكفي — أنت المتحكم.","agentDefaultMessageWithoutEdit": "مرحبًا، أنا **{{name}}**. جملة واحدة تكفي — أنت المتحكم.",+ "agentProfile.files_one": "{{count}} ملف",+ "agentProfile.files_other": "{{count}} ملفات",+ "agentProfile.knowledgeBases_one": "{{count}} قاعدة معرفة",+ "agentProfile.knowledgeBases_other": "{{count}} قواعد معرفة",+ "agentProfile.skills_one": "{{count}} مهارة",+ "agentProfile.skills_other": "{{count}} مهارات","agents": "الوكلاء","artifact.generating": "يتم التوليد","artifact.inThread": "لا يمكن العرض في الموضوع الفرعي، يرجى التبديل إلى منطقة المحادثة الرئيسية للفتح",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "تم حذف المجموعة بنجاح","confirmRemoveSessionItemAlert": "أنت على وشك حذف هذا الوكيل. بمجرد الحذف، لا يمكن استعادته. يرجى تأكيد الإجراء.","confirmRemoveSessionSuccess": "تم حذف الوكيل بنجاح",- "createModal.createBlank": "إنشاء صفحة فارغة",- "createModal.groupPlaceholder": "صِف ما ينبغي أن يقوم به هذا الفريق...",+ "createModal.createBlank": "إنشاء فارغ",+ "createModal.groupPlaceholder": "صف ما ينبغي أن يقوم به هذا الفريق...","createModal.groupTitle": "ما الذي ينبغي أن يقوم به فريقك؟",- "createModal.placeholder": "صِف ما ينبغي أن يقوم به وكيلك...",+ "createModal.placeholder": "صف ما ينبغي أن يقوم به وكيلك...","createModal.title": "ما الذي ينبغي أن يقوم به وكيلك؟",+ "createTask.assignee": "المكلّف",+ "createTask.collapse": "إخفاء الإدخال",+ "createTask.expandToInline": "ربط بالصفحة",+ "createTask.instructionPlaceholder": "أضف وصفًا...",+ "createTask.submit": "إنشاء مهمة",+ "createTask.titlePlaceholder": "عنوان المهمة","defaultAgent": "الوكيل الافتراضي","defaultGroupChat": "مجموعة","defaultList": "القائمة الافتراضية",@@ -82,6 +94,7 @@"extendParams.title": "ميزات توسيع النموذج","extendParams.urlContext.desc": "عند التفعيل، سيتم تحليل الروابط تلقائيًا لاستخراج محتوى صفحة الويب الفعلي","extendParams.urlContext.title": "استخراج محتوى رابط الويب",+ "followUpPlaceholder": "متابعة. @ لإسناد مهام لوكلاء آخرين.","group.desc": "ادفع المهمة للأمام مع عدة وكلاء في مساحة مشتركة واحدة.","group.memberTooltip": "يوجد {{count}} عضو في المجموعة","group.orchestratorThinking": "المنسق يفكر...",@@ -124,10 +137,10 @@"groupWizard.title": "إنشاء مجموعة","groupWizard.useTemplate": "استخدام قالب","heteroAgent.fullAccess.label": "وصول كامل",- "heteroAgent.fullAccess.tooltip": "يعمل Claude Code محليًا مع صلاحية القراءة والكتابة الكاملة في دليل العمل. تغيير وضع الأذونات غير متاح حاليًا.",- "heteroAgent.resumeReset.cwdChanged": "تم تغيير دليل العمل. لا يمكن استئناف جلسة Claude Code السابقة إلا من دليلها الأصلي، لذا تم بدء محادثة جديدة.",+ "heteroAgent.fullAccess.tooltip": "يعمل Claude Code محليًا مع صلاحية قراءة/كتابة كاملة في دليل العمل. تبديل أوضاع الصلاحيات غير متاح بعد.",+ "heteroAgent.resumeReset.cwdChanged": "تم تغيير دليل العمل. لا يمكن استئناف جلسة Claude Code السابقة إلا من دليلها الأصلي، لذا بدأت محادثة جديدة.","heteroAgent.switchCwd.cancel": "إلغاء",- "heteroAgent.switchCwd.content": "جلسات Claude Code مربوطة بدليل عمل محدد. التغيير سيبدأ جلسة جديدة لهذا الموضوع — ستبقى رسائل الدردشة، لكن لا يمكن استئناف سياق الجلسة السابقة.",+ "heteroAgent.switchCwd.content": "جلسات Claude Code مرتبطة بدليل عمل محدد. سيؤدي التبديل إلى بدء جلسة جديدة لهذا الموضوع — ستبقى رسائل الدردشة، لكن لا يمكن استعادة سياق الجلسة السابقة.","heteroAgent.switchCwd.ok": "تبديل وبدء جلسة جديدة","heteroAgent.switchCwd.title": "تبديل دليل العمل؟","hideForYou": "محتوى الرسائل الخاصة مخفي. يرجى تفعيل 'عرض محتوى الرسائل الخاصة' في الإعدادات لعرضه.",@@ -243,8 +256,9 @@"operation.contextCompression": "السياق طويل جدًا، يتم ضغط السجل...","operation.execAgentRuntime": "جارٍ تحضير الرد","operation.execClientTask": "تنفيذ المهمة",- "operation.execHeterogeneousAgent": "تشغيل وكيل خارجي",- "operation.execServerAgentRuntime": "قيد التنفيذ… يمكنك تغيير المهام أو إغلاق الصفحة — ستستمر المهمة بالعمل.",+ "operation.execHeterogeneousAgent": "{{name}} قيد التشغيل",+ "operation.execServerAgentRuntime": "جاري التشغيل… يمكنك تبديل المهام أو إغلاق الصفحة — ستستمر المهمة بالعمل.",+ "operation.heterogeneousAgentFallback": "وكيل خارجي","operation.sendMessage": "جارٍ إرسال الرسالة","owner": "مالك المجموعة","pageCopilot.title": "وكيل الصفحة",@@ -285,6 +299,8 @@"searchAgents": "البحث عن وكلاء...","selectedAgents": "الوكلاء المحددون","sendPlaceholder": "اطرح سؤالًا، أنشئ، أو ابدأ مهمة، <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "اطلب من {{name}} تنفيذ مهمة...",+ "sendPlaceholderWithAgentAssignment": "اطلب أو أنشئ أو ابدأ مهمة. @ لإسناد مهام لوكلاء آخرين.","sessionGroup.config": "إدارة المجموعة","sessionGroup.confirmRemoveGroupAlert": "سيتم حذف هذه المجموعة. بعد الحذف، سيتم نقل الوكلاء إلى القائمة الافتراضية. يرجى تأكيد العملية.","sessionGroup.createAgentSuccess": "تم إنشاء الوكيل بنجاح",@@ -378,6 +394,7 @@"tab.integration": "التكامل","tab.profile": "ملف الوكيل","tab.search": "بحث",+ "tab.tasks": "المهام","task.activity.calling": "جارٍ استدعاء المهارة...","task.activity.clientExecuting": "يتم التنفيذ محليًا...","task.activity.generating": "جارٍ توليد الرد...",@@ -399,7 +416,111 @@"task.status.initializing": "جارٍ تهيئة المهمة...","task.subtask": "مهمة فرعية","task.title": "المهام",+ "taskDetail.activities": "الأنشطة",+ "taskDetail.activities.agentTag": "وكيل",+ "taskDetail.activities.fallback.brief": "نشر موجزًا",+ "taskDetail.activities.fallback.comment": "ترك تعليقًا",+ "taskDetail.activities.fallback.created": "أنشأ المهمة",+ "taskDetail.activities.fallback.topic": "بدأ موضوعًا",+ "taskDetail.activitiesEmpty": "لا توجد أي نشاطات بعد",+ "taskDetail.addSubtask": "إضافة مهمة فرعية",+ "taskDetail.blockedBy": "محجوب بواسطة {{id}}",+ "taskDetail.comment.cancel": "إلغاء",+ "taskDetail.comment.delete": "حذف",+ "taskDetail.comment.deleteConfirm.content": "سيتم حذف هذا التعليق بشكل دائم.",+ "taskDetail.comment.deleteConfirm.ok": "حذف",+ "taskDetail.comment.deleteConfirm.title": "حذف هذا التعليق؟",+ "taskDetail.comment.edit": "تعديل",+ "taskDetail.comment.save": "حفظ",+ "taskDetail.commentPlaceholder": "اترك تعليقًا...",+ "taskDetail.deleteConfirm.content": "لا يمكن التراجع عن هذا الإجراء.",+ "taskDetail.deleteConfirm.ok": "حذف",+ "taskDetail.deleteConfirm.title": "هل تريد حذف هذه المهمة؟",+ "taskDetail.instruction": "التعليمات",+ "taskDetail.instructionPlaceholder": "اضغط لتحرير تعليمات المهمة...",+ "taskDetail.latestActivity.brief": "الموجز: {{title}}",+ "taskDetail.latestActivity.briefOnly": "الموجز",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "الموجز ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "الموجز ({{type}})",+ "taskDetail.latestActivity.topic": "الموضوع: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "الموضوع رقم {{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "موضوع بدون عنوان",+ "taskDetail.modelConfig": "تجاوز الإعدادات النموذجية",+ "taskDetail.navigation": "التنقل",+ "taskDetail.pauseTask": "إيقاف المهمة مؤقتًا",+ "taskDetail.priority.high": "عالية",+ "taskDetail.priority.low": "منخفضة",+ "taskDetail.priority.none": "دون أولوية",+ "taskDetail.priority.normal": "عادية",+ "taskDetail.priority.urgent": "عاجلة",+ "taskDetail.properties": "الخصائص",+ "taskDetail.reassignDisabled": "لا يمكن إعادة إسناد الوكيل أثناء تشغيل المهمة",+ "taskDetail.rerunTask": "إعادة تشغيل المهمة",+ "taskDetail.runTask": "تشغيل المهمة",+ "taskDetail.saveModelConfig": "حفظ",+ "taskDetail.status.backlog": "قائمة الانتظار",+ "taskDetail.status.canceled": "أُلغيت",+ "taskDetail.status.completed": "مكتملة",+ "taskDetail.status.failed": "فشلت",+ "taskDetail.status.paused": "متوقفة مؤقتًا",+ "taskDetail.status.running": "قيد التنفيذ",+ "taskDetail.stopTask": "إيقاف المهمة",+ "taskDetail.subIssueOf": "فرعية لـ",+ "taskDetail.subtaskInstructionPlaceholder": "صف المهمة الفرعية...",+ "taskDetail.subtasks": "المهام الفرعية",+ "taskDetail.titlePlaceholder": "أدخل عنوان المهمة...",+ "taskDetail.topicDrawer.untitled": "بلا عنوان",+ "taskDetail.updateFailed": "فشل تحديث المهمة",+ "taskList.activeTasks": "المهام النشطة",+ "taskList.all": "جميع المهام",+ "taskList.breadcrumb.task": "مهمة",+ "taskList.empty": "لا توجد مهام بعد",+ "taskList.form.grouping": "التجميع",+ "taskList.form.orderCompletedByRecency": "ترتيب المهام المكتملة حسب الأحدث",+ "taskList.form.ordering": "الترتيب",+ "taskList.form.subGrouping": "التجميع الفرعي",+ "taskList.groupBy.assignee": "المكلّف",+ "taskList.groupBy.none": "دون تجميع",+ "taskList.groupBy.priority": "الأولوية",+ "taskList.groupBy.status": "الحالة",+ "taskList.orderBy.assignee": "المكلّف",+ "taskList.orderBy.createdAt": "تاريخ الإنشاء",+ "taskList.orderBy.priority": "الأولوية",+ "taskList.orderBy.status": "الحالة",+ "taskList.orderBy.title": "العنوان",+ "taskList.orderBy.updatedAt": "تاريخ التحديث",+ "taskList.title": "المهام",+ "taskList.unassigned": "غير مكلّف",+ "taskList.view.board": "لوحة",+ "taskList.view.list": "قائمة",+ "taskList.viewAll": "عرض الكل",+ "taskSchedule.clear": "مسح",+ "taskSchedule.enable": "تفعيل الأتمتة",+ "taskSchedule.every": "كل",+ "taskSchedule.hours": "ساعات",+ "taskSchedule.interval": "متكرّر",+ "taskSchedule.intervalTab": "متكرّر",+ "taskSchedule.minutes": "دقائق",+ "taskSchedule.scheduler": "الجدولة",+ "taskSchedule.schedulerNotReady": "ميزة الجدولة ستتوفر قريبًا. استخدم التكرار الآن.",+ "taskSchedule.schedulerTab": "الجدولة",+ "taskSchedule.seconds": "ثوانٍ",+ "taskSchedule.tag.add": "تعيين جدول",+ "taskSchedule.tag.every": "كل {{interval}}",+ "taskSchedule.tag.heartbeat": "نبض · {{every}}",+ "taskSchedule.tag.schedule": "الجدول · {{schedule}}{{timezone}}",+ "taskSchedule.title": "الجدول",+ "taskSchedule.unit.hour_one": "{{count}} ساعة",+ "taskSchedule.unit.hour_other": "{{count}} ساعات",+ "taskSchedule.unit.minute_one": "{{count}} دقيقة",+ "taskSchedule.unit.minute_other": "{{count}} دقائق",+ "taskSchedule.unit.second_one": "{{count}} ثانية",+ "taskSchedule.unit.second_other": "{{count}} ثوانٍ",+ "thread.closeSubagentThread": "طي محادثة الوكيل الفرعي","thread.divider": "موضوع فرعي",+ "thread.openSubagentThread": "عرض محادثة الوكيل الفرعي كاملة",+ "thread.subagentBadge": "وكيل فرعي","thread.threadMessageCount": "{{messageCount}} رسالة","thread.title": "موضوع فرعي","todoProgress.allCompleted": "تم إكمال جميع المهام",@@ -429,7 +550,7 @@"tool.intervention.mode.manual": "يدوي","tool.intervention.mode.manualDesc": "يتطلب الموافقة اليدوية لكل استدعاء","tool.intervention.onboarding.agentIdentity.applyHint": "ستظهر الهوية الجديدة بعد الموافقة.",- "tool.intervention.onboarding.agentIdentity.description": "الموافقة على هذا التغيير ستحدّث الوكيل المعروض في الوارد وفي محادثة الإعداد.",+ "tool.intervention.onboarding.agentIdentity.description": "الموافقة على هذا التغيير ستحدّث الوكيل المعروض في البريد الوارد وفي محادثة الإعداد هذه.","tool.intervention.onboarding.agentIdentity.emoji": "صورة الوكيل","tool.intervention.onboarding.agentIdentity.eyebrow": "موافقة الإعداد","tool.intervention.onboarding.agentIdentity.name": "اسم الوكيل",@@ -488,9 +609,9 @@"workflow.collapse": "طي","workflow.expandFull": "توسيع كامل","workflow.failedSuffix": "(فشل)",- "workflow.summaryFailed": "{{count}} فشل",- "workflow.summaryMoreTools": "+{{count}} المزيد",- "workflow.summaryTotalCalls": "{{count}} إجمالي الطلبات",+ "workflow.summaryFailed": "{{count}} فشلت",+ "workflow.summaryMoreTools": "{{count}} أنواع أدوات",+ "workflow.summaryTotalCalls": "{{count}} مكالمات إجمالية","workflow.thoughtForDuration": "تفكير لمدة {{duration}}","workflow.toolDisplayName.activateDevice": "تم تفعيل الجهاز","workflow.toolDisplayName.activateSkill": "تم تفعيل مهارة",@@ -585,8 +706,8 @@"workingPanel.resources.empty": "لا توجد مستندات بعد. ستظهر المستندات المرتبطة بهذا الوكيل هنا.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "الكل",- "workingPanel.resources.filter.documents": "المستندات",- "workingPanel.resources.filter.web": "الويب",+ "workingPanel.resources.filter.documents": "مستندات",+ "workingPanel.resources.filter.web": "ويب","workingPanel.resources.loading": "Loading resources...","workingPanel.resources.previewError": "Failed to load preview","workingPanel.resources.previewLoading": "Loading preview...",diff --git a/locales/ar/home.json b/locales/ar/home.jsonindex 7826c1da753..b55ac2c57b5 100644--- a/locales/ar/home.json+++ b/locales/ar/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "لا يمكن إضافة أي وكلاء في الوقت الحالي","agentSelection.noSelected": "لم يتم اختيار أي وكلاء","agentSelection.search": "لم يتم العثور على وكلاء مطابقين",+ "brief.action.acknowledge": "إقرار",+ "brief.action.approve": "الموافقة",+ "brief.action.feedback": "ملاحظات",+ "brief.action.retry": "إعادة المحاولة",+ "brief.addFeedback": "مشاركة الملاحظات",+ "brief.collapse": "عرض أقل",+ "brief.commentPlaceholder": "شارك ملاحظاتك...",+ "brief.commentSubmit": "إرسال الملاحظات",+ "brief.expandAll": "عرض المزيد",+ "brief.feedbackSent": "تمت مشاركة الملاحظات",+ "brief.resolved": "تم وضع علامة كمُعالَج",+ "brief.title": "الموجز اليومي",+ "brief.viewAllTasks": "عرض جميع المهام","project.create": "مشروع جديد",- "project.deleteConfirm": "سيتم حذف هذا المشروع ولا يمكن استعادته. يرجى التأكيد للمتابعة.",+ "project.deleteConfirm": "سيتم حذف هذا المشروع ولن يمكن استعادته. أكد للمتابعة.","starter.createAgent": "إنشاء وكيل","starter.createGroup": "إنشاء مجموعة","starter.deepResearch": "بحث معمق",diff --git a/locales/ar/plugin.json b/locales/ar/plugin.jsonindex f2d22062f87..4dc34c0298e 100644--- a/locales/ar/plugin.json+++ b/locales/ar/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "الملحق","builtins.lobe-agent-management.render.installPlugin.success": "تم التثبيت بنجاح","builtins.lobe-agent-management.title": "مدير الوكلاء",+ "builtins.lobe-claude-code.agent.instruction": "تعليمات",+ "builtins.lobe-claude-code.agent.result": "النتيجة","builtins.lobe-claude-code.todoWrite.allDone": "جميع المهام مكتملة","builtins.lobe-claude-code.todoWrite.currentStep": "الخطوة الحالية","builtins.lobe-claude-code.todoWrite.todos": "المهام",diff --git a/locales/ar/topic.json b/locales/ar/topic.jsonindex 1539931413e..8b0b4b13cdc 100644--- a/locales/ar/topic.json+++ b/locales/ar/topic.json@@ -15,20 +15,24 @@"actions.export": "تصدير المواضيع","actions.favorite": "المفضلة","actions.import": "استيراد المحادثة",+ "actions.markCompleted": "وضع علامة كمكتمل","actions.openInNewTab": "افتح في علامة تبويب جديدة","actions.openInNewWindow": "فتح في نافذة جديدة","actions.removeAll": "حذف جميع المواضيع","actions.removeUnstarred": "حذف المواضيع غير المميزة","actions.unfavorite": "إزالة من المفضلة",+ "actions.unmarkCompleted": "وضع علامة كنشط","defaultTitle": "موضوع افتراضي","displayItems": "عرض العناصر","duplicateLoading": "جارٍ نسخ الموضوع...","duplicateSuccess": "تم نسخ الموضوع بنجاح","favorite": "مفضل",+ "filter.filter": "تصفية","filter.groupMode.byProject": "حسب المشروع","filter.groupMode.byTime": "حسب الوقت","filter.groupMode.flat": "عرض مسطّح","filter.organize": "تنظيم",+ "filter.showCompleted": "تضمين المهام المكتملة","filter.sort": "الفرز حسب","filter.sortBy.createdAt": "وقت الإنشاء","filter.sortBy.updatedAt": "وقت التحديث",@@ -52,6 +56,7 @@"renameModal.title": "إعادة تسمية الموضوع","searchPlaceholder": "ابحث في المواضيع...","searchResultEmpty": "لم يتم العثور على نتائج.",+ "taskManager.welcome": "اسألني عن مهامك","temp": "مؤقت","title": "الموضوع"}diff --git a/locales/bg-BG/auth.json b/locales/bg-BG/auth.jsonindex 7ad0b366955..d1273bc36c2 100644--- a/locales/bg-BG/auth.json+++ b/locales/bg-BG/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Нулиране на парола","profile.email": "Имейл адрес","profile.emailChangeSuccess": "Имейлът за потвърждение е изпратен. Моля, проверете новата си пощенска кутия.",- "profile.emailInputHint": "Въведете новия си имейл адрес","profile.emailInvalid": "Моля, въведете валиден имейл адрес","profile.emailPlaceholder": "[email protected]","profile.fullName": "Пълно име",diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.jsonindex 636757608a5..3577575e3d9 100644--- a/locales/bg-BG/chat.json+++ b/locales/bg-BG/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Здравей, аз съм **{{name}}**. Едно изречение е достатъчно.\n\nИскате да се адаптирам по-добре към вашия работен процес? Отидете в [Настройки на Агента]({{url}}) и попълнете Профила на Агента (можете да го редактирате по всяко време).","agentDefaultMessageWithSystemRole": "Здравей, аз съм **{{name}}**. Едно изречение е достатъчно — вие контролирате.","agentDefaultMessageWithoutEdit": "Здравей, аз съм **{{name}}**. Едно изречение е достатъчно — вие контролирате.",+ "agentProfile.files_one": "{{count}} файл",+ "agentProfile.files_other": "{{count}} файла",+ "agentProfile.knowledgeBases_one": "{{count}} база знания",+ "agentProfile.knowledgeBases_other": "{{count}} бази знания",+ "agentProfile.skills_one": "{{count}} умение",+ "agentProfile.skills_other": "{{count}} умения","agents": "Агенти","artifact.generating": "Генериране","artifact.inThread": "Не може да се прегледа в подтема, моля преминете към основната зона за разговори, за да отворите",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "Групата е изтрита успешно","confirmRemoveSessionItemAlert": "Ще изтриете този агент. След изтриване, той не може да бъде възстановен. Моля, потвърдете действието си.","confirmRemoveSessionSuccess": "Агентът е премахнат успешно",- "createModal.createBlank": "Създай празен",+ "createModal.createBlank": "Създаване на празен","createModal.groupPlaceholder": "Опишете какво трябва да прави тази група...","createModal.groupTitle": "Какво трябва да прави вашата група?","createModal.placeholder": "Опишете какво трябва да прави вашият агент...","createModal.title": "Какво трябва да прави вашият агент?",+ "createTask.assignee": "Изпълнител",+ "createTask.collapse": "Скрий полето",+ "createTask.expandToInline": "Закачи към страницата",+ "createTask.instructionPlaceholder": "Добавете описание...",+ "createTask.submit": "Създаване на задача",+ "createTask.titlePlaceholder": "Заглавие на задачата","defaultAgent": "Агент по подразбиране","defaultGroupChat": "Група","defaultList": "Списък по подразбиране",@@ -82,6 +94,7 @@"extendParams.title": "Разширени функции на модела","extendParams.urlContext.desc": "Когато е активирано, уеб връзките ще се анализират автоматично, за да се извлече съдържанието на страницата","extendParams.urlContext.title": "Извличане на съдържание от уеб връзки",+ "followUpPlaceholder": "Последващо действие. Използвайте @, за да възлагате задачи на други агенти.","group.desc": "Придвижете задача напред с няколко Агента в едно споделено пространство.","group.memberTooltip": "Групата има {{count}} член(а)","group.orchestratorThinking": "Оркестраторът мисли...",@@ -124,10 +137,10 @@"groupWizard.title": "Създай група","groupWizard.useTemplate": "Използвай шаблон","heteroAgent.fullAccess.label": "Пълен достъп",- "heteroAgent.fullAccess.tooltip": "Claude Code се изпълнява локално с пълен достъп за четене/запис в работната директория. Превключването на режимите за разрешения все още не е налично.",- "heteroAgent.resumeReset.cwdChanged": "Работната директория е променена. Предишната сесия на Claude Code може да бъде възобновена само от оригиналната си директория, затова е започнат нов разговор.",+ "heteroAgent.fullAccess.tooltip": "Claude Code работи локално с пълен достъп за четене/запис в работната директория. Превключването на режимите на достъп все още не е налично.",+ "heteroAgent.resumeReset.cwdChanged": "Работната директория е променена. Предишната сесия на Claude Code може да бъде продължена само от оригиналната ѝ директория, затова е започнат нов разговор.","heteroAgent.switchCwd.cancel": "Отказ",- "heteroAgent.switchCwd.content": "Сесиите на Claude Code са фиксирани към работна директория. Превключването ще започне нова сесия за тази тема — съобщенията в чата се запазват, но контекстът на предишната сесия не може да бъде възстановен.",+ "heteroAgent.switchCwd.content": "Сесиите на Claude Code са фиксирани към работна директория. Превключването ще започне нова сесия за тази тема — чат съобщенията се запазват, но контекстът на предишната сесия не може да бъде възстановен.","heteroAgent.switchCwd.ok": "Превключи и започни нова сесия","heteroAgent.switchCwd.title": "Превключване на работната директория?","hideForYou": "Съдържанието на личното съобщение е скрито. Моля, активирайте 'Показване на съдържание на лични съобщения' в настройките, за да го видите.",@@ -141,7 +154,7 @@"input.addUser": "Добави потребителско съобщение","input.disclaimer": "Агентите могат да допускат грешки. Използвайте собствена преценка за важна информация.","input.errorMsg": "Изпращането не бе успешно: {{errorMsg}}. Опитайте отново или по-късно.",- "input.more": "още",+ "input.more": "Още","input.send": "Изпрати","input.sendWithCmdEnter": "Натиснете <key/>, за да изпратите","input.sendWithEnter": "Натиснете <key/>, за да изпратите",@@ -231,7 +244,7 @@"minimap.senderAssistant": "Агент","minimap.senderUser": "Вие","newAgent": "Създай агент",- "newClaudeCodeAgent": "Добави Claude Code",+ "newClaudeCodeAgent": "Добавяне на Claude Code","newGroupChat": "Създай група","newPage": "Създай страница","noAgentsYet": "Тази група все още няма членове. Натиснете бутона +, за да поканите агенти.",@@ -243,8 +256,9 @@"operation.contextCompression": "Контекстът е твърде дълъг, компресиране на историята...","operation.execAgentRuntime": "Подготвяне на отговор","operation.execClientTask": "Изпълнение на задача",- "operation.execHeterogeneousAgent": "Външен агент работи",- "operation.execServerAgentRuntime": "Работи… Можете да превключите задачи или да затворите страницата — задачата ще продължи.",+ "operation.execHeterogeneousAgent": "{{name}} работи",+ "operation.execServerAgentRuntime": "Изпълнява се… Можете да превключите задачи или да затворите страницата — задачата ще продължи.",+ "operation.heterogeneousAgentFallback": "Външен агент","operation.sendMessage": "Изпращане на съобщение","owner": "Собственик на групата","pageCopilot.title": "Агент на страницата",@@ -285,6 +299,8 @@"searchAgents": "Търсене на агенти...","selectedAgents": "Избрани агенти","sendPlaceholder": "Попитай, създай или започни задача, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Помолете {{name}} да изпълни задача...",+ "sendPlaceholderWithAgentAssignment": "Питайте, създайте или започнете задача. Използвайте @, за да възлагате задачи на други агенти.","sessionGroup.config": "Управление на групата","sessionGroup.confirmRemoveGroupAlert": "Тази група ще бъде изтрита. След изтриването агентите ще бъдат преместени в списъка по подразбиране. Потвърдете действието си.","sessionGroup.createAgentSuccess": "Агентът е създаден успешно",@@ -378,6 +394,7 @@"tab.integration": "Интеграция","tab.profile": "Профил на агента","tab.search": "Търсене",+ "tab.tasks": "Задачи","task.activity.calling": "Извикване на умение...","task.activity.clientExecuting": "Изпълнява се локално...","task.activity.generating": "Генериране на отговор...",@@ -399,7 +416,111 @@"task.status.initializing": "Инициализиране на задачата...","task.subtask": "Подзадача","task.title": "Задачи",+ "taskDetail.activities": "Дейности",+ "taskDetail.activities.agentTag": "Агент",+ "taskDetail.activities.fallback.brief": "публикува кратко описание",+ "taskDetail.activities.fallback.comment": "остави коментар",+ "taskDetail.activities.fallback.created": "създаде задачата",+ "taskDetail.activities.fallback.topic": "започна тема",+ "taskDetail.activitiesEmpty": "Все още няма дейности",+ "taskDetail.addSubtask": "Добавяне на подзадача",+ "taskDetail.blockedBy": "Блокирано от {{id}}",+ "taskDetail.comment.cancel": "Отказ",+ "taskDetail.comment.delete": "Изтриване",+ "taskDetail.comment.deleteConfirm.content": "Този коментар ще бъде изтрит завинаги.",+ "taskDetail.comment.deleteConfirm.ok": "Изтриване",+ "taskDetail.comment.deleteConfirm.title": "Изтриване на този коментар?",+ "taskDetail.comment.edit": "Редактиране",+ "taskDetail.comment.save": "Запази",+ "taskDetail.commentPlaceholder": "Оставете коментар...",+ "taskDetail.deleteConfirm.content": "Това действие не може да бъде отменено.",+ "taskDetail.deleteConfirm.ok": "Изтриване",+ "taskDetail.deleteConfirm.title": "Да изтрия ли тази задача?",+ "taskDetail.instruction": "Инструкция",+ "taskDetail.instructionPlaceholder": "Кликнете, за да редактирате инструкциите за задачата...",+ "taskDetail.latestActivity.brief": "Кратко: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Кратко",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Кратко ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Кратко ({{type}})",+ "taskDetail.latestActivity.topic": "Тема: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Тема №{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Неозаглавена тема",+ "taskDetail.modelConfig": "Замяна на модела",+ "taskDetail.navigation": "Навигация",+ "taskDetail.pauseTask": "Пауза на задачата",+ "taskDetail.priority.high": "Висок",+ "taskDetail.priority.low": "Нисък",+ "taskDetail.priority.none": "Без приоритет",+ "taskDetail.priority.normal": "Нормален",+ "taskDetail.priority.urgent": "Спешен",+ "taskDetail.properties": "Свойства",+ "taskDetail.reassignDisabled": "Не може да бъде преназначен агент, докато задачата се изпълнява",+ "taskDetail.rerunTask": "Повторно изпълнение",+ "taskDetail.runTask": "Стартиране на задача",+ "taskDetail.saveModelConfig": "Запази",+ "taskDetail.status.backlog": "Изчакваща",+ "taskDetail.status.canceled": "Отменена",+ "taskDetail.status.completed": "Завършена",+ "taskDetail.status.failed": "Неуспешна",+ "taskDetail.status.paused": "Пауза",+ "taskDetail.status.running": "В процес",+ "taskDetail.stopTask": "Спиране на задачата",+ "taskDetail.subIssueOf": "Подзадача към",+ "taskDetail.subtaskInstructionPlaceholder": "Опишете подзадачата...",+ "taskDetail.subtasks": "Подзадачи",+ "taskDetail.titlePlaceholder": "Въведете заглавие на задачата...",+ "taskDetail.topicDrawer.untitled": "Без заглавие",+ "taskDetail.updateFailed": "Неуспешно обновяване на задачата",+ "taskList.activeTasks": "Активни задачи",+ "taskList.all": "Всички задачи",+ "taskList.breadcrumb.task": "Задача",+ "taskList.empty": "Все още няма задачи",+ "taskList.form.grouping": "Групиране",+ "taskList.form.orderCompletedByRecency": "Подреди завършените задачи по актуалност",+ "taskList.form.ordering": "Подреждане",+ "taskList.form.subGrouping": "Подгрупиране",+ "taskList.groupBy.assignee": "Отговорник",+ "taskList.groupBy.none": "Без групиране",+ "taskList.groupBy.priority": "Приоритет",+ "taskList.groupBy.status": "Статус",+ "taskList.orderBy.assignee": "Отговорник",+ "taskList.orderBy.createdAt": "Дата на създаване",+ "taskList.orderBy.priority": "Приоритет",+ "taskList.orderBy.status": "Статус",+ "taskList.orderBy.title": "Заглавие",+ "taskList.orderBy.updatedAt": "Дата на обновяване",+ "taskList.title": "Задачи",+ "taskList.unassigned": "Без отговорник",+ "taskList.view.board": "Табло",+ "taskList.view.list": "Списък",+ "taskList.viewAll": "Преглед на всички",+ "taskSchedule.clear": "Изчистване",+ "taskSchedule.enable": "Активиране на автоматизация",+ "taskSchedule.every": "Всеки",+ "taskSchedule.hours": "Часа",+ "taskSchedule.interval": "Повтарящо се",+ "taskSchedule.intervalTab": "Повтарящо се",+ "taskSchedule.minutes": "Минути",+ "taskSchedule.scheduler": "Планировчик",+ "taskSchedule.schedulerNotReady": "Планировчикът скоро ще бъде наличен. Засега използвайте Повтарящо се.",+ "taskSchedule.schedulerTab": "Планировчик",+ "taskSchedule.seconds": "Секунди",+ "taskSchedule.tag.add": "Задай график",+ "taskSchedule.tag.every": "всеки {{interval}}",+ "taskSchedule.tag.heartbeat": "Ритъм · {{every}}",+ "taskSchedule.tag.schedule": "График · {{schedule}}{{timezone}}",+ "taskSchedule.title": "График",+ "taskSchedule.unit.hour_one": "{{count}} час",+ "taskSchedule.unit.hour_other": "{{count}} часа",+ "taskSchedule.unit.minute_one": "{{count}} минута",+ "taskSchedule.unit.minute_other": "{{count}} минути",+ "taskSchedule.unit.second_one": "{{count}} секунда",+ "taskSchedule.unit.second_other": "{{count}} секунди",+ "thread.closeSubagentThread": "Свиване на разговора със субагента","thread.divider": "Подтема",+ "thread.openSubagentThread": "Преглед на пълния разговор със субагента",+ "thread.subagentBadge": "Субагент","thread.threadMessageCount": "{{messageCount}} съобщения","thread.title": "Подтема","todoProgress.allCompleted": "Всички задачи са изпълнени",@@ -428,15 +549,15 @@"tool.intervention.mode.autoRunDesc": "Автоматично одобрявай всички изпълнения на инструменти","tool.intervention.mode.manual": "Ръчно","tool.intervention.mode.manualDesc": "Изисква ръчно одобрение за всяко извикване",- "tool.intervention.onboarding.agentIdentity.applyHint": "Новата самоличност ще се появи след одобрение.",- "tool.intervention.onboarding.agentIdentity.description": "Одобрението на тази промяна актуализира Агента, показван във Входящи и в този въвеждащ разговор.",+ "tool.intervention.onboarding.agentIdentity.applyHint": "Новата идентичност ще се появи след одобрение.",+ "tool.intervention.onboarding.agentIdentity.description": "Одобрението на тази промяна обновява Агента, показан във входящите и в този разговор за въвеждане.","tool.intervention.onboarding.agentIdentity.emoji": "Аватар на агента",- "tool.intervention.onboarding.agentIdentity.eyebrow": "Одобрение при въвеждане",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "Одобрение за въвеждане","tool.intervention.onboarding.agentIdentity.name": "Име на агента",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Агент във Входящи",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Входящ агент","tool.intervention.onboarding.agentIdentity.targetOnboarding": "Текущ агент за въвеждане","tool.intervention.onboarding.agentIdentity.targets": "Отнася се за",- "tool.intervention.onboarding.agentIdentity.title": "Потвърдете актуализацията на самоличността на агента",+ "tool.intervention.onboarding.agentIdentity.title": "Потвърждение за обновяване на идентичността на агента","tool.intervention.pending": "В очакване","tool.intervention.reject": "Отхвърли","tool.intervention.rejectAndContinue": "Отхвърли и опитай отново",@@ -459,7 +580,7 @@"topic.openNewTopic": "Отвори нова тема","topic.recent": "Скорошни теми","topic.saveCurrentMessages": "Запази текущата сесия като тема",- "topic.viewAll": "Виж всички теми",+ "topic.viewAll": "Преглед на всички теми","translate.action": "Преведи","translate.clear": "Изчисти превода","tts.action": "Текст към реч",@@ -489,8 +610,8 @@"workflow.expandFull": "Разгъни напълно","workflow.failedSuffix": "(неуспешно)","workflow.summaryFailed": "{{count}} неуспешни",- "workflow.summaryMoreTools": "+{{count}} още",- "workflow.summaryTotalCalls": "{{count}} общо извиквания",+ "workflow.summaryMoreTools": "{{count}} вида инструменти",+ "workflow.summaryTotalCalls": "{{count}} извиквания общо","workflow.thoughtForDuration": "Мисли в продължение на {{duration}}","workflow.toolDisplayName.activateDevice": "Активирано устройство","workflow.toolDisplayName.activateSkill": "Активира умение",@@ -593,7 +714,7 @@"workingPanel.resources.renameEmpty": "Title cannot be empty","workingPanel.resources.renameError": "Failed to rename document","workingPanel.resources.renameSuccess": "Document renamed",- "workingPanel.resources.viewMode.list": "Изглед списък",+ "workingPanel.resources.viewMode.list": "Списъчен изглед","workingPanel.resources.viewMode.tree": "Дървовиден изглед","workingPanel.title": "Working Panel","you": "Вие",diff --git a/locales/bg-BG/home.json b/locales/bg-BG/home.jsonindex 305db8e857c..c2dafbee086 100644--- a/locales/bg-BG/home.json+++ b/locales/bg-BG/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "В момента не могат да бъдат добавени агенти","agentSelection.noSelected": "Няма избрани агенти","agentSelection.search": "Няма намерени съвпадащи агенти",+ "brief.action.acknowledge": "Потвърждаване",+ "brief.action.approve": "Одобряване",+ "brief.action.feedback": "Обратна връзка",+ "brief.action.retry": "Опит отново",+ "brief.addFeedback": "Споделяне на обратна връзка",+ "brief.collapse": "Покажи по-малко",+ "brief.commentPlaceholder": "Споделете вашата обратна връзка...",+ "brief.commentSubmit": "Изпращане на обратна връзка",+ "brief.expandAll": "Покажи повече",+ "brief.feedbackSent": "Обратната връзка е споделена",+ "brief.resolved": "Отбелязано като решено",+ "brief.title": "Дневен обзор",+ "brief.viewAllTasks": "Преглед на всички задачи","project.create": "Нов проект","project.deleteConfirm": "Този проект ще бъде изтрит и не може да бъде възстановен. Потвърдете, за да продължите.","starter.createAgent": "Създай агент",diff --git a/locales/bg-BG/plugin.json b/locales/bg-BG/plugin.jsonindex bed614a37d7..526e8433f48 100644--- a/locales/bg-BG/plugin.json+++ b/locales/bg-BG/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Плъгин","builtins.lobe-agent-management.render.installPlugin.success": "Успешно инсталиран","builtins.lobe-agent-management.title": "Мениджър на агенти",+ "builtins.lobe-claude-code.agent.instruction": "Инструкция",+ "builtins.lobe-claude-code.agent.result": "Резултат","builtins.lobe-claude-code.todoWrite.allDone": "Всички задачи са изпълнени","builtins.lobe-claude-code.todoWrite.currentStep": "Текуща стъпка","builtins.lobe-claude-code.todoWrite.todos": "Задачи",diff --git a/locales/bg-BG/topic.json b/locales/bg-BG/topic.jsonindex b3022635c41..c246a0cd15b 100644--- a/locales/bg-BG/topic.json+++ b/locales/bg-BG/topic.json@@ -15,20 +15,24 @@"actions.export": "Експортирай теми","actions.favorite": "Любимо","actions.import": "Импортирай разговор",+ "actions.markCompleted": "Отбележи като завършена","actions.openInNewTab": "Отвори в нов раздел","actions.openInNewWindow": "Отвори в нов прозорец","actions.removeAll": "Изтрий всички теми","actions.removeUnstarred": "Изтрий немаркираните теми","actions.unfavorite": "Нелюбимо",+ "actions.unmarkCompleted": "Отбележи като активна","defaultTitle": "Тема по подразбиране","displayItems": "Показване на елементи","duplicateLoading": "Копиране на тема...","duplicateSuccess": "Темата беше успешно копирана","favorite": "Любима",+ "filter.filter": "Филтър","filter.groupMode.byProject": "По проект","filter.groupMode.byTime": "По време","filter.groupMode.flat": "Плосък изглед","filter.organize": "Организирай",+ "filter.showCompleted": "Включи завършените","filter.sort": "Сортирай по","filter.sortBy.createdAt": "Време на създаване","filter.sortBy.updatedAt": "Време на обновяване",@@ -52,6 +56,7 @@"renameModal.title": "Преименуване на тема","searchPlaceholder": "Търсене в темите...","searchResultEmpty": "Няма намерени резултати от търсенето.",+ "taskManager.welcome": "Попитай ме за твоите задачи","temp": "Временна","title": "Тема"}diff --git a/locales/de-DE/auth.json b/locales/de-DE/auth.jsonindex ddb67151a3f..977ac1a1bc8 100644--- a/locales/de-DE/auth.json+++ b/locales/de-DE/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Passwort zurücksetzen","profile.email": "E-Mail-Adresse","profile.emailChangeSuccess": "Bestätigungs-E-Mail gesendet. Bitte überprüfen Sie Ihren neuen E-Mail-Posteingang.",- "profile.emailInputHint": "Geben Sie Ihre neue E-Mail-Adresse ein","profile.emailInvalid": "Bitte geben Sie eine gültige E-Mail-Adresse ein","profile.emailPlaceholder": "[email protected]","profile.fullName": "Vollständiger Name",diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.jsonindex 8131f15c181..3adf863f94f 100644--- a/locales/de-DE/chat.json+++ b/locales/de-DE/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Hallo, ich bin **{{name}}**. Ein Satz genügt.\n\nMöchten Sie, dass ich besser zu Ihrem Arbeitsablauf passe? Gehen Sie zu [Agenteneinstellungen]({{url}}) und füllen Sie das Agentenprofil aus (Sie können es jederzeit bearbeiten).","agentDefaultMessageWithSystemRole": "Hallo, ich bin **{{name}}**. Ein Satz genügt – Sie haben die Kontrolle.","agentDefaultMessageWithoutEdit": "Hallo, ich bin **{{name}}**. Ein Satz genügt – Sie haben die Kontrolle.",+ "agentProfile.files_one": "{{count}} Datei",+ "agentProfile.files_other": "{{count}} Dateien",+ "agentProfile.knowledgeBases_one": "{{count}} Wissensbasis",+ "agentProfile.knowledgeBases_other": "{{count}} Wissensbasen",+ "agentProfile.skills_one": "{{count}} Fähigkeit",+ "agentProfile.skills_other": "{{count}} Fähigkeiten","agents": "Agenten","artifact.generating": "Wird generiert","artifact.inThread": "In Unterthemen nicht einsehbar, bitte wechseln Sie zum Hauptgesprächsbereich",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "Gruppe erfolgreich gelöscht","confirmRemoveSessionItemAlert": "Sie sind dabei, diesen Agenten zu löschen. Nach dem Löschen kann er nicht wiederhergestellt werden. Bitte bestätigen Sie Ihre Aktion.","confirmRemoveSessionSuccess": "Agent erfolgreich entfernt",- "createModal.createBlank": "Leere erstellen",+ "createModal.createBlank": "Leere Vorlage erstellen","createModal.groupPlaceholder": "Beschreiben Sie, was diese Gruppe tun soll...","createModal.groupTitle": "Was soll Ihre Gruppe tun?","createModal.placeholder": "Beschreiben Sie, was Ihr Agent tun soll...","createModal.title": "Was soll Ihr Agent tun?",+ "createTask.assignee": "Zuständige Person",+ "createTask.collapse": "Eingabe ausblenden",+ "createTask.expandToInline": "An Seite andocken",+ "createTask.instructionPlaceholder": "Beschreibung hinzufügen...",+ "createTask.submit": "Aufgabe erstellen",+ "createTask.titlePlaceholder": "Aufgabentitel","defaultAgent": "Standardagent","defaultGroupChat": "Gruppe","defaultList": "Standardliste",@@ -82,6 +94,7 @@"extendParams.title": "Modellerweiterungsfunktionen","extendParams.urlContext.desc": "Wenn aktiviert, werden Weblinks automatisch analysiert, um den tatsächlichen Seiteninhalt abzurufen","extendParams.urlContext.title": "Webseiteninhalte extrahieren",+ "followUpPlaceholder": "Folgen Sie nach. @, um Aufgaben anderen Agenten zuzuweisen.","group.desc": "Bringen Sie eine Aufgabe mit mehreren Agenten in einem gemeinsamen Raum voran.","group.memberTooltip": "Es gibt {{count}} Mitglieder in der Gruppe","group.orchestratorThinking": "Orchestrator denkt nach...",@@ -123,11 +136,11 @@"groupWizard.searchTemplates": "Vorlagen durchsuchen...","groupWizard.title": "Gruppe erstellen","groupWizard.useTemplate": "Vorlage verwenden",- "heteroAgent.fullAccess.label": "Voller Zugriff",- "heteroAgent.fullAccess.tooltip": "Claude Code läuft lokal mit vollständigem Lese-/Schreibzugriff auf das Arbeitsverzeichnis. Das Umschalten der Berechtigungsmodi ist derzeit noch nicht verfügbar.",- "heteroAgent.resumeReset.cwdChanged": "Das Arbeitsverzeichnis wurde geändert. Die vorherige Claude-Code-Sitzung kann nur aus ihrem ursprünglichen Verzeichnis fortgesetzt werden, daher wurde eine neue Unterhaltung gestartet.",+ "heteroAgent.fullAccess.label": "Vollzugriff",+ "heteroAgent.fullAccess.tooltip": "Claude Code läuft lokal mit vollständigem Lese-/Schreibzugriff auf das Arbeitsverzeichnis. Das Umschalten von Berechtigungsmodi ist derzeit nicht verfügbar.",+ "heteroAgent.resumeReset.cwdChanged": "Arbeitsverzeichnis geändert. Die vorherige Claude-Code-Sitzung kann nur aus dem ursprünglichen Verzeichnis fortgesetzt werden, daher wurde eine neue Unterhaltung gestartet.","heteroAgent.switchCwd.cancel": "Abbrechen",- "heteroAgent.switchCwd.content": "Claude-Code-Sitzungen sind an ein Arbeitsverzeichnis gebunden. Ein Wechsel startet eine neue Sitzung für dieses Thema — Chatnachrichten bleiben erhalten, aber der vorherige Sitzungskontext kann nicht fortgesetzt werden.",+ "heteroAgent.switchCwd.content": "Claude-Code-Sitzungen sind an ein Arbeitsverzeichnis gebunden. Ein Wechsel startet eine neue Sitzung für dieses Thema — Chatnachrichten bleiben erhalten, aber der vorherige Sitzungskontext kann nicht wiederhergestellt werden.","heteroAgent.switchCwd.ok": "Wechseln und neue Sitzung starten","heteroAgent.switchCwd.title": "Arbeitsverzeichnis wechseln?","hideForYou": "Direktnachrichten-Inhalt ist ausgeblendet. Bitte aktivieren Sie 'Direktnachrichten-Inhalt anzeigen' in den Einstellungen, um ihn zu sehen.",@@ -141,7 +154,7 @@"input.addUser": "Benutzernachricht hinzufügen","input.disclaimer": "Agenten können Fehler machen. Verwenden Sie Ihr Urteilsvermögen bei kritischen Informationen.","input.errorMsg": "Senden fehlgeschlagen: {{errorMsg}}. Versuchen Sie es erneut oder später.",- "input.more": "mehr",+ "input.more": "Mehr","input.send": "Senden","input.sendWithCmdEnter": "Drücken Sie <key/>, um zu senden","input.sendWithEnter": "Drücken Sie <key/>, um zu senden",@@ -243,8 +256,9 @@"operation.contextCompression": "Kontext zu lang, komprimiere Verlauf...","operation.execAgentRuntime": "Antwort wird vorbereitet","operation.execClientTask": "Aufgabe wird ausgeführt",- "operation.execHeterogeneousAgent": "Externer Agent wird ausgeführt",+ "operation.execHeterogeneousAgent": "{{name}} wird ausgeführt","operation.execServerAgentRuntime": "Wird ausgeführt… Sie können die Aufgabe wechseln oder die Seite schließen — die Aufgabe läuft weiter.",+ "operation.heterogeneousAgentFallback": "Externer Agent","operation.sendMessage": "Nachricht wird gesendet","owner": "Gruppeninhaber","pageCopilot.title": "Seitenagent",@@ -285,6 +299,8 @@"searchAgents": "Agenten suchen...","selectedAgents": "Ausgewählte Agenten","sendPlaceholder": "Fragen, erstellen oder Aufgabe starten, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Bitte {{name}} eine Aufgabe erledigen...",+ "sendPlaceholderWithAgentAssignment": "Fragen, erstellen oder eine Aufgabe starten. @, um Aufgaben anderen Agenten zuzuweisen.","sessionGroup.config": "Gruppenverwaltung","sessionGroup.confirmRemoveGroupAlert": "Diese Gruppe wird gelöscht. Die Agenten werden danach in die Standardliste verschoben. Bitte bestätigen Sie den Vorgang.","sessionGroup.createAgentSuccess": "Agent erfolgreich erstellt",@@ -378,6 +394,7 @@"tab.integration": "Integration","tab.profile": "Agentenprofil","tab.search": "Suche",+ "tab.tasks": "Aufgaben","task.activity.calling": "Skill wird aufgerufen...","task.activity.clientExecuting": "Wird lokal ausgeführt...","task.activity.generating": "Antwort wird generiert...",@@ -399,7 +416,111 @@"task.status.initializing": "Aufgabe wird initialisiert...","task.subtask": "Teilaufgabe","task.title": "Aufgaben",+ "taskDetail.activities": "Aktivitäten",+ "taskDetail.activities.agentTag": "Agent",+ "taskDetail.activities.fallback.brief": "hat ein Briefing erstellt",+ "taskDetail.activities.fallback.comment": "hat einen Kommentar hinterlassen",+ "taskDetail.activities.fallback.created": "hat die Aufgabe erstellt",+ "taskDetail.activities.fallback.topic": "hat ein Thema gestartet",+ "taskDetail.activitiesEmpty": "Noch keine Aktivitäten",+ "taskDetail.addSubtask": "Teilaufgabe hinzufügen",+ "taskDetail.blockedBy": "Blockiert durch {{id}}",+ "taskDetail.comment.cancel": "Abbrechen",+ "taskDetail.comment.delete": "Löschen",+ "taskDetail.comment.deleteConfirm.content": "Dieser Kommentar wird dauerhaft entfernt.",+ "taskDetail.comment.deleteConfirm.ok": "Löschen",+ "taskDetail.comment.deleteConfirm.title": "Diesen Kommentar löschen?",+ "taskDetail.comment.edit": "Bearbeiten",+ "taskDetail.comment.save": "Speichern",+ "taskDetail.commentPlaceholder": "Kommentar hinterlassen...",+ "taskDetail.deleteConfirm.content": "Diese Aktion kann nicht rückgängig gemacht werden.",+ "taskDetail.deleteConfirm.ok": "Löschen",+ "taskDetail.deleteConfirm.title": "Diese Aufgabe löschen?",+ "taskDetail.instruction": "Anweisung",+ "taskDetail.instructionPlaceholder": "Klicken, um die Aufgabenanweisungen zu bearbeiten...",+ "taskDetail.latestActivity.brief": "Briefing: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Briefing",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Briefing ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Briefing ({{type}})",+ "taskDetail.latestActivity.topic": "Thema: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Thema #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Unbenanntes Thema",+ "taskDetail.modelConfig": "Modell-Override",+ "taskDetail.navigation": "Navigation",+ "taskDetail.pauseTask": "Aufgabe pausieren",+ "taskDetail.priority.high": "Hoch",+ "taskDetail.priority.low": "Niedrig",+ "taskDetail.priority.none": "Keine Priorität",+ "taskDetail.priority.normal": "Normal",+ "taskDetail.priority.urgent": "Dringend",+ "taskDetail.properties": "Eigenschaften",+ "taskDetail.reassignDisabled": "Agent kann während der laufenden Aufgabe nicht neu zugewiesen werden",+ "taskDetail.rerunTask": "Aufgabe erneut ausführen",+ "taskDetail.runTask": "Aufgabe ausführen",+ "taskDetail.saveModelConfig": "Speichern",+ "taskDetail.status.backlog": "Backlog",+ "taskDetail.status.canceled": "Abgebrochen",+ "taskDetail.status.completed": "Abgeschlossen",+ "taskDetail.status.failed": "Fehlgeschlagen",+ "taskDetail.status.paused": "Pausiert",+ "taskDetail.status.running": "In Bearbeitung",+ "taskDetail.stopTask": "Aufgabe stoppen",+ "taskDetail.subIssueOf": "Unterproblem von",+ "taskDetail.subtaskInstructionPlaceholder": "Teilaufgabe beschreiben...",+ "taskDetail.subtasks": "Teilaufgaben",+ "taskDetail.titlePlaceholder": "Titel der Aufgabe eingeben...",+ "taskDetail.topicDrawer.untitled": "Ohne Titel",+ "taskDetail.updateFailed": "Aktualisierung der Aufgabe fehlgeschlagen",+ "taskList.activeTasks": "Aktive Aufgaben",+ "taskList.all": "Alle Aufgaben",+ "taskList.breadcrumb.task": "Aufgabe",+ "taskList.empty": "Noch keine Aufgaben",+ "taskList.form.grouping": "Gruppierung",+ "taskList.form.orderCompletedByRecency": "Abgeschlossene Aufgaben nach Aktualität sortieren",+ "taskList.form.ordering": "Sortierung",+ "taskList.form.subGrouping": "Untergruppierung",+ "taskList.groupBy.assignee": "Zuständige Person",+ "taskList.groupBy.none": "Keine Gruppierung",+ "taskList.groupBy.priority": "Priorität",+ "taskList.groupBy.status": "Status",+ "taskList.orderBy.assignee": "Zuständige Person",+ "taskList.orderBy.createdAt": "Erstellt am",+ "taskList.orderBy.priority": "Priorität",+ "taskList.orderBy.status": "Status",+ "taskList.orderBy.title": "Titel",+ "taskList.orderBy.updatedAt": "Aktualisiert am",+ "taskList.title": "Aufgaben",+ "taskList.unassigned": "Nicht zugewiesen",+ "taskList.view.board": "Tafel",+ "taskList.view.list": "Liste",+ "taskList.viewAll": "Alle anzeigen",+ "taskSchedule.clear": "Löschen",+ "taskSchedule.enable": "Automatisierung aktivieren",+ "taskSchedule.every": "Alle",+ "taskSchedule.hours": "Stunden",+ "taskSchedule.interval": "Wiederkehrend",+ "taskSchedule.intervalTab": "Wiederkehrend",+ "taskSchedule.minutes": "Minuten",+ "taskSchedule.scheduler": "Planer",+ "taskSchedule.schedulerNotReady": "Der Planer ist bald verfügbar. Verwenden Sie vorerst Wiederkehrend.",+ "taskSchedule.schedulerTab": "Planer",+ "taskSchedule.seconds": "Sekunden",+ "taskSchedule.tag.add": "Zeitplan festlegen",+ "taskSchedule.tag.every": "alle {{interval}}",+ "taskSchedule.tag.heartbeat": "Heartbeat · {{every}}",+ "taskSchedule.tag.schedule": "Zeitplan · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Zeitplan",+ "taskSchedule.unit.hour_one": "{{count}} Stunde",+ "taskSchedule.unit.hour_other": "{{count}} Stunden",+ "taskSchedule.unit.minute_one": "{{count}} Minute",+ "taskSchedule.unit.minute_other": "{{count}} Minuten",+ "taskSchedule.unit.second_one": "{{count}} Sekunde",+ "taskSchedule.unit.second_other": "{{count}} Sekunden",+ "thread.closeSubagentThread": "Unteragenten-Unterhaltung einklappen","thread.divider": "Unterthema",+ "thread.openSubagentThread": "Komplette Unteragenten-Unterhaltung anzeigen",+ "thread.subagentBadge": "Unteragent","thread.threadMessageCount": "{{messageCount}} Nachrichten","thread.title": "Unterthema","todoProgress.allCompleted": "Alle Aufgaben erledigt",@@ -429,11 +550,11 @@"tool.intervention.mode.manual": "Manuell","tool.intervention.mode.manualDesc": "Manuelle Genehmigung für jeden Aufruf erforderlich","tool.intervention.onboarding.agentIdentity.applyHint": "Die neue Identität erscheint nach der Bestätigung.",- "tool.intervention.onboarding.agentIdentity.description": "Die Bestätigung dieser Änderung aktualisiert den Agenten, der im Posteingang und in dieser Onboarding-Unterhaltung angezeigt wird.",+ "tool.intervention.onboarding.agentIdentity.description": "Die Bestätigung dieser Änderung aktualisiert den in der Inbox und in dieser Onboarding-Unterhaltung angezeigten Agenten.","tool.intervention.onboarding.agentIdentity.emoji": "Agenten-Avatar","tool.intervention.onboarding.agentIdentity.eyebrow": "Onboarding-Bestätigung","tool.intervention.onboarding.agentIdentity.name": "Agentenname",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Posteingangs-Agent",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Inbox-Agent","tool.intervention.onboarding.agentIdentity.targetOnboarding": "Aktueller Onboarding-Agent","tool.intervention.onboarding.agentIdentity.targets": "Gilt für","tool.intervention.onboarding.agentIdentity.title": "Aktualisierung der Agentenidentität bestätigen",@@ -484,12 +605,12 @@"viewMode.fullWidth": "Volle Breite","viewMode.normal": "Standard","viewMode.wideScreen": "Breitbild",- "workflow.awaitingConfirmation": "Warten auf Ihre Bestätigung",+ "workflow.awaitingConfirmation": "Warte auf Ihre Bestätigung","workflow.collapse": "Einklappen","workflow.expandFull": "Vollständig ausklappen","workflow.failedSuffix": "(fehlgeschlagen)","workflow.summaryFailed": "{{count}} fehlgeschlagen",- "workflow.summaryMoreTools": "+{{count}} mehr",+ "workflow.summaryMoreTools": "{{count}} Werkzeugarten","workflow.summaryTotalCalls": "{{count}} Aufrufe insgesamt","workflow.thoughtForDuration": "Nachgedacht für {{duration}}","workflow.toolDisplayName.activateDevice": "Gerät aktiviert",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Noch keine Dokumente. Dokumente, die mit diesem Agenten verbunden sind, werden hier angezeigt.",+ "workingPanel.resources.empty": "Noch keine Dokumente. Dokumente, die diesem Agenten zugeordnet sind, werden hier angezeigt.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Alle","workingPanel.resources.filter.documents": "Dokumente",diff --git a/locales/de-DE/home.json b/locales/de-DE/home.jsonindex cc576fa332a..462bbd3d702 100644--- a/locales/de-DE/home.json+++ b/locales/de-DE/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Derzeit können keine Agenten hinzugefügt werden","agentSelection.noSelected": "Keine Agenten ausgewählt","agentSelection.search": "Keine passenden Agenten gefunden",+ "brief.action.acknowledge": "Bestätigen",+ "brief.action.approve": "Genehmigen",+ "brief.action.feedback": "Feedback",+ "brief.action.retry": "Erneut versuchen",+ "brief.addFeedback": "Feedback teilen",+ "brief.collapse": "Weniger anzeigen",+ "brief.commentPlaceholder": "Ihr Feedback teilen...",+ "brief.commentSubmit": "Feedback senden",+ "brief.expandAll": "Mehr anzeigen",+ "brief.feedbackSent": "Feedback geteilt",+ "brief.resolved": "Als gelöst markiert",+ "brief.title": "Tagesübersicht",+ "brief.viewAllTasks": "Alle Aufgaben anzeigen","project.create": "Neues Projekt","project.deleteConfirm": "Dieses Projekt wird gelöscht und kann nicht wiederhergestellt werden. Bestätigen Sie, um fortzufahren.","starter.createAgent": "Agent erstellen",diff --git a/locales/de-DE/plugin.json b/locales/de-DE/plugin.jsonindex 01f39c5f4f0..347c5d55963 100644--- a/locales/de-DE/plugin.json+++ b/locales/de-DE/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Plugin","builtins.lobe-agent-management.render.installPlugin.success": "Erfolgreich installiert","builtins.lobe-agent-management.title": "Agenten-Manager",+ "builtins.lobe-claude-code.agent.instruction": "Anweisung",+ "builtins.lobe-claude-code.agent.result": "Ergebnis","builtins.lobe-claude-code.todoWrite.allDone": "Alle Aufgaben abgeschlossen","builtins.lobe-claude-code.todoWrite.currentStep": "Aktueller Schritt","builtins.lobe-claude-code.todoWrite.todos": "Aufgaben",diff --git a/locales/de-DE/topic.json b/locales/de-DE/topic.jsonindex 9b50df0bedb..d353164f006 100644--- a/locales/de-DE/topic.json+++ b/locales/de-DE/topic.json@@ -15,20 +15,24 @@"actions.export": "Themen exportieren","actions.favorite": "Favorit","actions.import": "Konversation importieren",+ "actions.markCompleted": "Als abgeschlossen markieren","actions.openInNewTab": "In neuem Tab öffnen","actions.openInNewWindow": "In neuem Fenster öffnen","actions.removeAll": "Alle Themen löschen","actions.removeUnstarred": "Nicht markierte Themen löschen","actions.unfavorite": "Nicht mehr Favorit",+ "actions.unmarkCompleted": "Als aktiv markieren","defaultTitle": "Standardthema","displayItems": "Elemente anzeigen","duplicateLoading": "Thema wird kopiert...","duplicateSuccess": "Thema erfolgreich kopiert","favorite": "Favorit",+ "filter.filter": "Filter","filter.groupMode.byProject": "Nach Projekt","filter.groupMode.byTime": "Nach Zeit","filter.groupMode.flat": "Unstrukturiert","filter.organize": "Organisieren",+ "filter.showCompleted": "Abgeschlossene einbeziehen","filter.sort": "Sortieren nach","filter.sortBy.createdAt": "Erstellungszeit","filter.sortBy.updatedAt": "Änderungszeit",@@ -52,6 +56,7 @@"renameModal.title": "Thema umbenennen","searchPlaceholder": "Themen suchen...","searchResultEmpty": "Keine Suchergebnisse gefunden.",+ "taskManager.welcome": "Frag mich nach deinen Aufgaben","temp": "Temporär","title": "Thema"}diff --git a/locales/en-US/auth.json b/locales/en-US/auth.jsonindex f6b8c98764e..944be24fc5b 100644--- a/locales/en-US/auth.json+++ b/locales/en-US/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Reset password","profile.email": "Email Address","profile.emailChangeSuccess": "Verification email sent. Please check your new email inbox.",- "profile.emailInputHint": "Enter your new email address","profile.emailInvalid": "Please enter a valid email address","profile.emailPlaceholder": "[email protected]","profile.fullName": "Fullname",diff --git a/locales/en-US/chat.json b/locales/en-US/chat.jsonindex 3eb6260d331..42774412cc1 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Hi, I’m **{{name}}**. One sentence is enough.\n\nWant me to match your workflow better? Go to [Agent Settings]({{url}}) and fill in the Agent Profile (you can edit it anytime).","agentDefaultMessageWithSystemRole": "Hi, I’m **{{name}}**. One sentence is enough—you're in control.","agentDefaultMessageWithoutEdit": "Hi, I’m **{{name}}**. One sentence is enough—you're in control.",+ "agentProfile.files_one": "{{count}} file",+ "agentProfile.files_other": "{{count}} files",+ "agentProfile.knowledgeBases_one": "{{count}} knowledge base",+ "agentProfile.knowledgeBases_other": "{{count}} knowledge bases",+ "agentProfile.skills_one": "{{count}} skill",+ "agentProfile.skills_other": "{{count}} skills","agents": "Agents","artifact.generating": "Generating","artifact.inThread": "Cannot view in subtopic, please switch to the main conversation area to open",@@ -47,6 +53,12 @@"createModal.groupTitle": "What should your group do?","createModal.placeholder": "Describe what your agent should do...","createModal.title": "What should your agent do?",+ "createTask.assignee": "Assignee",+ "createTask.collapse": "Hide input",+ "createTask.expandToInline": "Dock to page",+ "createTask.instructionPlaceholder": "Add description...",+ "createTask.submit": "Create task",+ "createTask.titlePlaceholder": "Task title","defaultAgent": "Default Agent","defaultGroupChat": "Group","defaultList": "Default List",@@ -82,7 +94,7 @@"extendParams.title": "Model Extension Features","extendParams.urlContext.desc": "When enabled, web links will be automatically parsed to retrieve the actual webpage context content","extendParams.urlContext.title": "Extract Webpage Link Content",- "followUpPlaceholder": "Follow up",+ "followUpPlaceholder": "Follow up. @ to assign tasks to other agents.","group.desc": "Move a task forward with multiple Agents in one shared space.","group.memberTooltip": "There are {{count}} members in the group","group.orchestratorThinking": "Orchestrator is thinking...",@@ -384,6 +396,7 @@"tab.integration": "Channels","tab.profile": "Agent Profile","tab.search": "Search",+ "tab.tasks": "Tasks","task.activity.calling": "Calling Skill...","task.activity.clientExecuting": "Executing locally...","task.activity.generating": "Generating response...",@@ -405,6 +418,112 @@"task.status.initializing": "Initializing task...","task.subtask": "Subtask","task.title": "Tasks",+ "taskDetail.activities": "Activities",+ "taskDetail.activities.agentTag": "Agent",+ "taskDetail.activities.fallback.brief": "posted a brief",+ "taskDetail.activities.fallback.comment": "left a comment",+ "taskDetail.activities.fallback.created": "created the task",+ "taskDetail.activities.fallback.topic": "started a topic",+ "taskDetail.activitiesEmpty": "No activity yet",+ "taskDetail.addSubtask": "Add sub-task",+ "taskDetail.blockedBy": "Blocked by {{id}}",+ "taskDetail.comment.cancel": "Cancel",+ "taskDetail.comment.delete": "Delete",+ "taskDetail.comment.deleteConfirm.content": "This comment will be permanently removed.",+ "taskDetail.comment.deleteConfirm.ok": "Delete",+ "taskDetail.comment.deleteConfirm.title": "Delete this comment?",+ "taskDetail.comment.edit": "Edit",+ "taskDetail.comment.save": "Save",+ "taskDetail.commentPlaceholder": "Leave a comment...",+ "taskDetail.deleteConfirm.content": "This action cannot be undone.",+ "taskDetail.deleteConfirm.ok": "Delete",+ "taskDetail.deleteConfirm.title": "Delete this task?",+ "taskDetail.instruction": "Instruction",+ "taskDetail.instructionPlaceholder": "Click to edit task instructions...",+ "taskDetail.latestActivity.brief": "Brief: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Brief",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Brief ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Brief ({{type}})",+ "taskDetail.latestActivity.topic": "Topic: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Topic #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Untitled topic",+ "taskDetail.modelConfig": "Model Override",+ "taskDetail.navigation": "Navigation",+ "taskDetail.pauseTask": "Pause task",+ "taskDetail.priority.high": "High",+ "taskDetail.priority.low": "Low",+ "taskDetail.priority.none": "No priority",+ "taskDetail.priority.normal": "Normal",+ "taskDetail.priority.urgent": "Urgent",+ "taskDetail.properties": "Properties",+ "taskDetail.reassignDisabled": "Cannot reassign agent while task is running",+ "taskDetail.rerunTask": "Re-run task",+ "taskDetail.runTask": "Run",+ "taskDetail.saveModelConfig": "Save",+ "taskDetail.status.backlog": "Backlog",+ "taskDetail.status.canceled": "Canceled",+ "taskDetail.status.completed": "Completed",+ "taskDetail.status.failed": "Failed",+ "taskDetail.status.paused": "Paused",+ "taskDetail.status.running": "In progress",+ "taskDetail.stopTask": "Stop task",+ "taskDetail.subIssueOf": "Sub-issue of",+ "taskDetail.subtaskInstructionPlaceholder": "Describe the sub-task...",+ "taskDetail.subtasks": "Subtasks",+ "taskDetail.titlePlaceholder": "Enter task title...",+ "taskDetail.topicDrawer.untitled": "Untitled",+ "taskDetail.updateFailed": "Failed to update task",+ "taskList.activeTasks": "Active Tasks",+ "taskList.all": "All tasks",+ "taskList.breadcrumb.task": "Task",+ "taskList.empty": "No tasks yet",+ "taskList.form.grouping": "Grouping",+ "taskList.form.orderCompletedByRecency": "Sort completed tasks by recency",+ "taskList.form.ordering": "Ordering",+ "taskList.form.subGrouping": "Sub-grouping",+ "taskList.groupBy.assignee": "Assignee",+ "taskList.groupBy.none": "No grouping",+ "taskList.groupBy.priority": "Priority",+ "taskList.groupBy.status": "Status",+ "taskList.kanban.backlog": "Backlog",+ "taskList.kanban.done": "Done",+ "taskList.kanban.emptyColumn": "No tasks",+ "taskList.kanban.needsInput": "Needs input",+ "taskList.kanban.running": "In progress",+ "taskList.orderBy.assignee": "Assignee",+ "taskList.orderBy.createdAt": "Created at",+ "taskList.orderBy.priority": "Priority",+ "taskList.orderBy.status": "Status",+ "taskList.orderBy.title": "Title",+ "taskList.orderBy.updatedAt": "Updated at",+ "taskList.title": "Tasks",+ "taskList.unassigned": "Unassigned",+ "taskList.view.board": "Board",+ "taskList.view.list": "List",+ "taskList.viewAll": "View all",+ "taskSchedule.clear": "Clear",+ "taskSchedule.enable": "Enable automation",+ "taskSchedule.every": "Every",+ "taskSchedule.hours": "Hours",+ "taskSchedule.interval": "Recurring",+ "taskSchedule.intervalTab": "Recurring",+ "taskSchedule.minutes": "Minutes",+ "taskSchedule.scheduler": "Scheduler",+ "taskSchedule.schedulerNotReady": "Scheduler is coming soon. Use Recurring for now.",+ "taskSchedule.schedulerTab": "Scheduler",+ "taskSchedule.seconds": "Seconds",+ "taskSchedule.tag.add": "Set schedule",+ "taskSchedule.tag.every": "Every {{interval}}",+ "taskSchedule.tag.heartbeat": "Heartbeat · {{every}}",+ "taskSchedule.tag.schedule": "Schedule · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Schedule",+ "taskSchedule.unit.hour_one": "{{count}} hr",+ "taskSchedule.unit.hour_other": "{{count}} hrs",+ "taskSchedule.unit.minute_one": "{{count}} min",+ "taskSchedule.unit.minute_other": "{{count}} mins",+ "taskSchedule.unit.second_one": "{{count}} sec",+ "taskSchedule.unit.second_other": "{{count}} secs","thread.closeSubagentThread": "Collapse subagent conversation","thread.divider": "Subtopic","thread.openSubagentThread": "View full subagent conversation",diff --git a/locales/en-US/home.json b/locales/en-US/home.jsonindex 8c26595f358..1ebf850fb09 100644--- a/locales/en-US/home.json+++ b/locales/en-US/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "No agents can be added at the moment","agentSelection.noSelected": "No agents selected","agentSelection.search": "No matching agents found",+ "brief.action.acknowledge": "Acknowledge",+ "brief.action.approve": "Approve",+ "brief.action.feedback": "Feedback",+ "brief.action.retry": "Retry",+ "brief.addFeedback": "Share feedback",+ "brief.collapse": "Show less",+ "brief.commentPlaceholder": "Share your feedback...",+ "brief.commentSubmit": "Submit feedback",+ "brief.expandAll": "Show more",+ "brief.feedbackSent": "Feedback shared",+ "brief.resolved": "Marked as resolved",+ "brief.title": "Daily brief",+ "brief.viewAllTasks": "View all tasks","project.create": "New project",- "project.deleteConfirm": "This project will be deleted and can’t be recovered. Confirm to continue.",+ "project.deleteConfirm": "This project will be deleted and can't be recovered. Confirm to continue.","starter.createAgent": "Create Agent","starter.createGroup": "Create Group","starter.deepResearch": "Deep Research",diff --git a/locales/en-US/topic.json b/locales/en-US/topic.jsonindex 45dc0390a47..8f683b4d48c 100644--- a/locales/en-US/topic.json+++ b/locales/en-US/topic.json@@ -56,6 +56,7 @@"renameModal.title": "Rename Topic","searchPlaceholder": "Search Topics...","searchResultEmpty": "No search results found.",+ "taskManager.welcome": "Ask me about your tasks","temp": "Temporary","title": "Topic"}diff --git a/locales/es-ES/auth.json b/locales/es-ES/auth.jsonindex f2e306295cf..57ea698d37d 100644--- a/locales/es-ES/auth.json+++ b/locales/es-ES/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Restablecer contraseña","profile.email": "Correo electrónico","profile.emailChangeSuccess": "Correo de verificación enviado. Por favor, revisa la bandeja de entrada de tu nuevo correo electrónico.",- "profile.emailInputHint": "Ingresa tu nueva dirección de correo electrónico","profile.emailInvalid": "Por favor, ingresa una dirección de correo electrónico válida","profile.emailPlaceholder": "[email protected]","profile.fullName": "Nombre completo",diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.jsonindex 417bfefbbfc..a37c4176fe5 100644--- a/locales/es-ES/chat.json+++ b/locales/es-ES/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Hola, soy **{{name}}**. Una frase es suficiente.\n\n¿Quieres que me adapte mejor a tu flujo de trabajo? Ve a [Configuración del Agente]({{url}}) y completa el Perfil del Agente (puedes editarlo en cualquier momento).","agentDefaultMessageWithSystemRole": "Hola, soy **{{name}}**. Una frase es suficiente—tú tienes el control.","agentDefaultMessageWithoutEdit": "Hola, soy **{{name}}**. Una frase es suficiente—tú tienes el control.",+ "agentProfile.files_one": "{{count}} archivo",+ "agentProfile.files_other": "{{count}} archivos",+ "agentProfile.knowledgeBases_one": "{{count}} base de conocimiento",+ "agentProfile.knowledgeBases_other": "{{count}} bases de conocimiento",+ "agentProfile.skills_one": "{{count}} habilidad",+ "agentProfile.skills_other": "{{count}} habilidades","agents": "Agentes","artifact.generating": "Generando","artifact.inThread": "No se puede ver en el subtema, cambia al área principal de conversación para abrirlo",@@ -47,6 +53,12 @@"createModal.groupTitle": "¿Qué debería hacer tu grupo?","createModal.placeholder": "Describe lo que debería hacer tu agente...","createModal.title": "¿Qué debería hacer tu agente?",+ "createTask.assignee": "Asignado a",+ "createTask.collapse": "Ocultar entrada",+ "createTask.expandToInline": "Anclar a la página",+ "createTask.instructionPlaceholder": "Añadir descripción...",+ "createTask.submit": "Crear tarea",+ "createTask.titlePlaceholder": "Título de la tarea","defaultAgent": "Agente predeterminado","defaultGroupChat": "Grupo","defaultList": "Lista predeterminada",@@ -82,6 +94,7 @@"extendParams.title": "Funciones de Extensión del Modelo","extendParams.urlContext.desc": "Cuando está habilitado, los enlaces web se analizarán automáticamente para recuperar el contenido real de la página","extendParams.urlContext.title": "Extraer contenido de enlaces web",+ "followUpPlaceholder": "Seguimiento. Usa @ para asignar tareas a otros agentes.","group.desc": "Avanza una tarea con múltiples Agentes en un espacio compartido.","group.memberTooltip": "Hay {{count}} miembros en el grupo","group.orchestratorThinking": "El Orquestador está pensando...",@@ -127,7 +140,7 @@"heteroAgent.fullAccess.tooltip": "Claude Code se ejecuta localmente con acceso completo de lectura y escritura al directorio de trabajo. Cambiar los modos de permiso aún no está disponible.","heteroAgent.resumeReset.cwdChanged": "El directorio de trabajo ha cambiado. La sesión anterior de Claude Code solo puede reanudarse desde su directorio original, por lo que se ha iniciado una nueva conversación.","heteroAgent.switchCwd.cancel": "Cancelar",- "heteroAgent.switchCwd.content": "Las sesiones de Claude Code están vinculadas a un directorio de trabajo. Cambiarlo iniciará una nueva sesión para este tema: los mensajes del chat permanecen, pero no se puede reanudar el contexto de la sesión anterior.",+ "heteroAgent.switchCwd.content": "Las sesiones de Claude Code están vinculadas a un directorio de trabajo. Cambiarlo iniciará una nueva sesión para este tema — los mensajes del chat permanecerán, pero no se podrá reanudar el contexto de la sesión anterior.","heteroAgent.switchCwd.ok": "Cambiar e iniciar nueva sesión","heteroAgent.switchCwd.title": "¿Cambiar el directorio de trabajo?","hideForYou": "El contenido del mensaje directo está oculto. Activa 'Mostrar contenido de mensajes directos' en la configuración para verlo.",@@ -141,7 +154,7 @@"input.addUser": "Agregar mensaje de usuario","input.disclaimer": "Los agentes pueden cometer errores. Usa tu criterio para información crítica.","input.errorMsg": "Error al enviar: {{errorMsg}}. Intenta de nuevo más tarde.",- "input.more": "más",+ "input.more": "Más","input.send": "Enviar","input.sendWithCmdEnter": "Presiona <key/> para enviar","input.sendWithEnter": "Presiona <key/> para enviar",@@ -231,7 +244,7 @@"minimap.senderAssistant": "Agente","minimap.senderUser": "Tú","newAgent": "Crear agente",- "newClaudeCodeAgent": "Agregar Claude Code",+ "newClaudeCodeAgent": "Añadir Claude Code","newGroupChat": "Crear grupo","newPage": "Crear página","noAgentsYet": "Este grupo aún no tiene miembros. Haz clic en el botón + para invitar agentes.",@@ -243,8 +256,9 @@"operation.contextCompression": "Contexto demasiado largo, comprimiendo historial...","operation.execAgentRuntime": "Preparando respuesta","operation.execClientTask": "Ejecutando tarea",- "operation.execHeterogeneousAgent": "Agente externo en ejecución",- "operation.execServerAgentRuntime": "Ejecutando… Puedes cambiar de tarea o cerrar la página: la tarea seguirá en marcha.",+ "operation.execHeterogeneousAgent": "{{name}} está en ejecución",+ "operation.execServerAgentRuntime": "Ejecutando… Puedes cambiar de tarea o cerrar la página; la tarea seguirá en curso.",+ "operation.heterogeneousAgentFallback": "Agente externo","operation.sendMessage": "Enviando mensaje","owner": "Propietario del grupo","pageCopilot.title": "Agente de página",@@ -285,6 +299,8 @@"searchAgents": "Buscar agentes...","selectedAgents": "Agentes seleccionados","sendPlaceholder": "Pregunta, crea o inicia una tarea, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Pide a {{name}} que realice una tarea...",+ "sendPlaceholderWithAgentAssignment": "Pregunta, crea o inicia una tarea. Usa @ para asignar tareas a otros agentes.","sessionGroup.config": "Gestión de grupos","sessionGroup.confirmRemoveGroupAlert": "Este grupo está a punto de eliminarse. Después de la eliminación, los agentes de este grupo se moverán a la lista predeterminada. Por favor, confirma tu acción.","sessionGroup.createAgentSuccess": "Agente creado con éxito",@@ -378,6 +394,7 @@"tab.integration": "Integración","tab.profile": "Perfil del agente","tab.search": "Buscar",+ "tab.tasks": "Tareas","task.activity.calling": "Llamando habilidad...","task.activity.clientExecuting": "Ejecutando localmente...","task.activity.generating": "Generando respuesta...",@@ -399,7 +416,111 @@"task.status.initializing": "Inicializando tarea...","task.subtask": "Subtarea","task.title": "Tareas",+ "taskDetail.activities": "Actividades",+ "taskDetail.activities.agentTag": "Agente",+ "taskDetail.activities.fallback.brief": "publicó un informe",+ "taskDetail.activities.fallback.comment": "dejó un comentario",+ "taskDetail.activities.fallback.created": "creó la tarea",+ "taskDetail.activities.fallback.topic": "inició un tema",+ "taskDetail.activitiesEmpty": "Aún no hay actividad",+ "taskDetail.addSubtask": "Añadir subtarea",+ "taskDetail.blockedBy": "Bloqueado por {{id}}",+ "taskDetail.comment.cancel": "Cancelar",+ "taskDetail.comment.delete": "Eliminar",+ "taskDetail.comment.deleteConfirm.content": "Este comentario se eliminará permanentemente.",+ "taskDetail.comment.deleteConfirm.ok": "Eliminar",+ "taskDetail.comment.deleteConfirm.title": "¿Eliminar este comentario?",+ "taskDetail.comment.edit": "Editar",+ "taskDetail.comment.save": "Guardar",+ "taskDetail.commentPlaceholder": "Deja un comentario...",+ "taskDetail.deleteConfirm.content": "Esta acción no se puede deshacer.",+ "taskDetail.deleteConfirm.ok": "Eliminar",+ "taskDetail.deleteConfirm.title": "¿Eliminar esta tarea?",+ "taskDetail.instruction": "Instrucción",+ "taskDetail.instructionPlaceholder": "Haz clic para editar las instrucciones de la tarea...",+ "taskDetail.latestActivity.brief": "Informe: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Informe",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Informe ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Informe ({{type}})",+ "taskDetail.latestActivity.topic": "Tema: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Tema #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Tema sin título",+ "taskDetail.modelConfig": "Anulación de modelo",+ "taskDetail.navigation": "Navegación",+ "taskDetail.pauseTask": "Pausar tarea",+ "taskDetail.priority.high": "Alta",+ "taskDetail.priority.low": "Baja",+ "taskDetail.priority.none": "Sin prioridad",+ "taskDetail.priority.normal": "Normal",+ "taskDetail.priority.urgent": "Urgente",+ "taskDetail.properties": "Propiedades",+ "taskDetail.reassignDisabled": "No se puede reasignar el agente mientras la tarea está en ejecución",+ "taskDetail.rerunTask": "Volver a ejecutar la tarea",+ "taskDetail.runTask": "Ejecutar tarea",+ "taskDetail.saveModelConfig": "Guardar",+ "taskDetail.status.backlog": "En espera",+ "taskDetail.status.canceled": "Cancelada",+ "taskDetail.status.completed": "Completada",+ "taskDetail.status.failed": "Fallida",+ "taskDetail.status.paused": "Pausada",+ "taskDetail.status.running": "En progreso",+ "taskDetail.stopTask": "Detener tarea",+ "taskDetail.subIssueOf": "Subtarea de",+ "taskDetail.subtaskInstructionPlaceholder": "Describe la subtarea...",+ "taskDetail.subtasks": "Subtareas",+ "taskDetail.titlePlaceholder": "Introduce el título de la tarea...",+ "taskDetail.topicDrawer.untitled": "Sin título",+ "taskDetail.updateFailed": "Error al actualizar la tarea",+ "taskList.activeTasks": "Tareas Activas",+ "taskList.all": "Todas las tareas",+ "taskList.breadcrumb.task": "Tarea",+ "taskList.empty": "Aún no hay tareas",+ "taskList.form.grouping": "Agrupación",+ "taskList.form.orderCompletedByRecency": "Ordenar tareas completadas por antigüedad",+ "taskList.form.ordering": "Ordenación",+ "taskList.form.subGrouping": "Subagrupación",+ "taskList.groupBy.assignee": "Asignado a",+ "taskList.groupBy.none": "Sin agrupación",+ "taskList.groupBy.priority": "Prioridad",+ "taskList.groupBy.status": "Estado",+ "taskList.orderBy.assignee": "Asignado a",+ "taskList.orderBy.createdAt": "Creada el",+ "taskList.orderBy.priority": "Prioridad",+ "taskList.orderBy.status": "Estado",+ "taskList.orderBy.title": "Título",+ "taskList.orderBy.updatedAt": "Actualizada el",+ "taskList.title": "Tareas",+ "taskList.unassigned": "Sin asignar",+ "taskList.view.board": "Tablero",+ "taskList.view.list": "Lista",+ "taskList.viewAll": "Ver todo",+ "taskSchedule.clear": "Borrar",+ "taskSchedule.enable": "Habilitar automatización",+ "taskSchedule.every": "Cada",+ "taskSchedule.hours": "Horas",+ "taskSchedule.interval": "Recurrente",+ "taskSchedule.intervalTab": "Recurrente",+ "taskSchedule.minutes": "Minutos",+ "taskSchedule.scheduler": "Programador",+ "taskSchedule.schedulerNotReady": "El programador estará disponible pronto. Usa Recurrente por ahora.",+ "taskSchedule.schedulerTab": "Programador",+ "taskSchedule.seconds": "Segundos",+ "taskSchedule.tag.add": "Configurar programación",+ "taskSchedule.tag.every": "cada {{interval}}",+ "taskSchedule.tag.heartbeat": "Latido · {{every}}",+ "taskSchedule.tag.schedule": "Programación · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Programación",+ "taskSchedule.unit.hour_one": "{{count}} hora",+ "taskSchedule.unit.hour_other": "{{count}} horas",+ "taskSchedule.unit.minute_one": "{{count}} minuto",+ "taskSchedule.unit.minute_other": "{{count}} minutos",+ "taskSchedule.unit.second_one": "{{count}} segundo",+ "taskSchedule.unit.second_other": "{{count}} segundos",+ "thread.closeSubagentThread": "Contraer conversación del subagente","thread.divider": "Subtema",+ "thread.openSubagentThread": "Ver conversación completa del subagente",+ "thread.subagentBadge": "Subagente","thread.threadMessageCount": "{{messageCount}} mensajes","thread.title": "Subtema","todoProgress.allCompleted": "Todas las tareas completadas",@@ -429,11 +550,11 @@"tool.intervention.mode.manual": "Manual","tool.intervention.mode.manualDesc": "Requiere aprobación manual para cada invocación","tool.intervention.onboarding.agentIdentity.applyHint": "La nueva identidad aparecerá después de la aprobación.",- "tool.intervention.onboarding.agentIdentity.description": "Aprobar este cambio actualiza el Agente que se muestra en la Bandeja de entrada y en esta conversación de incorporación.",+ "tool.intervention.onboarding.agentIdentity.description": "Aprobar este cambio actualiza el Agente mostrado en la Bandeja de entrada y en esta conversación de incorporación.","tool.intervention.onboarding.agentIdentity.emoji": "Avatar del agente","tool.intervention.onboarding.agentIdentity.eyebrow": "Aprobación de incorporación","tool.intervention.onboarding.agentIdentity.name": "Nombre del agente",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Agente de bandeja de entrada",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Agente de la bandeja de entrada","tool.intervention.onboarding.agentIdentity.targetOnboarding": "Agente de incorporación actual","tool.intervention.onboarding.agentIdentity.targets": "Se aplica a","tool.intervention.onboarding.agentIdentity.title": "Confirmar actualización de identidad del agente",@@ -484,12 +605,12 @@"viewMode.fullWidth": "Ancho completo","viewMode.normal": "Estándar","viewMode.wideScreen": "Pantalla ancha",- "workflow.awaitingConfirmation": "En espera de tu confirmación",+ "workflow.awaitingConfirmation": "Esperando tu confirmación","workflow.collapse": "Contraer","workflow.expandFull": "Expandir completamente","workflow.failedSuffix": "(fallido)",- "workflow.summaryFailed": "{{count}} con errores",- "workflow.summaryMoreTools": "+{{count}} más",+ "workflow.summaryFailed": "{{count}} fallos",+ "workflow.summaryMoreTools": "{{count}} tipos de herramientas","workflow.summaryTotalCalls": "{{count}} llamadas en total","workflow.thoughtForDuration": "Reflexionó durante {{duration}}","workflow.toolDisplayName.activateDevice": "Dispositivo activado",diff --git a/locales/es-ES/home.json b/locales/es-ES/home.jsonindex 12ddf494157..931c19d6b24 100644--- a/locales/es-ES/home.json+++ b/locales/es-ES/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "No se pueden añadir agentes en este momento","agentSelection.noSelected": "No se han seleccionado agentes","agentSelection.search": "No se encontraron agentes coincidentes",+ "brief.action.acknowledge": "Reconocer",+ "brief.action.approve": "Aprobar",+ "brief.action.feedback": "Comentarios",+ "brief.action.retry": "Reintentar",+ "brief.addFeedback": "Compartir comentarios",+ "brief.collapse": "Mostrar menos",+ "brief.commentPlaceholder": "Comparte tus comentarios...",+ "brief.commentSubmit": "Enviar comentarios",+ "brief.expandAll": "Mostrar más",+ "brief.feedbackSent": "Comentarios enviados",+ "brief.resolved": "Marcado como resuelto",+ "brief.title": "Informe diario",+ "brief.viewAllTasks": "Ver todas las tareas","project.create": "Nuevo proyecto",- "project.deleteConfirm": "Este proyecto será eliminado y no se podrá recuperar. Confirma para continuar.",+ "project.deleteConfirm": "Este proyecto se eliminará y no se podrá recuperar. Confirma para continuar.","starter.createAgent": "Crear agente","starter.createGroup": "Crear grupo","starter.deepResearch": "Investigación profunda",diff --git a/locales/es-ES/plugin.json b/locales/es-ES/plugin.jsonindex 4a776455304..c077aab9e98 100644--- a/locales/es-ES/plugin.json+++ b/locales/es-ES/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Complemento","builtins.lobe-agent-management.render.installPlugin.success": "Instalado correctamente","builtins.lobe-agent-management.title": "Gestor de agentes",+ "builtins.lobe-claude-code.agent.instruction": "Instrucción",+ "builtins.lobe-claude-code.agent.result": "Resultado","builtins.lobe-claude-code.todoWrite.allDone": "Todas las tareas completadas","builtins.lobe-claude-code.todoWrite.currentStep": "Paso actual","builtins.lobe-claude-code.todoWrite.todos": "Tareas",diff --git a/locales/es-ES/topic.json b/locales/es-ES/topic.jsonindex 58651e18a4c..b248e32a7b1 100644--- a/locales/es-ES/topic.json+++ b/locales/es-ES/topic.json@@ -15,20 +15,24 @@"actions.export": "Exportar temas","actions.favorite": "Favorito","actions.import": "Importar conversación",+ "actions.markCompleted": "Marcar como completada","actions.openInNewTab": "Abrir en una nueva pestaña","actions.openInNewWindow": "Abrir en una nueva ventana","actions.removeAll": "Eliminar todos los temas","actions.removeUnstarred": "Eliminar temas no favoritos","actions.unfavorite": "No favorito",+ "actions.unmarkCompleted": "Marcar como activa","defaultTitle": "Tema predeterminado","displayItems": "Mostrar elementos","duplicateLoading": "Copiando tema...","duplicateSuccess": "Tema copiado con éxito","favorite": "Favorito",+ "filter.filter": "Filtrar","filter.groupMode.byProject": "Por proyecto","filter.groupMode.byTime": "Por fecha","filter.groupMode.flat": "Sin agrupación","filter.organize": "Organizar",+ "filter.showCompleted": "Incluir completadas","filter.sort": "Ordenar por","filter.sortBy.createdAt": "Fecha de creación","filter.sortBy.updatedAt": "Fecha de actualización",@@ -52,6 +56,7 @@"renameModal.title": "Renombrar tema","searchPlaceholder": "Buscar temas...","searchResultEmpty": "No se encontraron resultados de búsqueda.",+ "taskManager.welcome": "Pregúntame sobre tus tareas","temp": "Temporal","title": "Tema"}diff --git a/locales/fa-IR/auth.json b/locales/fa-IR/auth.jsonindex 5d1e617b576..9d2b4f45acb 100644--- a/locales/fa-IR/auth.json+++ b/locales/fa-IR/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "بازنشانی رمز عبور","profile.email": "آدرس ایمیل","profile.emailChangeSuccess": "ایمیل تأیید ارسال شد. لطفاً صندوق ورودی ایمیل جدید خود را بررسی کنید.",- "profile.emailInputHint": "آدرس ایمیل جدید خود را وارد کنید","profile.emailInvalid": "لطفاً یک آدرس ایمیل معتبر وارد کنید","profile.emailPlaceholder": "[email protected]","profile.fullName": "نام کامل",diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.jsonindex 3e17507291c..29ca4d43d5d 100644--- a/locales/fa-IR/chat.json+++ b/locales/fa-IR/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "سلام، من **{{name}}** هستم. یک جمله کافی است.\n\nمیخواهی بهتر با جریان کاریات هماهنگ شوم؟ به [تنظیمات عامل]({{url}}) برو و نمایه عامل را پر کن (هر زمان میتوانی ویرایشش کنی).","agentDefaultMessageWithSystemRole": "سلام، من **{{name}}** هستم. یک جمله کافی است—کنترل با توست.","agentDefaultMessageWithoutEdit": "سلام، من **{{name}}** هستم. یک جمله کافی است—کنترل با توست.",+ "agentProfile.files_one": "{{count}} فایل",+ "agentProfile.files_other": "{{count}} فایل",+ "agentProfile.knowledgeBases_one": "{{count}} پایگاهدانش",+ "agentProfile.knowledgeBases_other": "{{count}} پایگاهدانش",+ "agentProfile.skills_one": "{{count}} مهارت",+ "agentProfile.skills_other": "{{count}} مهارت","agents": "عوامل","artifact.generating": "در حال تولید","artifact.inThread": "در زیرموضوع قابل مشاهده نیست، لطفاً به بخش اصلی گفتگو بروید",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "گروه با موفقیت حذف شد","confirmRemoveSessionItemAlert": "در حال حذف این عامل هستید. پس از حذف، قابل بازیابی نیست. لطفاً اقدام خود را تأیید کنید.","confirmRemoveSessionSuccess": "عامل با موفقیت حذف شد",- "createModal.createBlank": "ایجاد مورد خالی",- "createModal.groupPlaceholder": "توضیح دهید این گروه چه کاری باید انجام دهد...",+ "createModal.createBlank": "ایجاد خالی",+ "createModal.groupPlaceholder": "توضیح دهید این گروه باید چه کاری انجام دهد...","createModal.groupTitle": "گروه شما باید چه کاری انجام دهد؟",- "createModal.placeholder": "توضیح دهید عامل شما چه کاری باید انجام دهد...",+ "createModal.placeholder": "توضیح دهید عامل شما باید چه کاری انجام دهد...","createModal.title": "عامل شما باید چه کاری انجام دهد؟",+ "createTask.assignee": "مسئول",+ "createTask.collapse": "پنهان کردن ورودی",+ "createTask.expandToInline": "سنجاق کردن به صفحه",+ "createTask.instructionPlaceholder": "افزودن توضیحات...",+ "createTask.submit": "ایجاد وظیفه",+ "createTask.titlePlaceholder": "عنوان وظیفه","defaultAgent": "عامل پیشفرض","defaultGroupChat": "گروه","defaultList": "فهرست پیشفرض",@@ -82,6 +94,7 @@"extendParams.title": "ویژگیهای توسعه مدل","extendParams.urlContext.desc": "در صورت فعال بودن، پیوندهای وب بهطور خودکار تجزیه شده و محتوای صفحه بازیابی میشود","extendParams.urlContext.title": "استخراج محتوای پیوند وب",+ "followUpPlaceholder": "پیگیری. برای واگذاری وظیفه به عاملهای دیگر از @ استفاده کنید.","group.desc": "با چند عامل در یک فضای مشترک، یک وظیفه را پیش ببرید.","group.memberTooltip": "{{count}} عضو در گروه وجود دارد","group.orchestratorThinking": "هماهنگکننده در حال تفکر است...",@@ -124,11 +137,11 @@"groupWizard.title": "ایجاد گروه","groupWizard.useTemplate": "استفاده از الگو","heteroAgent.fullAccess.label": "دسترسی کامل",- "heteroAgent.fullAccess.tooltip": "Claude Code بهصورت محلی با دسترسی کامل خواندن/نوشتن به پوشه کاری اجرا میشود. تغییر حالتهای دسترسی فعلاً امکانپذیر نیست.",- "heteroAgent.resumeReset.cwdChanged": "پوشه کاری تغییر کرده است. جلسه قبلی Claude Code فقط از پوشه اصلی خود قابل ازسرگیری بود، بنابراین یک گفتگوی جدید آغاز شده است.",+ "heteroAgent.fullAccess.tooltip": "Claude Code بهصورت محلی با دسترسی کامل خواندن/نوشتن در پوشه کاری اجرا میشود. تغییر حالتهای دسترسی فعلاً امکانپذیر نیست.",+ "heteroAgent.resumeReset.cwdChanged": "پوشه کاری تغییر کرده است. نشست قبلی Claude Code فقط از پوشه اصلی خود قابل ادامه است، بنابراین یک مکالمه جدید آغاز شد.","heteroAgent.switchCwd.cancel": "انصراف",- "heteroAgent.switchCwd.content": "جلسات Claude Code به یک پوشه کاری متصل هستند. تغییر پوشه یک جلسه جدید برای این موضوع آغاز میکند — پیامهای گفتگو باقی میمانند، اما زمینه جلسه قبلی قابل ازسرگیری نخواهد بود.",- "heteroAgent.switchCwd.ok": "تغییر و شروع جلسه جدید",+ "heteroAgent.switchCwd.content": "نشستهای Claude Code به یک پوشه کاری متصل هستند. تغییر پوشه یک نشست جدید برای این موضوع آغاز میکند — پیامهای گفتگو باقی میمانند، اما زمینه نشست قبلی قابل بازیابی نیست.",+ "heteroAgent.switchCwd.ok": "تغییر پوشه و آغاز نشست جدید","heteroAgent.switchCwd.title": "تغییر پوشه کاری؟","hideForYou": "محتوای پیام خصوصی پنهان است. برای مشاهده، گزینه «نمایش محتوای پیام خصوصی» را در تنظیمات فعال کنید.","history.title": "عامل فقط آخرین {{count}} پیام را نگه میدارد.",@@ -243,8 +256,9 @@"operation.contextCompression": "متن بیش از حد طولانی است، در حال فشردهسازی تاریخچه...","operation.execAgentRuntime": "در حال آمادهسازی پاسخ","operation.execClientTask": "در حال اجرای وظیفه",- "operation.execHeterogeneousAgent": "عامل خارجی در حال اجراست",- "operation.execServerAgentRuntime": "در حال اجرا… میتوانید کار را عوض کنید یا صفحه را ببندید — وظیفه همچنان ادامه خواهد داشت.",+ "operation.execHeterogeneousAgent": "{{name}} در حال اجرا است",+ "operation.execServerAgentRuntime": "در حال اجرا… میتوانید وظایف را تغییر دهید یا صفحه را ببندید — وظیفه همچنان ادامه خواهد داشت.",+ "operation.heterogeneousAgentFallback": "عامل خارجی","operation.sendMessage": "در حال ارسال پیام","owner": "مالک گروه","pageCopilot.title": "نماینده صفحه",@@ -285,6 +299,8 @@"searchAgents": "جستجوی نمایندهها...","selectedAgents": "نمایندههای انتخابشده","sendPlaceholder": "بپرس، بساز یا کاری را شروع کن، <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "از {{name}} بخواهید کاری انجام دهد...",+ "sendPlaceholderWithAgentAssignment": "بپرسید، ایجاد کنید، یا وظیفهای شروع کنید. برای واگذاری وظیفه از @ استفاده کنید.","sessionGroup.config": "مدیریت گروه","sessionGroup.confirmRemoveGroupAlert": "این گروه در حال حذف است. پس از حذف، نمایندههای این گروه به فهرست پیشفرض منتقل میشوند. لطفاً عملیات خود را تأیید کنید.","sessionGroup.createAgentSuccess": "نماینده با موفقیت ایجاد شد",@@ -378,6 +394,7 @@"tab.integration": "یکپارچهسازی","tab.profile": "پروفایل نماینده","tab.search": "جستجو",+ "tab.tasks": "وظایف","task.activity.calling": "در حال فراخوانی مهارت...","task.activity.clientExecuting": "در حال اجرا بهصورت محلی...","task.activity.generating": "در حال تولید پاسخ...",@@ -399,7 +416,111 @@"task.status.initializing": "در حال آغاز وظیفه...","task.subtask": "زیرکار","task.title": "وظایف",+ "taskDetail.activities": "فعالیتها",+ "taskDetail.activities.agentTag": "عامل",+ "taskDetail.activities.fallback.brief": "یک خلاصه ارسال کرد",+ "taskDetail.activities.fallback.comment": "دیدگاهی گذاشت",+ "taskDetail.activities.fallback.created": "وظیفه را ایجاد کرد",+ "taskDetail.activities.fallback.topic": "یک موضوع ایجاد کرد",+ "taskDetail.activitiesEmpty": "هنوز فعالیتی وجود ندارد",+ "taskDetail.addSubtask": "افزودن زیروظیفه",+ "taskDetail.blockedBy": "مسدود شده توسط {{id}}",+ "taskDetail.comment.cancel": "انصراف",+ "taskDetail.comment.delete": "حذف",+ "taskDetail.comment.deleteConfirm.content": "این نظر بهطور دائمی حذف خواهد شد.",+ "taskDetail.comment.deleteConfirm.ok": "حذف",+ "taskDetail.comment.deleteConfirm.title": "این نظر حذف شود؟",+ "taskDetail.comment.edit": "ویرایش",+ "taskDetail.comment.save": "ذخیره",+ "taskDetail.commentPlaceholder": "دیدگاهی بنویسید...",+ "taskDetail.deleteConfirm.content": "این عمل غیرقابل بازگشت است.",+ "taskDetail.deleteConfirm.ok": "حذف",+ "taskDetail.deleteConfirm.title": "این وظیفه حذف شود؟",+ "taskDetail.instruction": "دستورالعمل",+ "taskDetail.instructionPlaceholder": "برای ویرایش دستورالعملهای وظیفه کلیک کنید...",+ "taskDetail.latestActivity.brief": "خلاصه: {{title}}",+ "taskDetail.latestActivity.briefOnly": "خلاصه",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "خلاصه ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "خلاصه ({{type}})",+ "taskDetail.latestActivity.topic": "موضوع: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "موضوع شماره {{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "موضوع بدون عنوان",+ "taskDetail.modelConfig": "بازنویسی مدل",+ "taskDetail.navigation": "ناوبری",+ "taskDetail.pauseTask": "توقف وظیفه",+ "taskDetail.priority.high": "زیاد",+ "taskDetail.priority.low": "کم",+ "taskDetail.priority.none": "بدون اولویت",+ "taskDetail.priority.normal": "عادی",+ "taskDetail.priority.urgent": "فوری",+ "taskDetail.properties": "ویژگیها",+ "taskDetail.reassignDisabled": "در حال اجرای وظیفه، امکان تغییر عامل وجود ندارد",+ "taskDetail.rerunTask": "اجرای دوباره وظیفه",+ "taskDetail.runTask": "اجرای وظیفه",+ "taskDetail.saveModelConfig": "ذخیره",+ "taskDetail.status.backlog": "در صف انتظار",+ "taskDetail.status.canceled": "لغو شده",+ "taskDetail.status.completed": "تکمیل شده",+ "taskDetail.status.failed": "ناموفق",+ "taskDetail.status.paused": "متوقف شده",+ "taskDetail.status.running": "در حال انجام",+ "taskDetail.stopTask": "توقف وظیفه",+ "taskDetail.subIssueOf": "زیرمجموعهای از",+ "taskDetail.subtaskInstructionPlaceholder": "توضیح زیروظیفه...",+ "taskDetail.subtasks": "زیروظایف",+ "taskDetail.titlePlaceholder": "عنوان وظیفه را وارد کنید...",+ "taskDetail.topicDrawer.untitled": "بدون عنوان",+ "taskDetail.updateFailed": "بهروزرسانی وظیفه ناموفق بود",+ "taskList.activeTasks": "وظایف فعال",+ "taskList.all": "همهٔ وظایف",+ "taskList.breadcrumb.task": "وظیفه",+ "taskList.empty": "هنوز وظیفهای وجود ندارد",+ "taskList.form.grouping": "گروهبندی",+ "taskList.form.orderCompletedByRecency": "مرتبسازی وظایف تکمیلشده بر اساس جدیدترین",+ "taskList.form.ordering": "مرتبسازی",+ "taskList.form.subGrouping": "زیرگروهبندی",+ "taskList.groupBy.assignee": "واگذارشده",+ "taskList.groupBy.none": "بدون گروهبندی",+ "taskList.groupBy.priority": "اولویت",+ "taskList.groupBy.status": "وضعیت",+ "taskList.orderBy.assignee": "واگذارشده",+ "taskList.orderBy.createdAt": "تاریخ ایجاد",+ "taskList.orderBy.priority": "اولویت",+ "taskList.orderBy.status": "وضعیت",+ "taskList.orderBy.title": "عنوان",+ "taskList.orderBy.updatedAt": "تاریخ بروزرسانی",+ "taskList.title": "وظایف",+ "taskList.unassigned": "واگذار نشده",+ "taskList.view.board": "برد",+ "taskList.view.list": "فهرست",+ "taskList.viewAll": "مشاهده همه",+ "taskSchedule.clear": "پاک کردن",+ "taskSchedule.enable": "فعالسازی خودکارسازی",+ "taskSchedule.every": "هر",+ "taskSchedule.hours": "ساعت",+ "taskSchedule.interval": "تکرارشونده",+ "taskSchedule.intervalTab": "تکرارشونده",+ "taskSchedule.minutes": "دقیقه",+ "taskSchedule.scheduler": "زمانبندی",+ "taskSchedule.schedulerNotReady": "زمانبندی بهزودی فعال میشود. فعلاً از حالت تکرارشونده استفاده کنید.",+ "taskSchedule.schedulerTab": "زمانبندی",+ "taskSchedule.seconds": "ثانیه",+ "taskSchedule.tag.add": "تنظیم زمانبندی",+ "taskSchedule.tag.every": "هر {{interval}}",+ "taskSchedule.tag.heartbeat": "ضربان · {{every}}",+ "taskSchedule.tag.schedule": "زمانبندی · {{schedule}}{{timezone}}",+ "taskSchedule.title": "زمانبندی",+ "taskSchedule.unit.hour_one": "{{count}} ساعت",+ "taskSchedule.unit.hour_other": "{{count}} ساعت",+ "taskSchedule.unit.minute_one": "{{count}} دقیقه",+ "taskSchedule.unit.minute_other": "{{count}} دقیقه",+ "taskSchedule.unit.second_one": "{{count}} ثانیه",+ "taskSchedule.unit.second_other": "{{count}} ثانیه",+ "thread.closeSubagentThread": "بستن گفتگوی عامل فرعی","thread.divider": "زیرموضوع",+ "thread.openSubagentThread": "مشاهده کامل گفتگوی عامل فرعی",+ "thread.subagentBadge": "عامل فرعی","thread.threadMessageCount": "{{messageCount}} پیام","thread.title": "زیرموضوع","todoProgress.allCompleted": "همه وظایف انجام شدهاند",@@ -428,14 +549,14 @@"tool.intervention.mode.autoRunDesc": "همه فراخوانیهای ابزار بهطور خودکار تأیید شوند","tool.intervention.mode.manual": "دستی","tool.intervention.mode.manualDesc": "برای هر فراخوانی تأیید دستی لازم است",- "tool.intervention.onboarding.agentIdentity.applyHint": "هویت جدید پس از تأیید نمایش داده میشود.",- "tool.intervention.onboarding.agentIdentity.description": "تأیید این تغییر، عامل نمایشدادهشده در صندوق ورودی و در این گفتوگوی راهاندازی را بهروزرسانی میکند.",+ "tool.intervention.onboarding.agentIdentity.applyHint": "هویت جدید پس از تأیید اعمال خواهد شد.",+ "tool.intervention.onboarding.agentIdentity.description": "تأیید این تغییر، عامل نمایشدادهشده در صندوق ورودی و این مکالمه راهاندازی را بهروزرسانی میکند.","tool.intervention.onboarding.agentIdentity.emoji": "آواتار عامل","tool.intervention.onboarding.agentIdentity.eyebrow": "تأیید راهاندازی","tool.intervention.onboarding.agentIdentity.name": "نام عامل","tool.intervention.onboarding.agentIdentity.targetInbox": "عامل صندوق ورودی","tool.intervention.onboarding.agentIdentity.targetOnboarding": "عامل راهاندازی فعلی",- "tool.intervention.onboarding.agentIdentity.targets": "اعمال برای",+ "tool.intervention.onboarding.agentIdentity.targets": "اعمال میشود بر","tool.intervention.onboarding.agentIdentity.title": "تأیید بهروزرسانی هویت عامل","tool.intervention.pending": "در انتظار","tool.intervention.reject": "رد کردن",@@ -459,7 +580,7 @@"topic.openNewTopic": "باز کردن موضوع جدید","topic.recent": "موضوعات اخیر","topic.saveCurrentMessages": "ذخیره گفتگوی فعلی بهعنوان موضوع",- "topic.viewAll": "نمایش همه موضوعات",+ "topic.viewAll": "مشاهده همه موضوعات","translate.action": "ترجمه","translate.clear": "پاک کردن ترجمه","tts.action": "تبدیل متن به گفتار",@@ -485,11 +606,11 @@"viewMode.normal": "استاندارد","viewMode.wideScreen": "نمای عریض","workflow.awaitingConfirmation": "در انتظار تأیید شما",- "workflow.collapse": "جمعکردن",- "workflow.expandFull": "باز کردن کامل",+ "workflow.collapse": "جمع کردن",+ "workflow.expandFull": "نمایش کامل","workflow.failedSuffix": "(ناموفق)",- "workflow.summaryFailed": "{{count}} ناموفق",- "workflow.summaryMoreTools": "+{{count}} بیشتر",+ "workflow.summaryFailed": "{{count}} مورد ناموفق",+ "workflow.summaryMoreTools": "{{count}} نوع ابزار","workflow.summaryTotalCalls": "{{count}} فراخوانی در مجموع","workflow.thoughtForDuration": "تفکر به مدت {{duration}}","workflow.toolDisplayName.activateDevice": "دستگاه فعالشده",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "هنوز سندی وجود ندارد. اسنادی که به این عامل مرتبط باشند اینجا نمایش داده خواهند شد.",+ "workingPanel.resources.empty": "هنوز سندی وجود ندارد. اسناد مرتبط با این عامل در اینجا نمایش داده میشوند.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "همه","workingPanel.resources.filter.documents": "اسناد",diff --git a/locales/fa-IR/home.json b/locales/fa-IR/home.jsonindex 4e5751c7d83..43f693fb47e 100644--- a/locales/fa-IR/home.json+++ b/locales/fa-IR/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "در حال حاضر هیچ عاملی قابل افزودن نیست","agentSelection.noSelected": "هیچ عاملی انتخاب نشده است","agentSelection.search": "هیچ عاملی مطابق با جستجو یافت نشد",+ "brief.action.acknowledge": "تأیید",+ "brief.action.approve": "پذیرفتن",+ "brief.action.feedback": "بازخورد",+ "brief.action.retry": "تلاش دوباره",+ "brief.addFeedback": "اشتراکگذاری بازخورد",+ "brief.collapse": "نمایش کمتر",+ "brief.commentPlaceholder": "بازخورد خود را بنویسید...",+ "brief.commentSubmit": "ارسال بازخورد",+ "brief.expandAll": "نمایش بیشتر",+ "brief.feedbackSent": "بازخورد ارسال شد",+ "brief.resolved": "بهعنوان حلشده علامت خورد",+ "brief.title": "گزارش روزانه",+ "brief.viewAllTasks": "مشاهدهٔ همهٔ وظایف","project.create": "پروژه جدید",- "project.deleteConfirm": "این پروژه حذف خواهد شد و قابل بازیابی نیست. برای ادامه تأیید کنید.",+ "project.deleteConfirm": "این پروژه حذف خواهد شد و امکان بازیابی آن وجود ندارد. برای ادامه تأیید کنید.","starter.createAgent": "ایجاد عامل","starter.createGroup": "ایجاد گروه","starter.deepResearch": "تحقیق عمیق",diff --git a/locales/fa-IR/plugin.json b/locales/fa-IR/plugin.jsonindex 055763ed3ce..043fbf117d7 100644--- a/locales/fa-IR/plugin.json+++ b/locales/fa-IR/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "افزونه","builtins.lobe-agent-management.render.installPlugin.success": "با موفقیت نصب شد","builtins.lobe-agent-management.title": "مدیریت نمایندگان",+ "builtins.lobe-claude-code.agent.instruction": "دستورالعمل",+ "builtins.lobe-claude-code.agent.result": "نتیجه","builtins.lobe-claude-code.todoWrite.allDone": "همه کارها انجام شدند","builtins.lobe-claude-code.todoWrite.currentStep": "مرحلهی فعلی","builtins.lobe-claude-code.todoWrite.todos": "کارها",diff --git a/locales/fa-IR/topic.json b/locales/fa-IR/topic.jsonindex 60beb876c57..4794bc4c17c 100644--- a/locales/fa-IR/topic.json+++ b/locales/fa-IR/topic.json@@ -15,20 +15,24 @@"actions.export": "خروجی گرفتن از گفتوگوها","actions.favorite": "مورد علاقه","actions.import": "وارد کردن گفتوگو",+ "actions.markCompleted": "علامتگذاری بهعنوان انجامشده","actions.openInNewTab": "باز کردن در تب جدید","actions.openInNewWindow": "باز کردن در پنجره جدید","actions.removeAll": "حذف تمام گفتوگوها","actions.removeUnstarred": "حذف گفتوگوهای بدون ستاره","actions.unfavorite": "لغو مورد علاقه",+ "actions.unmarkCompleted": "علامتگذاری بهعنوان فعال","defaultTitle": "گفتوگوی پیشفرض","displayItems": "نمایش موارد","duplicateLoading": "در حال کپیبرداری از گفتوگو...","duplicateSuccess": "گفتوگو با موفقیت کپی شد","favorite": "نشانکردن",+ "filter.filter": "فیلتر","filter.groupMode.byProject": "بر اساس پروژه","filter.groupMode.byTime": "بر اساس زمان","filter.groupMode.flat": "بدون گروهبندی","filter.organize": "سازماندهی",+ "filter.showCompleted": "شامل موارد انجامشده","filter.sort": "مرتبسازی","filter.sortBy.createdAt": "زمان ایجاد","filter.sortBy.updatedAt": "زمان بهروزرسانی",@@ -52,6 +56,7 @@"renameModal.title": "تغییر نام موضوع","searchPlaceholder": "جستجوی گفتوگوها...","searchResultEmpty": "نتیجهای برای جستجو یافت نشد.",+ "taskManager.welcome": "در مورد کارهایت از من بپرس","temp": "موقت","title": "گفتوگو"}diff --git a/locales/fr-FR/auth.json b/locales/fr-FR/auth.jsonindex 0e004eb1e50..00fd88daebb 100644--- a/locales/fr-FR/auth.json+++ b/locales/fr-FR/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Réinitialiser le mot de passe","profile.email": "Adresse e-mail","profile.emailChangeSuccess": "E-mail de vérification envoyé. Veuillez vérifier la boîte de réception de votre nouvelle adresse e-mail.",- "profile.emailInputHint": "Entrez votre nouvelle adresse e-mail","profile.emailInvalid": "Veuillez entrer une adresse e-mail valide","profile.emailPlaceholder": "[email protected]","profile.fullName": "Nom complet",diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.jsonindex b9f3ac7cac6..6de3b50245a 100644--- a/locales/fr-FR/chat.json+++ b/locales/fr-FR/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Bonjour, je suis **{{name}}**. Une phrase suffit.\n\nVous souhaitez que je m’adapte mieux à votre flux de travail ? Allez dans [Paramètres de l’agent]({{url}}) et complétez le profil de l’agent (modifiable à tout moment).","agentDefaultMessageWithSystemRole": "Bonjour, je suis **{{name}}**. Une phrase suffit — vous avez le contrôle.","agentDefaultMessageWithoutEdit": "Bonjour, je suis **{{name}}**. Une phrase suffit — vous avez le contrôle.",+ "agentProfile.files_one": "{{count}} fichier",+ "agentProfile.files_other": "{{count}} fichiers",+ "agentProfile.knowledgeBases_one": "{{count}} base de connaissances",+ "agentProfile.knowledgeBases_other": "{{count}} bases de connaissances",+ "agentProfile.skills_one": "{{count}} compétence",+ "agentProfile.skills_other": "{{count}} compétences","agents": "Agents","artifact.generating": "Génération en cours","artifact.inThread": "Impossible d’afficher dans un sous-sujet, veuillez revenir à la conversation principale pour l’ouvrir",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "Groupe supprimé avec succès","confirmRemoveSessionItemAlert": "Vous êtes sur le point de supprimer cet agent. Une fois supprimé, il ne pourra pas être récupéré. Veuillez confirmer votre action.","confirmRemoveSessionSuccess": "Agent supprimé avec succès",- "createModal.createBlank": "Créer un modèle vierge",+ "createModal.createBlank": "Créer à partir de zéro","createModal.groupPlaceholder": "Décrivez ce que ce groupe doit faire...","createModal.groupTitle": "Que doit faire votre groupe ?","createModal.placeholder": "Décrivez ce que votre agent doit faire...","createModal.title": "Que doit faire votre agent ?",+ "createTask.assignee": "Attribué à",+ "createTask.collapse": "Masquer le champ",+ "createTask.expandToInline": "Ancrer à la page",+ "createTask.instructionPlaceholder": "Ajouter une description...",+ "createTask.submit": "Créer la tâche",+ "createTask.titlePlaceholder": "Titre de la tâche","defaultAgent": "Agent par défaut","defaultGroupChat": "Groupe","defaultList": "Liste par défaut",@@ -82,6 +94,7 @@"extendParams.title": "Fonctionnalités d’extension du modèle","extendParams.urlContext.desc": "Lorsqu’il est activé, les liens web sont automatiquement analysés pour extraire le contenu réel de la page","extendParams.urlContext.title": "Extraire le contenu des liens web",+ "followUpPlaceholder": "Donner suite. @ pour attribuer des tâches à d’autres agents.","group.desc": "Faites avancer une tâche avec plusieurs agents dans un espace partagé.","group.memberTooltip": "Il y a {{count}} membres dans le groupe","group.orchestratorThinking": "L’orchestrateur réfléchit...",@@ -125,9 +138,9 @@"groupWizard.useTemplate": "Utiliser un modèle","heteroAgent.fullAccess.label": "Accès complet","heteroAgent.fullAccess.tooltip": "Claude Code s’exécute localement avec un accès complet en lecture/écriture au répertoire de travail. Le changement de mode d’autorisation n’est pas encore disponible.",- "heteroAgent.resumeReset.cwdChanged": "Le répertoire de travail a été modifié. La session précédente de Claude Code ne peut être reprise qu’à partir de son répertoire d’origine ; une nouvelle conversation a donc commencé.",+ "heteroAgent.resumeReset.cwdChanged": "Répertoire de travail modifié. La session précédente de Claude Code ne peut être reprise qu’à partir de son répertoire d’origine ; une nouvelle conversation a donc commencé.","heteroAgent.switchCwd.cancel": "Annuler",- "heteroAgent.switchCwd.content": "Les sessions Claude Code sont liées à un répertoire de travail. Changer de répertoire lancera une nouvelle session pour ce sujet — les messages restent, mais le contexte de la session précédente ne peut pas être repris.",+ "heteroAgent.switchCwd.content": "Les sessions Claude Code sont liées à un répertoire de travail. En changer démarrera une nouvelle session pour ce sujet — les messages restent, mais le contexte de la session précédente ne pourra pas être repris.","heteroAgent.switchCwd.ok": "Changer et démarrer une nouvelle session","heteroAgent.switchCwd.title": "Changer de répertoire de travail ?","hideForYou": "Le contenu du message privé est masqué. Veuillez activer « Afficher le contenu des messages privés » dans les paramètres pour le voir.",@@ -141,7 +154,7 @@"input.addUser": "Ajouter un message utilisateur","input.disclaimer": "Les agents peuvent faire des erreurs. Faites preuve de discernement pour les informations critiques.","input.errorMsg": "Échec de l’envoi : {{errorMsg}}. Réessayez ou envoyez plus tard.",- "input.more": "plus",+ "input.more": "Plus","input.send": "Envoyer","input.sendWithCmdEnter": "Appuyez sur <key/> pour envoyer","input.sendWithEnter": "Appuyez sur <key/> pour envoyer",@@ -243,8 +256,9 @@"operation.contextCompression": "Contexte trop long, compression de l'historique...","operation.execAgentRuntime": "Préparation de la réponse","operation.execClientTask": "Exécution de la tâche",- "operation.execHeterogeneousAgent": "Agent externe en cours d’exécution",- "operation.execServerAgentRuntime": "Exécution en cours… Vous pouvez changer de tâche ou fermer la page — la tâche continuera.",+ "operation.execHeterogeneousAgent": "{{name}} est en cours d’exécution",+ "operation.execServerAgentRuntime": "En cours… Vous pouvez changer de tâche ou fermer la page — la tâche continuera.",+ "operation.heterogeneousAgentFallback": "Agent externe","operation.sendMessage": "Envoi du message","owner": "Propriétaire du groupe","pageCopilot.title": "Agent de page",@@ -285,6 +299,8 @@"searchAgents": "Rechercher des agents...","selectedAgents": "Agents sélectionnés","sendPlaceholder": "Demandez, créez ou lancez une tâche, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Demander à {{name}} d’effectuer une tâche...",+ "sendPlaceholderWithAgentAssignment": "Demander, créer ou lancer une tâche. @ pour attribuer des tâches à d’autres agents.","sessionGroup.config": "Gestion de groupe","sessionGroup.confirmRemoveGroupAlert": "Ce groupe va être supprimé. Après suppression, les agents seront déplacés vers la liste par défaut. Veuillez confirmer votre action.","sessionGroup.createAgentSuccess": "Agent créé avec succès",@@ -378,6 +394,7 @@"tab.integration": "Intégration","tab.profile": "Profil de l'agent","tab.search": "Recherche",+ "tab.tasks": "Tâches","task.activity.calling": "Appel de compétence...","task.activity.clientExecuting": "Exécution en local...","task.activity.generating": "Génération de la réponse...",@@ -399,7 +416,111 @@"task.status.initializing": "Initialisation de la tâche...","task.subtask": "Sous-tâche","task.title": "Tâches",+ "taskDetail.activities": "Activités",+ "taskDetail.activities.agentTag": "Agent",+ "taskDetail.activities.fallback.brief": "a publié un résumé",+ "taskDetail.activities.fallback.comment": "a laissé un commentaire",+ "taskDetail.activities.fallback.created": "a créé la tâche",+ "taskDetail.activities.fallback.topic": "a lancé un sujet",+ "taskDetail.activitiesEmpty": "Aucune activité pour le moment",+ "taskDetail.addSubtask": "Ajouter une sous-tâche",+ "taskDetail.blockedBy": "Bloqué par {{id}}",+ "taskDetail.comment.cancel": "Annuler",+ "taskDetail.comment.delete": "Supprimer",+ "taskDetail.comment.deleteConfirm.content": "Ce commentaire sera définitivement supprimé.",+ "taskDetail.comment.deleteConfirm.ok": "Supprimer",+ "taskDetail.comment.deleteConfirm.title": "Supprimer ce commentaire ?",+ "taskDetail.comment.edit": "Modifier",+ "taskDetail.comment.save": "Enregistrer",+ "taskDetail.commentPlaceholder": "Laissez un commentaire...",+ "taskDetail.deleteConfirm.content": "Cette action est irréversible.",+ "taskDetail.deleteConfirm.ok": "Supprimer",+ "taskDetail.deleteConfirm.title": "Supprimer cette tâche ?",+ "taskDetail.instruction": "Instruction",+ "taskDetail.instructionPlaceholder": "Cliquez pour modifier les instructions de la tâche...",+ "taskDetail.latestActivity.brief": "Résumé : {{title}}",+ "taskDetail.latestActivity.briefOnly": "Résumé",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Résumé ({{type}}) : {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Résumé ({{type}})",+ "taskDetail.latestActivity.topic": "Sujet : {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Sujet n°{{seq}} : {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Sujet sans titre",+ "taskDetail.modelConfig": "Remplacement du modèle",+ "taskDetail.navigation": "Navigation",+ "taskDetail.pauseTask": "Mettre la tâche en pause",+ "taskDetail.priority.high": "Haute",+ "taskDetail.priority.low": "Basse",+ "taskDetail.priority.none": "Aucune priorité",+ "taskDetail.priority.normal": "Normale",+ "taskDetail.priority.urgent": "Urgente",+ "taskDetail.properties": "Propriétés",+ "taskDetail.reassignDisabled": "Impossible de réattribuer l’agent pendant l’exécution de la tâche",+ "taskDetail.rerunTask": "Relancer la tâche",+ "taskDetail.runTask": "Lancer la tâche",+ "taskDetail.saveModelConfig": "Enregistrer",+ "taskDetail.status.backlog": "En attente",+ "taskDetail.status.canceled": "Annulée",+ "taskDetail.status.completed": "Terminée",+ "taskDetail.status.failed": "Échouée",+ "taskDetail.status.paused": "En pause",+ "taskDetail.status.running": "En cours",+ "taskDetail.stopTask": "Arrêter la tâche",+ "taskDetail.subIssueOf": "Sous-problème de",+ "taskDetail.subtaskInstructionPlaceholder": "Décrire la sous-tâche...",+ "taskDetail.subtasks": "Sous-tâches",+ "taskDetail.titlePlaceholder": "Saisissez le titre de la tâche...",+ "taskDetail.topicDrawer.untitled": "Sans titre",+ "taskDetail.updateFailed": "Échec de la mise à jour de la tâche",+ "taskList.activeTasks": "Tâches Actives",+ "taskList.all": "Toutes les tâches",+ "taskList.breadcrumb.task": "Tâche",+ "taskList.empty": "Aucune tâche pour le moment",+ "taskList.form.grouping": "Regroupement",+ "taskList.form.orderCompletedByRecency": "Trier les tâches terminées par ancienneté",+ "taskList.form.ordering": "Tri",+ "taskList.form.subGrouping": "Sous-regroupement",+ "taskList.groupBy.assignee": "Attribué à",+ "taskList.groupBy.none": "Aucun regroupement",+ "taskList.groupBy.priority": "Priorité",+ "taskList.groupBy.status": "Statut",+ "taskList.orderBy.assignee": "Attribué à",+ "taskList.orderBy.createdAt": "Date de création",+ "taskList.orderBy.priority": "Priorité",+ "taskList.orderBy.status": "Statut",+ "taskList.orderBy.title": "Titre",+ "taskList.orderBy.updatedAt": "Date de mise à jour",+ "taskList.title": "Tâches",+ "taskList.unassigned": "Non attribuée",+ "taskList.view.board": "Tableau",+ "taskList.view.list": "Liste",+ "taskList.viewAll": "Tout afficher",+ "taskSchedule.clear": "Effacer",+ "taskSchedule.enable": "Activer l’automatisation",+ "taskSchedule.every": "Toutes les",+ "taskSchedule.hours": "Heures",+ "taskSchedule.interval": "Récurrence",+ "taskSchedule.intervalTab": "Récurrence",+ "taskSchedule.minutes": "Minutes",+ "taskSchedule.scheduler": "Planificateur",+ "taskSchedule.schedulerNotReady": "Le planificateur arrive bientôt. Utilisez la récurrence pour le moment.",+ "taskSchedule.schedulerTab": "Planificateur",+ "taskSchedule.seconds": "Secondes",+ "taskSchedule.tag.add": "Définir un planning",+ "taskSchedule.tag.every": "toutes les {{interval}}",+ "taskSchedule.tag.heartbeat": "Rythme · {{every}}",+ "taskSchedule.tag.schedule": "Planning · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Planning",+ "taskSchedule.unit.hour_one": "{{count}} heure",+ "taskSchedule.unit.hour_other": "{{count}} heures",+ "taskSchedule.unit.minute_one": "{{count}} minute",+ "taskSchedule.unit.minute_other": "{{count}} minutes",+ "taskSchedule.unit.second_one": "{{count}} seconde",+ "taskSchedule.unit.second_other": "{{count}} secondes",+ "thread.closeSubagentThread": "Réduire la conversation du sous-agent","thread.divider": "Sous-sujet",+ "thread.openSubagentThread": "Afficher la conversation complète du sous-agent",+ "thread.subagentBadge": "Sous-agent","thread.threadMessageCount": "{{messageCount}} messages","thread.title": "Sous-sujet","todoProgress.allCompleted": "Toutes les tâches sont terminées",@@ -429,9 +550,9 @@"tool.intervention.mode.manual": "Manuel","tool.intervention.mode.manualDesc": "Approbation manuelle requise pour chaque appel","tool.intervention.onboarding.agentIdentity.applyHint": "La nouvelle identité apparaîtra après approbation.",- "tool.intervention.onboarding.agentIdentity.description": "Approuver ce changement met à jour l’agent affiché dans la boîte de réception et dans cette conversation d’onboarding.",+ "tool.intervention.onboarding.agentIdentity.description": "Approuver ce changement met à jour l’Agent affiché dans la boîte de réception et dans cette conversation d’onboarding.","tool.intervention.onboarding.agentIdentity.emoji": "Avatar de l’agent",- "tool.intervention.onboarding.agentIdentity.eyebrow": "Approbation d’onboarding",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "Approbation de l’onboarding","tool.intervention.onboarding.agentIdentity.name": "Nom de l’agent","tool.intervention.onboarding.agentIdentity.targetInbox": "Agent de la boîte de réception","tool.intervention.onboarding.agentIdentity.targetOnboarding": "Agent d’onboarding actuel",@@ -486,10 +607,10 @@"viewMode.wideScreen": "Grand écran","workflow.awaitingConfirmation": "En attente de votre confirmation","workflow.collapse": "Réduire",- "workflow.expandFull": "Développer entièrement",+ "workflow.expandFull": "Développer complètement","workflow.failedSuffix": "(échec)","workflow.summaryFailed": "{{count}} échecs",- "workflow.summaryMoreTools": "+{{count}} de plus",+ "workflow.summaryMoreTools": "{{count}} types d’outils","workflow.summaryTotalCalls": "{{count}} appels au total","workflow.thoughtForDuration": "Réflexion pendant {{duration}}","workflow.toolDisplayName.activateDevice": "Appareil activé",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Aucun document pour le moment. Les documents associés à cet agent apparaîtront ici.",+ "workingPanel.resources.empty": "Aucun document pour l’instant. Les documents associés à cet agent apparaîtront ici.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Tous","workingPanel.resources.filter.documents": "Documents",diff --git a/locales/fr-FR/home.json b/locales/fr-FR/home.jsonindex f9ce5b4110a..a784cb545e9 100644--- a/locales/fr-FR/home.json+++ b/locales/fr-FR/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Aucun agent ne peut être ajouté pour le moment","agentSelection.noSelected": "Aucun agent sélectionné","agentSelection.search": "Aucun agent correspondant trouvé",+ "brief.action.acknowledge": "Accuser réception",+ "brief.action.approve": "Approuver",+ "brief.action.feedback": "Retour",+ "brief.action.retry": "Réessayer",+ "brief.addFeedback": "Partager un retour",+ "brief.collapse": "Afficher moins",+ "brief.commentPlaceholder": "Partagez votre retour...",+ "brief.commentSubmit": "Envoyer le retour",+ "brief.expandAll": "Afficher plus",+ "brief.feedbackSent": "Retour envoyé",+ "brief.resolved": "Marqué comme résolu",+ "brief.title": "Compte rendu quotidien",+ "brief.viewAllTasks": "Afficher toutes les tâches","project.create": "Nouveau projet","project.deleteConfirm": "Ce projet sera supprimé et ne pourra pas être récupéré. Confirmez pour continuer.","starter.createAgent": "Créer un agent",diff --git a/locales/fr-FR/plugin.json b/locales/fr-FR/plugin.jsonindex 7fef00f9c57..6d139bd8f66 100644--- a/locales/fr-FR/plugin.json+++ b/locales/fr-FR/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Plugin","builtins.lobe-agent-management.render.installPlugin.success": "Installé avec succès","builtins.lobe-agent-management.title": "Gestionnaire d'agents",+ "builtins.lobe-claude-code.agent.instruction": "Consigne",+ "builtins.lobe-claude-code.agent.result": "Résultat","builtins.lobe-claude-code.todoWrite.allDone": "Toutes les tâches sont terminées","builtins.lobe-claude-code.todoWrite.currentStep": "Étape actuelle","builtins.lobe-claude-code.todoWrite.todos": "Tâches",diff --git a/locales/fr-FR/topic.json b/locales/fr-FR/topic.jsonindex 395b89a70ef..e2446227bad 100644--- a/locales/fr-FR/topic.json+++ b/locales/fr-FR/topic.json@@ -15,20 +15,24 @@"actions.export": "Exporter les sujets","actions.favorite": "Favori","actions.import": "Importer une conversation",+ "actions.markCompleted": "Marquer comme terminé","actions.openInNewTab": "Ouvrir dans un nouvel onglet","actions.openInNewWindow": "Ouvrir dans une nouvelle fenêtre","actions.removeAll": "Supprimer tous les sujets","actions.removeUnstarred": "Supprimer les sujets non favoris","actions.unfavorite": "Retirer des favoris",+ "actions.unmarkCompleted": "Marquer comme actif","defaultTitle": "Sujet par défaut","displayItems": "Afficher les éléments","duplicateLoading": "Copie du sujet en cours...","duplicateSuccess": "Sujet copié avec succès","favorite": "Favori",+ "filter.filter": "Filtrer","filter.groupMode.byProject": "Par projet","filter.groupMode.byTime": "Par date","filter.groupMode.flat": "Sans regroupement","filter.organize": "Organiser",+ "filter.showCompleted": "Inclure les tâches terminées","filter.sort": "Trier par","filter.sortBy.createdAt": "Date de création","filter.sortBy.updatedAt": "Date de mise à jour",@@ -52,6 +56,7 @@"renameModal.title": "Renommer le sujet","searchPlaceholder": "Rechercher des sujets...","searchResultEmpty": "Aucun résultat trouvé.",+ "taskManager.welcome": "Demandez-moi à propos de vos tâches","temp": "Temporaire","title": "Sujet"}diff --git a/locales/it-IT/auth.json b/locales/it-IT/auth.jsonindex e6da415a693..156b349ea5d 100644--- a/locales/it-IT/auth.json+++ b/locales/it-IT/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Reimposta password","profile.email": "Indirizzo Email","profile.emailChangeSuccess": "Email di verifica inviata. Controlla la casella di posta del tuo nuovo indirizzo email.",- "profile.emailInputHint": "Inserisci il tuo nuovo indirizzo email","profile.emailInvalid": "Per favore, inserisci un indirizzo email valido","profile.emailPlaceholder": "[email protected]","profile.fullName": "Nome completo",diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.jsonindex acb23b03e72..442b5d76ade 100644--- a/locales/it-IT/chat.json+++ b/locales/it-IT/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Ciao, sono **{{name}}**. Una frase è sufficiente.\n\nVuoi che mi adatti meglio al tuo flusso di lavoro? Vai su [Impostazioni Agente]({{url}}) e compila il Profilo Agente (puoi modificarlo in qualsiasi momento).","agentDefaultMessageWithSystemRole": "Ciao, sono **{{name}}**. Una frase è sufficiente—sei tu al comando.","agentDefaultMessageWithoutEdit": "Ciao, sono **{{name}}**. Una frase è sufficiente—sei tu al comando.",+ "agentProfile.files_one": "{{count}} file",+ "agentProfile.files_other": "{{count}} file",+ "agentProfile.knowledgeBases_one": "{{count}} base di conoscenza",+ "agentProfile.knowledgeBases_other": "{{count}} basi di conoscenza",+ "agentProfile.skills_one": "{{count}} competenza",+ "agentProfile.skills_other": "{{count}} competenze","agents": "Agenti","artifact.generating": "Generazione in corso","artifact.inThread": "Impossibile visualizzare nel sottotema, passa all'area principale della conversazione per aprire",@@ -47,6 +53,12 @@"createModal.groupTitle": "Cosa dovrebbe fare il tuo gruppo?","createModal.placeholder": "Descrivi cosa dovrebbe fare il tuo agente...","createModal.title": "Cosa dovrebbe fare il tuo agente?",+ "createTask.assignee": "Assegnatario",+ "createTask.collapse": "Nascondi input",+ "createTask.expandToInline": "Aggancia alla pagina",+ "createTask.instructionPlaceholder": "Aggiungi una descrizione...",+ "createTask.submit": "Crea attività",+ "createTask.titlePlaceholder": "Titolo dell’attività","defaultAgent": "Agente predefinito","defaultGroupChat": "Gruppo","defaultList": "Elenco predefinito",@@ -82,6 +94,7 @@"extendParams.title": "Funzionalità Estese del Modello","extendParams.urlContext.desc": "Se abilitato, i link web verranno automaticamente analizzati per recuperare il contenuto della pagina","extendParams.urlContext.title": "Estrai Contenuto da Link Web",+ "followUpPlaceholder": "Follow-up. Usa @ per assegnare attività ad altri agenti.","group.desc": "Fai avanzare un'attività con più Agenti in uno spazio condiviso.","group.memberTooltip": "Ci sono {{count}} membri nel gruppo","group.orchestratorThinking": "L'Orchestratore sta pensando...",@@ -124,10 +137,10 @@"groupWizard.title": "Crea Gruppo","groupWizard.useTemplate": "Usa Modello","heteroAgent.fullAccess.label": "Accesso completo",- "heteroAgent.fullAccess.tooltip": "Claude Code viene eseguito localmente con pieno accesso in lettura/scrittura alla directory di lavoro. La modifica delle modalità di autorizzazione non è ancora disponibile.",- "heteroAgent.resumeReset.cwdChanged": "Directory di lavoro modificata. La sessione precedente di Claude Code può essere ripresa solo dalla sua directory originale, quindi è iniziata una nuova conversazione.",+ "heteroAgent.fullAccess.tooltip": "Claude Code viene eseguito localmente con accesso completo in lettura/scrittura alla directory di lavoro. Il cambio delle modalità di autorizzazione non è ancora disponibile.",+ "heteroAgent.resumeReset.cwdChanged": "La directory di lavoro è stata modificata. Una sessione precedente di Claude Code può essere ripristinata solo dalla directory originale, quindi è iniziata una nuova conversazione.","heteroAgent.switchCwd.cancel": "Annulla",- "heteroAgent.switchCwd.content": "Le sessioni di Claude Code sono associate a una directory di lavoro. Cambiarla avvierà una nuova sessione per questo argomento: i messaggi della chat rimarranno, ma il contesto della sessione precedente non potrà essere ripristinato.",+ "heteroAgent.switchCwd.content": "Le sessioni di Claude Code sono vincolate a una directory di lavoro. Cambiarla avvierà una nuova sessione per questo argomento: i messaggi rimarranno, ma il contesto della sessione precedente non potrà essere ripristinato.","heteroAgent.switchCwd.ok": "Cambia e avvia nuova sessione","heteroAgent.switchCwd.title": "Cambiare la directory di lavoro?","hideForYou": "Il contenuto del messaggio diretto è nascosto. Abilita 'Mostra contenuto dei messaggi diretti' nelle impostazioni per visualizzarlo.",@@ -141,7 +154,7 @@"input.addUser": "Aggiungi un messaggio utente","input.disclaimer": "Gli agenti possono commettere errori. Usa il tuo giudizio per informazioni critiche.","input.errorMsg": "Invio non riuscito: {{errorMsg}}. Riprova o invia più tardi.",- "input.more": "altro",+ "input.more": "Altro","input.send": "Invia","input.sendWithCmdEnter": "Premi <key/> per inviare","input.sendWithEnter": "Premi <key/> per inviare",@@ -243,8 +256,9 @@"operation.contextCompression": "Contesto troppo lungo, compressione della cronologia in corso...","operation.execAgentRuntime": "Preparazione della risposta","operation.execClientTask": "Esecuzione attività",- "operation.execHeterogeneousAgent": "Agente esterno in esecuzione",- "operation.execServerAgentRuntime": "In esecuzione… Puoi cambiare attività o chiudere la pagina: l’attività continuerà.",+ "operation.execHeterogeneousAgent": "{{name}} è in esecuzione",+ "operation.execServerAgentRuntime": "In esecuzione… Puoi cambiare attività o chiudere la pagina: l'attività continuerà.",+ "operation.heterogeneousAgentFallback": "Agente esterno","operation.sendMessage": "Invio del messaggio","owner": "Proprietario del gruppo","pageCopilot.title": "Agente di pagina",@@ -285,6 +299,8 @@"searchAgents": "Cerca agenti...","selectedAgents": "Agenti selezionati","sendPlaceholder": "Chiedi, crea o avvia un'attività, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Chiedi a {{name}} di svolgere un compito...",+ "sendPlaceholderWithAgentAssignment": "Chiedi, crea o avvia un’attività. Usa @ per assegnare attività ad altri agenti.","sessionGroup.config": "Gestione gruppi","sessionGroup.confirmRemoveGroupAlert": "Questo gruppo sta per essere eliminato. Dopo l'eliminazione, gli agenti verranno spostati nella lista predefinita. Confermi l'operazione?","sessionGroup.createAgentSuccess": "Agente creato con successo",@@ -378,6 +394,7 @@"tab.integration": "Integrazione","tab.profile": "Profilo agente","tab.search": "Cerca",+ "tab.tasks": "Attività","task.activity.calling": "Chiamata Skill...","task.activity.clientExecuting": "Esecuzione in locale...","task.activity.generating": "Generazione risposta...",@@ -399,7 +416,111 @@"task.status.initializing": "Inizializzazione attività...","task.subtask": "Sottocompito","task.title": "Attività",+ "taskDetail.activities": "Attività",+ "taskDetail.activities.agentTag": "Agente",+ "taskDetail.activities.fallback.brief": "ha pubblicato un brief",+ "taskDetail.activities.fallback.comment": "ha lasciato un commento",+ "taskDetail.activities.fallback.created": "ha creato l’attività",+ "taskDetail.activities.fallback.topic": "ha avviato un argomento",+ "taskDetail.activitiesEmpty": "Nessuna attività",+ "taskDetail.addSubtask": "Aggiungi sotto-attività",+ "taskDetail.blockedBy": "Bloccata da {{id}}",+ "taskDetail.comment.cancel": "Annulla",+ "taskDetail.comment.delete": "Elimina",+ "taskDetail.comment.deleteConfirm.content": "Questo commento verrà rimosso definitivamente.",+ "taskDetail.comment.deleteConfirm.ok": "Elimina",+ "taskDetail.comment.deleteConfirm.title": "Eliminare questo commento?",+ "taskDetail.comment.edit": "Modifica",+ "taskDetail.comment.save": "Salva",+ "taskDetail.commentPlaceholder": "Lascia un commento...",+ "taskDetail.deleteConfirm.content": "Questa azione non può essere annullata.",+ "taskDetail.deleteConfirm.ok": "Elimina",+ "taskDetail.deleteConfirm.title": "Eliminare questa attività?",+ "taskDetail.instruction": "Istruzioni",+ "taskDetail.instructionPlaceholder": "Fai clic per modificare le istruzioni dell’attività...",+ "taskDetail.latestActivity.brief": "Brief: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Brief",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Brief ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Brief ({{type}})",+ "taskDetail.latestActivity.topic": "Argomento: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Argomento n. {{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Argomento senza titolo",+ "taskDetail.modelConfig": "Override del modello",+ "taskDetail.navigation": "Navigazione",+ "taskDetail.pauseTask": "Metti in pausa",+ "taskDetail.priority.high": "Alta",+ "taskDetail.priority.low": "Bassa",+ "taskDetail.priority.none": "Nessuna priorità",+ "taskDetail.priority.normal": "Normale",+ "taskDetail.priority.urgent": "Urgente",+ "taskDetail.properties": "Proprietà",+ "taskDetail.reassignDisabled": "Impossibile riassegnare l’agente mentre l’attività è in esecuzione",+ "taskDetail.rerunTask": "Riavvia attività",+ "taskDetail.runTask": "Esegui attività",+ "taskDetail.saveModelConfig": "Salva",+ "taskDetail.status.backlog": "In attesa",+ "taskDetail.status.canceled": "Annullata",+ "taskDetail.status.completed": "Completata",+ "taskDetail.status.failed": "Non riuscita",+ "taskDetail.status.paused": "In pausa",+ "taskDetail.status.running": "In corso",+ "taskDetail.stopTask": "Ferma attività",+ "taskDetail.subIssueOf": "Sotto-attività di",+ "taskDetail.subtaskInstructionPlaceholder": "Descrivi la sotto-attività...",+ "taskDetail.subtasks": "Sotto-attività",+ "taskDetail.titlePlaceholder": "Inserisci il titolo dell’attività...",+ "taskDetail.topicDrawer.untitled": "Senza titolo",+ "taskDetail.updateFailed": "Impossibile aggiornare l’attività",+ "taskList.activeTasks": "Attività Attive",+ "taskList.all": "Tutte le attività",+ "taskList.breadcrumb.task": "Attività",+ "taskList.empty": "Nessuna attività",+ "taskList.form.grouping": "Raggruppamento",+ "taskList.form.orderCompletedByRecency": "Ordina le attività completate per data recente",+ "taskList.form.ordering": "Ordinamento",+ "taskList.form.subGrouping": "Sotto-raggruppamento",+ "taskList.groupBy.assignee": "Assegnatario",+ "taskList.groupBy.none": "Nessun raggruppamento",+ "taskList.groupBy.priority": "Priorità",+ "taskList.groupBy.status": "Stato",+ "taskList.orderBy.assignee": "Assegnatario",+ "taskList.orderBy.createdAt": "Data di creazione",+ "taskList.orderBy.priority": "Priorità",+ "taskList.orderBy.status": "Stato",+ "taskList.orderBy.title": "Titolo",+ "taskList.orderBy.updatedAt": "Data di aggiornamento",+ "taskList.title": "Attività",+ "taskList.unassigned": "Non assegnata",+ "taskList.view.board": "Bacheca",+ "taskList.view.list": "Lista",+ "taskList.viewAll": "Mostra tutto",+ "taskSchedule.clear": "Cancella",+ "taskSchedule.enable": "Attiva automazione",+ "taskSchedule.every": "Ogni",+ "taskSchedule.hours": "Ore",+ "taskSchedule.interval": "Ricorrente",+ "taskSchedule.intervalTab": "Ricorrente",+ "taskSchedule.minutes": "Minuti",+ "taskSchedule.scheduler": "Pianificatore",+ "taskSchedule.schedulerNotReady": "Il pianificatore arriverà presto. Per ora usa Ricorrente.",+ "taskSchedule.schedulerTab": "Pianificatore",+ "taskSchedule.seconds": "Secondi",+ "taskSchedule.tag.add": "Imposta pianificazione",+ "taskSchedule.tag.every": "ogni {{interval}}",+ "taskSchedule.tag.heartbeat": "Heartbeat · {{every}}",+ "taskSchedule.tag.schedule": "Pianificazione · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Pianificazione",+ "taskSchedule.unit.hour_one": "{{count}} ora",+ "taskSchedule.unit.hour_other": "{{count}} ore",+ "taskSchedule.unit.minute_one": "{{count}} minuto",+ "taskSchedule.unit.minute_other": "{{count}} minuti",+ "taskSchedule.unit.second_one": "{{count}} secondo",+ "taskSchedule.unit.second_other": "{{count}} secondi",+ "thread.closeSubagentThread": "Comprimi conversazione subagente","thread.divider": "Sottotema",+ "thread.openSubagentThread": "Mostra conversazione completa del subagente",+ "thread.subagentBadge": "Subagente","thread.threadMessageCount": "{{messageCount}} messaggi","thread.title": "Sottotema","todoProgress.allCompleted": "Tutte le attività completate",@@ -428,15 +549,15 @@"tool.intervention.mode.autoRunDesc": "Approva automaticamente tutte le esecuzioni degli strumenti","tool.intervention.mode.manual": "Manuale","tool.intervention.mode.manualDesc": "Richiede approvazione manuale per ogni invocazione",- "tool.intervention.onboarding.agentIdentity.applyHint": "La nuova identità apparirà dopo l'approvazione.",- "tool.intervention.onboarding.agentIdentity.description": "Approvando questa modifica verrà aggiornato l'agente mostrato nella Posta in arrivo e in questa conversazione di onboarding.",- "tool.intervention.onboarding.agentIdentity.emoji": "Avatar dell'agente",+ "tool.intervention.onboarding.agentIdentity.applyHint": "La nuova identità apparirà dopo l’approvazione.",+ "tool.intervention.onboarding.agentIdentity.description": "Approvare questa modifica aggiorna l’Agente mostrato nella Inbox e in questa conversazione di onboarding.",+ "tool.intervention.onboarding.agentIdentity.emoji": "Avatar agente","tool.intervention.onboarding.agentIdentity.eyebrow": "Approvazione onboarding",- "tool.intervention.onboarding.agentIdentity.name": "Nome dell'agente",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Agente Posta in arrivo",+ "tool.intervention.onboarding.agentIdentity.name": "Nome agente",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Agente Inbox","tool.intervention.onboarding.agentIdentity.targetOnboarding": "Agente di onboarding attuale","tool.intervention.onboarding.agentIdentity.targets": "Si applica a",- "tool.intervention.onboarding.agentIdentity.title": "Conferma aggiornamento identità dell'agente",+ "tool.intervention.onboarding.agentIdentity.title": "Conferma aggiornamento identità dell’agente","tool.intervention.pending": "In sospeso","tool.intervention.reject": "Rifiuta","tool.intervention.rejectAndContinue": "Rifiuta e riprova",@@ -459,7 +580,7 @@"topic.openNewTopic": "Apri nuovo argomento","topic.recent": "Argomenti recenti","topic.saveCurrentMessages": "Salva sessione corrente come argomento",- "topic.viewAll": "Vedi tutti gli argomenti",+ "topic.viewAll": "Mostra tutti gli argomenti","translate.action": "Traduci","translate.clear": "Cancella traduzione","tts.action": "Sintesi vocale",@@ -488,8 +609,8 @@"workflow.collapse": "Comprimi","workflow.expandFull": "Espandi completamente","workflow.failedSuffix": "(non riuscito)",- "workflow.summaryFailed": "{{count}} non riusciti",- "workflow.summaryMoreTools": "+{{count}} in più",+ "workflow.summaryFailed": "{{count}} non riuscite",+ "workflow.summaryMoreTools": "{{count}} tipi di strumenti","workflow.summaryTotalCalls": "{{count}} chiamate totali","workflow.thoughtForDuration": "Riflessione per {{duration}}","workflow.toolDisplayName.activateDevice": "Dispositivo attivato",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Nessun documento ancora. I documenti associati a questo agente verranno mostrati qui.",+ "workingPanel.resources.empty": "Nessun documento al momento. I documenti associati a questo agente verranno mostrati qui.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Tutti","workingPanel.resources.filter.documents": "Documenti",diff --git a/locales/it-IT/home.json b/locales/it-IT/home.jsonindex 84a8ecc0a83..88e5e51ab0f 100644--- a/locales/it-IT/home.json+++ b/locales/it-IT/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Al momento non è possibile aggiungere agenti","agentSelection.noSelected": "Nessun agente selezionato","agentSelection.search": "Nessun agente corrispondente trovato",+ "brief.action.acknowledge": "Conferma",+ "brief.action.approve": "Approva",+ "brief.action.feedback": "Feedback",+ "brief.action.retry": "Riprova",+ "brief.addFeedback": "Condividi feedback",+ "brief.collapse": "Mostra meno",+ "brief.commentPlaceholder": "Condividi il tuo feedback...",+ "brief.commentSubmit": "Invia feedback",+ "brief.expandAll": "Mostra di più",+ "brief.feedbackSent": "Feedback inviato",+ "brief.resolved": "Segnato come risolto",+ "brief.title": "Riepilogo quotidiano",+ "brief.viewAllTasks": "Visualizza tutte le attività","project.create": "Nuovo progetto","project.deleteConfirm": "Questo progetto verrà eliminato e non potrà essere recuperato. Conferma per continuare.","starter.createAgent": "Crea Agente",diff --git a/locales/it-IT/plugin.json b/locales/it-IT/plugin.jsonindex a89a43ed1a9..af54288c99b 100644--- a/locales/it-IT/plugin.json+++ b/locales/it-IT/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Plugin","builtins.lobe-agent-management.render.installPlugin.success": "Installato con successo","builtins.lobe-agent-management.title": "Gestore Agenti",+ "builtins.lobe-claude-code.agent.instruction": "Istruzione",+ "builtins.lobe-claude-code.agent.result": "Risultato","builtins.lobe-claude-code.todoWrite.allDone": "Tutte le attività completate","builtins.lobe-claude-code.todoWrite.currentStep": "Passaggio attuale","builtins.lobe-claude-code.todoWrite.todos": "Attività",diff --git a/locales/it-IT/topic.json b/locales/it-IT/topic.jsonindex d3d504c744c..f990baeea4a 100644--- a/locales/it-IT/topic.json+++ b/locales/it-IT/topic.json@@ -15,20 +15,24 @@"actions.export": "Esporta Argomenti","actions.favorite": "Preferito","actions.import": "Importa Conversazione",+ "actions.markCompleted": "Segna come completato","actions.openInNewTab": "Apri in una nuova scheda","actions.openInNewWindow": "Apri in una nuova finestra","actions.removeAll": "Elimina Tutti gli Argomenti","actions.removeUnstarred": "Elimina Argomenti Non Contrassegnati","actions.unfavorite": "Non preferito",+ "actions.unmarkCompleted": "Segna come attivo","defaultTitle": "Argomento Predefinito","displayItems": "Visualizza Elementi","duplicateLoading": "Copia dell'argomento in corso...","duplicateSuccess": "Argomento copiato con successo","favorite": "Preferito",+ "filter.filter": "Filtro","filter.groupMode.byProject": "Per progetto","filter.groupMode.byTime": "Per data","filter.groupMode.flat": "Senza raggruppamento","filter.organize": "Organizza",+ "filter.showCompleted": "Includi completati","filter.sort": "Ordina per","filter.sortBy.createdAt": "Data di creazione","filter.sortBy.updatedAt": "Data di modifica",@@ -52,6 +56,7 @@"renameModal.title": "Rinomina argomento","searchPlaceholder": "Cerca Argomenti...","searchResultEmpty": "Nessun risultato trovato.",+ "taskManager.welcome": "Chiedimi dei tuoi compiti","temp": "Temporaneo","title": "Argomento"}diff --git a/locales/ja-JP/auth.json b/locales/ja-JP/auth.jsonindex 1f862b15a1a..bb4a7c62a45 100644--- a/locales/ja-JP/auth.json+++ b/locales/ja-JP/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "パスワードをリセット","profile.email": "メールアドレス","profile.emailChangeSuccess": "確認メールを送信しました。新しいメールの受信ボックスを確認してください。",- "profile.emailInputHint": "新しいメールアドレスを入力してください","profile.emailInvalid": "有効なメールアドレスを入力してください","profile.emailPlaceholder": "[email protected]","profile.fullName": "氏名",diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.jsonindex 891b6b5f335..d9635b210f4 100644--- a/locales/ja-JP/chat.json+++ b/locales/ja-JP/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "こんにちは、私は **{{name}}** です。一文から始めましょう。\n\nよりあなたの働き方に合わせるには:[アシスタント設定]({{url}}) でアシスタントプロフィールを補完してください(いつでも変更可能)","agentDefaultMessageWithSystemRole": "こんにちは、私は **{{name}}** です。一文から始めましょう—判断はあなたにあります","agentDefaultMessageWithoutEdit": "こんにちは、私は **{{name}}** です。一文から始めましょう—判断はあなたにあります",+ "agentProfile.files_one": "{{count}} 件のファイル",+ "agentProfile.files_other": "{{count}} 件のファイル",+ "agentProfile.knowledgeBases_one": "{{count}} 件のナレッジベース",+ "agentProfile.knowledgeBases_other": "{{count}} 件のナレッジベース",+ "agentProfile.skills_one": "{{count}} 件のスキル",+ "agentProfile.skills_other": "{{count}} 件のスキル","agents": "アシスタント","artifact.generating": "生成中","artifact.inThread": "サブトピックでは表示できません。メインの対話エリアに戻って開いてください",@@ -44,9 +50,15 @@"confirmRemoveSessionSuccess": "アシスタントが削除されました","createModal.createBlank": "空白を作成","createModal.groupPlaceholder": "このグループが何をするか説明してください…",- "createModal.groupTitle": "グループは何をすべきですか?",- "createModal.placeholder": "エージェントが何をするか説明してください…",+ "createModal.groupTitle": "このグループは何をすべきですか?",+ "createModal.placeholder": "エージェントが何をするべきか説明してください…","createModal.title": "エージェントは何をすべきですか?",+ "createTask.assignee": "担当者",+ "createTask.collapse": "入力を隠す",+ "createTask.expandToInline": "ページにドックする",+ "createTask.instructionPlaceholder": "説明を追加...",+ "createTask.submit": "タスクを作成",+ "createTask.titlePlaceholder": "タスク名","defaultAgent": "カスタムアシスタント","defaultGroupChat": "グループ","defaultList": "デフォルトリスト",@@ -82,6 +94,7 @@"extendParams.title": "モデル拡張機能","extendParams.urlContext.desc": "有効にすると、ウェブリンクを自動解析し、ウェブページのコンテキストをコンテキストとして抽出します","extendParams.urlContext.title": "ウェブリンクコンテンツの抽出",+ "followUpPlaceholder": "フォローアップ。@で他のエージェントにタスクを割り当てできます。","group.desc": "同一の対話空間で、複数のアシスタントが一緒にタスクを推進します","group.memberTooltip": "グループに {{count}} 名のメンバーがいます","group.orchestratorThinking": "ホストが思考中…",@@ -124,10 +137,10 @@"groupWizard.title": "グループを作成","groupWizard.useTemplate": "テンプレートを使用","heteroAgent.fullAccess.label": "フルアクセス",- "heteroAgent.fullAccess.tooltip": "Claude Code はローカルで実行され、作業ディレクトリへの読み取り/書き込み権限を完全に持ちます。権限モードの切り替えはまだ利用できません。",+ "heteroAgent.fullAccess.tooltip": "Claude Code はローカルで動作し、作業ディレクトリへの読み書きが可能です。権限モードの切り替えはまだ利用できません。","heteroAgent.resumeReset.cwdChanged": "作業ディレクトリが変更されました。以前の Claude Code セッションは元のディレクトリからのみ再開できるため、新しい会話が開始されました。","heteroAgent.switchCwd.cancel": "キャンセル",- "heteroAgent.switchCwd.content": "Claude Code のセッションは作業ディレクトリに固定されています。切り替えるとこのトピックの新しいセッションが開始されます。チャットメッセージは保持されますが、前のセッションのコンテキストは再開できません。",+ "heteroAgent.switchCwd.content": "Claude Code セッションは作業ディレクトリに固定されています。切り替えるとこのトピックの新しいセッションが開始されます — チャットメッセージは残りますが、以前のセッションのコンテキストは再開できません。","heteroAgent.switchCwd.ok": "切り替えて新しいセッションを開始","heteroAgent.switchCwd.title": "作業ディレクトリを切り替えますか?","hideForYou": "ダイレクトメッセージの内容は非表示です。設定で「ダイレクトメッセージの内容を表示」を有効にしてください",@@ -141,7 +154,7 @@"input.addUser": "ユーザーメッセージを追加","input.disclaimer": "アシスタントも間違えることがあります。重要な情報はあなたの判断を最優先してください","input.errorMsg": "送信中に問題が発生しました:{{errorMsg}}。再試行するか、時間を置いてから送ってください",- "input.more": "その他",+ "input.more": "もっと見る","input.send": "送信","input.sendWithCmdEnter": "<key/> を押して送信","input.sendWithEnter": "<key/> を押して送信",@@ -224,7 +237,7 @@"messages.tokenDetails.speed.ttft.tooltip": "Time To First Token(TTFT):メッセージ送信から最初のトークンを受信するまでの時間","messages.tokenDetails.title": "生成詳細","messages.tokenDetails.total": "総消費",- "minimap.emptyPreview": "(テキスト内容なし)",+ "minimap.emptyPreview": "(テキスト内容はありません)","minimap.jumpToMessage": "メッセージ {{index}} にジャンプ","minimap.nextMessage": "次のメッセージ","minimap.previousMessage": "前のメッセージ",@@ -243,8 +256,9 @@"operation.contextCompression": "コンテキストが長すぎるため、履歴を圧縮しています...","operation.execAgentRuntime": "応答を準備中","operation.execClientTask": "タスクを実行中",- "operation.execHeterogeneousAgent": "外部エージェント実行中",- "operation.execServerAgentRuntime": "実行中… 別の作業に切り替えたりページを閉じても、タスクは継続します。",+ "operation.execHeterogeneousAgent": "{{name}} を実行中",+ "operation.execServerAgentRuntime": "実行中… タスクは継続するため、別の作業に移ったりページを閉じても問題ありません。",+ "operation.heterogeneousAgentFallback": "外部エージェント","operation.sendMessage": "メッセージを送信中","owner": "グループオーナー","pageCopilot.title": "ドキュメントコパイロット",@@ -285,6 +299,8 @@"searchAgents": "アシスタントを検索…","selectedAgents": "選択済みアシスタント","sendPlaceholder": "アイデアから何でも始められます… <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "{{name}} にタスクを依頼...",+ "sendPlaceholderWithAgentAssignment": "依頼、作成、またはタスク開始。@で他のエージェントに割り当て。","sessionGroup.config": "グループ管理","sessionGroup.confirmRemoveGroupAlert": "このグループを削除してもよろしいですか?グループ内のアシスタントはデフォルトリストに移動します","sessionGroup.createAgentSuccess": "アシスタントの作成に成功しました",@@ -378,6 +394,7 @@"tab.integration": "統合","tab.profile": "アシスタントプロフィール","tab.search": "検索",+ "tab.tasks": "タスク","task.activity.calling": "スキルを呼び出し中…","task.activity.clientExecuting": "ローカルで実行中...","task.activity.generating": "返信を生成中…",@@ -399,7 +416,111 @@"task.status.initializing": "タスクを起動中…","task.subtask": "サブタスク","task.title": "タスク",+ "taskDetail.activities": "アクティビティ",+ "taskDetail.activities.agentTag": "エージェント",+ "taskDetail.activities.fallback.brief": "概要を投稿しました",+ "taskDetail.activities.fallback.comment": "コメントを残しました",+ "taskDetail.activities.fallback.created": "タスクを作成しました",+ "taskDetail.activities.fallback.topic": "トピックを開始しました",+ "taskDetail.activitiesEmpty": "まだアクティビティはありません",+ "taskDetail.addSubtask": "サブタスクを追加",+ "taskDetail.blockedBy": "{{id}} によってブロックされています",+ "taskDetail.comment.cancel": "キャンセル",+ "taskDetail.comment.delete": "削除",+ "taskDetail.comment.deleteConfirm.content": "このコメントは完全に削除されます。",+ "taskDetail.comment.deleteConfirm.ok": "削除",+ "taskDetail.comment.deleteConfirm.title": "このコメントを削除しますか?",+ "taskDetail.comment.edit": "編集",+ "taskDetail.comment.save": "保存",+ "taskDetail.commentPlaceholder": "コメントを入力...",+ "taskDetail.deleteConfirm.content": "この操作は取り消せません。",+ "taskDetail.deleteConfirm.ok": "削除",+ "taskDetail.deleteConfirm.title": "このタスクを削除しますか?",+ "taskDetail.instruction": "指示",+ "taskDetail.instructionPlaceholder": "クリックしてタスクの指示を編集…",+ "taskDetail.latestActivity.brief": "概要: {{title}}",+ "taskDetail.latestActivity.briefOnly": "概要",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "概要({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "概要({{type}})",+ "taskDetail.latestActivity.topic": "トピック: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "トピック #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "無題のトピック",+ "taskDetail.modelConfig": "モデル上書き",+ "taskDetail.navigation": "ナビゲーション",+ "taskDetail.pauseTask": "タスクを一時停止",+ "taskDetail.priority.high": "高",+ "taskDetail.priority.low": "低",+ "taskDetail.priority.none": "優先度なし",+ "taskDetail.priority.normal": "普通",+ "taskDetail.priority.urgent": "緊急",+ "taskDetail.properties": "プロパティ",+ "taskDetail.reassignDisabled": "タスク実行中はエージェントを再割り当てできません",+ "taskDetail.rerunTask": "タスクを再実行",+ "taskDetail.runTask": "タスクを実行",+ "taskDetail.saveModelConfig": "保存",+ "taskDetail.status.backlog": "バックログ",+ "taskDetail.status.canceled": "キャンセル",+ "taskDetail.status.completed": "完了",+ "taskDetail.status.failed": "失敗",+ "taskDetail.status.paused": "一時停止",+ "taskDetail.status.running": "進行中",+ "taskDetail.stopTask": "タスクを停止",+ "taskDetail.subIssueOf": "上位タスク",+ "taskDetail.subtaskInstructionPlaceholder": "サブタスクの説明...",+ "taskDetail.subtasks": "サブタスク",+ "taskDetail.titlePlaceholder": "タスク名を入力...",+ "taskDetail.topicDrawer.untitled": "無題",+ "taskDetail.updateFailed": "タスクの更新に失敗しました",+ "taskList.activeTasks": "アクティブなタスク",+ "taskList.all": "すべてのタスク",+ "taskList.breadcrumb.task": "タスク",+ "taskList.empty": "まだタスクはありません",+ "taskList.form.grouping": "グループ化",+ "taskList.form.orderCompletedByRecency": "完了タスクを最近順に並べる",+ "taskList.form.ordering": "並び替え",+ "taskList.form.subGrouping": "サブグループ化",+ "taskList.groupBy.assignee": "担当者",+ "taskList.groupBy.none": "グループ化なし",+ "taskList.groupBy.priority": "優先度",+ "taskList.groupBy.status": "ステータス",+ "taskList.orderBy.assignee": "担当者",+ "taskList.orderBy.createdAt": "作成日時",+ "taskList.orderBy.priority": "優先度",+ "taskList.orderBy.status": "ステータス",+ "taskList.orderBy.title": "タイトル",+ "taskList.orderBy.updatedAt": "更新日時",+ "taskList.title": "タスク",+ "taskList.unassigned": "未割り当て",+ "taskList.view.board": "ボード",+ "taskList.view.list": "リスト",+ "taskList.viewAll": "すべて表示",+ "taskSchedule.clear": "クリア",+ "taskSchedule.enable": "自動化を有効にする",+ "taskSchedule.every": "毎",+ "taskSchedule.hours": "時間",+ "taskSchedule.interval": "繰り返し",+ "taskSchedule.intervalTab": "繰り返し",+ "taskSchedule.minutes": "分",+ "taskSchedule.scheduler": "スケジューラー",+ "taskSchedule.schedulerNotReady": "スケジューラーは近日公開予定です。現在は「繰り返し」を使用してください。",+ "taskSchedule.schedulerTab": "スケジューラー",+ "taskSchedule.seconds": "秒",+ "taskSchedule.tag.add": "スケジュールを設定",+ "taskSchedule.tag.every": "{{interval}} ごと",+ "taskSchedule.tag.heartbeat": "ハートビート · {{every}}",+ "taskSchedule.tag.schedule": "スケジュール · {{schedule}}{{timezone}}",+ "taskSchedule.title": "スケジュール",+ "taskSchedule.unit.hour_one": "{{count}} 時間",+ "taskSchedule.unit.hour_other": "{{count}} 時間",+ "taskSchedule.unit.minute_one": "{{count}} 分",+ "taskSchedule.unit.minute_other": "{{count}} 分",+ "taskSchedule.unit.second_one": "{{count}} 秒",+ "taskSchedule.unit.second_other": "{{count}} 秒",+ "thread.closeSubagentThread": "サブエージェント会話を折りたたむ","thread.divider": "サブトピック",+ "thread.openSubagentThread": "サブエージェント会話をすべて表示",+ "thread.subagentBadge": "サブエージェント","thread.threadMessageCount": "{{messageCount}} 件のメッセージ","thread.title": "サブトピック","todoProgress.allCompleted": "すべてのタスクが完了しました",@@ -428,14 +549,14 @@"tool.intervention.mode.autoRunDesc": "すべてのスキル呼び出しを自動承認","tool.intervention.mode.manual": "手動承認","tool.intervention.mode.manualDesc": "毎回の手動承認が必要",- "tool.intervention.onboarding.agentIdentity.applyHint": "承認後、新しいアイデンティティが表示されます。",+ "tool.intervention.onboarding.agentIdentity.applyHint": "新しいアイデンティティは承認後に表示されます。","tool.intervention.onboarding.agentIdentity.description": "この変更を承認すると、受信箱およびこのオンボーディング会話で表示されるエージェントが更新されます。","tool.intervention.onboarding.agentIdentity.emoji": "エージェントのアバター","tool.intervention.onboarding.agentIdentity.eyebrow": "オンボーディング承認","tool.intervention.onboarding.agentIdentity.name": "エージェント名","tool.intervention.onboarding.agentIdentity.targetInbox": "受信箱エージェント","tool.intervention.onboarding.agentIdentity.targetOnboarding": "現在のオンボーディングエージェント",- "tool.intervention.onboarding.agentIdentity.targets": "適用対象",+ "tool.intervention.onboarding.agentIdentity.targets": "対象","tool.intervention.onboarding.agentIdentity.title": "エージェントのアイデンティティ更新を確認","tool.intervention.pending": "保留中","tool.intervention.reject": "拒否",@@ -484,13 +605,13 @@"viewMode.fullWidth": "全幅表示","viewMode.normal": "標準","viewMode.wideScreen": "ワイドスクリーン",- "workflow.awaitingConfirmation": "あなたの確認を待っています",+ "workflow.awaitingConfirmation": "確認待ち","workflow.collapse": "折りたたむ","workflow.expandFull": "すべて展開","workflow.failedSuffix": "(失敗)",- "workflow.summaryFailed": "{{count}} 件が失敗",- "workflow.summaryMoreTools": "+{{count}} 件の追加",- "workflow.summaryTotalCalls": "合計 {{count}} 件の呼び出し",+ "workflow.summaryFailed": "{{count}} 件失敗",+ "workflow.summaryMoreTools": "{{count}} 種類のツール",+ "workflow.summaryTotalCalls": "合計 {{count}} 回の呼び出し","workflow.thoughtForDuration": "{{duration}}間の思考","workflow.toolDisplayName.activateDevice": "有効化されたデバイス","workflow.toolDisplayName.activateSkill": "スキルを有効化しました",@@ -582,11 +703,11 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "まだドキュメントはありません。このエージェントに関連するドキュメントはここに表示されます。",+ "workingPanel.resources.empty": "まだドキュメントはありません。このエージェントに関連するドキュメントがここに表示されます。","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "すべて","workingPanel.resources.filter.documents": "ドキュメント",- "workingPanel.resources.filter.web": "ウェブ",+ "workingPanel.resources.filter.web": "Web","workingPanel.resources.loading": "Loading resources...","workingPanel.resources.previewError": "Failed to load preview","workingPanel.resources.previewLoading": "Loading preview...",diff --git a/locales/ja-JP/home.json b/locales/ja-JP/home.jsonindex 00afc784b9b..f0429d084ae 100644--- a/locales/ja-JP/home.json+++ b/locales/ja-JP/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "現在追加できるアシスタントはありません","agentSelection.noSelected": "アシスタントがまだ選択されていません","agentSelection.search": "一致するアシスタントが見つかりませんでした",+ "brief.action.acknowledge": "確認",+ "brief.action.approve": "承認",+ "brief.action.feedback": "フィードバック",+ "brief.action.retry": "再試行",+ "brief.addFeedback": "フィードバックを共有",+ "brief.collapse": "表示を減らす",+ "brief.commentPlaceholder": "フィードバックを入力してください...",+ "brief.commentSubmit": "フィードバックを送信",+ "brief.expandAll": "さらに表示",+ "brief.feedbackSent": "フィードバックを共有しました",+ "brief.resolved": "解決済みにしました",+ "brief.title": "デイリーブリーフ",+ "brief.viewAllTasks": "すべてのタスクを表示","project.create": "新しいプロジェクトを作成",- "project.deleteConfirm": "このプロジェクトを削除しようとしています。削除すると元に戻せません。本当に削除してもよろしいですか?",+ "project.deleteConfirm": "このプロジェクトは削除され、復元できません。続行するには確認してください。","starter.createAgent": "アシスタントを作成","starter.createGroup": "グループを作成","starter.deepResearch": "リサーチ",diff --git a/locales/ja-JP/plugin.json b/locales/ja-JP/plugin.jsonindex 1cdd9e67502..71fb87f02a6 100644--- a/locales/ja-JP/plugin.json+++ b/locales/ja-JP/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "プラグイン","builtins.lobe-agent-management.render.installPlugin.success": "インストールが完了しました","builtins.lobe-agent-management.title": "エージェントマネージャー",+ "builtins.lobe-claude-code.agent.instruction": "指示",+ "builtins.lobe-claude-code.agent.result": "結果","builtins.lobe-claude-code.todoWrite.allDone": "すべてのタスクが完了しました","builtins.lobe-claude-code.todoWrite.currentStep": "現在のステップ","builtins.lobe-claude-code.todoWrite.todos": "ToDo",diff --git a/locales/ja-JP/topic.json b/locales/ja-JP/topic.jsonindex 2e3ed30a6e5..662349fa89a 100644--- a/locales/ja-JP/topic.json+++ b/locales/ja-JP/topic.json@@ -15,20 +15,24 @@"actions.export": "トピックをエクスポート","actions.favorite": "お気に入り","actions.import": "会話をインポート",+ "actions.markCompleted": "完了としてマーク","actions.openInNewTab": "新しいタブで開く","actions.openInNewWindow": "新しいウィンドウで開く","actions.removeAll": "すべてのトピックを削除","actions.removeUnstarred": "未お気に入りのトピックを削除","actions.unfavorite": "お気に入り解除",+ "actions.unmarkCompleted": "アクティブに戻す","defaultTitle": "デフォルトトピック","displayItems": "項目を表示","duplicateLoading": "トピックをコピー中...","duplicateSuccess": "トピックのコピーに成功しました","favorite": "お気に入り",+ "filter.filter": "フィルター","filter.groupMode.byProject": "プロジェクト別","filter.groupMode.byTime": "時間順","filter.groupMode.flat": "フラット","filter.organize": "整理",+ "filter.showCompleted": "完了済みを含める","filter.sort": "並べ替え","filter.sortBy.createdAt": "作成日時","filter.sortBy.updatedAt": "更新日時",@@ -52,6 +56,7 @@"renameModal.title": "トピック名を変更","searchPlaceholder": "トピックを検索...","searchResultEmpty": "検索結果はありません",+ "taskManager.welcome": "タスクについて聞いてください","temp": "一時的","title": "トピック"}diff --git a/locales/ko-KR/auth.json b/locales/ko-KR/auth.jsonindex 6387cc287b9..00c4fa22400 100644--- a/locales/ko-KR/auth.json+++ b/locales/ko-KR/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "비밀번호 재설정","profile.email": "이메일 주소","profile.emailChangeSuccess": "확인 이메일이 발송되었습니다. 새 이메일 받은 편지함을 확인하세요.",- "profile.emailInputHint": "새 이메일 주소를 입력하세요","profile.emailInvalid": "유효한 이메일 주소를 입력하세요","profile.emailPlaceholder": "[email protected]","profile.fullName": "전체 이름",diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.jsonindex 8e958d210a2..b2d6013baff 100644--- a/locales/ko-KR/chat.json+++ b/locales/ko-KR/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "안녕하세요, 저는 **{{name}}**입니다. 한 문장으로 시작하세요.\n\n더 당신의 업무 방식에 맞추려면: [도우미 설정]({{url}})에서 도우미 프로필을 보완하세요(언제든 변경 가능)","agentDefaultMessageWithSystemRole": "안녕하세요, 저는 **{{name}}**입니다. 한 문장으로 시작하세요—결정은 당신에게 있습니다","agentDefaultMessageWithoutEdit": "안녕하세요, 저는 **{{name}}**입니다. 한 문장으로 시작하세요—결정은 당신에게 있습니다",+ "agentProfile.files_one": "{{count}}개 파일",+ "agentProfile.files_other": "{{count}}개 파일",+ "agentProfile.knowledgeBases_one": "{{count}}개 지식 베이스",+ "agentProfile.knowledgeBases_other": "{{count}}개 지식 베이스",+ "agentProfile.skills_one": "{{count}}개 스킬",+ "agentProfile.skills_other": "{{count}}개 스킬","agents": "도우미","artifact.generating": "생성 중","artifact.inThread": "하위 주제에서는 볼 수 없습니다. 메인 대화 영역으로 돌아가서 열어주세요",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "그룹이 삭제되었습니다","confirmRemoveSessionItemAlert": "이 도우미를 삭제하시겠습니까? 삭제 후 복구할 수 없습니다","confirmRemoveSessionSuccess": "도우미가 삭제되었습니다",- "createModal.createBlank": "빈 항목 만들기",- "createModal.groupPlaceholder": "이 그룹이 수행해야 할 작업을 설명하세요...",- "createModal.groupTitle": "그룹이 무엇을 해야 하나요?",+ "createModal.createBlank": "빈 페이지 만들기",+ "createModal.groupPlaceholder": "이 그룹이 수행할 작업을 설명하세요...",+ "createModal.groupTitle": "그룹은 어떤 일을 해야 하나요?","createModal.placeholder": "에이전트가 수행해야 할 작업을 설명하세요...",- "createModal.title": "에이전트가 무엇을 해야 하나요?",+ "createModal.title": "에이전트는 어떤 일을 해야 하나요?",+ "createTask.assignee": "담당자",+ "createTask.collapse": "입력 숨기기",+ "createTask.expandToInline": "페이지에 도킹",+ "createTask.instructionPlaceholder": "설명 추가...",+ "createTask.submit": "작업 생성",+ "createTask.titlePlaceholder": "작업 제목","defaultAgent": "사용자 정의 도우미","defaultGroupChat": "그룹","defaultList": "기본 목록",@@ -82,6 +94,7 @@"extendParams.title": "모델 확장 기능","extendParams.urlContext.desc": "활성화하면 웹 링크를 자동 분석하여 웹페이지 컨텍스트를 추출합니다","extendParams.urlContext.title": "웹 링크 컨텐츠 추출",+ "followUpPlaceholder": "후속 작업. 다른 에이전트에게 작업을 할당하려면 @를 사용하세요.","group.desc": "동일한 대화 공간에서 여러 도우미가 함께 작업을 추진합니다","group.memberTooltip": "그룹에 {{count}}명의 구성원이 있습니다","group.orchestratorThinking": "호스트가 생각 중…",@@ -123,13 +136,13 @@"groupWizard.searchTemplates": "템플릿 검색…","groupWizard.title": "그룹 만들기","groupWizard.useTemplate": "템플릿 사용",- "heteroAgent.fullAccess.label": "전체 액세스",- "heteroAgent.fullAccess.tooltip": "Claude Code는 로컬에서 실행되며 작업 디렉터리에 대한 전체 읽기/쓰기 권한을 가집니다. 권한 모드는 아직 전환할 수 없습니다.",+ "heteroAgent.fullAccess.label": "전체 권한",+ "heteroAgent.fullAccess.tooltip": "Claude Code는 작업 디렉터리에 대한 전체 읽기/쓰기 권한으로 로컬에서 실행됩니다. 권한 모드 전환은 아직 지원되지 않습니다.","heteroAgent.resumeReset.cwdChanged": "작업 디렉터리가 변경되었습니다. 이전 Claude Code 세션은 원래 디렉터리에서만 재개할 수 있으므로 새 대화가 시작되었습니다.","heteroAgent.switchCwd.cancel": "취소",- "heteroAgent.switchCwd.content": "Claude Code 세션은 특정 작업 디렉터리에 고정됩니다. 디렉터리를 변경하면 이 주제에 대한 새 세션이 시작됩니다. 채팅 메시지는 유지되지만 이전 세션 컨텍스트는 이어갈 수 없습니다.",+ "heteroAgent.switchCwd.content": "Claude Code 세션은 작업 디렉터리에 고정됩니다. 디렉터리를 변경하면 이 주제에 대한 새 세션이 시작됩니다. 채팅 메시지는 유지되지만 이전 세션의 컨텍스트는 복원할 수 없습니다.","heteroAgent.switchCwd.ok": "전환하고 새 세션 시작",- "heteroAgent.switchCwd.title": "작업 디렉터리를 전환할까요?",+ "heteroAgent.switchCwd.title": "작업 디렉터리를 전환하시겠습니까?","hideForYou": "개인 메시지 내용이 숨겨져 있습니다. 설정에서 '개인 메시지 내용 표시'를 활성화하여 보세요","history.title": "도우미는 최근 {{count}}개의 메시지만 기억합니다","historyRange": "기록 범위",@@ -243,8 +256,9 @@"operation.contextCompression": "컨텍스트가 너무 길어 기록을 압축합니다...","operation.execAgentRuntime": "응답 준비 중","operation.execClientTask": "작업 실행 중",- "operation.execHeterogeneousAgent": "외부 에이전트 실행 중",- "operation.execServerAgentRuntime": "실행 중… 다른 작업으로 전환하거나 페이지를 닫아도 작업은 계속 진행됩니다.",+ "operation.execHeterogeneousAgent": "{{name}} 실행 중",+ "operation.execServerAgentRuntime": "실행 중… 다른 작업으로 이동하거나 페이지를 닫아도 작업은 계속 진행됩니다.",+ "operation.heterogeneousAgentFallback": "외부 에이전트","operation.sendMessage": "메시지 전송 중","owner": "그룹 소유자","pageCopilot.title": "문서 코파일럿",@@ -285,6 +299,8 @@"searchAgents": "도우미 검색…","selectedAgents": "선택된 도우미","sendPlaceholder": "아이디어부터 무엇이든 시작할 수 있습니다… <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "{{name}}에게 작업 요청...",+ "sendPlaceholderWithAgentAssignment": "질문, 생성 또는 작업 시작. 다른 에이전트에게 할당하려면 @ 사용.","sessionGroup.config": "그룹 관리","sessionGroup.confirmRemoveGroupAlert": "이 그룹을 삭제하시겠습니까? 그룹 내 도우미는 기본 목록으로 이동합니다","sessionGroup.createAgentSuccess": "도우미 생성 성공",@@ -378,6 +394,7 @@"tab.integration": "통합","tab.profile": "도우미 프로필","tab.search": "검색",+ "tab.tasks": "작업","task.activity.calling": "기능 호출 중…","task.activity.clientExecuting": "로컬에서 실행 중...","task.activity.generating": "응답 생성 중…",@@ -399,7 +416,111 @@"task.status.initializing": "작업 시작 중…","task.subtask": "하위 작업","task.title": "작업",+ "taskDetail.activities": "활동",+ "taskDetail.activities.agentTag": "에이전트",+ "taskDetail.activities.fallback.brief": "브리프를 게시했습니다",+ "taskDetail.activities.fallback.comment": "댓글을 남겼습니다",+ "taskDetail.activities.fallback.created": "작업을 생성함",+ "taskDetail.activities.fallback.topic": "주제를 시작했습니다",+ "taskDetail.activitiesEmpty": "아직 활동이 없습니다",+ "taskDetail.addSubtask": "하위 작업 추가",+ "taskDetail.blockedBy": "{{id}}에 의해 차단됨",+ "taskDetail.comment.cancel": "취소",+ "taskDetail.comment.delete": "삭제",+ "taskDetail.comment.deleteConfirm.content": "이 댓글은 영구적으로 삭제됩니다.",+ "taskDetail.comment.deleteConfirm.ok": "삭제",+ "taskDetail.comment.deleteConfirm.title": "이 댓글을 삭제하시겠습니까?",+ "taskDetail.comment.edit": "편집",+ "taskDetail.comment.save": "저장",+ "taskDetail.commentPlaceholder": "댓글을 남기세요...",+ "taskDetail.deleteConfirm.content": "이 작업은 되돌릴 수 없습니다.",+ "taskDetail.deleteConfirm.ok": "삭제",+ "taskDetail.deleteConfirm.title": "이 작업을 삭제할까요?",+ "taskDetail.instruction": "지침",+ "taskDetail.instructionPlaceholder": "작업 지침을 수정하려면 클릭하세요...",+ "taskDetail.latestActivity.brief": "브리프: {{title}}",+ "taskDetail.latestActivity.briefOnly": "브리프",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "브리프 ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "브리프 ({{type}})",+ "taskDetail.latestActivity.topic": "주제: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "주제 #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "제목 없는 주제",+ "taskDetail.modelConfig": "모델 재정의",+ "taskDetail.navigation": "탐색",+ "taskDetail.pauseTask": "작업 일시중지",+ "taskDetail.priority.high": "높음",+ "taskDetail.priority.low": "낮음",+ "taskDetail.priority.none": "우선순위 없음",+ "taskDetail.priority.normal": "보통",+ "taskDetail.priority.urgent": "긴급",+ "taskDetail.properties": "속성",+ "taskDetail.reassignDisabled": "작업이 실행 중일 때는 에이전트를 재할당할 수 없습니다",+ "taskDetail.rerunTask": "작업 다시 실행",+ "taskDetail.runTask": "작업 실행",+ "taskDetail.saveModelConfig": "저장",+ "taskDetail.status.backlog": "백로그",+ "taskDetail.status.canceled": "취소됨",+ "taskDetail.status.completed": "완료됨",+ "taskDetail.status.failed": "실패함",+ "taskDetail.status.paused": "일시중지됨",+ "taskDetail.status.running": "진행 중",+ "taskDetail.stopTask": "작업 중지",+ "taskDetail.subIssueOf": "하위 이슈",+ "taskDetail.subtaskInstructionPlaceholder": "하위 작업을 설명하세요...",+ "taskDetail.subtasks": "하위 작업",+ "taskDetail.titlePlaceholder": "작업 제목 입력...",+ "taskDetail.topicDrawer.untitled": "제목 없음",+ "taskDetail.updateFailed": "작업 업데이트 실패",+ "taskList.activeTasks": "활성 작업",+ "taskList.all": "전체 작업",+ "taskList.breadcrumb.task": "작업",+ "taskList.empty": "작업이 없습니다",+ "taskList.form.grouping": "그룹화",+ "taskList.form.orderCompletedByRecency": "완료된 작업을 최신순으로 정렬",+ "taskList.form.ordering": "정렬",+ "taskList.form.subGrouping": "하위 그룹화",+ "taskList.groupBy.assignee": "담당자",+ "taskList.groupBy.none": "그룹 없음",+ "taskList.groupBy.priority": "우선순위",+ "taskList.groupBy.status": "상태",+ "taskList.orderBy.assignee": "담당자",+ "taskList.orderBy.createdAt": "생성일",+ "taskList.orderBy.priority": "우선순위",+ "taskList.orderBy.status": "상태",+ "taskList.orderBy.title": "제목",+ "taskList.orderBy.updatedAt": "수정일",+ "taskList.title": "작업",+ "taskList.unassigned": "미할당",+ "taskList.view.board": "보드",+ "taskList.view.list": "목록",+ "taskList.viewAll": "전체 보기",+ "taskSchedule.clear": "지우기",+ "taskSchedule.enable": "자동화 활성화",+ "taskSchedule.every": "매",+ "taskSchedule.hours": "시간",+ "taskSchedule.interval": "반복",+ "taskSchedule.intervalTab": "반복",+ "taskSchedule.minutes": "분",+ "taskSchedule.scheduler": "스케줄러",+ "taskSchedule.schedulerNotReady": "스케줄러는 곧 제공될 예정입니다. 지금은 반복 기능을 사용하세요.",+ "taskSchedule.schedulerTab": "스케줄러",+ "taskSchedule.seconds": "초",+ "taskSchedule.tag.add": "스케줄 설정",+ "taskSchedule.tag.every": "{{interval}}마다",+ "taskSchedule.tag.heartbeat": "하트비트 · {{every}}",+ "taskSchedule.tag.schedule": "스케줄 · {{schedule}}{{timezone}}",+ "taskSchedule.title": "스케줄",+ "taskSchedule.unit.hour_one": "{{count}}시간",+ "taskSchedule.unit.hour_other": "{{count}}시간",+ "taskSchedule.unit.minute_one": "{{count}}분",+ "taskSchedule.unit.minute_other": "{{count}}분",+ "taskSchedule.unit.second_one": "{{count}}초",+ "taskSchedule.unit.second_other": "{{count}}초",+ "thread.closeSubagentThread": "하위 에이전트 대화 숨기기","thread.divider": "하위 주제",+ "thread.openSubagentThread": "전체 하위 에이전트 대화 보기",+ "thread.subagentBadge": "하위 에이전트","thread.threadMessageCount": "{{messageCount}}개의 메시지","thread.title": "하위 주제","todoProgress.allCompleted": "모든 작업이 완료되었습니다",@@ -428,7 +549,7 @@"tool.intervention.mode.autoRunDesc": "모든 기능 호출 자동 승인","tool.intervention.mode.manual": "수동 승인","tool.intervention.mode.manualDesc": "매번 수동 승인 필요",- "tool.intervention.onboarding.agentIdentity.applyHint": "승인 후 새로운 프로필이 나타납니다.",+ "tool.intervention.onboarding.agentIdentity.applyHint": "승인 후 새 프로필이 표시됩니다.","tool.intervention.onboarding.agentIdentity.description": "이 변경을 승인하면 받은편지함과 온보딩 대화에 표시되는 에이전트가 업데이트됩니다.","tool.intervention.onboarding.agentIdentity.emoji": "에이전트 아바타","tool.intervention.onboarding.agentIdentity.eyebrow": "온보딩 승인",@@ -436,7 +557,7 @@"tool.intervention.onboarding.agentIdentity.targetInbox": "받은편지함 에이전트","tool.intervention.onboarding.agentIdentity.targetOnboarding": "현재 온보딩 에이전트","tool.intervention.onboarding.agentIdentity.targets": "적용 대상",- "tool.intervention.onboarding.agentIdentity.title": "에이전트 신원 업데이트 확인",+ "tool.intervention.onboarding.agentIdentity.title": "에이전트 프로필 업데이트 확인","tool.intervention.pending": "대기 중","tool.intervention.reject": "거부","tool.intervention.rejectAndContinue": "거부 후 계속",@@ -455,11 +576,11 @@"toolAuth.title": "도우미의 기능 승인을 완료하세요","topic.checkOpenNewTopic": "새 주제를 열겠습니까?","topic.checkSaveCurrentMessages": "현재 대화를 주제로 저장하시겠습니까?",- "topic.defaultTitle": "제목 없음 주제",+ "topic.defaultTitle": "제목 없는 주제","topic.openNewTopic": "새 주제 열기","topic.recent": "최근 주제","topic.saveCurrentMessages": "주제로 저장",- "topic.viewAll": "모든 주제 보기",+ "topic.viewAll": "전체 주제 보기","translate.action": "번역","translate.clear": "번역 삭제","tts.action": "음성 읽기",@@ -484,12 +605,12 @@"viewMode.fullWidth": "전체 너비","viewMode.normal": "일반","viewMode.wideScreen": "와이드스크린",- "workflow.awaitingConfirmation": "확인을 기다리는 중",+ "workflow.awaitingConfirmation": "승인을 기다리는 중","workflow.collapse": "접기",- "workflow.expandFull": "모두 펼치기",+ "workflow.expandFull": "전체 펼치기","workflow.failedSuffix": "(실패)","workflow.summaryFailed": "{{count}}개 실패",- "workflow.summaryMoreTools": "+{{count}}개 더 보기",+ "workflow.summaryMoreTools": "{{count}}개 도구 종류","workflow.summaryTotalCalls": "총 {{count}}회 호출","workflow.thoughtForDuration": "{{duration}} 동안 생각","workflow.toolDisplayName.activateDevice": "활성화된 기기",diff --git a/locales/ko-KR/home.json b/locales/ko-KR/home.jsonindex 8ea27305e68..f03d48ee4fa 100644--- a/locales/ko-KR/home.json+++ b/locales/ko-KR/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "현재 추가할 수 있는 도우미가 없습니다","agentSelection.noSelected": "선택된 도우미가 없습니다","agentSelection.search": "일치하는 도우미를 찾을 수 없습니다",+ "brief.action.acknowledge": "확인",+ "brief.action.approve": "승인",+ "brief.action.feedback": "피드백",+ "brief.action.retry": "다시 시도",+ "brief.addFeedback": "피드백 공유",+ "brief.collapse": "간략히 보기",+ "brief.commentPlaceholder": "피드백을 공유하세요...",+ "brief.commentSubmit": "피드백 제출",+ "brief.expandAll": "더 보기",+ "brief.feedbackSent": "피드백이 공유되었습니다",+ "brief.resolved": "해결됨",+ "brief.title": "일일 브리프",+ "brief.viewAllTasks": "모든 작업 보기","project.create": "새 프로젝트 만들기",- "project.deleteConfirm": "이 프로젝트를 삭제하려고 합니다. 삭제 후에는 복구할 수 없습니다. 계속하시겠습니까?",+ "project.deleteConfirm": "이 프로젝트는 삭제되며 복구할 수 없습니다. 계속하려면 확인하세요.","starter.createAgent": "도우미 만들기","starter.createGroup": "그룹 만들기","starter.deepResearch": "심층 연구",diff --git a/locales/ko-KR/plugin.json b/locales/ko-KR/plugin.jsonindex 991ba9b5a78..789b93d61ec 100644--- a/locales/ko-KR/plugin.json+++ b/locales/ko-KR/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "플러그인","builtins.lobe-agent-management.render.installPlugin.success": "설치 완료","builtins.lobe-agent-management.title": "에이전트 관리자",+ "builtins.lobe-claude-code.agent.instruction": "지시사항",+ "builtins.lobe-claude-code.agent.result": "결과","builtins.lobe-claude-code.todoWrite.allDone": "모든 작업이 완료되었습니다","builtins.lobe-claude-code.todoWrite.currentStep": "현재 단계","builtins.lobe-claude-code.todoWrite.todos": "할 일",diff --git a/locales/ko-KR/topic.json b/locales/ko-KR/topic.jsonindex 4fe1cba5b8a..a3096559fb6 100644--- a/locales/ko-KR/topic.json+++ b/locales/ko-KR/topic.json@@ -15,20 +15,24 @@"actions.export": "주제 내보내기","actions.favorite": "즐겨찾기","actions.import": "대화 가져오기",+ "actions.markCompleted": "완료로 표시","actions.openInNewTab": "새 탭에서 열기","actions.openInNewWindow": "새 창에서 열기","actions.removeAll": "모든 주제 삭제","actions.removeUnstarred": "즐겨찾기하지 않은 주제 삭제","actions.unfavorite": "즐겨찾기 해제",+ "actions.unmarkCompleted": "활성으로 표시","defaultTitle": "기본 주제","displayItems": "항목 표시","duplicateLoading": "주제 복사 중...","duplicateSuccess": "주제 복사 성공","favorite": "즐겨찾기",+ "filter.filter": "필터","filter.groupMode.byProject": "프로젝트별","filter.groupMode.byTime": "시간순","filter.groupMode.flat": "평면 보기","filter.organize": "정리",+ "filter.showCompleted": "완료 항목 포함","filter.sort": "정렬 기준","filter.sortBy.createdAt": "생성 시간","filter.sortBy.updatedAt": "업데이트 시간",@@ -52,6 +56,7 @@"renameModal.title": "토픽 이름 변경","searchPlaceholder": "주제 검색...","searchResultEmpty": "검색 결과가 없습니다.",+ "taskManager.welcome": "작업에 대해 물어보세요","temp": "임시","title": "주제"}diff --git a/locales/nl-NL/auth.json b/locales/nl-NL/auth.jsonindex b219002b79f..d7d9d394a2b 100644--- a/locales/nl-NL/auth.json+++ b/locales/nl-NL/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Wachtwoord opnieuw instellen","profile.email": "E-mailadres","profile.emailChangeSuccess": "Verificatie-e-mail verzonden. Controleer je nieuwe e-mailinbox.",- "profile.emailInputHint": "Voer je nieuwe e-mailadres in","profile.emailInvalid": "Voer een geldig e-mailadres in","profile.emailPlaceholder": "[email protected]","profile.fullName": "Volledige naam",diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.jsonindex 6e520296287..f6a33bd696f 100644--- a/locales/nl-NL/chat.json+++ b/locales/nl-NL/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Hoi, ik ben **{{name}}**. Eén zin is genoeg.\n\nWil je dat ik beter aansluit op jouw workflow? Ga naar [Agentinstellingen]({{url}}) en vul het Agentprofiel in (je kunt dit altijd aanpassen).","agentDefaultMessageWithSystemRole": "Hoi, ik ben **{{name}}**. Eén zin is genoeg—jij hebt de controle.","agentDefaultMessageWithoutEdit": "Hoi, ik ben **{{name}}**. Eén zin is genoeg—jij hebt de controle.",+ "agentProfile.files_one": "{{count}} bestand",+ "agentProfile.files_other": "{{count}} bestanden",+ "agentProfile.knowledgeBases_one": "{{count}} kennisbank",+ "agentProfile.knowledgeBases_other": "{{count}} kennisbanken",+ "agentProfile.skills_one": "{{count}} vaardigheid",+ "agentProfile.skills_other": "{{count}} vaardigheden","agents": "Agents","artifact.generating": "Bezig met genereren","artifact.inThread": "Kan niet worden bekeken in subonderwerp, schakel over naar het hoofdgesprek om te openen",@@ -42,11 +48,17 @@"confirmRemoveGroupSuccess": "Groep succesvol verwijderd","confirmRemoveSessionItemAlert": "Je staat op het punt deze agent te verwijderen. Na verwijdering kan deze niet worden hersteld. Bevestig je actie.","confirmRemoveSessionSuccess": "Agent succesvol verwijderd",- "createModal.createBlank": "Blanco maken",+ "createModal.createBlank": "Lege maken","createModal.groupPlaceholder": "Beschrijf wat deze groep moet doen...","createModal.groupTitle": "Wat moet je groep doen?","createModal.placeholder": "Beschrijf wat je agent moet doen...","createModal.title": "Wat moet je agent doen?",+ "createTask.assignee": "Toegewezen aan",+ "createTask.collapse": "Invoer verbergen",+ "createTask.expandToInline": "Aan pagina vastmaken",+ "createTask.instructionPlaceholder": "Beschrijving toevoegen...",+ "createTask.submit": "Taak aanmaken",+ "createTask.titlePlaceholder": "Taaktitel","defaultAgent": "Standaard Agent","defaultGroupChat": "Groep","defaultList": "Standaardlijst",@@ -82,6 +94,7 @@"extendParams.title": "Modeluitbreidingsfuncties","extendParams.urlContext.desc": "Indien ingeschakeld, worden webkoppelingen automatisch geanalyseerd om de inhoud van de webpagina op te halen","extendParams.urlContext.title": "Webpagina-inhoud ophalen",+ "followUpPlaceholder": "Vervolgen. @ om taken toe te wijzen aan andere agenten.","group.desc": "Werk samen met meerdere Agents in één gedeelde ruimte.","group.memberTooltip": "Er zijn {{count}} leden in de groep","group.orchestratorThinking": "Orchestrator is aan het denken...",@@ -124,10 +137,10 @@"groupWizard.title": "Groep aanmaken","groupWizard.useTemplate": "Sjabloon gebruiken","heteroAgent.fullAccess.label": "Volledige toegang",- "heteroAgent.fullAccess.tooltip": "Claude Code draait lokaal met volledige lees-/schrijftoegang tot de werkmap. Het wisselen van toestemmingsmodi is nog niet beschikbaar.",+ "heteroAgent.fullAccess.tooltip": "Claude Code draait lokaal met volledige lees-/schrijfrechten voor de werkmap. Wisselen van toestemmingsmodus is nog niet beschikbaar.","heteroAgent.resumeReset.cwdChanged": "Werkmap gewijzigd. De vorige Claude Code-sessie kan alleen worden hervat vanuit de oorspronkelijke map, dus er is een nieuw gesprek gestart.","heteroAgent.switchCwd.cancel": "Annuleren",- "heteroAgent.switchCwd.content": "Claude Code-sessies zijn gekoppeld aan een werkmap. Wisselen zal een nieuwe sessie voor dit onderwerp starten — chatberichten blijven behouden, maar de vorige sessiecontext kan niet worden hervat.",+ "heteroAgent.switchCwd.content": "Claude Code-sessies zijn vastgezet op een werkmap. Wisselen start een nieuwe sessie voor dit onderwerp — chatberichten blijven behouden, maar de vorige sessiecontext kan niet worden hervat.","heteroAgent.switchCwd.ok": "Wisselen en nieuwe sessie starten","heteroAgent.switchCwd.title": "Werkmap wisselen?","hideForYou": "Privéberichtinhoud is verborgen. Schakel 'Toon privéberichtinhoud' in de instellingen in om te bekijken.",@@ -141,7 +154,7 @@"input.addUser": "Gebruikersbericht toevoegen","input.disclaimer": "Agents kunnen fouten maken. Gebruik je eigen oordeel bij belangrijke informatie.","input.errorMsg": "Verzenden mislukt: {{errorMsg}}. Probeer opnieuw of later nog eens.",- "input.more": "meer",+ "input.more": "Meer","input.send": "Verzenden","input.sendWithCmdEnter": "Druk op <key/> om te verzenden","input.sendWithEnter": "Druk op <key/> om te verzenden",@@ -243,8 +256,9 @@"operation.contextCompression": "Context te lang, geschiedenis wordt samengevat...","operation.execAgentRuntime": "Reactie voorbereiden","operation.execClientTask": "Taak wordt uitgevoerd",- "operation.execHeterogeneousAgent": "Externe agent actief",- "operation.execServerAgentRuntime": "Bezig… Je kunt van taak wisselen of de pagina sluiten — de taak gaat gewoon door.",+ "operation.execHeterogeneousAgent": "{{name}} wordt uitgevoerd",+ "operation.execServerAgentRuntime": "Bezig… Je kunt van taak wisselen of de pagina sluiten — de taak blijft doorgaan.",+ "operation.heterogeneousAgentFallback": "Externe agent","operation.sendMessage": "Bericht verzenden","owner": "Groepseigenaar","pageCopilot.title": "Pagina-agent",@@ -285,6 +299,8 @@"searchAgents": "Zoek agenten...","selectedAgents": "Geselecteerde agenten","sendPlaceholder": "Stel een vraag, maak iets aan of start een taak, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Vraag {{name}} om een taak uit te voeren...",+ "sendPlaceholderWithAgentAssignment": "Vraag, maak of start een taak. @ om taken toe te wijzen aan andere agenten.","sessionGroup.config": "Groepsbeheer","sessionGroup.confirmRemoveGroupAlert": "Deze groep wordt verwijderd. Na verwijdering worden de agenten in deze groep verplaatst naar de standaardlijst. Bevestig je actie.","sessionGroup.createAgentSuccess": "Agent succesvol aangemaakt",@@ -378,6 +394,7 @@"tab.integration": "Integratie","tab.profile": "Agentprofiel","tab.search": "Zoeken",+ "tab.tasks": "Taken","task.activity.calling": "Skill wordt aangeroepen...","task.activity.clientExecuting": "Lokaal uitvoeren...","task.activity.generating": "Reactie wordt gegenereerd...",@@ -399,7 +416,111 @@"task.status.initializing": "Taak initialiseren...","task.subtask": "Subtaak","task.title": "Taken",+ "taskDetail.activities": "Activiteiten",+ "taskDetail.activities.agentTag": "Agent",+ "taskDetail.activities.fallback.brief": "plaatste een brief",+ "taskDetail.activities.fallback.comment": "liet een reactie achter",+ "taskDetail.activities.fallback.created": "heeft de taak aangemaakt",+ "taskDetail.activities.fallback.topic": "startte een onderwerp",+ "taskDetail.activitiesEmpty": "Nog geen activiteit",+ "taskDetail.addSubtask": "Subtaak toevoegen",+ "taskDetail.blockedBy": "Geblokkeerd door {{id}}",+ "taskDetail.comment.cancel": "Annuleren",+ "taskDetail.comment.delete": "Verwijderen",+ "taskDetail.comment.deleteConfirm.content": "Deze reactie wordt permanent verwijderd.",+ "taskDetail.comment.deleteConfirm.ok": "Verwijderen",+ "taskDetail.comment.deleteConfirm.title": "Deze reactie verwijderen?",+ "taskDetail.comment.edit": "Bewerken",+ "taskDetail.comment.save": "Opslaan",+ "taskDetail.commentPlaceholder": "Laat een reactie achter...",+ "taskDetail.deleteConfirm.content": "Deze actie kan niet ongedaan worden gemaakt.",+ "taskDetail.deleteConfirm.ok": "Verwijderen",+ "taskDetail.deleteConfirm.title": "Deze taak verwijderen?",+ "taskDetail.instruction": "Instructie",+ "taskDetail.instructionPlaceholder": "Klik om de taakinstructies te bewerken...",+ "taskDetail.latestActivity.brief": "Briefing: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Briefing",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Briefing ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Briefing ({{type}})",+ "taskDetail.latestActivity.topic": "Onderwerp: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Onderwerp #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Naamloos onderwerp",+ "taskDetail.modelConfig": "Modeloverschrijving",+ "taskDetail.navigation": "Navigatie",+ "taskDetail.pauseTask": "Taak pauzeren",+ "taskDetail.priority.high": "Hoog",+ "taskDetail.priority.low": "Laag",+ "taskDetail.priority.none": "Geen prioriteit",+ "taskDetail.priority.normal": "Normaal",+ "taskDetail.priority.urgent": "Dringend",+ "taskDetail.properties": "Eigenschappen",+ "taskDetail.reassignDisabled": "Kan agent niet opnieuw toewijzen terwijl taak wordt uitgevoerd",+ "taskDetail.rerunTask": "Taak opnieuw uitvoeren",+ "taskDetail.runTask": "Taak uitvoeren",+ "taskDetail.saveModelConfig": "Opslaan",+ "taskDetail.status.backlog": "Backlog",+ "taskDetail.status.canceled": "Geannuleerd",+ "taskDetail.status.completed": "Voltooid",+ "taskDetail.status.failed": "Mislukt",+ "taskDetail.status.paused": "Gepauzeerd",+ "taskDetail.status.running": "Bezig",+ "taskDetail.stopTask": "Taak stoppen",+ "taskDetail.subIssueOf": "Subtaak van",+ "taskDetail.subtaskInstructionPlaceholder": "Beschrijf de subtaak...",+ "taskDetail.subtasks": "Subtaken",+ "taskDetail.titlePlaceholder": "Voer een taaknaam in...",+ "taskDetail.topicDrawer.untitled": "Zonder titel",+ "taskDetail.updateFailed": "Bijwerken van taak mislukt",+ "taskList.activeTasks": "Actieve Taken",+ "taskList.all": "Alle taken",+ "taskList.breadcrumb.task": "Taak",+ "taskList.empty": "Nog geen taken",+ "taskList.form.grouping": "Groepering",+ "taskList.form.orderCompletedByRecency": "Voltooide taken sorteren op recentheid",+ "taskList.form.ordering": "Sortering",+ "taskList.form.subGrouping": "Subgroepering",+ "taskList.groupBy.assignee": "Toegewezen aan",+ "taskList.groupBy.none": "Geen groepering",+ "taskList.groupBy.priority": "Prioriteit",+ "taskList.groupBy.status": "Status",+ "taskList.orderBy.assignee": "Toegewezen aan",+ "taskList.orderBy.createdAt": "Aangemaakt op",+ "taskList.orderBy.priority": "Prioriteit",+ "taskList.orderBy.status": "Status",+ "taskList.orderBy.title": "Titel",+ "taskList.orderBy.updatedAt": "Bijgewerkt op",+ "taskList.title": "Taken",+ "taskList.unassigned": "Niet toegewezen",+ "taskList.view.board": "Bord",+ "taskList.view.list": "Lijst",+ "taskList.viewAll": "Alles bekijken",+ "taskSchedule.clear": "Wissen",+ "taskSchedule.enable": "Automatisering inschakelen",+ "taskSchedule.every": "Elke",+ "taskSchedule.hours": "Uren",+ "taskSchedule.interval": "Herhaling",+ "taskSchedule.intervalTab": "Herhaling",+ "taskSchedule.minutes": "Minuten",+ "taskSchedule.scheduler": "Planner",+ "taskSchedule.schedulerNotReady": "Planner komt binnenkort. Gebruik voorlopig Herhaling.",+ "taskSchedule.schedulerTab": "Planner",+ "taskSchedule.seconds": "Seconden",+ "taskSchedule.tag.add": "Schema instellen",+ "taskSchedule.tag.every": "elke {{interval}}",+ "taskSchedule.tag.heartbeat": "Interval · {{every}}",+ "taskSchedule.tag.schedule": "Schema · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Schema",+ "taskSchedule.unit.hour_one": "{{count}} uur",+ "taskSchedule.unit.hour_other": "{{count}} uur",+ "taskSchedule.unit.minute_one": "{{count}} minuut",+ "taskSchedule.unit.minute_other": "{{count}} minuten",+ "taskSchedule.unit.second_one": "{{count}} seconde",+ "taskSchedule.unit.second_other": "{{count}} seconden",+ "thread.closeSubagentThread": "Subagentgesprek samenvouwen","thread.divider": "Subonderwerp",+ "thread.openSubagentThread": "Volledig subagentgesprek bekijken",+ "thread.subagentBadge": "Subagent","thread.threadMessageCount": "{{messageCount}} berichten","thread.title": "Subonderwerp","todoProgress.allCompleted": "Alle taken voltooid",@@ -429,14 +550,14 @@"tool.intervention.mode.manual": "Handmatig","tool.intervention.mode.manualDesc": "Handmatige goedkeuring vereist voor elke oproep","tool.intervention.onboarding.agentIdentity.applyHint": "De nieuwe identiteit verschijnt na goedkeuring.",- "tool.intervention.onboarding.agentIdentity.description": "Door deze wijziging goed te keuren wordt de Agent weergegeven in Inbox en in dit onboardinggesprek bijgewerkt.",+ "tool.intervention.onboarding.agentIdentity.description": "Door deze wijziging goed te keuren wordt de Agent bijgewerkt zoals weergegeven in de inbox en in dit onboardinggesprek.","tool.intervention.onboarding.agentIdentity.emoji": "Agent-avatar","tool.intervention.onboarding.agentIdentity.eyebrow": "Onboarding-goedkeuring","tool.intervention.onboarding.agentIdentity.name": "Agentnaam","tool.intervention.onboarding.agentIdentity.targetInbox": "Inbox-agent","tool.intervention.onboarding.agentIdentity.targetOnboarding": "Huidige onboarding-agent","tool.intervention.onboarding.agentIdentity.targets": "Van toepassing op",- "tool.intervention.onboarding.agentIdentity.title": "Identiteitsupdate van Agent bevestigen",+ "tool.intervention.onboarding.agentIdentity.title": "Bevestig update van agentidentiteit","tool.intervention.pending": "In afwachting","tool.intervention.reject": "Afwijzen","tool.intervention.rejectAndContinue": "Afwijzen en opnieuw proberen",@@ -484,13 +605,13 @@"viewMode.fullWidth": "Volledige breedte","viewMode.normal": "Standaard","viewMode.wideScreen": "Widescreen",- "workflow.awaitingConfirmation": "In afwachting van jouw bevestiging",+ "workflow.awaitingConfirmation": "In afwachting van je bevestiging","workflow.collapse": "Samenvouwen",- "workflow.expandFull": "Volledig uitvouwen",+ "workflow.expandFull": "Volledig uitklappen","workflow.failedSuffix": "(mislukt)","workflow.summaryFailed": "{{count}} mislukt",- "workflow.summaryMoreTools": "+{{count}} meer",- "workflow.summaryTotalCalls": "{{count}} oproepen in totaal",+ "workflow.summaryMoreTools": "{{count}} toolsoorten",+ "workflow.summaryTotalCalls": "{{count}} oproepen totaal","workflow.thoughtForDuration": "Gedachte voor {{duration}}","workflow.toolDisplayName.activateDevice": "Geactiveerd apparaat","workflow.toolDisplayName.activateSkill": "Een vaardigheid geactiveerd",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Nog geen documenten. Documenten die aan deze agent zijn gekoppeld, verschijnen hier.",+ "workingPanel.resources.empty": "Nog geen documenten. Documenten die bij deze agent horen, verschijnen hier.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Alles","workingPanel.resources.filter.documents": "Documenten",@@ -594,7 +715,7 @@"workingPanel.resources.renameError": "Failed to rename document","workingPanel.resources.renameSuccess": "Document renamed","workingPanel.resources.viewMode.list": "Lijstweergave",- "workingPanel.resources.viewMode.tree": "Boomstructuurweergave",+ "workingPanel.resources.viewMode.tree": "Boomweergave","workingPanel.title": "Working Panel","you": "Jij","zenMode": "Zen-modus"diff --git a/locales/nl-NL/home.json b/locales/nl-NL/home.jsonindex 76b0d196350..e6116f5d8c4 100644--- a/locales/nl-NL/home.json+++ b/locales/nl-NL/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Er kunnen momenteel geen agenten worden toegevoegd","agentSelection.noSelected": "Geen agenten geselecteerd","agentSelection.search": "Geen overeenkomende agenten gevonden",+ "brief.action.acknowledge": "Bevestigen",+ "brief.action.approve": "Goedkeuren",+ "brief.action.feedback": "Feedback",+ "brief.action.retry": "Opnieuw proberen",+ "brief.addFeedback": "Feedback delen",+ "brief.collapse": "Minder weergeven",+ "brief.commentPlaceholder": "Deel je feedback...",+ "brief.commentSubmit": "Feedback verzenden",+ "brief.expandAll": "Meer weergeven",+ "brief.feedbackSent": "Feedback verzonden",+ "brief.resolved": "Gemarkeerd als opgelost",+ "brief.title": "Dagelijks overzicht",+ "brief.viewAllTasks": "Alle taken bekijken","project.create": "Nieuw project","project.deleteConfirm": "Dit project wordt verwijderd en kan niet worden hersteld. Bevestig om door te gaan.","starter.createAgent": "Agent aanmaken",diff --git a/locales/nl-NL/plugin.json b/locales/nl-NL/plugin.jsonindex 4abfe7cddb2..817c5be2dec 100644--- a/locales/nl-NL/plugin.json+++ b/locales/nl-NL/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Plugin","builtins.lobe-agent-management.render.installPlugin.success": "Succesvol geïnstalleerd","builtins.lobe-agent-management.title": "Agentbeheer",+ "builtins.lobe-claude-code.agent.instruction": "Instructie",+ "builtins.lobe-claude-code.agent.result": "Resultaat","builtins.lobe-claude-code.todoWrite.allDone": "Alle taken voltooid","builtins.lobe-claude-code.todoWrite.currentStep": "Huidige stap","builtins.lobe-claude-code.todoWrite.todos": "Taken",diff --git a/locales/nl-NL/topic.json b/locales/nl-NL/topic.jsonindex b30a391c5b5..5b878911bcd 100644--- a/locales/nl-NL/topic.json+++ b/locales/nl-NL/topic.json@@ -15,20 +15,24 @@"actions.export": "Onderwerpen exporteren","actions.favorite": "Favoriet","actions.import": "Gesprek importeren",+ "actions.markCompleted": "Markeren als voltooid","actions.openInNewTab": "Openen in nieuw tabblad","actions.openInNewWindow": "Openen in een nieuw venster","actions.removeAll": "Alle onderwerpen verwijderen","actions.removeUnstarred": "Niet-gemarkeerde onderwerpen verwijderen","actions.unfavorite": "Niet meer favoriet",+ "actions.unmarkCompleted": "Markeren als actief","defaultTitle": "Standaardonderwerp","displayItems": "Items weergeven","duplicateLoading": "Onderwerp wordt gekopieerd...","duplicateSuccess": "Onderwerp succesvol gekopieerd","favorite": "Favoriet",+ "filter.filter": "Filter","filter.groupMode.byProject": "Op project","filter.groupMode.byTime": "Op tijd","filter.groupMode.flat": "Plat","filter.organize": "Organiseren",+ "filter.showCompleted": "Voltooide opnemen","filter.sort": "Sorteren op","filter.sortBy.createdAt": "Aanmaaktijd","filter.sortBy.updatedAt": "Wijzigingstijd",@@ -52,6 +56,7 @@"renameModal.title": "Onderwerp hernoemen","searchPlaceholder": "Onderwerpen zoeken...","searchResultEmpty": "Geen zoekresultaten gevonden.",+ "taskManager.welcome": "Vraag me naar je taken","temp": "Tijdelijk","title": "Onderwerp"}diff --git a/locales/pl-PL/auth.json b/locales/pl-PL/auth.jsonindex c91c8c9b65b..e34afb84b2f 100644--- a/locales/pl-PL/auth.json+++ b/locales/pl-PL/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Zresetuj hasło","profile.email": "Adres e-mail","profile.emailChangeSuccess": "E-mail weryfikacyjny został wysłany. Sprawdź swoją nową skrzynkę e-mail.",- "profile.emailInputHint": "Wprowadź swój nowy adres e-mail","profile.emailInvalid": "Proszę wprowadzić poprawny adres e-mail","profile.emailPlaceholder": "[email protected]","profile.fullName": "Imię i nazwisko",diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.jsonindex 12256a63700..6a5dd2b750c 100644--- a/locales/pl-PL/chat.json+++ b/locales/pl-PL/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Cześć, jestem **{{name}}**. Jedno zdanie wystarczy.\n\nChcesz, żebym lepiej dopasował się do Twojego stylu pracy? Przejdź do [Ustawień Agenta]({{url}}) i uzupełnij Profil Agenta (możesz go edytować w każdej chwili).","agentDefaultMessageWithSystemRole": "Cześć, jestem **{{name}}**. Jedno zdanie wystarczy — to Ty masz kontrolę.","agentDefaultMessageWithoutEdit": "Cześć, jestem **{{name}}**. Jedno zdanie wystarczy — to Ty masz kontrolę.",+ "agentProfile.files_one": "{{count}} plik",+ "agentProfile.files_other": "{{count}} pliki",+ "agentProfile.knowledgeBases_one": "{{count}} baza wiedzy",+ "agentProfile.knowledgeBases_other": "{{count}} bazy wiedzy",+ "agentProfile.skills_one": "{{count}} umiejętność",+ "agentProfile.skills_other": "{{count}} umiejętności","agents": "Agenci","artifact.generating": "Generowanie","artifact.inThread": "Nie można wyświetlić w podtemacie, przejdź do głównej rozmowy, aby otworzyć",@@ -43,10 +49,16 @@"confirmRemoveSessionItemAlert": "Zamierzasz usunąć tego agenta. Po usunięciu nie będzie można go odzyskać. Potwierdź swoją decyzję.","confirmRemoveSessionSuccess": "Agent został pomyślnie usunięty","createModal.createBlank": "Utwórz pusty",- "createModal.groupPlaceholder": "Opisz, co ta grupa powinna robić...",- "createModal.groupTitle": "Co powinna robić Twoja grupa?",- "createModal.placeholder": "Opisz, co Twój agent powinien robić...",- "createModal.title": "Co powinien robić Twój agent?",+ "createModal.groupPlaceholder": "Opisz, czym ma zajmować się ta grupa...",+ "createModal.groupTitle": "Czym ma zajmować się Twoja grupa?",+ "createModal.placeholder": "Opisz, czym ma zajmować się Twój agent...",+ "createModal.title": "Czym ma zajmować się Twój agent?",+ "createTask.assignee": "Przypisany",+ "createTask.collapse": "Ukryj pole",+ "createTask.expandToInline": "Dokuj do strony",+ "createTask.instructionPlaceholder": "Dodaj opis...",+ "createTask.submit": "Utwórz zadanie",+ "createTask.titlePlaceholder": "Tytuł zadania","defaultAgent": "Domyślny Agent","defaultGroupChat": "Grupa","defaultList": "Lista domyślna",@@ -82,6 +94,7 @@"extendParams.title": "Funkcje rozszerzenia modelu","extendParams.urlContext.desc": "Po włączeniu, linki internetowe będą automatycznie analizowane w celu pobrania treści strony","extendParams.urlContext.title": "Wyodrębnij treść linku",+ "followUpPlaceholder": "Kontynuuj. Użyj @, aby przypisać zadania innym agentom.","group.desc": "Pracuj nad zadaniem z wieloma Agentami w jednej wspólnej przestrzeni.","group.memberTooltip": "Grupa zawiera {{count}} członków","group.orchestratorThinking": "Orkiestrator myśli...",@@ -124,12 +137,12 @@"groupWizard.title": "Utwórz grupę","groupWizard.useTemplate": "Użyj szablonu","heteroAgent.fullAccess.label": "Pełny dostęp",- "heteroAgent.fullAccess.tooltip": "Claude Code działa lokalnie z pełnym dostępem do odczytu/zapisu w katalogu roboczym. Zmiana trybu uprawnień nie jest jeszcze dostępna.",- "heteroAgent.resumeReset.cwdChanged": "Katalog roboczy został zmieniony. Poprzednią sesję Claude Code można wznowić tylko z jej pierwotnego katalogu, więc rozpoczęto nową rozmowę.",+ "heteroAgent.fullAccess.tooltip": "Claude Code działa lokalnie z pełnym dostępem do odczytu i zapisu w katalogu roboczym. Przełączanie trybów uprawnień nie jest jeszcze dostępne.",+ "heteroAgent.resumeReset.cwdChanged": "Zmieniono katalog roboczy. Poprzednia sesja Claude Code może zostać wznowiona tylko z oryginalnego katalogu, więc rozpoczęto nową rozmowę.","heteroAgent.switchCwd.cancel": "Anuluj",- "heteroAgent.switchCwd.content": "Sesje Claude Code są przypisane do konkretnego katalogu roboczego. Zmiana spowoduje rozpoczęcie nowej sesji dla tego tematu — wiadomości na czacie pozostaną, ale kontekstu poprzedniej sesji nie będzie można wznowić.",+ "heteroAgent.switchCwd.content": "Sesje Claude Code są przypisane do katalogu roboczego. Zmiana spowoduje rozpoczęcie nowej sesji dla tego tematu — wiadomości zostaną zachowane, ale poprzedni kontekst sesji nie może zostać wznowiony.","heteroAgent.switchCwd.ok": "Zmień i rozpocznij nową sesję",- "heteroAgent.switchCwd.title": "Zmienić katalog roboczy?",+ "heteroAgent.switchCwd.title": "Zmień katalog roboczy?","hideForYou": "Treść wiadomości prywatnej jest ukryta. Włącz „Pokaż treść wiadomości prywatnych” w ustawieniach, aby ją zobaczyć.","history.title": "Agent zachowa tylko ostatnie {{count}} wiadomości.","historyRange": "Zakres historii",@@ -141,7 +154,7 @@"input.addUser": "Dodaj wiadomość użytkownika","input.disclaimer": "Agenci mogą popełniać błędy. W przypadku ważnych informacji zachowaj ostrożność.","input.errorMsg": "Wysyłanie nie powiodło się: {{errorMsg}}. Spróbuj ponownie lub wyślij później.",- "input.more": "więcej",+ "input.more": "Więcej","input.send": "Wyślij","input.sendWithCmdEnter": "Naciśnij <key/>, aby wysłać","input.sendWithEnter": "Naciśnij <key/>, aby wysłać",@@ -243,8 +256,9 @@"operation.contextCompression": "Kontekst jest zbyt długi, kompresowanie historii...","operation.execAgentRuntime": "Przygotowywanie odpowiedzi","operation.execClientTask": "Wykonywanie zadania",- "operation.execHeterogeneousAgent": "Działa zewnętrzny agent",- "operation.execServerAgentRuntime": "Uruchamianie… Możesz przełączyć zadania lub zamknąć stronę — zadanie będzie kontynuowane.",+ "operation.execHeterogeneousAgent": "{{name}} jest uruchomiony",+ "operation.execServerAgentRuntime": "W trakcie działania… Możesz zmienić zadanie lub zamknąć stronę — zadanie będzie kontynuowane.",+ "operation.heterogeneousAgentFallback": "Agent zewnętrzny","operation.sendMessage": "Wysyłanie wiadomości","owner": "Właściciel grupy","pageCopilot.title": "Agent strony",@@ -285,6 +299,8 @@"searchAgents": "Szukaj agentów...","selectedAgents": "Wybrani agenci","sendPlaceholder": "Zadaj pytanie, utwórz lub rozpocznij zadanie, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Poproś {{name}} o wykonanie zadania...",+ "sendPlaceholderWithAgentAssignment": "Poproś, utwórz lub rozpocznij zadanie. Użyj @, aby przypisać zadania innym agentom.","sessionGroup.config": "Zarządzanie grupą","sessionGroup.confirmRemoveGroupAlert": "Ta grupa zostanie usunięta. Po usunięciu agenci z tej grupy zostaną przeniesieni do listy domyślnej. Potwierdź operację.","sessionGroup.createAgentSuccess": "Agent utworzony pomyślnie",@@ -378,6 +394,7 @@"tab.integration": "Integracja","tab.profile": "Profil agenta","tab.search": "Szukaj",+ "tab.tasks": "Zadania","task.activity.calling": "Wywoływanie umiejętności...","task.activity.clientExecuting": "Wykonywanie lokalnie...","task.activity.generating": "Generowanie odpowiedzi...",@@ -399,7 +416,111 @@"task.status.initializing": "Inicjalizacja zadania...","task.subtask": "Podzadanie","task.title": "Zadania",+ "taskDetail.activities": "Aktywności",+ "taskDetail.activities.agentTag": "Agent",+ "taskDetail.activities.fallback.brief": "opublikował(a) szkic",+ "taskDetail.activities.fallback.comment": "zostawił(a) komentarz",+ "taskDetail.activities.fallback.created": "utworzył zadanie",+ "taskDetail.activities.fallback.topic": "rozpoczął(a) temat",+ "taskDetail.activitiesEmpty": "Brak aktywności",+ "taskDetail.addSubtask": "Dodaj podzadanie",+ "taskDetail.blockedBy": "Zablokowane przez {{id}}",+ "taskDetail.comment.cancel": "Anuluj",+ "taskDetail.comment.delete": "Usuń",+ "taskDetail.comment.deleteConfirm.content": "Ten komentarz zostanie trwale usunięty.",+ "taskDetail.comment.deleteConfirm.ok": "Usuń",+ "taskDetail.comment.deleteConfirm.title": "Usunąć ten komentarz?",+ "taskDetail.comment.edit": "Edytuj",+ "taskDetail.comment.save": "Zapisz",+ "taskDetail.commentPlaceholder": "Zostaw komentarz...",+ "taskDetail.deleteConfirm.content": "Tej czynności nie można cofnąć.",+ "taskDetail.deleteConfirm.ok": "Usuń",+ "taskDetail.deleteConfirm.title": "Usunąć to zadanie?",+ "taskDetail.instruction": "Instrukcja",+ "taskDetail.instructionPlaceholder": "Kliknij, aby edytować instrukcje zadania...",+ "taskDetail.latestActivity.brief": "Szkic: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Szkic",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Szkic ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Szkic ({{type}})",+ "taskDetail.latestActivity.topic": "Temat: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Temat #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Temat bez tytułu",+ "taskDetail.modelConfig": "Nadpisanie modelu",+ "taskDetail.navigation": "Nawigacja",+ "taskDetail.pauseTask": "Wstrzymaj zadanie",+ "taskDetail.priority.high": "Wysoki",+ "taskDetail.priority.low": "Niski",+ "taskDetail.priority.none": "Bez priorytetu",+ "taskDetail.priority.normal": "Normalny",+ "taskDetail.priority.urgent": "Pilny",+ "taskDetail.properties": "Właściwości",+ "taskDetail.reassignDisabled": "Nie można zmienić przypisanego agenta podczas wykonywania zadania",+ "taskDetail.rerunTask": "Uruchom ponownie zadanie",+ "taskDetail.runTask": "Uruchom zadanie",+ "taskDetail.saveModelConfig": "Zapisz",+ "taskDetail.status.backlog": "Do zrobienia",+ "taskDetail.status.canceled": "Anulowane",+ "taskDetail.status.completed": "Ukończone",+ "taskDetail.status.failed": "Niepowodzenie",+ "taskDetail.status.paused": "Wstrzymane",+ "taskDetail.status.running": "W toku",+ "taskDetail.stopTask": "Zatrzymaj zadanie",+ "taskDetail.subIssueOf": "Podproblem w",+ "taskDetail.subtaskInstructionPlaceholder": "Opisz podzadanie...",+ "taskDetail.subtasks": "Podzadania",+ "taskDetail.titlePlaceholder": "Wpisz tytuł zadania...",+ "taskDetail.topicDrawer.untitled": "Bez tytułu",+ "taskDetail.updateFailed": "Nie udało się zaktualizować zadania",+ "taskList.activeTasks": "Aktywne zadania",+ "taskList.all": "Wszystkie zadania",+ "taskList.breadcrumb.task": "Zadanie",+ "taskList.empty": "Brak zadań",+ "taskList.form.grouping": "Grupowanie",+ "taskList.form.orderCompletedByRecency": "Sortuj ukończone zadania według najnowszych",+ "taskList.form.ordering": "Sortowanie",+ "taskList.form.subGrouping": "Podgrupowanie",+ "taskList.groupBy.assignee": "Przypisany",+ "taskList.groupBy.none": "Bez grupowania",+ "taskList.groupBy.priority": "Priorytet",+ "taskList.groupBy.status": "Status",+ "taskList.orderBy.assignee": "Przypisany",+ "taskList.orderBy.createdAt": "Data utworzenia",+ "taskList.orderBy.priority": "Priorytet",+ "taskList.orderBy.status": "Status",+ "taskList.orderBy.title": "Tytuł",+ "taskList.orderBy.updatedAt": "Data aktualizacji",+ "taskList.title": "Zadania",+ "taskList.unassigned": "Nieprzypisane",+ "taskList.view.board": "Tablica",+ "taskList.view.list": "Lista",+ "taskList.viewAll": "Wyświetl wszystkie",+ "taskSchedule.clear": "Wyczyść",+ "taskSchedule.enable": "Włącz automatyzację",+ "taskSchedule.every": "Co",+ "taskSchedule.hours": "Godziny",+ "taskSchedule.interval": "Cykliczne",+ "taskSchedule.intervalTab": "Cykliczne",+ "taskSchedule.minutes": "Minuty",+ "taskSchedule.scheduler": "Harmonogram",+ "taskSchedule.schedulerNotReady": "Harmonogram wkrótce dostępny. Na razie użyj opcji cyklicznej.",+ "taskSchedule.schedulerTab": "Harmonogram",+ "taskSchedule.seconds": "Sekundy",+ "taskSchedule.tag.add": "Ustaw harmonogram",+ "taskSchedule.tag.every": "co {{interval}}",+ "taskSchedule.tag.heartbeat": "Puls · {{every}}",+ "taskSchedule.tag.schedule": "Harmonogram · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Harmonogram",+ "taskSchedule.unit.hour_one": "{{count}} godzina",+ "taskSchedule.unit.hour_other": "{{count}} godzin",+ "taskSchedule.unit.minute_one": "{{count}} minuta",+ "taskSchedule.unit.minute_other": "{{count}} minut",+ "taskSchedule.unit.second_one": "{{count}} sekunda",+ "taskSchedule.unit.second_other": "{{count}} sekund",+ "thread.closeSubagentThread": "Zwiń rozmowę subagenta","thread.divider": "Podtemat",+ "thread.openSubagentThread": "Pokaż pełną rozmowę subagenta",+ "thread.subagentBadge": "Subagent","thread.threadMessageCount": "{{messageCount}} wiadomości","thread.title": "Podtemat","todoProgress.allCompleted": "Wszystkie zadania ukończone",@@ -429,12 +550,12 @@"tool.intervention.mode.manual": "Ręczne","tool.intervention.mode.manualDesc": "Wymagane ręczne zatwierdzenie każdego wywołania","tool.intervention.onboarding.agentIdentity.applyHint": "Nowa tożsamość pojawi się po zatwierdzeniu.",- "tool.intervention.onboarding.agentIdentity.description": "Zatwierdzenie tej zmiany aktualizuje Agenta wyświetlanego w Skrzynce odbiorczej oraz w tej rozmowie wprowadzającej.",+ "tool.intervention.onboarding.agentIdentity.description": "Zatwierdzenie tej zmiany aktualizuje Agenta wyświetlanego w Skrzynce odbiorczej i w tej rozmowie powitalnej.","tool.intervention.onboarding.agentIdentity.emoji": "Awatar agenta",- "tool.intervention.onboarding.agentIdentity.eyebrow": "Zatwierdzenie wprowadzania",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "Zatwierdzenie onboardingu","tool.intervention.onboarding.agentIdentity.name": "Nazwa agenta",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Agent w skrzynce odbiorczej",- "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Obecny agent wprowadzający",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Agent skrzynki odbiorczej",+ "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Obecny agent w onboardingu","tool.intervention.onboarding.agentIdentity.targets": "Dotyczy","tool.intervention.onboarding.agentIdentity.title": "Potwierdź aktualizację tożsamości agenta","tool.intervention.pending": "Oczekujące",@@ -489,8 +610,8 @@"workflow.expandFull": "Rozwiń w pełni","workflow.failedSuffix": "(nieudane)","workflow.summaryFailed": "{{count}} nieudanych",- "workflow.summaryMoreTools": "+{{count}} więcej",- "workflow.summaryTotalCalls": "{{count}} wywołań łącznie",+ "workflow.summaryMoreTools": "{{count}} rodzaje narzędzi",+ "workflow.summaryTotalCalls": "{{count}} wszystkich wywołań","workflow.thoughtForDuration": "Namysł przez {{duration}}","workflow.toolDisplayName.activateDevice": "Aktywowane urządzenie","workflow.toolDisplayName.activateSkill": "Aktywowano umiejętność",diff --git a/locales/pl-PL/home.json b/locales/pl-PL/home.jsonindex eb12bd2982b..3f8a1adc0ce 100644--- a/locales/pl-PL/home.json+++ b/locales/pl-PL/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Obecnie nie można dodać żadnych agentów","agentSelection.noSelected": "Nie wybrano żadnych agentów","agentSelection.search": "Nie znaleziono pasujących agentów",+ "brief.action.acknowledge": "Potwierdź",+ "brief.action.approve": "Zatwierdź",+ "brief.action.feedback": "Opinie",+ "brief.action.retry": "Ponów próbę",+ "brief.addFeedback": "Prześlij opinię",+ "brief.collapse": "Pokaż mniej",+ "brief.commentPlaceholder": "Podziel się swoją opinią...",+ "brief.commentSubmit": "Prześlij opinię",+ "brief.expandAll": "Pokaż więcej",+ "brief.feedbackSent": "Opinia została wysłana",+ "brief.resolved": "Oznaczono jako rozwiązane",+ "brief.title": "Codzienny przegląd",+ "brief.viewAllTasks": "Wyświetl wszystkie zadania","project.create": "Nowy projekt","project.deleteConfirm": "Ten projekt zostanie usunięty i nie będzie można go odzyskać. Potwierdź, aby kontynuować.","starter.createAgent": "Utwórz agenta",diff --git a/locales/pl-PL/plugin.json b/locales/pl-PL/plugin.jsonindex 6d50537fc6f..32a63e5eac3 100644--- a/locales/pl-PL/plugin.json+++ b/locales/pl-PL/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Wtyczka","builtins.lobe-agent-management.render.installPlugin.success": "Pomyślnie zainstalowano","builtins.lobe-agent-management.title": "Menedżer Agentów",+ "builtins.lobe-claude-code.agent.instruction": "Instrukcja",+ "builtins.lobe-claude-code.agent.result": "Wynik","builtins.lobe-claude-code.todoWrite.allDone": "Wszystkie zadania ukończone","builtins.lobe-claude-code.todoWrite.currentStep": "Aktualny krok","builtins.lobe-claude-code.todoWrite.todos": "Zadania",diff --git a/locales/pl-PL/topic.json b/locales/pl-PL/topic.jsonindex 962d4537d33..ab6ad887d13 100644--- a/locales/pl-PL/topic.json+++ b/locales/pl-PL/topic.json@@ -15,20 +15,24 @@"actions.export": "Eksportuj tematy","actions.favorite": "Ulubione","actions.import": "Importuj rozmowę",+ "actions.markCompleted": "Oznacz jako ukończone","actions.openInNewTab": "Otwórz w nowej karcie","actions.openInNewWindow": "Otwórz w nowym oknie","actions.removeAll": "Usuń wszystkie tematy","actions.removeUnstarred": "Usuń nieoznaczone gwiazdką tematy","actions.unfavorite": "Nieulubione",+ "actions.unmarkCompleted": "Oznacz jako aktywne","defaultTitle": "Domyślny temat","displayItems": "Wyświetl elementy","duplicateLoading": "Kopiowanie tematu...","duplicateSuccess": "Temat skopiowany pomyślnie","favorite": "Ulubione",+ "filter.filter": "Filtruj","filter.groupMode.byProject": "Według projektu","filter.groupMode.byTime": "Według czasu","filter.groupMode.flat": "Płasko","filter.organize": "Organizuj",+ "filter.showCompleted": "Uwzględnij ukończone","filter.sort": "Sortuj wg","filter.sortBy.createdAt": "Czas utworzenia","filter.sortBy.updatedAt": "Czas aktualizacji",@@ -52,6 +56,7 @@"renameModal.title": "Zmień nazwę tematu","searchPlaceholder": "Szukaj tematów...","searchResultEmpty": "Brak wyników wyszukiwania.",+ "taskManager.welcome": "Zapytaj mnie o swoje zadania","temp": "Tymczasowy","title": "Temat"}diff --git a/locales/pt-BR/auth.json b/locales/pt-BR/auth.jsonindex 604841396f2..5e2a3603c7e 100644--- a/locales/pt-BR/auth.json+++ b/locales/pt-BR/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Redefinir senha","profile.email": "Endereço de E-mail","profile.emailChangeSuccess": "E-mail de verificação enviado. Por favor, verifique a caixa de entrada do seu novo e-mail.",- "profile.emailInputHint": "Digite seu novo endereço de e-mail","profile.emailInvalid": "Por favor, insira um endereço de e-mail válido","profile.emailPlaceholder": "[email protected]","profile.fullName": "Nome completo",diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.jsonindex 0deba940183..49ce2884e5c 100644--- a/locales/pt-BR/chat.json+++ b/locales/pt-BR/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Olá, sou **{{name}}**. Uma frase basta.\n\nQuer que eu me adapte melhor ao seu fluxo de trabalho? Vá para [Configurações do Agente]({{url}}) e preencha o Perfil do Agente (você pode editá-lo a qualquer momento).","agentDefaultMessageWithSystemRole": "Olá, sou **{{name}}**. Uma frase basta — você está no controle.","agentDefaultMessageWithoutEdit": "Olá, sou **{{name}}**. Uma frase basta — você está no controle.",+ "agentProfile.files_one": "{{count}} arquivo",+ "agentProfile.files_other": "{{count}} arquivos",+ "agentProfile.knowledgeBases_one": "{{count}} base de conhecimento",+ "agentProfile.knowledgeBases_other": "{{count}} bases de conhecimento",+ "agentProfile.skills_one": "{{count}} habilidade",+ "agentProfile.skills_other": "{{count}} habilidades","agents": "Agentes","artifact.generating": "Gerando","artifact.inThread": "Não é possível visualizar no subtópico, mude para a área principal da conversa para abrir",@@ -44,9 +50,15 @@"confirmRemoveSessionSuccess": "Agente removido com sucesso","createModal.createBlank": "Criar em branco","createModal.groupPlaceholder": "Descreva o que este grupo deve fazer...",- "createModal.groupTitle": "O que o seu grupo deve fazer?",- "createModal.placeholder": "Descreva o que o seu agente deve fazer...",- "createModal.title": "O que o seu agente deve fazer?",+ "createModal.groupTitle": "O que seu grupo deve fazer?",+ "createModal.placeholder": "Descreva o que seu agente deve fazer...",+ "createModal.title": "O que seu agente deve fazer?",+ "createTask.assignee": "Responsável",+ "createTask.collapse": "Ocultar entrada",+ "createTask.expandToInline": "Fixar na página",+ "createTask.instructionPlaceholder": "Adicionar descrição...",+ "createTask.submit": "Criar tarefa",+ "createTask.titlePlaceholder": "Título da tarefa","defaultAgent": "Agente Padrão","defaultGroupChat": "Grupo","defaultList": "Lista Padrão",@@ -82,6 +94,7 @@"extendParams.title": "Recursos Estendidos do Modelo","extendParams.urlContext.desc": "Quando ativado, links da web serão automaticamente analisados para recuperar o conteúdo real da página","extendParams.urlContext.title": "Extrair Conteúdo de Links da Web",+ "followUpPlaceholder": "Acompanhar. Use @ para atribuir tarefas a outros agentes.","group.desc": "Avance em uma tarefa com vários Agentes em um espaço compartilhado.","group.memberTooltip": "Há {{count}} membros no grupo","group.orchestratorThinking": "Orquestrador está pensando...",@@ -123,9 +136,9 @@"groupWizard.searchTemplates": "Buscar modelos...","groupWizard.title": "Criar Grupo","groupWizard.useTemplate": "Usar Modelo",- "heteroAgent.fullAccess.label": "Acesso completo",- "heteroAgent.fullAccess.tooltip": "O Claude Code é executado localmente com acesso total de leitura e escrita ao diretório de trabalho. A troca de modos de permissão ainda não está disponível.",- "heteroAgent.resumeReset.cwdChanged": "O diretório de trabalho foi alterado. A sessão anterior do Claude Code só pode ser retomada a partir do diretório original, portanto uma nova conversa foi iniciada.",+ "heteroAgent.fullAccess.label": "Acesso total",+ "heteroAgent.fullAccess.tooltip": "Claude Code é executado localmente com acesso completo de leitura/gravação ao diretório de trabalho. A troca de modos de permissão ainda não está disponível.",+ "heteroAgent.resumeReset.cwdChanged": "Diretório de trabalho alterado. A sessão anterior do Claude Code só pode ser retomada a partir do diretório original, então uma nova conversa foi iniciada.","heteroAgent.switchCwd.cancel": "Cancelar","heteroAgent.switchCwd.content": "As sessões do Claude Code são vinculadas a um diretório de trabalho. Alterá-lo iniciará uma nova sessão para este tópico — as mensagens permanecem, mas o contexto da sessão anterior não poderá ser retomado.","heteroAgent.switchCwd.ok": "Mudar e iniciar nova sessão",@@ -141,7 +154,7 @@"input.addUser": "Adicionar mensagem de usuário","input.disclaimer": "Agentes podem cometer erros. Use seu julgamento para informações críticas.","input.errorMsg": "Falha ao enviar: {{errorMsg}}. Tente novamente ou envie mais tarde.",- "input.more": "mais",+ "input.more": "Mais","input.send": "Enviar","input.sendWithCmdEnter": "Pressione <key/> para enviar","input.sendWithEnter": "Pressione <key/> para enviar",@@ -243,8 +256,9 @@"operation.contextCompression": "Contexto muito longo, comprimindo o histórico...","operation.execAgentRuntime": "Preparando resposta","operation.execClientTask": "Executando tarefa",- "operation.execHeterogeneousAgent": "Agente externo em execução",- "operation.execServerAgentRuntime": "Executando… Você pode mudar de tarefa ou fechar a página — a tarefa continuará em andamento.",+ "operation.execHeterogeneousAgent": "{{name}} está em execução",+ "operation.execServerAgentRuntime": "Em execução… Você pode trocar de tarefa ou fechar a página — a tarefa continuará.",+ "operation.heterogeneousAgentFallback": "Agente externo","operation.sendMessage": "Enviando mensagem","owner": "Proprietário do Grupo","pageCopilot.title": "Agente da Página",@@ -285,6 +299,8 @@"searchAgents": "Buscar agentes...","selectedAgents": "Agentes selecionados","sendPlaceholder": "Pergunte, crie ou inicie uma tarefa, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Peça ao {{name}} para executar uma tarefa...",+ "sendPlaceholderWithAgentAssignment": "Pergunte, crie ou inicie uma tarefa. Use @ para atribuir tarefas a outros agentes.","sessionGroup.config": "Gerenciamento de Grupo","sessionGroup.confirmRemoveGroupAlert": "Este grupo será excluído. Após a exclusão, os agentes serão movidos para a lista padrão. Confirme sua ação.","sessionGroup.createAgentSuccess": "Agente criado com sucesso",@@ -378,6 +394,7 @@"tab.integration": "Integração","tab.profile": "Perfil do Agente","tab.search": "Buscar",+ "tab.tasks": "Tarefas","task.activity.calling": "Chamando Habilidade...","task.activity.clientExecuting": "Executando localmente...","task.activity.generating": "Gerando resposta...",@@ -399,7 +416,111 @@"task.status.initializing": "Inicializando tarefa...","task.subtask": "Subtarefa","task.title": "Tarefas",+ "taskDetail.activities": "Atividades",+ "taskDetail.activities.agentTag": "Agente",+ "taskDetail.activities.fallback.brief": "publicou um briefing",+ "taskDetail.activities.fallback.comment": "deixou um comentário",+ "taskDetail.activities.fallback.created": "criou a tarefa",+ "taskDetail.activities.fallback.topic": "iniciou um tópico",+ "taskDetail.activitiesEmpty": "Nenhuma atividade ainda",+ "taskDetail.addSubtask": "Adicionar subtarefa",+ "taskDetail.blockedBy": "Bloqueado por {{id}}",+ "taskDetail.comment.cancel": "Cancelar",+ "taskDetail.comment.delete": "Excluir",+ "taskDetail.comment.deleteConfirm.content": "Este comentário será removido permanentemente.",+ "taskDetail.comment.deleteConfirm.ok": "Excluir",+ "taskDetail.comment.deleteConfirm.title": "Excluir este comentário?",+ "taskDetail.comment.edit": "Editar",+ "taskDetail.comment.save": "Salvar",+ "taskDetail.commentPlaceholder": "Deixe um comentário...",+ "taskDetail.deleteConfirm.content": "Essa ação não pode ser desfeita.",+ "taskDetail.deleteConfirm.ok": "Excluir",+ "taskDetail.deleteConfirm.title": "Excluir esta tarefa?",+ "taskDetail.instruction": "Instrução",+ "taskDetail.instructionPlaceholder": "Clique para editar as instruções da tarefa...",+ "taskDetail.latestActivity.brief": "Briefing: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Briefing",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Briefing ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Briefing ({{type}})",+ "taskDetail.latestActivity.topic": "Tópico: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Tópico nº {{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Tópico sem título",+ "taskDetail.modelConfig": "Substituição de modelo",+ "taskDetail.navigation": "Navegação",+ "taskDetail.pauseTask": "Pausar tarefa",+ "taskDetail.priority.high": "Alta",+ "taskDetail.priority.low": "Baixa",+ "taskDetail.priority.none": "Sem prioridade",+ "taskDetail.priority.normal": "Normal",+ "taskDetail.priority.urgent": "Urgente",+ "taskDetail.properties": "Propriedades",+ "taskDetail.reassignDisabled": "Não é possível reatribuir o agente enquanto a tarefa está em execução",+ "taskDetail.rerunTask": "Executar tarefa novamente",+ "taskDetail.runTask": "Executar tarefa",+ "taskDetail.saveModelConfig": "Salvar",+ "taskDetail.status.backlog": "Backlog",+ "taskDetail.status.canceled": "Cancelada",+ "taskDetail.status.completed": "Concluída",+ "taskDetail.status.failed": "Falhou",+ "taskDetail.status.paused": "Pausada",+ "taskDetail.status.running": "Em andamento",+ "taskDetail.stopTask": "Parar tarefa",+ "taskDetail.subIssueOf": "Subtarefa de",+ "taskDetail.subtaskInstructionPlaceholder": "Descreva a subtarefa...",+ "taskDetail.subtasks": "Subtarefas",+ "taskDetail.titlePlaceholder": "Digite o título da tarefa...",+ "taskDetail.topicDrawer.untitled": "Sem título",+ "taskDetail.updateFailed": "Falha ao atualizar a tarefa",+ "taskList.activeTasks": "Tarefas Ativas",+ "taskList.all": "Todas as tarefas",+ "taskList.breadcrumb.task": "Tarefa",+ "taskList.empty": "Nenhuma tarefa ainda",+ "taskList.form.grouping": "Agrupamento",+ "taskList.form.orderCompletedByRecency": "Ordenar concluídas por recente",+ "taskList.form.ordering": "Ordenação",+ "taskList.form.subGrouping": "Subagrupamento",+ "taskList.groupBy.assignee": "Responsável",+ "taskList.groupBy.none": "Sem agrupamento",+ "taskList.groupBy.priority": "Prioridade",+ "taskList.groupBy.status": "Status",+ "taskList.orderBy.assignee": "Responsável",+ "taskList.orderBy.createdAt": "Criadas em",+ "taskList.orderBy.priority": "Prioridade",+ "taskList.orderBy.status": "Status",+ "taskList.orderBy.title": "Título",+ "taskList.orderBy.updatedAt": "Atualizadas em",+ "taskList.title": "Tarefas",+ "taskList.unassigned": "Sem responsável",+ "taskList.view.board": "Quadro",+ "taskList.view.list": "Lista",+ "taskList.viewAll": "Ver tudo",+ "taskSchedule.clear": "Limpar",+ "taskSchedule.enable": "Ativar automação",+ "taskSchedule.every": "A cada",+ "taskSchedule.hours": "Horas",+ "taskSchedule.interval": "Recorrente",+ "taskSchedule.intervalTab": "Recorrente",+ "taskSchedule.minutes": "Minutos",+ "taskSchedule.scheduler": "Agendador",+ "taskSchedule.schedulerNotReady": "O agendador estará disponível em breve. Use Recorrente por enquanto.",+ "taskSchedule.schedulerTab": "Agendador",+ "taskSchedule.seconds": "Segundos",+ "taskSchedule.tag.add": "Definir agenda",+ "taskSchedule.tag.every": "a cada {{interval}}",+ "taskSchedule.tag.heartbeat": "Pulso · {{every}}",+ "taskSchedule.tag.schedule": "Agenda · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Agenda",+ "taskSchedule.unit.hour_one": "{{count}} hora",+ "taskSchedule.unit.hour_other": "{{count}} horas",+ "taskSchedule.unit.minute_one": "{{count}} minuto",+ "taskSchedule.unit.minute_other": "{{count}} minutos",+ "taskSchedule.unit.second_one": "{{count}} segundo",+ "taskSchedule.unit.second_other": "{{count}} segundos",+ "thread.closeSubagentThread": "Recolher conversa do subagente","thread.divider": "Subtópico",+ "thread.openSubagentThread": "Ver conversa completa do subagente",+ "thread.subagentBadge": "Subagente","thread.threadMessageCount": "{{messageCount}} mensagens","thread.title": "Subtópico","todoProgress.allCompleted": "Todas as tarefas concluídas",@@ -429,12 +550,12 @@"tool.intervention.mode.manual": "Manual","tool.intervention.mode.manualDesc": "Requer aprovação manual para cada execução","tool.intervention.onboarding.agentIdentity.applyHint": "A nova identidade aparecerá após a aprovação.",- "tool.intervention.onboarding.agentIdentity.description": "A aprovação desta alteração atualiza o Agente exibido na Caixa de Entrada e nesta conversa de onboarding.",+ "tool.intervention.onboarding.agentIdentity.description": "Aprovar essa alteração atualiza o Agente exibido na Caixa de Entrada e nesta conversa de onboarding.","tool.intervention.onboarding.agentIdentity.emoji": "Avatar do agente","tool.intervention.onboarding.agentIdentity.eyebrow": "Aprovação de onboarding","tool.intervention.onboarding.agentIdentity.name": "Nome do agente","tool.intervention.onboarding.agentIdentity.targetInbox": "Agente da Caixa de Entrada",- "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Agente de onboarding atual",+ "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Agente atual de onboarding","tool.intervention.onboarding.agentIdentity.targets": "Aplica-se a","tool.intervention.onboarding.agentIdentity.title": "Confirmar atualização de identidade do agente","tool.intervention.pending": "Pendente",@@ -486,10 +607,10 @@"viewMode.wideScreen": "Tela Larga","workflow.awaitingConfirmation": "Aguardando sua confirmação","workflow.collapse": "Recolher",- "workflow.expandFull": "Expandir completamente",+ "workflow.expandFull": "Expandir totalmente","workflow.failedSuffix": "(falhou)",- "workflow.summaryFailed": "{{count}} falhou",- "workflow.summaryMoreTools": "+{{count}} mais",+ "workflow.summaryFailed": "{{count}} falharam",+ "workflow.summaryMoreTools": "{{count}} tipos de ferramentas","workflow.summaryTotalCalls": "{{count}} chamadas no total","workflow.thoughtForDuration": "Refletiu por {{duration}}","workflow.toolDisplayName.activateDevice": "Dispositivo ativado",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Nenhum documento ainda. Documentos associados a este agente aparecerão aqui.",+ "workingPanel.resources.empty": "Nenhum documento ainda. Os documentos associados a este agente aparecerão aqui.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Todos","workingPanel.resources.filter.documents": "Documentos",@@ -593,8 +714,8 @@"workingPanel.resources.renameEmpty": "Title cannot be empty","workingPanel.resources.renameError": "Failed to rename document","workingPanel.resources.renameSuccess": "Document renamed",- "workingPanel.resources.viewMode.list": "Visualização em lista",- "workingPanel.resources.viewMode.tree": "Visualização em árvore",+ "workingPanel.resources.viewMode.list": "Modo lista",+ "workingPanel.resources.viewMode.tree": "Modo árvore","workingPanel.title": "Working Panel","you": "Você","zenMode": "Modo Zen"diff --git a/locales/pt-BR/home.json b/locales/pt-BR/home.jsonindex 0058b3ec533..5019a1545ad 100644--- a/locales/pt-BR/home.json+++ b/locales/pt-BR/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Nenhum agente pode ser adicionado no momento","agentSelection.noSelected": "Nenhum agente selecionado","agentSelection.search": "Nenhum agente correspondente encontrado",+ "brief.action.acknowledge": "Reconhecer",+ "brief.action.approve": "Aprovar",+ "brief.action.feedback": "Feedback",+ "brief.action.retry": "Tentar novamente",+ "brief.addFeedback": "Compartilhar feedback",+ "brief.collapse": "Mostrar menos",+ "brief.commentPlaceholder": "Compartilhe seu feedback...",+ "brief.commentSubmit": "Enviar feedback",+ "brief.expandAll": "Mostrar mais",+ "brief.feedbackSent": "Feedback enviado",+ "brief.resolved": "Marcado como resolvido",+ "brief.title": "Resumo diário",+ "brief.viewAllTasks": "Ver todas as tarefas","project.create": "Novo projeto","project.deleteConfirm": "Este projeto será excluído e não poderá ser recuperado. Confirme para continuar.","starter.createAgent": "Criar Agente",diff --git a/locales/pt-BR/plugin.json b/locales/pt-BR/plugin.jsonindex ec1fb4e2cf3..ebe44c85af3 100644--- a/locales/pt-BR/plugin.json+++ b/locales/pt-BR/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Plugin","builtins.lobe-agent-management.render.installPlugin.success": "Instalado com sucesso","builtins.lobe-agent-management.title": "Gerenciador de Agentes",+ "builtins.lobe-claude-code.agent.instruction": "Instrução",+ "builtins.lobe-claude-code.agent.result": "Resultado","builtins.lobe-claude-code.todoWrite.allDone": "Todas as tarefas concluídas","builtins.lobe-claude-code.todoWrite.currentStep": "Etapa atual","builtins.lobe-claude-code.todoWrite.todos": "Tarefas",diff --git a/locales/pt-BR/topic.json b/locales/pt-BR/topic.jsonindex 52aa0958f80..b6cbe3a8352 100644--- a/locales/pt-BR/topic.json+++ b/locales/pt-BR/topic.json@@ -15,20 +15,24 @@"actions.export": "Exportar Tópicos","actions.favorite": "Favoritar","actions.import": "Importar Conversa",+ "actions.markCompleted": "Marcar como Concluída","actions.openInNewTab": "Abrir em Nova Aba","actions.openInNewWindow": "Abrir em nova janela","actions.removeAll": "Excluir Todos os Tópicos","actions.removeUnstarred": "Excluir Tópicos Não Favoritados","actions.unfavorite": "Desfavoritar",+ "actions.unmarkCompleted": "Marcar como Ativa","defaultTitle": "Tópico Padrão","displayItems": "Exibir Itens","duplicateLoading": "Copiando Tópico...","duplicateSuccess": "Tópico Copiado com Sucesso","favorite": "Favorito",+ "filter.filter": "Filtrar","filter.groupMode.byProject": "Por projeto","filter.groupMode.byTime": "Por tempo","filter.groupMode.flat": "Sem agrupamento","filter.organize": "Organizar",+ "filter.showCompleted": "Incluir Concluídas","filter.sort": "Ordenar por","filter.sortBy.createdAt": "Data de criação","filter.sortBy.updatedAt": "Data de atualização",@@ -52,6 +56,7 @@"renameModal.title": "Renomear tópico","searchPlaceholder": "Buscar Tópicos...","searchResultEmpty": "Nenhum resultado encontrado.",+ "taskManager.welcome": "Pergunte-me sobre suas tarefas","temp": "Temporário","title": "Tópico"}diff --git a/locales/ru-RU/auth.json b/locales/ru-RU/auth.jsonindex 2c36884ae84..52482afee08 100644--- a/locales/ru-RU/auth.json+++ b/locales/ru-RU/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Сбросить пароль","profile.email": "Email","profile.emailChangeSuccess": "Письмо с подтверждением отправлено. Пожалуйста, проверьте ваш новый почтовый ящик.",- "profile.emailInputHint": "Введите ваш новый адрес электронной почты","profile.emailInvalid": "Пожалуйста, введите действительный адрес электронной почты","profile.emailPlaceholder": "[email protected]","profile.fullName": "Полное имя",diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.jsonindex bfdcf09960c..a207e83eacc 100644--- a/locales/ru-RU/chat.json+++ b/locales/ru-RU/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Привет, я **{{name}}**. Одного предложения достаточно.\n\nХотите, чтобы я лучше соответствовал вашему рабочему процессу? Перейдите в [Настройки агента]({{url}}) и заполните профиль агента (вы можете изменить его в любое время).","agentDefaultMessageWithSystemRole": "Привет, я **{{name}}**. Одного предложения достаточно — вы управляете процессом.","agentDefaultMessageWithoutEdit": "Привет, я **{{name}}**. Одного предложения достаточно — вы управляете процессом.",+ "agentProfile.files_one": "{{count}} файл",+ "agentProfile.files_other": "{{count}} файлов",+ "agentProfile.knowledgeBases_one": "{{count}} база знаний",+ "agentProfile.knowledgeBases_other": "{{count}} базы знаний",+ "agentProfile.skills_one": "{{count}} навык",+ "agentProfile.skills_other": "{{count}} навыков","agents": "Агенты","artifact.generating": "Генерация","artifact.inThread": "Невозможно просмотреть в подтеме, пожалуйста, переключитесь в основную область беседы",@@ -47,6 +53,12 @@"createModal.groupTitle": "Что должна делать ваша группа?","createModal.placeholder": "Опишите, что должен делать ваш агент...","createModal.title": "Что должен делать ваш агент?",+ "createTask.assignee": "Исполнитель",+ "createTask.collapse": "Скрыть ввод",+ "createTask.expandToInline": "Закрепить на странице",+ "createTask.instructionPlaceholder": "Добавить описание...",+ "createTask.submit": "Создать задачу",+ "createTask.titlePlaceholder": "Название задачи","defaultAgent": "Агент по умолчанию","defaultGroupChat": "Группа","defaultList": "Список по умолчанию",@@ -82,6 +94,7 @@"extendParams.title": "Расширенные функции модели","extendParams.urlContext.desc": "При включении веб-ссылки будут автоматически анализироваться для извлечения содержимого страницы","extendParams.urlContext.title": "Извлекать содержимое веб-ссылок",+ "followUpPlaceholder": "Продолжение. Используйте @, чтобы назначать задачи другим агентам.","group.desc": "Продвигайте задачу с помощью нескольких агентов в общем пространстве.","group.memberTooltip": "В группе {{count}} участников","group.orchestratorThinking": "Оркестратор обдумывает...",@@ -124,12 +137,12 @@"groupWizard.title": "Создать группу","groupWizard.useTemplate": "Использовать шаблон","heteroAgent.fullAccess.label": "Полный доступ",- "heteroAgent.fullAccess.tooltip": "Claude Code работает локально с полным доступом на чтение и запись в рабочий каталог. Переключение режимов доступа пока недоступно.",- "heteroAgent.resumeReset.cwdChanged": "Рабочий каталог изменён. Предыдущий сеанс Claude Code можно возобновить только из исходного каталога, поэтому начат новый разговор.",+ "heteroAgent.fullAccess.tooltip": "Claude Code работает локально с полными правами на чтение и запись в рабочей директории. Переключение режимов доступа пока недоступно.",+ "heteroAgent.resumeReset.cwdChanged": "Рабочая директория изменена. Предыдущую сессию Claude Code можно продолжить только из исходной директории, поэтому начат новый диалог.","heteroAgent.switchCwd.cancel": "Отмена",- "heteroAgent.switchCwd.content": "Сеансы Claude Code привязаны к рабочему каталогу. Переключение запустит новый сеанс для этой темы — сообщения чата сохранятся, но контекст предыдущего сеанса не будет восстановлен.",- "heteroAgent.switchCwd.ok": "Переключить и начать новый сеанс",- "heteroAgent.switchCwd.title": "Переключить рабочий каталог?",+ "heteroAgent.switchCwd.content": "Сессии Claude Code привязаны к рабочей директории. При переключении начнётся новая сессия для этой темы — сообщения чата сохранятся, но контекст предыдущей сессии восстановить невозможно.",+ "heteroAgent.switchCwd.ok": "Переключить и начать новую сессию",+ "heteroAgent.switchCwd.title": "Переключить рабочую директорию?","hideForYou": "Содержимое личного сообщения скрыто. Включите «Показывать содержимое личных сообщений» в настройках, чтобы просмотреть.","history.title": "Агент будет хранить только последние {{count}} сообщений.","historyRange": "Диапазон истории",@@ -141,7 +154,7 @@"input.addUser": "Добавить сообщение пользователя","input.disclaimer": "Агенты могут ошибаться. Используйте собственное суждение для критически важной информации.","input.errorMsg": "Не удалось отправить: {{errorMsg}}. Повторите попытку позже.",- "input.more": "ещё",+ "input.more": "Ещё","input.send": "Отправить","input.sendWithCmdEnter": "Нажмите <key/>, чтобы отправить","input.sendWithEnter": "Нажмите <key/>, чтобы отправить",@@ -224,7 +237,7 @@"messages.tokenDetails.speed.ttft.tooltip": "Время до первого токена (TTFT) — интервал между отправкой сообщения и получением первого токена.","messages.tokenDetails.title": "Детали генерации","messages.tokenDetails.total": "Общее потребление",- "minimap.emptyPreview": "(Нет текстового содержимого)",+ "minimap.emptyPreview": "(Нет текста)","minimap.jumpToMessage": "Перейти к сообщению {{index}}","minimap.nextMessage": "Следующее сообщение","minimap.previousMessage": "Предыдущее сообщение",@@ -243,8 +256,9 @@"operation.contextCompression": "Контекст слишком длинный, выполняется сжатие истории...","operation.execAgentRuntime": "Подготовка ответа","operation.execClientTask": "Выполнение задачи",- "operation.execHeterogeneousAgent": "Запущен внешний агент",- "operation.execServerAgentRuntime": "Выполняется… Вы можете переключиться на другие задачи или закрыть страницу — задача продолжит выполняться.",+ "operation.execHeterogeneousAgent": "{{name}} выполняется",+ "operation.execServerAgentRuntime": "Выполняется… Вы можете переключиться на другие задачи или закрыть страницу — выполнение продолжится.",+ "operation.heterogeneousAgentFallback": "Внешний агент","operation.sendMessage": "Отправка сообщения","owner": "Владелец группы","pageCopilot.title": "Агент страницы",@@ -285,6 +299,8 @@"searchAgents": "Поиск агентов...","selectedAgents": "Выбранные агенты","sendPlaceholder": "Спросите, создайте или начните задачу, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Попросите {{name}} выполнить задачу...",+ "sendPlaceholderWithAgentAssignment": "Спросите, создайте или начните задачу. Используйте @, чтобы назначать задачи другим агентам.","sessionGroup.config": "Управление группой","sessionGroup.confirmRemoveGroupAlert": "Эта группа будет удалена. После удаления агенты будут перемещены в список по умолчанию. Подтвердите действие.","sessionGroup.createAgentSuccess": "Агент успешно создан",@@ -378,6 +394,7 @@"tab.integration": "Интеграция","tab.profile": "Профиль агента","tab.search": "Поиск",+ "tab.tasks": "Задачи","task.activity.calling": "Вызов навыка...","task.activity.clientExecuting": "Выполняется локально...","task.activity.generating": "Генерация ответа...",@@ -399,7 +416,111 @@"task.status.initializing": "Инициализация задачи...","task.subtask": "Подзадача","task.title": "Задачи",+ "taskDetail.activities": "Активность",+ "taskDetail.activities.agentTag": "Агент",+ "taskDetail.activities.fallback.brief": "опубликовал(а) краткое описание",+ "taskDetail.activities.fallback.comment": "оставил(а) комментарий",+ "taskDetail.activities.fallback.created": "создал(а) задачу",+ "taskDetail.activities.fallback.topic": "создал(а) тему",+ "taskDetail.activitiesEmpty": "Активности пока нет",+ "taskDetail.addSubtask": "Добавить подзадачу",+ "taskDetail.blockedBy": "Заблокировано {{id}}",+ "taskDetail.comment.cancel": "Отмена",+ "taskDetail.comment.delete": "Удалить",+ "taskDetail.comment.deleteConfirm.content": "Этот комментарий будет навсегда удалён.",+ "taskDetail.comment.deleteConfirm.ok": "Удалить",+ "taskDetail.comment.deleteConfirm.title": "Удалить этот комментарий?",+ "taskDetail.comment.edit": "Редактировать",+ "taskDetail.comment.save": "Сохранить",+ "taskDetail.commentPlaceholder": "Оставьте комментарий...",+ "taskDetail.deleteConfirm.content": "Это действие нельзя отменить.",+ "taskDetail.deleteConfirm.ok": "Удалить",+ "taskDetail.deleteConfirm.title": "Удалить эту задачу?",+ "taskDetail.instruction": "Инструкция",+ "taskDetail.instructionPlaceholder": "Нажмите, чтобы отредактировать инструкцию...",+ "taskDetail.latestActivity.brief": "Краткое описание: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Краткое описание",+ "taskDetail.latestActivity.briefWithAction": "{{title}} — {{action}}",+ "taskDetail.latestActivity.briefWithType": "Краткое описание ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Краткое описание ({{type}})",+ "taskDetail.latestActivity.topic": "Тема: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Тема №{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Тема без названия",+ "taskDetail.modelConfig": "Переопределение модели",+ "taskDetail.navigation": "Навигация",+ "taskDetail.pauseTask": "Пауза",+ "taskDetail.priority.high": "Высокий",+ "taskDetail.priority.low": "Низкий",+ "taskDetail.priority.none": "Без приоритета",+ "taskDetail.priority.normal": "Обычный",+ "taskDetail.priority.urgent": "Срочный",+ "taskDetail.properties": "Свойства",+ "taskDetail.reassignDisabled": "Нельзя переназначить агента, пока задача выполняется",+ "taskDetail.rerunTask": "Перезапустить задачу",+ "taskDetail.runTask": "Запустить задачу",+ "taskDetail.saveModelConfig": "Сохранить",+ "taskDetail.status.backlog": "В планах",+ "taskDetail.status.canceled": "Отменено",+ "taskDetail.status.completed": "Завершено",+ "taskDetail.status.failed": "Не выполнено",+ "taskDetail.status.paused": "Приостановлено",+ "taskDetail.status.running": "В процессе",+ "taskDetail.stopTask": "Остановить задачу",+ "taskDetail.subIssueOf": "Подзадача для",+ "taskDetail.subtaskInstructionPlaceholder": "Опишите подзадачу...",+ "taskDetail.subtasks": "Подзадачи",+ "taskDetail.titlePlaceholder": "Введите название задачи...",+ "taskDetail.topicDrawer.untitled": "Без названия",+ "taskDetail.updateFailed": "Не удалось обновить задачу",+ "taskList.activeTasks": "Активные задачи",+ "taskList.all": "Все задачи",+ "taskList.breadcrumb.task": "Задача",+ "taskList.empty": "Задач пока нет",+ "taskList.form.grouping": "Группировка",+ "taskList.form.orderCompletedByRecency": "Сортировать выполненные по давности",+ "taskList.form.ordering": "Сортировка",+ "taskList.form.subGrouping": "Доп. группировка",+ "taskList.groupBy.assignee": "Исполнитель",+ "taskList.groupBy.none": "Без группировки",+ "taskList.groupBy.priority": "По приоритету",+ "taskList.groupBy.status": "По статусу",+ "taskList.orderBy.assignee": "Исполнитель",+ "taskList.orderBy.createdAt": "Дата создания",+ "taskList.orderBy.priority": "Приоритет",+ "taskList.orderBy.status": "Статус",+ "taskList.orderBy.title": "Название",+ "taskList.orderBy.updatedAt": "Дата обновления",+ "taskList.title": "Задачи",+ "taskList.unassigned": "Не назначено",+ "taskList.view.board": "Доска",+ "taskList.view.list": "Список",+ "taskList.viewAll": "Посмотреть все",+ "taskSchedule.clear": "Очистить",+ "taskSchedule.enable": "Включить автоматизацию",+ "taskSchedule.every": "Каждые",+ "taskSchedule.hours": "Часы",+ "taskSchedule.interval": "Повтор",+ "taskSchedule.intervalTab": "Повтор",+ "taskSchedule.minutes": "Минуты",+ "taskSchedule.scheduler": "Планировщик",+ "taskSchedule.schedulerNotReady": "Планировщик скоро появится. Пока используйте режим Повтора.",+ "taskSchedule.schedulerTab": "Планировщик",+ "taskSchedule.seconds": "Секунды",+ "taskSchedule.tag.add": "Установить расписание",+ "taskSchedule.tag.every": "каждые {{interval}}",+ "taskSchedule.tag.heartbeat": "Интервал · {{every}}",+ "taskSchedule.tag.schedule": "Расписание · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Расписание",+ "taskSchedule.unit.hour_one": "{{count}} час",+ "taskSchedule.unit.hour_other": "{{count}} часов",+ "taskSchedule.unit.minute_one": "{{count}} минута",+ "taskSchedule.unit.minute_other": "{{count}} минут",+ "taskSchedule.unit.second_one": "{{count}} секунда",+ "taskSchedule.unit.second_other": "{{count}} секунд",+ "thread.closeSubagentThread": "Свернуть диалог с субагентом","thread.divider": "Подтема",+ "thread.openSubagentThread": "Показать весь диалог с субагентом",+ "thread.subagentBadge": "Субагент","thread.threadMessageCount": "{{messageCount}} сообщений","thread.title": "Подтема","todoProgress.allCompleted": "Все задачи выполнены",@@ -428,15 +549,15 @@"tool.intervention.mode.autoRunDesc": "Автоматически одобрять все вызовы инструментов","tool.intervention.mode.manual": "Вручную","tool.intervention.mode.manualDesc": "Требуется ручное одобрение каждого вызова",- "tool.intervention.onboarding.agentIdentity.applyHint": "Новая идентичность появится после подтверждения.",- "tool.intervention.onboarding.agentIdentity.description": "Подтверждение этого изменения обновит Агент, отображаемый во входящих и в этом ознакомительном разговоре.",+ "tool.intervention.onboarding.agentIdentity.applyHint": "Новая личность появится после утверждения.",+ "tool.intervention.onboarding.agentIdentity.description": "После утверждения изменения обновят информацию об агенте, отображаемом во Входящих и в этом онбординговом диалоге.","tool.intervention.onboarding.agentIdentity.emoji": "Аватар агента",- "tool.intervention.onboarding.agentIdentity.eyebrow": "Подтверждение ознакомления",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "Подтверждение онбординга","tool.intervention.onboarding.agentIdentity.name": "Имя агента",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Агент во входящих",- "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Текущий агент ознакомления",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Агент во Входящих",+ "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Текущий онбординговый агент","tool.intervention.onboarding.agentIdentity.targets": "Применяется к",- "tool.intervention.onboarding.agentIdentity.title": "Подтвердить обновление идентичности агента",+ "tool.intervention.onboarding.agentIdentity.title": "Подтвердите обновление личности агента","tool.intervention.pending": "В ожидании","tool.intervention.reject": "Отклонить","tool.intervention.rejectAndContinue": "Отклонить и повторить",@@ -459,7 +580,7 @@"topic.openNewTopic": "Открыть новую тему","topic.recent": "Недавние темы","topic.saveCurrentMessages": "Сохранить текущую сессию как тему",- "topic.viewAll": "Показать все темы",+ "topic.viewAll": "Посмотреть все темы","translate.action": "Перевести","translate.clear": "Очистить перевод","tts.action": "Озвучить текст",@@ -484,12 +605,12 @@"viewMode.fullWidth": "Полная ширина","viewMode.normal": "Стандартный","viewMode.wideScreen": "Широкий экран",- "workflow.awaitingConfirmation": "Ожидает вашего подтверждения",+ "workflow.awaitingConfirmation": "Ожидается ваше подтверждение","workflow.collapse": "Свернуть","workflow.expandFull": "Развернуть полностью","workflow.failedSuffix": "(сбой)",- "workflow.summaryFailed": "{{count}} не выполнено",- "workflow.summaryMoreTools": "+{{count}} ещё",+ "workflow.summaryFailed": "Ошибок: {{count}}",+ "workflow.summaryMoreTools": "Типов инструментов: {{count}}","workflow.summaryTotalCalls": "Всего вызовов: {{count}}","workflow.thoughtForDuration": "Размышлял в течение {{duration}}","workflow.toolDisplayName.activateDevice": "Активированное устройство",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Документов пока нет. Здесь будут отображаться документы, связанные с этим агентом.",+ "workingPanel.resources.empty": "Пока нет документов. Здесь появятся документы, связанные с этим агентом.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Все","workingPanel.resources.filter.documents": "Документы",@@ -593,8 +714,8 @@"workingPanel.resources.renameEmpty": "Title cannot be empty","workingPanel.resources.renameError": "Failed to rename document","workingPanel.resources.renameSuccess": "Document renamed",- "workingPanel.resources.viewMode.list": "В виде списка",- "workingPanel.resources.viewMode.tree": "Древовидный вид",+ "workingPanel.resources.viewMode.list": "Список",+ "workingPanel.resources.viewMode.tree": "Дерево","workingPanel.title": "Working Panel","you": "Вы","zenMode": "Режим дзен"diff --git a/locales/ru-RU/home.json b/locales/ru-RU/home.jsonindex 01e8a8b6ca1..46dda962da0 100644--- a/locales/ru-RU/home.json+++ b/locales/ru-RU/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "В данный момент нельзя добавить агентов","agentSelection.noSelected": "Агенты не выбраны","agentSelection.search": "Совпадающих агентов не найдено",+ "brief.action.acknowledge": "Подтвердить",+ "brief.action.approve": "Одобрить",+ "brief.action.feedback": "Отзыв",+ "brief.action.retry": "Повторить",+ "brief.addFeedback": "Оставить отзыв",+ "brief.collapse": "Показать меньше",+ "brief.commentPlaceholder": "Поделитесь своим отзывом...",+ "brief.commentSubmit": "Отправить отзыв",+ "brief.expandAll": "Показать больше",+ "brief.feedbackSent": "Отзыв отправлен",+ "brief.resolved": "Отмечено как решённое",+ "brief.title": "Ежедневная сводка",+ "brief.viewAllTasks": "Просмотреть все задачи","project.create": "Новый проект",- "project.deleteConfirm": "Этот проект будет удалён и не подлежит восстановлению. Подтвердите, чтобы продолжить.",+ "project.deleteConfirm": "Этот проект будет удален и не может быть восстановлен. Подтвердите, чтобы продолжить.","starter.createAgent": "Создать агента","starter.createGroup": "Создать группу","starter.deepResearch": "Глубокое исследование",diff --git a/locales/ru-RU/plugin.json b/locales/ru-RU/plugin.jsonindex 41c51b6dd46..dc4ccbe4bc0 100644--- a/locales/ru-RU/plugin.json+++ b/locales/ru-RU/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Плагин","builtins.lobe-agent-management.render.installPlugin.success": "Успешно установлено","builtins.lobe-agent-management.title": "Менеджер агентов",+ "builtins.lobe-claude-code.agent.instruction": "Инструкция",+ "builtins.lobe-claude-code.agent.result": "Результат","builtins.lobe-claude-code.todoWrite.allDone": "Все задачи выполнены","builtins.lobe-claude-code.todoWrite.currentStep": "Текущий шаг","builtins.lobe-claude-code.todoWrite.todos": "Задачи",diff --git a/locales/ru-RU/topic.json b/locales/ru-RU/topic.jsonindex 94244c6b5fa..feb7d38a23f 100644--- a/locales/ru-RU/topic.json+++ b/locales/ru-RU/topic.json@@ -15,20 +15,24 @@"actions.export": "Экспорт тем","actions.favorite": "Избранное","actions.import": "Импорт беседы",+ "actions.markCompleted": "Отметить как выполнено","actions.openInNewTab": "Открыть в новой вкладке","actions.openInNewWindow": "Открыть в новом окне","actions.removeAll": "Удалить все темы","actions.removeUnstarred": "Удалить неотмеченные темы","actions.unfavorite": "Удалить из избранного",+ "actions.unmarkCompleted": "Отметить как активное","defaultTitle": "Тема по умолчанию","displayItems": "Отображаемые элементы","duplicateLoading": "Копирование темы...","duplicateSuccess": "Тема успешно скопирована","favorite": "Избранное",+ "filter.filter": "Фильтр","filter.groupMode.byProject": "По проекту","filter.groupMode.byTime": "По времени","filter.groupMode.flat": "Без группировки","filter.organize": "Упорядочить",+ "filter.showCompleted": "Показывать выполненные","filter.sort": "Сортировать по","filter.sortBy.createdAt": "Времени создания","filter.sortBy.updatedAt": "Времени обновления",@@ -52,6 +56,7 @@"renameModal.title": "Переименовать тему","searchPlaceholder": "Поиск тем...","searchResultEmpty": "Результаты не найдены.",+ "taskManager.welcome": "Спросите меня о ваших задачах","temp": "Временный","title": "Тема"}diff --git a/locales/tr-TR/auth.json b/locales/tr-TR/auth.jsonindex abe3a6f9821..de8316b80fa 100644--- a/locales/tr-TR/auth.json+++ b/locales/tr-TR/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Şifreyi sıfırla","profile.email": "E-posta Adresi","profile.emailChangeSuccess": "Doğrulama e-postası gönderildi. Lütfen yeni e-posta gelen kutunuzu kontrol edin.",- "profile.emailInputHint": "Yeni e-posta adresinizi girin","profile.emailInvalid": "Lütfen geçerli bir e-posta adresi girin","profile.emailPlaceholder": "[email protected]","profile.fullName": "Tam Ad",diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.jsonindex 7eaad699ba1..98b6d06a918 100644--- a/locales/tr-TR/chat.json+++ b/locales/tr-TR/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Merhaba, ben **{{name}}**. Bir cümle yeterli.\n\nİş akışına daha iyi uyum sağlamamı ister misin? [Ajan Ayarları]({{url}}) bölümüne gidip Ajan Profilini doldur (istediğin zaman düzenleyebilirsin).","agentDefaultMessageWithSystemRole": "Merhaba, ben **{{name}}**. Bir cümle yeterli—kontrol sende.","agentDefaultMessageWithoutEdit": "Merhaba, ben **{{name}}**. Bir cümle yeterli—kontrol sende.",+ "agentProfile.files_one": "{{count}} dosya",+ "agentProfile.files_other": "{{count}} dosya",+ "agentProfile.knowledgeBases_one": "{{count}} bilgi tabanı",+ "agentProfile.knowledgeBases_other": "{{count}} bilgi tabanı",+ "agentProfile.skills_one": "{{count}} beceri",+ "agentProfile.skills_other": "{{count}} beceri","agents": "Ajanlar","artifact.generating": "Oluşturuluyor","artifact.inThread": "Alt konuda görüntülenemez, açmak için ana konuşma alanına geçin",@@ -45,8 +51,14 @@"createModal.createBlank": "Boş Oluştur","createModal.groupPlaceholder": "Bu grubun ne yapması gerektiğini açıklayın...","createModal.groupTitle": "Grubunuz ne yapmalı?",- "createModal.placeholder": "Aracınızın ne yapması gerektiğini açıklayın...",- "createModal.title": "Aracınız ne yapmalı?",+ "createModal.placeholder": "Ajansınızın ne yapması gerektiğini açıklayın...",+ "createModal.title": "Ajansınız ne yapmalı?",+ "createTask.assignee": "Atanan",+ "createTask.collapse": "Girdiyi gizle",+ "createTask.expandToInline": "Sayfaya sabitle",+ "createTask.instructionPlaceholder": "Açıklama ekle...",+ "createTask.submit": "Görevi oluştur",+ "createTask.titlePlaceholder": "Görev başlığı","defaultAgent": "Varsayılan Ajan","defaultGroupChat": "Grup","defaultList": "Varsayılan Liste",@@ -82,6 +94,7 @@"extendParams.title": "Model Genişletme Özellikleri","extendParams.urlContext.desc": "Etkinleştirildiğinde, web bağlantıları otomatik olarak çözülerek gerçek sayfa içeriği alınır","extendParams.urlContext.title": "Web Sayfası Bağlantı İçeriğini Çıkar",+ "followUpPlaceholder": "Takip edin. Diğer ajanlara görev atamak için @ kullanın.","group.desc": "Birden fazla Ajanla ortak bir alanda görevleri ilerletin.","group.memberTooltip": "Grupta {{count}} üye var","group.orchestratorThinking": "Yönlendirici düşünüyor...",@@ -124,10 +137,10 @@"groupWizard.title": "Grup Oluştur","groupWizard.useTemplate": "Şablon Kullan","heteroAgent.fullAccess.label": "Tam erişim",- "heteroAgent.fullAccess.tooltip": "Claude Code, çalışma dizinine tam okuma/yazma erişimiyle yerel olarak çalışır. İzin modları arasında geçiş şu anda kullanılamıyor.",- "heteroAgent.resumeReset.cwdChanged": "Çalışma dizini değiştirildi. Önceki Claude Code oturumu yalnızca kendi dizininden devam ettirilebilir, bu nedenle yeni bir konuşma başlatıldı.",+ "heteroAgent.fullAccess.tooltip": "Claude Code yerel olarak çalışır ve çalışma dizinine tam okuma/yazma erişimi vardır. İzin modları arasında geçiş henüz mevcut değil.",+ "heteroAgent.resumeReset.cwdChanged": "Çalışma dizini değiştirildi. Önceki Claude Code oturumu yalnızca orijinal dizininden devam ettirilebilir, bu nedenle yeni bir konuşma başlatıldı.","heteroAgent.switchCwd.cancel": "İptal",- "heteroAgent.switchCwd.content": "Claude Code oturumları bir çalışma dizinine sabitlenir. Dizini değiştirmek bu konu için yeni bir oturum başlatır — sohbet mesajları kalır, ancak önceki oturum bağlamı devam ettirilemez.",+ "heteroAgent.switchCwd.content": "Claude Code oturumları bir çalışma dizinine sabitlenir. Değiştirmek bu konu için yeni bir oturum başlatır — sohbet mesajları kalır, ancak önceki oturum bağlamı sürdürülemez.","heteroAgent.switchCwd.ok": "Değiştir ve yeni oturum başlat","heteroAgent.switchCwd.title": "Çalışma dizini değiştirilsin mi?","hideForYou": "Özel mesaj içeriği gizli. Görüntülemek için ayarlardan 'Özel Mesaj İçeriğini Göster' seçeneğini etkinleştirin.",@@ -141,7 +154,7 @@"input.addUser": "Kullanıcı mesajı ekle","input.disclaimer": "Ajanlar hata yapabilir. Kritik bilgiler için kendi yargınızı kullanın.","input.errorMsg": "Gönderme başarısız: {{errorMsg}}. Tekrar deneyin veya daha sonra yeniden gönderin.",- "input.more": "daha fazla",+ "input.more": "Daha Fazla","input.send": "Gönder","input.sendWithCmdEnter": "Göndermek için <key/> tuşuna basın","input.sendWithEnter": "Göndermek için <key/> tuşuna basın",@@ -243,8 +256,9 @@"operation.contextCompression": "Bağlam çok uzun, geçmiş sıkıştırılıyor...","operation.execAgentRuntime": "Yanıt hazırlanıyor","operation.execClientTask": "Görev yürütülüyor",- "operation.execHeterogeneousAgent": "Harici ajan çalışıyor",+ "operation.execHeterogeneousAgent": "{{name}} çalışıyor","operation.execServerAgentRuntime": "Çalışıyor… Görev devam ederken sayfayı değiştirebilir veya kapatabilirsiniz.",+ "operation.heterogeneousAgentFallback": "Harici ajan","operation.sendMessage": "Mesaj gönderiliyor","owner": "Grup sahibi","pageCopilot.title": "Sayfa Ajanı",@@ -285,6 +299,8 @@"searchAgents": "Ajanları ara...","selectedAgents": "Seçilen ajanlar","sendPlaceholder": "Sor, oluştur veya bir görev başlat, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "{{name}}'den bir görev yapmasını isteyin...",+ "sendPlaceholderWithAgentAssignment": "Sorun, oluşturun veya bir görev başlatın. Diğer ajanlara görev atamak için @ kullanın.","sessionGroup.config": "Grup Yönetimi","sessionGroup.confirmRemoveGroupAlert": "Bu grup silinmek üzere. Silindikten sonra, bu gruptaki ajanlar varsayılan listeye taşınacaktır. Lütfen işlemi onaylayın.","sessionGroup.createAgentSuccess": "Ajan başarıyla oluşturuldu",@@ -378,6 +394,7 @@"tab.integration": "Entegrasyon","tab.profile": "Ajan Profili","tab.search": "Arama",+ "tab.tasks": "Görevler","task.activity.calling": "Yetenek çağrılıyor...","task.activity.clientExecuting": "Yerel olarak yürütülüyor...","task.activity.generating": "Yanıt oluşturuluyor...",@@ -399,7 +416,111 @@"task.status.initializing": "Görev başlatılıyor...","task.subtask": "Alt Görev","task.title": "Görevler",+ "taskDetail.activities": "Aktiviteler",+ "taskDetail.activities.agentTag": "Ajan",+ "taskDetail.activities.fallback.brief": "bir özet paylaştı",+ "taskDetail.activities.fallback.comment": "bir yorum bıraktı",+ "taskDetail.activities.fallback.created": "görevi oluşturdu",+ "taskDetail.activities.fallback.topic": "bir konu başlattı",+ "taskDetail.activitiesEmpty": "Henüz aktivite yok",+ "taskDetail.addSubtask": "Alt görev ekle",+ "taskDetail.blockedBy": "{{id}} tarafından engellendi",+ "taskDetail.comment.cancel": "İptal",+ "taskDetail.comment.delete": "Sil",+ "taskDetail.comment.deleteConfirm.content": "Bu yorum kalıcı olarak silinecek.",+ "taskDetail.comment.deleteConfirm.ok": "Sil",+ "taskDetail.comment.deleteConfirm.title": "Bu yorum silinsin mi?",+ "taskDetail.comment.edit": "Düzenle",+ "taskDetail.comment.save": "Kaydet",+ "taskDetail.commentPlaceholder": "Yorum bırakın...",+ "taskDetail.deleteConfirm.content": "Bu işlem geri alınamaz.",+ "taskDetail.deleteConfirm.ok": "Sil",+ "taskDetail.deleteConfirm.title": "Bu görevi silmek istiyor musunuz?",+ "taskDetail.instruction": "Talimat",+ "taskDetail.instructionPlaceholder": "Görev talimatlarını düzenlemek için tıklayın...",+ "taskDetail.latestActivity.brief": "Özet: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Özet",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Özet ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Özet ({{type}})",+ "taskDetail.latestActivity.topic": "Konu: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Konu #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "İsimsiz konu",+ "taskDetail.modelConfig": "Model Geçersiz Kılma",+ "taskDetail.navigation": "Gezinti",+ "taskDetail.pauseTask": "Görevi duraklat",+ "taskDetail.priority.high": "Yüksek",+ "taskDetail.priority.low": "Düşük",+ "taskDetail.priority.none": "Öncelik yok",+ "taskDetail.priority.normal": "Normal",+ "taskDetail.priority.urgent": "Acil",+ "taskDetail.properties": "Özellikler",+ "taskDetail.reassignDisabled": "Görev çalışırken ajan yeniden atanamaz",+ "taskDetail.rerunTask": "Görevi yeniden çalıştır",+ "taskDetail.runTask": "Görevi çalıştır",+ "taskDetail.saveModelConfig": "Kaydet",+ "taskDetail.status.backlog": "Beklemede",+ "taskDetail.status.canceled": "İptal edildi",+ "taskDetail.status.completed": "Tamamlandı",+ "taskDetail.status.failed": "Başarısız",+ "taskDetail.status.paused": "Duraklatıldı",+ "taskDetail.status.running": "Devam ediyor",+ "taskDetail.stopTask": "Görevi durdur",+ "taskDetail.subIssueOf": "Alt sorun",+ "taskDetail.subtaskInstructionPlaceholder": "Alt görevi açıklayın...",+ "taskDetail.subtasks": "Alt görevler",+ "taskDetail.titlePlaceholder": "Görev başlığını girin...",+ "taskDetail.topicDrawer.untitled": "Başlıksız",+ "taskDetail.updateFailed": "Görev güncellenemedi",+ "taskList.activeTasks": "Aktif Görevler",+ "taskList.all": "Tüm görevler",+ "taskList.breadcrumb.task": "Görev",+ "taskList.empty": "Henüz görev yok",+ "taskList.form.grouping": "Gruplama",+ "taskList.form.orderCompletedByRecency": "Tamamlanan görevleri yakınlığa göre sırala",+ "taskList.form.ordering": "Sıralama",+ "taskList.form.subGrouping": "Alt gruplama",+ "taskList.groupBy.assignee": "Atanan",+ "taskList.groupBy.none": "Gruplama yok",+ "taskList.groupBy.priority": "Öncelik",+ "taskList.groupBy.status": "Durum",+ "taskList.orderBy.assignee": "Atanan",+ "taskList.orderBy.createdAt": "Oluşturulma zamanı",+ "taskList.orderBy.priority": "Öncelik",+ "taskList.orderBy.status": "Durum",+ "taskList.orderBy.title": "Başlık",+ "taskList.orderBy.updatedAt": "Güncellenme zamanı",+ "taskList.title": "Görevler",+ "taskList.unassigned": "Atanmamış",+ "taskList.view.board": "Pano",+ "taskList.view.list": "Liste",+ "taskList.viewAll": "Tümünü görüntüle",+ "taskSchedule.clear": "Temizle",+ "taskSchedule.enable": "Otomasyonu etkinleştir",+ "taskSchedule.every": "Her",+ "taskSchedule.hours": "Saat",+ "taskSchedule.interval": "Tekrarlayan",+ "taskSchedule.intervalTab": "Tekrarlayan",+ "taskSchedule.minutes": "Dakika",+ "taskSchedule.scheduler": "Zamanlayıcı",+ "taskSchedule.schedulerNotReady": "Zamanlayıcı yakında geliyor. Şimdilik Tekrarlayan seçeneğini kullanın.",+ "taskSchedule.schedulerTab": "Zamanlayıcı",+ "taskSchedule.seconds": "Saniye",+ "taskSchedule.tag.add": "Zamanlama ayarla",+ "taskSchedule.tag.every": "her {{interval}}",+ "taskSchedule.tag.heartbeat": "Kalp Atışı · {{every}}",+ "taskSchedule.tag.schedule": "Zamanlama · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Zamanlama",+ "taskSchedule.unit.hour_one": "{{count}} saat",+ "taskSchedule.unit.hour_other": "{{count}} saat",+ "taskSchedule.unit.minute_one": "{{count}} dakika",+ "taskSchedule.unit.minute_other": "{{count}} dakika",+ "taskSchedule.unit.second_one": "{{count}} saniye",+ "taskSchedule.unit.second_other": "{{count}} saniye",+ "thread.closeSubagentThread": "Alt ajan konuşmasını daralt","thread.divider": "Alt Konu",+ "thread.openSubagentThread": "Alt ajan konuşmasının tamamını görüntüle",+ "thread.subagentBadge": "Alt ajan","thread.threadMessageCount": "{{messageCount}} mesaj","thread.title": "Alt Konu","todoProgress.allCompleted": "Tüm görevler tamamlandı",@@ -429,12 +550,12 @@"tool.intervention.mode.manual": "Manuel","tool.intervention.mode.manualDesc": "Her çağrı için manuel onay gerekir","tool.intervention.onboarding.agentIdentity.applyHint": "Yeni kimlik onaydan sonra görünecek.",- "tool.intervention.onboarding.agentIdentity.description": "Bu değişikliği onaylamak, Gelen Kutusu'nda ve bu başlangıç konuşmasında gösterilen Ajanı günceller.",+ "tool.intervention.onboarding.agentIdentity.description": "Bu değişikliğin onaylanması, Gelen Kutusu'nda ve bu onboarding konuşmasında görünen Ajanı günceller.","tool.intervention.onboarding.agentIdentity.emoji": "Ajan avatarı",- "tool.intervention.onboarding.agentIdentity.eyebrow": "Başlangıç onayı",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "Onboarding onayı","tool.intervention.onboarding.agentIdentity.name": "Ajan adı","tool.intervention.onboarding.agentIdentity.targetInbox": "Gelen Kutusu Ajanı",- "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Geçerli başlangıç Ajanı",+ "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Geçerli onboarding Ajanı","tool.intervention.onboarding.agentIdentity.targets": "Uygulanan yerler","tool.intervention.onboarding.agentIdentity.title": "Ajan kimliği güncellemesini onayla","tool.intervention.pending": "Beklemede",@@ -455,11 +576,11 @@"toolAuth.title": "Bu Ajan için Yetenekleri Yetkilendir","topic.checkOpenNewTopic": "Yeni bir konu başlatılsın mı?","topic.checkSaveCurrentMessages": "Mevcut konuşmayı konu olarak kaydetmek ister misiniz?",- "topic.defaultTitle": "Başlıksız Konu",+ "topic.defaultTitle": "İsimsiz Konu","topic.openNewTopic": "Yeni Konu Aç","topic.recent": "Son Konular","topic.saveCurrentMessages": "Mevcut oturumu konu olarak kaydet",- "topic.viewAll": "Tüm Konuları Görüntüle",+ "topic.viewAll": "Tüm Konuları Gör","translate.action": "Çevir","translate.clear": "Çeviriyi Temizle","tts.action": "Metni Sese Dönüştür",@@ -489,7 +610,7 @@"workflow.expandFull": "Tam genişlet","workflow.failedSuffix": "(başarısız)","workflow.summaryFailed": "{{count}} başarısız",- "workflow.summaryMoreTools": "+{{count}} daha",+ "workflow.summaryMoreTools": "{{count}} araç türü","workflow.summaryTotalCalls": "Toplam {{count}} çağrı","workflow.thoughtForDuration": "{{duration}} boyunca düşünüldü","workflow.toolDisplayName.activateDevice": "Etkinleştirilen cihaz",diff --git a/locales/tr-TR/home.json b/locales/tr-TR/home.jsonindex a7aeb516dea..8c830c1ba73 100644--- a/locales/tr-TR/home.json+++ b/locales/tr-TR/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "Şu anda eklenebilecek ajan yok","agentSelection.noSelected": "Seçili ajan yok","agentSelection.search": "Eşleşen ajan bulunamadı",+ "brief.action.acknowledge": "Onayla",+ "brief.action.approve": "Kabul et",+ "brief.action.feedback": "Geri bildirim",+ "brief.action.retry": "Yeniden dene",+ "brief.addFeedback": "Geri bildirim paylaş",+ "brief.collapse": "Daha az göster",+ "brief.commentPlaceholder": "Geri bildiriminizi paylaşın...",+ "brief.commentSubmit": "Geri bildirimi gönder",+ "brief.expandAll": "Daha fazla göster",+ "brief.feedbackSent": "Geri bildirim paylaşıldı",+ "brief.resolved": "Çözüldü olarak işaretlendi",+ "brief.title": "Günlük özet",+ "brief.viewAllTasks": "Tüm görevleri görüntüle","project.create": "Yeni proje",- "project.deleteConfirm": "Bu proje silinecek ve geri alınamayacak. Devam etmek için onaylayın.",+ "project.deleteConfirm": "Bu proje silinecek ve geri alınamaz. Devam etmek için onaylayın.","starter.createAgent": "Ajan Oluştur","starter.createGroup": "Grup Oluştur","starter.deepResearch": "Derin Araştırma",diff --git a/locales/tr-TR/plugin.json b/locales/tr-TR/plugin.jsonindex 3f4f0f4bfba..8f18ccfd831 100644--- a/locales/tr-TR/plugin.json+++ b/locales/tr-TR/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Eklenti","builtins.lobe-agent-management.render.installPlugin.success": "Başarıyla yüklendi","builtins.lobe-agent-management.title": "Temsilci Yöneticisi",+ "builtins.lobe-claude-code.agent.instruction": "Talimat",+ "builtins.lobe-claude-code.agent.result": "Sonuç","builtins.lobe-claude-code.todoWrite.allDone": "Tüm görevler tamamlandı","builtins.lobe-claude-code.todoWrite.currentStep": "Geçerli adım","builtins.lobe-claude-code.todoWrite.todos": "Yapılacaklar",diff --git a/locales/tr-TR/topic.json b/locales/tr-TR/topic.jsonindex 8f0cfd7e3eb..2d8eee42f58 100644--- a/locales/tr-TR/topic.json+++ b/locales/tr-TR/topic.json@@ -15,20 +15,24 @@"actions.export": "Konuları Dışa Aktar","actions.favorite": "Favori","actions.import": "Konuşmayı İçe Aktar",+ "actions.markCompleted": "Tamamlandı olarak işaretle","actions.openInNewTab": "Yeni Sekmede Aç","actions.openInNewWindow": "Yeni pencerede aç","actions.removeAll": "Tüm Konuları Sil","actions.removeUnstarred": "Yıldızlanmamış Konuları Sil","actions.unfavorite": "Favoriyi Kaldır",+ "actions.unmarkCompleted": "Aktif olarak işaretle","defaultTitle": "Varsayılan Konu","displayItems": "Öğeleri Göster","duplicateLoading": "Konu Kopyalanıyor...","duplicateSuccess": "Konu Başarıyla Kopyalandı","favorite": "Favori",+ "filter.filter": "Filtrele","filter.groupMode.byProject": "Projelere göre","filter.groupMode.byTime": "Zamana göre","filter.groupMode.flat": "Düz liste","filter.organize": "Düzenle",+ "filter.showCompleted": "Tamamlananları dahil et","filter.sort": "Sırala","filter.sortBy.createdAt": "Oluşturulma zamanı","filter.sortBy.updatedAt": "Güncellenme zamanı",@@ -52,6 +56,7 @@"renameModal.title": "Konuyu Yeniden Adlandır","searchPlaceholder": "Konularda Ara...","searchResultEmpty": "Arama sonucu bulunamadı.",+ "taskManager.welcome": "Görevlerin hakkında bana soru sor","temp": "Geçici","title": "Konu"}diff --git a/locales/vi-VN/auth.json b/locales/vi-VN/auth.jsonindex 86009edad7a..991aee50432 100644--- a/locales/vi-VN/auth.json+++ b/locales/vi-VN/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "Đặt lại mật khẩu","profile.email": "Địa chỉ email","profile.emailChangeSuccess": "Email xác minh đã được gửi. Vui lòng kiểm tra hộp thư đến email mới của bạn.",- "profile.emailInputHint": "Nhập địa chỉ email mới của bạn","profile.emailInvalid": "Vui lòng nhập một địa chỉ email hợp lệ","profile.emailPlaceholder": "[email protected]","profile.fullName": "Họ và tên",diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.jsonindex e8afdce915f..1e6ea463c90 100644--- a/locales/vi-VN/chat.json+++ b/locales/vi-VN/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "Chào bạn, tôi là **{{name}}**. Một câu là đủ.\n\nMuốn tôi phù hợp hơn với quy trình làm việc của bạn? Truy cập [Cài đặt Tác nhân]({{url}}) và điền Hồ sơ Tác nhân (bạn có thể chỉnh sửa bất cứ lúc nào).","agentDefaultMessageWithSystemRole": "Chào bạn, tôi là **{{name}}**. Một câu là đủ—bạn là người kiểm soát.","agentDefaultMessageWithoutEdit": "Chào bạn, tôi là **{{name}}**. Một câu là đủ—bạn là người kiểm soát.",+ "agentProfile.files_one": "{{count}} tệp",+ "agentProfile.files_other": "{{count}} tệp",+ "agentProfile.knowledgeBases_one": "{{count}} cơ sở tri thức",+ "agentProfile.knowledgeBases_other": "{{count}} cơ sở tri thức",+ "agentProfile.skills_one": "{{count}} kỹ năng",+ "agentProfile.skills_other": "{{count}} kỹ năng","agents": "Tác nhân","artifact.generating": "Đang tạo","artifact.inThread": "Không thể xem trong chủ đề phụ, vui lòng chuyển sang khu vực hội thoại chính để mở",@@ -43,10 +49,16 @@"confirmRemoveSessionItemAlert": "Bạn sắp xóa tác nhân này. Sau khi xóa sẽ không thể khôi phục. Vui lòng xác nhận hành động.","confirmRemoveSessionSuccess": "Xóa tác nhân thành công","createModal.createBlank": "Tạo trống",- "createModal.groupPlaceholder": "Mô tả nhóm này sẽ thực hiện điều gì...",- "createModal.groupTitle": "Nhóm của bạn nên làm gì?",- "createModal.placeholder": "Mô tả tác vụ mà tác nhân của bạn cần thực hiện...",- "createModal.title": "Tác nhân của bạn nên làm gì?",+ "createModal.groupPlaceholder": "Mô tả nhóm này sẽ làm gì...",+ "createModal.groupTitle": "Nhóm của bạn sẽ làm gì?",+ "createModal.placeholder": "Mô tả tác vụ mà tác nhân của bạn sẽ làm...",+ "createModal.title": "Tác nhân của bạn sẽ làm gì?",+ "createTask.assignee": "Người được giao",+ "createTask.collapse": "Ẩn mục nhập",+ "createTask.expandToInline": "Gắn vào trang",+ "createTask.instructionPlaceholder": "Thêm mô tả...",+ "createTask.submit": "Tạo nhiệm vụ",+ "createTask.titlePlaceholder": "Tiêu đề nhiệm vụ","defaultAgent": "Tác nhân mặc định","defaultGroupChat": "Nhóm","defaultList": "Danh sách mặc định",@@ -82,6 +94,7 @@"extendParams.title": "Tính năng mở rộng mô hình","extendParams.urlContext.desc": "Khi bật, các liên kết web sẽ được tự động phân tích để lấy nội dung thực tế của trang","extendParams.urlContext.title": "Trích xuất nội dung liên kết web",+ "followUpPlaceholder": "Theo dõi. Dùng @ để giao nhiệm vụ cho tác vụ khác.","group.desc": "Thực hiện nhiệm vụ với nhiều Tác nhân trong một không gian chung.","group.memberTooltip": "Có {{count}} thành viên trong nhóm","group.orchestratorThinking": "Điều phối viên đang suy nghĩ...",@@ -124,10 +137,10 @@"groupWizard.title": "Tạo nhóm","groupWizard.useTemplate": "Sử dụng mẫu","heteroAgent.fullAccess.label": "Toàn quyền truy cập",- "heteroAgent.fullAccess.tooltip": "Claude Code chạy cục bộ với toàn quyền đọc/ghi trong thư mục làm việc. Hiện chưa thể chuyển đổi chế độ cấp quyền.",+ "heteroAgent.fullAccess.tooltip": "Claude Code chạy cục bộ với toàn quyền đọc/ghi vào thư mục làm việc. Chưa hỗ trợ chuyển đổi chế độ quyền.","heteroAgent.resumeReset.cwdChanged": "Thư mục làm việc đã thay đổi. Phiên Claude Code trước đó chỉ có thể tiếp tục từ thư mục gốc ban đầu, vì vậy một cuộc trò chuyện mới đã được bắt đầu.","heteroAgent.switchCwd.cancel": "Hủy",- "heteroAgent.switchCwd.content": "Các phiên Claude Code được cố định vào một thư mục làm việc. Việc chuyển đổi sẽ bắt đầu một phiên mới cho chủ đề này — tin nhắn chat vẫn được giữ lại, nhưng ngữ cảnh của phiên trước không thể khôi phục.",+ "heteroAgent.switchCwd.content": "Các phiên Claude Code được gắn với một thư mục làm việc. Việc chuyển đổi sẽ bắt đầu một phiên mới cho chủ đề này — tin nhắn trò chuyện được giữ lại, nhưng không thể tiếp tục ngữ cảnh của phiên trước.","heteroAgent.switchCwd.ok": "Chuyển và bắt đầu phiên mới","heteroAgent.switchCwd.title": "Chuyển thư mục làm việc?","hideForYou": "Nội dung tin nhắn riêng bị ẩn. Vui lòng bật 'Hiển thị nội dung tin nhắn riêng' trong cài đặt để xem.",@@ -141,7 +154,7 @@"input.addUser": "Thêm tin nhắn người dùng","input.disclaimer": "Tác nhân có thể mắc lỗi. Hãy sử dụng phán đoán của bạn với thông tin quan trọng.","input.errorMsg": "Gửi thất bại: {{errorMsg}}. Vui lòng thử lại hoặc gửi sau.",- "input.more": "thêm",+ "input.more": "Thêm","input.send": "Gửi","input.sendWithCmdEnter": "Nhấn <key/> để gửi","input.sendWithEnter": "Nhấn <key/> để gửi",@@ -243,8 +256,9 @@"operation.contextCompression": "Ngữ cảnh quá dài, đang nén lịch sử...","operation.execAgentRuntime": "Đang chuẩn bị phản hồi","operation.execClientTask": "Đang thực hiện tác vụ",- "operation.execHeterogeneousAgent": "Tác nhân bên ngoài đang chạy",- "operation.execServerAgentRuntime": "Đang chạy… Bạn có thể chuyển sang tác vụ khác hoặc đóng trang — tác vụ vẫn sẽ tiếp tục.",+ "operation.execHeterogeneousAgent": "{{name}} đang chạy",+ "operation.execServerAgentRuntime": "Đang chạy… Bạn có thể chuyển tác vụ hoặc đóng trang — tác vụ sẽ tiếp tục.",+ "operation.heterogeneousAgentFallback": "Tác tử bên ngoài","operation.sendMessage": "Đang gửi tin nhắn","owner": "Chủ nhóm","pageCopilot.title": "Tác nhân trang",@@ -285,6 +299,8 @@"searchAgents": "Tìm kiếm tác nhân...","selectedAgents": "Tác nhân đã chọn","sendPlaceholder": "Hỏi, tạo hoặc bắt đầu nhiệm vụ, <hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "Yêu cầu {{name}} thực hiện một nhiệm vụ...",+ "sendPlaceholderWithAgentAssignment": "Yêu cầu, tạo hoặc bắt đầu một nhiệm vụ. Dùng @ để giao nhiệm vụ cho tác tử khác.","sessionGroup.config": "Quản lý nhóm","sessionGroup.confirmRemoveGroupAlert": "Nhóm này sắp bị xóa. Sau khi xóa, các tác nhân trong nhóm sẽ được chuyển về danh sách mặc định. Vui lòng xác nhận thao tác.","sessionGroup.createAgentSuccess": "Tạo tác nhân thành công",@@ -378,6 +394,7 @@"tab.integration": "Tích hợp","tab.profile": "Hồ sơ tác nhân","tab.search": "Tìm kiếm",+ "tab.tasks": "Nhiệm vụ","task.activity.calling": "Đang gọi kỹ năng...","task.activity.clientExecuting": "Đang thực hiện cục bộ...","task.activity.generating": "Đang tạo phản hồi...",@@ -399,7 +416,111 @@"task.status.initializing": "Đang khởi tạo nhiệm vụ...","task.subtask": "Nhiệm vụ phụ","task.title": "Tác vụ",+ "taskDetail.activities": "Hoạt động",+ "taskDetail.activities.agentTag": "Tác tử",+ "taskDetail.activities.fallback.brief": "đã đăng một bản tóm tắt",+ "taskDetail.activities.fallback.comment": "đã để lại bình luận",+ "taskDetail.activities.fallback.created": "đã tạo nhiệm vụ",+ "taskDetail.activities.fallback.topic": "đã bắt đầu một chủ đề",+ "taskDetail.activitiesEmpty": "Chưa có hoạt động nào",+ "taskDetail.addSubtask": "Thêm nhiệm vụ con",+ "taskDetail.blockedBy": "Bị chặn bởi {{id}}",+ "taskDetail.comment.cancel": "Hủy",+ "taskDetail.comment.delete": "Xóa",+ "taskDetail.comment.deleteConfirm.content": "Bình luận này sẽ bị xóa vĩnh viễn.",+ "taskDetail.comment.deleteConfirm.ok": "Xóa",+ "taskDetail.comment.deleteConfirm.title": "Xóa bình luận này?",+ "taskDetail.comment.edit": "Chỉnh sửa",+ "taskDetail.comment.save": "Lưu",+ "taskDetail.commentPlaceholder": "Để lại bình luận...",+ "taskDetail.deleteConfirm.content": "Hành động này không thể hoàn tác.",+ "taskDetail.deleteConfirm.ok": "Xóa",+ "taskDetail.deleteConfirm.title": "Xóa tác vụ này?",+ "taskDetail.instruction": "Hướng dẫn",+ "taskDetail.instructionPlaceholder": "Nhấn để chỉnh sửa hướng dẫn của tác vụ...",+ "taskDetail.latestActivity.brief": "Tóm tắt: {{title}}",+ "taskDetail.latestActivity.briefOnly": "Tóm tắt",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "Tóm tắt ({{type}}): {{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "Tóm tắt ({{type}})",+ "taskDetail.latestActivity.topic": "Chủ đề: {{title}}",+ "taskDetail.latestActivity.topicWithSeq": "Chủ đề #{{seq}}: {{title}}",+ "taskDetail.latestActivity.untitledTopic": "Chủ đề chưa có tên",+ "taskDetail.modelConfig": "Ghi đè mô hình",+ "taskDetail.navigation": "Điều hướng",+ "taskDetail.pauseTask": "Tạm dừng tác vụ",+ "taskDetail.priority.high": "Cao",+ "taskDetail.priority.low": "Thấp",+ "taskDetail.priority.none": "Không ưu tiên",+ "taskDetail.priority.normal": "Bình thường",+ "taskDetail.priority.urgent": "Khẩn cấp",+ "taskDetail.properties": "Thuộc tính",+ "taskDetail.reassignDisabled": "Không thể giao lại tác tử khi nhiệm vụ đang chạy",+ "taskDetail.rerunTask": "Chạy lại nhiệm vụ",+ "taskDetail.runTask": "Chạy tác vụ",+ "taskDetail.saveModelConfig": "Lưu",+ "taskDetail.status.backlog": "Tồn đọng",+ "taskDetail.status.canceled": "Đã hủy",+ "taskDetail.status.completed": "Hoàn thành",+ "taskDetail.status.failed": "Thất bại",+ "taskDetail.status.paused": "Đã tạm dừng",+ "taskDetail.status.running": "Đang thực hiện",+ "taskDetail.stopTask": "Dừng nhiệm vụ",+ "taskDetail.subIssueOf": "Vấn đề con của",+ "taskDetail.subtaskInstructionPlaceholder": "Mô tả nhiệm vụ con...",+ "taskDetail.subtasks": "Tác vụ con",+ "taskDetail.titlePlaceholder": "Nhập tiêu đề tác vụ...",+ "taskDetail.topicDrawer.untitled": "Không có tiêu đề",+ "taskDetail.updateFailed": "Cập nhật nhiệm vụ thất bại",+ "taskList.activeTasks": "Công Việc Đang Hoạt Động",+ "taskList.all": "Tất cả tác vụ",+ "taskList.breadcrumb.task": "Công Việc",+ "taskList.empty": "Chưa có tác vụ nào",+ "taskList.form.grouping": "Nhóm",+ "taskList.form.orderCompletedByRecency": "Sắp xếp tác vụ đã hoàn thành theo thời gian gần nhất",+ "taskList.form.ordering": "Sắp xếp",+ "taskList.form.subGrouping": "Nhóm phụ",+ "taskList.groupBy.assignee": "Người được giao",+ "taskList.groupBy.none": "Không nhóm",+ "taskList.groupBy.priority": "Ưu tiên",+ "taskList.groupBy.status": "Trạng thái",+ "taskList.orderBy.assignee": "Người được giao",+ "taskList.orderBy.createdAt": "Ngày tạo",+ "taskList.orderBy.priority": "Ưu tiên",+ "taskList.orderBy.status": "Trạng thái",+ "taskList.orderBy.title": "Tiêu đề",+ "taskList.orderBy.updatedAt": "Ngày cập nhật",+ "taskList.title": "Công Việc",+ "taskList.unassigned": "Chưa giao",+ "taskList.view.board": "Bảng",+ "taskList.view.list": "Danh sách",+ "taskList.viewAll": "Xem tất cả",+ "taskSchedule.clear": "Xóa",+ "taskSchedule.enable": "Bật tự động hóa",+ "taskSchedule.every": "Mỗi",+ "taskSchedule.hours": "Giờ",+ "taskSchedule.interval": "Lặp lại",+ "taskSchedule.intervalTab": "Lặp lại",+ "taskSchedule.minutes": "Phút",+ "taskSchedule.scheduler": "Lịch trình",+ "taskSchedule.schedulerNotReady": "Tính năng Lịch trình sắp ra mắt. Tạm thời hãy dùng Lặp lại.",+ "taskSchedule.schedulerTab": "Lịch trình",+ "taskSchedule.seconds": "Giây",+ "taskSchedule.tag.add": "Đặt lịch",+ "taskSchedule.tag.every": "mỗi {{interval}}",+ "taskSchedule.tag.heartbeat": "Nhịp · {{every}}",+ "taskSchedule.tag.schedule": "Lịch · {{schedule}}{{timezone}}",+ "taskSchedule.title": "Lịch",+ "taskSchedule.unit.hour_one": "{{count}} giờ",+ "taskSchedule.unit.hour_other": "{{count}} giờ",+ "taskSchedule.unit.minute_one": "{{count}} phút",+ "taskSchedule.unit.minute_other": "{{count}} phút",+ "taskSchedule.unit.second_one": "{{count}} giây",+ "taskSchedule.unit.second_other": "{{count}} giây",+ "thread.closeSubagentThread": "Thu gọn hội thoại tác tử phụ","thread.divider": "Chủ đề phụ",+ "thread.openSubagentThread": "Xem toàn bộ hội thoại tác tử phụ",+ "thread.subagentBadge": "Tác tử phụ","thread.threadMessageCount": "{{messageCount}} tin nhắn","thread.title": "Chủ đề phụ","todoProgress.allCompleted": "Tất cả nhiệm vụ đã hoàn thành",@@ -429,14 +550,14 @@"tool.intervention.mode.manual": "Thủ công","tool.intervention.mode.manualDesc": "Yêu cầu chấp thuận thủ công cho mỗi lần gọi","tool.intervention.onboarding.agentIdentity.applyHint": "Danh tính mới sẽ xuất hiện sau khi được phê duyệt.",- "tool.intervention.onboarding.agentIdentity.description": "Phê duyệt thay đổi này sẽ cập nhật Tác nhân hiển thị trong Hộp thư và trong cuộc hội thoại hướng dẫn này.",- "tool.intervention.onboarding.agentIdentity.emoji": "Ảnh đại diện tác nhân",- "tool.intervention.onboarding.agentIdentity.eyebrow": "Phê duyệt hướng dẫn",- "tool.intervention.onboarding.agentIdentity.name": "Tên tác nhân",- "tool.intervention.onboarding.agentIdentity.targetInbox": "Tác nhân trong Hộp thư",- "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Tác nhân trong quá trình hướng dẫn hiện tại",+ "tool.intervention.onboarding.agentIdentity.description": "Phê duyệt thay đổi này sẽ cập nhật Tác tử hiển thị trong Hộp thư và trong hội thoại onboarding này.",+ "tool.intervention.onboarding.agentIdentity.emoji": "Ảnh đại diện tác tử",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "Phê duyệt onboarding",+ "tool.intervention.onboarding.agentIdentity.name": "Tên tác tử",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "Tác tử Hộp thư",+ "tool.intervention.onboarding.agentIdentity.targetOnboarding": "Tác tử Onboarding hiện tại","tool.intervention.onboarding.agentIdentity.targets": "Áp dụng cho",- "tool.intervention.onboarding.agentIdentity.title": "Xác nhận cập nhật danh tính Tác nhân",+ "tool.intervention.onboarding.agentIdentity.title": "Xác nhận cập nhật danh tính Tác tử","tool.intervention.pending": "Đang chờ xử lý","tool.intervention.reject": "Từ chối","tool.intervention.rejectAndContinue": "Từ chối và thử lại",@@ -455,7 +576,7 @@"toolAuth.title": "Ủy quyền kỹ năng cho tác nhân này","topic.checkOpenNewTopic": "Bắt đầu chủ đề mới?","topic.checkSaveCurrentMessages": "Bạn có muốn lưu cuộc trò chuyện hiện tại thành chủ đề không?",- "topic.defaultTitle": "Chủ đề chưa đặt tên",+ "topic.defaultTitle": "Chủ đề chưa có tên","topic.openNewTopic": "Mở chủ đề mới","topic.recent": "Chủ đề gần đây","topic.saveCurrentMessages": "Lưu phiên hiện tại thành chủ đề",@@ -489,8 +610,8 @@"workflow.expandFull": "Mở rộng hoàn toàn","workflow.failedSuffix": "(thất bại)","workflow.summaryFailed": "{{count}} thất bại",- "workflow.summaryMoreTools": "+{{count}} nữa",- "workflow.summaryTotalCalls": "Tổng {{count}} lần gọi",+ "workflow.summaryMoreTools": "{{count}} loại công cụ",+ "workflow.summaryTotalCalls": "Tổng {{count}} lượt gọi","workflow.thoughtForDuration": "Đã suy nghĩ trong {{duration}}","workflow.toolDisplayName.activateDevice": "Thiết bị đã được kích hoạt","workflow.toolDisplayName.activateSkill": "Đã kích hoạt một kỹ năng",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "Failed to delete document","workingPanel.resources.deleteSuccess": "Document deleted","workingPanel.resources.deleteTitle": "Delete document?",- "workingPanel.resources.empty": "Chưa có tài liệu. Những tài liệu liên kết với tác nhân này sẽ xuất hiện tại đây.",+ "workingPanel.resources.empty": "Chưa có tài liệu. Các tài liệu liên quan đến tác tử này sẽ xuất hiện ở đây.","workingPanel.resources.error": "Failed to load resources","workingPanel.resources.filter.all": "Tất cả","workingPanel.resources.filter.documents": "Tài liệu",diff --git a/locales/vi-VN/home.json b/locales/vi-VN/home.jsonindex a7bd2872902..e6f661d2884 100644--- a/locales/vi-VN/home.json+++ b/locales/vi-VN/home.json@@ -3,6 +3,19 @@"agentSelection.noAvailable": "Hiện tại không thể thêm tác nhân nào","agentSelection.noSelected": "Chưa chọn tác nhân nào","agentSelection.search": "Không tìm thấy tác nhân phù hợp",+ "brief.action.acknowledge": "Xác nhận",+ "brief.action.approve": "Phê duyệt",+ "brief.action.feedback": "Phản hồi",+ "brief.action.retry": "Thử lại",+ "brief.addFeedback": "Gửi phản hồi",+ "brief.collapse": "Thu gọn",+ "brief.commentPlaceholder": "Chia sẻ phản hồi của bạn...",+ "brief.commentSubmit": "Gửi phản hồi",+ "brief.expandAll": "Xem thêm",+ "brief.feedbackSent": "Đã gửi phản hồi",+ "brief.resolved": "Đã đánh dấu là đã xử lý",+ "brief.title": "Tóm tắt hằng ngày",+ "brief.viewAllTasks": "Xem tất cả nhiệm vụ","project.create": "Dự án mới","project.deleteConfirm": "Dự án này sẽ bị xóa và không thể khôi phục. Xác nhận để tiếp tục.","starter.createAgent": "Tạo Tác Nhân",diff --git a/locales/vi-VN/plugin.json b/locales/vi-VN/plugin.jsonindex b133542286f..cb9921fd93c 100644--- a/locales/vi-VN/plugin.json+++ b/locales/vi-VN/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "Plugin","builtins.lobe-agent-management.render.installPlugin.success": "Cài đặt thành công","builtins.lobe-agent-management.title": "Quản lý Đại lý",+ "builtins.lobe-claude-code.agent.instruction": "Hướng dẫn",+ "builtins.lobe-claude-code.agent.result": "Kết quả","builtins.lobe-claude-code.todoWrite.allDone": "Tất cả nhiệm vụ đã hoàn thành","builtins.lobe-claude-code.todoWrite.currentStep": "Bước hiện tại","builtins.lobe-claude-code.todoWrite.todos": "Công việc cần làm",diff --git a/locales/vi-VN/topic.json b/locales/vi-VN/topic.jsonindex 44f09c54ff6..da949c1c72e 100644--- a/locales/vi-VN/topic.json+++ b/locales/vi-VN/topic.json@@ -15,20 +15,24 @@"actions.export": "Xuất chủ đề","actions.favorite": "Yêu thích","actions.import": "Nhập cuộc trò chuyện",+ "actions.markCompleted": "Đánh dấu hoàn thành","actions.openInNewTab": "Mở trong tab mới","actions.openInNewWindow": "Mở trong cửa sổ mới","actions.removeAll": "Xóa tất cả chủ đề","actions.removeUnstarred": "Xóa chủ đề chưa đánh dấu sao","actions.unfavorite": "Bỏ yêu thích",+ "actions.unmarkCompleted": "Đánh dấu là đang hoạt động","defaultTitle": "Chủ đề mặc định","displayItems": "Hiển thị mục","duplicateLoading": "Đang sao chép chủ đề...","duplicateSuccess": "Sao chép chủ đề thành công","favorite": "Yêu thích",+ "filter.filter": "Lọc","filter.groupMode.byProject": "Theo dự án","filter.groupMode.byTime": "Theo thời gian","filter.groupMode.flat": "Phẳng","filter.organize": "Sắp xếp",+ "filter.showCompleted": "Bao gồm việc đã hoàn thành","filter.sort": "Sắp xếp theo","filter.sortBy.createdAt": "Thời gian tạo","filter.sortBy.updatedAt": "Thời gian cập nhật",@@ -52,6 +56,7 @@"renameModal.title": "Đổi tên chủ đề","searchPlaceholder": "Tìm kiếm chủ đề...","searchResultEmpty": "Không tìm thấy kết quả tìm kiếm.",+ "taskManager.welcome": "Hãy hỏi tôi về các công việc của bạn","temp": "Tạm thời","title": "Chủ đề"}diff --git a/locales/zh-CN/auth.json b/locales/zh-CN/auth.jsonindex 41fb298a36f..ff06596a9c6 100644--- a/locales/zh-CN/auth.json+++ b/locales/zh-CN/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "重置密码","profile.email": "邮箱","profile.emailChangeSuccess": "验证邮件已发送,请查收新邮箱。",- "profile.emailInputHint": "输入新的邮箱地址","profile.emailInvalid": "请输入有效的邮箱地址","profile.emailPlaceholder": "[email protected]","profile.fullName": "全名",diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.jsonindex 2b82c876e17..354b1ed3aeb 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "你好,我是 **{{name}}**。从一句话开始就行。\n\n想让我更贴近你的工作方式:去 [助理设置]({{url}}) 补充助理档案(随时可改)","agentDefaultMessageWithSystemRole": "你好,我是 **{{name}}**。从一句话开始就行——决定权在你","agentDefaultMessageWithoutEdit": "你好,我是 **{{name}}**。从一句话开始就行——决定权在你",+ "agentProfile.files_one": "{{count}} 个文件",+ "agentProfile.files_other": "{{count}} 个文件",+ "agentProfile.knowledgeBases_one": "{{count}} 个知识库",+ "agentProfile.knowledgeBases_other": "{{count}} 个知识库",+ "agentProfile.skills_one": "{{count}} 项技能",+ "agentProfile.skills_other": "{{count}} 项技能","agents": "助理","artifact.generating": "生成中","artifact.inThread": "子话题中暂不支持查看。请回到主对话区打开",@@ -43,10 +49,16 @@"confirmRemoveSessionItemAlert": "确认删除该助理吗?删除后无法恢复","confirmRemoveSessionSuccess": "助理已删除","createModal.createBlank": "创建空白",- "createModal.groupPlaceholder": "描述这个群组应该做什么...",- "createModal.groupTitle": "你的群组应该做什么?",- "createModal.placeholder": "描述你的助理应该做什么...",- "createModal.title": "你的助理应该做什么?",+ "createModal.groupPlaceholder": "描述此分组的用途…",+ "createModal.groupTitle": "你的分组应该做什么?",+ "createModal.placeholder": "描述你的智能体应该做什么…",+ "createModal.title": "你的智能体应该做什么?",+ "createTask.assignee": "负责人",+ "createTask.collapse": "隐藏输入",+ "createTask.expandToInline": "固定到页面",+ "createTask.instructionPlaceholder": "添加描述…",+ "createTask.submit": "创建任务",+ "createTask.titlePlaceholder": "任务标题","defaultAgent": "自定义助理","defaultGroupChat": "群组","defaultList": "默认列表",@@ -82,7 +94,7 @@"extendParams.title": "模型扩展功能","extendParams.urlContext.desc": "开启后会自动解析网页链接,提取网页内容作为上下文","extendParams.urlContext.title": "提取网页链接内容",- "followUpPlaceholder": "继续追问",+ "followUpPlaceholder": "继续跟进。使用 @ 分配任务给其他智能体。","group.desc": "在同一对话空间,让多个助理一起推进任务","group.memberTooltip": "群组内有 {{count}} 名成员","group.orchestratorThinking": "主持人思考中…",@@ -227,7 +239,7 @@"messages.tokenDetails.speed.ttft.tooltip": "Time To First Token(TTFT):从发送消息到接收到首个 Token 的时间。","messages.tokenDetails.title": "生成明细","messages.tokenDetails.total": "总消耗",- "minimap.emptyPreview": "(无文本内容)",+ "minimap.emptyPreview": "(无文本内容)","minimap.jumpToMessage": "跳转到第 {{index}} 条消息","minimap.nextMessage": "下一条消息","minimap.previousMessage": "上一条消息",@@ -246,9 +258,9 @@"operation.contextCompression": "上下文过长,正在压缩历史记录……","operation.execAgentRuntime": "准备响应中","operation.execClientTask": "执行任务中",- "operation.execHeterogeneousAgent": "{{name}} 运行中",+ "operation.execHeterogeneousAgent": "{{name}} 正在运行","operation.execServerAgentRuntime": "任务正在服务器运行,您可以放心离开此页面",- "operation.heterogeneousAgentFallback": "智能体",+ "operation.heterogeneousAgentFallback": "外部智能体","operation.sendMessage": "消息发送中","owner": "群主","pageCopilot.title": "文稿助理",@@ -289,8 +301,8 @@"searchAgents": "搜索助理…","selectedAgents": "已选助理","sendPlaceholder": "从任何想法开始… <hotkey><hotkey/>",- "sendPlaceholderHeterogeneous": "让 {{name}} 帮你完成任务…",- "sendPlaceholderWithAgentAssignment": "提问、创建或发起任务。输入 @ 可将任务分配给其他助理。",+ "sendPlaceholderHeterogeneous": "请 {{name}} 执行一个任务…",+ "sendPlaceholderWithAgentAssignment": "提问、创建或开始任务。使用 @ 分配任务给其他智能体。","sessionGroup.config": "分类管理","sessionGroup.confirmRemoveGroupAlert": "确认删除该分类吗?分类内的助理会移回默认列表","sessionGroup.createAgentSuccess": "助理创建成功",@@ -384,6 +396,7 @@"tab.integration": "消息频道","tab.profile": "助理档案","tab.search": "搜索",+ "tab.tasks": "任务","task.activity.calling": "正在调用技能…","task.activity.clientExecuting": "本地执行中…","task.activity.generating": "正在生成回复…",@@ -405,9 +418,115 @@"task.status.initializing": "任务启动中…","task.subtask": "子任务","task.title": "任务",- "thread.closeSubagentThread": "收起子对话",+ "taskDetail.activities": "活动",+ "taskDetail.activities.agentTag": "智能体",+ "taskDetail.activities.fallback.brief": "发布了简要说明",+ "taskDetail.activities.fallback.comment": "留下了评论",+ "taskDetail.activities.fallback.created": "创建了任务",+ "taskDetail.activities.fallback.topic": "发起了主题",+ "taskDetail.activitiesEmpty": "暂无活动记录",+ "taskDetail.addSubtask": "添加子任务",+ "taskDetail.blockedBy": "被 {{id}} 阻塞",+ "taskDetail.comment.cancel": "取消",+ "taskDetail.comment.delete": "删除",+ "taskDetail.comment.deleteConfirm.content": "此评论将被永久删除。",+ "taskDetail.comment.deleteConfirm.ok": "删除",+ "taskDetail.comment.deleteConfirm.title": "删除这条评论?",+ "taskDetail.comment.edit": "编辑",+ "taskDetail.comment.save": "保存",+ "taskDetail.commentPlaceholder": "留下评论...",+ "taskDetail.deleteConfirm.content": "此操作不可撤销。",+ "taskDetail.deleteConfirm.ok": "删除",+ "taskDetail.deleteConfirm.title": "确认删除此任务?",+ "taskDetail.instruction": "任务说明",+ "taskDetail.instructionPlaceholder": "点击编辑任务说明…",+ "taskDetail.latestActivity.brief": "简要:{{title}}",+ "taskDetail.latestActivity.briefOnly": "简要",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "简要({{type}}):{{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "简要({{type}})",+ "taskDetail.latestActivity.topic": "主题:{{title}}",+ "taskDetail.latestActivity.topicWithSeq": "主题 #{{seq}}:{{title}}",+ "taskDetail.latestActivity.untitledTopic": "未命名主题",+ "taskDetail.modelConfig": "模型覆盖",+ "taskDetail.navigation": "导航",+ "taskDetail.pauseTask": "暂停任务",+ "taskDetail.priority.high": "高",+ "taskDetail.priority.low": "低",+ "taskDetail.priority.none": "无优先级",+ "taskDetail.priority.normal": "普通",+ "taskDetail.priority.urgent": "紧急",+ "taskDetail.properties": "属性",+ "taskDetail.reassignDisabled": "任务运行中,无法切换 Agent",+ "taskDetail.rerunTask": "重新运行",+ "taskDetail.runTask": "运行",+ "taskDetail.saveModelConfig": "保存",+ "taskDetail.status.backlog": "待办",+ "taskDetail.status.canceled": "已取消",+ "taskDetail.status.completed": "已完成",+ "taskDetail.status.failed": "失败",+ "taskDetail.status.paused": "已暂停",+ "taskDetail.status.running": "进行中",+ "taskDetail.stopTask": "停止任务",+ "taskDetail.subIssueOf": "隶属于",+ "taskDetail.subtaskInstructionPlaceholder": "描述这个子任务…",+ "taskDetail.subtasks": "子任务",+ "taskDetail.titlePlaceholder": "输入任务标题…",+ "taskDetail.topicDrawer.untitled": "未命名",+ "taskDetail.updateFailed": "任务更新失败",+ "taskList.activeTasks": "进行中的任务",+ "taskList.all": "全部任务",+ "taskList.breadcrumb.task": "任务",+ "taskList.empty": "暂无任务",+ "taskList.form.grouping": "分组",+ "taskList.form.orderCompletedByRecency": "按最近完成排序",+ "taskList.form.ordering": "排序",+ "taskList.form.subGrouping": "子分组",+ "taskList.groupBy.assignee": "负责人",+ "taskList.groupBy.none": "不分组",+ "taskList.groupBy.priority": "优先级",+ "taskList.groupBy.status": "状态",+ "taskList.kanban.backlog": "待办",+ "taskList.kanban.done": "已完成",+ "taskList.kanban.emptyColumn": "暂无任务",+ "taskList.kanban.needsInput": "需要输入",+ "taskList.kanban.running": "进行中",+ "taskList.orderBy.assignee": "负责人",+ "taskList.orderBy.createdAt": "创建时间",+ "taskList.orderBy.priority": "优先级",+ "taskList.orderBy.status": "状态",+ "taskList.orderBy.title": "标题",+ "taskList.orderBy.updatedAt": "更新时间",+ "taskList.title": "任务",+ "taskList.unassigned": "未分配",+ "taskList.view.board": "看板",+ "taskList.view.list": "列表",+ "taskList.viewAll": "查看全部",+ "taskSchedule.clear": "清除",+ "taskSchedule.enable": "启用自动化",+ "taskSchedule.every": "每",+ "taskSchedule.hours": "小时",+ "taskSchedule.interval": "循环任务",+ "taskSchedule.intervalTab": "循环任务",+ "taskSchedule.minutes": "分钟",+ "taskSchedule.scheduler": "定时任务",+ "taskSchedule.schedulerNotReady": "定时任务即将上线。暂时请使用“循环任务”。",+ "taskSchedule.schedulerTab": "定时任务",+ "taskSchedule.seconds": "秒",+ "taskSchedule.tag.add": "设置计划",+ "taskSchedule.tag.every": "每 {{interval}}",+ "taskSchedule.tag.heartbeat": "心跳 · {{every}}",+ "taskSchedule.tag.schedule": "计划 · {{schedule}}{{timezone}}",+ "taskSchedule.title": "计划",+ "taskSchedule.unit.hour_one": "{{count}} 小时",+ "taskSchedule.unit.hour_other": "{{count}} 小时",+ "taskSchedule.unit.minute_one": "{{count}} 分钟",+ "taskSchedule.unit.minute_other": "{{count}} 分钟",+ "taskSchedule.unit.second_one": "{{count}} 秒",+ "taskSchedule.unit.second_other": "{{count}} 秒",+ "thread.closeSubagentThread": "收起子智能体对话","thread.divider": "子话题",- "thread.openSubagentThread": "查看完整子对话",+ "thread.openSubagentThread": "查看完整子智能体对话","thread.subagentBadge": "子智能体","thread.threadMessageCount": "{{messageCount}} 条消息","thread.title": "子话题",@@ -468,7 +587,7 @@"topic.openNewTopic": "开启新话题","topic.recent": "最近话题","topic.saveCurrentMessages": "保存为话题",- "topic.viewAll": "查看所有主题",+ "topic.viewAll": "查看全部主题","translate.action": "翻译","translate.clear": "删除翻译","tts.action": "语音朗读",@@ -498,7 +617,7 @@"workflow.expandFull": "全部展开","workflow.failedSuffix": "(失败)","workflow.summaryFailed": "{{count}} 次失败",- "workflow.summaryMoreTools": "共 {{count}} 种工具",+ "workflow.summaryMoreTools": "{{count}} 种工具","workflow.summaryTotalCalls": "共 {{count}} 次调用","workflow.thoughtForDuration": "思考了 {{duration}}","workflow.toolDisplayName.activateDevice": "激活了设备",@@ -591,7 +710,7 @@"workingPanel.resources.deleteError": "删除失败","workingPanel.resources.deleteSuccess": "文档已删除","workingPanel.resources.deleteTitle": "删除该文档?",- "workingPanel.resources.empty": "暂无文档。与此代理相关的文档将显示在此处。",+ "workingPanel.resources.empty": "暂无文档。与此智能体关联的文档将显示在这里。","workingPanel.resources.error": "资源加载失败","workingPanel.resources.filter.all": "全部","workingPanel.resources.filter.documents": "文档",diff --git a/locales/zh-CN/home.json b/locales/zh-CN/home.jsonindex 665bb1de0b6..796ab14dc8d 100644--- a/locales/zh-CN/home.json+++ b/locales/zh-CN/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "当前没有可添加的助理","agentSelection.noSelected": "还未选择助理","agentSelection.search": "未找到匹配的助理",+ "brief.action.acknowledge": "确认",+ "brief.action.approve": "批准",+ "brief.action.feedback": "反馈",+ "brief.action.retry": "重试",+ "brief.addFeedback": "分享反馈",+ "brief.collapse": "收起",+ "brief.commentPlaceholder": "分享你的反馈…",+ "brief.commentSubmit": "提交反馈",+ "brief.expandAll": "展开全部",+ "brief.feedbackSent": "反馈已提交",+ "brief.resolved": "已标记为已解决",+ "brief.title": "每日简报",+ "brief.viewAllTasks": "查看全部任务","project.create": "新建项目",- "project.deleteConfirm": "即将删除该项目,删除后将无法找回,请确认你的操作",+ "project.deleteConfirm": "此项目将被删除且无法恢复。确认继续操作。","starter.createAgent": "创建助理","starter.createGroup": "创建群组","starter.deepResearch": "探究",diff --git a/locales/zh-CN/topic.json b/locales/zh-CN/topic.jsonindex 6035e0fd487..83e40468332 100644--- a/locales/zh-CN/topic.json+++ b/locales/zh-CN/topic.json@@ -56,6 +56,7 @@"renameModal.title": "重命名话题","searchPlaceholder": "搜索话题…","searchResultEmpty": "暂无搜索结果",+ "taskManager.welcome": "问我关于你的任务","temp": "临时","title": "话题"}diff --git a/locales/zh-TW/auth.json b/locales/zh-TW/auth.jsonindex fea50a7cfea..7a570d14fab 100644--- a/locales/zh-TW/auth.json+++ b/locales/zh-TW/auth.json@@ -165,7 +165,6 @@"profile.changePassword": "重設密碼","profile.email": "電子郵件地址","profile.emailChangeSuccess": "驗證電子郵件已發送。請檢查您的新電子郵件收件箱。",- "profile.emailInputHint": "輸入您的新電子郵件地址","profile.emailInvalid": "請輸入有效的電子郵件地址","profile.emailPlaceholder": "[email protected]","profile.fullName": "全名",diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.jsonindex 452bfcdd1bf..32bb0a3de6d 100644--- a/locales/zh-TW/chat.json+++ b/locales/zh-TW/chat.json@@ -18,6 +18,12 @@"agentDefaultMessage": "你好,我是 **{{name}}**,你可以立即與我開始對話,也可以前往 [助手設定]({{url}}) 完善我的資訊。","agentDefaultMessageWithSystemRole": "你好,我是 **{{name}}**,有什麼我可以幫忙的嗎?","agentDefaultMessageWithoutEdit": "你好,我是 **{{name}}**,有什麼我可以幫忙的嗎?",+ "agentProfile.files_one": "{{count}} 個檔案",+ "agentProfile.files_other": "{{count}} 個檔案",+ "agentProfile.knowledgeBases_one": "{{count}} 個知識庫",+ "agentProfile.knowledgeBases_other": "{{count}} 個知識庫",+ "agentProfile.skills_one": "{{count}} 項技能",+ "agentProfile.skills_other": "{{count}} 項技能","agents": "助手","artifact.generating": "生成中","artifact.inThread": "子話題中無法查看,請切換到主對話區打開",@@ -43,10 +49,16 @@"confirmRemoveSessionItemAlert": "即將刪除該助手,刪除後將無法找回,請確認你的操作","confirmRemoveSessionSuccess": "助手刪除成功","createModal.createBlank": "建立空白",- "createModal.groupPlaceholder": "描述此群組應執行的任務…",+ "createModal.groupPlaceholder": "描述此群組應執行的內容…","createModal.groupTitle": "您的群組應該做什麼?",- "createModal.placeholder": "描述您的代理人應該執行的任務…",- "createModal.title": "您的代理人應該做什麼?",+ "createModal.placeholder": "描述您的代理應執行的內容…",+ "createModal.title": "您的代理應該做什麼?",+ "createTask.assignee": "指派對象",+ "createTask.collapse": "隱藏輸入欄",+ "createTask.expandToInline": "停駐到頁面",+ "createTask.instructionPlaceholder": "新增描述...",+ "createTask.submit": "建立任務",+ "createTask.titlePlaceholder": "任務標題","defaultAgent": "自定義助手","defaultGroupChat": "群組","defaultList": "預設清單",@@ -82,6 +94,7 @@"extendParams.title": "模型擴展功能","extendParams.urlContext.desc": "開啟後將自動解析網頁連結,以取得實際網頁上下文內容","extendParams.urlContext.title": "擷取網頁連結內容",+ "followUpPlaceholder": "後續動作。使用 @ 指派任務給其他代理。","group.desc": "與多位 AI 助手在共用的對話空間中協作。","group.memberTooltip": "群組內有 {{count}} 位成員","group.orchestratorThinking": "主持人正在思考中...",@@ -124,10 +137,10 @@"groupWizard.title": "建立群組","groupWizard.useTemplate": "使用模板","heteroAgent.fullAccess.label": "完整存取",- "heteroAgent.fullAccess.tooltip": "Claude Code 會在本機執行,並擁有對工作目錄的完整讀寫權限。尚未支援切換權限模式。",- "heteroAgent.resumeReset.cwdChanged": "工作目錄已變更。先前的 Claude Code 工作階段只能從原本的目錄恢復,因此已開始新的對話。",+ "heteroAgent.fullAccess.tooltip": "Claude Code 於本機執行,並擁有對工作目錄的完整讀寫權限。目前尚無法切換權限模式。",+ "heteroAgent.resumeReset.cwdChanged": "工作目錄已變更。先前的 Claude Code 工作階段只能從原始目錄回復,因此已開始新的對話。","heteroAgent.switchCwd.cancel": "取消",- "heteroAgent.switchCwd.content": "Claude Code 工作階段會固定在某個工作目錄。切換後將會為此主題啟動新的工作階段——聊天訊息會保留,但無法延續先前的工作階段內容。",+ "heteroAgent.switchCwd.content": "Claude Code 工作階段會固定於某個工作目錄。切換後將為此主題開啟新工作階段——聊天訊息會保留,但無法回復前一階段的內容。","heteroAgent.switchCwd.ok": "切換並開始新工作階段","heteroAgent.switchCwd.title": "切換工作目錄?","hideForYou": "私訊內容已經隱藏,請在設定中開啟【顯示私訊內容】以查看",@@ -243,8 +256,9 @@"operation.contextCompression": "內容過長,正在壓縮歷史記錄⋯⋯","operation.execAgentRuntime": "正在準備回應","operation.execClientTask": "執行任務中",- "operation.execHeterogeneousAgent": "外部代理執行中",- "operation.execServerAgentRuntime": "執行中… 您可以切換任務或關閉頁面,任務將持續進行。",+ "operation.execHeterogeneousAgent": "{{name}} 正在執行",+ "operation.execServerAgentRuntime": "執行中…您可以切換任務或關閉頁面——任務將持續進行。",+ "operation.heterogeneousAgentFallback": "外部代理","operation.sendMessage": "正在傳送訊息","owner": "群組擁有者","pageCopilot.title": "文稿助手",@@ -285,6 +299,8 @@"searchAgents": "搜尋助手...","selectedAgents": "已選擇的助理","sendPlaceholder": "詢問、創作或開始任務,<hotkey><hotkey/>",+ "sendPlaceholderHeterogeneous": "請 {{name}} 執行任務...",+ "sendPlaceholderWithAgentAssignment": "請求、建立或開始任務。使用 @ 指派任務給其他代理。","sessionGroup.config": "分組管理","sessionGroup.confirmRemoveGroupAlert": "即將刪除該分組,刪除後該分組的助手將移動到預設清單,請確認你的操作","sessionGroup.createAgentSuccess": "助手建立成功",@@ -378,6 +394,7 @@"tab.integration": "整合","tab.profile": "助手檔案","tab.search": "搜尋",+ "tab.tasks": "任務","task.activity.calling": "正在呼叫工具...","task.activity.clientExecuting": "正在本機執行...","task.activity.generating": "正在產生回覆...",@@ -399,7 +416,111 @@"task.status.initializing": "任務啟動中...","task.subtask": "子任務","task.title": "任務",+ "taskDetail.activities": "活動",+ "taskDetail.activities.agentTag": "代理",+ "taskDetail.activities.fallback.brief": "張貼了簡述",+ "taskDetail.activities.fallback.comment": "留下了評論",+ "taskDetail.activities.fallback.created": "建立了此任務",+ "taskDetail.activities.fallback.topic": "開啟了一個主題",+ "taskDetail.activitiesEmpty": "尚無活動",+ "taskDetail.addSubtask": "新增子任務",+ "taskDetail.blockedBy": "被 {{id}} 擋住",+ "taskDetail.comment.cancel": "取消",+ "taskDetail.comment.delete": "刪除",+ "taskDetail.comment.deleteConfirm.content": "此留言將被永久刪除。",+ "taskDetail.comment.deleteConfirm.ok": "刪除",+ "taskDetail.comment.deleteConfirm.title": "刪除此留言?",+ "taskDetail.comment.edit": "編輯",+ "taskDetail.comment.save": "儲存",+ "taskDetail.commentPlaceholder": "留下評論…",+ "taskDetail.deleteConfirm.content": "此操作無法復原。",+ "taskDetail.deleteConfirm.ok": "刪除",+ "taskDetail.deleteConfirm.title": "刪除此任務?",+ "taskDetail.instruction": "指示",+ "taskDetail.instructionPlaceholder": "點擊以編輯任務指示…",+ "taskDetail.latestActivity.brief": "簡述:{{title}}",+ "taskDetail.latestActivity.briefOnly": "簡述",+ "taskDetail.latestActivity.briefWithAction": "{{title}} - {{action}}",+ "taskDetail.latestActivity.briefWithType": "簡述({{type}}):{{title}}",+ "taskDetail.latestActivity.briefWithTypeOnly": "簡述({{type}})",+ "taskDetail.latestActivity.topic": "主題:{{title}}",+ "taskDetail.latestActivity.topicWithSeq": "主題 #{{seq}}:{{title}}",+ "taskDetail.latestActivity.untitledTopic": "未命名主題",+ "taskDetail.modelConfig": "模型覆寫",+ "taskDetail.navigation": "導覽",+ "taskDetail.pauseTask": "暫停任務",+ "taskDetail.priority.high": "高",+ "taskDetail.priority.low": "低",+ "taskDetail.priority.none": "無優先順序",+ "taskDetail.priority.normal": "普通",+ "taskDetail.priority.urgent": "緊急",+ "taskDetail.properties": "屬性",+ "taskDetail.reassignDisabled": "任務執行中,無法重新指派代理",+ "taskDetail.rerunTask": "重新執行任務",+ "taskDetail.runTask": "執行任務",+ "taskDetail.saveModelConfig": "儲存",+ "taskDetail.status.backlog": "待辦",+ "taskDetail.status.canceled": "已取消",+ "taskDetail.status.completed": "已完成",+ "taskDetail.status.failed": "失敗",+ "taskDetail.status.paused": "已暫停",+ "taskDetail.status.running": "進行中",+ "taskDetail.stopTask": "停止任務",+ "taskDetail.subIssueOf": "隸屬於",+ "taskDetail.subtaskInstructionPlaceholder": "描述子任務...",+ "taskDetail.subtasks": "子任務",+ "taskDetail.titlePlaceholder": "輸入任務標題…",+ "taskDetail.topicDrawer.untitled": "未命名",+ "taskDetail.updateFailed": "更新任務失敗",+ "taskList.activeTasks": "進行中的任務",+ "taskList.all": "所有任務",+ "taskList.breadcrumb.task": "任務",+ "taskList.empty": "尚無任務",+ "taskList.form.grouping": "分組",+ "taskList.form.orderCompletedByRecency": "依最近完成排序",+ "taskList.form.ordering": "排序方式",+ "taskList.form.subGrouping": "次分組",+ "taskList.groupBy.assignee": "負責人",+ "taskList.groupBy.none": "不分組",+ "taskList.groupBy.priority": "依優先順序",+ "taskList.groupBy.status": "依狀態",+ "taskList.orderBy.assignee": "負責人",+ "taskList.orderBy.createdAt": "建立時間",+ "taskList.orderBy.priority": "優先順序",+ "taskList.orderBy.status": "狀態",+ "taskList.orderBy.title": "標題",+ "taskList.orderBy.updatedAt": "更新時間",+ "taskList.title": "任務",+ "taskList.unassigned": "未指派",+ "taskList.view.board": "看板",+ "taskList.view.list": "清單",+ "taskList.viewAll": "檢視全部",+ "taskSchedule.clear": "清除",+ "taskSchedule.enable": "啟用自動化",+ "taskSchedule.every": "每",+ "taskSchedule.hours": "小時",+ "taskSchedule.interval": "循環",+ "taskSchedule.intervalTab": "循環",+ "taskSchedule.minutes": "分鐘",+ "taskSchedule.scheduler": "排程器",+ "taskSchedule.schedulerNotReady": "排程器即將推出。目前請使用「循環」。",+ "taskSchedule.schedulerTab": "排程器",+ "taskSchedule.seconds": "秒",+ "taskSchedule.tag.add": "設定排程",+ "taskSchedule.tag.every": "每 {{interval}}",+ "taskSchedule.tag.heartbeat": "心跳 · {{every}}",+ "taskSchedule.tag.schedule": "排程 · {{schedule}}{{timezone}}",+ "taskSchedule.title": "排程",+ "taskSchedule.unit.hour_one": "{{count}} 小時",+ "taskSchedule.unit.hour_other": "{{count}} 小時",+ "taskSchedule.unit.minute_one": "{{count}} 分鐘",+ "taskSchedule.unit.minute_other": "{{count}} 分鐘",+ "taskSchedule.unit.second_one": "{{count}} 秒",+ "taskSchedule.unit.second_other": "{{count}} 秒",+ "thread.closeSubagentThread": "收合子代理對話","thread.divider": "子話題",+ "thread.openSubagentThread": "查看完整子代理對話",+ "thread.subagentBadge": "子代理","thread.threadMessageCount": "{{messageCount}} 條消息","thread.title": "子話題","todoProgress.allCompleted": "所有任務已完成",@@ -428,15 +549,15 @@"tool.intervention.mode.autoRunDesc": "自動批准所有工具執行","tool.intervention.mode.manual": "手動","tool.intervention.mode.manualDesc": "每次調用都需要手動批准",- "tool.intervention.onboarding.agentIdentity.applyHint": "新的身分將在核准後顯示。",- "tool.intervention.onboarding.agentIdentity.description": "核准此變更後,將更新在收件匣與此導覽對話中顯示的代理人。",- "tool.intervention.onboarding.agentIdentity.emoji": "代理人頭像",- "tool.intervention.onboarding.agentIdentity.eyebrow": "導覽核准",- "tool.intervention.onboarding.agentIdentity.name": "代理人名稱",- "tool.intervention.onboarding.agentIdentity.targetInbox": "收件匣代理人",- "tool.intervention.onboarding.agentIdentity.targetOnboarding": "目前的導覽代理人",- "tool.intervention.onboarding.agentIdentity.targets": "適用於",- "tool.intervention.onboarding.agentIdentity.title": "確認更新代理人身分",+ "tool.intervention.onboarding.agentIdentity.applyHint": "新身分將在核准後顯示。",+ "tool.intervention.onboarding.agentIdentity.description": "核准此變更後,將更新收件匣和此導引對話中顯示的代理身分。",+ "tool.intervention.onboarding.agentIdentity.emoji": "代理頭像",+ "tool.intervention.onboarding.agentIdentity.eyebrow": "導引核准",+ "tool.intervention.onboarding.agentIdentity.name": "代理名稱",+ "tool.intervention.onboarding.agentIdentity.targetInbox": "收件匣代理",+ "tool.intervention.onboarding.agentIdentity.targetOnboarding": "目前的導引代理",+ "tool.intervention.onboarding.agentIdentity.targets": "適用對象",+ "tool.intervention.onboarding.agentIdentity.title": "確認代理身分更新","tool.intervention.pending": "待處理","tool.intervention.reject": "拒絕","tool.intervention.rejectAndContinue": "拒絕後重新執行",@@ -459,7 +580,7 @@"topic.openNewTopic": "開啟新話題","topic.recent": "最近話題","topic.saveCurrentMessages": "將當前對話保存為話題",- "topic.viewAll": "查看所有主題",+ "topic.viewAll": "檢視所有主題","translate.action": "翻譯","translate.clear": "刪除翻譯","tts.action": "語音朗讀",@@ -484,13 +605,13 @@"viewMode.fullWidth": "全寬顯示","viewMode.normal": "一般","viewMode.wideScreen": "寬螢幕",- "workflow.awaitingConfirmation": "等待你的確認",+ "workflow.awaitingConfirmation": "等待您的確認","workflow.collapse": "收合",- "workflow.expandFull": "全部展開",+ "workflow.expandFull": "完整展開","workflow.failedSuffix": "(失敗)","workflow.summaryFailed": "{{count}} 項失敗",- "workflow.summaryMoreTools": "+{{count}} 更多",- "workflow.summaryTotalCalls": "總共 {{count}} 次呼叫",+ "workflow.summaryMoreTools": "{{count}} 種工具",+ "workflow.summaryTotalCalls": "{{count}} 次呼叫總計","workflow.thoughtForDuration": "思考了 {{duration}}","workflow.toolDisplayName.activateDevice": "已啟用的裝置","workflow.toolDisplayName.activateSkill": "已啟用一項技能",@@ -582,7 +703,7 @@"workingPanel.resources.deleteError": "刪除文件失敗","workingPanel.resources.deleteSuccess": "文件已刪除","workingPanel.resources.deleteTitle": "刪除文件?",- "workingPanel.resources.empty": "尚無文件。與此代理人相關的文件將顯示在此處。",+ "workingPanel.resources.empty": "尚無文件。與此代理相關的文件將顯示在此處。","workingPanel.resources.error": "資源載入失敗","workingPanel.resources.filter.all": "全部","workingPanel.resources.filter.documents": "文件",diff --git a/locales/zh-TW/home.json b/locales/zh-TW/home.jsonindex 0b903b5fa55..392bda45a03 100644--- a/locales/zh-TW/home.json+++ b/locales/zh-TW/home.json@@ -3,8 +3,21 @@"agentSelection.noAvailable": "目前沒有可新增的助手","agentSelection.noSelected": "尚未選擇任何助手","agentSelection.search": "未找到符合的助手",+ "brief.action.acknowledge": "確認",+ "brief.action.approve": "核准",+ "brief.action.feedback": "意見回饋",+ "brief.action.retry": "重試",+ "brief.addFeedback": "分享意見回饋",+ "brief.collapse": "顯示較少",+ "brief.commentPlaceholder": "分享您的意見回饋...",+ "brief.commentSubmit": "提交意見回饋",+ "brief.expandAll": "顯示更多",+ "brief.feedbackSent": "已分享意見回饋",+ "brief.resolved": "已標記為已解決",+ "brief.title": "每日摘要",+ "brief.viewAllTasks": "檢視所有任務","project.create": "新增專案",- "project.deleteConfirm": "即將刪除該專案,刪除後將無法恢復,請確認你的操作",+ "project.deleteConfirm": "此專案將被刪除且無法恢復。確認繼續。","starter.createAgent": "建立助理","starter.createGroup": "建立群組","starter.deepResearch": "深入研究",diff --git a/locales/zh-TW/plugin.json b/locales/zh-TW/plugin.jsonindex dc9ac9154e3..6ba5597f1e6 100644--- a/locales/zh-TW/plugin.json+++ b/locales/zh-TW/plugin.json@@ -65,6 +65,8 @@"builtins.lobe-agent-management.render.installPlugin.plugin": "外掛","builtins.lobe-agent-management.render.installPlugin.success": "安裝成功","builtins.lobe-agent-management.title": "代理管理器",+ "builtins.lobe-claude-code.agent.instruction": "指令",+ "builtins.lobe-claude-code.agent.result": "結果","builtins.lobe-claude-code.todoWrite.allDone": "所有任務皆已完成","builtins.lobe-claude-code.todoWrite.currentStep": "目前步驟","builtins.lobe-claude-code.todoWrite.todos": "待辦項目",diff --git a/locales/zh-TW/topic.json b/locales/zh-TW/topic.jsonindex da66f3233c7..ff1e3e22963 100644--- a/locales/zh-TW/topic.json+++ b/locales/zh-TW/topic.json@@ -15,20 +15,24 @@"actions.export": "匯出話題","actions.favorite": "收藏","actions.import": "匯入對話",+ "actions.markCompleted": "標記為已完成","actions.openInNewTab": "在新分頁中開啟","actions.openInNewWindow": "在新視窗中開啟","actions.removeAll": "刪除全部話題","actions.removeUnstarred": "刪除未收藏話題","actions.unfavorite": "取消收藏",+ "actions.unmarkCompleted": "標記為進行中","defaultTitle": "預設話題","displayItems": "顯示項目","duplicateLoading": "話題複製中...","duplicateSuccess": "話題複製成功","favorite": "收藏",+ "filter.filter": "篩選","filter.groupMode.byProject": "按專案","filter.groupMode.byTime": "按時間","filter.groupMode.flat": "不分類","filter.organize": "整理",+ "filter.showCompleted": "包含已完成項目","filter.sort": "排序方式","filter.sortBy.createdAt": "建立時間","filter.sortBy.updatedAt": "更新時間",@@ -52,6 +56,7 @@"renameModal.title": "重新命名主題","searchPlaceholder": "搜尋話題...","searchResultEmpty": "目前沒有搜尋結果",+ "taskManager.welcome": "可以詢問我有關你的待辦事項","temp": "臨時","title": "話題"}diff --git a/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx b/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsxindex c85e884e1a7..c3b08d0d168 100644--- a/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx+++ b/packages/builtin-tool-activator/src/client/Inspector/ActivateTools/index.tsx@@ -19,13 +19,28 @@ const styles = createStaticStyles(({ css }) => ({color: ${cssVar.colorWarning};`,tool: css`+ overflow: hidden;display: inline-flex;- gap: 2px;+ flex-shrink: 1;+ gap: 6px;align-items: center;- font-size: 14px;- line-height: 18px;+ min-width: 0;+ padding-block: 2px;+ padding-inline: 10px;+ border: 1px solid ${cssVar.colorBorderSecondary};+ border-radius: 999px;++ font-size: 12px;color: ${cssVar.colorText};++ background: ${cssVar.colorFillTertiary};+ `,+ toolName: css`+ overflow: hidden;+ min-width: 0;+ text-overflow: ellipsis;+ white-space: nowrap;`,tools: css`display: inline-flex;@@ -58,9 +73,9 @@ export const ActivateToolsInspector = memo<{identifiers && identifiers.length > 0 && (<span className={styles.tools}>{identifiers.map((id) => (- <code className={styles.tool} key={id}>- {id}- </code>+ <span className={styles.tool} key={id}>+ <span className={styles.toolName}>{id}</span>+ </span>))}</span>)}@@ -97,8 +112,8 @@ export const ActivateToolsInspector = memo<<span className={styles.tools}>{visibleTools.map((tool) => (<span className={styles.tool} key={tool.identifier}>- {tool.avatar && <Avatar avatar={tool.avatar} size={18} title={tool.name} />}- <span>{tool.name}</span>+ {tool.avatar && <Avatar avatar={tool.avatar} size={14} title={tool.name} />}+ <span className={styles.toolName}>{tool.name}</span></span>))}</span>diff --git a/packages/builtin-tool-task/package.json b/packages/builtin-tool-task/package.jsonindex f96c2601f8f..dac1c9f6835 100644--- a/packages/builtin-tool-task/package.json+++ b/packages/builtin-tool-task/package.json@@ -3,9 +3,13 @@"version": "1.0.0","private": true,"exports": {- ".": "./src/index.ts"+ ".": "./src/index.ts",+ "./executor": "./src/executor/index.ts"},"main": "./src/index.ts",+ "dependencies": {+ "@lobechat/prompts": "workspace:*"+ },"devDependencies": {"@lobechat/types": "workspace:*"}diff --git a/packages/builtin-tool-task/src/constants.ts b/packages/builtin-tool-task/src/constants.tsnew file mode 100644index 00000000000..4badbd01063--- /dev/null+++ b/packages/builtin-tool-task/src/constants.ts@@ -0,0 +1,10 @@+export const TASK_STATUSES = [+ 'backlog',+ 'running',+ 'paused',+ 'completed',+ 'failed',+ 'canceled',+] as const;++export const UNFINISHED_TASK_STATUSES = ['backlog', 'running', 'paused'] as const;diff --git a/packages/builtin-tool-task/src/executor/index.ts b/packages/builtin-tool-task/src/executor/index.tsnew file mode 100644index 00000000000..13a6b35c021--- /dev/null+++ b/packages/builtin-tool-task/src/executor/index.ts@@ -0,0 +1,282 @@+import {+ formatDependencyAdded,+ formatDependencyRemoved,+ formatTaskCreated,+ formatTaskDeleted,+ formatTaskDetail,+ formatTaskEdited,+ formatTaskList,+ priorityLabel,+} from '@lobechat/prompts';+import type { BuiltinToolContext, BuiltinToolResult, TaskStatus } from '@lobechat/types';+import { BaseExecutor } from '@lobechat/types';+import debug from 'debug';++import { getTaskStoreState } from '@/store/task';++import { normalizeListTasksParams } from '../listTasks';+import { TaskIdentifier } from '../manifest';+import { TaskApiName } from '../types';++const log = debug('lobe-task:executor');++class TaskExecutor extends BaseExecutor<typeof TaskApiName> {+ readonly identifier = TaskIdentifier;+ protected readonly apiEnum = TaskApiName;++ createTask = async (+ params: {+ instruction: string;+ name: string;+ parentIdentifier?: string;+ priority?: number;+ sortOrder?: number;+ },+ ctx?: BuiltinToolContext,+ ): Promise<BuiltinToolResult> => {+ try {+ log('[TaskExecutor] createTask - params:', params);+ const parentIdentifier = params.parentIdentifier?.trim() || undefined;++ const task = await getTaskStoreState().createTask({+ assigneeAgentId: ctx?.agentId,+ createdByAgentId: ctx?.agentId,+ instruction: params.instruction,+ name: params.name,+ parentTaskId: parentIdentifier,+ priority: params.priority,+ });++ if (!task) {+ return {+ content: 'Failed to create task',+ error: { message: 'No data returned', type: 'CreateFailed' },+ success: false,+ };+ }++ return {+ content: formatTaskCreated({+ identifier: task.identifier,+ instruction: params.instruction,+ name: task.name,+ parentLabel: parentIdentifier,+ priority: task.priority,+ status: task.status,+ }),+ state: { identifier: task.identifier, success: true },+ success: true,+ };+ } catch (error) {+ log('[TaskExecutor] createTask - error:', error);+ const message = error instanceof Error ? error.message : String(error) || 'Unknown error';+ const content = message.startsWith('Failed to create task')+ ? message+ : `Failed to create task: ${message}`;+ return {+ content,+ error: { message, type: 'CreateTaskFailed' },+ success: false,+ };+ }+ };++ deleteTask = async (+ params: { identifier: string },+ _ctx?: BuiltinToolContext,+ ): Promise<BuiltinToolResult> => {+ try {+ log('[TaskExecutor] deleteTask - params:', params);++ const deleted = await getTaskStoreState().deleteTask(params.identifier);+ const label = deleted?.identifier ?? params.identifier;++ return {+ content: formatTaskDeleted(label, deleted?.name),+ state: { identifier: label, success: true },+ success: true,+ };+ } catch (error) {+ log('[TaskExecutor] deleteTask - error:', error);+ const message = error instanceof Error ? error.message : 'Failed to delete task';+ return {+ content: `Failed to delete task: ${message}`,+ error: { message, type: 'DeleteTaskFailed' },+ success: false,+ };+ }+ };++ editTask = async (+ params: {+ addDependencies?: string[];+ description?: string;+ identifier: string;+ instruction?: string;+ name?: string;+ priority?: number;+ removeDependencies?: string[];+ },+ _ctx?: BuiltinToolContext,+ ): Promise<BuiltinToolResult> => {+ try {+ log('[TaskExecutor] editTask - params:', params);++ const { identifier, addDependencies, removeDependencies } = params;+ const store = getTaskStoreState();+ const changes: string[] = [];+ const ops: Promise<unknown>[] = [];++ const updateData: {+ description?: string;+ instruction?: string;+ name?: string;+ priority?: number;+ } = {};+ if (params.name !== undefined) {+ updateData.name = params.name;+ changes.push(`name → "${params.name}"`);+ }+ if (params.instruction !== undefined) {+ updateData.instruction = params.instruction;+ changes.push('instruction updated');+ }+ if (params.description !== undefined) {+ updateData.description = params.description;+ changes.push('description updated');+ }+ if (params.priority !== undefined) {+ updateData.priority = params.priority;+ changes.push(`priority → ${priorityLabel(params.priority)}`);+ }++ if (Object.keys(updateData).length > 0) {+ ops.push(store.updateTask(identifier, updateData));+ }++ if (addDependencies?.length) {+ addDependencies.forEach((dep) => {+ ops.push(store.addDependency(identifier, dep));+ changes.push(formatDependencyAdded(identifier, dep));+ });+ }+ if (removeDependencies?.length) {+ removeDependencies.forEach((dep) => {+ ops.push(store.removeDependency(identifier, dep));+ changes.push(formatDependencyRemoved(identifier, dep));+ });+ }++ await Promise.all(ops);++ return {+ content: formatTaskEdited(identifier, changes),+ state: { identifier, success: true },+ success: true,+ };+ } catch (error) {+ log('[TaskExecutor] editTask - error:', error);+ const message = error instanceof Error ? error.message : 'Failed to edit task';+ return {+ content: `Failed to edit task: ${message}`,+ error: { message, type: 'EditTaskFailed' },+ success: false,+ };+ }+ };++ listTasks = async (+ params: {+ assigneeAgentId?: string;+ limit?: number;+ offset?: number;+ parentIdentifier?: string;+ priorities?: number[];+ statuses?: TaskStatus[];+ },+ ctx?: BuiltinToolContext,+ ): Promise<BuiltinToolResult> => {+ try {+ log('[TaskExecutor] listTasks - params:', params);++ const normalized = normalizeListTasksParams(params, {+ currentAgentId: ctx?.agentId,+ });++ const result = await getTaskStoreState().fetchTaskList(normalized.query);++ const tasks = result.data ?? [];++ return {+ content: formatTaskList(tasks, normalized.displayFilters),+ state: { count: tasks.length, success: true, total: result.total },+ success: true,+ };+ } catch (error) {+ log('[TaskExecutor] listTasks - error:', error);+ const message = error instanceof Error ? error.message : 'Failed to list tasks';+ return {+ content: `Failed to list tasks: ${message}`,+ error: { message, type: 'ListTasksFailed' },+ success: false,+ };+ }+ };++ updateTaskStatus = async (+ params: { error?: string; identifier?: string; status: TaskStatus },+ _ctx?: BuiltinToolContext,+ ): Promise<BuiltinToolResult> => {+ try {+ log('[TaskExecutor] updateTaskStatus - params:', params);++ const id = await getTaskStoreState().updateTaskStatus(params.identifier, params.status, {+ error: params.error,+ });++ return {+ content:+ params.status === 'failed' && params.error+ ? `Task ${id} status updated to failed. Error: ${params.error}`+ : `Task ${id} status updated to ${params.status}.`,+ state: { status: params.status, success: true },+ success: true,+ };+ } catch (error) {+ log('[TaskExecutor] updateTaskStatus - error:', error);+ const message = error instanceof Error ? error.message : 'Failed to update task status';+ return {+ content: `Failed to update task status: ${message}`,+ error: { message, type: 'UpdateStatusFailed' },+ success: false,+ };+ }+ };++ viewTask = async (+ params: { identifier?: string },+ _ctx?: BuiltinToolContext,+ ): Promise<BuiltinToolResult> => {+ try {+ log('[TaskExecutor] viewTask - params:', params);++ const detail = await getTaskStoreState().fetchTaskDetail(params.identifier);++ return {+ content: formatTaskDetail(detail),+ state: { identifier: detail.identifier, success: true },+ success: true,+ };+ } catch (error) {+ log('[TaskExecutor] viewTask - error:', error);+ const message = error instanceof Error ? error.message : 'Failed to view task';+ return {+ content: `Failed to view task: ${message}`,+ error: { message, type: 'ViewTaskFailed' },+ success: false,+ };+ }+ };+}++export const taskExecutor = new TaskExecutor();diff --git a/packages/builtin-tool-task/src/index.ts b/packages/builtin-tool-task/src/index.tsindex 3aeac8a9fd1..555cb4b2fcc 100644--- a/packages/builtin-tool-task/src/index.ts+++ b/packages/builtin-tool-task/src/index.ts@@ -1,2 +1,8 @@+export { TASK_STATUSES, UNFINISHED_TASK_STATUSES } from './constants';+export {+ DEFAULT_LIST_TASK_LIMIT,+ normalizeListTasksParams,+ normalizeOptionalFilterValues,+} from './listTasks';export { TaskIdentifier, TaskManifest } from './manifest';export { TaskApiName } from './types';diff --git a/packages/builtin-tool-task/src/listTasks.ts b/packages/builtin-tool-task/src/listTasks.tsnew file mode 100644index 00000000000..262c8c3edda--- /dev/null+++ b/packages/builtin-tool-task/src/listTasks.ts@@ -0,0 +1,89 @@+import type { TaskStatus } from '@lobechat/types';++import { UNFINISHED_TASK_STATUSES } from './constants';++export const DEFAULT_LIST_TASK_LIMIT = 20;+const MAX_LIST_TASK_LIMIT = 100;++export interface ListTasksParams {+ assigneeAgentId?: string;+ limit?: number;+ offset?: number;+ parentIdentifier?: string;+ priorities?: number[];+ statuses?: TaskStatus[];+}++export interface TaskListQuery {+ assigneeAgentId?: string;+ limit: number;+ offset: number;+ parentIdentifier?: string;+ parentTaskId?: string | null;+ priorities?: number[];+ statuses?: TaskStatus[];+}++export interface TaskListDisplayFilters {+ assigneeAgentId?: string;+ isDefaultScope: boolean;+ isForCurrentAgent?: boolean;+ parentIdentifier?: string;+ priorities?: number[];+ statuses?: TaskStatus[];+}++interface NormalizeListTasksOptions {+ currentAgentId?: string;+}++export const normalizeOptionalFilterValues = <T>(values?: T[]) =>+ values?.length ? values : undefined;++const hasExplicitFilter = (params: ListTasksParams): boolean =>+ Boolean(+ params.parentIdentifier ||+ params.statuses?.length ||+ params.priorities?.length ||+ params.assigneeAgentId,+ );++/**+ * Normalize tool-facing listTasks params into concrete query args and display filters.+ */+export const normalizeListTasksParams = (+ params: ListTasksParams,+ options: NormalizeListTasksOptions = {},+): {+ displayFilters: TaskListDisplayFilters;+ query: TaskListQuery;+} => {+ const { currentAgentId } = options;+ const isDefaultScope = !hasExplicitFilter(params);+ const priorities = normalizeOptionalFilterValues(params.priorities);+ const statuses =+ normalizeOptionalFilterValues(params.statuses) ??+ (isDefaultScope ? [...UNFINISHED_TASK_STATUSES] : undefined);++ const assigneeAgentId = params.assigneeAgentId ?? (isDefaultScope ? currentAgentId : undefined);++ return {+ displayFilters: {+ assigneeAgentId,+ isDefaultScope,+ isForCurrentAgent: isDefaultScope && Boolean(currentAgentId),+ parentIdentifier: params.parentIdentifier,+ priorities,+ statuses,+ },+ query: {+ assigneeAgentId,+ limit: Math.min(params.limit ?? DEFAULT_LIST_TASK_LIMIT, MAX_LIST_TASK_LIMIT),+ offset: params.offset ?? 0,+ parentIdentifier: params.parentIdentifier,+ parentTaskId: isDefaultScope ? null : undefined,+ priorities,+ statuses,+ },+ };+};diff --git a/packages/builtin-tool-task/src/manifest.ts b/packages/builtin-tool-task/src/manifest.tsindex 8ec611e6fb2..51dd468569c 100644--- a/packages/builtin-tool-task/src/manifest.ts+++ b/packages/builtin-tool-task/src/manifest.ts@@ -1,5 +1,7 @@import type { BuiltinToolManifest } from '@lobechat/types';+import { TASK_STATUSES, UNFINISHED_TASK_STATUSES } from './constants';+import { DEFAULT_LIST_TASK_LIMIT } from './listTasks';import { systemPrompt } from './systemRole';import { TaskApiName } from './types';@@ -10,7 +12,7 @@ export const TaskManifest: BuiltinToolManifest = {// ==================== Task CRUD ===================={description:- 'Create a new task. Optionally attach it as a subtask by specifying parentIdentifier. Review config is inherited from parent task by default.',+ 'Create a new task. Optionally attach it as a subtask by specifying parentIdentifier.',name: TaskApiName.createTask,parameters: {properties: {@@ -24,7 +26,7 @@ export const TaskManifest: BuiltinToolManifest = {},parentIdentifier: {description:- 'Identifier of the parent task (e.g. "TASK-1"). If provided, the new task becomes a subtask. Defaults to the current task if omitted.',+ 'Identifier of the parent task (e.g. "TASK-1"). If provided, the new task becomes a subtask.',type: 'string',},priority: {@@ -36,34 +38,6 @@ export const TaskManifest: BuiltinToolManifest = {'Sort order within parent task. Lower values appear first. Use to control display order (e.g. chapter 1=0, chapter 2=1, etc.).',type: 'number',},- review: {- description:- 'Review config. If omitted, inherits from parent task. Set to configure LLM-as-Judge auto-review.',- properties: {- autoRetry: {- description: 'Auto-retry on failure. Default true.',- type: 'boolean',- },- criteria: {- description: 'Review criteria with name and threshold (0-100).',- items: {- properties: {- name: { description: 'Criterion name, e.g. "内容准确性"', type: 'string' },- threshold: { description: 'Pass threshold (0-100)', type: 'number' },- },- required: ['name', 'threshold'],- type: 'object',- },- type: 'array',- },- enabled: { description: 'Enable review. Default false.', type: 'boolean' },- maxIterations: {- description: 'Max review iterations. Default 3.',- type: 'number',- },- },- type: 'object',- },},required: ['name', 'instruction'],type: 'object',@@ -71,20 +45,35 @@ export const TaskManifest: BuiltinToolManifest = {},{description:- 'List tasks with optional filters. Without filters, lists subtasks of the current task.',+ 'List tasks. Without any filters, returns top-level unfinished tasks of the current agent. If you provide any filter, omitted filters are not applied implicitly.',name: TaskApiName.listTasks,parameters: {properties: {- parentIdentifier: {+ assigneeAgentId: {description:- 'List subtasks of a specific parent task. Defaults to the current task if omitted.',+ 'Restrict to tasks assigned to this agent. When omitted, no assignee filter is applied unless listTasks is called without any filters, which defaults to the current agent.',type: 'string',},- status: {- description: 'Filter by status.',- enum: ['backlog', 'running', 'paused', 'completed', 'failed', 'canceled'],+ limit: { description: `Max 1-100. Default ${DEFAULT_LIST_TASK_LIMIT}.`, type: 'number' },+ offset: { description: 'Pagination offset.', type: 'number' },+ parentIdentifier: {+ description:+ 'List subtasks of this parent (e.g. "TASK-1"). When omitted, no parent filter is applied unless listTasks is called without any filters, which defaults to top-level tasks.',type: 'string',},+ priorities: {+ description: 'Filter by priority values. 0=none, 1=urgent, 2=high, 3=normal, 4=low.',+ items: { enum: [0, 1, 2, 3, 4], type: 'number' },+ type: 'array',+ },+ statuses: {+ description: `Filter by statuses. When omitted, no status filter is applied unless listTasks is called without any filters, which defaults to [${UNFINISHED_TASK_STATUSES.map((s) => `"${s}"`).join(', ')}].`,+ items: {+ enum: [...TASK_STATUSES],+ type: 'string',+ },+ type: 'array',+ },},required: [],type: 'object',@@ -92,13 +81,13 @@ export const TaskManifest: BuiltinToolManifest = {},{description:- 'View details of a specific task. If no identifier is provided, returns the current task.',+ 'View details of a specific task. If identifier is omitted, this only works when there is a current task context.',name: TaskApiName.viewTask,parameters: {properties: {identifier: {description:- 'The task identifier to view (e.g. "TASK-1"). Defaults to the current task if omitted.',+ 'The task identifier to view (e.g. "TASK-1"). If omitted, the current task is used only when a current task context exists.',type: 'string',},},@@ -108,13 +97,19 @@ export const TaskManifest: BuiltinToolManifest = {},{description:- "Edit a task's name, instruction, priority, or dependencies. Use addDependency/removeDependency to manage execution order.",+ "Edit a task's fields (name, description, instruction, priority) or dependencies (batched). Status changes go through updateTaskStatus.",name: TaskApiName.editTask,parameters: {properties: {- addDependency: {+ addDependencies: {description:- 'Add a dependency — this task will block until the specified task completes. Provide the identifier (e.g. "TASK-2").',+ 'Identifiers of tasks this task should block on (e.g. ["TASK-2", "TASK-3"]).',+ items: { type: 'string' },+ type: 'array',+ },+ description: {+ description:+ 'Human-readable description (displayed in UI). Separate from instruction, which guides the agent.',type: 'string',},identifier: {@@ -133,29 +128,10 @@ export const TaskManifest: BuiltinToolManifest = {description: 'Updated priority level: 0=none, 1=urgent, 2=high, 3=normal, 4=low.',type: 'number',},- removeDependency: {- description: 'Remove a dependency. Provide the identifier of the dependency to remove.',- type: 'string',- },- review: {- description: 'Update review config.',- properties: {- autoRetry: { type: 'boolean' },- criteria: {- items: {- properties: {- name: { type: 'string' },- threshold: { type: 'number' },- },- required: ['name', 'threshold'],- type: 'object',- },- type: 'array',- },- enabled: { type: 'boolean' },- maxIterations: { type: 'number' },- },- type: 'object',+ removeDependencies: {+ description: 'Identifiers of existing dependencies to remove.',+ items: { type: 'string' },+ type: 'array',},},required: ['identifier'],@@ -164,18 +140,23 @@ export const TaskManifest: BuiltinToolManifest = {},{description:- "Update a task's status. Use to mark tasks as completed, canceled, or change lifecycle state. Defaults to the current task if no identifier provided.",+ "Update a task's status. Use to mark tasks as completed, canceled, paused, resumed, or failed. If identifier is omitted, this only works when there is a current task context.",name: TaskApiName.updateTaskStatus,parameters: {properties: {+ error: {+ description: 'Failure reason to store on the task. Only valid when status is "failed".',+ type: 'string',+ },identifier: {description:- 'The task identifier (e.g. "TASK-1"). Defaults to the current task if omitted.',+ 'The task identifier (e.g. "TASK-1"). If omitted, the current task is used only when a current task context exists.',type: 'string',},status: {- description: 'New status for the task.',- enum: ['backlog', 'running', 'paused', 'completed', 'failed', 'canceled'],+ description:+ 'New status for the task. Use error only when setting the status to failed.',+ enum: [...TASK_STATUSES],type: 'string',},},@@ -184,12 +165,13 @@ export const TaskManifest: BuiltinToolManifest = {},},{- description: 'Delete a task by identifier.',+ description:+ 'Permanently delete a task by identifier. Subtasks are NOT cascaded — they become top-level tasks after deletion. Dependencies, topics, pinned documents, comments, and briefs attached to the task are cascade-deleted. This action is irreversible.',name: TaskApiName.deleteTask,parameters: {properties: {identifier: {- description: 'The identifier of the task to delete.',+ description: 'The identifier of the task to delete (e.g. "TASK-1").',type: 'string',},},@@ -201,7 +183,7 @@ export const TaskManifest: BuiltinToolManifest = {identifier: TaskIdentifier,meta: {avatar: '\uD83D\uDCCB',- description: 'Create, list, edit, delete tasks with dependencies and review config',+ description: 'Create, list, edit, delete tasks with dependencies',title: 'Task Tools',},systemRole: systemPrompt,diff --git a/packages/builtin-tool-task/src/systemRole.ts b/packages/builtin-tool-task/src/systemRole.tsindex 46e9196d5c4..a57985bb47c 100644--- a/packages/builtin-tool-task/src/systemRole.ts+++ b/packages/builtin-tool-task/src/systemRole.ts@@ -1,14 +1,13 @@export const systemPrompt = `You have access to Task management tools. Use them to:-- **createTask**: Create a new task. Use parentIdentifier to make it a subtask. Review config is inherited from parent by default, or specify custom review criteria-- **listTasks**: List tasks, optionally filtered by parent or status-- **viewTask**: View details of a specific task (defaults to your current task)-- **editTask**: Modify a task's name, instruction, priority, dependencies (addDependency/removeDependency), or review config-- **updateTaskStatus**: Change a task's status (e.g. mark as completed when done, or cancel if no longer needed)-- **deleteTask**: Delete a task+- **createTask**: Create a new task. Use parentIdentifier to make it a subtask+- **listTasks**: List tasks. With no filters, defaults to top-level unfinished tasks of the current agent. If you provide any filter, omitted filters are not applied implicitly+- **viewTask**: View details of a specific task. Omitting identifier only works when there is a current task context+- **editTask**: Modify a task's fields (name, description, instruction, priority) or dependencies (addDependencies/removeDependencies, batch). For status changes use updateTaskStatus+- **updateTaskStatus**: Change a task's status. If you mark a task as failed, include an error message explaining why. Omitting identifier only works when there is a current task context+- **deleteTask**: Delete a task. Subtasks become top-level (not cascaded); dependencies/topics/comments cascade-delete; irreversibleWhen planning work:1. Create tasks for each major piece of work (use parentIdentifier to organize as subtasks)-2. Use editTask with addDependency to control execution order-3. Configure review criteria on tasks that need quality gates-4. Use updateTaskStatus to mark the current task as completed when you finish all work`;+2. Use editTask with addDependencies to control execution order+3. Use updateTaskStatus to mark the current task as completed when you finish all work`;diff --git a/packages/builtin-tool-task/src/types.ts b/packages/builtin-tool-task/src/types.tsindex 75e55346ae3..b6749a162a3 100644--- a/packages/builtin-tool-task/src/types.ts+++ b/packages/builtin-tool-task/src/types.ts@@ -5,7 +5,7 @@ export const TaskApiName = {/** Delete a task */deleteTask: 'deleteTask',- /** Edit a task's name, instruction, priority, dependencies, or review config */+ /** Edit a task's name, description, instruction, priority, or dependencies */editTask: 'editTask',/** List tasks with optional filters */diff --git a/packages/builtin-tools/src/index.ts b/packages/builtin-tools/src/index.tsindex 5e545a494e7..4a9b5a73255 100644--- a/packages/builtin-tools/src/index.ts+++ b/packages/builtin-tools/src/index.ts@@ -42,6 +42,7 @@ export const defaultToolIds = [TopicReferenceManifest.identifier,AgentDocumentsManifest.identifier,GTDManifest.identifier,+ TaskManifest.identifier,];/**@@ -246,14 +247,14 @@ export const builtinTools: LobeBuiltinTool[] = [},];-/**- * Non-hidden builtin tools that are NOT in RECOMMENDED_SKILLS.- * These tools default to uninstalled and must be explicitly installed by the user from the Skill Store.- */const recommendedBuiltinIds = new Set(RECOMMENDED_SKILLS.filter((s) => s.type === RecommendedSkillType.Builtin).map((s) => s.id),);+/**+ * Non-hidden builtin tools that are NOT in RECOMMENDED_SKILLS.+ * These tools default to uninstalled and must be explicitly installed by the user from the Skill Store.+ */export const defaultUninstalledBuiltinTools = builtinTools.filter((t) => !t.hidden && !recommendedBuiltinIds.has(t.identifier)).map((t) => t.identifier);diff --git a/packages/context-engine/src/engine/messages/MessagesEngine.ts b/packages/context-engine/src/engine/messages/MessagesEngine.tsindex 5812fd588e8..b6b361eb004 100644--- a/packages/context-engine/src/engine/messages/MessagesEngine.ts+++ b/packages/context-engine/src/engine/messages/MessagesEngine.ts@@ -48,6 +48,7 @@ import {SkillContextProvider,SystemDateProvider,SystemRoleInjector,+ TaskManagerContextInjector,ToolDiscoveryProvider,ToolSystemRoleProvider,TopicReferenceContextInjector,@@ -337,6 +338,11 @@ export class MessagesEngine {}: undefined),}),+ // Task Manager page context (inject current tasks list/detail to last user message)+ new TaskManagerContextInjector({+ contextPrompt: initialContext?.taskManager?.contextPrompt,+ enabled: !!initialContext?.taskManager?.contextPrompt,+ }),// GTD Todo (at end of last user message)new GTDTodoInjector({ enabled: !!isGTDTodoEnabled, todos: gtd?.todos }),// Topic Reference context (referenced topic summaries to last user message)diff --git a/packages/context-engine/src/providers/TaskManagerContextInjector.ts b/packages/context-engine/src/providers/TaskManagerContextInjector.tsnew file mode 100644index 00000000000..a5e2aaa1b22--- /dev/null+++ b/packages/context-engine/src/providers/TaskManagerContextInjector.ts@@ -0,0 +1,64 @@+import debug from 'debug';++import { BaseLastUserContentProvider } from '../base/BaseLastUserContentProvider';+import type { PipelineContext, ProcessorOptions } from '../types';++declare module '../types' {+ interface PipelineContextMetadataOverrides {+ taskManagerContextInjected?: boolean;+ }+}++const log = debug('context-engine:provider:TaskManagerContextInjector');++export interface TaskManagerContextInjectorConfig {+ contextPrompt?: string;+ enabled?: boolean;+}++/**+ * Appends Task Manager page context (list or detail) to the last user message.+ */+export class TaskManagerContextInjector extends BaseLastUserContentProvider {+ readonly name = 'TaskManagerContextInjector';++ constructor(+ private config: TaskManagerContextInjectorConfig,+ options: ProcessorOptions = {},+ ) {+ super(options);+ }++ protected async doProcess(context: PipelineContext): Promise<PipelineContext> {+ log('doProcess: enabled=%s hasPrompt=%s', this.config.enabled, !!this.config.contextPrompt);++ const clonedContext = this.cloneContext(context);++ if (!this.config.enabled || !this.config.contextPrompt) {+ log('No Task Manager context, skipping injection');+ return this.markAsExecuted(clonedContext);+ }++ const lastUserIndex = this.findLastUserMessageIndex(clonedContext.messages);++ log('Last user message index:', lastUserIndex);++ if (lastUserIndex === -1) {+ log('No user messages found, skipping injection');+ return this.markAsExecuted(clonedContext);+ }++ const hasExistingWrapper = this.hasExistingSystemContext(clonedContext);+ const contentToAppend = hasExistingWrapper+ ? this.createContextBlock(this.config.contextPrompt, 'task_manager_context')+ : this.wrapWithSystemContext(this.config.contextPrompt, 'task_manager_context');++ this.appendToLastUserMessage(clonedContext, contentToAppend);++ clonedContext.metadata.taskManagerContextInjected = true;++ log('Task Manager context appended to last user message');++ return this.markAsExecuted(clonedContext);+ }+}diff --git a/packages/context-engine/src/providers/index.ts b/packages/context-engine/src/providers/index.tsindex 1020c0e044c..302ec089108 100644--- a/packages/context-engine/src/providers/index.ts+++ b/packages/context-engine/src/providers/index.ts@@ -37,6 +37,7 @@ export {export { SkillContextProvider } from './SkillContextProvider';export { SystemDateProvider } from './SystemDateProvider';export { SystemRoleInjector } from './SystemRoleInjector';+export { TaskManagerContextInjector } from './TaskManagerContextInjector';export { ToolDiscoveryProvider } from './ToolDiscoveryProvider';export { ToolSystemRoleProvider } from './ToolSystemRole';export { TopicReferenceContextInjector } from './TopicReferenceContextInjector';@@ -98,6 +99,7 @@ export type { SelectedToolInjectorConfig } from './SelectedToolInjector';export type { SkillContextProviderConfig, SkillMeta } from './SkillContextProvider';export type { SystemDateProviderConfig } from './SystemDateProvider';export type { SystemRoleInjectorConfig } from './SystemRoleInjector';+export type { TaskManagerContextInjectorConfig } from './TaskManagerContextInjector';export type { ToolDiscoveryMeta, ToolDiscoveryProviderConfig } from './ToolDiscoveryProvider';export type { ToolSystemRoleConfig } from './ToolSystemRole';export type {diff --git a/packages/database/src/models/__tests__/task.test.ts b/packages/database/src/models/__tests__/task.test.tsindex ac68304f655..b5566d1c164 100644--- a/packages/database/src/models/__tests__/task.test.ts+++ b/packages/database/src/models/__tests__/task.test.ts@@ -119,6 +119,26 @@ describe('TaskModel', () => {expect(task2.seq).toBe(1);});+ it('should persist createdByAgentId when provided', async () => {+ const model = new TaskModel(serverDB, userId);+ await createAgent('agent-creator');+ const result = await model.create({+ createdByAgentId: 'agent-creator',+ instruction: 'Created via agent tool',+ });++ expect(result.createdByAgentId).toBe('agent-creator');+ expect(result.createdByUserId).toBe(userId);+ });++ it('should default createdByAgentId to null when omitted', async () => {+ const model = new TaskModel(serverDB, userId);+ const result = await model.create({ instruction: 'Created via UI' });++ expect(result.createdByAgentId).toBeNull();+ expect(result.createdByUserId).toBe(userId);+ });+it('should handle concurrent creates without seq collision', async () => {const model = new TaskModel(serverDB, userId);@@ -231,15 +251,28 @@ describe('TaskModel', () => {expect(tasks).toHaveLength(2);});- it('should filter by status', async () => {+ it('should filter by statuses', async () => {const model = new TaskModel(serverDB, userId);- const task = await model.create({ instruction: 'Task 1' });- await model.updateStatus(task.id, 'running', { startedAt: new Date() });- await model.create({ instruction: 'Task 2' });+ const t1 = await model.create({ instruction: 'Task 1' });+ await model.updateStatus(t1.id, 'running', { startedAt: new Date() });+ const t2 = await model.create({ instruction: 'Task 2' });+ await model.updateStatus(t2.id, 'paused');+ await model.create({ instruction: 'Task 3' }); // backlog- const { tasks } = await model.list({ status: 'running' });- expect(tasks).toHaveLength(1);- expect(tasks[0].status).toBe('running');+ const { tasks } = await model.list({ statuses: ['running', 'paused'] });+ expect(tasks).toHaveLength(2);+ expect(tasks.map((t) => t.status).sort()).toEqual(['paused', 'running']);+ });++ it('should filter by priorities', async () => {+ const model = new TaskModel(serverDB, userId);+ await model.create({ instruction: 'Urgent task', priority: 1 });+ await model.create({ instruction: 'High task', priority: 2 });+ await model.create({ instruction: 'Low task', priority: 4 });++ const { tasks } = await model.list({ priorities: [1, 2] });+ expect(tasks).toHaveLength(2);+ expect(tasks.map((t) => t.priority).sort()).toEqual([1, 2]);});it('should filter root tasks only', async () => {diff --git a/packages/database/src/models/__tests__/topics/topic.query.test.ts b/packages/database/src/models/__tests__/topics/topic.query.test.tsindex d7274763dfb..3aba30c3549 100644--- a/packages/database/src/models/__tests__/topics/topic.query.test.ts+++ b/packages/database/src/models/__tests__/topics/topic.query.test.ts@@ -208,6 +208,38 @@ describe('TopicModel - Query', () => {expect(ids).not.toContain('cron-topic');});+ it('should include only topics with specified triggers via includeTriggers', async () => {+ await serverDB.insert(topics).values([+ { id: 'normal-topic', sessionId, userId, title: 'Normal' },+ { id: 'cron-topic', sessionId, userId, title: 'Cron', trigger: 'cron' },+ { id: 'eval-topic', sessionId, userId, title: 'Eval', trigger: 'eval' },+ ]);++ const result = await topicModel.query({+ containerId: sessionId,+ includeTriggers: ['cron'],+ });++ expect(result.items).toHaveLength(1);+ expect(result.items[0].id).toBe('cron-topic');+ });++ it('should prioritize includeTriggers over excludeTriggers when both are provided', async () => {+ await serverDB.insert(topics).values([+ { id: 'cron-topic', sessionId, userId, title: 'Cron', trigger: 'cron' },+ { id: 'eval-topic', sessionId, userId, title: 'Eval', trigger: 'eval' },+ ]);++ const result = await topicModel.query({+ containerId: sessionId,+ excludeTriggers: ['cron'],+ includeTriggers: ['cron'],+ });++ expect(result.items).toHaveLength(1);+ expect(result.items[0].id).toBe('cron-topic');+ });+it('should only return topics with matching triggers when triggers is set', async () => {await serverDB.insert(topics).values([{ id: 'normal-topic', sessionId, userId, title: 'Normal' },diff --git a/packages/database/src/models/task.ts b/packages/database/src/models/task.tsindex d7d6b8d0d4e..267cae061b0 100644--- a/packages/database/src/models/task.ts+++ b/packages/database/src/models/task.ts@@ -219,13 +219,22 @@ export class TaskModel {limit?: number;offset?: number;parentTaskId?: string | null;- status?: string;+ priorities?: number[];+ statuses?: string[];}): Promise<{ tasks: TaskItem[]; total: number }> {- const { status, parentTaskId, assigneeAgentId, limit = 50, offset = 0 } = options || {};+ const {+ statuses,+ priorities,+ parentTaskId,+ assigneeAgentId,+ limit = 50,+ offset = 0,+ } = options || {};const conditions = [eq(tasks.createdByUserId, this.userId)];- if (status) conditions.push(eq(tasks.status, status));+ if (statuses?.length) conditions.push(inArray(tasks.status, statuses));+ if (priorities?.length) conditions.push(inArray(tasks.priority, priorities));if (assigneeAgentId) conditions.push(eq(tasks.assigneeAgentId, assigneeAgentId));if (parentTaskId === null) {@@ -683,4 +692,13 @@ export class TaskModel {.returning();return result.length > 0;}++ async updateComment(id: string, content: string): Promise<TaskCommentItem | undefined> {+ const [comment] = await this.db+ .update(taskComments)+ .set({ content, updatedAt: new Date() })+ .where(and(eq(taskComments.id, id), eq(taskComments.userId, this.userId)))+ .returning();+ return comment;+ }}diff --git a/packages/database/src/models/topic.ts b/packages/database/src/models/topic.tsindex 54a6cc2b4e3..3e207029b6f 100644--- a/packages/database/src/models/topic.ts+++ b/packages/database/src/models/topic.ts@@ -34,12 +34,18 @@ interface QueryTopicParams {excludeStatuses?: string[];/*** Exclude topics by trigger types (e.g. ['cron'])+ * Ignored when includeTriggers is provided.*/excludeTriggers?: string[];/*** Group ID to filter topics by*/groupId?: string | null;+ /**+ * Include only topics whose trigger matches one of these values.+ * Takes precedence over excludeTriggers when provided.+ */+ includeTriggers?: string[];/*** Whether this is an inbox agent query.* When true, also includes legacy inbox topics (sessionId IS NULL AND groupId IS NULL AND agentId IS NULL)@@ -73,14 +79,20 @@ export class TopicModel {current = 0,excludeStatuses,excludeTriggers,+ includeTriggers,pageSize = 9999,groupId,isInbox,triggers,}: QueryTopicParams = {}) => {const offset = current * pageSize;- const excludeTriggerCondition =- excludeTriggers && excludeTriggers.length > 0+ const includeTriggerCondition =+ includeTriggers && includeTriggers.length > 0+ ? inArray(topics.trigger, includeTriggers)+ : undefined;+ const excludeTriggerCondition = includeTriggerCondition+ ? undefined+ : excludeTriggers && excludeTriggers.length > 0? or(isNull(topics.trigger), not(inArray(topics.trigger, excludeTriggers))): undefined;const triggerCondition =@@ -98,6 +110,7 @@ export class TopicModel {const whereCondition = and(eq(topics.userId, this.userId),eq(topics.groupId, groupId),+ includeTriggerCondition,excludeTriggerCondition,triggerCondition,excludeStatusCondition,@@ -171,6 +184,7 @@ export class TopicModel {const agentWhere = and(eq(topics.userId, this.userId),agentCondition,+ includeTriggerCondition,excludeTriggerCondition,triggerCondition,excludeStatusCondition,@@ -207,6 +221,7 @@ export class TopicModel {const whereCondition = and(eq(topics.userId, this.userId),this.matchContainer(containerId),+ includeTriggerCondition,excludeTriggerCondition,triggerCondition,excludeStatusCondition,diff --git a/packages/openapi/src/services/topic.service.ts b/packages/openapi/src/services/topic.service.tsindex f326d28cbc3..056e64b2819 100644--- a/packages/openapi/src/services/topic.service.ts+++ b/packages/openapi/src/services/topic.service.ts@@ -1,4 +1,4 @@-import { and, count, desc, eq, ilike, isNull, notInArray } from 'drizzle-orm';+import { and, count, desc, eq, ilike, inArray, isNull, notInArray } from 'drizzle-orm';import { agentsToSessions, messages, topics, users } from '@/database/schemas';import type { LobeChatDatabase } from '@/database/type';@@ -65,8 +65,10 @@ export class TopicService extends BaseService {conditions.push(isNull(topics.agentId));}- // Exclude topics with specified trigger sources- if (request.excludeTriggers && request.excludeTriggers.length > 0) {+ // includeTriggers takes precedence over excludeTriggers when both are provided+ if (request.includeTriggers && request.includeTriggers.length > 0) {+ conditions.push(inArray(topics.trigger, request.includeTriggers));+ } else if (request.excludeTriggers && request.excludeTriggers.length > 0) {conditions.push(notInArray(topics.trigger, request.excludeTriggers));}diff --git a/packages/openapi/src/types/topic.type.ts b/packages/openapi/src/types/topic.type.tsindex fed3a31e479..9620065a6d4 100644--- a/packages/openapi/src/types/topic.type.ts+++ b/packages/openapi/src/types/topic.type.ts@@ -12,6 +12,7 @@ export interface TopicListQuery extends IPaginationQuery {agentId?: string | null;excludeTriggers?: string[];groupId?: string | null;+ includeTriggers?: string[];isInbox?: boolean;}@@ -20,6 +21,7 @@ export const TopicListQuerySchema = zagentId: z.string().nullish(),excludeTriggers: z.array(z.string()).optional(),groupId: z.string().nullish(),+ includeTriggers: z.array(z.string()).optional(),isInbox: z.string().optional()diff --git a/packages/prompts/src/prompts/task/__snapshots__/buildTaskDetailPrompt.test.ts.snap b/packages/prompts/src/prompts/task/__snapshots__/buildTaskDetailPrompt.test.ts.snapnew file mode 100644index 00000000000..08d163d9aef--- /dev/null+++ b/packages/prompts/src/prompts/task/__snapshots__/buildTaskDetailPrompt.test.ts.snap@@ -0,0 +1,56 @@+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html++exports[`buildTaskDetailPrompt > includes subtasks, dependencies, and review 1`] = `+"<page_context>The user is currently viewing the detail page of task T-3. When the user says "this task" or refers ambiguously, it means T-3.</page_context>+<task>+<hint>This tag contains the complete context of the task the user is viewing. Do NOT call viewTask to re-fetch it.</hint>+T-3 Chapter 3+Status: ● running Priority: high+Instruction: 写第3章 评测方法论+Description: 面向开发者+Agent: agt_xxx+Parent: T-1+Dependencies: completion: T-2++Subtasks:+ T-3-1 ✓ completed Draft+ T-3-2 ○ backlog Polish ← blocks: T-3-1++Review (maxIterations: 3):+ - Clarity [llm] ≥ 80%+</task>"+`;++exports[`buildTaskDetailPrompt > renders minimal task with page_context header 1`] = `+"<page_context>The user is currently viewing the detail page of task T-3. When the user says "this task" or refers ambiguously, it means T-3.</page_context>+<task>+<hint>This tag contains the complete context of the task the user is viewing. Do NOT call viewTask to re-fetch it.</hint>+T-3 Chapter 3+Status: ● running Priority: high+Instruction: 写第3章 评测方法论++Review: (not configured)+</task>"+`;++exports[`buildTaskDetailPrompt > renders workspace tree and activities timeline 1`] = `+"<page_context>The user is currently viewing the detail page of task T-3. When the user says "this task" or refers ambiguously, it means T-3.</page_context>+<task>+<hint>This tag contains the complete context of the task the user is viewing. Do NOT call viewTask to re-fetch it.</hint>+T-3 Chapter 3+Status: ● running Priority: high+Instruction: 写第3章 评测方法论++Review: (not configured)++Workspace (2):+ 📁 Drafts (doc_root)+ └── 📄 ch3.md (doc_ch3) 1200 chars++Activities:+ 💬 3h ago Topic #1 Outline ✓ completed tpc_001+ 📋 2h ago Brief [decision] 大纲通过 [normal] ✏️ approve brief_001+ 💭 1h ago 👤 user 需要加评测章节+ 💭 30m ago 🤖 agent 已添加评测章节+</task>"+`;diff --git a/packages/prompts/src/prompts/task/__snapshots__/buildTaskListPrompt.test.ts.snap b/packages/prompts/src/prompts/task/__snapshots__/buildTaskListPrompt.test.ts.snapnew file mode 100644index 00000000000..79a4af4eba5--- /dev/null+++ b/packages/prompts/src/prompts/task/__snapshots__/buildTaskListPrompt.test.ts.snap@@ -0,0 +1,40 @@+// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html++exports[`buildTaskListPrompt > notes truncation when total exceeds shown count 1`] = `+"<task_list>+<hint>The user is currently viewing the tasks list page. These are the 3 task(s) displayed in the UI. Do NOT call listTasks to re-fetch them.</hint>+Total: 120 (showing most recent 3)++ T-1 ○ backlog [normal] Task 1 2h ago+ T-2 ○ backlog [normal] Task 2 2h ago+ T-3 ○ backlog [normal] Task 3 2h ago++Only the most recent 3 tasks are shown above. Use the \`listTasks\` tool to query the full list of 120 tasks.+</task_list>"+`;++exports[`buildTaskListPrompt > omits created-at suffix when tasks lack createdAt 1`] = `+"<task_list>+<hint>The user is currently viewing the tasks list page. These are the 1 task(s) displayed in the UI. Do NOT call listTasks to re-fetch them.</hint>+Total: 1++ T-1 ○ backlog [-] Untimed+</task_list>"+`;++exports[`buildTaskListPrompt > renders a short list with total equal to shown count 1`] = `+"<task_list>+<hint>The user is currently viewing the tasks list page. These are the 2 task(s) displayed in the UI. Do NOT call listTasks to re-fetch them.</hint>+Total: 2++ T-1 ● running [high] Write chapter 1 3h ago+ T-2 ○ backlog [normal] Review outline 1d ago+</task_list>"+`;++exports[`buildTaskListPrompt > renders empty state when no tasks 1`] = `+"<task_list>+<hint>The user is currently viewing the tasks list page. These are the 0 task(s) displayed in the UI. Do NOT call listTasks to re-fetch them.</hint>+(no tasks)+</task_list>"+`;diff --git a/packages/prompts/src/prompts/task/buildTaskDetailPrompt.test.ts b/packages/prompts/src/prompts/task/buildTaskDetailPrompt.test.tsnew file mode 100644index 00000000000..c6f4484c96f--- /dev/null+++ b/packages/prompts/src/prompts/task/buildTaskDetailPrompt.test.ts@@ -0,0 +1,122 @@+import type { TaskDetailData } from '@lobechat/types';+import { describe, expect, it } from 'vitest';++import { buildTaskDetailPrompt } from './buildTaskDetailPrompt';++const NOW = new Date('2026-03-22T12:00:00Z');++const baseTask: TaskDetailData = {+ identifier: 'T-3',+ instruction: '写第3章 评测方法论',+ name: 'Chapter 3',+ priority: 2,+ status: 'running',+};++describe('buildTaskDetailPrompt', () => {+ it('renders minimal task with page_context header', () => {+ const result = buildTaskDetailPrompt({ task: baseTask }, NOW);++ expect(result).toMatchSnapshot();+ expect(result).toContain('<page_context>');+ expect(result).toContain('T-3');+ expect(result).toContain('<task>');+ expect(result).not.toContain('<high_priority_instruction>');+ });++ it('includes subtasks, dependencies, and review', () => {+ const result = buildTaskDetailPrompt(+ {+ task: {+ ...baseTask,+ description: '面向开发者',+ agentId: 'agt_xxx',+ parent: { identifier: 'T-1', name: 'Book' },+ dependencies: [{ dependsOn: 'T-2', type: 'completion' }],+ subtasks: [+ { identifier: 'T-3-1', name: 'Draft', status: 'completed' },+ { identifier: 'T-3-2', name: 'Polish', status: 'backlog', blockedBy: 'T-3-1' },+ ],+ review: {+ enabled: true,+ maxIterations: 3,+ rubrics: [{ name: 'Clarity', type: 'llm', threshold: 0.8 }],+ },+ },+ },+ NOW,+ );++ expect(result).toMatchSnapshot();+ expect(result).toContain('Parent: T-1');+ expect(result).toContain('Dependencies: completion: T-2');+ expect(result).toContain('Subtasks:');+ expect(result).toContain('Review (maxIterations: 3)');+ });++ it('renders workspace tree and activities timeline', () => {+ const result = buildTaskDetailPrompt(+ {+ task: {+ ...baseTask,+ workspace: [+ {+ documentId: 'doc_root',+ fileType: 'custom/folder',+ title: 'Drafts',+ children: [+ {+ documentId: 'doc_ch3',+ fileType: 'text/markdown',+ title: 'ch3.md',+ size: 1200,+ },+ ],+ },+ ],+ activities: [+ {+ type: 'topic',+ id: 'tpc_001',+ seq: 1,+ status: 'completed',+ time: '2026-03-22T09:00:00Z',+ title: 'Outline',+ },+ {+ type: 'brief',+ briefType: 'decision',+ id: 'brief_001',+ priority: 'normal',+ resolvedAction: 'approve',+ time: '2026-03-22T10:00:00Z',+ title: '大纲通过',+ },+ {+ type: 'comment',+ content: '需要加评测章节',+ time: '2026-03-22T11:00:00Z',+ },+ {+ type: 'comment',+ agentId: 'agt_xxx',+ content: '已添加评测章节',+ time: '2026-03-22T11:30:00Z',+ },+ ],+ },+ },+ NOW,+ );++ expect(result).toMatchSnapshot();+ expect(result).toContain('Workspace (2)');+ expect(result).toContain('📁');+ expect(result).toContain('📄');+ expect(result).toContain('Activities:');+ expect(result).toContain('💬');+ expect(result).toContain('📋');+ expect(result).toContain('👤 user');+ expect(result).toContain('🤖 agent');+ });+});diff --git a/packages/prompts/src/prompts/task/buildTaskDetailPrompt.ts b/packages/prompts/src/prompts/task/buildTaskDetailPrompt.tsnew file mode 100644index 00000000000..f88c23dd49a--- /dev/null+++ b/packages/prompts/src/prompts/task/buildTaskDetailPrompt.ts@@ -0,0 +1,127 @@+import type { TaskDetailData, TaskDetailWorkspaceNode } from './index';+import { briefIcon, priorityLabel, statusIcon, timeAgo } from './index';++export interface BuildTaskDetailPromptInput {+ task: TaskDetailData;+}++/**+ * Task detail prompt for Task Manager conversational reference.+ * Variant of `buildTaskRunPrompt` without `<high_priority_instruction>`.+ */+export const buildTaskDetailPrompt = (input: BuildTaskDetailPromptInput, now?: Date): string => {+ const { task } = input;+ const { activities, workspace } = task;++ const lines: string[] = [+ `<page_context>The user is currently viewing the detail page of task ${task.identifier}. When the user says "this task" or refers ambiguously, it means ${task.identifier}.</page_context>`,+ '<task>',+ `<hint>This tag contains the complete context of the task the user is viewing. Do NOT call viewTask to re-fetch it.</hint>`,+ `${task.identifier} ${task.name || '(unnamed)'}`,+ `Status: ${statusIcon(task.status)} ${task.status} Priority: ${priorityLabel(task.priority)}`,+ `Instruction: ${task.instruction}`,+ ];+ if (task.description) lines.push(`Description: ${task.description}`);+ if (task.agentId) lines.push(`Agent: ${task.agentId}`);+ if (task.parent) lines.push(`Parent: ${task.parent.identifier}`);+ if (task.topicCount) lines.push(`Topics: ${task.topicCount}`);++ if (task.dependencies && task.dependencies.length > 0) {+ lines.push(+ `Dependencies: ${task.dependencies.map((d) => `${d.type}: ${d.dependsOn}`).join(', ')}`,+ );+ }++ if (task.subtasks && task.subtasks.length > 0) {+ lines.push('');+ lines.push('Subtasks:');+ const renderSubtasks = (nodes: NonNullable<typeof task.subtasks>, indent: string) => {+ for (const s of nodes) {+ const dep = s.blockedBy ? ` ← blocks: ${s.blockedBy}` : '';+ lines.push(+ `${indent}${s.identifier} ${statusIcon(s.status)} ${s.status} ${s.name || '(unnamed)'}${dep}`,+ );+ if (s.children && s.children.length > 0) {+ renderSubtasks(s.children, indent + ' ');+ }+ }+ };+ renderSubtasks(task.subtasks, ' ');+ }++ lines.push('');+ if (task.review && Object.keys(task.review).length > 0) {+ const review = task.review as {+ maxIterations?: number;+ rubrics?: Array<{ name: string; threshold?: number; type: string }>;+ };+ lines.push(`Review (maxIterations: ${review.maxIterations || 3}):`);+ if (review.rubrics) {+ for (const r of review.rubrics) {+ lines.push(+ ` - ${r.name} [${r.type}]${r.threshold ? ` ≥ ${Math.round(r.threshold * 100)}%` : ''}`,+ );+ }+ }+ } else {+ lines.push('Review: (not configured)');+ }++ if (workspace && workspace.length > 0) {+ const countNodes = (nodes: TaskDetailWorkspaceNode[]): number =>+ nodes.reduce((sum, n) => sum + 1 + (n.children ? countNodes(n.children) : 0), 0);+ const total = countNodes(workspace);+ lines.push('');+ lines.push(`Workspace (${total}):`);++ const renderNodes = (nodes: TaskDetailWorkspaceNode[], indent: string, isChild: boolean) => {+ for (let i = 0; i < nodes.length; i++) {+ const node = nodes[i];+ const isFolder = node.fileType === 'custom/folder';+ const isLast = i === nodes.length - 1;+ const icon = isFolder ? '📁' : '📄';+ const connector = isChild ? (isLast ? '└── ' : '├── ') : '';+ const source = node.sourceTaskIdentifier ? ` ← ${node.sourceTaskIdentifier}` : '';+ const sizeStr = !isFolder && node.size ? ` ${node.size} chars` : '';+ lines.push(+ `${indent}${connector}${icon} ${node.title || 'Untitled'} (${node.documentId})${source}${sizeStr}`,+ );+ if (node.children) {+ const childIndent = isChild ? indent + (isLast ? ' ' : '│ ') : indent;+ renderNodes(node.children, childIndent, true);+ }+ }+ };+ renderNodes(workspace, ' ', false);+ }++ if (activities && activities.length > 0) {+ lines.push('');+ lines.push('Activities:');+ for (const act of activities) {+ const ago = act.time ? timeAgo(act.time, now) : '';+ const idSuffix = act.id ? ` ${act.id}` : '';+ if (act.type === 'topic') {+ const status = act.status || 'completed';+ lines.push(+ ` 💬 ${ago} Topic #${act.seq || '?'} ${act.title || 'Untitled'} ${statusIcon(status)} ${status}${idSuffix}`,+ );+ } else if (act.type === 'brief') {+ const resolved = act.resolvedAction ? ` ✏️ ${act.resolvedAction}` : '';+ const priStr = act.priority ? ` [${act.priority}]` : '';+ lines.push(+ ` ${briefIcon(act.briefType || '')} ${ago} Brief [${act.briefType}] ${act.title}${priStr}${resolved}${idSuffix}`,+ );+ } else if (act.type === 'comment') {+ const author = act.agentId ? '🤖 agent' : '👤 user';+ const content = act.content || '';+ const truncated = content.length > 200 ? content.slice(0, 200) + '...' : content;+ lines.push(` 💭 ${ago} ${author} ${truncated}`);+ }+ }+ }++ lines.push('</task>');++ return lines.join('\n');+};diff --git a/packages/prompts/src/prompts/task/buildTaskListPrompt.test.ts b/packages/prompts/src/prompts/task/buildTaskListPrompt.test.tsnew file mode 100644index 00000000000..24d65515f5e--- /dev/null+++ b/packages/prompts/src/prompts/task/buildTaskListPrompt.test.ts@@ -0,0 +1,72 @@+import { describe, expect, it } from 'vitest';++import { buildTaskListPrompt } from './buildTaskListPrompt';++const NOW = new Date('2026-03-22T12:00:00Z');++describe('buildTaskListPrompt', () => {+ it('renders empty state when no tasks', () => {+ const result = buildTaskListPrompt({ tasks: [], total: 0 }, NOW);+ expect(result).toMatchSnapshot();+ expect(result).toContain('(no tasks)');+ });++ it('renders a short list with total equal to shown count', () => {+ const result = buildTaskListPrompt(+ {+ tasks: [+ {+ identifier: 'T-1',+ name: 'Write chapter 1',+ priority: 2,+ status: 'running',+ createdAt: '2026-03-22T09:00:00Z',+ },+ {+ identifier: 'T-2',+ name: 'Review outline',+ priority: 3,+ status: 'backlog',+ createdAt: '2026-03-21T12:00:00Z',+ },+ ],+ total: 2,+ },+ NOW,+ );++ expect(result).toMatchSnapshot();+ expect(result).toContain('Total: 2');+ expect(result).not.toContain('most recent');+ });++ it('notes truncation when total exceeds shown count', () => {+ const tasks = Array.from({ length: 3 }, (_, i) => ({+ identifier: `T-${i + 1}`,+ name: `Task ${i + 1}`,+ priority: 3,+ status: 'backlog',+ createdAt: '2026-03-22T10:00:00Z',+ }));++ const result = buildTaskListPrompt({ tasks, total: 120 }, NOW);++ expect(result).toMatchSnapshot();+ expect(result).toContain('Total: 120 (showing most recent 3)');+ expect(result).toContain('Only the most recent 3 tasks');+ expect(result).toContain('`listTasks`');+ });++ it('omits created-at suffix when tasks lack createdAt', () => {+ const result = buildTaskListPrompt(+ {+ tasks: [{ identifier: 'T-1', name: 'Untimed', priority: null, status: 'backlog' }],+ total: 1,+ },+ NOW,+ );++ expect(result).toMatchSnapshot();+ expect(result).not.toContain('ago');+ });+});diff --git a/packages/prompts/src/prompts/task/buildTaskListPrompt.ts b/packages/prompts/src/prompts/task/buildTaskListPrompt.tsnew file mode 100644index 00000000000..20a5121c18d--- /dev/null+++ b/packages/prompts/src/prompts/task/buildTaskListPrompt.ts@@ -0,0 +1,46 @@+import type { TaskSummary } from './index';+import { priorityLabel, statusIcon, timeAgo } from './index';++export interface BuildTaskListPromptInput {+ tasks: Array<TaskSummary & { createdAt?: string | Date }>;+ total: number;+}++/**+ * Task list prompt for Task Manager conversational reference.+ */+export const buildTaskListPrompt = (input: BuildTaskListPromptInput, now?: Date): string => {+ const { tasks, total } = input;+ const shown = tasks.length;++ const lines: string[] = [+ '<task_list>',+ `<hint>The user is currently viewing the tasks list page. These are the ${shown} task(s) displayed in the UI. Do NOT call listTasks to re-fetch them.</hint>`,+ ];++ if (shown === 0) {+ lines.push('(no tasks)');+ } else {+ const countLine =+ total > shown ? `Total: ${total} (showing most recent ${shown})` : `Total: ${total}`;+ lines.push(countLine);+ lines.push('');+ for (const t of tasks) {+ const ago = t.createdAt+ ? ` ${timeAgo(typeof t.createdAt === 'string' ? t.createdAt : t.createdAt.toISOString(), now)}`+ : '';+ lines.push(+ ` ${t.identifier} ${statusIcon(t.status)} ${t.status} [${priorityLabel(t.priority)}] ${t.name || '(unnamed)'}${ago}`,+ );+ }+ if (total > shown) {+ lines.push('');+ lines.push(+ `Only the most recent ${shown} tasks are shown above. Use the \`listTasks\` tool to query the full list of ${total} tasks.`,+ );+ }+ }+ lines.push('</task_list>');++ return lines.join('\n');+};diff --git a/packages/prompts/src/prompts/task/index.ts b/packages/prompts/src/prompts/task/index.tsindex 9ca61d13bb0..8e4abdab31d 100644--- a/packages/prompts/src/prompts/task/index.ts+++ b/packages/prompts/src/prompts/task/index.ts@@ -1,4 +1,4 @@-import type { TaskDetailData, TaskDetailWorkspaceNode } from '@lobechat/types';+import type { TaskDetailData, TaskDetailWorkspaceNode, TaskStatus } from '@lobechat/types';// ── Formatting helpers for Task tool responses ──@@ -85,23 +85,48 @@ export const formatTaskCreated = (return lines.join('\n');};+export interface TaskListFilters {+ assigneeAgentId?: string;+ isDefaultScope?: boolean;+ isForCurrentAgent?: boolean;+ parentIdentifier?: string;+ priorities?: number[];+ statuses?: TaskStatus[];+}++const buildTaskListLabel = (filters: TaskListFilters): string => {+ if (filters.isDefaultScope) {+ return filters.isForCurrentAgent+ ? 'top-level unfinished tasks of the current agent'+ : 'top-level unfinished tasks';+ }++ const parts: string[] = [];+ if (filters.statuses?.length) parts.push(`status=[${filters.statuses.join(',')}]`);+ if (filters.priorities?.length) {+ parts.push(`priority=[${filters.priorities.map((p) => priorityLabel(p)).join(',')}]`);+ }+ if (filters.assigneeAgentId) parts.push(`agent=${filters.assigneeAgentId}`);++ if (filters.parentIdentifier) {+ return parts.length > 0+ ? `subtasks of ${filters.parentIdentifier} matching ${parts.join(', ')}`+ : `subtasks of ${filters.parentIdentifier}`;+ }++ return parts.length > 0 ? `tasks matching ${parts.join(', ')}` : 'tasks';+};+/*** Format task list response*/-export const formatTaskList = (- tasks: TaskSummary[],- parentLabel: string,- filter?: string,-): string => {+export const formatTaskList = (tasks: TaskSummary[], filters: TaskListFilters): string => {+ const label = buildTaskListLabel(filters);if (tasks.length === 0) {- const filterNote = filter ? ` with status "${filter}"` : '';- return `No subtasks found under ${parentLabel}${filterNote}.`;+ return `No ${label}.`;}- return [- `${tasks.length} task(s) under ${parentLabel}:`,- ...tasks.map((t) => ` ${formatTaskLine(t)}`),- ].join('\n');+ return [`${tasks.length} ${label}:`, ...tasks.map((t) => ` ${formatTaskLine(t)}`)].join('\n');};/**@@ -238,6 +263,12 @@ export const formatTaskDetail = (t: TaskDetailData): string => {export const formatTaskEdited = (identifier: string, changes: string[]): string =>`Task ${identifier} updated:\n ${changes.join('\n ')}`;+/**+ * Format deleteTask response+ */+export const formatTaskDeleted = (identifier: string, name?: string | null): string =>+ name ? `Task ${identifier} "${name}" has been deleted.` : `Task ${identifier} has been deleted.`;+/*** Format dependency change response*/@@ -578,4 +609,9 @@ export const buildTaskRunPrompt = (input: TaskRunPromptInput, now?: Date): strinreturn sections.join('\n\n');};-export { priorityLabel, statusIcon };+export { briefIcon, priorityLabel, statusIcon, timeAgo };++export type { BuildTaskDetailPromptInput } from './buildTaskDetailPrompt';+export { buildTaskDetailPrompt } from './buildTaskDetailPrompt';+export type { BuildTaskListPromptInput } from './buildTaskListPrompt';+export { buildTaskListPrompt } from './buildTaskListPrompt';diff --git a/packages/types/src/aiChat.ts b/packages/types/src/aiChat.tsindex 894c69af7de..4a312a3496f 100644--- a/packages/types/src/aiChat.ts+++ b/packages/types/src/aiChat.ts@@ -76,6 +76,7 @@ export interface SendMessageServerParams {metadata?: ChatTopicMetadata;title?: string;topicMessageIds?: string[];+ trigger?: string;};newUserMessage: SendNewMessage;preloadMessages?: SendPreloadMessage[];@@ -122,6 +123,7 @@ export const AiSendMessageServerSchema = z.object({metadata: z.custom<ChatTopicMetadata>().optional(),title: z.string().optional(),topicMessageIds: z.array(z.string()).optional(),+ trigger: z.string().optional(),}).optional(),preloadMessages: z.array(SendPreloadMessageSchema).optional(),diff --git a/packages/types/src/brief/index.ts b/packages/types/src/brief/index.tsindex ebc7e9e938b..fb0d69e0b31 100644--- a/packages/types/src/brief/index.ts+++ b/packages/types/src/brief/index.ts@@ -30,3 +30,6 @@ export const DEFAULT_BRIEF_ACTIONS: Record<string, BriefAction[]> = {{ key: 'feedback', label: '💬 修改意见', type: 'comment' },],};++/** Brief type — must match DEFAULT_BRIEF_ACTIONS keys and DB schema comment */+export type BriefType = 'decision' | 'error' | 'insight' | 'result';diff --git a/packages/types/src/conversation.ts b/packages/types/src/conversation.tsindex 8fe760b83c6..b2d187689ea 100644--- a/packages/types/src/conversation.ts+++ b/packages/types/src/conversation.ts@@ -128,6 +128,13 @@ export interface ConversationContext {* Used for optimistic updates*/isNew?: boolean;+ /**+ * When true, sendMessage will NOT update the global `useChatStore.activeTopicId`+ * after creating a new topic — the caller is responsible for tracking the new+ * topic id (e.g. via `ConversationHooks.onTopicCreated`). Used by isolated+ * panels (Task Manager) that maintain their own topic pointer.+ */+ isolatedTopic?: boolean;/*** Whether the current agent is the Supervisor in group orchestration* - Used to mark assistant messages with metadata.isSupervisor@@ -188,4 +195,15 @@ export interface ConversationContext {* When present, allows unauthenticated access to topic messages*/topicShareId?: string;+ /**+ * Trigger value applied when sendMessage creates a new topic from this+ * context (e.g. `'task_manager'`). Stamped on the topic row to support+ * page-specific filtering. Only consumed during new-topic creation.+ */+ topicTrigger?: string;+ /**+ * Task Manager page the user is currently viewing. When set, streamingExecutor+ * builds `RuntimeInitialContext.taskManager` from the task store.+ */+ viewedTask?: { type: 'list' } | { taskId: string; type: 'detail' };}diff --git a/packages/types/src/stepContext.ts b/packages/types/src/stepContext.tsindex 3cec4cb27c8..73d39a9d002 100644--- a/packages/types/src/stepContext.ts+++ b/packages/types/src/stepContext.ts@@ -221,4 +221,15 @@ export interface RuntimeInitialContext {* This constrains the available tools for the current runtime execution*/selectedTools?: RuntimeSelectedTool[];+ /**+ * Task Manager page context, built from the tasks list/detail page the user+ * is currently viewing. Injected into the last user message so the LLM can+ * answer questions about the on-screen tasks without extra tool calls.+ */+ taskManager?: InitialTaskManagerContext;+}++export interface InitialTaskManagerContext {+ /** Prebuilt prompt describing the tasks shown on the page. */+ contextPrompt: string;}diff --git a/packages/types/src/task/index.ts b/packages/types/src/task/index.tsindex d3e18a219bd..f2d7f9dea7b 100644--- a/packages/types/src/task/index.ts+++ b/packages/types/src/task/index.ts@@ -1,3 +1,16 @@+// ── Task type aliases ──++export type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';++export type TaskPriority = 0 | 1 | 2 | 3 | 4;++export type TaskActivityType = 'brief' | 'comment' | 'created' | 'topic';++// null = no automation+export type TaskAutomationMode = 'heartbeat' | 'schedule';++// ── Config types ──+export interface CheckpointConfig {onAgentRequest?: boolean;tasks?: {@@ -52,6 +65,7 @@ export interface TaskItem {accessedAt: Date;assigneeAgentId: string | null;assigneeUserId: string | null;+ automationMode: TaskAutomationMode | null;completedAt: Date | null;config: unknown;context: unknown;@@ -89,6 +103,7 @@ export interface NewTask {accessedAt?: Date;assigneeAgentId?: string | null;assigneeUserId?: string | null;+ automationMode?: TaskAutomationMode | null;completedAt?: Date | null;config?: unknown;context?: unknown;@@ -120,7 +135,15 @@ export interface NewTask {// ── Task Detail (shared across CLI, viewTask tool, task.detail router) ──+export interface TaskDetailSubtaskAssignee {+ avatar: string | null;+ backgroundColor: string | null;+ id: string;+ title: string | null;+}+export interface TaskDetailSubtask {+ assignee?: TaskDetailSubtaskAssignee | null;blockedBy?: string;children?: TaskDetailSubtask[];identifier: string;@@ -176,13 +199,15 @@ export interface TaskDetailActivity {time?: string;title?: string;topicId?: string | null;- type: 'brief' | 'comment' | 'topic';+ type: TaskActivityType;userId?: string | null;}export interface TaskDetailData {activities?: TaskDetailActivity[];agentId?: string | null;+ // null/undefined = no automation configured+ automationMode?: TaskAutomationMode | null;checkpoint?: CheckpointConfig;config?: Record<string, unknown>;createdAt?: string;diff --git a/packages/types/src/topic/topic.ts b/packages/types/src/topic/topic.tsindex 127055f9cc3..394d64bb55d 100644--- a/packages/types/src/topic/topic.ts+++ b/packages/types/src/topic/topic.ts@@ -159,6 +159,7 @@ export interface CreateTopicParams {messages?: string[];sessionId?: string | null;title: string;+ trigger?: string;}export interface QueryTopicParams {@@ -170,12 +171,18 @@ export interface QueryTopicParams {excludeStatuses?: string[];/*** Exclude topics by trigger types (e.g. ['cron'])+ * Ignored when includeTriggers is provided.*/excludeTriggers?: string[];/*** Group ID to filter topics by*/groupId?: string | null;+ /**+ * Include only topics whose trigger matches one of these values.+ * Takes precedence over excludeTriggers when provided.+ */+ includeTriggers?: string[];/*** Whether this is an inbox agent query.* When true, also includes legacy inbox topics (sessionId IS NULL AND groupId IS NULL AND agentId IS NULL)diff --git a/scripts/create-test-tasks.js b/scripts/create-test-tasks.jsnew file mode 100644index 00000000000..13c265f5b73--- /dev/null+++ b/scripts/create-test-tasks.js@@ -0,0 +1,222 @@+// Usage: paste this entire script into the browser console on the dev page+// Make sure you're on a page under /agent/agt_6WyQVtc07VzM/++const agentId = 'agt_6WyQVtc07VzM';++const api = (path, json) =>+ fetch(`/trpc/lambda/${path}`, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ credentials: 'include',+ body: JSON.stringify({ json }),+ })+ .then((r) => r.json())+ .then((r) => r.result.data.json.data);++async function main() {+ // ════════════════════════════════════════+ // 1. 完整任务树(3层嵌套 + 混合状态)+ // ════════════════════════════════════════+ const root = await api('task.create', {+ name: 'Launch v2.0 Release',+ instruction:+ 'Coordinate all work for the v2.0 release including frontend, backend, and documentation.',+ priority: 1,+ assigneeAgentId: agentId,+ });+ await api('task.addComment', { id: root.id, content: 'Release target: end of April' });+ await api('task.addComment', {+ id: root.id,+ content: 'Kickoff meeting completed, all teams aligned',+ });++ // 子任务1:Frontend(有自己的3个子任务)+ const frontend = await api('task.create', {+ name: 'Frontend overhaul',+ instruction: 'Redesign all major pages with new component library.',+ priority: 2,+ parentTaskId: root.id,+ assigneeAgentId: agentId,+ });+ await api('task.create', {+ name: 'Migrate to new design tokens',+ instruction: 'Replace all hardcoded colors and spacing with design tokens',+ priority: 3,+ parentTaskId: frontend.id,+ assigneeAgentId: agentId,+ });+ await api('task.create', {+ name: 'Refactor dashboard page',+ instruction: 'Rewrite dashboard with new chart components',+ priority: 3,+ parentTaskId: frontend.id,+ assigneeAgentId: agentId,+ });+ await api('task.create', {+ name: 'Update settings page',+ instruction: 'Apply new form layout to settings',+ priority: 3,+ parentTaskId: frontend.id,+ assigneeAgentId: agentId,+ });++ // 子任务2:Backend(有2个子任务,1个已完成)+ const backend = await api('task.create', {+ name: 'Backend API v2',+ instruction: 'Implement v2 API endpoints with breaking changes.',+ priority: 2,+ parentTaskId: root.id,+ assigneeAgentId: agentId,+ });+ const authTask = await api('task.create', {+ name: 'New auth flow',+ instruction: 'Implement OAuth2 PKCE flow for public clients.',+ priority: 1,+ parentTaskId: backend.id,+ assigneeAgentId: agentId,+ });+ await api('task.updateStatus', { id: authTask.id, status: 'completed' });+ await api('task.create', {+ name: 'Rate limiting middleware',+ instruction: 'Add sliding window rate limiter to all v2 endpoints.',+ priority: 3,+ parentTaskId: backend.id,+ assigneeAgentId: agentId,+ });++ // 子任务3:叶子节点+ await api('task.create', {+ name: 'Write release notes',+ instruction: 'Draft user-facing release notes covering all v2 changes.',+ priority: 4,+ parentTaskId: root.id,+ assigneeAgentId: agentId,+ });++ // 子任务4:已完成+ const designReview = await api('task.create', {+ name: 'Design review',+ instruction: 'Review all new designs with the team.',+ priority: 3,+ parentTaskId: root.id,+ assigneeAgentId: agentId,+ });+ await api('task.updateStatus', { id: designReview.id, status: 'completed' });++ // ════════════════════════════════════════+ // 2. 紧急任务(无子任务)+ // ════════════════════════════════════════+ await api('task.create', {+ name: 'Fix production login bug',+ instruction:+ 'Users report 500 error when logging in with Google SSO. Check auth callback handler and session token generation.',+ priority: 1,+ assigneeAgentId: agentId,+ });++ // ════════════════════════════════════════+ // 3. 已完成的独立任务(带评论)+ // ════════════════════════════════════════+ const cicd = await api('task.create', {+ name: 'Setup CI/CD pipeline',+ instruction: 'Configure GitHub Actions for automated testing and deployment to staging.',+ priority: 3,+ assigneeAgentId: agentId,+ });+ await api('task.updateStatus', { id: cicd.id, status: 'completed' });+ await api('task.addComment', { id: cicd.id, content: 'Pipeline is live, all checks green' });++ // ════════════════════════════════════════+ // 4. 无优先级 backlog 任务+ // ════════════════════════════════════════+ await api('task.create', {+ name: 'Evaluate new database options',+ instruction:+ 'Research and compare PostgreSQL vs CockroachDB for multi-region deployment. Consider cost, latency, and migration effort.',+ priority: 0,+ assigneeAgentId: agentId,+ });++ // ════════════════════════════════════════+ // 5. Markdown 长描述任务+ // ════════════════════════════════════════+ await api('task.create', {+ name: 'Update API documentation',+ instruction: [+ '## Tasks',+ '',+ '- [ ] Update OpenAPI spec for v2 endpoints',+ '- [ ] Regenerate SDK clients',+ '- [ ] Add examples for new authentication flow',+ '- [ ] Review and publish',+ '',+ '## Notes',+ '',+ 'Prioritize the auth endpoints since partners are waiting on the docs.',+ '',+ '## References',+ '',+ '- Design doc: `docs/api-v2-design.md`',+ '- SDK repo: `lobehub/sdk-js`',+ ].join('\n'),+ priority: 4,+ assigneeAgentId: agentId,+ });++ // ════════════════════════════════════════+ // 6. 已取消的任务+ // ════════════════════════════════════════+ const canceled = await api('task.create', {+ name: 'Migrate to Redis cluster',+ instruction: 'Migrate from single Redis instance to Redis cluster for better availability.',+ priority: 3,+ assigneeAgentId: agentId,+ });+ await api('task.updateStatus', { id: canceled.id, status: 'canceled' });++ // ════════════════════════════════════════+ // 7. 简单父子关系(2个子任务)+ // ════════════════════════════════════════+ const okr = await api('task.create', {+ name: 'Q2 OKR planning',+ instruction: 'Plan Q2 objectives and key results for the engineering team.',+ priority: 2,+ assigneeAgentId: agentId,+ });+ await api('task.create', {+ name: 'Draft team OKRs',+ instruction: 'Each team lead drafts their OKR proposals.',+ priority: 3,+ parentTaskId: okr.id,+ assigneeAgentId: agentId,+ });+ await api('task.create', {+ name: 'Review with leadership',+ instruction: 'Present OKR drafts to leadership for alignment.',+ priority: 2,+ parentTaskId: okr.id,+ assigneeAgentId: agentId,+ });++ // ════════════════════════════════════════+ // Done+ // ════════════════════════════════════════+ console.log('✅ All test tasks created!');+ console.log('');+ console.log('Task tree:');+ console.log(` ${root.identifier} Launch v2.0 Release (Urgent)`);+ console.log(` ├─ ${frontend.identifier} Frontend overhaul (3 children)`);+ console.log(` ├─ ${backend.identifier} Backend API v2 (2 children, 1 done)`);+ console.log(' ├─ Write release notes (leaf)');+ console.log(` └─ ${designReview.identifier} Design review ✅`);+ console.log('');+ console.log('Standalone tasks:');+ console.log(' • Fix production login bug (Urgent)');+ console.log(` • ${cicd.identifier} Setup CI/CD pipeline ✅`);+ console.log(' • Evaluate new database options (No priority)');+ console.log(' • Update API documentation (Low, Markdown)');+ console.log(` • ${canceled.identifier} Migrate to Redis cluster ❌`);+ console.log(` • ${okr.identifier} Q2 OKR planning (2 children)`);+}++main().catch(console.error);diff --git a/src/config/featureFlags/schema.ts b/src/config/featureFlags/schema.tsindex 188f09444da..9baf72bddef 100644--- a/src/config/featureFlags/schema.ts+++ b/src/config/featureFlags/schema.ts@@ -31,6 +31,7 @@ export const FeatureFlagsSchema = z.object({// internal flagagent_onboarding: FeatureFlagValue.optional(),+ agent_task: FeatureFlagValue.optional(),cloud_promotion: FeatureFlagValue.optional(),// the flags below can only be used with commercial license@@ -78,6 +79,7 @@ export const DEFAULT_FEATURE_FLAGS: IFeatureFlags = {rag_eval: false,agent_onboarding: isDev,+ agent_task: isDev,cloud_promotion: false,market: true,@@ -110,6 +112,7 @@ export const mapFeatureFlagsEnvToState = (config: IFeatureFlags, userId?: stringenableKnowledgeBase: evaluateFeatureFlag(config.knowledge_base, userId),enableRAGEval: evaluateFeatureFlag(config.rag_eval, userId),enableAgentOnboarding: evaluateFeatureFlag(config.agent_onboarding, userId),+ enableAgentTask: evaluateFeatureFlag(config.agent_task, userId),showCloudPromotion: evaluateFeatureFlag(config.cloud_promotion, userId),diff --git a/src/const/topic.ts b/src/const/topic.tsnew file mode 100644index 00000000000..4630ae395f3--- /dev/null+++ b/src/const/topic.ts@@ -0,0 +1,26 @@+/**+ * Well-known `topic.trigger` values used to segment the same agent's topics+ * across different panels (Task Manager vs. main chat).+ */+export const TopicTrigger = {+ Cron: 'cron',+ Eval: 'eval',+ RunTask: 'run_task',+ TaskManager: 'task_manager',+} as const;++/**+ * Triggers to exclude from the main chat sidebar so page-owned topics+ * (cron jobs, evals, task manager) don't pollute the user's main history.+ */+export const MAIN_SIDEBAR_EXCLUDE_TRIGGERS: string[] = [+ TopicTrigger.Cron,+ TopicTrigger.Eval,+ TopicTrigger.TaskManager,+ TopicTrigger.RunTask,+];++/**+ * Triggers the Task Manager panel fetches.+ */+export const TASK_MANAGER_INCLUDE_TRIGGERS: string[] = [TopicTrigger.TaskManager];diff --git a/src/features/AgentHome/TaskList.tsx b/src/features/AgentHome/TaskList.tsxdeleted file mode 100644index fe78b930d45..00000000000--- a/src/features/AgentHome/TaskList.tsx+++ /dev/null@@ -1,69 +0,0 @@-'use client';--import { Block, Flexbox, Tag, Text } from '@lobehub/ui';-import { CheckSquareIcon } from 'lucide-react';-import { memo } from 'react';-import { useTranslation } from 'react-i18next';-import { useParams } from 'react-router-dom';-import useSWR from 'swr';--import { taskService } from '@/services/task';--import SectionHeader from './SectionHeader';--const STATUS_COLORS: Record<string, string> = {- completed: 'green',- failed: 'red',- in_progress: 'blue',- pending: 'default',- running: 'blue',-};--const AgentTaskList = memo(() => {- const { t } = useTranslation('chat');- const { aid } = useParams<{ aid: string }>();-- const { data: result, isLoading } = useSWR(aid ? ['agentHome.tasks', aid] : null, () =>- taskService.list({ assigneeAgentId: aid!, limit: 10 }),- );-- const tasks = result?.data;-- if (isLoading || !tasks || tasks.length === 0) return null;-- return (- <Flexbox gap={16}>- <SectionHeader icon={CheckSquareIcon} title={t('task.title')} />- <Flexbox gap={2}>- {tasks.map((task: any) => (- <Block clickable key={task.id} variant={'borderless'}>- <Flexbox- horizontal- align={'center'}- gap={12}- height={48}- justify={'space-between'}- paddingInline={12}- >- <Flexbox flex={1} gap={2} style={{ overflow: 'hidden' }}>- <Text ellipsis weight={500}>- {task.name || task.instruction}- </Text>- {task.description && (- <Text ellipsis fontSize={12} type={'secondary'}>- {task.description}- </Text>- )}- </Flexbox>- <Tag color={STATUS_COLORS[task.status] || 'default'} style={{ flexShrink: 0 }}>- {task.status}- </Tag>- </Flexbox>- </Block>- ))}- </Flexbox>- </Flexbox>- );-});--export default AgentTaskList;diff --git a/src/features/AgentHome/index.tsx b/src/features/AgentHome/index.tsxindex 15a22b60678..56310d27f11 100644--- a/src/features/AgentHome/index.tsx+++ b/src/features/AgentHome/index.tsx@@ -4,6 +4,7 @@ import { Flexbox } from '@lobehub/ui';import isEqual from 'fast-deep-equal';import { memo } from 'react';+import AgentTaskList from '@/features/AgentTaskList';import ToolAuthAlert from '@/routes/(main)/agent/features/Conversation/AgentWelcome/ToolAuthAlert';import { useAgentStore } from '@/store/agent';import { agentSelectors } from '@/store/agent/selectors';@@ -24,6 +25,7 @@ const AgentHome = memo(() => {{extra}{openingQuestions.length > 0 && <OpeningQuestions questions={openingQuestions} />}<ToolAuthAlert />+ <AgentTaskList /></Flexbox></>);diff --git a/src/features/AgentProfileCard/AgentProfilePopup.tsx b/src/features/AgentProfileCard/AgentProfilePopup.tsxnew file mode 100644index 00000000000..57e97a01ba3--- /dev/null+++ b/src/features/AgentProfileCard/AgentProfilePopup.tsx@@ -0,0 +1,224 @@+'use client';++import { type AgentItem } from '@lobechat/types';+import { ModelIcon } from '@lobehub/icons';+import { ActionIcon, Flexbox, Icon, Popover, Skeleton, Text } from '@lobehub/ui';+import { SkillsIcon } from '@lobehub/ui/icons';+import { createStaticStyles } from 'antd-style';+import { BookOpen, FileText, Settings } from 'lucide-react';+import { memo, type PropsWithChildren, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router-dom';+import useSWR from 'swr';++import ModelSelect from '@/features/ModelSelect';+import { agentService } from '@/services/agent';+import { useAgentGroupStore } from '@/store/agentGroup';++import AgentProfileCard from '.';++const styles = createStaticStyles(({ css, cssVar }) => ({+ footer: css`+ padding-block: 12px;+ padding-inline: 16px;+ border-block-start: 1px solid ${cssVar.colorBorderSecondary};+ `,+ section: css`+ padding-block: 12px;+ padding-inline: 16px;+ `,+ sectionTitle: css`+ margin-block-end: 8px;++ font-size: 11px;+ font-weight: 600;+ color: ${cssVar.colorTextTertiary};+ text-transform: uppercase;+ `,+ statItem: css`+ color: ${cssVar.colorTextSecondary};+ `,+ trigger: css`+ border-radius: ${cssVar.borderRadius};++ &[data-popup-open] {+ background: ${cssVar.colorFillTertiary};+ }+ `,+}));++type AgentPreview = Pick<+ AgentItem,+ 'avatar' | 'backgroundColor' | 'description' | 'model' | 'provider' | 'title'+>;++interface FetchedAgent extends Partial<AgentPreview> {+ files?: unknown[];+ id?: string;+ knowledgeBases?: unknown[];+ plugins?: string[];+}++interface AgentProfilePopupProps extends PropsWithChildren {+ /** Prefilled data for instant render; fetched data overrides once loaded. */+ agent?: Partial<AgentPreview>;+ agentId: string;+ /** When set, enables group-specific actions (settings nav + model change). */+ groupId?: string;+ trigger?: 'click' | 'hover';+}++const AgentProfilePopup = memo<AgentProfilePopupProps>(+ ({ agent, agentId, groupId, children, trigger = 'click' }) => {+ const { t } = useTranslation('chat');+ const navigate = useNavigate();+ const [open, setOpen] = useState(false);+ const [loading, setLoading] = useState(false);++ const updateMemberAgentConfig = useAgentGroupStore((s) => s.updateMemberAgentConfig);++ const { data: fetched, isLoading } = useSWR(+ open ? ['agentProfile', agentId] : null,+ () => agentService.getAgentConfigById(agentId) as Promise<FetchedAgent | null>,+ { revalidateOnFocus: false },+ );++ const merged: Partial<AgentPreview> = {+ avatar: fetched?.avatar ?? agent?.avatar,+ backgroundColor: fetched?.backgroundColor ?? agent?.backgroundColor,+ description: fetched?.description ?? agent?.description,+ model: fetched?.model ?? agent?.model,+ provider: fetched?.provider ?? agent?.provider,+ title: fetched?.title ?? agent?.title,+ };++ const handleModelChange = async (props: { model: string; provider: string }) => {+ if (!groupId) return;+ setLoading(true);+ try {+ await updateMemberAgentConfig(groupId, agentId, {+ model: props.model,+ provider: props.provider,+ });+ } finally {+ setLoading(false);+ }+ };++ const handleSettings = () => {+ if (!groupId) return;+ setOpen(false);+ navigate(`/group/${groupId}/profile?tab=${agentId}`);+ };++ const hasDisplay = Boolean(merged.title || merged.avatar || merged.description);+ const showSkeleton = !hasDisplay && isLoading;++ const pluginCount = fetched?.plugins?.length ?? 0;+ const knowledgeCount = fetched?.knowledgeBases?.length ?? 0;+ const fileCount = fetched?.files?.length ?? 0;+ const hasStats = pluginCount > 0 || knowledgeCount > 0 || fileCount > 0;++ const footerLoading = !groupId && isLoading && !fetched;++ const modelSection = groupId ? (+ merged.model && (+ <Flexbox className={styles.section} gap={4}>+ <div className={styles.sectionTitle}>{t('groupSidebar.agentProfile.model')}</div>+ <ModelSelect+ loading={loading}+ value={{ model: merged.model, provider: merged.provider ?? undefined }}+ onChange={handleModelChange}+ />+ </Flexbox>+ )+ ) : footerLoading ? (+ <Flexbox horizontal align={'center'} className={styles.footer} gap={14}>+ <Skeleton.Button active size={'small'} style={{ height: 16, width: 90 }} />+ <Skeleton.Button active size={'small'} style={{ height: 16, width: 60 }} />+ </Flexbox>+ ) : merged.model || hasStats ? (+ <Flexbox horizontal align={'center'} className={styles.footer} gap={14} wrap={'wrap'}>+ {merged.model && (+ <Flexbox horizontal align={'center'} className={styles.statItem} gap={6}>+ <ModelIcon model={merged.model} size={14} />+ <Text fontSize={12} type={'secondary'}>+ {merged.model}+ </Text>+ </Flexbox>+ )}+ {pluginCount > 0 && (+ <Flexbox horizontal align={'center'} className={styles.statItem} gap={4}>+ <Icon icon={SkillsIcon} size={13} />+ <Text fontSize={12} type={'secondary'}>+ {t('agentProfile.skills', { count: pluginCount })}+ </Text>+ </Flexbox>+ )}+ {knowledgeCount > 0 && (+ <Flexbox horizontal align={'center'} className={styles.statItem} gap={4}>+ <Icon icon={BookOpen} size={13} />+ <Text fontSize={12} type={'secondary'}>+ {t('agentProfile.knowledgeBases', { count: knowledgeCount })}+ </Text>+ </Flexbox>+ )}+ {fileCount > 0 && (+ <Flexbox horizontal align={'center'} className={styles.statItem} gap={4}>+ <Icon icon={FileText} size={13} />+ <Text fontSize={12} type={'secondary'}>+ {t('agentProfile.files', { count: fileCount })}+ </Text>+ </Flexbox>+ )}+ </Flexbox>+ ) : null;++ const content = showSkeleton ? (+ <div style={{ padding: 16, width: 280 }}>+ <Skeleton active avatar paragraph={{ rows: 2 }} />+ </div>+ ) : (+ <AgentProfileCard+ avatar={merged.avatar}+ backgroundColor={merged.backgroundColor}+ description={merged.description}+ loading={isLoading && !merged.description}+ title={merged.title || t('defaultSession', { ns: 'common' })}+ headerAction={+ groupId ? (+ <Flexbox horizontal align="center" justify="flex-end" style={{ paddingBlockStart: 0 }}>+ <ActionIcon+ icon={Settings}+ size="small"+ title={t('groupSidebar.agentProfile.settings')}+ onClick={handleSettings}+ />+ </Flexbox>+ ) : undefined+ }+ >+ {modelSection}+ </AgentProfileCard>+ );++ return (+ <Popover+ classNames={trigger === 'click' ? { trigger: styles.trigger } : undefined}+ content={content}+ nativeButton={false}+ open={open}+ placement={trigger === 'hover' ? 'top' : 'right'}+ trigger={trigger}+ styles={{+ content: { borderRadius: 12, overflow: 'hidden', padding: 0 },+ }}+ onOpenChange={setOpen}+ >+ {children}+ </Popover>+ );+ },+);++export default AgentProfilePopup;diff --git a/src/features/AgentProfileCard/index.tsx b/src/features/AgentProfileCard/index.tsxnew file mode 100644index 00000000000..e460176098d--- /dev/null+++ b/src/features/AgentProfileCard/index.tsx@@ -0,0 +1,123 @@+'use client';++import { Avatar, Center, Flexbox, Skeleton, Text, Tooltip } from '@lobehub/ui';+import { createStaticStyles, cssVar } from 'antd-style';+import { memo, type ReactNode } from 'react';++import { DEFAULT_AVATAR } from '@/const/meta';++const styles = createStaticStyles(({ css, cssVar }) => ({+ banner: css`+ position: relative;+ overflow: hidden;+ height: 60px;+ `,+ bannerInner: css`+ filter: blur(44px);+ `,+ container: css`+ overflow: hidden;+ width: 280px;+ background: ${cssVar.colorBgElevated};+ `,+ description: css`+ overflow: hidden;++ max-height: 80px;++ font-size: 12px;+ line-height: 1.5;+ color: ${cssVar.colorTextSecondary};+ text-overflow: ellipsis;+ `,+ descriptionSkeleton: css`+ .ant-skeleton-paragraph {+ margin-block-start: 4px !important;+ }++ .ant-skeleton-paragraph > li {+ height: 12px !important;+ }++ .ant-skeleton-paragraph > li + li {+ margin-block-start: 6px !important;+ }+ `,+ header: css`+ position: relative;+ margin-block-start: -24px;+ padding-inline: 16px;+ `,+ name: css`+ font-size: 16px;+ font-weight: 600;+ color: ${cssVar.colorText};+ `,+}));++export interface AgentProfileCardProps {+ avatar?: string | null;+ backgroundColor?: string | null;+ children?: ReactNode;+ description?: string | null;+ headerAction?: ReactNode;+ /** Show inline skeletons for fields that are still loading. */+ loading?: boolean;+ title: string;+}++const AgentProfileCard = memo<AgentProfileCardProps>(+ ({ avatar, backgroundColor, description, headerAction, loading, title, children }) => {+ return (+ <Flexbox className={styles.container}>+ <Center className={styles.banner} style={{ background: cssVar.colorFillTertiary }}>+ <Avatar+ emojiScaleWithBackground+ avatar={avatar || DEFAULT_AVATAR}+ background={backgroundColor ?? undefined}+ className={styles.bannerInner}+ shape={'square'}+ size={400}+ />+ </Center>++ <Flexbox className={styles.header} gap={8}>+ <Avatar+ emojiScaleWithBackground+ avatar={avatar || DEFAULT_AVATAR}+ background={backgroundColor ?? undefined}+ shape={'square'}+ size={48}+ style={{ border: `2px solid ${cssVar.colorBgElevated}` }}+ />+ <Flexbox gap={2}>+ <Flexbox horizontal align={'center'} justify={'space-between'}>+ <Text ellipsis className={styles.name}>+ {title}+ </Text>+ {headerAction}+ </Flexbox>+ {description ? (+ <Tooltip title={description}>+ <Text className={styles.description} ellipsis={{ rows: 2 }}>+ {description}+ </Text>+ </Tooltip>+ ) : loading ? (+ <Skeleton+ active+ className={styles.descriptionSkeleton}+ paragraph={{ rows: 2, width: ['100%', '60%'] }}+ title={false}+ />+ ) : null}+ </Flexbox>+ </Flexbox>++ {children}+ </Flexbox>+ );+ },+);++export default AgentProfileCard;diff --git a/src/features/AgentTaskList/index.tsx b/src/features/AgentTaskList/index.tsxnew file mode 100644index 00000000000..b4acefb0eaa--- /dev/null+++ b/src/features/AgentTaskList/index.tsx@@ -0,0 +1 @@+export { default } from '@/features/AgentTasks/features/AgentTaskCardList';diff --git a/src/features/AgentTaskManager/Conversation.tsx b/src/features/AgentTaskManager/Conversation.tsxnew file mode 100644index 00000000000..a44e5de7cd9--- /dev/null+++ b/src/features/AgentTaskManager/Conversation.tsx@@ -0,0 +1,144 @@+'use client';++import { type ConversationContext } from '@lobechat/types';+import { Flexbox, Text } from '@lobehub/ui';+import debug from 'debug';+import { memo, useEffect, useMemo } from 'react';+import { useTranslation } from 'react-i18next';+import { useMatch } from 'react-router-dom';++import DragUploadZone, { useUploadFiles } from '@/components/DragUploadZone';+import { TopicTrigger } from '@/const/topic';+import { actionMap } from '@/features/ChatInput/ActionBar/config';+import { ActionBarContext } from '@/features/ChatInput/ActionBar/context';+import {+ COMPACT_ACTION_BAR_CONTEXT,+ COMPACT_ACTION_BAR_STYLE,+ COMPACT_SEND_BUTTON_PROPS,+} from '@/features/ChatInput/compactPreset';+import { ChatInput, ChatList, ConversationProvider } from '@/features/Conversation';+import { type ConversationHooks } from '@/features/Conversation/types';+import CopilotModelSelect from '@/features/PageEditor/Copilot/CopilotModelSelect';+import { useOperationState } from '@/hooks/useOperationState';+import { useAgentStore } from '@/store/agent';+import { agentByIdSelectors } from '@/store/agent/selectors';+import { useChatStore } from '@/store/chat';+import { messageMapKey } from '@/store/chat/utils/messageMapKey';+import { useTaskChatStore } from '@/store/taskChat';++import Toolbar from './Toolbar';++const log = debug('lobe-render:agent-task-manager:Conversation');++const Search = actionMap['search'];++const EMPTY_LEFT_ACTIONS: [] = [];++const HOOKS: ConversationHooks = {+ onTopicCreated: (topicId: string) => useTaskChatStore.getState().onTopicCreated(topicId),+};++const Welcome = memo(() => {+ const { t } = useTranslation('topic');+ return (+ <Flexbox align={'center'} flex={1} justify={'center'} padding={24}>+ <Text style={{ fontSize: 15 }} type={'secondary'}>+ {t('taskManager.welcome')}+ </Text>+ </Flexbox>+ );+});++Welcome.displayName = 'Welcome';++const Conversation = memo(() => {+ const activeAgentId = useChatStore((s) => s.activeAgentId);+ const taskTopicId = useTaskChatStore((s) => s.activeTopicId);++ const model = useAgentStore((s) => agentByIdSelectors.getAgentModelById(activeAgentId)(s));+ const provider = useAgentStore((s) =>+ agentByIdSelectors.getAgentModelProviderById(activeAgentId)(s),+ );+ const { handleUploadFiles } = useUploadFiles({ model, provider });++ // Reset task topic when the route agent changes so a stale topicId from+ // the previous agent does not leak into this agent's messageMapKey.+ useEffect(() => {+ useTaskChatStore.getState().switchTopic(null);+ }, [activeAgentId]);++ const detailMatch = useMatch('/agent/:aid/tasks/:taskId');+ const isListRoute = !!useMatch('/agent/:aid/tasks');+ const viewedTaskId = detailMatch?.params.taskId;++ const context = useMemo<ConversationContext>(+ () => ({+ agentId: activeAgentId,+ isolatedTopic: true,+ scope: 'main',+ topicId: taskTopicId,+ topicTrigger: TopicTrigger.TaskManager,+ viewedTask: viewedTaskId+ ? { taskId: viewedTaskId, type: 'detail' }+ : isListRoute+ ? { type: 'list' }+ : undefined,+ }),+ [activeAgentId, taskTopicId, viewedTaskId, isListRoute],+ );++ const chatKey = messageMapKey(context);+ const replaceMessages = useChatStore((s) => s.replaceMessages);+ const messages = useChatStore((s) => s.dbMessagesMap[chatKey]);+ log('contextKey %s: %o', chatKey, messages);++ const operationState = useOperationState(context);++ const leftContent = useMemo(+ () => (+ <ActionBarContext value={COMPACT_ACTION_BAR_CONTEXT}>+ <Flexbox horizontal align={'center'} gap={2}>+ <Search />+ </Flexbox>+ </ActionBarContext>+ ),+ [],+ );++ const modelSelector = useMemo(() => <CopilotModelSelect />, []);++ return (+ <ConversationProvider+ context={context}+ hasInitMessages={!!messages}+ hooks={HOOKS}+ messages={messages}+ operationState={operationState}+ onMessagesChange={(msgs, ctx) => {+ replaceMessages(msgs, { context: ctx });+ }}+ >+ <DragUploadZone style={{ flex: 1, height: '100%' }} onUploadFiles={handleUploadFiles}>+ <Flexbox flex={1} height={'100%'} style={{ overflow: 'hidden' }}>+ <Toolbar />+ <Flexbox flex={1} style={{ overflow: 'hidden' }}>+ <ChatList welcome={<Welcome />} />+ </Flexbox>+ <ChatInput+ actionBarStyle={COMPACT_ACTION_BAR_STYLE}+ allowExpand={false}+ leftActions={EMPTY_LEFT_ACTIONS}+ leftContent={leftContent}+ sendAreaPrefix={modelSelector}+ sendButtonProps={COMPACT_SEND_BUTTON_PROPS}+ showRuntimeConfig={false}+ />+ </Flexbox>+ </DragUploadZone>+ </ConversationProvider>+ );+});++Conversation.displayName = 'Conversation';++export default Conversation;diff --git a/src/features/AgentTaskManager/Toolbar.tsx b/src/features/AgentTaskManager/Toolbar.tsxnew file mode 100644index 00000000000..39000452c25--- /dev/null+++ b/src/features/AgentTaskManager/Toolbar.tsx@@ -0,0 +1,121 @@+import { ActionIcon, Flexbox, Popover, Text } from '@lobehub/ui';+import { Clock3Icon, PanelRightCloseIcon, PlusIcon } from 'lucide-react';+import { memo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';+import { TASK_MANAGER_INCLUDE_TRIGGERS } from '@/const/topic';+import { conversationSelectors, useConversationStore } from '@/features/Conversation';+import NavHeader from '@/features/NavHeader';+import TopicItem from '@/features/PageEditor/Copilot/TopicSelector/TopicItem';+import { useGlobalStore } from '@/store/global';+import { useTaskChatStore } from '@/store/taskChat';++const Toolbar = memo(() => {+ const { t } = useTranslation('topic');+ const [topicPopoverOpen, setTopicPopoverOpen] = useState(false);+ const agentId = useConversationStore(conversationSelectors.agentId);++ useTaskChatStore((s) => s.useFetchTopics)(agentId, TASK_MANAGER_INCLUDE_TRIGGERS);++ const [activeTopicId, switchTopic] = useTaskChatStore((s) => [s.activeTopicId, s.switchTopic]);+ const topics = useTaskChatStore((s) => s.topics);++ const toggleRightPanel = useGlobalStore((s) => s.toggleRightPanel);++ const isLoadingTopics = topics === undefined;+ const topicTitle = topics?.find((topic) => topic.id === activeTopicId)?.title || t('title');+ const hasTopics = !!topics && topics.length > 0;++ const handleCreate = () => {+ switchTopic(null);+ };++ return (+ <NavHeader+ showTogglePanelButton={false}+ left={+ <Text+ style={{ fontSize: 13, fontWeight: 500, marginLeft: 8 }}+ type={'secondary'}+ ellipsis={{+ tooltipWhenOverflow: true,+ }}+ >+ {topicTitle}+ </Text>+ }+ right={+ <>+ <ActionIcon+ icon={PlusIcon}+ size={DESKTOP_HEADER_ICON_SIZE}+ title={t('actions.addNewTopic')}+ onClick={handleCreate}+ />+ <Popover+ open={isLoadingTopics ? false : topicPopoverOpen}+ placement="bottomRight"+ trigger="click"+ content={+ hasTopics ? (+ <Flexbox+ gap={4}+ padding={8}+ style={{+ maxHeight: '50vh',+ overflowY: 'auto',+ width: '100%',+ }}+ >+ {topics!.map((topic) => (+ <TopicItem+ active={topic.id === activeTopicId}+ key={topic.id}+ topicId={topic.id}+ topicTitle={topic.title}+ onClose={() => setTopicPopoverOpen(false)}+ onTopicChange={(id) => switchTopic(id)}+ onDelete={(deletedId) => {+ const store = useTaskChatStore.getState();+ void store.refreshTopics();+ if (store.activeTopicId === deletedId) store.switchTopic(null);+ }}+ />+ ))}+ </Flexbox>+ ) : (+ <Flexbox padding={16}>+ <Text type={'secondary'}>{t('temp')}</Text>+ </Flexbox>+ )+ }+ styles={{+ content: {+ padding: 0,+ width: 240,+ },+ }}+ onOpenChange={setTopicPopoverOpen}+ >+ <ActionIcon+ disabled={isLoadingTopics}+ icon={Clock3Icon}+ loading={isLoadingTopics}+ size={DESKTOP_HEADER_ICON_SIZE}+ />+ </Popover>+ <ActionIcon+ icon={PanelRightCloseIcon}+ size={DESKTOP_HEADER_ICON_SIZE}+ onClick={() => toggleRightPanel()}+ />+ </>+ }+ />+ );+});++Toolbar.displayName = 'Toolbar';++export default Toolbar;diff --git a/src/features/AgentTaskManager/index.tsx b/src/features/AgentTaskManager/index.tsxnew file mode 100644index 00000000000..e14224f5f94--- /dev/null+++ b/src/features/AgentTaskManager/index.tsx@@ -0,0 +1,28 @@+import { memo } from 'react';++import RightPanel from '@/features/RightPanel';++import Conversation from './Conversation';++/**+ * Tasks page right-side chat panel.+ *+ * Holds its own `activeTopicId` in `useTaskChatStore` so switching a task+ * topic here does not mutate the main chat's `activeTopicId`. Messages are+ * still read from `useChatStore.dbMessagesMap` via a distinct `messageMapKey`+ * derived from the isolated topic id.+ *+ * The parent `_layout` sets `scenarioEnabledToolIds` on the chat store so+ * `lobe-task` is available for every LLM step here.+ */+const AgentTaskManager = memo(() => {+ return (+ <RightPanel defaultWidth={420} maxWidth={720} minWidth={320}>+ <Conversation />+ </RightPanel>+ );+});++AgentTaskManager.displayName = 'AgentTaskManager';++export default AgentTaskManager;diff --git a/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx b/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsxnew file mode 100644index 00000000000..4988dab8788--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/CommentCard.tsx@@ -0,0 +1,159 @@+import type { TaskDetailActivity } from '@lobechat/types';+import { Editor, useEditor } from '@lobehub/editor/react';+import {+ ActionIcon,+ Avatar,+ Block,+ Button,+ type DropdownItem,+ DropdownMenu,+ Flexbox,+ Icon,+ Markdown,+ Text,+} from '@lobehub/ui';+import { App } from 'antd';+import { cssVar } from 'antd-style';+import dayjs from 'dayjs';+import { MessageCircle, MoreHorizontal, Pencil, Trash } from 'lucide-react';+import { memo, useCallback, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';++import { styles } from '../shared/style';++interface CommentCardProps {+ activity: TaskDetailActivity;+}++const CommentCard = memo<CommentCardProps>(({ activity }) => {+ const { t } = useTranslation('chat');+ const { modal } = App.useApp();+ const deleteComment = useTaskStore((s) => s.deleteComment);+ const updateComment = useTaskStore((s) => s.updateComment);++ const [isEditing, setIsEditing] = useState(false);+ const [submitting, setSubmitting] = useState(false);+ const editor = useEditor();++ const relTime = activity.time ? dayjs(activity.time).fromNow() : '';+ const content = activity.content || t('taskDetail.activities.fallback.comment');+ const commentId = activity.id;++ const handleEdit = useCallback(() => {+ setIsEditing(true);+ }, []);++ const handleCancel = useCallback(() => {+ setIsEditing(false);+ }, []);++ const handleSave = useCallback(async () => {+ if (!commentId) return;+ const next = String(editor?.getDocument?.('markdown') ?? '').trim();+ if (!next || submitting) return;+ setSubmitting(true);+ try {+ await updateComment(commentId, next);+ setIsEditing(false);+ } finally {+ setSubmitting(false);+ }+ }, [commentId, editor, submitting, updateComment]);++ const handleDelete = useCallback(() => {+ if (!commentId) return;+ modal.confirm({+ centered: true,+ content: t('taskDetail.comment.deleteConfirm.content'),+ okButtonProps: { danger: true },+ okText: t('taskDetail.comment.deleteConfirm.ok'),+ onOk: () => deleteComment(commentId),+ title: t('taskDetail.comment.deleteConfirm.title'),+ type: 'error',+ });+ }, [commentId, deleteComment, modal, t]);++ const menuItems = useMemo<DropdownItem[]>(+ () => [+ {+ icon: <Icon icon={Pencil} />,+ key: 'edit',+ label: t('taskDetail.comment.edit'),+ onClick: handleEdit,+ },+ {+ danger: true,+ icon: <Icon icon={Trash} />,+ key: 'delete',+ label: t('taskDetail.comment.delete'),+ onClick: handleDelete,+ },+ ],+ [t, handleEdit, handleDelete],+ );++ return (+ <Block+ className={styles.commentCard}+ gap={8}+ padding={12}+ style={{ borderRadius: cssVar.borderRadiusLG }}+ variant={'outlined'}+ >+ <Flexbox horizontal align={'center'} gap={8}>+ {activity.author?.avatar ? (+ <Avatar avatar={activity.author.avatar} size={24} />+ ) : (+ <div className={styles.activityAvatar}>+ <MessageCircle size={12} />+ </div>+ )}+ <Text weight={500}>+ {activity.author?.name || t('taskDetail.activities.fallback.comment')}+ </Text>+ {relTime && (+ <Text fontSize={12} type={'secondary'}>+ {relTime}+ </Text>+ )}+ </Flexbox>++ {isEditing ? (+ <>+ <Editor+ content={content}+ editor={editor}+ enablePasteMarkdown={false}+ markdownOption={false}+ type={'text'}+ variant={'chat'}+ />+ <Flexbox horizontal gap={8} justify={'flex-end'}>+ <Button disabled={submitting} size={'small'} onClick={handleCancel}>+ {t('taskDetail.comment.cancel')}+ </Button>+ <Button loading={submitting} size={'small'} type={'primary'} onClick={handleSave}>+ {t('taskDetail.comment.save')}+ </Button>+ </Flexbox>+ </>+ ) : (+ <Markdown fontSize={14} variant={'chat'}>+ {content}+ </Markdown>+ )}++ {!isEditing && commentId && (+ <div className={`${styles.commentActions} comment-actions`}>+ <DropdownMenu items={menuItems}>+ <ActionIcon icon={MoreHorizontal} size={'small'} />+ </DropdownMenu>+ </div>+ )}+ </Block>+ );+});++export default CommentCard;diff --git a/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsx b/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsxnew file mode 100644index 00000000000..41e11608b54--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/CommentInput.tsx@@ -0,0 +1,66 @@+import { Editor, SendButton, useEditor } from '@lobehub/editor/react';+import { Avatar, Flexbox } from '@lobehub/ui';+import { memo, useCallback, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useUserAvatar } from '@/hooks/useUserAvatar';+import { useTaskStore } from '@/store/task';++const CommentInput = memo<{ taskId: string }>(({ taskId }) => {+ const { t } = useTranslation('chat');+ const editor = useEditor();+ const addComment = useTaskStore((s) => s.addComment);+ const userAvatar = useUserAvatar();+ const [submitting, setSubmitting] = useState(false);+ const [hasContent, setHasContent] = useState(false);++ const handleSubmit = useCallback(async () => {+ const trimmed = String(editor?.getDocument?.('markdown') ?? '').trim();+ if (!trimmed || submitting) return;+ setSubmitting(true);+ try {+ await addComment(taskId, trimmed);+ editor?.cleanDocument?.();+ setHasContent(false);+ } finally {+ setSubmitting(false);+ }+ }, [taskId, editor, addComment, submitting]);++ return (+ <Flexbox horizontal align={'center'} gap={8}>+ <Avatar avatar={userAvatar} size={24} style={{ flexShrink: 0 }} />+ <div style={{ flex: 1, minWidth: 0 }}>+ <Editor+ content={''}+ editor={editor}+ enablePasteMarkdown={false}+ markdownOption={false}+ placeholder={t('taskDetail.commentPlaceholder')}+ type={'text'}+ variant={'chat'}+ onPressEnter={({ event }) => {+ if (event.metaKey || event.ctrlKey) {+ handleSubmit();+ return true;+ }+ }}+ onTextChange={(ed) => {+ setHasContent(!!String(ed?.getDocument?.('markdown') ?? '').trim());+ }}+ />+ </div>+ <div+ style={{+ flexShrink: 0,+ opacity: hasContent || submitting ? 1 : 0,+ pointerEvents: hasContent || submitting ? 'auto' : 'none',+ }}+ >+ <SendButton loading={submitting} shape={'round'} type={'text'} onClick={handleSubmit} />+ </div>+ </Flexbox>+ );+});++export default CommentInput;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsxnew file mode 100644index 00000000000..69a2b5f54df--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskActivities.tsx@@ -0,0 +1,195 @@+import type { BriefType, TaskDetailActivity } from '@lobechat/types';+import { Accordion, AccordionItem, Avatar, Empty, Flexbox, Icon, Tag, Text } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import dayjs from 'dayjs';+import type { TFunction } from 'i18next';+import { BotMessageSquare, CirclePlus, MessageCircle, MessagesSquare } from 'lucide-react';+import { memo, useCallback, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++import AgentProfilePopup from '@/features/AgentProfileCard/AgentProfilePopup';+import BriefCard from '@/features/DailyBrief/BriefCard';+import type { BriefItem } from '@/features/DailyBrief/types';+import { useTaskStore } from '@/store/task';+import { taskActivitySelectors, taskDetailSelectors } from '@/store/task/selectors';++import { styles } from '../shared/style';+import CommentCard from './CommentCard';+import CommentInput from './CommentInput';+import TopicCard from './TopicCard';++const ROW_TYPE_ICON = {+ comment: MessageCircle,+ created: CirclePlus,+ topic: MessagesSquare,+} as const;++/** Convert a brief-type activity to the BriefItem shape expected by BriefCard. */+const toBriefItem = (act: TaskDetailActivity): BriefItem | null => {+ if (!act.id || !act.briefType) return null;+ return {+ actions: (act.actions ?? null) as BriefItem['actions'],+ agentId: act.agentId ?? null,+ agents: (act.agents ?? []).map((a) => ({+ avatar: a.avatar,+ backgroundColor: a.backgroundColor,+ id: a.id,+ title: a.title,+ })),+ artifacts: act.artifacts,+ createdAt: act.createdAt ?? act.time ?? new Date().toISOString(),+ cronJobId: act.cronJobId ?? null,+ id: act.id,+ priority: act.priority ?? null,+ readAt: act.readAt ?? null,+ resolvedAction: act.resolvedAction ?? null,+ resolvedAt: act.resolvedAt ?? null,+ resolvedComment: act.resolvedComment ?? null,+ summary: act.summary ?? '',+ taskId: act.taskId ?? null,+ title: act.title ?? '',+ topicId: act.topicId ?? null,+ type: act.briefType as BriefType,+ userId: act.userId ?? '',+ };+};++const getRowText = (act: TaskDetailActivity, t: TFunction<'chat'>): string => {+ if (act.type === 'comment') return act.content || t('taskDetail.activities.fallback.comment');+ if (act.type === 'topic') return act.title || t('taskDetail.activities.fallback.topic');+ if (act.type === 'created') return t('taskDetail.activities.fallback.created');+ return '';+};++/** Compact one-line row for topic / comment activities. */+const ActivityRow = memo<{ activity: TaskDetailActivity }>(({ activity }) => {+ const { t } = useTranslation('chat');+ const TypeIcon = ROW_TYPE_ICON[activity.type as keyof typeof ROW_TYPE_ICON] ?? MessageCircle;+ const relTime = activity.time ? dayjs(activity.time).fromNow() : '';+ const text = getRowText(activity, t);++ const isAgent = activity.author?.type === 'agent';+ const avatarNode = activity.author?.avatar ? (+ <Avatar avatar={activity.author.avatar} size={24} />+ ) : (+ <div className={styles.activityAvatar}>+ <TypeIcon size={12} />+ </div>+ );++ const authorNode = (+ <Flexbox horizontal align={'center'} gap={6} style={{ flexShrink: 0 }}>+ {avatarNode}+ {activity.author?.name && (+ <Text+ className={isAgent ? styles.agentAuthorName : undefined}+ style={isAgent ? undefined : { color: cssVar.colorTextSecondary, fontWeight: 500 }}+ >+ {activity.author.name}+ </Text>+ )}+ {isAgent && (+ <Tag size={'small'} style={{ flexShrink: 0 }}>+ {t('taskDetail.activities.agentTag')}+ </Tag>+ )}+ </Flexbox>+ );++ return (+ <Flexbox horizontal align={'center'} gap={8} paddingBlock={4}>+ {isAgent && activity.author?.id ? (+ <AgentProfilePopup+ agent={{ avatar: activity.author.avatar, title: activity.author.name }}+ agentId={activity.author.id}+ trigger={'hover'}+ >+ {authorNode}+ </AgentProfilePopup>+ ) : (+ authorNode+ )}+ <Text ellipsis style={{ color: cssVar.colorTextSecondary, flex: 1, minWidth: 0 }}>+ {text}+ {relTime && (+ <span style={{ color: cssVar.colorTextQuaternary, marginInlineStart: 4 }}>+ · {relTime}+ </span>+ )}+ </Text>+ </Flexbox>+ );+});++const TaskActivities = memo(() => {+ const { t } = useTranslation('chat');+ const activities = useTaskStore(taskActivitySelectors.activeTaskActivities);+ const activeTaskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const refreshTaskDetail = useTaskStore((s) => s.internal_refreshTaskDetail);++ const refreshActiveTask = useCallback(async () => {+ if (activeTaskId) await refreshTaskDetail(activeTaskId);+ }, [activeTaskId, refreshTaskDetail]);++ const items = useMemo(+ () =>+ activities.map((act, i) => ({+ activity: act,+ brief: act.type === 'brief' ? toBriefItem(act) : null,+ key: act.id ?? `activity-${i}`,+ })),+ [activities],+ );++ return (+ <Accordion defaultExpandedKeys={['activities']} gap={0}>+ <AccordionItem+ itemKey="activities"+ paddingBlock={4}+ paddingInline={8}+ title={+ <Flexbox horizontal align="center" gap={8}>+ <Icon color={cssVar.colorTextDescription} icon={BotMessageSquare} size={16} />+ <Text color={cssVar.colorTextSecondary} fontSize={13} weight={500}>+ {t('taskDetail.activities')}+ </Text>+ </Flexbox>+ }+ >+ <Flexbox gap={12} paddingBlock={12} paddingInline={12}>+ {items.length > 0 ? (+ items.map(({ activity, brief, key }) => {+ if (brief) {+ return (+ <BriefCard+ brief={brief}+ enableNavigation={false}+ key={key}+ onAfterAddComment={refreshActiveTask}+ onAfterResolve={refreshActiveTask}+ />+ );+ }+ if (activity.type === 'topic') {+ return <TopicCard activity={activity} key={key} />;+ }+ if (activity.type === 'comment') {+ return <CommentCard activity={activity} key={key} />;+ }+ return <ActivityRow activity={activity} key={key} />;+ })+ ) : (+ <Empty+ description={t('taskDetail.activitiesEmpty')}+ icon={BotMessageSquare}+ style={{ marginTop: 8 }}+ />+ )}+ {activeTaskId && <CommentInput taskId={activeTaskId} />}+ </Flexbox>+ </AccordionItem>+ </Accordion>+ );+});++export default TaskActivities;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsxnew file mode 100644index 00000000000..930d2d6869d--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailAssignee.tsx@@ -0,0 +1,45 @@+import type { TaskStatus } from '@lobechat/types';+import { Block, Text } from '@lobehub/ui';+import { useThemeMode } from 'antd-style';+import { memo } from 'react';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import AssigneeAgentSelector from '../features/AssigneeAgentSelector';+import AssigneeAvatar from '../features/AssigneeAvatar';+import { useAgentDisplayMeta } from '../shared/useAgentDisplayMeta';++const TaskDetailAssignee = memo(() => {+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const status = useTaskStore(taskDetailSelectors.activeTaskStatus) as TaskStatus | undefined;+ const assigneeAgentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);+ const assigneeMeta = useAgentDisplayMeta(assigneeAgentId);+ const { isDarkMode } = useThemeMode();++ if (!taskId || !assigneeAgentId) return null;++ return (+ <AssigneeAgentSelector+ currentAgentId={assigneeAgentId}+ disabled={status === 'running'}+ taskIdentifier={taskId}+ >+ <Block+ clickable+ horizontal+ align="center"+ gap={8}+ paddingBlock={4}+ paddingInline={11}+ style={{ minHeight: 32 }}+ variant={isDarkMode ? 'filled' : 'outlined'}+ >+ <AssigneeAvatar agentId={assigneeAgentId} size={20} />+ <Text weight={500}>{assigneeMeta?.title}</Text>+ </Block>+ </AssigneeAgentSelector>+ );+});++export default TaskDetailAssignee;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsxnew file mode 100644index 00000000000..910169047b0--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailHeaderActions.tsx@@ -0,0 +1,55 @@+import { ActionIcon, type DropdownItem, DropdownMenu, Icon } from '@lobehub/ui';+import { App } from 'antd';+import { MoreHorizontal, Trash } from 'lucide-react';+import { memo, useMemo } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router-dom';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++const TaskDetailHeaderActions = memo(() => {+ const { t } = useTranslation(['chat', 'common']);+ const { modal } = App.useApp();+ const navigate = useNavigate();+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const agentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);+ const deleteTask = useTaskStore((s) => s.deleteTask);++ const menuItems = useMemo<DropdownItem[]>(() => {+ if (!taskId) return [];++ return [+ {+ danger: true,+ icon: <Icon icon={Trash} />,+ key: 'delete',+ label: t('delete', { ns: 'common' }),+ onClick: () => {+ modal.confirm({+ centered: true,+ content: t('taskDetail.deleteConfirm.content'),+ okButtonProps: { danger: true },+ okText: t('taskDetail.deleteConfirm.ok'),+ onOk: async () => {+ await deleteTask(taskId);+ if (agentId) navigate(`/agent/${agentId}/tasks`);+ },+ title: t('taskDetail.deleteConfirm.title'),+ type: 'error',+ });+ },+ },+ ];+ }, [taskId, agentId, deleteTask, modal, navigate, t]);++ if (!taskId) return null;++ return (+ <DropdownMenu items={menuItems}>+ <ActionIcon icon={MoreHorizontal} size={'small'} />+ </DropdownMenu>+ );+});++export default TaskDetailHeaderActions;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsxnew file mode 100644index 00000000000..aa38eaacacc--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailPage.tsx@@ -0,0 +1,95 @@+import { Flexbox } from '@lobehub/ui';+import { memo, useEffect } from 'react';++import AutoSaveHint from '@/components/Editor/AutoSaveHint';+import Loading from '@/components/Loading/BrandTextLoading';+import NavHeader from '@/features/NavHeader';+import ToggleRightPanelButton from '@/features/RightPanel/ToggleRightPanelButton';+import WideScreenContainer from '@/features/WideScreenContainer';+import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import Breadcrumb from '../shared/Breadcrumb';+import TaskActivities from './TaskActivities';+import TaskDetailAssignee from './TaskDetailAssignee';+import TaskDetailHeaderActions from './TaskDetailHeaderActions';+import TaskDetailRunPauseAction from './TaskDetailRunPauseAction';+import TaskDetailTitleInput from './TaskDetailTitleInput';+import TaskInstruction from './TaskInstruction';+import TaskModelConfig from './TaskModelConfig';+import TaskParentBar from './TaskParentBar';+import TaskProperties from './TaskProperties';+import TaskSubtasks from './TaskSubtasks';+import TopicChatDrawer from './TopicChatDrawer';++interface TaskDetailPageProps {+ agentId: string;+ taskId: string;+}++const TaskDetailPage = memo<TaskDetailPageProps>(({ agentId, taskId }) => {+ const setActiveTaskId = useTaskStore((s) => s.setActiveTaskId);+ const useFetchTaskDetail = useTaskStore((s) => s.useFetchTaskDetail);+ const isLoading = useTaskStore(taskDetailSelectors.isTaskDetailLoading);+ const saveStatus = useTaskStore(taskDetailSelectors.taskSaveStatus);++ useEffect(() => {+ setActiveTaskId(taskId);+ return () => setActiveTaskId(undefined);+ }, [taskId, setActiveTaskId]);++ useFetchTaskDetail(taskId);++ return (+ <Flexbox flex={1} height={'100%'} style={{ minHeight: 0 }}>+ <NavHeader+ right={<ToggleRightPanelButton hideWhenExpanded />}+ left={+ <>+ <Breadcrumb agentId={agentId} taskId={taskId} />+ <TaskDetailHeaderActions />+ {saveStatus === 'saving' ? <AutoSaveHint saveStatus={saveStatus} /> : undefined}+ </>+ }+ styles={{+ left: {+ paddingLeft: 4,+ gap: 8,+ },+ }}+ />+ <Flexbox flex={1} style={{ minHeight: 0, overflowY: 'auto' }}>+ <WideScreenContainer>+ {isLoading ? (+ <Loading debugId="TaskDetail" />+ ) : (+ <>+ <Flexbox gap={4} style={{ paddingBlock: '24px 36px' }}>+ <TaskDetailTitleInput />+ <Flexbox horizontal align={'flex-start'} gap={16} justify={'space-between'}>+ <Flexbox align={'flex-start'} flex={1} gap={16}>+ <TaskParentBar />+ <Flexbox horizontal align={'center'} gap={8}>+ <TaskDetailAssignee />+ <TaskModelConfig />+ </Flexbox>+ <TaskDetailRunPauseAction />+ </Flexbox>+ <TaskProperties />+ </Flexbox>+ </Flexbox>+ <Flexbox gap={24} style={{ paddingBottom: 120 }}>+ <TaskInstruction />+ <TaskSubtasks />+ <TaskActivities />+ </Flexbox>+ </>+ )}+ </WideScreenContainer>+ </Flexbox>+ <TopicChatDrawer />+ </Flexbox>+ );+});++export default TaskDetailPage;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsxnew file mode 100644index 00000000000..2ea3dafd1a0--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailRunPauseAction.tsx@@ -0,0 +1,46 @@+import { Button } from '@lobehub/ui';+import { PlayIcon, RotateCcwIcon } from 'lucide-react';+import { memo, useCallback } from 'react';+import { useTranslation } from 'react-i18next';++import StopLoadingIcon from '@/components/StopLoading';+import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++const TaskDetailRunPauseAction = memo(() => {+ const { t } = useTranslation('chat');+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const canRun = useTaskStore(taskDetailSelectors.canRunActiveTask);+ const canPause = useTaskStore(taskDetailSelectors.canPauseActiveTask);+ const status = useTaskStore(taskDetailSelectors.activeTaskStatus);+ const isRerun = status === 'completed';+ const runTask = useTaskStore((s) => s.runTask);+ const updateTaskStatus = useTaskStore((s) => s.updateTaskStatus);++ const handleRunOrPause = useCallback(() => {+ if (!taskId) return;+ if (canRun) runTask(taskId);+ else if (canPause) updateTaskStatus(taskId, 'paused');+ }, [taskId, canRun, canPause, runTask, updateTaskStatus]);++ if (!canRun && !canPause) return null;++ if (canPause) {+ return (+ <Button icon={StopLoadingIcon} onClick={handleRunOrPause}>+ {t('taskDetail.stopTask')}+ </Button>+ );+ }++ const runLabel = isRerun ? t('taskDetail.rerunTask') : t('taskDetail.runTask');+ const runIcon = isRerun ? RotateCcwIcon : PlayIcon;++ return (+ <Button icon={runIcon} type={'primary'} onClick={handleRunOrPause}>+ {runLabel}+ </Button>+ );+});++export default TaskDetailRunPauseAction;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsxnew file mode 100644index 00000000000..344ae65ffa6--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskDetailTitleInput.tsx@@ -0,0 +1,52 @@+import { useDebounceFn } from 'ahooks';+import { Input } from 'antd';+import { memo, useCallback, useEffect, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import { styles } from '../shared/style';++const DEBOUNCE_MS = 300;++const TaskDetailTitleInput = memo(() => {+ const { t } = useTranslation('chat');+ const name = useTaskStore(taskDetailSelectors.activeTaskName);+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const updateTask = useTaskStore((s) => s.updateTask);++ const [localName, setLocalName] = useState(name ?? '');++ useEffect(() => {+ setLocalName(name ?? '');+ }, [name]);++ const { run: debouncedSave } = useDebounceFn(+ (value: string) => {+ if (taskId) updateTask(taskId, { name: value });+ },+ { wait: DEBOUNCE_MS },+ );++ const handleNameChange = useCallback(+ (e: React.ChangeEvent<HTMLTextAreaElement>) => {+ setLocalName(e.target.value);+ debouncedSave(e.target.value);+ },+ [debouncedSave],+ );++ return (+ <Input.TextArea+ autoSize={{ minRows: 1 }}+ className={styles.titleInput}+ placeholder={t('taskDetail.titlePlaceholder')}+ value={localName}+ variant={'borderless'}+ onChange={handleNameChange}+ />+ );+});++export default TaskDetailTitleInput;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsxnew file mode 100644index 00000000000..c5d395eef35--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskInstruction.tsx@@ -0,0 +1,50 @@+import { useEditor } from '@lobehub/editor/react';+import { memo, useCallback, useEffect, useMemo, useRef } from 'react';+import { useTranslation } from 'react-i18next';++import { EditorCanvas } from '@/features/EditorCanvas';+import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++const DEBOUNCE_MS = 300;++const TaskInstruction = memo(() => {+ const { t } = useTranslation('chat');+ const instruction = useTaskStore(taskDetailSelectors.activeTaskInstruction);+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const updateTask = useTaskStore((s) => s.updateTask);+ const editor = useEditor();+ const debounceRef = useRef<ReturnType<typeof setTimeout>>(undefined);++ const editorData = useMemo(() => ({ content: instruction ?? '' }), [instruction]);++ useEffect(() => {+ return () => {+ if (debounceRef.current) clearTimeout(debounceRef.current);+ };+ }, [taskId]);++ const handleContentChange = useCallback(() => {+ if (!editor || !taskId) return;++ if (debounceRef.current) clearTimeout(debounceRef.current);+ debounceRef.current = setTimeout(() => {+ const markdown = String(editor.getDocument('markdown') ?? '');+ updateTask(taskId, { instruction: markdown }).catch((e) => {+ console.error('[TaskInstruction] Failed to save:', e);+ });+ }, DEBOUNCE_MS);+ }, [editor, taskId, updateTask]);++ return (+ <EditorCanvas+ editor={editor}+ editorData={editorData}+ entityId={taskId}+ placeholder={t('taskDetail.instructionPlaceholder')}+ onContentChange={handleContentChange}+ />+ );+});++export default TaskInstruction;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskModelConfig.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskModelConfig.tsxnew file mode 100644index 00000000000..ce0177af1b3--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskModelConfig.tsx@@ -0,0 +1,39 @@+import { memo, useCallback } from 'react';++import ModelSelect from '@/features/ModelSelect';+import { useAgentStore } from '@/store/agent';+import { agentSelectors } from '@/store/agent/selectors';+import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++const TaskModelConfig = memo(() => {+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const taskModel = useTaskStore(taskDetailSelectors.activeTaskModel);+ const taskProvider = useTaskStore(taskDetailSelectors.activeTaskProvider);+ const updateTaskModelConfig = useTaskStore((s) => s.updateTaskModelConfig);++ const agentModel = useAgentStore(agentSelectors.currentAgentModel);+ const agentProvider = useAgentStore(agentSelectors.currentAgentModelProvider);++ const model = taskModel || agentModel || '';+ const provider = taskProvider || agentProvider || '';++ const handleChange = useCallback(+ async (params: { model: string; provider: string }) => {+ if (!taskId) return;+ await updateTaskModelConfig(taskId, params);+ },+ [taskId, updateTaskModelConfig],+ );++ return (+ <ModelSelect+ initialWidth+ popupWidth={400}+ value={{ model, provider }}+ onChange={handleChange}+ />+ );+});++export default TaskModelConfig;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsxnew file mode 100644index 00000000000..00d413a7cc0--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskParentBar.tsx@@ -0,0 +1,85 @@+import type { TaskDetailData, TaskDetailSubtask } from '@lobechat/types';+import { Button, Flexbox, Text } from '@lobehub/ui';+import { memo, useEffect, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router-dom';++import { taskService } from '@/services/task';+import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import TaskStatusIcon from '../features/TaskStatusIcon';+import TaskSubtaskProgressTag from '../features/TaskSubtaskProgressTag';++const TASK_STATUS_SET = new Set([+ 'backlog',+ 'canceled',+ 'completed',+ 'failed',+ 'paused',+ 'running',+] as const);++type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';++const toTaskStatus = (status?: string): TaskStatus =>+ status && TASK_STATUS_SET.has(status as TaskStatus) ? (status as TaskStatus) : 'backlog';++const TaskParentBar = memo(() => {+ const { t } = useTranslation('chat');+ const navigate = useNavigate();+ const parent = useTaskStore(taskDetailSelectors.activeTaskParent);+ const agentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);+ const currentIdentifier = useTaskStore(taskDetailSelectors.activeTaskDetail)?.identifier;++ const [parentSubtasks, setParentSubtasks] = useState<TaskDetailSubtask[]>([]);+ const [parentStatus, setParentStatus] = useState<TaskStatus>('backlog');++ useEffect(() => {+ setParentSubtasks([]);+ setParentStatus('backlog');+ if (!parent?.identifier) return;++ taskService+ .getDetail(parent.identifier)+ .then((res) => {+ const detail = res.data as TaskDetailData;+ setParentStatus(toTaskStatus(detail.status));+ setParentSubtasks(detail.subtasks ?? []);+ })+ .catch((err) => {+ console.error('[TaskParentBar] Failed to load parent subtasks', err);+ });+ }, [parent?.identifier]);++ if (!parent) return null;++ return (+ <Flexbox horizontal align="center" gap={8}>+ <Text fontSize={12} type={'secondary'}>+ {t('taskDetail.subIssueOf')}+ </Text>+ <Button+ icon={<TaskStatusIcon size={16} status={parentStatus} />}+ size={'small'}+ type={'text'}+ onClick={() => {+ if (agentId) navigate(`/agent/${agentId}/tasks/${parent.identifier}`);+ }}+ >+ <Text weight={500}>{parent.name}</Text>+ </Button>+ {parentSubtasks.length > 0 && (+ <TaskSubtaskProgressTag+ currentIdentifier={currentIdentifier}+ subtasks={parentSubtasks}+ onSubtaskClick={(identifier) => {+ if (agentId) navigate(`/agent/${agentId}/tasks/${identifier}`);+ }}+ />+ )}+ </Flexbox>+ );+});++export default TaskParentBar;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsxnew file mode 100644index 00000000000..a1ad00a70c7--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskProperties.tsx@@ -0,0 +1,101 @@+import type { TaskPriority, TaskStatus } from '@lobechat/types';+import { Block, Text } from '@lobehub/ui';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import TaskPriorityTag from '../features/TaskPriorityTag';+import TaskStatusTag from '../features/TaskStatusTag';+import TaskTriggerTag from '../features/TaskTriggerTag';+import TaskScheduleConfig from './TaskScheduleConfig';++interface StatusMeta {+ labelKey: string;+}++const STATUS_META: Record<TaskStatus, StatusMeta> = {+ backlog: { labelKey: 'status.backlog' },+ canceled: { labelKey: 'status.canceled' },+ completed: { labelKey: 'status.completed' },+ failed: { labelKey: 'status.failed' },+ paused: { labelKey: 'status.paused' },+ running: { labelKey: 'status.running' },+};++interface PriorityMeta {+ labelKey: string;+}++const PRIORITY_META: Record<TaskPriority, PriorityMeta> = {+ 0: { labelKey: 'priority.none' },+ 1: { labelKey: 'priority.urgent' },+ 2: { labelKey: 'priority.high' },+ 3: { labelKey: 'priority.normal' },+ 4: { labelKey: 'priority.low' },+};++const TaskProperties = memo(() => {+ const { t } = useTranslation(['chat', 'common']);++ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const status = useTaskStore(taskDetailSelectors.activeTaskStatus) as TaskStatus | undefined;+ const priority = useTaskStore(taskDetailSelectors.activeTaskPriority);+ const heartbeatInterval = useTaskStore(taskDetailSelectors.activeTaskPeriodicInterval);++ if (!taskId) return null;++ const statusMeta = status ? STATUS_META[status] : STATUS_META.backlog;+ const priorityMeta = PRIORITY_META[priority as TaskPriority] ?? PRIORITY_META[0];++ return (+ <Block gap={4} padding={4} variant={'outlined'} width={200}>+ <TaskStatusTag status={status} taskIdentifier={taskId}>+ <Block+ clickable+ horizontal+ align="center"+ gap={10}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ <TaskStatusTag disableDropdown size={16} status={status} taskIdentifier={taskId} />+ <Text weight={500}>{t(`taskDetail.${statusMeta.labelKey}` as never)}</Text>+ </Block>+ </TaskStatusTag>++ <TaskPriorityTag priority={priority} taskIdentifier={taskId}>+ <Block+ clickable+ horizontal+ align="center"+ gap={10}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ <TaskPriorityTag disableDropdown priority={priority} size={16} taskIdentifier={taskId} />+ <Text weight={500}>{t(`taskDetail.${priorityMeta.labelKey}` as never)}</Text>+ </Block>+ </TaskPriorityTag>++ <TaskScheduleConfig>+ <Block+ clickable+ horizontal+ align="center"+ gap={10}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ <TaskTriggerTag heartbeatInterval={heartbeatInterval} mode="inline" />+ </Block>+ </TaskScheduleConfig>+ </Block>+ );+});++export default TaskProperties;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsxnew file mode 100644index 00000000000..28181a24373--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskScheduleConfig.tsx@@ -0,0 +1,226 @@+import type { TaskAutomationMode } from '@lobechat/types';+import {+ ActionIcon,+ Button,+ Flexbox,+ InputNumber,+ Popover,+ Segmented,+ Select,+ Text,+} from '@lobehub/ui';+import { Switch } from 'antd';+import { TimerIcon } from 'lucide-react';+import type { ReactNode } from 'react';+import { memo, useCallback, useEffect, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++type IntervalUnit = 'hours' | 'minutes' | 'seconds';++interface IntervalTabProps {+ currentInterval: number;+ taskId?: string;+}++const IntervalTab = memo<IntervalTabProps>(({ currentInterval, taskId }) => {+ const { t } = useTranslation('chat');+ const updatePeriodicInterval = useTaskStore((s) => s.updatePeriodicInterval);++ const derived = useMemo(() => {+ if (!currentInterval || currentInterval === 0)+ return { displayValue: undefined, unit: 'minutes' as IntervalUnit };+ if (currentInterval >= 3600 && currentInterval % 3600 === 0)+ return { displayValue: currentInterval / 3600, unit: 'hours' as IntervalUnit };+ if (currentInterval >= 60 && currentInterval % 60 === 0)+ return { displayValue: currentInterval / 60, unit: 'minutes' as IntervalUnit };+ return { displayValue: currentInterval, unit: 'seconds' as IntervalUnit };+ }, [currentInterval]);++ const [localUnit, setLocalUnit] = useState<IntervalUnit>(derived.unit);+ const [localValue, setLocalValue] = useState<number | undefined>(derived.displayValue);++ useEffect(() => {+ setLocalUnit(derived.unit);+ setLocalValue(derived.displayValue);+ }, [derived.unit, derived.displayValue]);++ const toSeconds = (val: number | null, u: IntervalUnit): number | null => {+ if (!val || val <= 0) return null;+ switch (u) {+ case 'hours': {+ return val * 3600;+ }+ case 'minutes': {+ return val * 60;+ }+ default: {+ return val;+ }+ }+ };++ const handleValueChange = useCallback(+ (val: number | string | null) => {+ let normalized: number | undefined;+ if (val === null || val === '') {+ normalized = undefined;+ } else if (typeof val === 'string') {+ const n = Number(val);+ normalized = Number.isNaN(n) ? undefined : n;+ } else {+ normalized = val;+ }+ setLocalValue(normalized);+ if (!taskId) return;+ const seconds = toSeconds(normalized ?? null, localUnit);+ updatePeriodicInterval(taskId, seconds);+ },+ [taskId, localUnit, updatePeriodicInterval],+ );++ const handleUnitChange = useCallback(+ (u: IntervalUnit) => {+ setLocalUnit(u);+ if (!taskId || !localValue) return;+ const seconds = toSeconds(localValue, u);+ updatePeriodicInterval(taskId, seconds);+ },+ [taskId, localValue, updatePeriodicInterval],+ );++ const handleClear = useCallback(() => {+ setLocalValue(undefined);+ if (taskId) updatePeriodicInterval(taskId, null);+ }, [taskId, updatePeriodicInterval]);++ return (+ <>+ <Flexbox horizontal align="center" gap={16} justify={'space-between'}>+ <Text weight={500}>{t('taskSchedule.every')}</Text>+ <Flexbox horizontal align="center" gap={8}>+ <InputNumber+ min={1}+ placeholder="10"+ size={'small'}+ style={{ width: 80 }}+ value={localValue}+ onChange={handleValueChange}+ />+ <Select+ size={'small'}+ style={{ width: 90 }}+ value={localUnit}+ variant="outlined"+ options={[+ { label: t('taskSchedule.seconds'), value: 'seconds' },+ { label: t('taskSchedule.minutes'), value: 'minutes' },+ { label: t('taskSchedule.hours'), value: 'hours' },+ ]}+ onChange={handleUnitChange}+ />+ </Flexbox>+ </Flexbox>+ {currentInterval > 0 && (+ <Button size={'small'} onClick={handleClear}>+ {t('taskSchedule.clear')}+ </Button>+ )}+ </>+ );+});++const SchedulerTab = memo(() => {+ const { t } = useTranslation('chat');++ return (+ <Flexbox align="center" justify="center" style={{ minHeight: 80, padding: 16 }}>+ <Text type="secondary">{t('taskSchedule.schedulerNotReady')}</Text>+ </Flexbox>+ );+});++interface TaskScheduleConfigProps {+ children?: ReactNode;+ currentInterval?: number;+ taskId?: string;+}++const TaskScheduleConfig = memo(function TaskScheduleConfig({+ children,+ currentInterval,+ taskId,+}: TaskScheduleConfigProps) {+ const { t } = useTranslation('chat');+ const activeTaskId = useTaskStore(taskDetailSelectors.activeTaskId);+ const activeTaskInterval = useTaskStore(taskDetailSelectors.activeTaskPeriodicInterval);+ const automationMode = useTaskStore(taskDetailSelectors.activeTaskAutomationMode);+ const setAutomationMode = useTaskStore((s) => s.setAutomationMode);+ const finalTaskId = taskId ?? activeTaskId;+ const finalCurrentInterval = currentInterval ?? activeTaskInterval;++ const enabled = !!automationMode;++ const handleEnableChange = useCallback(+ (checked: boolean) => {+ if (!finalTaskId) return;+ // When enabling, default to heartbeat (the more common mode)+ setAutomationMode(finalTaskId, checked ? 'heartbeat' : null);+ },+ [finalTaskId, setAutomationMode],+ );++ const handleModeChange = useCallback(+ (value: string | number) => {+ if (!finalTaskId) return;+ setAutomationMode(finalTaskId, value as TaskAutomationMode);+ },+ [finalTaskId, setAutomationMode],+ );++ const content = (+ <Flexbox gap={12} style={{ minWidth: 240, padding: 4 }} onClick={(e) => e.stopPropagation()}>+ <Flexbox horizontal align="center" gap={8}>+ <Text weight={500}>{t('taskSchedule.enable')}</Text>+ <Switch checked={enabled} size="small" onChange={handleEnableChange} />+ </Flexbox>+ {enabled && (+ <>+ <Segmented+ block+ size="small"+ value={automationMode ?? 'heartbeat'}+ options={[+ { label: t('taskSchedule.intervalTab'), value: 'heartbeat' },+ { label: t('taskSchedule.schedulerTab'), value: 'schedule' },+ ]}+ onChange={handleModeChange}+ />+ {automationMode === 'heartbeat' && (+ <IntervalTab currentInterval={finalCurrentInterval} taskId={finalTaskId} />+ )}+ {automationMode === 'schedule' && <SchedulerTab />}+ </>+ )}+ </Flexbox>+ );++ return (+ <Popover content={content} placement="bottomRight" trigger="click">+ {children ? (+ <div onClick={(e) => e.stopPropagation()}>{children}</div>+ ) : (+ <ActionIcon+ icon={TimerIcon}+ size="small"+ title={t('taskSchedule.title')}+ onClick={(e) => e.stopPropagation()}+ />+ )}+ </Popover>+ );+});++export default TaskScheduleConfig;diff --git a/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsxnew file mode 100644index 00000000000..b11a65ccd83--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TaskSubtasks.tsx@@ -0,0 +1,245 @@+import type { TaskDetailSubtask } from '@lobechat/types';+import { Accordion, AccordionItem, ActionIcon, Avatar, Flexbox, Icon, Text } from '@lobehub/ui';+import { Button, ConfigProvider, Tree } from 'antd';+import type { DataNode } from 'antd/es/tree';+import { cssVar } from 'antd-style';+import { ChevronDown, ListTodoIcon, Plus } from 'lucide-react';+import { memo, useCallback, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router-dom';++import { useTaskStore } from '@/store/task';+import { taskDetailSelectors } from '@/store/task/selectors';++import CreateTaskInlineEntry from '../AgentTaskList/CreateTaskInlineEntry';+import TaskPriorityTag from '../features/TaskPriorityTag';+import TaskStatusTag from '../features/TaskStatusTag';+import TaskSubtaskProgressTag from '../features/TaskSubtaskProgressTag';+import { styles } from '../shared/style';++type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';++const TASK_STATUS_SET = new Set<TaskStatus>([+ 'backlog',+ 'canceled',+ 'completed',+ 'failed',+ 'paused',+ 'running',+]);++const toTaskStatus = (status: string): TaskStatus =>+ TASK_STATUS_SET.has(status as TaskStatus) ? (status as TaskStatus) : 'backlog';++interface TaskTreeNode {+ children: TaskTreeNode[];+ task: TaskDetailSubtask;+}++const buildTree = (subtasks: TaskDetailSubtask[]): TaskTreeNode[] => {+ if (subtasks.some((item) => (item.children?.length ?? 0) > 0)) {+ return subtasks.map((task) => ({+ children: buildTree(task.children ?? []),+ task,+ }));+ }++ const nodeMap = new Map(+ subtasks.map((task) => [+ task.identifier,+ { children: [] as TaskTreeNode[], task } satisfies TaskTreeNode,+ ]),+ );+ const roots: TaskTreeNode[] = [];++ for (const task of subtasks) {+ const node = nodeMap.get(task.identifier);+ if (!node) continue;++ const parentIdentifier = task.blockedBy;+ const parent = parentIdentifier ? nodeMap.get(parentIdentifier) : undefined;+ if (parent && parent.task.identifier !== task.identifier) {+ parent.children.push(node);+ continue;+ }++ roots.push(node);+ }++ return roots;+};++const toTreeData = (tree: TaskTreeNode[]): DataNode[] => {+ return tree.map((node) => {+ const status = toTaskStatus(node.task.status);++ return {+ children: toTreeData(node.children),+ key: node.task.identifier,+ title: (+ <Flexbox+ horizontal+ align="center"+ gap={8}+ style={{ lineHeight: 1, minWidth: 0, overflow: 'hidden' }}+ >+ <span+ style={{ alignItems: 'center', display: 'inline-flex', flex: 'none' }}+ onClick={(e) => e.stopPropagation()}+ >+ <TaskPriorityTag+ priority={node.task.priority}+ size={14}+ taskIdentifier={node.task.identifier}+ />+ </span>+ <span+ style={{ alignItems: 'center', display: 'inline-flex', flex: 'none' }}+ onClick={(e) => e.stopPropagation()}+ >+ <TaskStatusTag size={14} status={status} taskIdentifier={node.task.identifier} />+ </span>+ <Text ellipsis fontSize={13} style={{ flex: 1, minWidth: 0 }}>+ {node.task.name || node.task.identifier}+ </Text>+ {node.task.assignee && (+ <span+ style={{ alignItems: 'center', display: 'inline-flex', flex: 'none' }}+ onClick={(e) => e.stopPropagation()}+ >+ <Avatar+ avatar={node.task.assignee.avatar ?? ''}+ background={node.task.assignee.backgroundColor || cssVar.colorBgContainer}+ shape="circle"+ size={18}+ title={node.task.assignee.title ?? ''}+ variant="outlined"+ />+ </span>+ )}+ </Flexbox>+ ),+ };+ });+};++const TaskSubtasks = memo(() => {+ const { t } = useTranslation('chat');+ const navigate = useNavigate();+ const agentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);+ const subtasks = useTaskStore(taskDetailSelectors.activeTaskSubtasks);+ const taskId = useTaskStore(taskDetailSelectors.activeTaskId);++ const [isCreating, setIsCreating] = useState(false);++ const handleNavigate = useCallback(+ (identifier: string) => {+ if (agentId) navigate(`/agent/${agentId}/tasks/${identifier}`);+ },+ [agentId, navigate],+ );++ const treeData = useMemo(() => {+ if (subtasks.length === 0) return [];+ return toTreeData(buildTree(subtasks));+ }, [subtasks]);++ const toggleCreating = useCallback(() => setIsCreating((prev) => !prev), []);++ if (!taskId) return null;++ const hasSubtasks = subtasks.length > 0;++ return (+ <Flexbox gap={8}>+ {hasSubtasks ? (+ <>+ <Flexbox horizontal align="center" justify="flex-end">+ <ActionIcon+ icon={Plus}+ size="small"+ title={t('taskDetail.addSubtask')}+ onClick={toggleCreating}+ />+ </Flexbox>++ {isCreating && (+ <CreateTaskInlineEntry+ autoFocus+ agentId={agentId ?? undefined}+ parentTaskId={taskId}+ placeholder={t('taskDetail.subtaskInstructionPlaceholder')}+ onCollapse={() => setIsCreating(false)}+ onCreated={() => setIsCreating(false)}+ />+ )}++ <Accordion defaultExpandedKeys={['subtasks']} gap={0}>+ <AccordionItem+ itemKey="subtasks"+ paddingBlock={4}+ paddingInline={8}+ title={+ <Flexbox horizontal align="center" gap={8}>+ <Icon color={cssVar.colorTextDescription} icon={ListTodoIcon} size={16} />+ <Text color={cssVar.colorTextSecondary} fontSize={13} weight={500}>+ {t('taskDetail.subtasks')}+ </Text>+ <TaskSubtaskProgressTag+ currentIdentifier={taskId}+ subtasks={subtasks}+ onSubtaskClick={handleNavigate}+ />+ </Flexbox>+ }+ >+ <ConfigProvider theme={{ components: { Tree: { titleHeight: 36 } } }}>+ <Tree+ blockNode+ defaultExpandAll+ showLine+ className={styles.subtaskTree}+ style={{ marginTop: 8 }}+ switcherIcon={<Icon icon={ChevronDown} size={14} />}+ treeData={treeData}+ onSelect={(keys) => {+ const key = keys[0];+ if (!key) return;+ handleNavigate(String(key));+ }}+ />+ </ConfigProvider>+ </AccordionItem>+ </Accordion>+ </>+ ) : (+ <>+ <Flexbox horizontal align="flex-start">+ <Button+ className={styles.addSubtaskButton}+ icon={<Icon icon={Plus} size={14} />}+ shape="round"+ size="small"+ type="text"+ onClick={toggleCreating}+ >+ {t('taskDetail.addSubtask')}+ </Button>+ </Flexbox>+ {isCreating && (+ <CreateTaskInlineEntry+ autoFocus+ agentId={agentId ?? undefined}+ parentTaskId={taskId}+ placeholder={t('taskDetail.subtaskInstructionPlaceholder')}+ onCollapse={() => setIsCreating(false)}+ onCreated={() => setIsCreating(false)}+ />+ )}+ </>+ )}+ </Flexbox>+ );+});++export default TaskSubtasks;diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsxnew file mode 100644index 00000000000..43a7348a27d--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TopicCard.tsx@@ -0,0 +1,107 @@+import type { TaskDetailActivity } from '@lobechat/types';+import { Avatar, Block, Flexbox, Icon, Tag, Text } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import dayjs from 'dayjs';+import { MessagesSquare } from 'lucide-react';+import { memo, useCallback, useEffect, useState } from 'react';++import { useTaskStore } from '@/store/task';++const TOPIC_STATUS_COLOR: Record<string, string> = {+ canceled: cssVar.colorTextSecondary,+ completed: cssVar.colorSuccess,+ failed: cssVar.colorError,+ running: cssVar.colorInfo,+ timeout: cssVar.colorWarning,+};++const formatDuration = (ms: number): string => {+ const seconds = Math.floor(ms / 1000);+ if (seconds < 60) return `${seconds}s`;+ const minutes = Math.floor(seconds / 60);+ if (minutes < 60) return `${minutes}m ${seconds % 60}s`;+ const hours = Math.floor(minutes / 60);+ return `${hours}h ${minutes % 60}m`;+};++interface TopicCardProps {+ activity: TaskDetailActivity;+}++const TopicCard = memo<TopicCardProps>(({ activity }) => {+ const openTopicDrawer = useTaskStore((s) => s.openTopicDrawer);+ const isRunning = activity.status === 'running';++ const [elapsed, setElapsed] = useState(() =>+ activity.time ? Date.now() - new Date(activity.time).getTime() : 0,+ );++ useEffect(() => {+ if (!isRunning || !activity.time) return;+ const interval = setInterval(() => {+ setElapsed(Date.now() - new Date(activity.time!).getTime());+ }, 1000);+ return () => clearInterval(interval);+ }, [isRunning, activity.time]);++ const handleClick = useCallback(() => {+ if (activity.id) openTopicDrawer(activity.id);+ }, [activity.id, openTopicDrawer]);++ const statusColor = TOPIC_STATUS_COLOR[activity.status ?? ''] ?? cssVar.colorTextQuaternary;+ const timeDisplay = isRunning+ ? formatDuration(elapsed)+ : activity.time+ ? dayjs(activity.time).fromNow()+ : '';++ return (+ <Block+ clickable={!!activity.id}+ gap={8}+ padding={12}+ style={{ borderRadius: cssVar.borderRadiusLG }}+ variant={'outlined'}+ onClick={activity.id ? handleClick : undefined}+ >+ <Flexbox horizontal align={'center'} gap={8} justify={'space-between'}>+ <Flexbox horizontal align={'center'} gap={8} style={{ overflow: 'hidden' }}>+ <Icon color={cssVar.colorTextDescription} icon={MessagesSquare} size={16} />+ <Text ellipsis weight={500}>+ {activity.title}+ </Text>+ {activity.seq != null && (+ <Text fontSize={12} type={'secondary'}>+ #{activity.seq}+ </Text>+ )}+ </Flexbox>+ <Flexbox horizontal align={'center'} flex={'none'} gap={8}>+ <Tag size={'small'} style={{ color: statusColor }}>+ {activity.status ?? 'unknown'}+ </Tag>+ <Text fontSize={12} type={'secondary'}>+ {timeDisplay}+ </Text>+ </Flexbox>+ </Flexbox>++ {activity.summary && (+ <Text fontSize={13} style={{ color: cssVar.colorTextSecondary, whiteSpace: 'pre-wrap' }}>+ {activity.summary}+ </Text>+ )}++ {activity.author && (+ <Flexbox horizontal align={'center'} gap={6}>+ {activity.author.avatar && <Avatar avatar={activity.author.avatar} size={20} />}+ <Text fontSize={12} type={'secondary'}>+ {activity.author.name}+ </Text>+ </Flexbox>+ )}+ </Block>+ );+});++export default TopicCard;diff --git a/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsxnew file mode 100644index 00000000000..071b658dab1--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/TopicChatDrawer/index.tsx@@ -0,0 +1,115 @@+'use client';++import { type ConversationContext } from '@lobechat/types';+import { Drawer, Flexbox, Tag, Text } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { memo, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++import { ChatList, ConversationProvider } from '@/features/Conversation';+import { useOperationState } from '@/hooks/useOperationState';+import { useChatStore } from '@/store/chat';+import { messageMapKey } from '@/store/chat/utils/messageMapKey';+import { useTaskStore } from '@/store/task';+import { taskActivitySelectors, taskDetailSelectors } from '@/store/task/selectors';++const TOPIC_STATUS_COLOR: Record<string, string> = {+ canceled: cssVar.colorTextSecondary,+ completed: cssVar.colorSuccess,+ failed: cssVar.colorError,+ running: cssVar.colorInfo,+ timeout: cssVar.colorWarning,+};++interface TopicChatDrawerBodyProps {+ agentId: string;+ topicId: string;+}++const TopicChatDrawerBody = memo<TopicChatDrawerBodyProps>(({ agentId, topicId }) => {+ const context = useMemo<ConversationContext>(+ () => ({+ agentId,+ isolatedTopic: true,+ scope: 'main',+ topicId,+ }),+ [agentId, topicId],+ );++ const chatKey = messageMapKey(context);+ const messages = useChatStore((s) => s.dbMessagesMap[chatKey]);+ const replaceMessages = useChatStore((s) => s.replaceMessages);+ const operationState = useOperationState(context);++ return (+ <ConversationProvider+ context={context}+ hasInitMessages={!!messages}+ messages={messages}+ operationState={operationState}+ onMessagesChange={(msgs, ctx) => {+ replaceMessages(msgs, { context: ctx });+ }}+ >+ <Flexbox flex={1} height={'100%'} style={{ overflow: 'hidden' }}>+ <ChatList />+ </Flexbox>+ </ConversationProvider>+ );+});++TopicChatDrawerBody.displayName = 'TopicChatDrawerBody';++const TopicChatDrawer = memo(() => {+ const { t } = useTranslation('chat');+ const topicId = useTaskStore(taskDetailSelectors.activeTopicDrawerTopicId);+ const agentId = useTaskStore(taskDetailSelectors.activeTaskAgentId);+ const activity = useTaskStore(taskActivitySelectors.activeDrawerTopicActivity);+ const closeTopicDrawer = useTaskStore((s) => s.closeTopicDrawer);++ const open = !!topicId && !!agentId;+ const status = activity?.status;+ const statusColor = TOPIC_STATUS_COLOR[status ?? ''] ?? cssVar.colorTextQuaternary;++ const title = (+ <Flexbox horizontal align={'center'} gap={8} style={{ minWidth: 0 }}>+ <Text ellipsis weight={500}>+ {activity?.title || t('taskDetail.topicDrawer.untitled')}+ </Text>+ {activity?.seq != null && (+ <Text fontSize={12} type={'secondary'}>+ #{activity.seq}+ </Text>+ )}+ {status && (+ <Tag size={'small'} style={{ color: statusColor }}>+ {status}+ </Tag>+ )}+ </Flexbox>+ );++ return (+ <Drawer+ destroyOnHidden+ containerMaxWidth={'auto'}+ open={open}+ placement={'right'}+ push={false}+ title={title}+ width={640}+ styles={{+ body: { padding: 0 },+ bodyContent: { height: '100%' },+ }}+ onClose={closeTopicDrawer}+ >+ {open && <TopicChatDrawerBody agentId={agentId!} topicId={topicId!} />}+ </Drawer>+ );+});++TopicChatDrawer.displayName = 'TopicChatDrawer';++export default TopicChatDrawer;diff --git a/src/features/AgentTasks/AgentTaskDetail/index.tsx b/src/features/AgentTasks/AgentTaskDetail/index.tsxnew file mode 100644index 00000000000..8faa9a7ddf8--- /dev/null+++ b/src/features/AgentTasks/AgentTaskDetail/index.tsx@@ -0,0 +1 @@+export { default as TaskDetailPage } from './TaskDetailPage';diff --git a/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsxnew file mode 100644index 00000000000..c7c1369b9c7--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/AgentTasksPage.tsx@@ -0,0 +1,99 @@+import { ActionIcon, Flexbox } from '@lobehub/ui';+import { Plus } from 'lucide-react';+import { memo, useCallback, useMemo } from 'react';+import { useNavigate } from 'react-router-dom';++import AutoSaveHint from '@/components/Editor/AutoSaveHint';+import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';+import NavHeader from '@/features/NavHeader';+import WideScreenContainer from '@/features/WideScreenContainer';+import { useGlobalStore } from '@/store/global';+import { systemStatusSelectors } from '@/store/global/selectors';+import { useTaskStore } from '@/store/task';+import { taskDetailSelectors, taskListSelectors } from '@/store/task/selectors';++import { createTaskModal } from '../CreateTaskModal';+import Breadcrumb from '../shared/Breadcrumb';+import CreateTaskInlineEntry from './CreateTaskInlineEntry';+import KanbanBoard from './KanbanBoard';+import type { TaskListViewOptions } from './listViewOptions';+import { normalizeTaskListViewOptions } from './listViewOptions';+import TaskList from './TaskList';+import TasksGroupConfig from './TasksGroupConfig';++interface AgentTasksPageProps {+ /**+ * When omitted, the page shows tasks across all agents (used by the `/tasks` route).+ */+ agentId?: string;+}++const AgentTasksPage = memo<AgentTasksPageProps>(({ agentId }) => {+ const navigate = useNavigate();+ const viewMode = useTaskStore(taskListSelectors.viewMode);+ const saveStatus = useTaskStore(taskDetailSelectors.taskSaveStatus);+ const useFetchTaskList = useTaskStore((s) => s.useFetchTaskList);+ useFetchTaskList({ agentId, allAgents: !agentId });+ const rawViewOptions = useGlobalStore(systemStatusSelectors.taskListViewOptions);+ const viewOptions = useMemo(() => normalizeTaskListViewOptions(rawViewOptions), [rawViewOptions]);+ const inlineCollapsed = useGlobalStore(systemStatusSelectors.taskCreateInlineCollapsed);+ const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);+ const setViewOptions = useCallback(+ (updater: (prev: TaskListViewOptions) => TaskListViewOptions) => {+ const next = normalizeTaskListViewOptions(updater(viewOptions));+ updateSystemStatus({ taskListViewOptions: next }, 'updateTaskListViewOptions');+ },+ [updateSystemStatus, viewOptions],+ );++ const handleCreateTask = useCallback(() => {+ createTaskModal({+ agentId,+ onCreated: (task) => {+ const targetAgentId = task.agentId || agentId;+ if (targetAgentId) {+ navigate(`/agent/${targetAgentId}/tasks/${task.identifier}`);+ }+ },+ });+ }, [agentId, navigate]);++ return (+ <Flexbox flex={1} height={'100%'}>+ <NavHeader+ left={+ <>+ <Breadcrumb agentId={agentId} />+ {saveStatus !== 'idle' && <AutoSaveHint saveStatus={saveStatus} />}+ </>+ }+ right={+ <Flexbox horizontal align={'center'} gap={4}>+ {inlineCollapsed && (+ <ActionIcon icon={Plus} size={DESKTOP_HEADER_ICON_SIZE} onClick={handleCreateTask} />+ )}+ <TasksGroupConfig options={viewOptions} setOptions={setViewOptions} />+ </Flexbox>+ }+ styles={{+ left: {+ paddingLeft: 4,+ gap: 8,+ },+ }}+ />+ {viewMode === 'kanban' ? (+ <Flexbox flex={1} style={{ overflowX: 'auto', overflowY: 'hidden' }}>+ <KanbanBoard agentId={agentId} />+ </Flexbox>+ ) : (+ <WideScreenContainer gap={16} paddingBlock={16} wrapperStyle={{ flex: 1, overflowY: 'auto' }}>+ {!inlineCollapsed && <CreateTaskInlineEntry agentId={agentId} />}+ <TaskList options={viewOptions} />+ </WideScreenContainer>+ )}+ </Flexbox>+ );+});++export default AgentTasksPage;diff --git a/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsxnew file mode 100644index 00000000000..ccedde131d6--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/CreateTaskInlineEntry.tsx@@ -0,0 +1,203 @@+'use client';++import { useEditor } from '@lobehub/editor/react';+import { ActionIcon, Block, Flexbox, Icon, Text } from '@lobehub/ui';+import { Button } from 'antd';+import { cssVar } from 'antd-style';+import { $getRoot } from 'lexical';+import { ChevronUp, UserCircle2 } from 'lucide-react';+import { type KeyboardEvent, memo, useCallback, useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { EditorCanvas } from '@/features/EditorCanvas';+import { useGlobalStore } from '@/store/global';+import { useTaskStore } from '@/store/task';++import AssigneeAgentSelector from '../features/AssigneeAgentSelector';+import AssigneeAvatar from '../features/AssigneeAvatar';+import TaskPriorityTag from '../features/TaskPriorityTag';+import { useAgentDisplayMeta } from '../shared/useAgentDisplayMeta';++interface CreateTaskInlineEntryProps {+ agentId?: string;+ autoFocus?: boolean;+ onCollapse?: () => void;+ onCreated?: (task: { agentId?: string; identifier: string }) => void;+ parentTaskId?: string;+ placeholder?: string;+}++const CreateTaskInlineEntry = memo<CreateTaskInlineEntryProps>((props) => {+ const { agentId, autoFocus, onCollapse, onCreated, parentTaskId, placeholder } = props;+ const { t } = useTranslation('chat');++ const createTask = useTaskStore((s) => s.createTask);+ const isCreating = useTaskStore((s) => s.isCreatingTask);+ const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);++ const [priority, setPriority] = useState(0);+ const [assigneeAgentId, setAssigneeAgentId] = useState<string | undefined>(agentId);+ const [instruction, setInstruction] = useState('');++ const editor = useEditor();++ const assigneeMeta = useAgentDisplayMeta(assigneeAgentId);++ useEffect(() => {+ if (autoFocus) editor?.focus?.();+ }, [autoFocus, editor]);++ const handleCollapse = useCallback(() => {+ if (onCollapse) {+ onCollapse();+ return;+ }+ updateSystemStatus({ taskCreateInlineCollapsed: true }, 'collapseTaskCreateInline');+ }, [onCollapse, updateSystemStatus]);++ const handleContentChange = useCallback(() => {+ const lexicalEditor = editor?.getLexicalEditor?.();+ if (!lexicalEditor) return;+ lexicalEditor.getEditorState().read(() => {+ setInstruction($getRoot().getTextContent());+ });+ }, [editor]);++ const handleSubmit = useCallback(async () => {+ const trimmed = instruction.trim();+ if (!trimmed) return;++ const result = await createTask({+ assigneeAgentId,+ instruction: trimmed,+ parentTaskId,+ priority: priority || undefined,+ });++ if (result) {+ setPriority(0);+ setAssigneeAgentId(agentId);+ setInstruction('');+ editor?.cleanDocument?.();+ onCreated?.({+ agentId: result.assigneeAgentId ?? undefined,+ identifier: result.identifier,+ });+ }+ }, [+ agentId,+ assigneeAgentId,+ createTask,+ editor,+ instruction,+ onCreated,+ parentTaskId,+ priority,+ ]);++ const handleSubmitRef = useRef(handleSubmit);+ useEffect(() => {+ handleSubmitRef.current = handleSubmit;+ }, [handleSubmit]);++ const handleKeyDown = useCallback((e: KeyboardEvent<HTMLDivElement>) => {+ if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {+ e.preventDefault();+ e.stopPropagation();+ void handleSubmitRef.current?.();+ }+ }, []);++ return (+ <Block+ style={{ overflow: 'hidden', position: 'relative' }}+ variant={'outlined'}+ onKeyDown={handleKeyDown}+ >+ <ActionIcon+ icon={ChevronUp}+ size={'small'}+ style={{ position: 'absolute', right: 8, top: 8, zIndex: 1 }}+ title={t('createTask.collapse')}+ onClick={handleCollapse}+ />+ <Flexbox style={{ fontSize: 14, minHeight: 120, padding: '12px 40px 0 16px' }}>+ <EditorCanvas+ editor={editor}+ floatingToolbar={false}+ placeholder={placeholder ?? t('createTask.instructionPlaceholder')}+ style={{ fontSize: 14, paddingBottom: 12 }}+ onContentChange={handleContentChange}+ />+ </Flexbox>+ <Flexbox+ horizontal+ align={'center'}+ justify={'space-between'}+ style={{ borderTop: `1px solid ${cssVar.colorBorderSecondary}`, padding: '8px 16px' }}+ >+ <Flexbox horizontal gap={2} wrap={'wrap'}>+ <TaskPriorityTag priority={priority} onChange={setPriority}>+ <Block+ clickable+ horizontal+ align="center"+ gap={6}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ <TaskPriorityTag disableDropdown priority={priority} size={14} />+ <Text fontSize={12}>+ {priority === 0+ ? t('taskDetail.priority.none')+ : t(+ `taskDetail.priority.${(['', 'urgent', 'high', 'normal', 'low'] as const)[priority]}` as never,+ )}+ </Text>+ </Block>+ </TaskPriorityTag>++ <AssigneeAgentSelector currentAgentId={assigneeAgentId} onChange={setAssigneeAgentId}>+ <Block+ clickable+ horizontal+ align="center"+ gap={6}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ {assigneeAgentId ? (+ <>+ <AssigneeAvatar agentId={assigneeAgentId} size={18} />+ <Text fontSize={12}>{assigneeMeta?.title}</Text>+ </>+ ) : (+ <>+ <Icon color={cssVar.colorTextDescription} icon={UserCircle2} size={14} />+ <Text color={cssVar.colorTextDescription} fontSize={12}>+ {t('createTask.assignee')}+ </Text>+ </>+ )}+ </Block>+ </AssigneeAgentSelector>+ </Flexbox>++ <Button+ disabled={isCreating || !instruction.trim()}+ loading={isCreating}+ shape={'round'}+ size={'small'}+ type={'primary'}+ onClick={handleSubmit}+ >+ {t('createTask.submit')}+ </Button>+ </Flexbox>+ </Block>+ );+});++export default CreateTaskInlineEntry;diff --git a/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx b/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsxnew file mode 100644index 00000000000..c5431bc1484--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/KanbanBoard.tsx@@ -0,0 +1,182 @@+import {+ DndContext,+ type DragEndEvent,+ DragOverlay,+ type DragStartEvent,+ KeyboardSensor,+ PointerSensor,+ pointerWithin,+ useSensor,+ useSensors,+} from '@dnd-kit/core';+import { Center, Empty, Flexbox } from '@lobehub/ui';+import { createStaticStyles } from 'antd-style';+import { ClipboardCheckIcon } from 'lucide-react';+import { memo, useCallback, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';+import { taskListSelectors } from '@/store/task/selectors';+import type { TaskGroupItem, TaskListItem } from '@/store/task/slices/list/initialState';++import AgentTaskItem from '../features/AgentTaskItem';+import KanbanColumn, { COLUMN_WIDTH } from './KanbanColumn';++const styles = createStaticStyles(({ css }) => ({+ board: css`+ overflow-x: auto;+ display: flex;+ flex: 1;+ gap: 8px;++ padding-block: 0 16px;+ padding-inline: 12px;+ `,+}));++interface ColumnDef {+ droppable: boolean;+ key: string;+ targetStatus: 'backlog' | 'completed' | null;+}++const COLUMNS: ColumnDef[] = [+ { droppable: true, key: 'backlog', targetStatus: 'backlog' },+ { droppable: false, key: 'running', targetStatus: null },+ { droppable: false, key: 'needsInput', targetStatus: null },+ { droppable: true, key: 'done', targetStatus: 'completed' },+];++const optimisticMoveTask = (+ taskGroups: TaskGroupItem[],+ task: TaskListItem,+ targetColumnKey: string,+): TaskGroupItem[] => {+ return taskGroups.map((group) => {+ const filtered = (group.tasks as TaskListItem[]).filter(+ (t) => t.identifier !== task.identifier,+ );+ const removed = filtered.length < (group.tasks as TaskListItem[]).length;++ if (group.key === targetColumnKey) {+ return { ...group, tasks: [...filtered, task], total: filtered.length + 1 };+ }++ return removed ? { ...group, tasks: filtered, total: group.total - 1 } : group;+ });+};++interface KanbanBoardProps {+ agentId?: string;+}++const KanbanBoard = memo<KanbanBoardProps>(({ agentId }) => {+ const { t } = useTranslation('chat');++ const useFetchTaskGroupList = useTaskStore((s) => s.useFetchTaskGroupList);+ useFetchTaskGroupList(agentId);++ const taskGroups = useTaskStore(taskListSelectors.taskGroups);+ const isInit = useTaskStore(taskListSelectors.isTaskGroupListInit);+ const updateTaskStatus = useTaskStore((s) => s.updateTaskStatus);++ const [activeTask, setActiveTask] = useState<TaskListItem | null>(null);++ const sensors = useSensors(+ useSensor(PointerSensor, { activationConstraint: { distance: 5 } }),+ useSensor(KeyboardSensor),+ );++ const handleDragStart = useCallback((event: DragStartEvent) => {+ const task = event.active.data.current?.task as TaskListItem | undefined;+ setActiveTask(task ?? null);+ }, []);++ const handleDragEnd = useCallback(+ async (event: DragEndEvent) => {+ setActiveTask(null);++ const { active, over } = event;+ if (!over) return;++ const targetColumnKey = over.id as string;+ const column = COLUMNS.find((c) => c.key === targetColumnKey);+ if (!column?.droppable || !column.targetStatus) return;++ const task = active.data.current?.task as TaskListItem | undefined;+ if (!task) return;++ if (task.status === column.targetStatus) return;++ const prevGroups = useTaskStore.getState().taskGroups;+ const nextGroups = optimisticMoveTask(prevGroups, task, targetColumnKey);+ useTaskStore.setState({ taskGroups: nextGroups }, false, 'kanban/optimisticMove');++ try {+ await updateTaskStatus(task.identifier, column.targetStatus);+ } catch {+ useTaskStore.setState({ taskGroups: prevGroups }, false, 'kanban/revertMove');+ }+ },+ [updateTaskStatus],+ );++ const handleDragCancel = useCallback(() => {+ setActiveTask(null);+ }, []);++ if (!isInit) return null;++ const totalTasks = taskGroups.reduce((sum, g) => sum + g.total, 0);++ if (totalTasks === 0) {+ return (+ <Center height={'80vh'} width={'100%'}>+ <Empty description={t('taskList.empty')} icon={ClipboardCheckIcon} />+ </Center>+ );+ }++ return (+ <DndContext+ collisionDetection={pointerWithin}+ sensors={sensors}+ onDragCancel={handleDragCancel}+ onDragEnd={handleDragEnd}+ onDragStart={handleDragStart}+ >+ <Flexbox horizontal className={styles.board}>+ {COLUMNS.map((col) => {+ const group = taskGroups.find((g) => g.key === col.key);+ return (+ <KanbanColumn+ columnKey={col.key}+ droppable={col.droppable}+ key={col.key}+ tasks={(group?.tasks ?? []) as TaskListItem[]}+ total={group?.total ?? 0}+ />+ );+ })}+ </Flexbox>+ <DragOverlay dropAnimation={null}>+ {activeTask ? (+ <div+ style={{+ background: 'var(--lobe-color-bg-container, #fff)',+ border: '1px solid var(--lobe-color-border-secondary, #f0f0f0)',+ borderRadius: 8,+ boxShadow: '0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12)',+ cursor: 'grabbing',+ width: COLUMN_WIDTH - 8,+ }}+ >+ <AgentTaskItem task={activeTask} />+ </div>+ ) : null}+ </DragOverlay>+ </DndContext>+ );+});++export default KanbanBoard;diff --git a/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsx b/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsxnew file mode 100644index 00000000000..e56940b7b91--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/KanbanColumn.tsx@@ -0,0 +1,167 @@+import { useDndContext, useDraggable, useDroppable } from '@dnd-kit/core';+import type { TaskStatus } from '@lobechat/types';+import { Text } from '@lobehub/ui';+import { createStaticStyles, cx } from 'antd-style';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';++import type { TaskListItem } from '@/store/task/slices/list/initialState';++import AgentTaskItem from '../features/AgentTaskItem';+import TaskStatusIcon from '../features/TaskStatusIcon';++export const COLUMN_WIDTH = 520;++const cardStyles = createStaticStyles(({ css, cssVar }) => ({+ card: css`+ cursor: grab;++ border: 1px solid ${cssVar.colorBorderSecondary};+ border-radius: ${cssVar.borderRadiusLG};++ background: ${cssVar.colorBgContainer};++ transition: box-shadow 0.2s;++ &:hover {+ box-shadow: ${cssVar.boxShadowTertiary};+ }+ `,+ dragging: css`+ visibility: hidden;+ `,+}));++const DraggableTaskCard = memo<{ task: TaskListItem }>(({ task }) => {+ const { attributes, isDragging, listeners, setNodeRef } = useDraggable({+ data: { task },+ id: task.identifier,+ });++ return (+ <div+ className={cx(cardStyles.card, isDragging && cardStyles.dragging)}+ ref={setNodeRef}+ {...listeners}+ {...attributes}+ >+ <AgentTaskItem task={task} />+ </div>+ );+});++const styles = createStaticStyles(({ css, cssVar }) => ({+ body: css`+ overflow-y: auto;+ display: flex;+ flex: 1;+ flex-direction: column;+ gap: 6px;++ padding-block: 4px 16px;+ padding-inline: 4px;+ `,+ column: css`+ display: flex;+ flex-direction: column;+ flex-shrink: 0;++ width: ${COLUMN_WIDTH}px;+ max-height: 100%;++ transition: background 0.2s;+ `,+ dropActive: css`+ border-radius: ${cssVar.borderRadiusLG};+ background: ${cssVar.colorFillQuaternary};+ `,+ emptyText: css`+ padding-block: 24px;+ padding-inline: 16px;++ font-size: 13px;+ color: ${cssVar.colorTextQuaternary};+ text-align: center;+ `,+ header: css`+ display: flex;+ gap: 8px;+ align-items: center;++ padding-block: 8px 10px;+ padding-inline: 8px;+ `,+ notDroppable: css`+ pointer-events: none;+ opacity: 0.4;+ `,+}));++const COLUMN_I18N_KEYS: Record<string, string> = {+ backlog: 'taskList.kanban.backlog',+ done: 'taskList.kanban.done',+ needsInput: 'taskList.kanban.needsInput',+ running: 'taskList.kanban.running',+};++const COLUMN_STATUS_ICON: Record<string, TaskStatus> = {+ backlog: 'backlog',+ done: 'completed',+ needsInput: 'paused',+ running: 'running',+};++interface KanbanColumnProps {+ columnKey: string;+ droppable: boolean;+ tasks: TaskListItem[];+ total: number;+}++const KanbanColumn = memo<KanbanColumnProps>(({ columnKey, droppable, tasks, total }) => {+ const { t } = useTranslation('chat');+ const { active } = useDndContext();+ const { isOver, setNodeRef } = useDroppable({+ disabled: !droppable,+ id: columnKey,+ });++ const statusIcon = COLUMN_STATUS_ICON[columnKey];+ const i18nKey = COLUMN_I18N_KEYS[columnKey];+ const label = i18nKey ? t(i18nKey as any) : columnKey;+ const isDragActive = !!active;++ // Don't highlight if dragging a card that's already in this column+ const activeTask = active?.data.current?.task as TaskListItem | undefined;+ const isFromThisColumn = activeTask && tasks.some((t) => t.identifier === activeTask.identifier);+ const showDropHighlight = isOver && droppable && !isFromThisColumn;+ const showDisabled = isDragActive && !droppable;++ return (+ <div+ ref={setNodeRef}+ className={cx(+ styles.column,+ showDropHighlight && styles.dropActive,+ showDisabled && styles.notDroppable,+ )}+ >+ <div className={styles.header}>+ {statusIcon && <TaskStatusIcon size={18} status={statusIcon} />}+ <Text weight={500}>{label}</Text>+ <Text fontSize={12} type={'secondary'}>+ {total}+ </Text>+ </div>+ <div className={styles.body}>+ {tasks.length > 0 ? (+ tasks.map((task) => <DraggableTaskCard key={task.identifier} task={task} />)+ ) : (+ <div className={styles.emptyText}>{t('taskList.kanban.emptyColumn')}</div>+ )}+ </div>+ </div>+ );+});++export default KanbanColumn;diff --git a/src/features/AgentTasks/AgentTaskList/TaskList.tsx b/src/features/AgentTasks/AgentTaskList/TaskList.tsxnew file mode 100644index 00000000000..38004abdec7--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/TaskList.tsx@@ -0,0 +1,236 @@+import { Accordion, AccordionItem, Block, Center, Empty, Flexbox, Icon, Text } from '@lobehub/ui';+import { Divider } from 'antd';+import { cssVar } from 'antd-style';+import { ClipboardCheckIcon, UserRound } from 'lucide-react';+import { Fragment, memo, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';+import { taskListSelectors } from '@/store/task/selectors';++import AgentTaskItem from '../features/AgentTaskItem';+import AssigneeAvatar from '../features/AssigneeAvatar';+import PriorityHighIcon from '../features/icons/PriorityHighIcon';+import PriorityLowIcon from '../features/icons/PriorityLowIcon';+import PriorityMediumIcon from '../features/icons/PriorityMediumIcon';+import PriorityNoneIcon from '../features/icons/PriorityNoneIcon';+import PriorityUrgentIcon from '../features/icons/PriorityUrgentIcon';+import TaskStatusIcon from '../features/TaskStatusIcon';+import { useAgentDisplayMeta } from '../shared/useAgentDisplayMeta';+import type { TaskGroupBy, TaskGroupMeta, TaskListViewOptions } from './listViewOptions';+import { compareTaskItems, getTaskGroupMeta, sortGroupEntries } from './listViewOptions';++interface TaskListProps {+ options: TaskListViewOptions;+}++const renderTaskRows = (items: ReturnType<typeof taskListSelectors.taskList>, sub?: boolean) =>+ items.map((task, index) => (+ <Fragment key={task.identifier}>+ <AgentTaskItem task={task} />+ {!sub && index !== items.length - 1 && <Divider dashed style={{ margin: 0 }} />}+ </Fragment>+ ));++const renderTaskListBlock = (+ items: ReturnType<typeof taskListSelectors.taskList>,+ sub?: boolean,+) => (+ <Block gap={sub ? 0 : 2} padding={2} variant={'borderless'}>+ {renderTaskRows(items, sub)}+ </Block>+);++const PRIORITY_ICON_MAP = {+ 0: PriorityNoneIcon,+ 1: PriorityUrgentIcon,+ 2: PriorityHighIcon,+ 3: PriorityMediumIcon,+ 4: PriorityLowIcon,+} as const;++const TASK_GROUP_BY_VALUES = new Set<TaskGroupBy>(['assignee', 'none', 'priority', 'status']);++const normalizeGroupBy = (value: TaskGroupBy | string | undefined, fallback: TaskGroupBy) => {+ if (!value) return fallback;+ return TASK_GROUP_BY_VALUES.has(value as TaskGroupBy) ? (value as TaskGroupBy) : fallback;+};++const AssigneeLabel = memo<{ agentId: string }>(({ agentId }) => {+ const displayMeta = useAgentDisplayMeta(agentId);+ return <>{displayMeta?.title}</>;+});++const renderGroupPrefix = (group: TaskGroupMeta) => {+ if (group.groupBy === 'assignee') {+ if (group.assigneeId) {+ return <AssigneeAvatar agentId={group.assigneeId} size={18} />;+ }+ return <Icon icon={UserRound} size={14} />;+ }++ if (group.groupBy === 'priority') {+ const priority = group.priority ?? 0;+ const PriorityIcon =+ PRIORITY_ICON_MAP[priority as keyof typeof PRIORITY_ICON_MAP] || PriorityNoneIcon;+ return (+ <PriorityIcon+ color={priority === 1 ? cssVar.orange : cssVar.colorTextDescription}+ size={16}+ />+ );+ }++ if (group.groupBy === 'status') {+ const status = group.status ?? 'backlog';++ return <TaskStatusIcon size={16} status={status} />;+ }++ return null;+};++const renderGroupTitle = (group: TaskGroupMeta, count: number, sub?: boolean) => (+ <Flexbox horizontal align={'center'} gap={8} justify={'space-between'}>+ <Flexbox horizontal align={'center'} flex={'none'} gap={6} style={{ overflow: 'hidden' }}>+ {renderGroupPrefix(group)}+ <Text ellipsis weight={500}>+ {group.assigneeId ? <AssigneeLabel agentId={group.assigneeId} /> : group.label}+ </Text>+ </Flexbox>+ <Text fontSize={12} type={'secondary'}>+ {count}+ </Text>+ {sub ? (+ <Divider style={{ margin: 0, borderColor: cssVar.colorBorder }} />+ ) : (+ <Flexbox flex={1} />+ )}+ </Flexbox>+);++const TaskList = memo<TaskListProps>(({ options }) => {+ const { t } = useTranslation('chat');+ const tasks = useTaskStore(taskListSelectors.taskList);+ const isInit = useTaskStore(taskListSelectors.isTaskListInit);+ const groupBy = normalizeGroupBy(options.groupBy, 'status');+ const subGroupBy = normalizeGroupBy(options.subGroupBy, 'none');+ const effectiveSubGroupBy = groupBy === 'none' ? 'none' : subGroupBy;+ const groupedTaskEntries = useMemo(() => {+ const sortedTasks = [...tasks].sort((a, b) => compareTaskItems(a, b, options));+ const primaryGroupOrderDirection =+ options.orderBy === groupBy ? options.orderDirection : undefined;+ const subGroupOrderDirection =+ options.orderBy === effectiveSubGroupBy ? options.orderDirection : undefined;++ const primaryGroupMap = new Map<string, { items: typeof tasks; meta: TaskGroupMeta }>();+ for (const task of sortedTasks) {+ const primaryGroup = getTaskGroupMeta(task, groupBy);+ if (!primaryGroup?.key) continue;+ const bucket = primaryGroupMap.get(primaryGroup.key);++ if (bucket) {+ bucket.items.push(task);+ } else {+ primaryGroupMap.set(primaryGroup.key, { items: [task], meta: primaryGroup });+ }+ }++ const primaryGroups = sortGroupEntries(+ [...primaryGroupMap.values()].map((group) => [group.meta, group.items]),+ groupBy,+ primaryGroupOrderDirection,+ );++ return primaryGroups.map(([meta, groupedTasks]) => {+ if (effectiveSubGroupBy === 'none') {+ return {+ items: groupedTasks,+ meta,+ subGroups: [] as Array<[TaskGroupMeta, typeof tasks]>,+ };+ }++ const subGroupMap = new Map<string, { items: typeof tasks; meta: TaskGroupMeta }>();+ for (const task of groupedTasks) {+ const subGroup = getTaskGroupMeta(task, effectiveSubGroupBy);+ if (!subGroup?.key) continue;+ const bucket = subGroupMap.get(subGroup.key);++ if (bucket) {+ bucket.items.push(task);+ } else {+ subGroupMap.set(subGroup.key, { items: [task], meta: subGroup });+ }+ }++ return {+ items: groupedTasks,+ meta,+ subGroups: sortGroupEntries(+ [...subGroupMap.values()].map((group) => [group.meta, group.items]),+ effectiveSubGroupBy,+ subGroupOrderDirection,+ ),+ };+ });+ }, [effectiveSubGroupBy, groupBy, options, tasks]);++ if (!isInit) return null;++ if (tasks.length === 0) {+ return (+ <Center height={'80vh'} width={'100%'}>+ <Empty description={t('taskList.empty')} icon={ClipboardCheckIcon} />+ </Center>+ );+ }++ if (groupBy === 'none') {+ return renderTaskListBlock(groupedTaskEntries[0]?.items ?? []);+ }++ return (+ <Accordion gap={16}>+ {groupedTaskEntries.map((group) => {+ return (+ <AccordionItem+ defaultExpand+ indicatorPlacement={'end'}+ itemKey={`group-${group.meta.key}`}+ key={group.meta.key}+ paddingBlock={8}+ paddingInline={14}+ title={renderGroupTitle(group.meta, group.items.length)}+ variant={'filled'}+ styles={{+ header: { marginBottom: 8 },+ }}+ >+ {group.subGroups.length > 0 ? (+ <Accordion gap={6}>+ {group.subGroups.map(([subGroup, subGroupTasks]) => (+ <AccordionItem+ defaultExpand+ indicatorPlacement={'end'}+ itemKey={`sub-${group.meta.key}-${subGroup.key}`}+ key={`${group.meta.key}-${subGroup.key}`}+ paddingBlock={6}+ paddingInline={14}+ title={renderGroupTitle(subGroup, subGroupTasks.length, true)}+ >+ {renderTaskListBlock(subGroupTasks, true)}+ </AccordionItem>+ ))}+ </Accordion>+ ) : (+ renderTaskListBlock(group.items)+ )}+ </AccordionItem>+ );+ })}+ </Accordion>+ );+});++export default TaskList;diff --git a/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx b/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsxnew file mode 100644index 00000000000..c111f9ca1fd--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/TasksGroupConfig.tsx@@ -0,0 +1,191 @@+import { type FormItemProps } from '@lobehub/ui';+import { ActionIcon, Flexbox, Form, Icon, Popover, Segmented, Select } from '@lobehub/ui';+import { Switch } from 'antd';+import { createStaticStyles } from 'antd-style';+import {+ ArrowDownWideNarrow,+ ArrowUpNarrowWide,+ LayoutGrid,+ LayoutList,+ Settings2Icon,+} from 'lucide-react';+import { memo, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { DESKTOP_HEADER_ICON_SIZE } from '@/const/layoutTokens';+import { useTaskStore } from '@/store/task';+import { taskListSelectors } from '@/store/task/selectors';++import type { TaskGroupBy, TaskListViewOptions, TaskOrderBy } from './listViewOptions';++interface TasksHeaderProps {+ options: TaskListViewOptions;+ setOptions: (updater: (prev: TaskListViewOptions) => TaskListViewOptions) => void;+}++const styles = createStaticStyles(({ css, cssVar }) => {+ return {+ form: css`+ label {+ font-size: 13px !important;+ color: ${cssVar.colorTextSecondary} !important;+ }+ `,+ };+});++const TasksGroupConfig = memo<TasksHeaderProps>(({ options, setOptions }) => {+ const [isViewConfigOpen, setIsViewConfigOpen] = useState(false);+ const { t } = useTranslation('chat');+ const viewMode = useTaskStore(taskListSelectors.viewMode);+ const setViewMode = useTaskStore((s) => s.setViewMode);+ const groupingOptions = useMemo<Array<{ label: string; value: TaskGroupBy }>>(+ () => [+ { label: t('taskList.groupBy.none'), value: 'none' },+ { label: t('taskList.groupBy.status'), value: 'status' },+ { label: t('taskList.groupBy.assignee'), value: 'assignee' },+ { label: t('taskList.groupBy.priority'), value: 'priority' },+ ],+ [t],+ );+ const orderOptions = useMemo<Array<{ label: string; value: TaskOrderBy }>>(+ () => [+ { label: t('taskList.orderBy.status'), value: 'status' },+ { label: t('taskList.orderBy.priority'), value: 'priority' },+ { label: t('taskList.orderBy.updatedAt'), value: 'updatedAt' },+ { label: t('taskList.orderBy.createdAt'), value: 'createdAt' },+ { label: t('taskList.orderBy.assignee'), value: 'assignee' },+ { label: t('taskList.orderBy.title'), value: 'title' },+ ],+ [t],+ );++ const subGroupingOptions = useMemo(+ () => groupingOptions.filter((item) => item.value !== options.groupBy || item.value === 'none'),+ [groupingOptions, options.groupBy],+ );+ const isSubGroupingEnabled = options.groupBy !== 'none';++ const formItems: FormItemProps[] = [+ {+ children: (+ <Select+ options={groupingOptions}+ size={'small'}+ style={{ width: 150 }}+ value={options.groupBy}+ onChange={(value: TaskGroupBy) => {+ setOptions((prev) => ({+ ...prev,+ groupBy: value,+ subGroupBy: prev.subGroupBy === value ? 'none' : prev.subGroupBy,+ }));+ }}+ />+ ),+ label: t('taskList.form.grouping'),+ },+ ...(isSubGroupingEnabled+ ? [+ {+ children: (+ <Select+ options={subGroupingOptions}+ size={'small'}+ style={{ width: 150 }}+ value={options.subGroupBy}+ onChange={(value: TaskGroupBy) => {+ setOptions((prev) => ({ ...prev, subGroupBy: value }));+ }}+ />+ ),+ label: t('taskList.form.subGrouping'),+ } satisfies FormItemProps,+ ]+ : []),+ {+ children: (+ <Flexbox horizontal align={'center'} gap={8}>+ <ActionIcon+ icon={options.orderDirection === 'asc' ? ArrowDownWideNarrow : ArrowUpNarrowWide}+ size={'small'}+ onClick={() => {+ setOptions((prev) => ({+ ...prev,+ orderDirection: prev.orderDirection === 'asc' ? 'desc' : 'asc',+ }));+ }}+ />+ <Select+ options={orderOptions}+ size={'small'}+ style={{ width: 112 }}+ value={options.orderBy}+ onChange={(value: TaskOrderBy) => {+ setOptions((prev) => ({ ...prev, orderBy: value }));+ }}+ />+ </Flexbox>+ ),+ label: t('taskList.form.ordering'),+ },+ {+ children: (+ <Switch+ checked={options.orderCompletedByRecency}+ size={'small'}+ onChange={(checked) => {+ setOptions((prev) => ({ ...prev, orderCompletedByRecency: checked }));+ }}+ />+ ),+ minWidth: undefined,+ label: t('taskList.form.orderCompletedByRecency'),+ },+ ];++ const panelContent = (+ <Flexbox gap={12} width={280}>+ <Segmented+ block+ value={viewMode}+ options={[+ { icon: <Icon icon={LayoutList} />, label: t('taskList.view.list'), value: 'list' },+ {+ icon: <Icon icon={LayoutGrid} />,+ label: t('taskList.view.board'),+ value: 'kanban',+ },+ ]}+ onChange={(value) => setViewMode(value as 'kanban' | 'list')}+ />+ {viewMode === 'list' && (+ <Form+ className={styles.form}+ items={formItems}+ itemsType={'flat'}+ size={'small'}+ variant={'borderless'}+ styles={{+ item: { padding: 0 },+ }}+ />+ )}+ </Flexbox>+ );++ return (+ <Popover+ arrow={false}+ content={panelContent}+ open={isViewConfigOpen}+ placement={'bottomRight'}+ trigger={['click']}+ onOpenChange={setIsViewConfigOpen}+ >+ <ActionIcon icon={Settings2Icon} size={DESKTOP_HEADER_ICON_SIZE} />+ </Popover>+ );+});++export default TasksGroupConfig;diff --git a/src/features/AgentTasks/AgentTaskList/index.tsx b/src/features/AgentTasks/AgentTaskList/index.tsxnew file mode 100644index 00000000000..89a0c35e95d--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/index.tsx@@ -0,0 +1,4 @@+export { default as AgentTasksPage } from './AgentTasksPage';+export * from './listViewOptions';+export { default as TaskList } from './TaskList';+export { default as TasksGroupConfig } from './TasksGroupConfig';diff --git a/src/features/AgentTasks/AgentTaskList/listViewOptions.ts b/src/features/AgentTasks/AgentTaskList/listViewOptions.tsnew file mode 100644index 00000000000..23b5f90bfd4--- /dev/null+++ b/src/features/AgentTasks/AgentTaskList/listViewOptions.ts@@ -0,0 +1,271 @@+import { t } from 'i18next';++import type { TaskListItem } from '@/store/task/slices/list/initialState';++export type TaskGroupBy = 'assignee' | 'none' | 'priority' | 'status';+export type TaskOrderBy = 'assignee' | 'createdAt' | 'priority' | 'status' | 'title' | 'updatedAt';+export type TaskOrderDirection = 'asc' | 'desc';++export interface TaskListViewOptions {+ groupBy: TaskGroupBy;+ orderBy: TaskOrderBy;+ orderCompletedByRecency: boolean;+ orderDirection: TaskOrderDirection;+ subGroupBy: TaskGroupBy;+}++export interface TaskGroupMeta {+ assigneeId?: string;+ groupBy: TaskGroupBy;+ key: string;+ label: string;+ priority?: number;+ status?: 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';+}++export const DEFAULT_TASK_LIST_VIEW_OPTIONS: TaskListViewOptions = {+ groupBy: 'status',+ orderBy: 'updatedAt',+ orderCompletedByRecency: true,+ orderDirection: 'asc',+ subGroupBy: 'none',+};++const TASK_GROUP_BY_SET = new Set<TaskGroupBy>(['assignee', 'none', 'priority', 'status']);+const TASK_ORDER_BY_SET = new Set<TaskOrderBy>([+ 'assignee',+ 'createdAt',+ 'priority',+ 'status',+ 'title',+ 'updatedAt',+]);+const TASK_ORDER_DIRECTION_SET = new Set<TaskOrderDirection>(['asc', 'desc']);++export const normalizeTaskListViewOptions = (+ value?: Partial<TaskListViewOptions> | null,+): TaskListViewOptions => {+ const next = value ?? {};+ const groupBy = TASK_GROUP_BY_SET.has(next.groupBy as TaskGroupBy)+ ? (next.groupBy as TaskGroupBy)+ : DEFAULT_TASK_LIST_VIEW_OPTIONS.groupBy;+ const subGroupBy = TASK_GROUP_BY_SET.has(next.subGroupBy as TaskGroupBy)+ ? (next.subGroupBy as TaskGroupBy)+ : DEFAULT_TASK_LIST_VIEW_OPTIONS.subGroupBy;++ return {+ groupBy,+ orderBy: TASK_ORDER_BY_SET.has(next.orderBy as TaskOrderBy)+ ? (next.orderBy as TaskOrderBy)+ : DEFAULT_TASK_LIST_VIEW_OPTIONS.orderBy,+ orderCompletedByRecency:+ typeof next.orderCompletedByRecency === 'boolean'+ ? next.orderCompletedByRecency+ : DEFAULT_TASK_LIST_VIEW_OPTIONS.orderCompletedByRecency,+ orderDirection: TASK_ORDER_DIRECTION_SET.has(next.orderDirection as TaskOrderDirection)+ ? (next.orderDirection as TaskOrderDirection)+ : DEFAULT_TASK_LIST_VIEW_OPTIONS.orderDirection,+ subGroupBy: groupBy === 'none' || subGroupBy !== groupBy ? subGroupBy : 'none',+ };+};++const PRIORITY_RANK_MAP: Record<number, number> = {+ 0: 4,+ 1: 0,+ 2: 1,+ 3: 2,+ 4: 3,+};++const STATUS_GROUP_RANK_MAP: Record<NonNullable<TaskGroupMeta['status']>, number> = {+ backlog: 0,+ running: 1,+ paused: 2,+ completed: 3,+ failed: 4,+ canceled: 5,+};++const TASK_STATUS_TO_GROUP_MAP: Record<string, NonNullable<TaskGroupMeta['status']>> = {+ backlog: 'backlog',+ canceled: 'canceled',+ completed: 'completed',+ failed: 'failed',+ paused: 'paused',+ running: 'running',+};++const getPriorityValue = (task: TaskListItem) => task.priority ?? 0;+const getTaskStatusGroup = (task: TaskListItem): NonNullable<TaskGroupMeta['status']> =>+ TASK_STATUS_TO_GROUP_MAP[task.status] ?? 'backlog';++const getTaskAssigneeMeta = (task: TaskListItem): TaskGroupMeta => {+ const agentId = task.assigneeAgentId;+ if (!agentId) {+ return {+ groupBy: 'assignee',+ key: 'assignee:unassigned',+ label: t('taskList.unassigned', { ns: 'chat' }),+ };+ }++ return {+ assigneeId: agentId,+ groupBy: 'assignee',+ key: `assignee:${agentId}`,+ label: agentId,+ };+};++const getTaskAssigneeSortValue = (task: TaskListItem) => task.assigneeAgentId ?? '';++const toTime = (value: Date | string | null | undefined): number => {+ if (!value) return 0;+ return value instanceof Date ? value.getTime() : new Date(value).getTime();+};++const compareNumbers = (a: number, b: number, direction: TaskOrderDirection) => {+ return direction === 'asc' ? a - b : b - a;+};++const compareStrings = (a: string, b: string, direction: TaskOrderDirection) => {+ return direction === 'asc' ? a.localeCompare(b) : b.localeCompare(a);+};++const getComparableValue = (task: TaskListItem, orderBy: TaskOrderBy): number | string => {+ switch (orderBy) {+ case 'assignee': {+ return getTaskAssigneeSortValue(task);+ }+ case 'createdAt': {+ return toTime(task.createdAt);+ }+ case 'priority': {+ return PRIORITY_RANK_MAP[getPriorityValue(task)];+ }+ case 'status': {+ return STATUS_GROUP_RANK_MAP[getTaskStatusGroup(task)];+ }+ case 'title': {+ return task.name || task.identifier;+ }+ case 'updatedAt': {+ return toTime(task.updatedAt);+ }+ }+};++export const compareTaskItems = (+ a: TaskListItem,+ b: TaskListItem,+ options: TaskListViewOptions,+): number => {+ const { orderBy, orderCompletedByRecency, orderDirection } = options;+ const effectiveOrderDirection =+ orderBy === 'createdAt' || orderBy === 'updatedAt'+ ? orderDirection === 'asc'+ ? 'desc'+ : 'asc'+ : orderDirection;++ if (orderCompletedByRecency && a.status === 'completed' && b.status === 'completed') {+ const byCompletedAt = compareNumbers(+ toTime(a.completedAt) || toTime(a.updatedAt),+ toTime(b.completedAt) || toTime(b.updatedAt),+ 'desc',+ );+ if (byCompletedAt !== 0) return byCompletedAt;+ }++ const valueA = getComparableValue(a, orderBy);+ const valueB = getComparableValue(b, orderBy);+ const compared =+ typeof valueA === 'number' && typeof valueB === 'number'+ ? compareNumbers(valueA, valueB, effectiveOrderDirection)+ : compareStrings(String(valueA), String(valueB), effectiveOrderDirection);++ if (compared !== 0) return compared;+ return compareStrings(a.identifier, b.identifier, 'asc');+};++export const getTaskGroupMeta = (task: TaskListItem, groupBy: TaskGroupBy): TaskGroupMeta => {+ switch (groupBy) {+ case 'assignee': {+ return getTaskAssigneeMeta(task);+ }+ case 'priority': {+ const priority = getPriorityValue(task);+ const labelKeyMap: Record<number, string> = {+ 0: 'taskDetail.priority.none',+ 1: 'taskDetail.priority.urgent',+ 2: 'taskDetail.priority.high',+ 3: 'taskDetail.priority.normal',+ 4: 'taskDetail.priority.low',+ };+ return {+ groupBy: 'priority',+ key: `priority:${priority}`,+ label: t(labelKeyMap[priority] ?? labelKeyMap[0], { defaultValue: '', ns: 'chat' }),+ priority,+ };+ }+ case 'status': {+ const groupedStatus = getTaskStatusGroup(task);+ const labelKeyMap: Record<NonNullable<TaskGroupMeta['status']>, string> = {+ backlog: 'taskDetail.status.backlog',+ canceled: 'taskDetail.status.canceled',+ completed: 'taskDetail.status.completed',+ failed: 'taskDetail.status.failed',+ paused: 'taskDetail.status.paused',+ running: 'taskDetail.status.running',+ };+ return {+ groupBy: 'status',+ key: `status:${groupedStatus}`,+ label: t(labelKeyMap[groupedStatus], { defaultValue: '', ns: 'chat' }),+ status: groupedStatus,+ };+ }+ case 'none': {+ return {+ groupBy: 'none',+ key: 'all',+ label: t('taskList.all', { ns: 'chat' }),+ };+ }+ }+};++const getGroupRank = (group: TaskGroupMeta, groupBy: TaskGroupBy): number => {+ switch (groupBy) {+ case 'priority': {+ if (group.priority === undefined) return Number.MAX_SAFE_INTEGER;+ return PRIORITY_RANK_MAP[group.priority] ?? Number.MAX_SAFE_INTEGER;+ }+ case 'status': {+ if (!group.status) return Number.MAX_SAFE_INTEGER;+ return STATUS_GROUP_RANK_MAP[group.status] ?? Number.MAX_SAFE_INTEGER;+ }+ default: {+ return Number.MAX_SAFE_INTEGER;+ }+ }+};++export const sortGroupEntries = (+ entries: Array<[TaskGroupMeta, TaskListItem[]]>,+ groupBy: TaskGroupBy,+ orderDirection?: TaskOrderDirection,+): Array<[TaskGroupMeta, TaskListItem[]]> => {+ if (groupBy === 'none') return entries;+ const direction = orderDirection ?? 'asc';++ return [...entries].sort(([groupA], [groupB]) => {+ const rankA = getGroupRank(groupA, groupBy);+ const rankB = getGroupRank(groupB, groupBy);+ if (rankA !== rankB) return direction === 'asc' ? rankA - rankB : rankB - rankA;+ return direction === 'asc'+ ? groupA.label.localeCompare(groupB.label)+ : groupB.label.localeCompare(groupA.label);+ });+};diff --git a/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsxnew file mode 100644index 00000000000..b9638fdd322--- /dev/null+++ b/src/features/AgentTasks/CreateTaskModal/CreateTaskContent.tsx@@ -0,0 +1,196 @@+'use client';++import { useEditor } from '@lobehub/editor/react';+import { ActionIcon, Block, Flexbox, Icon, Text } from '@lobehub/ui';+import { useModalContext } from '@lobehub/ui/base-ui';+import { Button } from 'antd';+import { cssVar } from 'antd-style';+import { Minimize2, UserCircle2, X } from 'lucide-react';+import { type KeyboardEvent, memo, useCallback, useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { EditorCanvas } from '@/features/EditorCanvas';+import { useGlobalStore } from '@/store/global';+import { useTaskStore } from '@/store/task';++import AssigneeAgentSelector from '../features/AssigneeAgentSelector';+import AssigneeAvatar from '../features/AssigneeAvatar';+import TaskPriorityTag from '../features/TaskPriorityTag';+import { useAgentDisplayMeta } from '../shared/useAgentDisplayMeta';++export interface CreateTaskContentProps {+ agentId?: string;+ onCreated?: (task: { agentId?: string; identifier: string }) => void;+}++const CreateTaskContent = memo<CreateTaskContentProps>(({ agentId, onCreated }) => {+ const { t } = useTranslation('chat');+ const { close } = useModalContext();++ const createTask = useTaskStore((s) => s.createTask);+ const isCreating = useTaskStore((s) => s.isCreatingTask);+ const updateSystemStatus = useGlobalStore((s) => s.updateSystemStatus);++ const [title, setTitle] = useState('');+ const [priority, setPriority] = useState(0);+ const [assigneeAgentId, setAssigneeAgentId] = useState<string | undefined>(agentId);++ const editor = useEditor();+ const instructionRef = useRef('');++ const assigneeMeta = useAgentDisplayMeta(assigneeAgentId);++ const handleInline = useCallback(() => {+ updateSystemStatus({ taskCreateInlineCollapsed: false }, 'expandTaskCreateInline');+ close();+ }, [close, updateSystemStatus]);++ const handleContentChange = useCallback(() => {+ if (!editor) return;+ instructionRef.current = String(editor.getDocument('markdown') ?? '');+ }, [editor]);++ const handleSubmit = useCallback(async () => {+ const instruction = instructionRef.current.trim();+ if (!instruction && !title.trim()) return;++ const result = await createTask({+ assigneeAgentId,+ instruction: instruction || title.trim(),+ name: title.trim() || undefined,+ priority: priority || undefined,+ });++ if (result) {+ close();+ onCreated?.({+ agentId: result.assigneeAgentId ?? undefined,+ identifier: result.identifier,+ });+ }+ }, [assigneeAgentId, close, createTask, onCreated, priority, title]);++ const handleSubmitRef = useRef(handleSubmit);+ useEffect(() => {+ handleSubmitRef.current = handleSubmit;+ }, [handleSubmit]);++ const handleKeyDown = useCallback((e: KeyboardEvent<HTMLDivElement>) => {+ if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) {+ e.preventDefault();+ e.stopPropagation();+ void handleSubmitRef.current?.();+ }+ }, []);++ return (+ <Flexbox onKeyDown={handleKeyDown}>+ <Flexbox horizontal style={{ padding: '16px 24px 0' }}>+ <Flexbox flex={1} style={{ minHeight: 180 }}>+ <input+ autoFocus+ placeholder={t('createTask.titlePlaceholder')}+ value={title}+ style={{+ background: 'transparent',+ border: 'none',+ color: 'inherit',+ fontFamily: 'inherit',+ fontSize: 20,+ fontWeight: 600,+ lineHeight: 1.4,+ outline: 'none',+ padding: '4px 0',+ width: '100%',+ }}+ onChange={(e) => setTitle(e.target.value)}+ />+ <EditorCanvas+ editor={editor}+ floatingToolbar={false}+ placeholder={t('createTask.instructionPlaceholder')}+ style={{ fontSize: 14, paddingBottom: 16 }}+ onContentChange={handleContentChange}+ />+ </Flexbox>+ <Flexbox horizontal gap={4} style={{ flexShrink: 0 }}>+ <ActionIcon+ icon={Minimize2}+ title={t('createTask.expandToInline')}+ onClick={handleInline}+ />+ <ActionIcon icon={X} onClick={close} />+ </Flexbox>+ </Flexbox>++ <Flexbox+ horizontal+ align={'center'}+ justify={'space-between'}+ style={{ borderTop: `1px solid ${cssVar.colorBorderSecondary}`, padding: '8px 16px' }}+ >+ <Flexbox horizontal gap={2} wrap={'wrap'}>+ <TaskPriorityTag priority={priority} onChange={setPriority}>+ <Block+ clickable+ horizontal+ align="center"+ gap={6}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ <TaskPriorityTag disableDropdown priority={priority} size={14} />+ <Text fontSize={12}>+ {priority === 0+ ? t('taskDetail.priority.none')+ : t(+ `taskDetail.priority.${(['', 'urgent', 'high', 'normal', 'low'] as const)[priority]}` as never,+ )}+ </Text>+ </Block>+ </TaskPriorityTag>++ <AssigneeAgentSelector currentAgentId={assigneeAgentId} onChange={setAssigneeAgentId}>+ <Block+ clickable+ horizontal+ align="center"+ gap={6}+ paddingBlock={4}+ paddingInline={8}+ variant={'borderless'}+ >+ {assigneeAgentId ? (+ <>+ <AssigneeAvatar agentId={assigneeAgentId} size={18} />+ <Text fontSize={12}>{assigneeMeta?.title}</Text>+ </>+ ) : (+ <>+ <Icon color={cssVar.colorTextDescription} icon={UserCircle2} size={14} />+ <Text color={cssVar.colorTextDescription} fontSize={12}>+ {t('createTask.assignee')}+ </Text>+ </>+ )}+ </Block>+ </AssigneeAgentSelector>+ </Flexbox>++ <Button+ disabled={isCreating}+ loading={isCreating}+ shape={'round'}+ size={'small'}+ type={'primary'}+ onClick={handleSubmit}+ >+ {t('createTask.submit')}+ </Button>+ </Flexbox>+ </Flexbox>+ );+});++export default CreateTaskContent;diff --git a/src/features/AgentTasks/CreateTaskModal/index.tsx b/src/features/AgentTasks/CreateTaskModal/index.tsxnew file mode 100644index 00000000000..62ad695980f--- /dev/null+++ b/src/features/AgentTasks/CreateTaskModal/index.tsx@@ -0,0 +1,20 @@+'use client';++import { createModal, type ModalInstance } from '@lobehub/ui/base-ui';++import CreateTaskContent, { type CreateTaskContentProps } from './CreateTaskContent';++export const createTaskModal = (props?: CreateTaskContentProps): ModalInstance =>+ createModal({+ content: <CreateTaskContent {...props} />,+ footer: null,+ maskClosable: true,+ styles: {+ content: {+ overflow: 'hidden',+ padding: 0,+ },+ },+ title: null,+ width: 'min(80%, 680px)',+ });diff --git a/src/features/AgentTasks/features/AgentTaskCardList.tsx b/src/features/AgentTasks/features/AgentTaskCardList.tsxnew file mode 100644index 00000000000..aaa4533ddc2--- /dev/null+++ b/src/features/AgentTasks/features/AgentTaskCardList.tsx@@ -0,0 +1,64 @@+import { Block, Flexbox } from '@lobehub/ui';+import { Divider } from 'antd';+import { Fragment, memo, useCallback, useMemo } from 'react';+import { useNavigate } from 'react-router-dom';++import { useAgentStore } from '@/store/agent';+import { useTaskStore } from '@/store/task';+import { taskListSelectors } from '@/store/task/selectors';++import AgentTaskItem from './AgentTaskItem';+import TaskListHeader from './TaskListHeader';++const MAX_DISPLAY = 5;++const toTime = (value: Date | string | null | undefined): number => {+ if (!value) return 0;+ return value instanceof Date ? value.getTime() : new Date(value).getTime();+};++const AgentTaskCardList = memo(() => {+ const agentId = useAgentStore((s) => s.activeAgentId);+ const navigate = useNavigate();+ const useFetchTaskList = useTaskStore((s) => s.useFetchTaskList);+ useFetchTaskList({ agentId });++ const tasks = useTaskStore(taskListSelectors.taskList);+ const isInit = useTaskStore(taskListSelectors.isTaskListInit);++ const handleViewAll = useCallback(() => {+ if (agentId) navigate(`/agent/${agentId}/tasks`);+ }, [agentId, navigate]);++ const displayTasks = useMemo(+ () =>+ [...tasks]+ .sort((a, b) => {+ const updatedA = toTime(a.updatedAt) || toTime(a.createdAt);+ const updatedB = toTime(b.updatedAt) || toTime(b.createdAt);+ if (updatedA !== updatedB) return updatedB - updatedA;+ return a.identifier.localeCompare(b.identifier);+ })+ .slice(0, MAX_DISPLAY),+ [tasks],+ );++ if (!isInit || tasks.length === 0) return null;++ return (+ <Block shadow variant={'outlined'}>+ <TaskListHeader count={tasks.length} onViewAll={handleViewAll} />+ <Divider style={{ margin: 0 }} />+ <Flexbox gap={2} padding={2}>+ {displayTasks.map((task, index) => (+ <Fragment key={task.identifier}>+ <AgentTaskItem task={task} />+ {index !== displayTasks.length - 1 && <Divider dashed style={{ margin: 0 }} />}+ </Fragment>+ ))}+ </Flexbox>+ </Block>+ );+});++export default AgentTaskCardList;diff --git a/src/features/AgentTasks/features/AgentTaskItem.tsx b/src/features/AgentTasks/features/AgentTaskItem.tsxnew file mode 100644index 00000000000..d4a11cbaf79--- /dev/null+++ b/src/features/AgentTasks/features/AgentTaskItem.tsx@@ -0,0 +1,118 @@+import { Block, Flexbox, Text } from '@lobehub/ui';+import dayjs from 'dayjs';+import { memo, useCallback } from 'react';+import { useNavigate } from 'react-router-dom';++import { useAgentStore } from '@/store/agent';+import { useTaskStore } from '@/store/task';+import type { TaskListItem } from '@/store/task/slices/list/initialState';++import TaskScheduleConfig from '../AgentTaskDetail/TaskScheduleConfig';+import AssigneeAgentSelector from './AssigneeAgentSelector';+import AssigneeAvatar from './AssigneeAvatar';+import TaskLatestActivity from './TaskLatestActivity';+import TaskPriorityTag from './TaskPriorityTag';+import TaskStatusTag from './TaskStatusTag';+import TaskSubtaskProgressTag from './TaskSubtaskProgressTag';+import TaskTriggerTag from './TaskTriggerTag';++interface TaskItemProps {+ task: TaskListItem;+}++const formatTime = (time?: string | Date | null) => {+ if (!time) return '';+ const d = dayjs(time);+ return d.isSame(dayjs(), 'day') ? d.format('HH:mm') : d.fromNow();+};++const TASK_STATUS_SET = new Set([+ 'backlog',+ 'canceled',+ 'completed',+ 'failed',+ 'paused',+ 'running',+]);++type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';++const toTaskStatus = (status: string): TaskStatus =>+ TASK_STATUS_SET.has(status) ? (status as TaskStatus) : 'backlog';++const AgentTaskItem = memo<TaskItemProps>(({ task }) => {+ const activeAgentId = useAgentStore((s) => s.activeAgentId);+ const useFetchTaskDetail = useTaskStore((s) => s.useFetchTaskDetail);+ useFetchTaskDetail(task.identifier);++ const taskDetail = useTaskStore((s) => s.taskDetailMap[task.identifier]);+ const navigate = useNavigate();++ const time = formatTime(task.updatedAt || task.createdAt);+ const status = toTaskStatus(task.status);++ // Prefer the task's own assignee so navigation works from the cross-agent `/tasks` page+ // where `activeAgentId` is not scoped to any particular agent. Falls back to the+ // currently active agent for unassigned tasks viewed from a per-agent page.+ const targetAgentId = task.assigneeAgentId || activeAgentId;++ const handleClick = useCallback(() => {+ if (targetAgentId) navigate(`/agent/${targetAgentId}/tasks/${task.identifier}`);+ }, [targetAgentId, navigate, task.identifier]);++ return (+ <Block clickable gap={4} padding={12} variant={'borderless'} onClick={handleClick}>+ <Flexbox horizontal align={'center'} gap={4} justify={'space-between'}>+ <Flexbox horizontal align="center" gap={8}>+ <TaskPriorityTag priority={task.priority} taskIdentifier={task.identifier} />+ <TaskStatusTag status={status} taskIdentifier={task.identifier} />+ <Text ellipsis weight={500}>+ {task.name || task.identifier}+ </Text>+ <TaskSubtaskProgressTag+ currentIdentifier={task.identifier}+ subtasks={taskDetail?.subtasks}+ onSubtaskClick={(identifier) => {+ if (targetAgentId) navigate(`/agent/${targetAgentId}/tasks/${identifier}`);+ }}+ />+ </Flexbox>+ <Flexbox horizontal align={'center'} flex={'none'} gap={8}>+ <TaskScheduleConfig+ currentInterval={taskDetail?.heartbeat?.interval ?? 0}+ taskId={task.identifier}+ >+ <TaskTriggerTag+ heartbeatInterval={taskDetail?.heartbeat?.interval}+ schedulePattern={task.schedulePattern}+ scheduleTimezone={task.scheduleTimezone}+ />+ </TaskScheduleConfig>+ <AssigneeAgentSelector+ currentAgentId={task.assigneeAgentId}+ disabled={status === 'running'}+ taskIdentifier={task.identifier}+ >+ <AssigneeAvatar agentId={task.assigneeAgentId} />+ </AssigneeAgentSelector>+ {time && (+ <Text+ align={'right'}+ fontSize={12}+ type={'secondary'}+ style={{+ whiteSpace: 'nowrap',+ width: 76,+ }}+ >+ {time}+ </Text>+ )}+ </Flexbox>+ </Flexbox>+ <TaskLatestActivity activities={taskDetail?.activities} />+ </Block>+ );+});++export default AgentTaskItem;diff --git a/src/features/AgentTasks/features/AssigneeAgentSelector.tsx b/src/features/AgentTasks/features/AssigneeAgentSelector.tsxnew file mode 100644index 00000000000..e7a549fe624--- /dev/null+++ b/src/features/AgentTasks/features/AssigneeAgentSelector.tsx@@ -0,0 +1,126 @@+import { DEFAULT_INBOX_AVATAR } from '@lobechat/const';+import { Flexbox, Popover, Tooltip } from '@lobehub/ui';+import { memo, type ReactNode, Suspense, useCallback, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import AgentItem from '@/features/PageEditor/Copilot/AgentSelector/AgentItem';+import { useFetchAgentList } from '@/hooks/useFetchAgentList';+import { useAgentStore } from '@/store/agent';+import { agentSelectors, builtinAgentSelectors } from '@/store/agent/selectors';+import { useHomeStore } from '@/store/home';+import { homeAgentListSelectors } from '@/store/home/selectors';+import { useTaskStore } from '@/store/task';++interface AssigneeAgentSelectorProps {+ children: ReactNode;+ currentAgentId?: string | null;+ disabled?: boolean;+ onChange?: (agentId: string) => void;+ taskIdentifier?: string;+}++const AssigneeAgentSelector = memo<AssigneeAgentSelectorProps>(+ ({ children, currentAgentId, disabled, onChange, taskIdentifier }) => {+ const { t } = useTranslation(['chat', 'common']);+ const [key, setKey] = useState(0);++ const updateTask = useTaskStore((s) => s.updateTask);+ const agents = useHomeStore(homeAgentListSelectors.allAgents);+ const isAgentListInit = useHomeStore(homeAgentListSelectors.isAgentListInit);++ const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);+ const inboxMeta = useAgentStore((s) =>+ inboxAgentId ? agentSelectors.getAgentMetaById(inboxAgentId)(s) : undefined,+ );++ useFetchAgentList();++ const agentList = useMemo(() => {+ const available = agents.filter((a) => a.type === 'agent');+ const hasInbox = available.some((a) => a.id === inboxAgentId);++ if (inboxAgentId && !hasInbox) {+ return [+ {+ avatar: inboxMeta?.avatar || DEFAULT_INBOX_AVATAR,+ description: null,+ id: inboxAgentId,+ pinned: false,+ title: inboxMeta?.title || t('inbox.title', { ns: 'chat' }),+ type: 'agent' as const,+ updatedAt: new Date(),+ },+ ...available,+ ];+ }++ return available;+ }, [agents, inboxAgentId, inboxMeta, t]);++ const handleAgentChange = useCallback(+ (agentId: string) => {+ if (agentId === currentAgentId) return;+ setKey((k) => k + 1);+ if (onChange) {+ onChange(agentId);+ return;+ }+ if (taskIdentifier) {+ void updateTask(taskIdentifier, { assigneeAgentId: agentId });+ }+ },+ [currentAgentId, onChange, taskIdentifier, updateTask],+ );++ const trigger = disabled ? (+ <Tooltip title={t('taskDetail.reassignDisabled', { ns: 'chat' })}>+ <div style={{ cursor: 'not-allowed', opacity: 0.5 }} onClick={(e) => e.stopPropagation()}>+ <span style={{ pointerEvents: 'none' }}>{children}</span>+ </div>+ </Tooltip>+ ) : (+ <div onClick={(e) => e.stopPropagation()}>{children}</div>+ );++ return (+ <Popover+ disabled={disabled}+ key={key}+ placement="bottomLeft"+ styles={{ content: { padding: 0, width: 240 } }}+ trigger="click"+ content={+ <Suspense fallback={<SkeletonList rows={6} />}>+ {isAgentListInit ? (+ <Flexbox+ gap={4}+ padding={8}+ style={{ maxHeight: '50vh', overflowY: 'auto', width: '100%' }}+ onClick={(e) => e.stopPropagation()}+ >+ {agentList.map((agent) => (+ <AgentItem+ active={agent.id === currentAgentId}+ agentId={agent.id}+ agentTitle={agent.title || t('untitledAgent', { ns: 'chat' })}+ avatar={agent.avatar}+ key={agent.id}+ onAgentChange={handleAgentChange}+ onClose={() => setKey((k) => k + 1)}+ />+ ))}+ </Flexbox>+ ) : (+ <SkeletonList rows={6} />+ )}+ </Suspense>+ }+ >+ {trigger}+ </Popover>+ );+ },+);++export default AssigneeAgentSelector;diff --git a/src/features/AgentTasks/features/AssigneeAvatar.tsx b/src/features/AgentTasks/features/AssigneeAvatar.tsxnew file mode 100644index 00000000000..91d5c9acc11--- /dev/null+++ b/src/features/AgentTasks/features/AssigneeAvatar.tsx@@ -0,0 +1,29 @@+import { Avatar } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { memo } from 'react';++import { useAgentDisplayMeta } from '../shared/useAgentDisplayMeta';++interface AssigneeAvatarProps {+ agentId?: string | null;+ size?: number;+}++const AssigneeAvatar = memo<AssigneeAvatarProps>(({ agentId, size = 22 }) => {+ const displayMeta = useAgentDisplayMeta(agentId);++ if (!displayMeta) return null;++ return (+ <Avatar+ avatar={displayMeta.avatar}+ background={displayMeta.backgroundColor || cssVar.colorBgContainer}+ shape={'circle'}+ size={size}+ title={displayMeta.title}+ variant={'outlined'}+ />+ );+});++export default AssigneeAvatar;diff --git a/src/features/AgentTasks/features/TaskLatestActivity.tsx b/src/features/AgentTasks/features/TaskLatestActivity.tsxnew file mode 100644index 00000000000..a784f7cf5c1--- /dev/null+++ b/src/features/AgentTasks/features/TaskLatestActivity.tsx@@ -0,0 +1,75 @@+import type { TaskDetailActivity } from '@lobechat/types';+import { Flexbox, Icon, Text } from '@lobehub/ui';+import { TreeDownRightIcon } from '@lobehub/ui/icons';+import { cssVar } from 'antd-style';+import type { TFunction } from 'i18next';+import { memo, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++const getActivityText = (activity: TaskDetailActivity | undefined, t: TFunction<'chat'>) => {+ if (!activity) return undefined;++ if (activity.type === 'comment') return activity.content || undefined;+ if (activity.type === 'topic') {+ const title = activity.title || t('taskDetail.latestActivity.untitledTopic');+ return activity.seq+ ? t('taskDetail.latestActivity.topicWithSeq', { seq: activity.seq, title })+ : t('taskDetail.latestActivity.topic', { title });+ }++ const briefTitle = activity.title || activity.summary;+ if (!briefTitle) {+ return activity.briefType+ ? t('taskDetail.latestActivity.briefWithTypeOnly', { type: activity.briefType })+ : t('taskDetail.latestActivity.briefOnly');+ }++ if (activity.resolvedAction) {+ return t('taskDetail.latestActivity.briefWithAction', {+ action: activity.resolvedAction,+ title: briefTitle,+ });+ }+ return activity.briefType+ ? t('taskDetail.latestActivity.briefWithType', { type: activity.briefType, title: briefTitle })+ : t('taskDetail.latestActivity.brief', { title: briefTitle });+};++interface TaskLatestActivityProps {+ activities?: TaskDetailActivity[];+}++const TaskLatestActivity = memo<TaskLatestActivityProps>(({ activities }) => {+ const { t } = useTranslation('chat');+ const latestActivityText = useMemo(() => {+ if (!activities || activities.length === 0) return undefined;++ const latest = [...activities].sort((a, b) => {+ const timeA = a.time ? new Date(a.time).getTime() : 0;+ const timeB = b.time ? new Date(b.time).getTime() : 0;+ return timeB - timeA;+ })[0];++ return getActivityText(latest, t);+ }, [activities, t]);++ if (!latestActivityText) return null;++ return (+ <Flexbox horizontal align={'flex-start'} gap={4}>+ <Icon+ color={cssVar.colorTextQuaternary}+ icon={TreeDownRightIcon}+ style={{+ marginTop: 2,+ marginLeft: 6,+ }}+ />+ <Text ellipsis fontSize={12} style={{ color: cssVar.colorTextDescription }}>+ {latestActivityText}+ </Text>+ </Flexbox>+ );+});++export default TaskLatestActivity;diff --git a/src/features/AgentTasks/features/TaskListHeader.tsx b/src/features/AgentTasks/features/TaskListHeader.tsxnew file mode 100644index 00000000000..9eb4f1b7226--- /dev/null+++ b/src/features/AgentTasks/features/TaskListHeader.tsx@@ -0,0 +1,50 @@+import { ActionIcon, Button, Flexbox, Text } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { ClipboardList } from 'lucide-react';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';++interface TaskListHeaderProps {+ count?: number;+ onViewAll?: () => void;+}++const TaskListHeader = memo<TaskListHeaderProps>(({ onViewAll, count }) => {+ const { t } = useTranslation('chat');++ return (+ <Flexbox+ horizontal+ align={'center'}+ justify={'space-between'}+ paddingBlock={8}+ paddingInline={8}+ >+ <Flexbox horizontal align="center" gap={8}>+ <ActionIcon+ shadow+ icon={ClipboardList}+ size={16}+ variant={'outlined'}+ onClick={onViewAll}+ />+ <Text weight={500}>{t('taskList.title')}</Text>+ <Text color={cssVar.colorTextQuaternary} fontSize={12}>+ {count}+ </Text>+ </Flexbox>+ <Button+ size={'small'}+ type={'text'}+ style={{+ color: cssVar.colorTextDescription,+ }}+ onClick={onViewAll}+ >+ {t('taskList.viewAll')}+ </Button>+ </Flexbox>+ );+});++export default TaskListHeader;diff --git a/src/features/AgentTasks/features/TaskPriorityTag.tsx b/src/features/AgentTasks/features/TaskPriorityTag.tsxnew file mode 100644index 00000000000..d29fc6fb827--- /dev/null+++ b/src/features/AgentTasks/features/TaskPriorityTag.tsx@@ -0,0 +1,147 @@+import type { IconType } from '@lobehub/icons';+import { Icon, Tooltip } from '@lobehub/ui';+import { Dropdown, type MenuProps } from 'antd';+import { createStaticStyles, cssVar } from 'antd-style';+import { Loader2Icon } from 'lucide-react';+import type { ReactNode } from 'react';+import { memo, useCallback, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';++import PriorityHighIcon from './icons/PriorityHighIcon';+import PriorityLowIcon from './icons/PriorityLowIcon';+import PriorityMediumIcon from './icons/PriorityMediumIcon';+import PriorityNoneIcon from './icons/PriorityNoneIcon';+import PriorityUrgentIcon from './icons/PriorityUrgentIcon';++interface PriorityMeta {+ icon: IconType;+ labelKey: string;+ level: number;+}++const PRIORITY_META: Record<number, PriorityMeta> = {+ 0: { icon: PriorityNoneIcon, labelKey: 'priority.none', level: 0 },+ 1: { icon: PriorityUrgentIcon, labelKey: 'priority.urgent', level: 1 },+ 2: { icon: PriorityHighIcon, labelKey: 'priority.high', level: 2 },+ 3: { icon: PriorityMediumIcon, labelKey: 'priority.normal', level: 3 },+ 4: { icon: PriorityLowIcon, labelKey: 'priority.low', level: 4 },+};++const styles = createStaticStyles(({ css, cssVar }) => ({+ trigger: css`+ cursor: pointer;++ display: inline-flex;+ align-items: center;++ color: ${cssVar.colorTextDescription};++ transition: color ${cssVar.motionDurationMid};++ &:hover {+ color: ${cssVar.colorText};+ }+ `,+ triggerUrgent: css`+ cursor: pointer;+ display: inline-flex;+ align-items: center;+ color: ${cssVar.orange};+ `,+}));++interface TaskPriorityTagProps {+ children?: ReactNode;+ disableDropdown?: boolean;+ onChange?: (priority: number) => void;+ priority?: number | null;+ size?: number;+ taskIdentifier?: string;+}++const TaskPriorityTag = memo<TaskPriorityTagProps>(+ ({ children, disableDropdown, onChange, size = 16, priority, taskIdentifier }) => {+ const [loading, setLoading] = useState(false);+ const { t } = useTranslation('chat');+ const updateTask = useTaskStore((s) => s.updateTask);+ const refreshTaskList = useTaskStore((s) => s.refreshTaskList);++ const meta = PRIORITY_META[priority ?? 0] ?? PRIORITY_META[0];++ const handlePriorityChange = useCallback(+ async (nextPriority: number) => {+ if (nextPriority === (priority ?? 0)) return;+ if (onChange) {+ onChange(nextPriority);+ return;+ }+ if (!taskIdentifier) return;+ setLoading(true);+ await updateTask(taskIdentifier, { priority: nextPriority });+ await refreshTaskList();+ setLoading(false);+ },+ [onChange, priority, refreshTaskList, taskIdentifier, updateTask],+ );++ const menuItems = useMemo<MenuProps['items']>(+ () =>+ Object.entries(PRIORITY_META).map(([key, value]) => {+ const level = Number(key);+ const IconRender = value.icon;+ const isUrgentLevel = value.level === 1;+ return {+ icon: (+ <IconRender+ color={isUrgentLevel ? cssVar.orange : cssVar.colorTextDescription}+ size={16}+ />+ ),+ key,+ label: t(`taskDetail.${value.labelKey}`, { defaultValue: '' }),+ onClick: ({ domEvent }) => {+ domEvent.stopPropagation();+ void handlePriorityChange(level);+ },+ };+ }),+ [handlePriorityChange, t],+ );++ const IconRender = meta.icon;+ const isUrgent = priority === 1;++ const triggerNode = children ? (+ children+ ) : loading ? (+ <Icon spin color={cssVar.colorTextDescription} icon={Loader2Icon} size={size} />+ ) : (+ <Tooltip title={t(`taskDetail.${meta.labelKey}`, { defaultValue: '' })}>+ <span+ className={isUrgent ? styles.triggerUrgent : styles.trigger}+ onClick={(e) => e.stopPropagation()}+ >+ <IconRender size={size} />+ </span>+ </Tooltip>+ );++ if (disableDropdown) return <>{triggerNode}</>;++ return (+ <Dropdown+ trigger={['click']}+ menu={{+ items: menuItems,+ selectedKeys: [String(priority ?? 0)],+ }}+ >+ {triggerNode}+ </Dropdown>+ );+ },+);++export default TaskPriorityTag;diff --git a/src/features/AgentTasks/features/TaskStatusIcon.tsx b/src/features/AgentTasks/features/TaskStatusIcon.tsxnew file mode 100644index 00000000000..f23fc881e1c--- /dev/null+++ b/src/features/AgentTasks/features/TaskStatusIcon.tsx@@ -0,0 +1,56 @@+import { ActionIcon } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import type { LucideIcon } from 'lucide-react';+import {+ CircleCheck,+ CircleDashed,+ CircleDot,+ CirclePause,+ CircleSlash,+ CircleX,+} from 'lucide-react';+import { memo } from 'react';++import { taskListSelectors } from '@/store/task/selectors';++type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';++interface StatusMeta {+ color: string;+ icon: LucideIcon;+}++const STATUS_META: Record<TaskStatus, StatusMeta> = {+ backlog: { color: cssVar.colorTextQuaternary, icon: CircleDashed },+ canceled: { color: cssVar.colorTextSecondary, icon: CircleSlash },+ completed: { color: cssVar.colorSuccess, icon: CircleCheck },+ failed: { color: cssVar.colorError, icon: CircleX },+ paused: { color: cssVar.colorWarning, icon: CirclePause },+ running: { color: cssVar.colorInfo, icon: CircleDot },+};++interface TaskStatusIconProps {+ size?: number;+ status: 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';+}++const TaskStatusIcon = memo<TaskStatusIconProps>(({ size = 16, status }) => {+ const displayStatus = taskListSelectors.getDisplayStatus(status);+ const { color, icon } = STATUS_META[status as TaskStatus] ?? STATUS_META.backlog;++ return (+ <ActionIcon+ color={color}+ icon={icon}+ title={displayStatus}+ size={{+ blockSize: size,+ size,+ borderRadius: '50%',+ strokeWidth: 3,+ }}+ />+ );+});++export default TaskStatusIcon;diff --git a/src/features/AgentTasks/features/TaskStatusTag.tsx b/src/features/AgentTasks/features/TaskStatusTag.tsxnew file mode 100644index 00000000000..242a722cc2d--- /dev/null+++ b/src/features/AgentTasks/features/TaskStatusTag.tsx@@ -0,0 +1,164 @@+import type { TaskStatus } from '@lobechat/types';+import { Icon, Tooltip } from '@lobehub/ui';+import { Dropdown, type MenuProps } from 'antd';+import { createStaticStyles, cssVar } from 'antd-style';+import type { LucideIcon } from 'lucide-react';+import {+ CircleCheck,+ CircleDashed,+ CircleDot,+ CirclePause,+ CircleSlash,+ CircleX,+ Loader2Icon,+} from 'lucide-react';+import type { ReactNode } from 'react';+import { memo, useCallback, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { useTaskStore } from '@/store/task';++interface StatusMeta {+ color: string;+ icon: LucideIcon;+ label: string;+ labelKey: string;+}++const STATUS_META: Record<TaskStatus, StatusMeta> = {+ backlog: {+ color: cssVar.colorTextQuaternary,+ icon: CircleDashed,+ label: 'Backlog',+ labelKey: 'status.backlog',+ },+ canceled: {+ color: cssVar.colorTextSecondary,+ icon: CircleSlash,+ label: 'Canceled',+ labelKey: 'status.canceled',+ },+ completed: {+ color: cssVar.colorSuccess,+ icon: CircleCheck,+ label: 'Completed',+ labelKey: 'status.completed',+ },+ failed: {+ color: cssVar.colorError,+ icon: CircleX,+ label: 'Failed',+ labelKey: 'status.failed',+ },+ paused: {+ color: cssVar.colorWarning,+ icon: CirclePause,+ label: 'Paused',+ labelKey: 'status.paused',+ },+ running: {+ color: cssVar.colorInfo,+ icon: CircleDot,+ label: 'Running',+ labelKey: 'status.running',+ },+};++const USER_SELECTABLE_STATUSES: TaskStatus[] = ['backlog', 'completed', 'canceled'];++const styles = createStaticStyles(({ css, cssVar }) => ({+ trigger: css`+ cursor: pointer;+ display: inline-flex;+ align-items: center;+ transition: filter ${cssVar.motionDurationMid};++ &:hover {+ filter: brightness(0.85);+ }+ `,+}));++interface TaskStatusTagProps {+ children?: ReactNode;+ disableDropdown?: boolean;+ onChange?: (status: TaskStatus) => void;+ size?: number;+ status?: TaskStatus;+ taskIdentifier?: string;+}++const TaskStatusTag = memo<TaskStatusTagProps>(+ ({ children, disableDropdown, onChange, size = 16, status, taskIdentifier }) => {+ const [loading, setLoading] = useState(false);+ const { t } = useTranslation('chat');+ const updateTaskStatus = useTaskStore((s) => s.updateTaskStatus);++ const displayStatus = status ?? 'backlog';+ const meta = STATUS_META[displayStatus];++ const handleStatusChange = useCallback(+ async (nextStatus: TaskStatus) => {+ if (nextStatus === displayStatus) return;+ if (onChange) {+ onChange(nextStatus);+ return;+ }+ if (!taskIdentifier) return;+ setLoading(true);++ try {+ await updateTaskStatus(taskIdentifier, nextStatus);+ } finally {+ setLoading(false);+ }+ },+ [displayStatus, onChange, taskIdentifier, updateTaskStatus],+ );++ const menuItems = useMemo<MenuProps['items']>(+ () =>+ USER_SELECTABLE_STATUSES.map((key) => {+ const statusMeta = STATUS_META[key];+ return {+ icon: <Icon color={statusMeta.color} icon={statusMeta.icon} size={16} />,+ key,+ label: t(`taskDetail.${statusMeta.labelKey}`, { defaultValue: statusMeta.label }),+ onClick: ({ domEvent }) => {+ domEvent.stopPropagation();+ void handleStatusChange(key);+ },+ };+ }),+ [handleStatusChange, t],+ );++ const triggerNode =+ children ||+ (loading ? (+ <Icon spin color={cssVar.colorTextDescription} icon={Loader2Icon} size={size} />+ ) : (+ <Tooltip title={t(`taskDetail.${meta.labelKey}`, { defaultValue: meta.label })}>+ <span className={styles.trigger} onClick={(e) => e.stopPropagation()}>+ <Icon color={meta.color} icon={meta.icon} size={size} />+ </span>+ </Tooltip>+ ));++ if (disableDropdown) return <>{triggerNode}</>;++ return (+ <Dropdown+ trigger={['click']}+ menu={{+ items: menuItems,+ selectedKeys: [displayStatus],+ }}+ >+ {triggerNode}+ </Dropdown>+ );+ },+);++export default TaskStatusTag;diff --git a/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsxnew file mode 100644index 00000000000..148b1b9e8ee--- /dev/null+++ b/src/features/AgentTasks/features/TaskSubtaskProgressTag.tsx@@ -0,0 +1,159 @@+import type { TaskDetailSubtask } from '@lobechat/types';+import { type DropdownMenuProps } from '@lobehub/ui';+import { Block, DropdownMenu, Flexbox, Text } from '@lobehub/ui';+import { Progress } from 'antd';+import { cssVar } from 'antd-style';+import { memo, useMemo } from 'react';++import TaskStatusIcon from './TaskStatusIcon';++type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';++const TASK_STATUS_SET = new Set([+ 'backlog',+ 'canceled',+ 'completed',+ 'failed',+ 'paused',+ 'running',+]);++const toTaskStatus = (status: string): TaskStatus =>+ TASK_STATUS_SET.has(status) ? (status as TaskStatus) : 'backlog';++interface FlattenedSubtask {+ depth: number;+ task: TaskDetailSubtask;+}++const flattenSubtasks = (nodes: TaskDetailSubtask[]) => {+ if (nodes.some((node) => Boolean(node.children?.length))) {+ const list: FlattenedSubtask[] = [];++ const walk = (items: TaskDetailSubtask[], depth: number) => {+ for (const item of items) {+ list.push({ depth, task: item });+ if (item.children && item.children.length > 0) {+ walk(item.children, depth + 1);+ }+ }+ };++ walk(nodes, 0);+ return list;+ }++ const taskMap = new Map(nodes.map((item) => [item.identifier, item]));+ const depthMemo = new Map<string, number>();++ const getDepth = (identifier: string, stack: Set<string>): number => {+ const cached = depthMemo.get(identifier);+ if (cached !== undefined) return cached;++ if (stack.has(identifier)) return 0;++ const node = taskMap.get(identifier);+ const parentIdentifier = node?.blockedBy;+ if (!node || !parentIdentifier || !taskMap.has(parentIdentifier)) {+ depthMemo.set(identifier, 0);+ return 0;+ }++ stack.add(identifier);+ const depth = getDepth(parentIdentifier, stack) + 1;+ stack.delete(identifier);++ depthMemo.set(identifier, depth);+ return depth;+ };++ return nodes.map((task) => ({+ depth: getDepth(task.identifier, new Set<string>()),+ task,+ }));+};++interface TaskSubtaskProgressTagProps {+ currentIdentifier?: string;+ onSubtaskClick?: (identifier: string) => void;+ subtasks?: TaskDetailSubtask[];+}++const TaskSubtaskProgressTag = memo<TaskSubtaskProgressTagProps>(+ ({ subtasks, currentIdentifier, onSubtaskClick }) => {+ const flattenedSubtasks = useMemo(() => {+ if (!subtasks || subtasks.length === 0) return [];+ return flattenSubtasks(subtasks);+ }, [subtasks]);++ const data = useMemo(() => {+ if (flattenedSubtasks.length === 0) return undefined;++ const total = flattenedSubtasks.length;+ const completed = flattenedSubtasks.filter((item) => item.task.status === 'completed').length;+ if (total === 0) return undefined;++ return {+ text: `${completed}/${total}`,+ percent: (completed / total) * 100,+ };+ }, [flattenedSubtasks]);++ if (!data) return null;++ const navigationItems = flattenedSubtasks.map((subtask) => {+ const isActive = subtask.task.identifier === currentIdentifier;+ const itemStatus = toTaskStatus(subtask.task.status);++ return {+ key: subtask.task.identifier,+ label: (+ <Flexbox horizontal align="center" gap={8}>+ {subtask.depth > 0 && <div style={{ flex: 'none', width: subtask.depth * 16 }} />}+ <TaskStatusIcon size={16} status={itemStatus} />+ <Text ellipsis weight={isActive ? 'bold' : undefined}>+ {subtask.task.name || subtask.task.identifier}+ </Text>+ </Flexbox>+ ),+ onClick: () => onSubtaskClick?.(subtask.task.identifier),+ };+ }) as DropdownMenuProps['items'];++ const hasDropdown = Boolean(onSubtaskClick) && navigationItems.length > 0;++ const tag = (+ <Block+ horizontal+ align={'center'}+ gap={4}+ height={24}+ paddingInline={'4px 8px'}+ style={{ borderRadius: 24, cursor: hasDropdown ? 'pointer' : undefined }}+ variant={'outlined'}+ onClick={hasDropdown ? (e) => e.stopPropagation() : undefined}+ >+ <Progress+ percent={data.percent}+ showInfo={false}+ size={16}+ strokeColor={cssVar.colorSuccess}+ type={'circle'}+ />+ <Text fontSize={12} type={'secondary'}>+ {data.text}+ </Text>+ </Block>+ );++ if (!hasDropdown) return tag;++ return (+ <DropdownMenu items={navigationItems} trigger={'both'}>+ {tag}+ </DropdownMenu>+ );+ },+);++export default TaskSubtaskProgressTag;diff --git a/src/features/AgentTasks/features/TaskTriggerTag.tsx b/src/features/AgentTasks/features/TaskTriggerTag.tsxnew file mode 100644index 00000000000..aa39ebda7c5--- /dev/null+++ b/src/features/AgentTasks/features/TaskTriggerTag.tsx@@ -0,0 +1,86 @@+import { Block, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import type { TFunction } from 'i18next';+import { ClockIcon } from 'lucide-react';+import { memo, useMemo } from 'react';+import { useTranslation } from 'react-i18next';++const formatInterval = (seconds: number, t: TFunction<'chat'>) => {+ if (seconds < 60) return t('taskSchedule.unit.second', { count: seconds });+ if (seconds % 3600 === 0) return t('taskSchedule.unit.hour', { count: seconds / 3600 });+ if (seconds % 60 === 0) return t('taskSchedule.unit.minute', { count: seconds / 60 });+ return t('taskSchedule.unit.second', { count: seconds });+};++interface TaskTriggerTagProps {+ heartbeatInterval?: number | null;+ mode?: 'inline' | 'tag';+ schedulePattern?: string | null;+ scheduleTimezone?: string | null;+}++const TaskTriggerTag = memo<TaskTriggerTagProps>(+ ({ heartbeatInterval, mode = 'tag', schedulePattern, scheduleTimezone }) => {+ const { t } = useTranslation('chat');+ const data = useMemo(() => {+ if (schedulePattern) {+ const timezone = scheduleTimezone ? ` (${scheduleTimezone})` : '';+ return {+ tooltip: t('taskSchedule.tag.schedule', {+ schedule: schedulePattern,+ timezone,+ }),+ text: `${schedulePattern} ${timezone}`,+ };+ }++ if (heartbeatInterval && heartbeatInterval > 0) {+ const every = t('taskSchedule.tag.every', {+ interval: formatInterval(heartbeatInterval, t),+ });+ return {+ tooltip: t('taskSchedule.tag.heartbeat', { every }),+ text: every,+ };+ }++ return undefined;+ }, [heartbeatInterval, schedulePattern, scheduleTimezone, t]);++ if (mode === 'inline') {+ return (+ <Tooltip title={data?.tooltip}>+ <Flexbox horizontal align="center" gap={10}>+ <Icon color={cssVar.colorTextDescription} icon={ClockIcon} size={16} />+ <Text type={data ? undefined : 'secondary'} weight={data ? 500 : undefined}>+ {data?.text ?? t('taskSchedule.tag.add')}+ </Text>+ </Flexbox>+ </Tooltip>+ );+ }++ if (!data) return null;++ return (+ <Tooltip title={data.tooltip}>+ <Block+ horizontal+ align={'center'}+ gap={4}+ height={24}+ paddingInline={'4px 8px'}+ style={{ borderRadius: 24 }}+ variant={'outlined'}+ >+ <Icon color={cssVar.colorTextDescription} icon={ClockIcon} size={16} />+ <Text fontSize={12} type={'secondary'}>+ {data.text}+ </Text>+ </Block>+ </Tooltip>+ );+ },+);++export default TaskTriggerTag;diff --git a/src/features/AgentTasks/features/icons/PriorityHighIcon.tsx b/src/features/AgentTasks/features/icons/PriorityHighIcon.tsxnew file mode 100644index 00000000000..c19e48fd98b--- /dev/null+++ b/src/features/AgentTasks/features/icons/PriorityHighIcon.tsx@@ -0,0 +1,23 @@+'use client';++import type { IconType } from '@lobehub/icons';+import { memo } from 'react';++const Icon: IconType = memo(({ size = '1em', style, ...rest }) => {+ return (+ <svg+ fill="currentColor"+ fillRule="evenodd"+ height={size}+ style={{ flex: 'none', lineHeight: 1, ...style }}+ viewBox="0 0 16 16"+ width={size}+ xmlns="http://www.w3.org/2000/svg"+ {...rest}+ >+ <path d="M3.5 8h-1a1 1 0 00-1 1v4a1 1 0 001 1h1a1 1 0 001-1V9a1 1 0 00-1-1zM8.5 5h-1a1 1 0 00-1 1v7a1 1 0 001 1h1a1 1 0 001-1V6a1 1 0 00-1-1zM13.5 2h-1a1 1 0 00-1 1v10a1 1 0 001 1h1a1 1 0 001-1V3a1 1 0 00-1-1z" />+ </svg>+ );+});++export default Icon;diff --git a/src/features/AgentTasks/features/icons/PriorityLowIcon.tsx b/src/features/AgentTasks/features/icons/PriorityLowIcon.tsxnew file mode 100644index 00000000000..5d5bea1c3d1--- /dev/null+++ b/src/features/AgentTasks/features/icons/PriorityLowIcon.tsx@@ -0,0 +1,27 @@+'use client';++import type { IconType } from '@lobehub/icons';+import { memo } from 'react';++const Icon: IconType = memo(({ size = '1em', style, ...rest }) => {+ return (+ <svg+ fill="currentColor"+ fillRule="evenodd"+ height={size}+ style={{ flex: 'none', lineHeight: 1, ...style }}+ viewBox="0 0 16 16"+ width={size}+ xmlns="http://www.w3.org/2000/svg"+ {...rest}+ >+ <path d="M3.5 8h-1a1 1 0 00-1 1v4a1 1 0 001 1h1a1 1 0 001-1V9a1 1 0 00-1-1z" />+ <path+ d="M8.5 5h-1a1 1 0 00-1 1v7a1 1 0 001 1h1a1 1 0 001-1V6a1 1 0 00-1-1zM13.5 2h-1a1 1 0 00-1 1v10a1 1 0 001 1h1a1 1 0 001-1V3a1 1 0 00-1-1z"+ fill-opacity=".4"+ />+ </svg>+ );+});++export default Icon;diff --git a/src/features/AgentTasks/features/icons/PriorityMediumIcon.tsx b/src/features/AgentTasks/features/icons/PriorityMediumIcon.tsxnew file mode 100644index 00000000000..0927bdec902--- /dev/null+++ b/src/features/AgentTasks/features/icons/PriorityMediumIcon.tsx@@ -0,0 +1,27 @@+'use client';++import type { IconType } from '@lobehub/icons';+import { memo } from 'react';++const Icon: IconType = memo(({ size = '1em', style, ...rest }) => {+ return (+ <svg+ fill="currentColor"+ fillRule="evenodd"+ height={size}+ style={{ flex: 'none', lineHeight: 1, ...style }}+ viewBox="0 0 16 16"+ width={size}+ xmlns="http://www.w3.org/2000/svg"+ {...rest}+ >+ <path d="M3.5 8h-1a1 1 0 00-1 1v4a1 1 0 001 1h1a1 1 0 001-1V9a1 1 0 00-1-1zM8.5 5h-1a1 1 0 00-1 1v7a1 1 0 001 1h1a1 1 0 001-1V6a1 1 0 00-1-1z" />+ <path+ d="M13.5 2h-1a1 1 0 00-1 1v10a1 1 0 001 1h1a1 1 0 001-1V3a1 1 0 00-1-1z"+ fill-opacity=".4"+ />+ </svg>+ );+});++export default Icon;diff --git a/src/features/AgentTasks/features/icons/PriorityNoneIcon.tsx b/src/features/AgentTasks/features/icons/PriorityNoneIcon.tsxnew file mode 100644index 00000000000..8cd22e12f16--- /dev/null+++ b/src/features/AgentTasks/features/icons/PriorityNoneIcon.tsx@@ -0,0 +1,26 @@+'use client';++import type { IconType } from '@lobehub/icons';+import { memo } from 'react';++const Icon: IconType = memo(({ size = '1em', style, ...rest }) => {+ return (+ <svg+ fill="currentColor"+ fillRule="evenodd"+ height={size}+ style={{ flex: 'none', lineHeight: 1, ...style }}+ viewBox="0 0 16 16"+ width={size}+ xmlns="http://www.w3.org/2000/svg"+ {...rest}+ >+ <path+ d="M4 7.25H2a.5.5 0 00-.5.5v.5a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-.5a.5.5 0 00-.5-.5zM9 7.25H7a.5.5 0 00-.5.5v.5a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-.5a.5.5 0 00-.5-.5zM14 7.25h-2a.5.5 0 00-.5.5v.5a.5.5 0 00.5.5h2a.5.5 0 00.5-.5v-.5a.5.5 0 00-.5-.5z"+ opacity=".9"+ />+ </svg>+ );+});++export default Icon;diff --git a/src/features/AgentTasks/features/icons/PriorityUrgentIcon.tsx b/src/features/AgentTasks/features/icons/PriorityUrgentIcon.tsxnew file mode 100644index 00000000000..dc743400387--- /dev/null+++ b/src/features/AgentTasks/features/icons/PriorityUrgentIcon.tsx@@ -0,0 +1,23 @@+'use client';++import type { IconType } from '@lobehub/icons';+import { memo } from 'react';++const Icon: IconType = memo(({ size = '1em', style, ...rest }) => {+ return (+ <svg+ fill="currentColor"+ fillRule="evenodd"+ height={size}+ style={{ flex: 'none', lineHeight: 1, ...style }}+ viewBox="0 0 16 16"+ width={size}+ xmlns="http://www.w3.org/2000/svg"+ {...rest}+ >+ <path d="M3 1c-1.09 0-2 .91-2 2v10c0 1.09.91 2 2 2h10c1.09 0 2-.91 2-2V3c0-1.09-.91-2-2-2H3zm4 3h2l-.246 4.998H7.25L7 4zm2 7a1 1 0 11-2 0 1 1 0 012 0z" />+ </svg>+ );+});++export default Icon;diff --git a/src/features/AgentTasks/features/index.ts b/src/features/AgentTasks/features/index.tsnew file mode 100644index 00000000000..b7dbbd2f731--- /dev/null+++ b/src/features/AgentTasks/features/index.ts@@ -0,0 +1,14 @@+export { default as AgentTaskCardList } from './AgentTaskCardList';+export { default as AgentTaskItem } from './AgentTaskItem';+export { default as AssigneeAvatar } from './AssigneeAvatar';+export { default as PriorityHighIcon } from './icons/PriorityHighIcon';+export { default as PriorityLowIcon } from './icons/PriorityLowIcon';+export { default as PriorityMediumIcon } from './icons/PriorityMediumIcon';+export { default as PriorityNoneIcon } from './icons/PriorityNoneIcon';+export { default as PriorityUrgentIcon } from './icons/PriorityUrgentIcon';+export { default as TaskLatestActivity } from './TaskLatestActivity';+export { default as TaskListHeader } from './TaskListHeader';+export { default as TaskPriorityTag } from './TaskPriorityTag';+export { default as TaskStatusIcon } from './TaskStatusIcon';+export { default as TaskSubtaskProgressTag } from './TaskSubtaskProgressTag';+export { default as TaskTriggerTag } from './TaskTriggerTag';diff --git a/src/features/AgentTasks/index.tsx b/src/features/AgentTasks/index.tsxnew file mode 100644index 00000000000..8666e64ad18--- /dev/null+++ b/src/features/AgentTasks/index.tsx@@ -0,0 +1,2 @@+export { TaskDetailPage } from './AgentTaskDetail';+export { AgentTasksPage } from './AgentTaskList';diff --git a/src/features/AgentTasks/shared/Breadcrumb.tsx b/src/features/AgentTasks/shared/Breadcrumb.tsxnew file mode 100644index 00000000000..c9cb7c3b5e7--- /dev/null+++ b/src/features/AgentTasks/shared/Breadcrumb.tsx@@ -0,0 +1,159 @@+import { DEFAULT_AVATAR } from '@lobechat/const';+import { Avatar, Flexbox, Icon, Text } from '@lobehub/ui';+import { Breadcrumb as AntBreadcrumb } from 'antd';+import { ChevronRight } from 'lucide-react';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';+import { Link } from 'react-router-dom';+import { useShallow } from 'zustand/react/shallow';++import { DEFAULT_INBOX_AVATAR } from '@/const/meta';+import { useAgentStore } from '@/store/agent';+import { agentSelectors, builtinAgentSelectors } from '@/store/agent/selectors';+import { useTaskStore } from '@/store/task';++import { isInboxAgentId } from './isInboxAgent';+import { styles } from './style';++interface BreadcrumbProps {+ /**+ * When omitted, the breadcrumb renders a single "All tasks" crumb for the+ * cross-agent `/tasks` route.+ */+ agentId?: string;+ taskId?: string;+}++const Breadcrumb = memo<BreadcrumbProps>(({ agentId, taskId }) => {+ const { t } = useTranslation('chat');+ const { t: tCommon } = useTranslation('common');+ const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);+ const agentMeta = useAgentStore((s) =>+ agentId ? agentSelectors.getAgentMetaById(agentId)(s) : undefined,+ );+ const taskTitle = useTaskStore((s) => (taskId ? s.taskDetailMap[taskId]?.name : undefined));+ const taskIdentifier = useTaskStore((s) =>+ taskId ? s.taskDetailMap[taskId]?.identifier : undefined,+ );+ const ancestors = useTaskStore(+ useShallow((s) => {+ if (!taskId) return [];+ const chain: string[] = [];+ const visited = new Set<string>([taskId]);+ let cursor = s.taskDetailMap[taskId]?.parent?.identifier;+ while (cursor && !visited.has(cursor)) {+ visited.add(cursor);+ chain.push(cursor);+ cursor = s.taskDetailMap[cursor]?.parent?.identifier;+ }+ return chain.reverse();+ }),+ );++ if (!agentId) {+ return (+ <AntBreadcrumb+ separator={<Icon icon={ChevronRight} />}+ items={[+ {+ title: (+ <Text color={'inherit'} weight={500}>+ {t('taskList.all')}+ </Text>+ ),+ },+ ]}+ />+ );+ }++ const isInboxAgent = isInboxAgentId(agentId, inboxAgentId);+ const agentName =+ agentMeta?.title?.trim() || (isInboxAgent ? t('inbox.title') : tCommon('defaultSession'));+ const agentAvatar = agentMeta?.avatar || (isInboxAgent ? DEFAULT_INBOX_AVATAR : DEFAULT_AVATAR);++ return (+ <AntBreadcrumb+ className={styles.breadcrumb}+ separator={<Icon icon={ChevronRight} />}+ items={[+ {+ title: (+ <Link to={`/agent/${agentId}`}>+ <Flexbox+ horizontal+ align={'center'}+ gap={6}+ style={{ minWidth: 0, overflow: 'hidden' }}+ >+ <Flexbox style={{ flexShrink: 0 }}>+ <Avatar avatar={agentAvatar} background={agentMeta?.backgroundColor} size={18} />+ </Flexbox>+ <Text ellipsis color={'inherit'} weight={500}>+ {agentName}+ </Text>+ </Flexbox>+ </Link>+ ),+ },+ ...(taskId+ ? []+ : [+ {+ title: (+ <Link to={`/agent/${agentId}/tasks`}>+ <Text color={'inherit'} weight={500}>+ {t('taskList.breadcrumb.task')}+ </Text>+ </Link>+ ),+ },+ ]),+ ...ancestors.map((identifier) => ({+ key: identifier,+ title: (+ <Link to={`/agent/${agentId}/tasks/${identifier}`}>+ <Text color={'inherit'} weight={500}>+ {identifier}+ </Text>+ </Link>+ ),+ })),+ ...(taskId+ ? [+ {+ title: (+ <span+ style={{+ alignItems: 'center',+ display: 'inline-flex',+ gap: 6,+ lineHeight: 1,+ minWidth: 0,+ overflow: 'hidden',+ }}+ >+ {taskIdentifier && (+ <Text+ color={'inherit'}+ style={{ flexShrink: 0 }}+ type={'secondary'}+ weight={500}+ >+ {taskIdentifier}+ </Text>+ )}+ <Text ellipsis color={'inherit'} style={{ maxWidth: 240 }} weight={500}>+ {taskTitle || taskId}+ </Text>+ </span>+ ),+ },+ ]+ : []),+ ]}+ />+ );+});++export default Breadcrumb;diff --git a/src/features/AgentTasks/shared/isInboxAgent.ts b/src/features/AgentTasks/shared/isInboxAgent.tsnew file mode 100644index 00000000000..2904de33a22--- /dev/null+++ b/src/features/AgentTasks/shared/isInboxAgent.ts@@ -0,0 +1,4 @@+import { INBOX_SESSION_ID } from '@lobechat/const';++export const isInboxAgentId = (agentId: string, inboxAgentId?: string | null): boolean =>+ agentId === INBOX_SESSION_ID || (!!inboxAgentId && agentId === inboxAgentId);diff --git a/src/features/AgentTasks/shared/style.ts b/src/features/AgentTasks/shared/style.tsnew file mode 100644index 00000000000..2b815f3a612--- /dev/null+++ b/src/features/AgentTasks/shared/style.ts@@ -0,0 +1,136 @@+import { createStaticStyles } from 'antd-style';++export const styles = createStaticStyles(({ css, cssVar }) => ({+ titleInput: css`+ &.ant-input {+ resize: none;++ flex: 1;++ min-height: auto;+ padding: 0;++ font-size: 24px;+ font-weight: 600;+ line-height: 1.3;+ }+ `,++ breadcrumb: css`+ overflow: hidden;+ min-width: 0;++ ol {+ flex-wrap: nowrap;+ align-items: center;+ min-width: 0;+ }++ li {+ overflow: hidden;+ display: flex;+ flex-shrink: 1;+ align-items: center;++ min-width: 0;+ }++ li.ant-breadcrumb-separator {+ overflow: visible;+ flex-shrink: 0;+ min-width: auto;+ }++ .ant-breadcrumb-link {+ overflow: hidden;+ display: flex;+ align-items: center;+ min-width: 0;+ }++ .ant-breadcrumb-link > a {+ overflow: hidden;+ display: flex;+ align-items: center;+ min-width: 0;+ }+ `,++ subtaskTree: css`+ .ant-tree-node-content-wrapper {+ cursor: default;++ overflow: hidden;+ display: flex;+ gap: 4px;+ align-items: center;++ min-height: 36px;++ color: ${cssVar.colorTextSecondary};+ }++ .ant-tree-switcher {+ margin-inline-end: 0;+ color: ${cssVar.colorTextDescription};+ }+ `,++ activityAvatar: css`+ display: flex;+ flex-shrink: 0;+ align-items: center;+ justify-content: center;++ width: 24px;+ height: 24px;+ border-radius: 50%;++ color: ${cssVar.colorTextQuaternary};++ background: ${cssVar.colorFillTertiary};+ `,++ commentCard: css`+ position: relative;++ .comment-actions {+ opacity: 0;+ transition: opacity 0.15s ease;+ }++ &:hover .comment-actions,+ &:focus-within .comment-actions {+ opacity: 1;+ }+ `,++ commentActions: css`+ position: absolute;+ inset-block-start: 8px;+ inset-inline-end: 8px;+ `,++ addSubtaskButton: css`+ &.ant-btn {+ font-size: 13px;+ color: ${cssVar.colorTextDescription};+ }++ &.ant-btn:hover,+ &.ant-btn:focus {+ color: ${cssVar.colorTextSecondary};+ }+ `,++ agentAuthorName: css`+ cursor: pointer;+ font-weight: 500;+ color: ${cssVar.colorTextSecondary};+ transition: color 0.15s ease;++ &:hover {+ color: ${cssVar.colorText};+ }+ `,+}));diff --git a/src/features/AgentTasks/shared/useAgentDisplayMeta.ts b/src/features/AgentTasks/shared/useAgentDisplayMeta.tsnew file mode 100644index 00000000000..13836dd43cf--- /dev/null+++ b/src/features/AgentTasks/shared/useAgentDisplayMeta.ts@@ -0,0 +1,48 @@+import { DEFAULT_AVATAR } from '@lobechat/const';+import { cssVar } from 'antd-style';+import { useTranslation } from 'react-i18next';++import { DEFAULT_INBOX_AVATAR } from '@/const/meta';+import { useAgentStore } from '@/store/agent';+import { agentSelectors, builtinAgentSelectors } from '@/store/agent/selectors';+import { useHomeStore } from '@/store/home';+import { homeAgentListSelectors } from '@/store/home/selectors';++import { isInboxAgentId } from './isInboxAgent';++interface AgentDisplayMeta {+ avatar: string;+ backgroundColor: string;+ title: string;+}++/**+ * Resolves agent display metadata from agent store with sidebar data as fallback.+ * The agent store only contains agents the user has actively visited, so sidebar+ * data (loaded eagerly) fills the gap for agents not yet in the store.+ */+export const useAgentDisplayMeta = (+ agentId: string | null | undefined,+): AgentDisplayMeta | undefined => {+ const { t } = useTranslation(['chat', 'common']);+ const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);+ const meta = useAgentStore((s) =>+ agentId ? agentSelectors.getAgentMetaById(agentId)(s) : undefined,+ );+ const sidebarAgent = useHomeStore(homeAgentListSelectors.getAgentById(agentId ?? ''));++ if (!agentId) return undefined;++ const isInbox = isInboxAgentId(agentId, inboxAgentId);+ const sidebarAvatar = typeof sidebarAgent?.avatar === 'string' ? sidebarAgent.avatar : undefined;++ return {+ avatar: meta?.avatar || sidebarAvatar || (isInbox ? DEFAULT_INBOX_AVATAR : DEFAULT_AVATAR),+ backgroundColor:+ meta?.backgroundColor || sidebarAgent?.backgroundColor || cssVar.colorBgContainer,+ title:+ meta?.title?.trim() ||+ sidebarAgent?.title ||+ (isInbox ? t('inbox.title', { ns: 'chat' }) : t('defaultSession', { ns: 'common' })),+ };+};diff --git a/src/features/ChatInput/compactPreset.ts b/src/features/ChatInput/compactPreset.tsnew file mode 100644index 00000000000..81bdb6dcdfd--- /dev/null+++ b/src/features/ChatInput/compactPreset.ts@@ -0,0 +1,8 @@+/**+ * Shared `<ChatInput/>` styling presets for compact right-side panels+ * (Page Agent Copilot, Task Manager, ...) so they stay visually aligned.+ */+export const COMPACT_ACTION_SIZE = { blockSize: 28, size: 16 };+export const COMPACT_ACTION_BAR_CONTEXT = { actionSize: COMPACT_ACTION_SIZE };+export const COMPACT_ACTION_BAR_STYLE = { paddingLeft: 4, paddingRight: 4 };+export const COMPACT_SEND_BUTTON_PROPS = { size: 28 };diff --git a/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx b/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsxindex 9b4b58e0e97..0e712fd6755 100644--- a/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx+++ b/src/features/Conversation/Messages/AssistantGroup/Tool/index.tsx@@ -90,12 +90,15 @@ const Tool = memo<GroupToolProps>();const hasError = !!result?.error;- const looksLikeWaitingForToolResult =- !hasError &&- !isArgumentsStreaming &&- (!result || result.content === LOADING_FLAT || !result.content);+ // This tool's own result is the source of truth for completion. The+ // message-level toolCalling flag stays true while sibling tools are still+ // running, so without this guard a finished tool flips back into "loading".+ const hasFinishedResult =+ hasError || (!!result && result.content !== LOADING_FLAT && !!result.content);+ const looksLikeWaitingForToolResult = !hasError && !isArgumentsStreaming && !hasFinishedResult;const isToolCallingFallback = looksLikeWaitingForToolResult && isAssistantMessageBusy;- const isToolCalling = isToolCallingFromOperation || isToolCallingFallback;+ const isToolCalling =+ !hasFinishedResult && (isToolCallingFromOperation || isToolCallingFallback);const hasCustomRender = !!getBuiltinRender(identifier, apiName);// Only allow toggle when has custom render and not in pending/reject/abort statediff --git a/src/features/Conversation/store/slices/message/action/sendMessage.ts b/src/features/Conversation/store/slices/message/action/sendMessage.tsindex 144ff1669d1..4646402897c 100644--- a/src/features/Conversation/store/slices/message/action/sendMessage.ts+++ b/src/features/Conversation/store/slices/message/action/sendMessage.ts@@ -45,10 +45,15 @@ export const sendMessage = (// Forward to ChatStore.sendMessage with context and messages// Pass displayMessages to decouple sendMessage from store selectors+ // `onTopicCreated` is invoked from inside ChatStore.sendMessage as soon as+ // the backend reports a new topic id (only under isolatedTopic contexts),+ // not here after the full streaming lifecycle — otherwise the isolated+ // UI would not see the AI response while it is still streaming.const result = await chatStore.sendMessage({...params,context,messages,+ onTopicCreated: hooks.onTopicCreated,});// ===== Hook: onAfterMessageCreate =====diff --git a/src/features/DailyBrief/BriefCard.tsx b/src/features/DailyBrief/BriefCard.tsxnew file mode 100644index 00000000000..8beb94de2f7--- /dev/null+++ b/src/features/DailyBrief/BriefCard.tsx@@ -0,0 +1,107 @@+import { DEFAULT_AVATAR, INBOX_SESSION_ID } from '@lobechat/const';+import { Avatar, Block, Flexbox, Text } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router-dom';++import { DEFAULT_INBOX_AVATAR } from '@/const/meta';+import Time from '@/routes/(main)/home/features/components/Time';+import { useAgentStore } from '@/store/agent';+import { builtinAgentSelectors } from '@/store/agent/selectors';++import BriefCardActions from './BriefCardActions';+import BriefCardSummary from './BriefCardSummary';+import BriefIcon from './BriefIcon';+import { styles } from './style';+import { type AgentAvatarInfo, type BriefItem } from './types';++interface AgentAvatarsProps {+ agents: AgentAvatarInfo[];+}++const AgentAvatars = memo<AgentAvatarsProps>(({ agents }) => {+ const { t } = useTranslation('common');+ if (agents.length === 0) return null;++ return (+ <Avatar.Group+ shadow+ size={28}+ items={agents.map((agent, index) => {+ const isInbox = agent?.id === INBOX_SESSION_ID;+ return {+ avatar: agent?.avatar || (isInbox ? DEFAULT_INBOX_AVATAR : DEFAULT_AVATAR),+ background: agent.backgroundColor || cssVar.colorBgContainer,+ key: agent.id || index.toString(),+ title: agent?.title || (isInbox ? t('inbox.title', { ns: 'chat' }) : t('defaultSession')),+ };+ })}+ />+ );+});++interface BriefCardProps {+ brief: BriefItem;+ /** When false, disables the header click-to-navigate behavior. */+ enableNavigation?: boolean;+ /** Hook invoked after a feedback comment is posted. */+ onAfterAddComment?: () => void | Promise<void>;+ /** Hook invoked after the brief is resolved. */+ onAfterResolve?: () => void | Promise<void>;+}++const BriefCard = memo<BriefCardProps>(+ ({ brief, enableNavigation = true, onAfterResolve, onAfterAddComment }) => {+ const navigate = useNavigate();+ const activeAgentId = useAgentStore((s) => s.activeAgentId);+ const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);++ const targetAgentId = brief.agents[0]?.id || activeAgentId || inboxAgentId;+ const canNavigate = enableNavigation && Boolean(brief.taskId && targetAgentId);++ return (+ <Block+ className={styles.card}+ gap={12}+ padding={12}+ style={{ borderRadius: cssVar.borderRadiusLG }}+ variant={'outlined'}+ >+ <Flexbox+ horizontal+ align={'center'}+ className={canNavigate ? styles.clickableHeader : undefined}+ gap={16}+ justify={'space-between'}+ onClick={+ canNavigate+ ? () => navigate(`/agent/${targetAgentId}/tasks/${brief.taskId}`)+ : undefined+ }+ >+ <Flexbox horizontal align={'center'} gap={8} style={{ overflow: 'hidden' }}>+ <BriefIcon type={brief.type} />+ <Text ellipsis fontSize={16} style={{ flex: 1 }} weight={500}>+ {brief.title}+ </Text>+ <Time date={brief.createdAt} />+ </Flexbox>+ {brief.agents.length > 0 && <AgentAvatars agents={brief.agents} />}+ </Flexbox>+ <BriefCardSummary summary={brief.summary} />+ <BriefCardActions+ actions={brief.actions}+ briefId={brief.id}+ briefType={brief.type}+ resolvedAction={brief.resolvedAction}+ taskId={brief.taskId}+ onAfterAddComment={onAfterAddComment}+ onAfterResolve={onAfterResolve}+ />+ </Block>+ );+ },+);++export default BriefCard;diff --git a/src/features/DailyBrief/BriefCardActions.tsx b/src/features/DailyBrief/BriefCardActions.tsxnew file mode 100644index 00000000000..a0afa69a61e--- /dev/null+++ b/src/features/DailyBrief/BriefCardActions.tsx@@ -0,0 +1,182 @@+import { type BriefAction, DEFAULT_BRIEF_ACTIONS } from '@lobechat/types';+import { Button, Flexbox, Icon, Text, Tooltip } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { Check, SquarePen } from 'lucide-react';+import { memo, useCallback, useEffect, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { shallow } from 'zustand/shallow';++import { useBriefStore } from '@/store/brief';++import CommentInput from './CommentInput';+import { styles } from './style';++export interface BriefCardActionsProps {+ /** Brief actions from the brief payload — falls back to DEFAULT_BRIEF_ACTIONS by type. */+ actions?: BriefAction[] | null;+ briefId: string;+ briefType: string;+ /** Hook invoked after a comment is successfully posted. */+ onAfterAddComment?: () => void | Promise<void>;+ /** Hook invoked after the brief is successfully resolved. */+ onAfterResolve?: () => void | Promise<void>;+ resolvedAction?: string | null;+ taskId?: string | null;+}++type CommentMode = { type: 'feedback' } | { key: string; type: 'comment' };++const SuccessTag = memo<{ label: string }>(({ label }) => (+ <Flexbox horizontal align={'center'} gap={4}>+ <Icon icon={Check} size={14} />+ <Text className={styles.resolvedTag}>{label}</Text>+ </Flexbox>+));++const BriefCardActions = memo<BriefCardActionsProps>(+ ({+ actions: actionsProp,+ briefId,+ briefType,+ onAfterAddComment,+ onAfterResolve,+ resolvedAction,+ taskId,+ }) => {+ const { t } = useTranslation('home');+ const [commentMode, setCommentMode] = useState<CommentMode | null>(null);+ const [loadingKey, setLoadingKey] = useState<string | null>(null);+ const [feedbackSent, setFeedbackSent] = useState(false);+ const { addComment, resolveBrief } = useBriefStore(+ (s) => ({ addComment: s.addComment, resolveBrief: s.resolveBrief }),+ shallow,+ );++ useEffect(() => {+ if (!feedbackSent) return;+ const timer = setTimeout(() => setFeedbackSent(false), 1500);+ return () => clearTimeout(timer);+ }, [feedbackSent]);++ const actions = actionsProp ?? DEFAULT_BRIEF_ACTIONS[briefType] ?? [];++ const getActionLabel = useCallback(+ (action: BriefAction) => {+ const i18nKey = `brief.action.${action.key}`;+ const translated = t(i18nKey, { defaultValue: '' });+ return !translated || translated === i18nKey ? action.label : translated;+ },+ [t],+ );++ const handleResolve = useCallback(+ async (key: string) => {+ setLoadingKey(key);+ try {+ await resolveBrief(briefId, key);+ await onAfterResolve?.();+ } finally {+ setLoadingKey(null);+ }+ },+ [briefId, resolveBrief, onAfterResolve],+ );++ const handleCommentSubmit = useCallback(+ async (text: string) => {+ if (!commentMode) return;++ if (commentMode.type === 'comment') {+ setLoadingKey(commentMode.key);+ try {+ await resolveBrief(briefId, commentMode.key, text);+ await onAfterResolve?.();+ } finally {+ setLoadingKey(null);+ }+ } else {+ if (taskId) {+ await addComment(briefId, taskId, text);+ await onAfterAddComment?.();+ }+ setFeedbackSent(true);+ }++ setCommentMode(null);+ },+ [addComment, briefId, commentMode, resolveBrief, taskId, onAfterResolve, onAfterAddComment],+ );++ if (resolvedAction) return <SuccessTag label={t('brief.resolved')} />;+ if (feedbackSent) return <SuccessTag label={t('brief.feedbackSent')} />;+ if (commentMode) {+ return <CommentInput onCancel={() => setCommentMode(null)} onSubmit={handleCommentSubmit} />;+ }++ const commentActions = actions.find((a) => a.type === 'comment');+ const primaryActions = actions.find((a) => a.type !== 'comment');+ const otherActions = actions+ .filter((a) => a.type !== 'comment')+ .slice(1)+ .reverse();++ return (+ <Flexbox horizontal align={'center'} gap={8} justify={'flex-end'} wrap={'wrap'}>+ <Flexbox horizontal align={'center'} gap={8}>+ {taskId && commentActions && (+ <Tooltip title={getActionLabel(commentActions) || t('brief.addFeedback')}>+ <Button+ className={'brief-comment-btn'}+ icon={SquarePen}+ shape={'round'}+ style={{+ color: cssVar.colorTextSecondary,+ }}+ onClick={() => setCommentMode({ type: 'feedback' })}+ />+ </Tooltip>+ )}+ {otherActions.map((action) => {+ if (action.type === 'link') {+ return (+ <Button+ className={styles.actionBtn}+ href={action.url}+ key={action.key}+ shape={'round'}+ >+ {getActionLabel(action)}+ </Button>+ );+ }++ return (+ <Button+ className={styles.actionBtn}+ disabled={loadingKey === action.key}+ key={action.key}+ shape={'round'}+ onClick={() => handleResolve(action.key)}+ >+ {getActionLabel(action)}+ </Button>+ );+ })}+ {primaryActions && (+ <Button+ className={styles.actionBtnPrimary}+ disabled={loadingKey === primaryActions.key}+ shape={'round'}+ variant={'filled'}+ onClick={() => handleResolve(primaryActions.key)}+ >+ {getActionLabel(primaryActions)}+ </Button>+ )}+ </Flexbox>+ </Flexbox>+ );+ },+);++export default BriefCardActions;diff --git a/src/features/DailyBrief/BriefCardSummary.tsx b/src/features/DailyBrief/BriefCardSummary.tsxnew file mode 100644index 00000000000..386ab684df0--- /dev/null+++ b/src/features/DailyBrief/BriefCardSummary.tsx@@ -0,0 +1,67 @@+import { Button, Flexbox, Markdown, MaskShadow } from '@lobehub/ui';+import { useSize } from 'ahooks';+import { Divider } from 'antd';+import { ChevronsDownUpIcon, ChevronsUpDownIcon } from 'lucide-react';+import { memo, useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';++import { styles } from './style';++export const COLLAPSED_MAX_HEIGHT = 240;++interface BriefCardSummaryProps {+ summary: string;+}++const BriefCardSummary = memo<BriefCardSummaryProps>(({ summary }) => {+ const { t } = useTranslation('home');+ const [expanded, setExpanded] = useState(false);+ const [isOverflow, setIsOverflow] = useState(false);+ const ref = useRef<any>(null);+ const size = useSize(ref);++ useEffect(() => {+ if (!size) return;+ setIsOverflow(size.height > COLLAPSED_MAX_HEIGHT);+ }, [size]);++ const content = (+ <Markdown ref={ref} style={{ overflow: 'unset' }} variant={'chat'}>+ {summary}+ </Markdown>+ );++ return (+ <Flexbox gap={4}>+ <Divider dashed style={{ marginTop: 0, marginBottom: 8 }} />+ {isOverflow && !expanded ? (+ <MaskShadow+ size={32}+ style={{+ maxHeight: expanded ? undefined : COLLAPSED_MAX_HEIGHT,+ }}+ >+ {content}+ </MaskShadow>+ ) : (+ content+ )}++ {isOverflow && (+ <Button+ block+ className={styles.expandLink}+ icon={expanded ? ChevronsDownUpIcon : ChevronsUpDownIcon}+ iconPlacement={'end'}+ size={'small'}+ type={'text'}+ onClick={() => setExpanded(!expanded)}+ >+ {expanded ? t('brief.collapse') : t('brief.expandAll')}+ </Button>+ )}+ </Flexbox>+ );+});++export default BriefCardSummary;diff --git a/src/features/DailyBrief/BriefIcon.tsx b/src/features/DailyBrief/BriefIcon.tsxnew file mode 100644index 00000000000..2b5bbd60346--- /dev/null+++ b/src/features/DailyBrief/BriefIcon.tsx@@ -0,0 +1,53 @@+import { type BriefType } from '@lobechat/types';+import { Block, Icon } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import type { CircleDot } from 'lucide-react';+import { CheckCheckIcon, EyeIcon, Lightbulb, PencilRulerIcon, SirenIcon } from 'lucide-react';+import { memo } from 'react';++const BRIEF_TYPE_ICON: Record<BriefType, typeof CircleDot> = {+ decision: PencilRulerIcon,+ error: SirenIcon,+ insight: EyeIcon,+ result: CheckCheckIcon,+};++const BRIEF_TYPE_COLOR: Record<BriefType, string | undefined> = {+ decision: cssVar.colorWarning,+ error: cssVar.colorError,+ insight: cssVar.colorInfo,+ result: cssVar.colorSuccess,+} as const;++const BRIEF_TYPE_COLOR_BG: Record<BriefType, string | undefined> = {+ decision: cssVar.colorWarningBgHover,+ error: cssVar.colorErrorBgHover,+ insight: cssVar.colorInfoBgHover,+ result: cssVar.colorSuccessBgHover,+} as const;++interface BriefIconProps {+ size?: number;+ type: BriefType;+}++const BriefIcon = memo<BriefIconProps>(({ size = 28, type }) => {+ const icon = BRIEF_TYPE_ICON[type] || Lightbulb;+ const color = BRIEF_TYPE_COLOR[type] || cssVar.colorPrimary;++ return (+ <Block+ align={'center'}+ height={size}+ justify={'center'}+ width={size}+ style={{+ background: BRIEF_TYPE_COLOR_BG[type],+ }}+ >+ <Icon color={color} icon={icon} size={size * 0.6} />+ </Block>+ );+});++export default BriefIcon;diff --git a/src/features/DailyBrief/CommentInput.tsx b/src/features/DailyBrief/CommentInput.tsxnew file mode 100644index 00000000000..9618be19af3--- /dev/null+++ b/src/features/DailyBrief/CommentInput.tsx@@ -0,0 +1,78 @@+import { ChatInput, Editor, SendButton, useEditor } from '@lobehub/editor/react';+import { Button, Flexbox } from '@lobehub/ui';+import { cssVar } from 'antd-style';+import { ChevronLeft } from 'lucide-react';+import { memo, useCallback, useState } from 'react';+import { useTranslation } from 'react-i18next';++interface CommentInputProps {+ onCancel: () => void;+ onSubmit: (text: string) => Promise<void> | void;+}++const CommentInput = memo<CommentInputProps>(({ onSubmit, onCancel }) => {+ const { t } = useTranslation('home');+ const editor = useEditor();+ const [submitting, setSubmitting] = useState(false);++ const handleSubmit = useCallback(async () => {+ const content = String(editor?.getDocument?.('markdown') ?? '').trim();+ if (!content || submitting) return;+ setSubmitting(true);+ try {+ await onSubmit(content);+ } finally {+ setSubmitting(false);+ }+ }, [editor, onSubmit, submitting]);++ return (+ <ChatInput+ gap={8}+ maxHeight={100}+ minHeight={30}+ resize={false}+ footer={+ <Flexbox horizontal align={'center'} gap={8} justify={'space-between'} padding={8}>+ <Button+ disabled={submitting}+ icon={ChevronLeft}+ size={'small'}+ type={'text'}+ style={{+ color: cssVar.colorTextDescription,+ }}+ onClick={onCancel}+ >+ {t('cancel', { ns: 'common' })}+ </Button>+ <SendButton+ loading={submitting}+ shape={'round'}+ title={t('brief.commentSubmit')}+ type={'primary'}+ onClick={handleSubmit}+ />+ </Flexbox>+ }+ >+ <Editor+ content={''}+ editor={editor}+ enablePasteMarkdown={false}+ markdownOption={false}+ placeholder={t('brief.commentPlaceholder')}+ type={'text'}+ variant={'chat'}+ onPressEnter={({ event }) => {+ if (event.metaKey || event.ctrlKey) {+ handleSubmit();+ return true;+ }+ }}+ />+ </ChatInput>+ );+});++export default CommentInput;diff --git a/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx b/src/features/DailyBrief/__tests__/BriefCardActions.test.tsxnew file mode 100644index 00000000000..dce4c336b89--- /dev/null+++ b/src/features/DailyBrief/__tests__/BriefCardActions.test.tsx@@ -0,0 +1,114 @@+import type { BriefAction } from '@lobechat/types';+import { fireEvent, render, screen } from '@testing-library/react';+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { useBriefStore } from '@/store/brief';++import BriefCardActions from '../BriefCardActions';++// Mock i18n+vi.mock('react-i18next', () => ({+ useTranslation: () => ({+ t: (key: string) => {+ const map: Record<string, string> = {+ 'brief.resolved': 'Marked as resolved',+ 'cancel': 'Cancel',+ 'brief.commentPlaceholder': 'Share your feedback...',+ 'brief.commentSubmit': 'Submit feedback',+ };+ return map[key] || key;+ },+ }),+}));++const mockResolveBrief = vi.fn();++const sampleActions: BriefAction[] = [+ { key: 'approve', label: 'Approve', type: 'resolve' },+ { key: 'feedback', label: 'Feedback', type: 'comment' },+];++beforeEach(() => {+ vi.clearAllMocks();+ useBriefStore.setState({+ resolveBrief: mockResolveBrief,+ });+});++describe('BriefCardActions', () => {+ it('should render resolve action buttons from actions prop', () => {+ render(<BriefCardActions actions={sampleActions} briefId="brief-1" briefType="decision" />);+ expect(screen.getByText('Approve')).toBeInTheDocument();+ });++ it('should render comment action button', () => {+ const { container } = render(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ taskId="task-1"+ />,+ );+ const commentButton = container.querySelector('.brief-comment-btn');+ expect(commentButton).toBeInTheDocument();+ });++ it('should call resolveBrief and onAfterResolve on resolve button click', async () => {+ mockResolveBrief.mockResolvedValueOnce(undefined);+ const onAfterResolve = vi.fn();+ render(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ onAfterResolve={onAfterResolve}+ />,+ );++ fireEvent.click(screen.getByText('Approve'));++ expect(mockResolveBrief).toHaveBeenCalledWith('brief-1', 'approve');+ await Promise.resolve();+ expect(onAfterResolve).toHaveBeenCalled();+ });++ it('should hide action buttons when comment button clicked', () => {+ const { container } = render(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ taskId="task-1"+ />,+ );+ const commentButton = container.querySelector('.brief-comment-btn');+ expect(commentButton).toBeInTheDocument();+ fireEvent.click(commentButton!);++ // CommentInput replaces action buttons+ expect(screen.queryByText('Approve')).not.toBeInTheDocument();+ expect(screen.getByTitle('Submit feedback')).toBeInTheDocument();+ expect(screen.getByText('Cancel')).toBeInTheDocument();+ });++ it('should show resolved state when resolvedAction is set', () => {+ render(+ <BriefCardActions+ actions={sampleActions}+ briefId="brief-1"+ briefType="decision"+ resolvedAction="approve"+ />,+ );++ expect(screen.getByText('Marked as resolved')).toBeInTheDocument();+ expect(screen.queryByText('Approve')).not.toBeInTheDocument();+ });++ it('should fallback to DEFAULT_BRIEF_ACTIONS when actions prop is null', () => {+ render(<BriefCardActions actions={null} briefId="brief-2" briefType="result" />);++ expect(screen.getByText('✅ 通过')).toBeInTheDocument();+ });+});diff --git a/src/features/DailyBrief/__tests__/BriefCardSummary.test.tsx b/src/features/DailyBrief/__tests__/BriefCardSummary.test.tsxnew file mode 100644index 00000000000..4f08a6c42e0--- /dev/null+++ b/src/features/DailyBrief/__tests__/BriefCardSummary.test.tsx@@ -0,0 +1,50 @@+import { fireEvent, render, screen } from '@testing-library/react';+import { useSize } from 'ahooks';+import { describe, expect, it, vi } from 'vitest';++import BriefCardSummary, { COLLAPSED_MAX_HEIGHT } from '../BriefCardSummary';++vi.mock('ahooks', () => ({+ useSize: vi.fn(),+}));++vi.mock('react-i18next', () => ({+ useTranslation: () => ({+ t: (key: string) => {+ const map: Record<string, string> = {+ 'brief.collapse': 'Show less',+ 'brief.expandAll': 'Show more',+ };+ return map[key] || key;+ },+ }),+}));++describe('BriefCardSummary', () => {+ it('should render summary text', () => {+ vi.mocked(useSize).mockReturnValue(undefined);+ render(<BriefCardSummary summary="Test summary content" />);+ expect(screen.getByText('Test summary content')).toBeInTheDocument();+ });++ it('should not show expand link when content does not overflow', () => {+ vi.mocked(useSize).mockReturnValue({ height: COLLAPSED_MAX_HEIGHT - 10, width: 100 });+ render(<BriefCardSummary summary="Short" />);+ expect(screen.queryByText('Show more')).not.toBeInTheDocument();+ });++ it('should show expand link and toggle when content overflows', () => {+ vi.mocked(useSize).mockReturnValue({ height: COLLAPSED_MAX_HEIGHT + 50, width: 100 });++ render(<BriefCardSummary summary="A very long summary that overflows" />);++ const expandLink = screen.getByText('Show more');+ expect(expandLink).toBeInTheDocument();++ fireEvent.click(expandLink);+ expect(screen.getByText('Show less')).toBeInTheDocument();++ fireEvent.click(screen.getByText('Show less'));+ expect(screen.getByText('Show more')).toBeInTheDocument();+ });+});diff --git a/src/features/DailyBrief/index.tsx b/src/features/DailyBrief/index.tsxnew file mode 100644index 00000000000..68ae7950605--- /dev/null+++ b/src/features/DailyBrief/index.tsx@@ -0,0 +1,50 @@+import { Button, Flexbox } from '@lobehub/ui';+import { Newspaper } from 'lucide-react';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router-dom';++import GroupBlock from '@/routes/(main)/home/features/components/GroupBlock';+import { useBriefStore } from '@/store/brief';+import { briefListSelectors } from '@/store/brief/selectors';+import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';+import { useUserStore } from '@/store/user';+import { authSelectors } from '@/store/user/slices/auth/selectors';++import BriefCard from './BriefCard';++const DailyBrief = memo(() => {+ const { t } = useTranslation('home');+ const navigate = useNavigate();+ const isLogin = useUserStore(authSelectors.isLogin);+ const { enableAgentTask } = useServerConfigStore(featureFlagsSelectors);+ const useFetchBriefs = useBriefStore((s) => s.useFetchBriefs);+ useFetchBriefs(isLogin && !!enableAgentTask);++ const briefs = useBriefStore(briefListSelectors.briefs);+ const isInit = useBriefStore(briefListSelectors.isBriefsInit);++ if (!enableAgentTask) return null;+ if (!isInit || briefs.length === 0) return null;++ return (+ <GroupBlock+ actionAlwaysVisible+ icon={Newspaper}+ title={t('brief.title')}+ action={+ <Button size={'small'} type={'text'} onClick={() => navigate('/tasks')}>+ {t('brief.viewAllTasks')}+ </Button>+ }+ >+ <Flexbox gap={12}>+ {briefs.map((brief) => (+ <BriefCard brief={brief} key={brief.id} />+ ))}+ </Flexbox>+ </GroupBlock>+ );+});++export default DailyBrief;diff --git a/src/features/DailyBrief/style.ts b/src/features/DailyBrief/style.tsnew file mode 100644index 00000000000..763097e7b74--- /dev/null+++ b/src/features/DailyBrief/style.ts@@ -0,0 +1,41 @@+import { createStaticStyles } from 'antd-style';++export const styles = createStaticStyles(({ css, cssVar }) => ({+ actionBtn: css`+ &:hover {+ border-color: ${cssVar.colorBorder} !important;+ background: ${cssVar.colorFillQuaternary} !important;+ }+ `,+ actionBtnPrimary: css`+ &.ant-btn {+ width: auto !important;+ padding-inline: 12px !important;+ }+ `,+ expandLink: css`+ border: 1px solid ${cssVar.colorFillTertiary} !important;+ font-size: 12px;+ color: ${cssVar.colorTextDescription};+ `,+ resolvedTag: css`+ font-size: 13px;+ color: ${cssVar.colorTextQuaternary};+ `,+ card: css`+ .brief-comment-btn {+ opacity: 0;+ }++ &:hover {+ border-color: ${cssVar.colorBorder} !important;++ .brief-comment-btn {+ opacity: 1;+ }+ }+ `,+ clickableHeader: css`+ cursor: pointer;+ `,+}));diff --git a/src/features/DailyBrief/types.ts b/src/features/DailyBrief/types.tsnew file mode 100644index 00000000000..e39f0b64a85--- /dev/null+++ b/src/features/DailyBrief/types.ts@@ -0,0 +1 @@+export type { AgentAvatarInfo, BriefItem } from '@/store/brief/types';diff --git a/src/features/EditorCanvas/EditorDataMode.tsx b/src/features/EditorCanvas/EditorDataMode.tsxindex 55913c69795..2707a461cb7 100644--- a/src/features/EditorCanvas/EditorDataMode.tsx+++ b/src/features/EditorCanvas/EditorDataMode.tsx@@ -39,8 +39,6 @@ const loadEditorContent = (console.error('[loadEditorContent] Error loading content:', err);return false;}-- return false;};/**@@ -50,6 +48,8 @@ const EditorDataMode = memo<EditorDataModeProps>(({ editor, editorData, entityId, onContentChange, onInit, style, ...editorProps }) => {const { t } = useTranslation('file');const isEditorReadyRef = useRef(false);+ const contentChangeLockRef = useRef(false);+ const lockIdRef = useRef(0);// Track the current entityId to detect entity changesconst currentEntityIdRef = useRef<string | undefined>(undefined);@@ -58,50 +58,44 @@ const EditorDataMode = memo<EditorDataModeProps>(// When entityId is provided, check if it actually changedconst isEntityChanged = entityId === undefined || currentEntityIdRef.current !== entityId;- const handleInit = useCallback(+ const loadContentWithLock = useCallback((editorInstance: IEditor) => {- isEditorReadyRef.current = true;-- // Always load content on init- try {- if (isEntityChanged && loadEditorContent(editorInstance, editorData)) {- currentEntityIdRef.current = entityId;- }- } catch (err) {- console.error('[EditorCanvas] Failed to load content:', err);+ const lockId = ++lockIdRef.current;+ contentChangeLockRef.current = true;+ if (loadEditorContent(editorInstance, editorData)) {+ currentEntityIdRef.current = entityId;}+ queueMicrotask(() => {+ if (lockIdRef.current === lockId) {+ contentChangeLockRef.current = false;+ }+ });+ },+ [editorData, entityId],+ );+ const handleInit = useCallback(+ (editorInstance: IEditor) => {+ isEditorReadyRef.current = true;+ if (isEntityChanged) loadContentWithLock(editorInstance);onInit?.(editorInstance);},- [editorData, entityId, onInit],+ [isEntityChanged, loadContentWithLock, onInit],);// Load content when entityId changes (switching to a different entity)// Ignore editorData changes when entityId hasn't changed to prevent focus loss during auto-saveuseEffect(() => {- if (!editor || !isEditorReadyRef.current) return;-- // Only reload if entityId changed- if (!isEntityChanged) {- // Same entity - don't reload, user is still editing- return;- }-- // Different entity - load new content- try {- if (loadEditorContent(editor, editorData)) {- currentEntityIdRef.current = entityId;- }- } catch (err) {- console.error('[EditorCanvas] Failed to load content:', err);- }- }, [editor, entityId, editorData, isEntityChanged]);+ if (!editor || !isEditorReadyRef.current || !isEntityChanged) return;+ loadContentWithLock(editor);+ }, [editor, isEntityChanged, loadContentWithLock]);if (!editor) return null;return (<div style={{ position: 'relative', ...style }}><InternalEditor+ contentChangeLockRef={contentChangeLockRef}editor={editor}placeholder={editorProps.placeholder || t('pageEditor.editorPlaceholder')}onContentChange={onContentChange}diff --git a/src/features/EditorCanvas/InternalEditor.test.tsx b/src/features/EditorCanvas/InternalEditor.test.tsxindex e7bb79f2a9b..7b56ed425f0 100644--- a/src/features/EditorCanvas/InternalEditor.test.tsx+++ b/src/features/EditorCanvas/InternalEditor.test.tsx@@ -105,7 +105,7 @@ describe('InternalEditor', () => {// Find the Editor component's containerconst editorContainer = container.querySelector('[data-lexical-editor]')?.closest('div');- // The style should include paddingBottom: 64 (default) merged with custom styles+ // The style should include paddingBottom: 32 (default) merged with custom stylesexpect(editorContainer).toBeTruthy();});});diff --git a/src/features/EditorCanvas/InternalEditor.tsx b/src/features/EditorCanvas/InternalEditor.tsxindex 857fb513296..ad5cdfcd6db 100644--- a/src/features/EditorCanvas/InternalEditor.tsx+++ b/src/features/EditorCanvas/InternalEditor.tsx@@ -188,7 +188,7 @@ const InternalEditor = memo<InternalEditorProps>(slashOption={slashItems ? { items: slashItems } : undefined}type={'text'}style={{- paddingBottom: 64,+ paddingBottom: 32,...style,}}onInit={onInit}diff --git a/src/features/PageEditor/Copilot/Conversation.tsx b/src/features/PageEditor/Copilot/Conversation.tsxindex 3e6e1484cad..1f1396ec662 100644--- a/src/features/PageEditor/Copilot/Conversation.tsx+++ b/src/features/PageEditor/Copilot/Conversation.tsx@@ -5,6 +5,11 @@ import { memo, useCallback, useEffect, useMemo } from 'react';import DragUploadZone, { useUploadFiles } from '@/components/DragUploadZone';import { actionMap } from '@/features/ChatInput/ActionBar/config';import { ActionBarContext } from '@/features/ChatInput/ActionBar/context';+import {+ COMPACT_ACTION_BAR_CONTEXT,+ COMPACT_ACTION_BAR_STYLE,+ COMPACT_SEND_BUTTON_PROPS,+} from '@/features/ChatInput/compactPreset';import {ChatInput,ChatList,@@ -16,7 +21,7 @@ import { agentByIdSelectors } from '@/store/agent/selectors';import { useChatStore } from '@/store/chat';import AgentSelectorAction from './AgentSelector/AgentSelectorAction';-import CopilotModelSelector from './CopilotModelSelector';+import CopilotModelSelect from './CopilotModelSelect';import CopilotToolbar from './Toolbar';import Welcome from './Welcome';@@ -24,11 +29,6 @@ const Search = actionMap['search'];const EMPTY_LEFT_ACTIONS: [] = [];-const COMPACT_ACTION_SIZE = { blockSize: 28, size: 16 };-const COMPACT_CONTEXT_VALUE = { actionSize: COMPACT_ACTION_SIZE };-const COMPACT_ACTION_BAR_STYLE = { paddingLeft: 4, paddingRight: 4 };-const COMPACT_SEND_BUTTON_PROPS = { size: 28 };-const Conversation = memo(() => {const [setActiveAgentId, useFetchAgentConfig] = useAgentStore((s) => [s.setActiveAgentId,@@ -73,7 +73,7 @@ const Conversation = memo(() => {const leftContent = useMemo(() => (- <ActionBarContext value={COMPACT_CONTEXT_VALUE}>+ <ActionBarContext value={COMPACT_ACTION_BAR_CONTEXT}><Flexbox horizontal align={'center'} gap={2}><AgentSelectorAction onAgentChange={handleAgentChange} /><Search />@@ -83,7 +83,7 @@ const Conversation = memo(() => {[handleAgentChange],);- const modelSelector = useMemo(() => <CopilotModelSelector />, []);+ const modelSelector = useMemo(() => <CopilotModelSelect />, []);return (<DragUploadZonediff --git a/src/features/PageEditor/Copilot/CopilotModelSelector.tsx b/src/features/PageEditor/Copilot/CopilotModelSelect.tsxsimilarity index 95%rename from src/features/PageEditor/Copilot/CopilotModelSelector.tsxrename to src/features/PageEditor/Copilot/CopilotModelSelect.tsxindex cd6e31608c7..6ff1c34873d 100644--- a/src/features/PageEditor/Copilot/CopilotModelSelector.tsx+++ b/src/features/PageEditor/Copilot/CopilotModelSelect.tsx@@ -36,7 +36,7 @@ const styles = createStaticStyles(({ css, cssVar }) => ({`,}));-const CopilotModelSelector = memo(() => {+const CopilotModelSelect = memo(() => {const [settingsOpen, setSettingsOpen] = useState(false);const agentId = useConversationStore(conversationSelectors.agentId);@@ -95,6 +95,6 @@ const CopilotModelSelector = memo(() => {);});-CopilotModelSelector.displayName = 'CopilotModelSelector';+CopilotModelSelect.displayName = 'CopilotModelSelect';-export default CopilotModelSelector;+export default CopilotModelSelect;diff --git a/src/features/PageEditor/Copilot/TopicSelector/TopicItem.tsx b/src/features/PageEditor/Copilot/TopicSelector/TopicItem.tsxindex fe78771948d..81268d9a3ee 100644--- a/src/features/PageEditor/Copilot/TopicSelector/TopicItem.tsx+++ b/src/features/PageEditor/Copilot/TopicSelector/TopicItem.tsx@@ -9,17 +9,19 @@ import { useDropdownMenu } from './useDropdownMenu';interface TopicItemProps {active: boolean;onClose: () => void;+ onDelete?: (topicId: string) => void;onTopicChange: (topicId: string) => void;topicId: string;topicTitle: string;}const TopicItem = memo<TopicItemProps>(- ({ active, onClose, onTopicChange, topicId, topicTitle }) => {+ ({ active, onClose, onDelete, onTopicChange, topicId, topicTitle }) => {const { t } = useTranslation('topic');const dropdownMenu = useDropdownMenu({onClose,+ onDelete,topicId,topicTitle,});diff --git a/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx b/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsxindex 3cc16d80ffe..2eca15110ff 100644--- a/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx+++ b/src/features/PageEditor/Copilot/TopicSelector/useDropdownMenu.tsx@@ -9,33 +9,20 @@ import { useChatStore } from '@/store/chat';interface UseDropdownMenuProps {onClose: () => void;+ onDelete?: (topicId: string) => void;topicId: string;topicTitle: string;}export const useDropdownMenu = ({onClose,+ onDelete,topicId,}: UseDropdownMenuProps): (() => MenuProps['items']) => {const { t } = useTranslation(['common', 'topic']);const { modal } = App.useApp();const removeTopic = useChatStore((s) => s.removeTopic);- const handleDelete = () => {- modal.confirm({- cancelText: t('cancel'),- centered: true,- content: t('actions.confirmRemoveTopic', { ns: 'topic' }),- okButtonProps: { danger: true },- okText: t('delete'),- onOk: async () => {- await removeTopic(topicId);- onClose();- },- title: t('delete'),- });- };-return useCallback(() =>[@@ -44,9 +31,23 @@ export const useDropdownMenu = ({icon: <Icon icon={Trash2} />,key: 'delete',label: t('delete'),- onClick: handleDelete,+ onClick: () => {+ modal.confirm({+ cancelText: t('cancel'),+ centered: true,+ content: t('actions.confirmRemoveTopic', { ns: 'topic' }),+ okButtonProps: { danger: true },+ okText: t('delete'),+ onOk: async () => {+ await removeTopic(topicId);+ onDelete?.(topicId);+ onClose();+ },+ title: t('delete'),+ });+ },},].filter(Boolean) as MenuProps['items'],- [t, handleDelete],+ [t, modal, removeTopic, topicId, onDelete, onClose],);};diff --git a/src/features/ProfileEditor/AgentTool.tsx b/src/features/ProfileEditor/AgentTool.tsxindex fb285ec38c4..f7c47992454 100644--- a/src/features/ProfileEditor/AgentTool.tsx+++ b/src/features/ProfileEditor/AgentTool.tsx@@ -22,6 +22,7 @@ import MarketSkillIcon from '@/features/ChatInput/ActionBar/Tools/MarketSkillIcoimport ToolItem from '@/features/ChatInput/ActionBar/Tools/ToolItem';import ToolItemDetailPopover from '@/features/ChatInput/ActionBar/Tools/ToolItemDetailPopover';import { createSkillStoreModal } from '@/features/SkillStore';+import { USER_HIDDEN_BUILTIN_SKILLS } from '@/helpers/skillFilters';import { useCheckPluginsIsInstalled } from '@/hooks/useCheckPluginsIsInstalled';import { useFetchInstalledPlugins } from '@/hooks/useFetchInstalledPlugins';import { useAgentStore } from '@/store/agent';@@ -35,7 +36,10 @@ import {lobehubSkillStoreSelectors,pluginSelectors,} from '@/store/tool/selectors';-import { type LobeToolMetaWithAvailability } from '@/store/tool/slices/builtin/selectors';+import {+ type LobeToolMetaWithAvailability,+ USER_HIDDEN_BUILTIN_TOOL_IDS,+} from '@/store/tool/slices/builtin/selectors';import PluginTag from './PluginTag';import PopoverContent from './PopoverContent';@@ -971,7 +975,10 @@ const AgentTool = memo<AgentToolProps>(if (showWebBrowsing && isSearchEnabled && !tools.includes(WEB_BROWSING_IDENTIFIER)) {tools.unshift(WEB_BROWSING_IDENTIFIER);}- return tools;+ return tools.filter(+ (toolId) =>+ !USER_HIDDEN_BUILTIN_TOOL_IDS.has(toolId) && !USER_HIDDEN_BUILTIN_SKILLS.has(toolId),+ );}, [plugins, isSearchEnabled, showWebBrowsing]);return (diff --git a/src/helpers/skillFilters.test.ts b/src/helpers/skillFilters.test.tsindex c1e62670bc8..ef7cd779443 100644--- a/src/helpers/skillFilters.test.ts+++ b/src/helpers/skillFilters.test.ts@@ -12,6 +12,11 @@ describe('skillFilters', () => {expect(shouldEnableBuiltinSkill('lobe-agent-browser', { isDesktop: false })).toBe(false);});+ it('should disable task builtin skill globally', () => {+ expect(shouldEnableBuiltinSkill('task', { isDesktop: false })).toBe(false);+ expect(shouldEnableBuiltinSkill('task', { isDesktop: true })).toBe(false);+ });+it('should enable agent-browser on desktop (non-Windows) environment', () => {expect(shouldEnableBuiltinSkill('lobe-agent-browser', { isDesktop: true })).toBe(true);});@@ -49,6 +54,13 @@ describe('skillFilters', () => {name: 'Artifacts',source: 'builtin' as const,},+ {+ content: 'task',+ description: 'task',+ identifier: 'task',+ name: 'Task',+ source: 'builtin' as const,+ },];const filtered = filterBuiltinSkills(skills, { isDesktop: false });diff --git a/src/helpers/skillFilters.ts b/src/helpers/skillFilters.tsindex fd1b6c5a411..c64be1c7bf9 100644--- a/src/helpers/skillFilters.ts+++ b/src/helpers/skillFilters.ts@@ -7,6 +7,7 @@ export interface BuiltinSkillFilterContext {}const DESKTOP_ONLY_BUILTIN_SKILLS = new Set([AgentBrowserIdentifier]);+const USER_HIDDEN_BUILTIN_SKILLS = new Set(['task']);const DEFAULT_CONTEXT: BuiltinSkillFilterContext = {isDesktop,@@ -24,6 +25,8 @@ export const shouldEnableBuiltinSkill = (): boolean => {const resolvedContext = resolveBuiltinSkillFilterContext(context);+ if (USER_HIDDEN_BUILTIN_SKILLS.has(skillId)) return false;+if (DESKTOP_ONLY_BUILTIN_SKILLS.has(skillId)) {if (!resolvedContext.isDesktop) return false;return true;@@ -38,3 +41,5 @@ export const filterBuiltinSkills = (): BuiltinSkill[] => {return skills.filter((skill) => shouldEnableBuiltinSkill(skill.identifier, context));};++export { USER_HIDDEN_BUILTIN_SKILLS };diff --git a/src/helpers/toolEngineering/index.ts b/src/helpers/toolEngineering/index.tsindex 5a457e9b245..f3de109d14f 100644--- a/src/helpers/toolEngineering/index.ts+++ b/src/helpers/toolEngineering/index.ts@@ -14,6 +14,7 @@ import { type ChatCompletionTool, type ToolManifest, type WorkingModel } from '@import { isToolAvailableInCurrentEnv } from '@/helpers/toolAvailability';import { getAgentStoreState } from '@/store/agent';import { agentChatConfigSelectors, agentSelectors } from '@/store/agent/selectors';+import { getChatStoreState } from '@/store/chat';import { getToolStoreState } from '@/store/tool';import {klavisStoreSelectors,@@ -125,6 +126,11 @@ export const createAgentToolsEngine = (const searchConfig = getSearchConfig(workingModel.model, workingModel.provider);const agentState = getAgentStoreState();const userPlugins = agentSelectors.currentAgentPlugins(agentState);+ // Page-level scenario-enabled tool ids (e.g. tasks page enables `lobe-task`).+ // Set by page layouts via `useChatStore.setState({ scenarioEnabledToolIds })`,+ // cleared on unmount. Only effective when the id is also in `defaultToolIds`+ // or `pluginIds` — rules only apply to tools that reach the candidate pool.+ const scenarioEnabledToolIds = getChatStoreState().scenarioEnabledToolIds ?? [];return createToolsEngine({defaultToolIds,@@ -152,6 +158,8 @@ export const createAgentToolsEngine = (...Object.fromEntries(userPlugins.map((id) => [id, true])),// Always-on builtin tools...Object.fromEntries(alwaysOnToolIds.map((id) => [id, true])),+ // Page-level scenario-enabled tools (e.g. tasks page enables `lobe-task`)+ ...Object.fromEntries(scenarioEnabledToolIds.map((id) => [id, true])),// System-level rules (may override user selection for specific tools)[CloudSandboxManifest.identifier]:agentChatConfigSelectors.isCloudSandboxEnabled(agentState),diff --git a/src/hooks/useScenarioEnabledTools.ts b/src/hooks/useScenarioEnabledTools.tsnew file mode 100644index 00000000000..448101d62ae--- /dev/null+++ b/src/hooks/useScenarioEnabledTools.ts@@ -0,0 +1,21 @@+import { useEffect, useRef } from 'react';++import { useChatStore } from '@/store/chat';++/**+ * Enables the given built-in tools for any LLM step triggered while this hook is+ * mounted, then resets on unmount. Use from a route-level layout/page to scope+ * tool availability to a specific view.+ */+export const useScenarioEnabledTools = (...toolIds: string[]) => {+ const key = toolIds.join('|');+ const toolsRef = useRef(toolIds);+ toolsRef.current = toolIds;++ useEffect(() => {+ useChatStore.setState({ scenarioEnabledToolIds: toolsRef.current });+ return () => {+ useChatStore.setState({ scenarioEnabledToolIds: undefined });+ };+ }, [key]);+};diff --git a/src/locales/default/chat.ts b/src/locales/default/chat.tsindex 381efd0b713..0e882a6da35 100644--- a/src/locales/default/chat.ts+++ b/src/locales/default/chat.ts@@ -26,6 +26,12 @@ export default {"Hi, I’m **{{name}}**. One sentence is enough—you're in control.",'agentDefaultMessageWithoutEdit':"Hi, I’m **{{name}}**. One sentence is enough—you're in control.",+ 'agentProfile.files_one': '{{count}} file',+ 'agentProfile.files_other': '{{count}} files',+ 'agentProfile.knowledgeBases_one': '{{count}} knowledge base',+ 'agentProfile.knowledgeBases_other': '{{count}} knowledge bases',+ 'agentProfile.skills_one': '{{count}} skill',+ 'agentProfile.skills_other': '{{count}} skills','agents': 'Agents','artifact.generating': 'Generating','artifact.inThread':@@ -423,6 +429,7 @@ export default {'tab.integration': 'Channels','tab.profile': 'Agent Profile','tab.search': 'Search',+ 'tab.tasks': 'Tasks','task.activity.calling': 'Calling Skill...','task.activity.clientExecuting': 'Executing locally...','task.activity.generating': 'Generating response...',@@ -443,6 +450,119 @@ export default {'task.status.fetchingDetails': 'Fetching details...','task.status.initializing': 'Initializing task...','task.subtask': 'Subtask',+ 'taskSchedule.clear': 'Clear',+ 'taskSchedule.enable': 'Enable automation',+ 'taskSchedule.every': 'Every',+ 'taskSchedule.hours': 'Hours',+ 'taskSchedule.interval': 'Recurring',+ 'taskSchedule.intervalTab': 'Recurring',+ 'taskSchedule.minutes': 'Minutes',+ 'taskSchedule.scheduler': 'Scheduler',+ 'taskSchedule.schedulerNotReady': 'Scheduler is coming soon. Use Recurring for now.',+ 'taskSchedule.schedulerTab': 'Scheduler',+ 'taskSchedule.seconds': 'Seconds',+ 'taskSchedule.unit.hour_one': '{{count}} hr',+ 'taskSchedule.unit.hour_other': '{{count}} hrs',+ 'taskSchedule.unit.minute_one': '{{count}} min',+ 'taskSchedule.unit.minute_other': '{{count}} mins',+ 'taskSchedule.unit.second_one': '{{count}} sec',+ 'taskSchedule.unit.second_other': '{{count}} secs',+ 'taskSchedule.tag.add': 'Set schedule',+ 'taskSchedule.tag.every': 'Every {{interval}}',+ 'taskSchedule.tag.heartbeat': 'Heartbeat · {{every}}',+ 'taskSchedule.tag.schedule': 'Schedule · {{schedule}}{{timezone}}',+ 'taskSchedule.title': 'Schedule',+ 'taskDetail.activities': 'Activities',+ 'taskDetail.activitiesEmpty': 'No activity yet',+ 'taskDetail.activities.agentTag': 'Agent',+ 'taskDetail.activities.fallback.brief': 'posted a brief',+ 'taskDetail.activities.fallback.comment': 'left a comment',+ 'taskDetail.activities.fallback.created': 'created the task',+ 'taskDetail.activities.fallback.topic': 'started a topic',+ 'taskDetail.blockedBy': 'Blocked by {{id}}',+ 'taskDetail.comment.cancel': 'Cancel',+ 'taskDetail.comment.delete': 'Delete',+ 'taskDetail.comment.deleteConfirm.content': 'This comment will be permanently removed.',+ 'taskDetail.comment.deleteConfirm.ok': 'Delete',+ 'taskDetail.comment.deleteConfirm.title': 'Delete this comment?',+ 'taskDetail.comment.edit': 'Edit',+ 'taskDetail.comment.save': 'Save',+ 'taskDetail.commentPlaceholder': 'Leave a comment...',+ 'taskDetail.deleteConfirm.content': 'This action cannot be undone.',+ 'taskDetail.deleteConfirm.ok': 'Delete',+ 'taskDetail.deleteConfirm.title': 'Delete this task?',+ 'taskDetail.instruction': 'Instruction',+ 'taskDetail.modelConfig': 'Model Override',+ 'taskDetail.saveModelConfig': 'Save',+ 'taskDetail.instructionPlaceholder': 'Click to edit task instructions...',+ 'taskDetail.latestActivity.brief': 'Brief: {{title}}',+ 'taskDetail.latestActivity.briefOnly': 'Brief',+ 'taskDetail.latestActivity.briefWithAction': '{{title}} - {{action}}',+ 'taskDetail.latestActivity.briefWithType': 'Brief ({{type}}): {{title}}',+ 'taskDetail.latestActivity.briefWithTypeOnly': 'Brief ({{type}})',+ 'taskDetail.latestActivity.topic': 'Topic: {{title}}',+ 'taskDetail.latestActivity.topicWithSeq': 'Topic #{{seq}}: {{title}}',+ 'taskDetail.latestActivity.untitledTopic': 'Untitled topic',+ 'taskDetail.pauseTask': 'Pause task',+ 'taskDetail.rerunTask': 'Re-run task',+ 'taskDetail.runTask': 'Run',+ 'taskDetail.stopTask': 'Stop task',+ 'taskDetail.navigation': 'Navigation',+ 'taskDetail.subIssueOf': 'Sub-issue of',+ 'taskDetail.priority.high': 'High',+ 'taskDetail.priority.low': 'Low',+ 'taskDetail.priority.none': 'No priority',+ 'taskDetail.priority.normal': 'Normal',+ 'taskDetail.priority.urgent': 'Urgent',+ 'taskDetail.properties': 'Properties',+ 'taskDetail.status.backlog': 'Backlog',+ 'taskDetail.status.canceled': 'Canceled',+ 'taskDetail.status.completed': 'Completed',+ 'taskDetail.status.failed': 'Failed',+ 'taskDetail.status.paused': 'Paused',+ 'taskDetail.status.running': 'In progress',+ 'taskDetail.subtasks': 'Subtasks',+ 'taskDetail.addSubtask': 'Add sub-task',+ 'taskDetail.subtaskInstructionPlaceholder': 'Describe the sub-task...',+ 'taskDetail.reassignDisabled': 'Cannot reassign agent while task is running',+ 'taskDetail.titlePlaceholder': 'Enter task title...',+ 'taskDetail.topicDrawer.untitled': 'Untitled',+ 'taskDetail.updateFailed': 'Failed to update task',++ 'createTask.assignee': 'Assignee',+ 'createTask.collapse': 'Hide input',+ 'createTask.expandToInline': 'Dock to page',+ 'createTask.instructionPlaceholder': 'Add description...',+ 'createTask.submit': 'Create task',+ 'createTask.titlePlaceholder': 'Task title',+ 'taskList.activeTasks': 'Active Tasks',+ 'taskList.all': 'All tasks',+ 'taskList.breadcrumb.task': 'Task',+ 'taskList.empty': 'No tasks yet',+ 'taskList.form.grouping': 'Grouping',+ 'taskList.form.orderCompletedByRecency': 'Sort completed tasks by recency',+ 'taskList.form.ordering': 'Ordering',+ 'taskList.form.subGrouping': 'Sub-grouping',+ 'taskList.groupBy.assignee': 'Assignee',+ 'taskList.groupBy.none': 'No grouping',+ 'taskList.groupBy.priority': 'Priority',+ 'taskList.groupBy.status': 'Status',+ 'taskList.orderBy.assignee': 'Assignee',+ 'taskList.orderBy.createdAt': 'Created at',+ 'taskList.orderBy.priority': 'Priority',+ 'taskList.orderBy.status': 'Status',+ 'taskList.orderBy.title': 'Title',+ 'taskList.orderBy.updatedAt': 'Updated at',+ 'taskList.title': 'Tasks',+ 'taskList.unassigned': 'Unassigned',+ 'taskList.kanban.backlog': 'Backlog',+ 'taskList.kanban.done': 'Done',+ 'taskList.kanban.emptyColumn': 'No tasks',+ 'taskList.kanban.needsInput': 'Needs input',+ 'taskList.kanban.running': 'In progress',+ 'taskList.view.board': 'Board',+ 'taskList.view.list': 'List',+ 'taskList.viewAll': 'View all','thread.closeSubagentThread': 'Collapse subagent conversation','thread.divider': 'Subtopic','thread.openSubagentThread': 'View full subagent conversation',diff --git a/src/locales/default/home.ts b/src/locales/default/home.tsindex b467c83555e..0d410bf3d16 100644--- a/src/locales/default/home.ts+++ b/src/locales/default/home.ts@@ -3,9 +3,22 @@ export default {'agentSelection.noAvailable': 'No agents can be added at the moment','agentSelection.noSelected': 'No agents selected','agentSelection.search': 'No matching agents found',+ 'brief.addFeedback': 'Share feedback',+ 'brief.action.acknowledge': 'Acknowledge',+ 'brief.action.approve': 'Approve',+ 'brief.action.feedback': 'Feedback',+ 'brief.action.retry': 'Retry',+ 'brief.collapse': 'Show less',+ 'brief.commentPlaceholder': 'Share your feedback...',+ 'brief.commentSubmit': 'Submit feedback',+ 'brief.expandAll': 'Show more',+ 'brief.feedbackSent': 'Feedback shared',+ 'brief.resolved': 'Marked as resolved',+ 'brief.title': 'Daily brief',+ 'brief.viewAllTasks': 'View all tasks','project.create': 'New project','project.deleteConfirm':- 'This project will be deleted and can’t be recovered. Confirm to continue.',+ "This project will be deleted and can't be recovered. Confirm to continue.",'starter.createAgent': 'Create Agent','starter.createGroup': 'Create Group','starter.deepResearch': 'Deep Research',diff --git a/src/locales/default/topic.ts b/src/locales/default/topic.tsindex 25a143db218..76e1a589720 100644--- a/src/locales/default/topic.ts+++ b/src/locales/default/topic.ts@@ -59,6 +59,7 @@ export default {'renameModal.title': 'Rename Topic','searchPlaceholder': 'Search Topics...','searchResultEmpty': 'No search results found.',+ 'taskManager.welcome': 'Ask me about your tasks','temp': 'Temporary','title': 'Topic',};diff --git a/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx b/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsxindex 34033f12603..c59b7033112 100644--- a/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx+++ b/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx@@ -2,7 +2,7 @@import { Flexbox } from '@lobehub/ui';import { BotPromptIcon } from '@lobehub/ui/icons';-import { MessageSquarePlusIcon, RadioTowerIcon, SearchIcon } from 'lucide-react';+import { ListTodoIcon, MessageSquarePlusIcon, RadioTowerIcon, SearchIcon } from 'lucide-react';import { memo } from 'react';import { useTranslation } from 'react-i18next';import { useParams } from 'react-router-dom';@@ -26,8 +26,9 @@ const Nav = memo(() => {const pathname = usePathname();const isProfileActive = pathname.includes('/profile');const isChannelActive = pathname.includes('/channel');+ const isTasksActive = pathname.includes('/tasks');const router = useQueryRoute();- const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors);+ const { isAgentEditable, enableAgentTask } = useServerConfigStore(featureFlagsSelectors);const toggleCommandMenu = useGlobalStore((s) => s.toggleCommandMenu);const isHeterogeneousAgent = useAgentStore(agentSelectors.isCurrentAgentHeterogeneous);const hideProfile = !isAgentEditable;@@ -38,7 +39,7 @@ const Nav = memo(() => {const { mutate } = useActionSWR('openNewTopicOrSaveTopic', openNewTopicOrSaveTopic);const handleNewTopic = () => {// If in agent sub-route, navigate back to agent chat first- if ((isProfileActive || isChannelActive) && agentId) {+ if ((isProfileActive || isChannelActive || isTasksActive) && agentId) {router.push(urlJoin('/agent', agentId));}mutate();@@ -51,6 +52,13 @@ const Nav = memo(() => {title={tTopic('actions.addNewTopic')}onClick={handleNewTopic}/>+ <NavItem+ icon={SearchIcon}+ title={t('tab.search')}+ onClick={() => {+ toggleCommandMenu(true);+ }}+ />{!hideProfile && (<NavItemactive={isProfileActive}@@ -73,13 +81,17 @@ const Nav = memo(() => {}}/>)}- <NavItem- icon={SearchIcon}- title={t('tab.search')}- onClick={() => {- toggleCommandMenu(true);- }}- />+ {enableAgentTask && (+ <NavItem+ active={isTasksActive}+ icon={ListTodoIcon}+ title={t('tab.tasks')}+ onClick={() => {+ switchTopic(null, { skipRefreshMessage: true });+ router.push(urlJoin('/agent', agentId!, 'tasks'));+ }}+ />+ )}</Flexbox>);});diff --git a/src/routes/(main)/agent/features/Conversation/AgentWelcome/index.tsx b/src/routes/(main)/agent/features/Conversation/AgentWelcome/index.tsxindex a14e684360d..d2447ac5fed 100644--- a/src/routes/(main)/agent/features/Conversation/AgentWelcome/index.tsx+++ b/src/routes/(main)/agent/features/Conversation/AgentWelcome/index.tsx@@ -6,6 +6,7 @@ import React, { memo, useMemo } from 'react';import { useTranslation } from 'react-i18next';import { DEFAULT_AVATAR, DEFAULT_INBOX_AVATAR } from '@/const/meta';+import AgentTaskList from '@/features/AgentTaskList';import { useIsMobile } from '@/hooks/useIsMobile';import { useAgentStore } from '@/store/agent';import { agentSelectors, builtinAgentSelectors } from '@/store/agent/selectors';@@ -65,6 +66,7 @@ const InboxWelcome = memo(() => {<OpeningQuestions mobile={mobile} questions={openingQuestions} />)}<ToolAuthAlert />+ <AgentTaskList /></Flexbox></>);diff --git a/src/routes/(main)/agent/tasks/[taskId]/index.tsx b/src/routes/(main)/agent/tasks/[taskId]/index.tsxnew file mode 100644index 00000000000..2dea9adb08e--- /dev/null+++ b/src/routes/(main)/agent/tasks/[taskId]/index.tsx@@ -0,0 +1,16 @@+'use client';++import { memo } from 'react';+import { useParams } from 'react-router-dom';++import { TaskDetailPage } from '@/features/AgentTasks';++const TaskDetailRoute = memo(() => {+ const { aid, taskId } = useParams<{ aid?: string; taskId?: string }>();++ if (!aid || !taskId) return null;++ return <TaskDetailPage agentId={aid} taskId={taskId} />;+});++export default TaskDetailRoute;diff --git a/src/routes/(main)/agent/tasks/_layout/index.tsx b/src/routes/(main)/agent/tasks/_layout/index.tsxnew file mode 100644index 00000000000..ddc822daab9--- /dev/null+++ b/src/routes/(main)/agent/tasks/_layout/index.tsx@@ -0,0 +1,46 @@+'use client';++import { TaskIdentifier } from '@lobechat/builtin-tool-task';+import { Flexbox } from '@lobehub/ui';+import { memo } from 'react';+import { Navigate, Outlet, useParams } from 'react-router-dom';+import urlJoin from 'url-join';++import AgentTaskManager from '@/features/AgentTaskManager';+import { useScenarioEnabledTools } from '@/hooks/useScenarioEnabledTools';+import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';++/**+ * Tasks pages layout.+ *+ * - Horizontal split: task content on the left (list / detail), main-conversation+ * chat panel on the right. Right panel reuses the same agentId + activeTopicId+ * as the `/agent/:aid` page via `useAgentContext()` inside ConversationArea.+ *+ * - Enables `lobe-task` for every LLM step while the user is on any tasks+ * sub-page via the page-level `scenarioEnabledToolIds` chat state.+ */+const TasksLayout = memo(() => {+ useScenarioEnabledTools(TaskIdentifier);+ const params = useParams();+ const agentId = params.aid;+ const serverConfigInit = useServerConfigStore((s) => s.serverConfigInit);+ const { enableAgentTask } = useServerConfigStore(featureFlagsSelectors);++ if (serverConfigInit && !enableAgentTask) {+ return <Navigate replace to={agentId ? urlJoin('/agent', agentId) : '/'} />;+ }++ return (+ <Flexbox horizontal flex={1} height={'100%'} width={'100%'}>+ <Flexbox flex={1} style={{ minWidth: 0 }}>+ <Outlet />+ </Flexbox>+ <AgentTaskManager />+ </Flexbox>+ );+});++TasksLayout.displayName = 'TasksLayout';++export default TasksLayout;diff --git a/src/routes/(main)/agent/tasks/index.tsx b/src/routes/(main)/agent/tasks/index.tsxnew file mode 100644index 00000000000..a2cac70bcc2--- /dev/null+++ b/src/routes/(main)/agent/tasks/index.tsx@@ -0,0 +1,16 @@+'use client';++import { memo } from 'react';+import { useParams } from 'react-router-dom';++import { AgentTasksPage } from '@/features/AgentTasks';++const TasksRoute = memo(() => {+ const { aid } = useParams<{ aid?: string }>();++ if (!aid) return null;++ return <AgentTasksPage agentId={aid} />;+});++export default TasksRoute;diff --git a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/AgentProfilePopup.tsx b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/AgentProfilePopup.tsxdeleted file mode 100644index 11935b8d8c3..00000000000--- a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/AgentProfilePopup.tsx+++ /dev/null@@ -1,196 +0,0 @@-'use client';--import { type AgentItem } from '@lobechat/types';-import { ActionIcon, Avatar, Center, Flexbox, Popover, Text, Tooltip } from '@lobehub/ui';-import { createStaticStyles, cssVar } from 'antd-style';-import { Settings } from 'lucide-react';-import { type PropsWithChildren } from 'react';-import { memo, useState } from 'react';-import { useTranslation } from 'react-i18next';-import { useNavigate } from 'react-router-dom';--import { DEFAULT_AVATAR } from '@/const/meta';-import ModelSelect from '@/features/ModelSelect';-import { useAgentGroupStore } from '@/store/agentGroup';--const styles = createStaticStyles(({ css, cssVar }) => ({- banner: css`- position: relative;- overflow: hidden;- height: 60px;- `,- bannerInner: css`- filter: blur(44px);- `,- chatButton: css`- width: 100%;- `,- container: css`- overflow: hidden;- width: 280px;- background: ${cssVar.colorBgElevated};- `,- description: css`- overflow: hidden;-- max-height: 80px;-- font-size: 12px;- line-height: 1.5;- color: ${cssVar.colorTextSecondary};- text-overflow: ellipsis;- `,- header: css`- position: relative;- margin-block-start: -24px;- padding-inline: 16px;- `,- modelLabel: css`- font-size: 12px;- color: ${cssVar.colorTextTertiary};- `,- name: css`- font-size: 16px;- font-weight: 600;- color: ${cssVar.colorText};- `,- section: css`- padding-block: 12px;- padding-inline: 16px;- `,- sectionTitle: css`- margin-block-end: 8px;-- font-size: 11px;- font-weight: 600;- color: ${cssVar.colorTextTertiary};- text-transform: uppercase;- `,- trigger: css`- border-radius: ${cssVar.borderRadius};-- &[data-popup-open] {- background: ${cssVar.colorFillTertiary};- }- `,-}));--interface AgentProfilePopupProps extends PropsWithChildren {- agent: AgentItem;- groupId: string;- onChat: () => void;-}--const AgentProfilePopup = memo<AgentProfilePopupProps>(({ agent, groupId, children }) => {- const { t } = useTranslation('chat');- const navigate = useNavigate();- const [open, setOpen] = useState(false);- const [loading, setLoading] = useState(false);-- const updateMemberAgentConfig = useAgentGroupStore((s) => s.updateMemberAgentConfig);-- const handleModelChange = async (props: { model: string; provider: string }) => {- setLoading(true);- try {- await updateMemberAgentConfig(groupId, agent.id, {- model: props.model,- provider: props.provider,- });- } finally {- setLoading(false);- }- };-- const handleSettings = () => {- setOpen(false);- navigate(`/group/${groupId}/profile?tab=${agent.id}`);- };-- const content = (- <Flexbox className={styles.container}>- {/* Banner */}- <Center- className={styles.banner}- style={{- background: cssVar.colorFillTertiary,- }}- >- <Avatar- emojiScaleWithBackground- avatar={agent.avatar || DEFAULT_AVATAR}- background={agent.backgroundColor ?? undefined}- className={styles.bannerInner}- shape={'square'}- size={400}- />- </Center>-- {/* Header with Avatar */}- <Flexbox className={styles.header} gap={8}>- <Avatar- emojiScaleWithBackground- avatar={agent.avatar || DEFAULT_AVATAR}- background={agent.backgroundColor ?? undefined}- shape={'square'}- size={48}- style={{- border: `2px solid ${cssVar.colorBgElevated}`,- }}- />- <Flexbox gap={2}>- <Flexbox horizontal align={'center'} justify={'space-between'}>- <Text ellipsis className={styles.name}>- {agent.title || t('defaultSession', { ns: 'common' })}- </Text>-- {/* Settings Button */}- <Flexbox horizontal align="center" justify="flex-end" style={{ paddingBlockStart: 0 }}>- <ActionIcon- icon={Settings}- size="small"- title={t('groupSidebar.agentProfile.settings')}- onClick={handleSettings}- />- </Flexbox>- </Flexbox>- {agent.description && (- <Tooltip title={agent.description}>- <Text className={styles.description} ellipsis={{ rows: 2 }}>- {agent.description}- </Text>- </Tooltip>- )}- </Flexbox>- </Flexbox>-- {/* Model Section */}- <Flexbox className={styles.section} gap={4}>- <div className={styles.sectionTitle}>{t('groupSidebar.agentProfile.model')}</div>- <ModelSelect- loading={loading}- value={{ model: agent.model!, provider: agent.provider! }}- onChange={handleModelChange}- />- </Flexbox>- </Flexbox>- );-- return (- <Popover- classNames={{ trigger: styles.trigger }}- content={content}- nativeButton={false}- open={open}- placement="right"- trigger="click"- styles={{- content: { borderRadius: 12, overflow: 'hidden', padding: 0 },- }}- onOpenChange={setOpen}- >- {children}- </Popover>- );-});--export default AgentProfilePopup;diff --git a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsxindex 2f0c0e43102..97182a04fb5 100644--- a/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx+++ b/src/routes/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx@@ -8,6 +8,7 @@ import { useTranslation } from 'react-i18next';import { useLocation } from 'react-router-dom';import { DEFAULT_AVATAR } from '@/const/meta';+import AgentProfilePopup from '@/features/AgentProfileCard/AgentProfilePopup';import NavItem from '@/features/NavPanel/components/NavItem';import UserAvatar from '@/features/User/UserAvatar';import { useQueryRoute } from '@/hooks/useQueryRoute';@@ -19,7 +20,6 @@ import { useUserStore } from '@/store/user';import { userProfileSelectors } from '@/store/user/slices/auth/selectors';import AddGroupMemberModal from '../AddGroupMemberModal';-import AgentProfilePopup from './AgentProfilePopup';import GroupMemberItem from './GroupMemberItem';const styles = createStaticStyles(({ css, cssVar }) => ({@@ -58,7 +58,10 @@ const GroupMember = memo<GroupMemberProps>(({ addModalOpen, onAddModalOpenChangeconst groupMembers = useAgentGroupStore(agentGroupSelectors.getGroupMembers(groupId || ''));- const activeTab = useMemo(() => new URLSearchParams(location.search).get('tab'), [location.search]);+ const activeTab = useMemo(+ () => new URLSearchParams(location.search).get('tab'),+ [location.search],+ );const isProfileRoute = useMemo(() => {if (!groupId) return false;return location.pathname === `/group/${groupId}/profile`;@@ -111,12 +114,7 @@ const GroupMember = memo<GroupMemberProps>(({ addModalOpen, onAddModalOpenChange<NavItem icon={<UserAvatar size={24} />} title={nickname || username || 'User'} />{groupId &&groupMembers.map((item) => (- <AgentProfilePopup- agent={item}- groupId={groupId}- key={item.id}- onChat={() => handleMemberClick(item.id)}- >+ <AgentProfilePopup agent={item} agentId={item.id} groupId={groupId} key={item.id}><divclassName={styles.memberTrigger}data-active={isProfileRoute && activeTab === item.id ? 'true' : undefined}diff --git a/src/routes/(main)/home/features/Recents/AllRecentsDrawer.tsx b/src/routes/(main)/home/features/Recents/AllRecentsDrawer.tsxindex 81a72e769aa..e266b0c666e 100644--- a/src/routes/(main)/home/features/Recents/AllRecentsDrawer.tsx+++ b/src/routes/(main)/home/features/Recents/AllRecentsDrawer.tsx@@ -2,7 +2,7 @@import { Empty, Flexbox, SearchBar } from '@lobehub/ui';import { SearchIcon } from 'lucide-react';-import { memo, useMemo, useState } from 'react';+import { memo, useCallback, useMemo, useState } from 'react';import { useTranslation } from 'react-i18next';import { Link } from 'react-router-dom';@@ -10,7 +10,10 @@ import SkeletonList from '@/features/NavPanel/components/SkeletonList';import SideBarDrawer from '@/features/NavPanel/SideBarDrawer';import { useClientDataSWR } from '@/libs/swr';import { recentService } from '@/services/recent';+import { useAgentStore } from '@/store/agent';+import { builtinAgentSelectors } from '@/store/agent/selectors';import { ALL_RECENTS_DRAWER_SWR_PREFIX } from '@/store/home/slices/recent/action';+import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';import RecentListItem from './Item';@@ -22,6 +25,10 @@ interface AllRecentsDrawerProps {const AllRecentsDrawer = memo<AllRecentsDrawerProps>(({ open, onClose }) => {const { t } = useTranslation('common');const [searchKeyword, setSearchKeyword] = useState('');+ const activeAgentId = useAgentStore((s) => s.activeAgentId);+ const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);++ const { enableAgentTask } = useServerConfigStore(featureFlagsSelectors);const { data: recents, isLoading } = useClientDataSWR(open ? [ALL_RECENTS_DRAWER_SWR_PREFIX, open] : null,@@ -30,10 +37,24 @@ const AllRecentsDrawer = memo<AllRecentsDrawerProps>(({ open, onClose }) => {const filteredRecents = useMemo(() => {if (!recents) return [];+ const baseRecents = enableAgentTask ? recents : recents.filter((item) => item.type !== 'task');const keyword = searchKeyword.trim().toLowerCase();- if (!keyword) return recents;- return recents.filter((item) => item.title.toLowerCase().includes(keyword));- }, [recents, searchKeyword]);+ if (!keyword) return baseRecents;+ return baseRecents.filter((item) => item.title.toLowerCase().includes(keyword));+ }, [recents, searchKeyword, enableAgentTask]);++ const fallbackAgentId = activeAgentId || inboxAgentId;+ const getRecentRoute = useCallback(+ (item: (typeof filteredRecents)[number]) => {+ if (item.type !== 'task') return item.routePath;+ const targetAgentId = item.agentId || fallbackAgentId;+ const taskId = item.id;+ if (!targetAgentId || !taskId) return item.routePath;++ return `/agent/${targetAgentId}/tasks/${taskId}`;+ },+ [fallbackAgentId],+ );return (<SideBarDrawer@@ -68,7 +89,7 @@ const AllRecentsDrawer = memo<AllRecentsDrawerProps>(({ open, onClose }) => {<Linkkey={`${item.type}-${item.id}`}style={{ color: 'inherit', textDecoration: 'none' }}- to={item.routePath}+ to={getRecentRoute(item)}><RecentListItem {...item} /></Link>diff --git a/src/routes/(main)/home/features/Recents/Item.tsx b/src/routes/(main)/home/features/Recents/Item.tsxindex 80f9bedb951..833b4871c5b 100644--- a/src/routes/(main)/home/features/Recents/Item.tsx+++ b/src/routes/(main)/home/features/Recents/Item.tsx@@ -1,29 +1,50 @@import { ActionIcon, DropdownMenu, Flexbox, Icon } from '@lobehub/ui';import { cssVar } from 'antd-style';-import { CheckSquareIcon, FileTextIcon, HashIcon, MoreHorizontalIcon } from 'lucide-react';+import { FileTextIcon, HashIcon, MoreHorizontalIcon } from 'lucide-react';import { memo, useCallback, useState } from 'react';import InlineRename from '@/components/InlineRename';+import TaskStatusIcon from '@/features/AgentTasks/features/TaskStatusIcon';import NavItem from '@/features/NavPanel/components/NavItem';import { usePrefetchAgent } from '@/hooks/usePrefetchAgent';import { usePrefetchPage } from '@/hooks/usePrefetchPage';import { getPlatformIcon } from '@/routes/(main)/agent/channel/const';import { type RecentItem } from '@/server/routers/lambda/recent';+import { useTaskStore } from '@/store/task';import { useRecentItemDropdownMenu } from './useDropdownMenu';-const TYPE_ICON_MAP = {+const TYPE_ICON_MAP: Partial<Record<'document' | 'task' | 'topic', typeof FileTextIcon>> = {document: FileTextIcon,- task: CheckSquareIcon,topic: HashIcon,};+type TaskStatus = 'backlog' | 'canceled' | 'completed' | 'failed' | 'paused' | 'running';+const LEGACY_TASK_STATUS_MAP: Record<string, TaskStatus> = {+ backlog: 'backlog',+ canceled: 'canceled',+ completed: 'completed',+ failed: 'failed',+ in_progress: 'running',+ paused: 'paused',+ running: 'running',+ todo: 'backlog',+};+const normalizeTaskStatus = (status?: string | null): TaskStatus => {+ if (!status) return 'backlog';+ return LEGACY_TASK_STATUS_MAP[status] ?? 'backlog';+};+const RecentListItem = memo<RecentItem>((item) => {const { title, type, agentId, id, metadata } = item;const IconComponent = TYPE_ICON_MAP[type] || FileTextIcon;const [editing, setEditing] = useState(false);const prefetchAgent = usePrefetchAgent();const prefetchPage = usePrefetchPage();+ const useFetchTaskDetail = useTaskStore((s) => s.useFetchTaskDetail);+ const taskKey = type === 'task' ? id : undefined;+ useFetchTaskDetail(taskKey);+ const taskStatus = useTaskStore((s) => (taskKey ? s.taskDetailMap[taskKey]?.status : undefined));const toggleEditing = useCallback((visible?: boolean) => {setEditing(!!visible);@@ -57,6 +78,10 @@ const RecentListItem = memo<RecentItem>((item) => {</DropdownMenu>}icon={(() => {+ if (type === 'task') {+ return <TaskStatusIcon size={16} status={normalizeTaskStatus(taskStatus)} />;+ }+if (type === 'topic' && metadata?.bot?.platform) {const ProviderIcon = getPlatformIcon(metadata.bot.platform);if (ProviderIcon) {diff --git a/src/routes/(main)/home/features/Recents/List.tsx b/src/routes/(main)/home/features/Recents/List.tsxindex 3c429df7a9f..759d0f9cb69 100644--- a/src/routes/(main)/home/features/Recents/List.tsx+++ b/src/routes/(main)/home/features/Recents/List.tsx@@ -1,15 +1,18 @@import { Flexbox } from '@lobehub/ui';import { MoreHorizontalIcon } from 'lucide-react';-import { memo, useMemo } from 'react';+import { memo, useCallback, useMemo } from 'react';import { useTranslation } from 'react-i18next';import { Link } from 'react-router-dom';import NavItem from '@/features/NavPanel/components/NavItem';import SkeletonList from '@/features/NavPanel/components/SkeletonList';+import { useAgentStore } from '@/store/agent';+import { builtinAgentSelectors } from '@/store/agent/selectors';import { useGlobalStore } from '@/store/global';import { systemStatusSelectors } from '@/store/global/selectors';import { useHomeStore } from '@/store/home';import { homeRecentSelectors } from '@/store/home/selectors';+import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';import AllRecentsDrawer from './AllRecentsDrawer';import RecentListItem from './Item';@@ -18,15 +21,38 @@ const RecentsList = memo(() => {const { t } = useTranslation('chat');const recents = useHomeStore(homeRecentSelectors.recents);const isInit = useHomeStore(homeRecentSelectors.isRecentsInit);+ const activeAgentId = useAgentStore((s) => s.activeAgentId);+ const inboxAgentId = useAgentStore(builtinAgentSelectors.inboxAgentId);const recentPageSize = useGlobalStore(systemStatusSelectors.recentPageSize);+ const { enableAgentTask } = useServerConfigStore(featureFlagsSelectors);const [drawerOpen, openDrawer, closeDrawer] = useHomeStore((s) => [s.allRecentsDrawerOpen,s.openAllRecentsDrawer,s.closeAllRecentsDrawer,]);- const displayItems = useMemo(() => recents.slice(0, recentPageSize), [recents, recentPageSize]);- const hasMore = recents.length > recentPageSize;+ const filteredRecents = useMemo(+ () => (enableAgentTask ? recents : recents.filter((item) => item.type !== 'task')),+ [recents, enableAgentTask],+ );+ const displayItems = useMemo(+ () => filteredRecents.slice(0, recentPageSize),+ [filteredRecents, recentPageSize],+ );+ const hasMore = filteredRecents.length > recentPageSize;+ const fallbackAgentId = activeAgentId || inboxAgentId;++ const getRecentRoute = useCallback(+ (item: (typeof displayItems)[number]) => {+ if (item.type !== 'task') return item.routePath;+ const targetAgentId = item.agentId || fallbackAgentId;+ const taskId = item.id;+ if (!targetAgentId || !taskId) return item.routePath;++ return `/agent/${targetAgentId}/tasks/${taskId}`;+ },+ [fallbackAgentId],+ );if (!isInit) {return <SkeletonList rows={3} />;@@ -38,7 +64,7 @@ const RecentsList = memo(() => {<Linkkey={`${item.type}-${item.id}`}style={{ color: 'inherit', textDecoration: 'none' }}- to={item.routePath}+ to={getRecentRoute(item)}><RecentListItem {...item} /></Link>diff --git a/src/routes/(main)/home/features/index.tsx b/src/routes/(main)/home/features/index.tsxindex 83a690fd0a4..983f8752800 100644--- a/src/routes/(main)/home/features/index.tsx+++ b/src/routes/(main)/home/features/index.tsx@@ -4,6 +4,7 @@ import { Flexbox } from '@lobehub/ui';import { memo, useCallback } from 'react';import { useTranslation } from 'react-i18next';+import DailyBrief from '@/features/DailyBrief';import { useHomeStore } from '@/store/home';import { useUserStore } from '@/store/user';import { authSelectors } from '@/store/user/slices/auth/selectors';@@ -29,6 +30,11 @@ const Home = memo(() => {<Flexbox gap={40}><Welcome /><InputArea />+ {isLogin && (+ <Flexbox style={{ display: hideOtherModules ? 'none' : undefined }}>+ <DailyBrief />+ </Flexbox>+ )}{/* Use CSS visibility to hide instead of unmounting to prevent data re-fetching */}<Flexbox gap={40} style={{ display: hideOtherModules ? 'none' : undefined }}>{isDevMode && <CommunityAgents />}diff --git a/src/routes/(main)/tasks/_layout/index.tsx b/src/routes/(main)/tasks/_layout/index.tsxnew file mode 100644index 00000000000..facbc054c72--- /dev/null+++ b/src/routes/(main)/tasks/_layout/index.tsx@@ -0,0 +1,34 @@+'use client';++import { TaskIdentifier } from '@lobechat/builtin-tool-task';+import { Flexbox } from '@lobehub/ui';+import { memo } from 'react';+import { Navigate, Outlet } from 'react-router-dom';++import { useScenarioEnabledTools } from '@/hooks/useScenarioEnabledTools';+import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';++/**+ * Layout for the cross-agent `/tasks` page. Full-width single column — no+ * right-side chat panel like `/agent/:aid/tasks/_layout` has, because this view+ * is not scoped to any single agent.+ */+const AllTasksLayout = memo(() => {+ useScenarioEnabledTools(TaskIdentifier);+ const serverConfigInit = useServerConfigStore((s) => s.serverConfigInit);+ const { enableAgentTask } = useServerConfigStore(featureFlagsSelectors);++ if (serverConfigInit && !enableAgentTask) {+ return <Navigate replace to="/" />;+ }++ return (+ <Flexbox flex={1} height={'100%'} width={'100%'}>+ <Outlet />+ </Flexbox>+ );+});++AllTasksLayout.displayName = 'AllTasksLayout';++export default AllTasksLayout;diff --git a/src/routes/(main)/tasks/index.tsx b/src/routes/(main)/tasks/index.tsxnew file mode 100644index 00000000000..fcab089ad03--- /dev/null+++ b/src/routes/(main)/tasks/index.tsx@@ -0,0 +1,3 @@+'use client';++export { default } from '@/features/AgentTasks/AgentTaskList/AgentTasksPage';diff --git a/src/server/routers/lambda/__tests__/integration/task.integration.test.ts b/src/server/routers/lambda/__tests__/integration/task.integration.test.tsindex 1eec9ff0ab9..4d83ea72b8a 100644--- a/src/server/routers/lambda/__tests__/integration/task.integration.test.ts+++ b/src/server/routers/lambda/__tests__/integration/task.integration.test.ts@@ -97,7 +97,31 @@ describe('Task Router Integration', () => {const detail = await caller.detail({ id: 'T-1' });expect(detail.data.identifier).toBe('T-1');expect(detail.data.subtasks).toHaveLength(0);- expect(detail.data.activities).toBeUndefined();+ // A "created" activity is auto-generated from task.createdAt+ expect(detail.data.activities).toHaveLength(1);+ expect(detail.data.activities![0].type).toBe('created');+ expect(detail.data.activities![0].author?.type).toBe('user');+ });++ it('should persist createdByAgentId when provided (agent-created task)', async () => {+ const result = await caller.create({+ createdByAgentId: testAgentId,+ instruction: 'Created by agent tool',+ name: 'Agent Task',+ });++ expect(result.data.createdByAgentId).toBe(testAgentId);+ expect(result.data.createdByUserId).toBe(userId);+ });++ it('should leave createdByAgentId null when omitted (UI-created task)', async () => {+ const result = await caller.create({+ instruction: 'Created via UI',+ name: 'UI Task',+ });++ expect(result.data.createdByAgentId).toBeNull();+ expect(result.data.createdByUserId).toBe(userId);});});diff --git a/src/server/routers/lambda/__tests__/integration/topic.integration.test.ts b/src/server/routers/lambda/__tests__/integration/topic.integration.test.tsindex 7bc6b6b38e2..9e2a1137ae9 100644--- a/src/server/routers/lambda/__tests__/integration/topic.integration.test.ts+++ b/src/server/routers/lambda/__tests__/integration/topic.integration.test.ts@@ -232,6 +232,35 @@ describe('Topic Router Integration Tests', () => {expect(result.items[0].title).toBe('Topic for reverse lookup');expect(result.total).toBe(1);});++ it('should prioritize includeTriggers over excludeTriggers', async () => {+ const caller = topicRouter.createCaller(createTestContext(userId));++ await serverDB.insert(topics).values([+ {+ title: 'Cron Topic',+ sessionId: testSessionId,+ trigger: 'cron',+ userId,+ },+ {+ title: 'Eval Topic',+ sessionId: testSessionId,+ trigger: 'eval',+ userId,+ },+ ]);++ const result = await caller.getTopics({+ agentId: testAgentId,+ excludeTriggers: ['cron'],+ includeTriggers: ['cron'],+ });++ expect(result.items).toHaveLength(1);+ expect(result.items[0].title).toBe('Cron Topic');+ expect(result.total).toBe(1);+ });});describe('batchDeleteBySessionId', () => {diff --git a/src/server/routers/lambda/aiChat.ts b/src/server/routers/lambda/aiChat.tsindex 60c0de3a7e8..a527a9f1535 100644--- a/src/server/routers/lambda/aiChat.ts+++ b/src/server/routers/lambda/aiChat.ts@@ -88,6 +88,7 @@ export const aiChatRouter = router({metadata: input.newTopic.metadata,sessionId,title: input.newTopic.title,+ trigger: input.newTopic.trigger,});topicId = topicItem.id;isCreateNewTopic = true;diff --git a/src/server/routers/lambda/task.ts b/src/server/routers/lambda/task.tsindex 79101e74c27..069e1f9acd9 100644--- a/src/server/routers/lambda/task.ts+++ b/src/server/routers/lambda/task.ts@@ -1,6 +1,7 @@import { TaskIdentifier as TaskSkillIdentifier } from '@lobechat/builtin-skills';import { BriefIdentifier } from '@lobechat/builtin-tool-brief';import { NotebookIdentifier } from '@lobechat/builtin-tool-notebook';+import { TASK_STATUSES } from '@lobechat/builtin-tool-task';import { buildTaskRunPrompt } from '@lobechat/prompts';import type {TaskListItem,@@ -46,6 +47,7 @@ const idInput = z.object({ id: z.string() });const createSchema = z.object({assigneeAgentId: z.string().optional(),assigneeUserId: z.string().optional(),+ createdByAgentId: z.string().optional(),description: z.string().optional(),identifierPrefix: z.string().optional(),instruction: z.string().min(1),@@ -57,10 +59,11 @@ const createSchema = z.object({const updateSchema = z.object({assigneeAgentId: z.string().nullable().optional(),assigneeUserId: z.string().nullable().optional(),+ automationMode: z.enum(['heartbeat', 'schedule']).nullable().optional(),config: z.record(z.unknown()).optional(),context: z.record(z.unknown()).optional(),description: z.string().optional(),- heartbeatInterval: z.number().min(1).optional(),+ heartbeatInterval: z.number().min(0).optional(),heartbeatTimeout: z.number().min(1).nullable().optional(),instruction: z.string().optional(),name: z.string().optional(),@@ -71,8 +74,10 @@ const listSchema = z.object({assigneeAgentId: z.string().optional(),limit: z.number().min(1).max(100).default(50),offset: z.number().min(0).default(0),+ parentIdentifier: z.string().optional(),parentTaskId: z.string().nullable().optional(),- status: z.string().optional(),+ priorities: z.array(z.number().min(0).max(4)).max(5).optional(),+ statuses: z.array(z.enum(TASK_STATUSES)).max(10).optional(),});const groupListSchema = z.object({@@ -362,6 +367,46 @@ export const taskRouter = router({}}),+ deleteComment: taskProcedure+ .input(z.object({ commentId: z.string() }))+ .mutation(async ({ input, ctx }) => {+ try {+ const deleted = await ctx.taskModel.deleteComment(input.commentId);+ if (!deleted) {+ throw new TRPCError({ code: 'NOT_FOUND', message: 'Comment not found' });+ }+ return { message: 'Comment deleted', success: true };+ } catch (error) {+ if (error instanceof TRPCError) throw error;+ console.error('[task:deleteComment]', error);+ throw new TRPCError({+ cause: error,+ code: 'INTERNAL_SERVER_ERROR',+ message: 'Failed to delete comment',+ });+ }+ }),++ updateComment: taskProcedure+ .input(z.object({ commentId: z.string(), content: z.string().min(1) }))+ .mutation(async ({ input, ctx }) => {+ try {+ const comment = await ctx.taskModel.updateComment(input.commentId, input.content);+ if (!comment) {+ throw new TRPCError({ code: 'NOT_FOUND', message: 'Comment not found' });+ }+ return { data: comment, message: 'Comment updated', success: true };+ } catch (error) {+ if (error instanceof TRPCError) throw error;+ console.error('[task:updateComment]', error);+ throw new TRPCError({+ cause: error,+ code: 'INTERNAL_SERVER_ERROR',+ message: 'Failed to update comment',+ });+ }+ }),+addDependency: taskProcedure.input(z.object({@@ -469,10 +514,11 @@ export const taskRouter = router({} catch (error) {if (error instanceof TRPCError) throw error;console.error('[task:create]', error);+ const causeMessage = error instanceof Error ? error.message : String(error);throw new TRPCError({cause: error,code: 'INTERNAL_SERVER_ERROR',- message: 'Failed to create task',+ message: causeMessage ? `Failed to create task: ${causeMessage}` : 'Failed to create task',});}}),@@ -497,7 +543,7 @@ export const taskRouter = router({const model = ctx.taskModel;const task = await resolveOrThrow(model, input.id);await model.delete(task.id);- return { message: 'Task deleted', success: true };+ return { data: task, message: 'Task deleted', success: true };} catch (error) {if (error instanceof TRPCError) throw error;console.error('[task:delete]', error);@@ -511,25 +557,7 @@ export const taskRouter = router({detail: taskProcedure.input(idInput).query(async ({ input, ctx }) => {try {- const model = ctx.taskModel;- let task = await resolveOrThrow(model, input.id);-- // Auto-detect heartbeat timeout for running tasks- if (task.status === 'running' && task.heartbeatTimeout && task.lastHeartbeatAt) {- const elapsed = (Date.now() - new Date(task.lastHeartbeatAt).getTime()) / 1000;- if (elapsed > task.heartbeatTimeout) {- await model.updateStatus(task.id, 'paused', { error: 'Heartbeat timeout' });- await ctx.taskTopicModel.timeoutRunning(task.id);- task = await resolveOrThrow(model, input.id);- }- }-- // Clear stale heartbeat timeout error if task is no longer running- if (task.status !== 'running' && task.error === 'Heartbeat timeout') {- await model.update(task.id, { error: null });- }-- const detail = await ctx.taskService.getTaskDetail(task.identifier);+ const detail = await ctx.taskService.getTaskDetail(input.id);if (!detail) {throw new TRPCError({ code: 'NOT_FOUND', message: 'Task not found' });}@@ -727,7 +755,25 @@ export const taskRouter = router({list: taskProcedure.input(listSchema).query(async ({ input, ctx }) => {try {const model = ctx.taskModel;- const result = await model.list(input);+ const { parentIdentifier, ...query } = input;+ let parentTaskId = query.parentTaskId;++ if (parentIdentifier) {+ const parent = await model.resolve(parentIdentifier);+ if (!parent) {+ throw new TRPCError({+ code: 'NOT_FOUND',+ message: `Parent task not found: ${parentIdentifier}`,+ });+ }++ parentTaskId = parent.id;+ }++ const result = await model.list({+ ...query,+ parentTaskId,+ });const assigneeIds = [...new Set(result.tasks.map((t) => t.assigneeAgentId).filter((id): id is string => !!id)),@@ -755,6 +801,7 @@ export const taskRouter = router({return { data, success: true, total: result.total };} catch (error) {+ if (error instanceof TRPCError) throw error;console.error('[task:list]', error);throw new TRPCError({cause: error,@@ -1256,12 +1303,19 @@ export const taskRouter = router({z.object({error: z.string().optional(),id: z.string(),- status: z.enum(['backlog', 'running', 'paused', 'completed', 'failed', 'canceled']),+ status: z.enum(TASK_STATUSES),}),).mutation(async ({ input, ctx }) => {const { id, status, error: errorMsg } = input;try {+ if (errorMsg && status !== 'failed') {+ throw new TRPCError({+ code: 'BAD_REQUEST',+ message: 'Task error can only be provided when status is failed.',+ });+ }+const model = ctx.taskModel;const resolved = await resolveOrThrow(model, id);diff --git a/src/server/routers/lambda/topic.ts b/src/server/routers/lambda/topic.tsindex 132f02b870f..267ccf8b80d 100644--- a/src/server/routers/lambda/topic.ts+++ b/src/server/routers/lambda/topic.ts@@ -174,6 +174,7 @@ export const topicRouter = router({groupId: z.string().nullable().optional(),messages: z.array(z.string()).optional(),title: z.string(),+ trigger: z.string().optional(),}).extend(basicContextSchema.shape),)@@ -237,6 +238,7 @@ export const topicRouter = router({excludeStatuses: z.array(z.string()).optional(),excludeTriggers: z.array(z.string()).optional(),groupId: z.string().nullable().optional(),+ includeTriggers: z.array(z.string()).optional(),isInbox: z.boolean().optional(),pageSize: z.number().optional(),sessionId: z.string().nullable().optional(),@@ -244,8 +246,16 @@ export const topicRouter = router({}),).query(async ({ input, ctx }) => {- const { sessionId, isInbox, groupId, excludeStatuses, excludeTriggers, triggers, ...rest } =- input;+ const {+ sessionId,+ isInbox,+ groupId,+ excludeStatuses,+ excludeTriggers,+ includeTriggers,+ triggers,+ ...rest+ } = input;// If groupId is provided, query by groupId directlyif (groupId) {@@ -253,6 +263,7 @@ export const topicRouter = router({excludeStatuses,excludeTriggers,groupId,+ includeTriggers,triggers,...rest,});@@ -270,6 +281,7 @@ export const topicRouter = router({agentId: effectiveAgentId,excludeStatuses,excludeTriggers,+ includeTriggers,isInbox,triggers,});diff --git a/src/server/services/task/index.test.ts b/src/server/services/task/index.test.tsindex b00c02b9a67..9d1bb8da718 100644--- a/src/server/services/task/index.test.ts+++ b/src/server/services/task/index.test.ts@@ -50,10 +50,13 @@ describe('TaskService', () => {getTreeAgentIdsForTaskIds: vi.fn().mockResolvedValue({}),getTreePinnedDocuments: vi.fn(),resolve: vi.fn(),+ update: vi.fn(),+ updateStatus: vi.fn(),};const mockTaskTopicModel = {findWithHandoff: vi.fn(),+ timeoutRunning: vi.fn(),};const mockBriefModel = {diff --git a/src/server/services/task/index.ts b/src/server/services/task/index.tsindex 68f18699d1a..f36ae60bb52 100644--- a/src/server/services/task/index.ts+++ b/src/server/services/task/index.ts@@ -18,6 +18,7 @@ import type { LobeChatDatabase } from '@/database/type';import { BriefService } from '../brief';const emptyWorkspace: WorkspaceData = { nodeMap: {}, tree: [] };+const UNTITLED_TOPIC_TITLE = 'Untitled';export class TaskService {private agentModel: AgentModel;@@ -37,9 +38,26 @@ export class TaskService {}async getTaskDetail(taskIdOrIdentifier: string): Promise<TaskDetailData | null> {- const task = await this.taskModel.resolve(taskIdOrIdentifier);+ let task = await this.taskModel.resolve(taskIdOrIdentifier);if (!task) return null;+ // Auto-detect heartbeat timeout for running tasks before assembling detail.+ if (task.status === 'running' && task.heartbeatTimeout && task.lastHeartbeatAt) {+ const elapsed = (Date.now() - new Date(task.lastHeartbeatAt).getTime()) / 1000;+ if (elapsed > task.heartbeatTimeout) {+ await this.taskModel.updateStatus(task.id, 'paused', { error: 'Heartbeat timeout' });+ await this.taskTopicModel.timeoutRunning(task.id);+ task = await this.taskModel.resolve(taskIdOrIdentifier);+ if (!task) return null;+ }+ }++ // Clear stale heartbeat timeout error once the task is no longer running.+ if (task.status !== 'running' && task.error === 'Heartbeat timeout') {+ await this.taskModel.update(task.id, { error: null });+ task = { ...task, error: null };+ }+const [allDescendants, dependencies, topics, briefs, comments, workspace] = await Promise.all([this.taskModel.findAllDescendants(task.id),this.taskModel.getDependencies(task.id),@@ -70,17 +88,43 @@ export class TaskService {childrenMap.get(parentId)!.push(t);}+ // Resolve subtask assignee agents in batch so the UI can render avatars+ // without depending on client-side agent store state.+ const subtaskAssigneeIds = [+ ...new Set(+ allDescendants.map((s) => s.assigneeAgentId).filter((id): id is string => Boolean(id)),+ ),+ ];+ const subtaskAgents =+ subtaskAssigneeIds.length > 0+ ? await this.agentModel.getAgentAvatarsByIds(subtaskAssigneeIds)+ : [];+ const subtaskAgentMap = new Map(subtaskAgents.map((a) => [a.id, a]));+const buildSubtaskTree = (parentId: string): TaskDetailSubtask[] | undefined => {const children = childrenMap.get(parentId);if (!children || children.length === 0) return undefined;- return children.map((s) => ({- blockedBy: depMap.get(s.id),- children: buildSubtaskTree(s.id),- identifier: s.identifier,- name: s.name,- priority: s.priority,- status: s.status,- }));+ return children.map((s) => {+ const agent = s.assigneeAgentId ? subtaskAgentMap.get(s.assigneeAgentId) : undefined;+ return {+ ...(agent+ ? {+ assignee: {+ avatar: agent.avatar,+ backgroundColor: agent.backgroundColor,+ id: agent.id,+ title: agent.title,+ },+ }+ : {}),+ blockedBy: depMap.get(s.id),+ children: buildSubtaskTree(s.id),+ identifier: s.identifier,+ name: s.name,+ priority: s.priority,+ status: s.status,+ };+ });};// Root level: always return array (empty [] when no subtasks) for consistent API shape@@ -138,6 +182,9 @@ export class TaskService {if (c.authorAgentId) agentIds.add(c.authorAgentId);if (c.authorUserId) userIds.add(c.authorUserId);}+ // Creator of the task itself (agent takes precedence over user)+ if (task.createdByAgentId) agentIds.add(task.createdByAgentId);+ else if (task.createdByUserId) userIds.add(task.createdByUserId);const [authorMap, enrichedBriefs] = await Promise.all([this.resolveAuthors(agentIds, userIds),@@ -146,16 +193,31 @@ export class TaskService {.catch(() => briefs.map((b) => ({ ...b, agents: [] }))),]);+ const creatorId = task.createdByAgentId ?? task.createdByUserId;+ const createdActivity: TaskDetailActivity | null =+ task.createdAt && creatorId+ ? {+ author: authorMap.get(creatorId),+ time: toISO(task.createdAt),+ type: 'created' as const,+ }+ : null;+const activities: TaskDetailActivity[] = [- ...topics.map((t) => ({- author: task.assigneeAgentId ? authorMap.get(task.assigneeAgentId) : undefined,- id: t.topicId ?? undefined,- seq: t.seq,- status: t.status,- time: toISO(t.createdAt),- title: (t.handoff as TaskTopicHandoff | null)?.title || 'Untitled',- type: 'topic' as const,- })),+ ...(createdActivity ? [createdActivity] : []),+ ...topics.map((t) => {+ const handoff = t.handoff as TaskTopicHandoff | null;+ return {+ author: task.assigneeAgentId ? authorMap.get(task.assigneeAgentId) : undefined,+ id: t.topicId ?? undefined,+ seq: t.seq,+ status: t.status,+ summary: handoff?.summary,+ time: toISO(t.createdAt),+ title: handoff?.title || UNTITLED_TOPIC_TITLE,+ type: 'topic' as const,+ };+ }),...enrichedBriefs.map((b) => ({actions: b.actions ?? undefined,agentId: b.agentId,@@ -187,6 +249,7 @@ export class TaskService {? authorMap.get(c.authorUserId): undefined,content: c.content,+ id: c.id,time: toISO(c.createdAt),type: 'comment' as const,})),@@ -198,6 +261,7 @@ export class TaskService {return {agentId: task.assigneeAgentId,+ automationMode: task.automationMode ?? null,checkpoint: this.taskModel.getCheckpointConfig(task),config: task.config ? (task.config as Record<string, unknown>) : undefined,createdAt: task.createdAt ? new Date(task.createdAt).toISOString() : undefined,@@ -212,7 +276,7 @@ export class TaskService {description: task.description,error: task.error,heartbeat:- task.heartbeatTimeout || task.lastHeartbeatAt+ task.heartbeatInterval || task.heartbeatTimeout || task.lastHeartbeatAt? {interval: task.heartbeatInterval,lastAt: task.lastHeartbeatAt ? new Date(task.lastHeartbeatAt).toISOString() : null,diff --git a/src/server/services/toolExecution/serverRuntimes/__tests__/task.test.ts b/src/server/services/toolExecution/serverRuntimes/__tests__/task.test.tsnew file mode 100644index 00000000000..0dee4e27380--- /dev/null+++ b/src/server/services/toolExecution/serverRuntimes/__tests__/task.test.ts@@ -0,0 +1,121 @@+import { describe, expect, it, vi } from 'vitest';++import { createTaskRuntime } from '../task';++vi.mock('@/server/routers/lambda/task', () => ({+ taskRouter: { createCaller: () => ({}) },+}));++describe('createTaskRuntime', () => {+ describe('createTask', () => {+ const fakeTask = {+ id: 'task-1',+ identifier: 'T-1',+ name: 'Test',+ priority: 0,+ status: 'backlog',+ };++ const makeDeps = () => {+ const taskModel = {+ create: vi.fn().mockResolvedValue(fakeTask),+ resolve: vi.fn(),+ };+ const taskService = {} as any;+ const taskCaller = {} as any;+ return { taskCaller, taskModel, taskService };+ };++ it('passes createdByAgentId when invoked by an agent (activity should attribute the agent)', async () => {+ const deps = makeDeps();++ const runtime = createTaskRuntime({+ agentId: 'agt-xyz',+ taskCaller: deps.taskCaller,+ taskModel: deps.taskModel as any,+ taskService: deps.taskService,+ });++ const result = await runtime.createTask({+ instruction: 'Do something',+ name: 'Test',+ });++ expect(result.success).toBe(true);+ expect(deps.taskModel.create).toHaveBeenCalledWith(+ expect.objectContaining({+ assigneeAgentId: 'agt-xyz',+ createdByAgentId: 'agt-xyz',+ }),+ );+ });++ it('leaves createdByAgentId undefined when no agentId in context', async () => {+ const deps = makeDeps();++ const runtime = createTaskRuntime({+ taskCaller: deps.taskCaller,+ taskModel: deps.taskModel as any,+ taskService: deps.taskService,+ });++ await runtime.createTask({+ instruction: 'Do something',+ name: 'Test',+ });++ expect(deps.taskModel.create).toHaveBeenCalledWith(+ expect.objectContaining({+ assigneeAgentId: undefined,+ createdByAgentId: undefined,+ }),+ );+ });++ it('resolves and uses parentTaskId when parentIdentifier is provided', async () => {+ const deps = makeDeps();+ deps.taskModel.resolve = vi.fn().mockResolvedValue({ id: 'parent-id', identifier: 'T-99' });++ const runtime = createTaskRuntime({+ agentId: 'agt-xyz',+ taskCaller: deps.taskCaller,+ taskModel: deps.taskModel as any,+ taskService: deps.taskService,+ });++ await runtime.createTask({+ instruction: 'Sub',+ name: 'Sub',+ parentIdentifier: 'T-99',+ });++ expect(deps.taskModel.create).toHaveBeenCalledWith(+ expect.objectContaining({+ createdByAgentId: 'agt-xyz',+ parentTaskId: 'parent-id',+ }),+ );+ });++ it('returns failure without creating when parent cannot be resolved', async () => {+ const deps = makeDeps();+ deps.taskModel.resolve = vi.fn().mockResolvedValue(null);++ const runtime = createTaskRuntime({+ agentId: 'agt-xyz',+ taskCaller: deps.taskCaller,+ taskModel: deps.taskModel as any,+ taskService: deps.taskService,+ });++ const result = await runtime.createTask({+ instruction: 'Sub',+ name: 'Sub',+ parentIdentifier: 'T-404',+ });++ expect(result.success).toBe(false);+ expect(deps.taskModel.create).not.toHaveBeenCalled();+ });+ });+});diff --git a/src/server/services/toolExecution/serverRuntimes/task.ts b/src/server/services/toolExecution/serverRuntimes/task.tsindex 56165d33e4b..c3688cb510b 100644--- a/src/server/services/toolExecution/serverRuntimes/task.ts+++ b/src/server/services/toolExecution/serverRuntimes/task.ts@@ -1,25 +1,32 @@-import { TaskIdentifier } from '@lobechat/builtin-tool-task';+import { normalizeListTasksParams, TaskIdentifier } from '@lobechat/builtin-tool-task';import {formatDependencyAdded,formatDependencyRemoved,formatTaskCreated,+ formatTaskDeleted,formatTaskDetail,formatTaskEdited,formatTaskList,priorityLabel,} from '@lobechat/prompts';+import type { TaskStatus } from '@lobechat/types';import { TaskModel } from '@/database/models/task';+import { taskRouter } from '@/server/routers/lambda/task';import { TaskService } from '@/server/services/task';import { type ServerRuntimeRegistration } from './types';-const createTaskRuntime = ({+export const createTaskRuntime = ({+ agentId,taskId,+ taskCaller,taskModel,taskService,}: {+ agentId?: string;taskId?: string;+ taskCaller: ReturnType<typeof taskRouter.createCaller>;taskModel: TaskModel;taskService: TaskService;}) => ({@@ -29,16 +36,9 @@ const createTaskRuntime = ({parentIdentifier?: string;priority?: number;sortOrder?: number;- review?: {- autoRetry?: boolean;- criteria?: Array<{ name: string; threshold: number }>;- enabled?: boolean;- maxIterations?: number;- };}) => {let parentTaskId: string | undefined;let parentLabel: string | undefined;- let parentConfig: Record<string, any> | undefined;if (args.parentIdentifier) {const parent = await taskModel.resolve(args.parentIdentifier);@@ -46,24 +46,11 @@ const createTaskRuntime = ({return { content: `Parent task not found: ${args.parentIdentifier}`, success: false };parentTaskId = parent.id;parentLabel = parent.identifier;- parentConfig = parent.config as Record<string, any>;- } else if (taskId) {- parentTaskId = taskId;- const current = await taskModel.findById(taskId);- parentLabel = current?.identifier || taskId;- parentConfig = current?.config as Record<string, any>;- }-- // Build config: explicit review > inherited from parent- let config: Record<string, any> | undefined;- if (args.review) {- config = { review: { enabled: true, ...args.review } };- } else if (parentConfig?.review) {- config = { review: parentConfig.review };}const task = await taskModel.create({- ...(config && { config }),+ assigneeAgentId: agentId,+ createdByAgentId: agentId,instruction: args.instruction,name: args.name,parentTaskId,@@ -91,30 +78,26 @@ const createTaskRuntime = ({await taskModel.delete(task.id);return {- content: `Task ${task.identifier} "${task.name || ''}" has been deleted.`,+ content: formatTaskDeleted(task.identifier, task.name),success: true,};},editTask: async (args: {- addDependency?: string;+ addDependencies?: string[];+ description?: string;identifier: string;instruction?: string;name?: string;priority?: number;- removeDependency?: string;- review?: {- autoRetry?: boolean;- criteria?: Array<{ name: string; threshold: number }>;- enabled?: boolean;- maxIterations?: number;- };+ removeDependencies?: string[];}) => {const task = await taskModel.resolve(args.identifier);if (!task) return { content: `Task not found: ${args.identifier}`, success: false };const updateData: Record<string, any> = {};const changes: string[] = [];+ const ops: Promise<unknown>[] = [];if (args.name !== undefined) {updateData.name = args.name;@@ -124,68 +107,91 @@ const createTaskRuntime = ({updateData.instruction = args.instruction;changes.push(`instruction updated`);}+ if (args.description !== undefined) {+ updateData.description = args.description;+ changes.push('description updated');+ }if (args.priority !== undefined) {updateData.priority = args.priority;changes.push(`priority → ${priorityLabel(args.priority)}`);}- if (args.review) {- await taskModel.updateTaskConfig(task.id, { review: { enabled: true, ...args.review } });- changes.push('review config updated');- }if (Object.keys(updateData).length > 0) {- await taskModel.update(task.id, updateData);+ ops.push(taskModel.update(task.id, updateData));}- // Handle dependencies- if (args.addDependency) {- const dep = await taskModel.resolve(args.addDependency);- if (!dep)- return { content: `Dependency task not found: ${args.addDependency}`, success: false };- await taskModel.addDependency(task.id, dep.id);- changes.push(formatDependencyAdded(task.identifier, dep.identifier));- }+ const applyDeps = async (+ ids: string[],+ apply: (depId: string) => Promise<unknown>,+ onChange: (depIdentifier: string) => void,+ ): Promise<string | undefined> => {+ const resolved = await Promise.all(+ ids.map((id) => taskModel.resolve(id).then((r) => ({ id, resolved: r }))),+ );+ const missing = resolved.find((r) => !r.resolved);+ if (missing) return `Dependency task not found: ${missing.id}`;++ await Promise.all(resolved.map(({ resolved: dep }) => apply(dep!.id)));+ resolved.forEach(({ resolved: dep }) => onChange(dep!.identifier));+ };- if (args.removeDependency) {- const dep = await taskModel.resolve(args.removeDependency);- if (!dep)- return { content: `Dependency task not found: ${args.removeDependency}`, success: false };- await taskModel.removeDependency(task.id, dep.id);- changes.push(formatDependencyRemoved(task.identifier, dep.identifier));+ const depResults: Promise<string | undefined>[] = [];+ if (args.addDependencies?.length) {+ depResults.push(+ applyDeps(+ args.addDependencies,+ (depId) => taskModel.addDependency(task.id, depId),+ (depIdentifier) => changes.push(formatDependencyAdded(task.identifier, depIdentifier)),+ ),+ );}+ if (args.removeDependencies?.length) {+ depResults.push(+ applyDeps(+ args.removeDependencies,+ (depId) => taskModel.removeDependency(task.id, depId),+ (depIdentifier) => changes.push(formatDependencyRemoved(task.identifier, depIdentifier)),+ ),+ );+ }++ const [, depErrors] = await Promise.all([Promise.all(ops), Promise.all(depResults)]);+ const firstDepError = depErrors.find((e) => e);+ if (firstDepError) return { content: firstDepError, success: false };return { content: formatTaskEdited(task.identifier, changes), success: true };},- listTasks: async (args: { parentIdentifier?: string; status?: string }) => {- let parentId: string | undefined;- let parentLabel = 'current task';+ listTasks: async (args: {+ assigneeAgentId?: string;+ limit?: number;+ offset?: number;+ parentIdentifier?: string;+ priorities?: number[];+ statuses?: TaskStatus[];+ }) => {+ const normalized = normalizeListTasksParams(args, {+ currentAgentId: agentId,+ });- if (args.parentIdentifier) {- const parent = await taskModel.resolve(args.parentIdentifier);- if (!parent)- return { content: `Parent task not found: ${args.parentIdentifier}`, success: false };- parentId = parent.id;- parentLabel = parent.identifier;- } else {- parentId = taskId;- }+ try {+ const result = await taskCaller.list(normalized.query);- if (!parentId) return { content: 'No task context available.', success: false };+ return {+ content: formatTaskList(result.data, normalized.displayFilters),+ success: true,+ };+ } catch (error) {+ const message = error instanceof Error ? error.message : 'Failed to list tasks';- const subtasks = await taskModel.findSubtasks(parentId);- let filtered = subtasks;- if (args.status) {- filtered = subtasks.filter((t) => t.status === args.status);+ return {+ content: `Failed to list tasks: ${message}`,+ success: false,+ };}-- return {- content: formatTaskList(filtered, parentLabel, args.status),- success: true,- };},- updateTaskStatus: async (args: { identifier?: string; status: string }) => {+ updateTaskStatus: async (args: { error?: string; identifier?: string; status: TaskStatus }) => {const id = args.identifier || taskId;if (!id) {return {@@ -194,16 +200,28 @@ const createTaskRuntime = ({};}- const task = await taskModel.resolve(id);- if (!task) return { content: `Task not found: ${id}`, success: false };+ try {+ const result = await taskCaller.updateStatus({+ error: args.error,+ id,+ status: args.status,+ });- const updated = await taskModel.updateStatus(task.id, args.status);- if (!updated) return { content: `Failed to update task ${task.identifier}`, success: false };+ return {+ content:+ args.status === 'failed' && args.error+ ? `Task ${result.data.identifier} status updated to failed. Error: ${args.error}`+ : `Task ${result.data.identifier} status updated to ${args.status}.`,+ success: true,+ };+ } catch (error) {+ const message = error instanceof Error ? error.message : 'Failed to update task status';- return {- content: `Task ${task.identifier} status updated to ${args.status}.`,- success: true,- };+ return {+ content: `Failed to update task status: ${message}`,+ success: false,+ };+ }},viewTask: async (args: { identifier?: string }) => {@@ -233,8 +251,15 @@ export const taskRuntime: ServerRuntimeRegistration = {const taskModel = new TaskModel(context.serverDB, context.userId);const taskService = new TaskService(context.serverDB, context.userId);-- return createTaskRuntime({ taskId: context.taskId, taskModel, taskService });+ const taskCaller = taskRouter.createCaller({ userId: context.userId });++ return createTaskRuntime({+ agentId: context.agentId,+ taskCaller,+ taskId: context.taskId,+ taskModel,+ taskService,+ });},identifier: TaskIdentifier,};diff --git a/src/services/__tests__/brief.test.ts b/src/services/__tests__/brief.test.tsnew file mode 100644index 00000000000..ccbe5fd7b00--- /dev/null+++ b/src/services/__tests__/brief.test.ts@@ -0,0 +1,96 @@+import { beforeEach, describe, expect, it, vi } from 'vitest';++import { briefService } from '../brief';++const mockQuery = vi.fn();+const mockBriefMutate = vi.fn();+const mockTaskMutate = vi.fn();++vi.mock('@/libs/trpc/client', () => ({+ lambdaClient: {+ brief: {+ listUnresolved: { query: (...args: any[]) => mockQuery(...args) },+ markRead: { mutate: (...args: any[]) => mockBriefMutate(...args) },+ resolve: { mutate: (...args: any[]) => mockBriefMutate(...args) },+ },+ task: {+ addComment: { mutate: (...args: any[]) => mockTaskMutate(...args) },+ },+ },+}));++beforeEach(() => {+ vi.clearAllMocks();+});++describe('BriefService', () => {+ describe('listUnresolved', () => {+ it('should call listUnresolved query', async () => {+ const mockData = { data: [{ id: 'brief-1', title: 'Test' }], success: true };+ mockQuery.mockResolvedValueOnce(mockData);++ const result = await briefService.listUnresolved();++ expect(mockQuery).toHaveBeenCalled();+ expect(result).toEqual(mockData);+ });+ });++ describe('resolve', () => {+ it('should call resolve with id and params', async () => {+ mockBriefMutate.mockResolvedValueOnce({ data: {}, success: true });++ await briefService.resolve('brief-1', { action: 'approve', comment: 'looks good' });++ expect(mockBriefMutate).toHaveBeenCalledWith({+ action: 'approve',+ comment: 'looks good',+ id: 'brief-1',+ });+ });++ it('should call resolve with only id when no params', async () => {+ mockBriefMutate.mockResolvedValueOnce({ data: {}, success: true });++ await briefService.resolve('brief-1');++ expect(mockBriefMutate).toHaveBeenCalledWith({ id: 'brief-1' });+ });+ });++ describe('markRead', () => {+ it('should call markRead with id', async () => {+ mockBriefMutate.mockResolvedValueOnce({ data: {}, success: true });++ await briefService.markRead('brief-1');++ expect(mockBriefMutate).toHaveBeenCalledWith({ id: 'brief-1' });+ });+ });++ describe('addComment', () => {+ it('should call task.addComment with correct params', async () => {+ mockTaskMutate.mockResolvedValueOnce({ data: {}, success: true });++ await briefService.addComment('task-1', 'my feedback', 'brief-1');++ expect(mockTaskMutate).toHaveBeenCalledWith({+ briefId: 'brief-1',+ content: 'my feedback',+ id: 'task-1',+ });+ });++ it('should call task.addComment without briefId when not provided', async () => {+ mockTaskMutate.mockResolvedValueOnce({ data: {}, success: true });++ await briefService.addComment('task-1', 'feedback text');++ expect(mockTaskMutate).toHaveBeenCalledWith({+ briefId: undefined,+ content: 'feedback text',+ id: 'task-1',+ });+ });+ });+});diff --git a/src/services/brief.ts b/src/services/brief.tsnew file mode 100644index 00000000000..039d86f67e5--- /dev/null+++ b/src/services/brief.ts@@ -0,0 +1,21 @@+import { lambdaClient } from '@/libs/trpc/client';++class BriefService {+ addComment = async (taskId: string, content: string, briefId?: string) => {+ return lambdaClient.task.addComment.mutate({ briefId, content, id: taskId });+ };++ listUnresolved = async () => {+ return lambdaClient.brief.listUnresolved.query();+ };++ markRead = async (id: string) => {+ return lambdaClient.brief.markRead.mutate({ id });+ };++ resolve = async (id: string, params?: { action?: string; comment?: string }) => {+ return lambdaClient.brief.resolve.mutate({ id, ...params });+ };+}++export const briefService = new BriefService();diff --git a/src/services/task.ts b/src/services/task.tsindex b9aa84d8520..963dff5d5c6 100644--- a/src/services/task.ts+++ b/src/services/task.ts@@ -1,4 +1,4 @@-import type { CheckpointConfig } from '@lobechat/types';+import type { CheckpointConfig, TaskAutomationMode, TaskStatus } from '@lobechat/types';import { lambdaClient } from '@/libs/trpc/client';@@ -13,8 +13,10 @@ class TaskService {assigneeAgentId?: string;limit?: number;offset?: number;+ parentIdentifier?: string;parentTaskId?: string | null;- status?: string;+ priorities?: number[];+ statuses?: TaskStatus[];}) => lambdaClient.task.list.query(params);groupList = async (params: {@@ -47,6 +49,7 @@ class TaskService {create = async (params: {assigneeAgentId?: string;assigneeUserId?: string;+ createdByAgentId?: string;description?: string;identifierPrefix?: string;instruction: string;@@ -60,6 +63,8 @@ class TaskService {data: {assigneeAgentId?: string | null;assigneeUserId?: string | null;+ // Automation mode; null = no automation+ automationMode?: TaskAutomationMode | null;config?: Record<string, unknown>;context?: Record<string, unknown>;description?: string;@@ -89,6 +94,12 @@ class TaskService {addComment = async (id: string, content: string, opts?: { briefId?: string; topicId?: string }) =>lambdaClient.task.addComment.mutate({ content, id, ...opts });+ deleteComment = async (commentId: string) =>+ lambdaClient.task.deleteComment.mutate({ commentId });++ updateComment = async (commentId: string, content: string) =>+ lambdaClient.task.updateComment.mutate({ commentId, content });+addDependency = async (taskId: string,dependsOnId: string,diff --git a/src/services/topic/index.ts b/src/services/topic/index.tsindex bed8251921a..0b14fd98342 100644--- a/src/services/topic/index.ts+++ b/src/services/topic/index.ts@@ -40,6 +40,7 @@ export class TopicService {excludeStatuses: params.excludeStatuses,excludeTriggers: params.excludeTriggers,groupId: params.groupId,+ includeTriggers: params.includeTriggers,isInbox: params.isInbox,pageSize: params.pageSize,triggers: params.triggers,diff --git a/src/spa/router/desktopRouter.config.desktop.tsx b/src/spa/router/desktopRouter.config.desktop.tsxindex 7efb8f0f110..88f9933f7cb 100644--- a/src/spa/router/desktopRouter.config.desktop.tsx+++ b/src/spa/router/desktopRouter.config.desktop.tsx@@ -19,6 +19,9 @@ import DesktopChatLayout from '@/routes/(main)/agent/_layout';import AgentChannelPage from '@/routes/(main)/agent/channel';import AgentCronDetailPage from '@/routes/(main)/agent/cron/[cronId]';import AgentProfilePage from '@/routes/(main)/agent/profile';+import AgentTasksPage from '@/routes/(main)/agent/tasks';+import AgentTasksLayout from '@/routes/(main)/agent/tasks/_layout';+import AgentTaskDetailPage from '@/routes/(main)/agent/tasks/[taskId]';import CommunityLayout from '@/routes/(main)/community/_layout';import CommunityDetailLayout from '@/routes/(main)/community/(detail)/_layout';import CommunityDetailAgentPage from '@/routes/(main)/community/(detail)/agent';@@ -69,6 +72,8 @@ import ResourceLibrarySlugPage from '@/routes/(main)/resource/library/[slug]';import SettingsTabPage from '@/routes/(main)/settings';import SettingsLayout from '@/routes/(main)/settings/_layout';import { ProviderDetailPage, ProviderLayout } from '@/routes/(main)/settings/provider';+import AllTasksPage from '@/routes/(main)/tasks';+import AllTasksLayout from '@/routes/(main)/tasks/_layout';import ShareTopicPage from '@/routes/share/t/[id]';import ShareTopicLayout from '@/routes/share/t/[id]/_layout';import { ErrorBoundary, redirectElement } from '@/utils/router';@@ -102,6 +107,20 @@ export const desktopRoutes: RouteObject[] = [element: <AgentChannelPage />,path: 'channel',},+ {+ children: [+ {+ element: <AgentTasksPage />,+ index: true,+ },+ {+ element: <AgentTaskDetailPage />,+ path: ':taskId',+ },+ ],+ element: <AgentTasksLayout />,+ path: 'tasks',+ },],element: <DesktopChatLayout />,errorElement: <ErrorBoundary />,@@ -409,6 +428,19 @@ export const desktopRoutes: RouteObject[] = [path: 'eval',},+ // Tasks routes (cross-agent)+ {+ children: [+ {+ element: <AllTasksPage />,+ index: true,+ },+ ],+ element: <AllTasksLayout />,+ errorElement: <ErrorBoundary resetPath="/" />,+ path: 'tasks',+ },+// Pages routes{children: [diff --git a/src/spa/router/desktopRouter.config.tsx b/src/spa/router/desktopRouter.config.tsxindex e86baf2e5b3..0e4497e0c67 100644--- a/src/spa/router/desktopRouter.config.tsx+++ b/src/spa/router/desktopRouter.config.tsx@@ -46,6 +46,29 @@ export const desktopRoutes: RouteObject[] = [),path: 'channel',},+ {+ children: [+ {+ element: dynamicElement(+ () => import('@/routes/(main)/agent/tasks'),+ 'Desktop > Chat > Tasks',+ ),+ index: true,+ },+ {+ element: dynamicElement(+ () => import('@/routes/(main)/agent/tasks/[taskId]'),+ 'Desktop > Chat > Task Detail',+ ),+ path: ':taskId',+ },+ ],+ element: dynamicLayout(+ () => import('@/routes/(main)/agent/tasks/_layout'),+ 'Desktop > Chat > Tasks > Layout',+ ),+ path: 'tasks',+ },],element: dynamicLayout(() => import('@/routes/(main)/agent/_layout'),@@ -514,6 +537,22 @@ export const desktopRoutes: RouteObject[] = [path: 'eval',},+ // Tasks routes (cross-agent)+ {+ children: [+ {+ element: dynamicElement(() => import('@/routes/(main)/tasks'), 'Desktop > Tasks'),+ index: true,+ },+ ],+ element: dynamicLayout(+ () => import('@/routes/(main)/tasks/_layout'),+ 'Desktop > Tasks > Layout',+ ),+ errorElement: <ErrorBoundary resetPath="/" />,+ path: 'tasks',+ },+// Pages routes{children: [diff --git a/src/spa/router/mobileRouter.config.tsx b/src/spa/router/mobileRouter.config.tsxindex f4f6695b4e4..88b895e3a4d 100644--- a/src/spa/router/mobileRouter.config.tsx+++ b/src/spa/router/mobileRouter.config.tsx@@ -218,6 +218,22 @@ export const mobileRoutes: RouteObject[] = [path: 'settings',},+ // Tasks routes (cross-agent)+ {+ children: [+ {+ element: dynamicElement(() => import('@/routes/(main)/tasks'), 'Mobile > Tasks'),+ index: true,+ },+ ],+ element: dynamicLayout(+ () => import('@/routes/(main)/tasks/_layout'),+ 'Mobile > Tasks > Layout',+ ),+ errorElement: <ErrorBoundary resetPath="/" />,+ path: 'tasks',+ },+...BusinessMobileRoutesWithMainLayout,// Me routes (mobile personal center)diff --git a/src/store/brief/index.ts b/src/store/brief/index.tsnew file mode 100644index 00000000000..4de15ec9a27--- /dev/null+++ b/src/store/brief/index.ts@@ -0,0 +1,2 @@+export type { BriefStore } from './store';+export { getBriefStoreState, useBriefStore } from './store';diff --git a/src/store/brief/initialState.ts b/src/store/brief/initialState.tsnew file mode 100644index 00000000000..12c4200b123--- /dev/null+++ b/src/store/brief/initialState.ts@@ -0,0 +1,7 @@+import { type BriefListState, initialBriefListState } from './slices/list/initialState';++export interface BriefStoreState extends BriefListState {}++export const initialState: BriefStoreState = {+ ...initialBriefListState,+};diff --git a/src/store/brief/selectors.ts b/src/store/brief/selectors.tsnew file mode 100644index 00000000000..ecda420e02a--- /dev/null+++ b/src/store/brief/selectors.ts@@ -0,0 +1 @@+export * from './slices/list/selectors';diff --git a/src/store/brief/slices/list/action.ts b/src/store/brief/slices/list/action.tsnew file mode 100644index 00000000000..994f96730c2--- /dev/null+++ b/src/store/brief/slices/list/action.ts@@ -0,0 +1,75 @@+import isEqual from 'fast-deep-equal';+import { type SWRResponse } from 'swr';++import { useClientDataSWRWithSync } from '@/libs/swr';+import { briefService } from '@/services/brief';+import { type BriefStore } from '@/store/brief/store';+import { type BriefItem } from '@/store/brief/types';+import { type StoreSetter } from '@/store/types';+import { setNamespace } from '@/utils/storeDebug';++const n = setNamespace('briefList');++const FETCH_BRIEFS_KEY = 'fetchBriefs';++type Setter = StoreSetter<BriefStore>;++export const createBriefListSlice = (set: Setter, get: () => BriefStore, _api?: unknown) =>+ new BriefListActionImpl(set, get, _api);++export class BriefListActionImpl {+ readonly #get: () => BriefStore;+ readonly #set: Setter;++ constructor(set: Setter, get: () => BriefStore, _api?: unknown) {+ void _api;+ this.#set = set;+ this.#get = get;+ }++ addComment = async (briefId: string, taskId: string, content: string) => {+ await briefService.addComment(taskId, content, briefId);+ };++ internal_updateBrief = (id: string, data: Partial<BriefItem>) => {+ const briefs = this.#get().briefs;+ const index = briefs.findIndex((b) => b.id === id);+ if (index === -1) return;++ const updated = [...briefs];+ updated[index] = { ...briefs[index], ...data };+ this.#set({ briefs: updated }, false, n('internal_updateBrief'));+ };++ markBriefRead = async (id: string) => {+ await briefService.markRead(id);+ this.internal_updateBrief(id, { readAt: new Date().toISOString() });+ };++ resolveBrief = async (id: string, action?: string, comment?: string) => {+ await briefService.resolve(id, { action, comment });+ this.internal_updateBrief(id, {+ resolvedAction: action,+ resolvedAt: new Date().toISOString(),+ });+ };++ useFetchBriefs = (isLogin: boolean | undefined): SWRResponse<BriefItem[]> => {+ return useClientDataSWRWithSync<BriefItem[]>(+ isLogin === true ? [FETCH_BRIEFS_KEY, isLogin] : null,+ async () => {+ const result = await briefService.listUnresolved();+ return result.data as BriefItem[];+ },+ {+ onData: (data) => {+ if (this.#get().isBriefsInit && isEqual(this.#get().briefs, data)) return;++ this.#set({ briefs: data, isBriefsInit: true }, false, n('useFetchBriefs/onData'));+ },+ },+ );+ };+}++export type BriefListAction = Pick<BriefListActionImpl, keyof BriefListActionImpl>;diff --git a/src/store/brief/slices/list/index.ts b/src/store/brief/slices/list/index.tsnew file mode 100644index 00000000000..6bdd1f4b2ef--- /dev/null+++ b/src/store/brief/slices/list/index.ts@@ -0,0 +1,3 @@+export * from './action';+export * from './initialState';+export * from './selectors';diff --git a/src/store/brief/slices/list/initialState.ts b/src/store/brief/slices/list/initialState.tsnew file mode 100644index 00000000000..be3fd1a8d03--- /dev/null+++ b/src/store/brief/slices/list/initialState.ts@@ -0,0 +1,11 @@+import { type BriefItem } from '@/store/brief/types';++export interface BriefListState {+ briefs: BriefItem[];+ isBriefsInit: boolean;+}++export const initialBriefListState: BriefListState = {+ briefs: [],+ isBriefsInit: false,+};diff --git a/src/store/brief/slices/list/selectors.test.ts b/src/store/brief/slices/list/selectors.test.tsnew file mode 100644index 00000000000..b01f9480327--- /dev/null+++ b/src/store/brief/slices/list/selectors.test.ts@@ -0,0 +1,51 @@+import { describe, expect, it } from 'vitest';++import { type BriefStore } from '@/store/brief/store';++import { initialBriefListState } from './initialState';+import { briefListSelectors } from './selectors';++const createState = (overrides: Partial<BriefStore> = {}) =>+ ({+ ...initialBriefListState,+ ...overrides,+ }) as BriefStore;++describe('briefListSelectors', () => {+ describe('briefs', () => {+ it('should return empty array by default', () => {+ const state = createState();+ expect(briefListSelectors.briefs(state)).toEqual([]);+ });++ it('should return briefs from state', () => {+ const briefs = [{ id: 'brief-1', title: 'Test' }] as any;+ const state = createState({ briefs });+ expect(briefListSelectors.briefs(state)).toBe(briefs);+ });+ });++ describe('hasBriefs', () => {+ it('should return false when empty', () => {+ const state = createState();+ expect(briefListSelectors.hasBriefs(state)).toBe(false);+ });++ it('should return true when has briefs', () => {+ const state = createState({ briefs: [{ id: 'brief-1' }] as any });+ expect(briefListSelectors.hasBriefs(state)).toBe(true);+ });+ });++ describe('isBriefsInit', () => {+ it('should return false by default', () => {+ const state = createState();+ expect(briefListSelectors.isBriefsInit(state)).toBe(false);+ });++ it('should return true when initialized', () => {+ const state = createState({ isBriefsInit: true });+ expect(briefListSelectors.isBriefsInit(state)).toBe(true);+ });+ });+});diff --git a/src/store/brief/slices/list/selectors.ts b/src/store/brief/slices/list/selectors.tsnew file mode 100644index 00000000000..775545965f8--- /dev/null+++ b/src/store/brief/slices/list/selectors.ts@@ -0,0 +1,11 @@+import { type BriefStore } from '@/store/brief/store';++const briefs = (s: BriefStore) => s.briefs;+const hasBriefs = (s: BriefStore) => s.briefs.length > 0;+const isBriefsInit = (s: BriefStore) => s.isBriefsInit;++export const briefListSelectors = {+ briefs,+ hasBriefs,+ isBriefsInit,+};diff --git a/src/store/brief/store.ts b/src/store/brief/store.tsnew file mode 100644index 00000000000..139aa8d848d--- /dev/null+++ b/src/store/brief/store.ts@@ -0,0 +1,39 @@+import { subscribeWithSelector } from 'zustand/middleware';+import { shallow } from 'zustand/shallow';+import { createWithEqualityFn } from 'zustand/traditional';+import { type StateCreator } from 'zustand/vanilla';++import { isDev } from '@/utils/env';++import { createDevtools } from '../middleware/createDevtools';+import { expose } from '../middleware/expose';+import { flattenActions } from '../utils/flattenActions';+import { type BriefStoreState, initialState } from './initialState';+import { type BriefListAction, createBriefListSlice } from './slices/list/action';++// =============== Aggregate createStoreFn ============ //++export interface BriefStore extends BriefListAction, BriefStoreState {}++const createStore: StateCreator<BriefStore, [['zustand/devtools', never]]> = (+ ...parameters: Parameters<StateCreator<BriefStore, [['zustand/devtools', never]]>>+) => ({+ ...initialState,+ ...flattenActions<BriefListAction>([createBriefListSlice(...parameters)]),+});++// =============== Implement useStore ============ //+const devtools = createDevtools('brief');++export const useBriefStore = createWithEqualityFn<BriefStore>()(+ subscribeWithSelector(+ devtools(createStore, {+ name: 'LobeChat_Brief' + (isDev ? '_DEV' : ''),+ }),+ ),+ shallow,+);++expose('brief', useBriefStore);++export const getBriefStoreState = () => useBriefStore.getState();diff --git a/src/store/brief/types.ts b/src/store/brief/types.tsnew file mode 100644index 00000000000..eb1531baa1e--- /dev/null+++ b/src/store/brief/types.ts@@ -0,0 +1,29 @@+import { type BriefAction, type BriefType } from '@lobechat/types';++export interface AgentAvatarInfo {+ avatar: string | null;+ backgroundColor: string | null;+ id: string;+ title: string | null;+}++export interface BriefItem {+ actions: BriefAction[] | null;+ agentId: string | null;+ agents: AgentAvatarInfo[];+ artifacts: unknown;+ createdAt: Date | string;+ cronJobId: string | null;+ id: string;+ priority: string | null;+ readAt: Date | string | null;+ resolvedAction: string | null;+ resolvedAt: Date | string | null;+ resolvedComment: string | null;+ summary: string;+ taskId: string | null;+ title: string;+ topicId: string | null;+ type: BriefType;+ userId: string;+}diff --git a/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts b/src/store/chat/slices/aiChat/actions/conversationLifecycle.tsindex 7d6bd152b45..22e359f710e 100644--- a/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts+++ b/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts@@ -60,6 +60,15 @@ export interface SendMessageWithContextParams extends SendMessageParams {* Contains sessionId, topicId, and threadId*/context: ConversationContext;+ /**+ * Called as soon as the backend reports a newly created topic id, so callers+ * with an isolated topic scope (e.g. Task Manager) can switch their UI to the+ * new topic while the AI response is still streaming.+ *+ * Only invoked when `context.isolatedTopic` is true; otherwise the store's+ * own `switchTopic` handles the transition on the global chat store.+ */+ onTopicCreated?: (topicId: string) => void | Promise<void>;}/**@@ -70,6 +79,8 @@ export interface SendMessageResult {assistantMessageId: string;/** The created thread ID (if a new thread was created) */createdThreadId?: string;+ /** The created topic ID (if a new topic was created in this call) */+ createdTopicId?: string;/** The created user message ID */userMessageId: string;}@@ -111,6 +122,7 @@ export class ConversationLifecycleActionImpl {messages: inputMessages,parentId: inputParentId,pageSelections,+ onTopicCreated,}: SendMessageWithContextParams): Promise<SendMessageResult | undefined> => {let editorData = inputEditorData;const { internal_execAgentRuntime, mainInputEditor } = this.#get();@@ -591,6 +603,7 @@ export class ConversationLifecycleActionImpl {? {topicMessageIds: forceNewTopicFromExisting ? [] : messages.map((m) => m.id),title: message.slice(0, 20) || t('defaultTitle', { ns: 'topic' }),+ trigger: context.topicTrigger,}: undefined,agentId: operationContext.agentId,@@ -611,17 +624,24 @@ export class ConversationLifecycleActionImpl {// refresh the total dataif (data?.topics) {- const pageSize = systemStatusSelectors.topicPageSize(useGlobalStore.getState());- this.#get().internal_updateTopics(operationContext.agentId, {- groupId: operationContext.groupId,- items: data.topics.items,- pageSize,- total: data.topics.total,- });finalTopicId = data.topicId;- // Record the created topicId in metadata (not context)- this.#get().updateOperationMetadata(operationId, { createdTopicId: data.topicId });+ // Skip writing the returned topic list into the main chat's topicDataMap+ // when the caller owns an isolated topic scope (e.g. Task Manager panel).+ // Otherwise the newly created isolated-trigger topic would flash in the+ // main sidebar until the next SWR revalidation filters it out.+ if (!context.isolatedTopic) {+ const pageSize = systemStatusSelectors.topicPageSize(useGlobalStore.getState());+ this.#get().internal_updateTopics(operationContext.agentId, {+ groupId: operationContext.groupId,+ items: data.topics.items,+ pageSize,+ total: data.topics.total,+ });++ // Record the created topicId in metadata (not context)+ this.#get().updateOperationMetadata(operationId, { createdTopicId: data.topicId });+ }} else if (operationContext.topicId) {// Optimistically update topic's updatedAt so sidebar re-groups immediatelythis.#get().internal_dispatchTopic({@@ -651,11 +671,17 @@ export class ConversationLifecycleActionImpl {});if (data.isCreateNewTopic && data.topicId) {- // clearNewKey: true ensures the _new key data is cleared after topic creation- await this.#get().switchTopic(data.topicId, {- clearNewKey: true,- skipRefreshMessage: true,- });+ if (context.isolatedTopic) {+ // Notify the isolated caller immediately so its UI re-subscribes to+ // the new topic key and picks up the streaming AI response.+ await onTopicCreated?.(data.topicId);+ } else {+ // clearNewKey: true ensures the _new key data is cleared after topic creation+ await this.#get().switchTopic(data.topicId, {+ clearNewKey: true,+ skipRefreshMessage: true,+ });+ }}} catch (e) {console.error(e);@@ -856,6 +882,7 @@ export class ConversationLifecycleActionImpl {return {assistantMessageId: data.assistantMessageId,createdThreadId: data.createdThreadId,+ createdTopicId: data.isCreateNewTopic ? data.topicId : undefined,userMessageId: data.userMessageId,};};diff --git a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts b/src/store/chat/slices/aiChat/actions/streamingExecutor.tsindex 65b22ca9e07..7acf053f71c 100644--- a/src/store/chat/slices/aiChat/actions/streamingExecutor.ts+++ b/src/store/chat/slices/aiChat/actions/streamingExecutor.ts@@ -11,6 +11,7 @@ import { PageAgentIdentifier } from '@lobechat/builtin-tool-page-agent';import { manualModeExcludeToolIds } from '@lobechat/builtin-tools';import { isDesktop } from '@lobechat/const';import { generateToolsFromManifest, type ToolsEngine } from '@lobechat/context-engine';+import { buildTaskDetailPrompt, buildTaskListPrompt } from '@lobechat/prompts';import {type ConversationContext,type RuntimeInitialContext,@@ -28,6 +29,7 @@ import { getAgentStoreState } from '@/store/agent';import { agentSelectors } from '@/store/agent/selectors';import { createAgentExecutors } from '@/store/chat/agents/createAgentExecutors';import { type ChatStore, useChatStore } from '@/store/chat/store';+import { getTaskStoreState } from '@/store/task';import { pageAgentRuntime } from '@/store/tool/slices/builtin/executors/lobe-page-agent';import { type StoreSetter } from '@/store/types';import { toolInterventionSelectors } from '@/store/user/selectors';@@ -310,6 +312,37 @@ export class StreamingExecutorActionImpl {}}+ const viewedTask = operation?.context.viewedTask;+ if (viewedTask) {+ try {+ const taskState = getTaskStoreState();+ let contextPrompt: string | undefined;++ if (viewedTask.type === 'list') {+ contextPrompt = buildTaskListPrompt({+ tasks: taskState.tasks,+ total: taskState.tasksTotal || taskState.tasks.length,+ });+ } else {+ const detail = taskState.taskDetailMap[viewedTask.taskId];+ if (detail) contextPrompt = buildTaskDetailPrompt({ task: detail });+ }++ if (contextPrompt) {+ runtimeInitialContext = {+ ...runtimeInitialContext,+ taskManager: { contextPrompt },+ };+ log(+ '[internal_createAgentState] injected taskManager context (route=%s)',+ viewedTask.type,+ );+ }+ } catch (error) {+ log('[internal_createAgentState] Failed to build task manager context: %o', error);+ }+ }+const mergedRuntimeInitialContext =runtimeInitialContext || initialContext?.initialContext? {diff --git a/src/store/chat/slices/aiChat/initialState.ts b/src/store/chat/slices/aiChat/initialState.tsindex f94140e9bae..87d65933adb 100644--- a/src/store/chat/slices/aiChat/initialState.ts+++ b/src/store/chat/slices/aiChat/initialState.ts@@ -16,6 +16,12 @@ export interface ChatAIChatState {* UI can render a distinct "running on device" state.*/pendingClientToolExecutions: Record<string, boolean>;+ /**+ * Tool ids enabled by the current runtime scenario/page (for example the+ * tasks page enabling `lobe-task` while its panel is mounted).+ * Transient state, not persisted — cleared on reload or when pages unmount.+ */+ scenarioEnabledToolIds?: string[];searchWorkflowLoadingIds: string[];threadInputEditor: ChatInputEditor | null;/**@@ -30,6 +36,7 @@ export const initialAiChatState: ChatAIChatState = {inputMessage: '',mainInputEditor: null,pendingClientToolExecutions: {},+ scenarioEnabledToolIds: undefined,searchWorkflowLoadingIds: [],threadInputEditor: null,toolCallingStreamIds: {},diff --git a/src/store/chat/slices/topic/action.ts b/src/store/chat/slices/topic/action.tsindex 2dfe6e4dd0a..76d3887506a 100644--- a/src/store/chat/slices/topic/action.ts+++ b/src/store/chat/slices/topic/action.ts@@ -650,7 +650,11 @@ export class ChatTopicActionImpl {// Key format: [SWR_USE_FETCH_TOPIC, containerKey, { isInbox, pageSize }]const containerKey = topicMapKey({ agentId: activeAgentId, groupId: activeGroupId });await mutate(- (key) => Array.isArray(key) && key[0] === SWR_USE_FETCH_TOPIC && key[1] === containerKey,+ (key) =>+ Array.isArray(key) &&+ key[0] === SWR_USE_FETCH_TOPIC &&+ typeof key[1] === 'string' &&+ key[1] === containerKey,);};diff --git a/src/store/global/initialState.ts b/src/store/global/initialState.tsindex 78e295d0501..5e1cc853b69 100644--- a/src/store/global/initialState.ts+++ b/src/store/global/initialState.ts@@ -194,6 +194,18 @@ export interface SystemStatus {*/sidebarSectionOrder?: string[];systemRoleExpandedMap: Record<string, boolean>;+ /**+ * Whether the inline task create entry on the tasks page is collapsed (hidden).+ * When true, the tasks page shows a "+" button in the header that opens the create modal.+ */+ taskCreateInlineCollapsed?: boolean;+ taskListViewOptions?: {+ groupBy: 'assignee' | 'none' | 'priority' | 'status';+ orderBy: 'assignee' | 'createdAt' | 'priority' | 'status' | 'title' | 'updatedAt';+ orderCompletedByRecency: boolean;+ orderDirection: 'asc' | 'desc';+ subGroupBy: 'assignee' | 'none' | 'priority' | 'status';+ };/*** Whether to display tokens in short format*/@@ -253,6 +265,13 @@ export const INITIAL_STATUS = {agentPageSize: 5,chatInputHeight: 64,recentPageSize: 5,+ taskListViewOptions: {+ groupBy: 'status',+ orderBy: 'updatedAt',+ orderCompletedByRecency: true,+ orderDirection: 'asc',+ subGroupBy: 'none',+ },disabledModelProvidersSortType: 'default',disabledModelsSortType: 'default',dismissedBannerIds: [],diff --git a/src/store/global/selectors/systemStatus.ts b/src/store/global/selectors/systemStatus.tsindex 42720c4512f..d0368604076 100644--- a/src/store/global/selectors/systemStatus.ts+++ b/src/store/global/selectors/systemStatus.ts@@ -17,6 +17,17 @@ const agentPageSize = (s: GlobalState): number => s.status.agentPageSize || 5;const recentPageSize = (s: GlobalState): number => s.status.recentPageSize || 5;const pagePageSize = (s: GlobalState): number => s.status.pagePageSize || 20;+const taskListViewOptions = (s: GlobalState) =>+ s.status.taskListViewOptions || {+ groupBy: 'status',+ orderBy: 'updatedAt',+ orderCompletedByRecency: true,+ orderDirection: 'asc',+ subGroupBy: 'none',+ };++const taskCreateInlineCollapsed = (s: GlobalState): boolean =>+ s.status.taskCreateInlineCollapsed ?? false;export const DEFAULT_HIDDEN_SECTIONS: string[] = ['memory'];@@ -235,6 +246,8 @@ export const systemStatusSelectors = {pagePageSize,portalWidth,recentPageSize,+ taskCreateInlineCollapsed,+ taskListViewOptions,sidebarItems,sessionGroupKeys,showChatHeader,diff --git a/src/store/task/selectors/activitySelectors.test.ts b/src/store/task/selectors/activitySelectors.test.tsindex e35a70b4cdd..677b2e9c5ea 100644--- a/src/store/task/selectors/activitySelectors.test.ts+++ b/src/store/task/selectors/activitySelectors.test.ts@@ -50,12 +50,12 @@ const createState = (overrides: Partial<TaskStoreState> = {}): TaskStoreState =>describe('taskActivitySelectors', () => {describe('activeTaskActivities', () => {- it('should return activities sorted by time (newest first)', () => {+ it('should return activities sorted by time (oldest first)', () => {const result = taskActivitySelectors.activeTaskActivities(createState());- expect(result[0].id).toBe('a4'); // 12:00- expect(result[1].id).toBe('a2'); // 11:00- expect(result[2].id).toBe('a1'); // 10:00- expect(result[3].id).toBe('a3'); // 09:00+ expect(result[0].id).toBe('a3'); // 09:00+ expect(result[1].id).toBe('a1'); // 10:00+ expect(result[2].id).toBe('a2'); // 11:00+ expect(result[3].id).toBe('a4'); // 12:00});it('should return empty array when no active task', () => {diff --git a/src/store/task/selectors/activitySelectors.ts b/src/store/task/selectors/activitySelectors.tsindex 2c6bcc1f9ba..6b0fdce0e94 100644--- a/src/store/task/selectors/activitySelectors.ts+++ b/src/store/task/selectors/activitySelectors.ts@@ -10,7 +10,7 @@ const activeTaskActivities = (s: TaskStoreState): TaskDetailActivity[] => {return [...detail.activities].sort((a, b) => {const timeA = a.time ? new Date(a.time).getTime() : 0;const timeB = b.time ? new Date(b.time).getTime() : 0;- return timeB - timeA;+ return timeA - timeB;});};@@ -28,7 +28,14 @@ const unresolvedBriefCount = (s: TaskStoreState): number =>const hasUnresolvedBriefs = (s: TaskStoreState): boolean => unresolvedBriefCount(s) > 0;+const activeDrawerTopicActivity = (s: TaskStoreState): TaskDetailActivity | undefined => {+ const topicId = s.activeTopicDrawerTopicId;+ if (!topicId) return undefined;+ return activeTaskTopics(s).find((a) => a.id === topicId);+};+export const taskActivitySelectors = {+ activeDrawerTopicActivity,activeTaskActivities,activeTaskBriefs,activeTaskComments,diff --git a/src/store/task/selectors/detailSelectors.ts b/src/store/task/selectors/detailSelectors.tsindex 9b9f50d389b..e906652ef60 100644--- a/src/store/task/selectors/detailSelectors.ts+++ b/src/store/task/selectors/detailSelectors.ts@@ -41,6 +41,9 @@ const activeTaskParent = (s: TaskStoreState) => activeTaskDetail(s)?.parent;const activeTaskPeriodicInterval = (s: TaskStoreState) =>activeTaskDetail(s)?.heartbeat?.interval ?? 0;+// Automation mode: 'heartbeat' | 'schedule' | null (null = no automation)+const activeTaskAutomationMode = (s: TaskStoreState) => activeTaskDetail(s)?.automationMode ?? null;+const activeTaskCheckpoint = (s: TaskStoreState) => activeTaskDetail(s)?.checkpoint;const activeTaskReview = (s: TaskStoreState) => activeTaskDetail(s)?.review;@@ -54,7 +57,7 @@ const activeTaskTopicCount = (s: TaskStoreState) => activeTaskDetail(s)?.topicCoconst canRunActiveTask = (s: TaskStoreState): boolean => {const detail = activeTaskDetail(s);if (!detail) return false;- return ['backlog', 'failed', 'paused'].includes(detail.status) && !!detail.agentId;+ return ['backlog', 'failed', 'paused', 'completed'].includes(detail.status) && !!detail.agentId;};const canPauseActiveTask = (s: TaskStoreState): boolean =>@@ -68,8 +71,11 @@ const canCancelActiveTask = (s: TaskStoreState): boolean => {const taskSaveStatus = (s: TaskStoreState) => s.taskSaveStatus;+const activeTopicDrawerTopicId = (s: TaskStoreState) => s.activeTopicDrawerTopicId;+export const taskDetailSelectors = {activeTaskAgentId,+ activeTaskAutomationMode,activeTaskCheckpoint,activeTaskModel,activeTaskDependencies,@@ -88,6 +94,7 @@ export const taskDetailSelectors = {activeTaskSubtasks,activeTaskTopicCount,activeTaskWorkspace,+ activeTopicDrawerTopicId,canCancelActiveTask,canPauseActiveTask,canRunActiveTask,diff --git a/src/store/task/slices/config/action.test.ts b/src/store/task/slices/config/action.test.tsindex fc73af68e10..0316a977241 100644--- a/src/store/task/slices/config/action.test.ts+++ b/src/store/task/slices/config/action.test.ts@@ -124,7 +124,7 @@ describe('TaskConfigSliceAction', () => {expect(mutate).toHaveBeenCalledWith(['fetchTaskDetail', 'T-1']);});- it('should send 0 when null to disable', async () => {+ it('should send 0 when null to disable interval (automationMode untouched)', async () => {vi.mocked(taskService.update).mockResolvedValue({ success: true } as any);await useTaskStore.getState().updatePeriodicInterval('T-1', null);@@ -133,6 +133,28 @@ describe('TaskConfigSliceAction', () => {});});+ describe('setAutomationMode', () => {+ it('should optimistically update and call update with automationMode', async () => {+ const { mutate } = await import('@/libs/swr');+ vi.mocked(taskService.update).mockResolvedValue({ success: true } as any);++ await useTaskStore.getState().setAutomationMode('T-1', 'heartbeat');++ expect(useTaskStore.getState().taskDetailMap['T-1'].automationMode).toBe('heartbeat');+ expect(taskService.update).toHaveBeenCalledWith('T-1', { automationMode: 'heartbeat' });+ expect(mutate).toHaveBeenCalledWith(['fetchTaskDetail', 'T-1']);+ });++ it('should accept null to disable automation', async () => {+ vi.mocked(taskService.update).mockResolvedValue({ success: true } as any);++ await useTaskStore.getState().setAutomationMode('T-1', null);++ expect(useTaskStore.getState().taskDetailMap['T-1'].automationMode).toBeNull();+ expect(taskService.update).toHaveBeenCalledWith('T-1', { automationMode: null });+ });+ });+describe('resolveBrief', () => {it('should call service and refresh active detail', async () => {const { mutate } = await import('@/libs/swr');diff --git a/src/store/task/slices/config/action.ts b/src/store/task/slices/config/action.tsindex 37c47b2eb8a..1a309ed8465 100644--- a/src/store/task/slices/config/action.ts+++ b/src/store/task/slices/config/action.ts@@ -1,4 +1,4 @@-import type { CheckpointConfig } from '@lobechat/types';+import type { CheckpointConfig, TaskAutomationMode } from '@lobechat/types';import { taskService } from '@/services/task';import type { StoreSetter } from '@/store/types';@@ -12,10 +12,11 @@ export const createTaskConfigSlice = (set: Setter, get: () => TaskStore, _api?:export class TaskConfigSliceActionImpl {readonly #get: () => TaskStore;+ readonly #set: Setter;constructor(set: Setter, get: () => TaskStore, _api?: unknown) {void _api;- void set;+ this.#set = set;this.#get = get;}@@ -85,16 +86,27 @@ export class TaskConfigSliceActionImpl {id: string,modelConfig: { model?: string; provider?: string },): Promise<void> => {+ // Optimistic update — immediately reflect new model/provider in UI+ this.#get().internal_dispatchTaskDetail({+ id,+ type: 'updateTaskDetail',+ value: { config: { ...this.#get().taskDetailMap[id]?.config, ...modelConfig } },+ });+ this.#set({ taskSaveStatus: 'saving' }, false, 'updateTaskModelConfig/saving');+try {await taskService.updateConfig(id, modelConfig);+ this.#set({ taskSaveStatus: 'saved' }, false, 'updateTaskModelConfig/saved');await this.#get().internal_refreshTaskDetail(id);} catch (error) {console.error('[TaskStore] Failed to update task model config:', error);+ this.#set({ taskSaveStatus: 'idle' }, false, 'updateTaskModelConfig/error');+ await this.#get().internal_refreshTaskDetail(id);}};- // Configures the periodic execution interval (heartbeatInterval field, in seconds; null or 0 disables it)- // Backend periodic execution logic will take effect automatically once LOBE-6587 is ready; the frontend UI config can be completed in advance+ // Configure periodic execution interval (heartbeatInterval in seconds).+ // Whether automation runs is decided by automationMode (controlled separately by setAutomationMode).updatePeriodicInterval = async (id: string, interval: number | null): Promise<void> => {try {await taskService.update(id, { heartbeatInterval: interval ?? 0 });@@ -104,6 +116,24 @@ export class TaskConfigSliceActionImpl {}};+ // Switch between automation modes; null = disable automation.+ setAutomationMode = async (id: string, mode: TaskAutomationMode | null): Promise<void> => {+ // Optimistic update so the Segmented reflects the new tab immediately+ this.#get().internal_dispatchTaskDetail({+ id,+ type: 'updateTaskDetail',+ value: { automationMode: mode },+ });++ try {+ await taskService.update(id, { automationMode: mode });+ await this.#get().internal_refreshTaskDetail(id);+ } catch (error) {+ console.error('[TaskStore] Failed to update automation mode:', error);+ await this.#get().internal_refreshTaskDetail(id);+ }+ };+// TODO [LOBE-6587]: Scheduled tasks (cron mode)// updateSchedule(id, { pattern, timezone }) — backend task.update schema does not yet expose schedulePattern/scheduleTimezone}diff --git a/src/store/task/slices/detail/action.test.ts b/src/store/task/slices/detail/action.test.tsindex 7443b08ad0c..948008bcafb 100644--- a/src/store/task/slices/detail/action.test.ts+++ b/src/store/task/slices/detail/action.test.ts@@ -24,6 +24,12 @@ vi.mock('@/libs/swr', () => ({useClientDataSWR: vi.fn(),}));+vi.mock('@/components/AntdStaticMethods', () => ({+ message: { error: vi.fn(), success: vi.fn() },+ modal: { confirm: vi.fn() },+ notification: { error: vi.fn() },+}));+beforeEach(() => {vi.clearAllMocks();useTaskStore.setState({@@ -70,7 +76,7 @@ describe('TaskDetailSliceAction', () => {instruction: 'Do something',name: 'Test',});- expect(result).toBe('T-1');+ expect(result?.identifier).toBe('T-1');});it('should set isCreatingTask during creation', async () => {@@ -83,11 +89,12 @@ describe('TaskDetailSliceAction', () => {expect(useTaskStore.getState().isCreatingTask).toBe(false);});- it('should return null on error', async () => {+ it('should throw on error and reset isCreatingTask', async () => {vi.mocked(taskService.create).mockRejectedValue(new Error('fail'));- const result = await useTaskStore.getState().createTask({ instruction: 'Test' });- expect(result).toBeNull();+ await expect(useTaskStore.getState().createTask({ instruction: 'Test' })).rejects.toThrow(+ 'fail',+ );expect(useTaskStore.getState().isCreatingTask).toBe(false);});});@@ -110,8 +117,9 @@ describe('TaskDetailSliceAction', () => {expect(useTaskStore.getState().taskSaveStatus).toBe('saved');});- it('should refresh on error', async () => {+ it('should propagate error, reset saveStatus, refresh, and toast on failure', async () => {const { mutate } = await import('@/libs/swr');+ const { message } = await import('@/components/AntdStaticMethods');useTaskStore.setState({taskDetailMap: {'T-1': { identifier: 'T-1', instruction: 'Test', status: 'backlog' },@@ -120,15 +128,18 @@ describe('TaskDetailSliceAction', () => {vi.mocked(taskService.update).mockRejectedValue(new Error('fail'));- await useTaskStore.getState().updateTask('T-1', { name: 'New' });+ await expect(useTaskStore.getState().updateTask('T-1', { name: 'New' })).rejects.toThrow(+ 'fail',+ );expect(useTaskStore.getState().taskSaveStatus).toBe('idle');expect(mutate).toHaveBeenCalledWith(['fetchTaskDetail', 'T-1']);+ expect(message.error).toHaveBeenCalled();});});describe('deleteTask', () => {- it('should remove from map and clear activeTaskId', async () => {+ it('should remove from map, clear activeTaskId, and return deleted task data', async () => {useTaskStore.setState({activeTaskId: 'T-1',taskDetailMap: {@@ -136,10 +147,15 @@ describe('TaskDetailSliceAction', () => {},});- vi.mocked(taskService.delete).mockResolvedValue({ success: true } as any);+ vi.mocked(taskService.delete).mockResolvedValue({+ data: { identifier: 'T-1', name: 'Test Task' },+ success: true,+ } as any);- await useTaskStore.getState().deleteTask('T-1');+ const result = await useTaskStore.getState().deleteTask('T-1');+ expect(result?.identifier).toBe('T-1');+ expect(result?.name).toBe('Test Task');expect(useTaskStore.getState().taskDetailMap['T-1']).toBeUndefined();expect(useTaskStore.getState().activeTaskId).toBeUndefined();});@@ -153,12 +169,29 @@ describe('TaskDetailSliceAction', () => {vi.mocked(taskService.delete).mockImplementation(async () => {expect(useTaskStore.getState().isDeletingTask).toBe(true);- return { success: true } as any;+ return { data: { identifier: 'T-1' }, success: true } as any;});await useTaskStore.getState().deleteTask('T-1');expect(useTaskStore.getState().isDeletingTask).toBe(false);});++ it('should rollback optimistic delete and propagate error on failure', async () => {+ const snapshot = {+ identifier: 'T-1',+ instruction: 'Test',+ name: 'Original',+ status: 'backlog',+ };+ useTaskStore.setState({ taskDetailMap: { 'T-1': snapshot as any } });++ vi.mocked(taskService.delete).mockRejectedValue(new Error('server down'));++ await expect(useTaskStore.getState().deleteTask('T-1')).rejects.toThrow('server down');++ expect(useTaskStore.getState().taskDetailMap['T-1']).toEqual(snapshot);+ expect(useTaskStore.getState().isDeletingTask).toBe(false);+ });});describe('addComment', () => {@@ -183,6 +216,26 @@ describe('TaskDetailSliceAction', () => {expect(taskService.addDependency).toHaveBeenCalledWith('T-1', 'T-2', 'blocks');expect(mutate).toHaveBeenCalledWith(['fetchTaskDetail', 'T-1']);});++ it('should propagate error from service', async () => {+ vi.mocked(taskService.addDependency).mockRejectedValue(new Error('cycle detected'));++ await expect(useTaskStore.getState().addDependency('T-1', 'T-2', 'blocks')).rejects.toThrow(+ 'cycle detected',+ );+ });+ });++ describe('removeDependency', () => {+ it('should call service and refresh detail', async () => {+ const { mutate } = await import('@/libs/swr');+ vi.mocked(taskService.removeDependency).mockResolvedValue({ success: true } as any);++ await useTaskStore.getState().removeDependency('T-1', 'T-2');++ expect(taskService.removeDependency).toHaveBeenCalledWith('T-1', 'T-2');+ expect(mutate).toHaveBeenCalledWith(['fetchTaskDetail', 'T-1']);+ });});describe('internal_dispatchTaskDetail', () => {diff --git a/src/store/task/slices/detail/action.ts b/src/store/task/slices/detail/action.tsindex 3e698db7555..3ade78201e1 100644--- a/src/store/task/slices/detail/action.ts+++ b/src/store/task/slices/detail/action.ts@@ -1,6 +1,8 @@import type { TaskDetailData } from '@lobechat/types';import isEqual from 'fast-deep-equal';+import { t } from 'i18next';+import { message } from '@/components/AntdStaticMethods';import { mutate, useClientDataSWR } from '@/libs/swr';import { taskService } from '@/services/task';import type { StoreSetter } from '@/store/types';@@ -9,6 +11,9 @@ import type { TaskStore } from '../../store';import type { TaskDetailDispatch } from './reducer';import { taskDetailReducer } from './reducer';+type CreatedTask = NonNullable<Awaited<ReturnType<typeof taskService.create>>['data']>;+type DeletedTask = NonNullable<Awaited<ReturnType<typeof taskService.delete>>['data']>;+// config / heartbeatInterval / heartbeatTimeout are not exposed here:// - model/provider goes through configSlice.updateTaskModelConfig// - checkpoint goes through configSlice.updateCheckpoint@@ -50,6 +55,18 @@ export class TaskDetailSliceActionImpl {await this.internal_refreshTaskDetail(taskId);};+ deleteComment = async (commentId: string, taskId?: string): Promise<void> => {+ await taskService.deleteComment(commentId);+ const id = taskId ?? this.#get().activeTaskId;+ if (id) await this.internal_refreshTaskDetail(id);+ };++ updateComment = async (commentId: string, content: string, taskId?: string): Promise<void> => {+ await taskService.updateComment(commentId, content);+ const id = taskId ?? this.#get().activeTaskId;+ if (id) await this.internal_refreshTaskDetail(id);+ };+addDependency = async (taskId: string,dependsOnId: string,@@ -59,42 +76,84 @@ export class TaskDetailSliceActionImpl {await this.internal_refreshTaskDetail(taskId);};+ fetchTaskDetail = async (taskId?: string): Promise<TaskDetailData> => {+ const resolvedId = taskId ?? this.#get().activeTaskId;++ if (!resolvedId) {+ throw new Error('No task identifier provided and no current task context.');+ }++ const result = await taskService.getDetail(resolvedId);+ const detail = result.data;++ if (!detail) {+ throw new Error(`Task not found: ${resolvedId}`);+ }++ this.internal_dispatchTaskDetail({+ id: detail.identifier,+ type: 'setTaskDetail',+ value: detail,+ });++ // When looked up by raw DB id (e.g. `task_xxx`), also store under that key+ // so `activeTaskId` → `taskDetailMap[activeTaskId]` resolves correctly.+ if (resolvedId !== detail.identifier) {+ this.internal_dispatchTaskDetail({+ id: resolvedId,+ type: 'setTaskDetail',+ value: detail,+ });+ }++ return detail;+ };+createTask = async (params: {assigneeAgentId?: string;+ createdByAgentId?: string;description?: string;instruction: string;name?: string;parentTaskId?: string;priority?: number;- }): Promise<string | null> => {+ }): Promise<CreatedTask | null> => {this.#set({ isCreatingTask: true }, false, 'createTask/start');try {const result = await taskService.create(params);await this.#get().refreshTaskList();- return result.data?.identifier ?? null;- } catch (error) {- console.error('[TaskStore] Failed to create task:', error);- return null;+ if (params.parentTaskId) {+ await this.internal_refreshTaskDetail(params.parentTaskId);+ }+ return result.data ?? null;} finally {this.#set({ isCreatingTask: false }, false, 'createTask/end');}};- deleteTask = async (id: string): Promise<void> => {+ deleteTask = async (identifier: string): Promise<DeletedTask | null> => {+ const snapshot = this.#get().taskDetailMap[identifier];this.#set({ isDeletingTask: true }, false, 'deleteTask/start');try {- this.internal_dispatchTaskDetail({ id, type: 'deleteTaskDetail' });+ this.internal_dispatchTaskDetail({ id: identifier, type: 'deleteTaskDetail' });- await taskService.delete(id);+ const result = await taskService.delete(identifier);- if (this.#get().activeTaskId === id) {+ if (this.#get().activeTaskId === identifier) {this.#set({ activeTaskId: undefined }, false, 'deleteTask/clearActive');}await this.#get().refreshTaskList();+ return result.data ?? null;} catch (error) {- console.error('[TaskStore] Failed to delete task:', error);- await this.internal_refreshTaskDetail(id);+ if (snapshot) {+ this.internal_dispatchTaskDetail({+ id: identifier,+ type: 'setTaskDetail',+ value: snapshot,+ });+ }+ throw error;} finally {this.#set({ isDeletingTask: false }, false, 'deleteTask/end');}@@ -117,7 +176,21 @@ export class TaskDetailSliceActionImpl {setActiveTaskId = (taskId?: string): void => {if (this.#get().activeTaskId === taskId) return;- this.#set({ activeTaskId: taskId }, false, 'setActiveTaskId');+ this.#set(+ { activeTaskId: taskId, activeTopicDrawerTopicId: undefined },+ false,+ 'setActiveTaskId',+ );+ };++ openTopicDrawer = (topicId: string): void => {+ if (this.#get().activeTopicDrawerTopicId === topicId) return;+ this.#set({ activeTopicDrawerTopicId: topicId }, false, 'openTopicDrawer');+ };++ closeTopicDrawer = (): void => {+ if (!this.#get().activeTopicDrawerTopicId) return;+ this.#set({ activeTopicDrawerTopicId: undefined }, false, 'closeTopicDrawer');};unpinDocument = async (taskId: string, documentId: string): Promise<void> => {@@ -126,18 +199,31 @@ export class TaskDetailSliceActionImpl {};updateTask = async (id: string, data: TaskUpdatePayload): Promise<void> => {- // Optimistic update — all fields in TaskUpdatePayload directly map to TaskDetailData- this.internal_dispatchTaskDetail({ id, type: 'updateTaskDetail', value: data });+ const { assigneeAgentId, ...rest } = data;+ const optimistic: Partial<TaskDetailData> = {+ ...rest,+ ...(assigneeAgentId !== undefined ? { agentId: assigneeAgentId } : {}),+ };+ this.internal_dispatchTaskDetail({ id, type: 'updateTaskDetail', value: optimistic });this.#set({ taskSaveStatus: 'saving' }, false, 'updateTask/saving');try {await taskService.update(id, data);this.#set({ taskSaveStatus: 'saved' }, false, 'updateTask/saved');+ if (assigneeAgentId !== undefined) {+ await this.#get().refreshTaskList();+ }} catch (error) {- console.error('[TaskStore] Failed to update task:', error);this.#set({ taskSaveStatus: 'idle' }, false, 'updateTask/error');// Revert by refreshing from serverawait this.internal_refreshTaskDetail(id);+ message.error(+ t('taskDetail.updateFailed', {+ defaultValue: 'Failed to update task',+ ns: 'chat',+ }),+ );+ throw error;}};@@ -145,19 +231,7 @@ export class TaskDetailSliceActionImpl {return useClientDataSWR(taskId ? [FETCH_TASK_DETAIL_KEY, taskId] : null,async ([, id]: [string, string]) => {- const result = await taskService.getDetail(id);- return result.data;- },- {- onSuccess: (data: TaskDetailData) => {- if (data && taskId) {- this.internal_dispatchTaskDetail({- id: taskId,- type: 'setTaskDetail',- value: data,- });- }- },+ return this.fetchTaskDetail(id);},);};diff --git a/src/store/task/slices/detail/initialState.ts b/src/store/task/slices/detail/initialState.tsindex 2a7b8d57023..34d9009963c 100644--- a/src/store/task/slices/detail/initialState.ts+++ b/src/store/task/slices/detail/initialState.ts@@ -2,6 +2,7 @@ import type { TaskDetailData } from '@lobechat/types';export interface TaskDetailSliceState {activeTaskId?: string;+ activeTopicDrawerTopicId?: string;isCreatingTask: boolean;isDeletingTask: boolean;taskDetailMap: Record<string, TaskDetailData>;diff --git a/src/store/task/slices/detail/reducer.ts b/src/store/task/slices/detail/reducer.tsindex b2ae7bb6bcb..467390c2e2e 100644--- a/src/store/task/slices/detail/reducer.ts+++ b/src/store/task/slices/detail/reducer.ts@@ -1,4 +1,4 @@-import type { TaskDetailData } from '@lobechat/types';+import type { TaskDetailData, TaskDetailSubtask } from '@lobechat/types';import { produce } from 'immer';export type TaskDetailDispatch =@@ -6,6 +6,26 @@ export type TaskDetailDispatch =| { id: string; type: 'setTaskDetail'; value: TaskDetailData }| { id: string; type: 'updateTaskDetail'; value: Partial<TaskDetailData> };+// Walk the subtask tree (subtasks live nested under a parent task's detail)+// and patch the entry whose identifier matches. Returns true if patched.+const patchSubtaskInTree = (+ subtasks: TaskDetailSubtask[],+ id: string,+ value: Partial<TaskDetailData>,+): boolean => {+ for (const subtask of subtasks) {+ if (subtask.identifier === id) {+ if (value.name !== undefined) subtask.name = value.name;+ if (value.priority !== undefined) subtask.priority = value.priority;+ return true;+ }+ if (subtask.children && patchSubtaskInTree(subtask.children, id, value)) {+ return true;+ }+ }+ return false;+};+export const taskDetailReducer = (state: Record<string, TaskDetailData>,payload: TaskDetailDispatch,@@ -22,6 +42,10 @@ export const taskDetailReducer = (if (draft[payload.id]) {Object.assign(draft[payload.id], payload.value);}+ for (const parentId in draft) {+ const subtasks = draft[parentId]?.subtasks;+ if (subtasks && patchSubtaskInTree(subtasks, payload.id, payload.value)) break;+ }});}diff --git a/src/store/task/slices/lifecycle/action.test.ts b/src/store/task/slices/lifecycle/action.test.tsindex 9ffa4a36e43..1fffb6036c0 100644--- a/src/store/task/slices/lifecycle/action.test.ts+++ b/src/store/task/slices/lifecycle/action.test.ts@@ -62,13 +62,13 @@ describe('TaskLifecycleSliceAction', () => {});});- describe('pauseTask', () => {+ describe('updateTaskStatus', () => {it('should call updateStatus with paused', async () => {vi.mocked(taskService.updateStatus).mockResolvedValue({ success: true } as any);- await useTaskStore.getState().pauseTask('T-1');+ await useTaskStore.getState().updateTaskStatus('T-1', 'paused');- expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'paused');+ expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'paused', undefined);});it('should optimistically set status', async () => {@@ -77,37 +77,31 @@ describe('TaskLifecycleSliceAction', () => {return { success: true } as any;});- await useTaskStore.getState().pauseTask('T-1');+ await useTaskStore.getState().updateTaskStatus('T-1', 'paused');});- });- describe('cancelTask', () => {it('should call updateStatus with canceled', async () => {vi.mocked(taskService.updateStatus).mockResolvedValue({ success: true } as any);- await useTaskStore.getState().cancelTask('T-1');+ await useTaskStore.getState().updateTaskStatus('T-1', 'canceled');- expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'canceled');+ expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'canceled', undefined);});- });- describe('resumeTask', () => {it('should call updateStatus with backlog', async () => {vi.mocked(taskService.updateStatus).mockResolvedValue({ success: true } as any);- await useTaskStore.getState().resumeTask('T-1');+ await useTaskStore.getState().updateTaskStatus('T-1', 'backlog');- expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'backlog');+ expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'backlog', undefined);});- });- describe('completeTask', () => {it('should call updateStatus with completed', async () => {vi.mocked(taskService.updateStatus).mockResolvedValue({ success: true } as any);- await useTaskStore.getState().completeTask('T-1');+ await useTaskStore.getState().updateTaskStatus('T-1', 'completed');- expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'completed');+ expect(taskService.updateStatus).toHaveBeenCalledWith('T-1', 'completed', undefined);});});diff --git a/src/store/task/slices/lifecycle/action.ts b/src/store/task/slices/lifecycle/action.tsindex cc453e3b49c..298f9e12a0a 100644--- a/src/store/task/slices/lifecycle/action.ts+++ b/src/store/task/slices/lifecycle/action.ts@@ -1,4 +1,4 @@-import type { TaskDetailData } from '@lobechat/types';+import type { TaskDetailData, TaskStatus } from '@lobechat/types';import { taskService } from '@/services/task';import type { StoreSetter } from '@/store/types';@@ -12,41 +12,26 @@ export const createTaskLifecycleSlice = (set: Setter, get: () => TaskStore, _apiexport class TaskLifecycleSliceActionImpl {readonly #get: () => TaskStore;+ readonly #set: Setter;constructor(set: Setter, get: () => TaskStore, _api?: unknown) {void _api;- void set;+ this.#set = set;this.#get = get;}- cancelTask = async (id: string): Promise<void> => {- await this.#transitionStatus(id, 'canceled');- };-cancelTopic = async (topicId: string): Promise<void> => {await taskService.cancelTopic(topicId);const { activeTaskId, internal_refreshTaskDetail } = this.#get();if (activeTaskId) await internal_refreshTaskDetail(activeTaskId);};- completeTask = async (id: string): Promise<void> => {- await this.#transitionStatus(id, 'completed');- };-deleteTopic = async (topicId: string): Promise<void> => {await taskService.deleteTopic(topicId);const { activeTaskId, internal_refreshTaskDetail } = this.#get();if (activeTaskId) await internal_refreshTaskDetail(activeTaskId);};- pauseTask = async (id: string): Promise<void> => {- await this.#transitionStatus(id, 'paused');- };-- resumeTask = async (id: string): Promise<void> => {- await this.#transitionStatus(id, 'backlog');- };-runTask = async (id: string,params?: { continueTopicId?: string; prompt?: string },@@ -67,26 +52,53 @@ export class TaskLifecycleSliceActionImpl {}};+ updateTaskStatus = async (+ id: string | undefined,+ status: TaskStatus,+ options?: { error?: string },+ ): Promise<string> => {+ const { error } = options ?? {};+ const resolvedId = id ?? this.#get().activeTaskId;++ if (!resolvedId) {+ throw new Error('No task identifier provided and no current task context.');+ }++ const extraUpdate: Partial<TaskDetailData> = { status };+ if (status === 'failed' && error) {+ extraUpdate.error = error;+ }++ await this.#transitionStatus(resolvedId, status, extraUpdate, error);++ return resolvedId;+ };+// ── Private helper ──#transitionStatus = async (id: string,- status: Parameters<typeof taskService.updateStatus>[1],+ status: TaskStatus,extraUpdate?: Partial<TaskDetailData>,+ error?: string,): Promise<void> => {this.#get().internal_dispatchTaskDetail({id,type: 'updateTaskDetail',value: { status, ...extraUpdate },});+ this.#set({ taskSaveStatus: 'saving' }, false, 'transitionStatus/saving');try {- await taskService.updateStatus(id, status);+ await taskService.updateStatus(id, status, error);+ this.#set({ taskSaveStatus: 'saved' }, false, 'transitionStatus/saved');await this.#get().internal_refreshTaskDetail(id);await this.#get().refreshTaskList();} catch (error) {console.error(`[TaskStore] Failed to transition task to ${status}:`, error);+ this.#set({ taskSaveStatus: 'idle' }, false, 'transitionStatus/error');await this.#get().internal_refreshTaskDetail(id);+ throw error;}};}diff --git a/src/store/task/slices/list/action.ts b/src/store/task/slices/list/action.tsindex c2cd90319a0..0c9c94301c8 100644--- a/src/store/task/slices/list/action.ts+++ b/src/store/task/slices/list/action.ts@@ -8,6 +8,13 @@ import type { TaskGroupItem, TaskListItem, TaskViewMode } from './initialState';const FETCH_TASK_LIST_KEY = 'fetchTaskList';const FETCH_TASK_GROUP_LIST_KEY = 'fetchTaskGroupList';+/**+ * Sentinel used as `listAgentId` when the task list is showing tasks across all agents+ * (e.g. the `/tasks` page). Keeps the SWR cache key distinct from per-agent lists so+ * the two don't collide and `refreshTaskList()` can invalidate the correct entry.+ */+export const ALL_AGENTS_LIST_KEY = '__all__';+// Default kanban groups: 4 columnsconst DEFAULT_KANBAN_GROUPS = [{ key: 'backlog', statuses: ['backlog'] },@@ -36,9 +43,15 @@ export class TaskListSliceActionImpl {await mutate([FETCH_TASK_GROUP_LIST_KEY, listAgentId]);};+ fetchTaskList = async (params: Parameters<typeof taskService.list>[0]) =>+ taskService.list(params);+refreshTaskList = async (): Promise<void> => {const { listAgentId } = this.#get();- await mutate([FETCH_TASK_LIST_KEY, listAgentId]);+ await Promise.all([+ mutate([FETCH_TASK_LIST_KEY, listAgentId]),+ mutate([FETCH_TASK_GROUP_LIST_KEY, listAgentId]),+ ]);};setListAgentId = (agentId?: string): void => {@@ -76,16 +89,23 @@ export class TaskListSliceActionImpl {);};- useFetchTaskList = (agentId?: string, enabled: boolean = true) => {- // Sync listAgentId so refreshTaskList() uses the correct SWR key- if (agentId && this.#get().listAgentId !== agentId) {- this.#set({ listAgentId: agentId }, false, 'useFetchTaskList/syncAgentId');+ useFetchTaskList = (+ options: {+ agentId?: string;+ allAgents?: boolean;+ enabled?: boolean;+ } = {},+ ) => {+ const { agentId, allAgents = false, enabled = true } = options;+ const effectiveKey = allAgents ? ALL_AGENTS_LIST_KEY : agentId;+ if (effectiveKey && this.#get().listAgentId !== effectiveKey) {+ this.#set({ listAgentId: effectiveKey }, false, 'useFetchTaskList/syncAgentId');}return useClientDataSWR(- enabled && agentId ? [FETCH_TASK_LIST_KEY, agentId] : null,+ enabled && effectiveKey ? [FETCH_TASK_LIST_KEY, effectiveKey] : null,async ([, id]: [string, string]) => {- return taskService.list({ assigneeAgentId: id });+ return this.fetchTaskList(allAgents ? {} : { assigneeAgentId: id });},{fallbackData: { data: [], success: true, total: 0 },diff --git a/src/store/taskChat/action.ts b/src/store/taskChat/action.tsnew file mode 100644index 00000000000..5a088c7f639--- /dev/null+++ b/src/store/taskChat/action.ts@@ -0,0 +1,83 @@+import isEqual from 'fast-deep-equal';+import { type SWRResponse } from 'swr';++import { mutate, useClientDataSWRWithSync } from '@/libs/swr';+import { topicService } from '@/services/topic';+import { useChatStore } from '@/store/chat';+import { type StoreSetter } from '@/store/types';+import { type ChatTopic } from '@/types/topic';+import { setNamespace } from '@/utils/storeDebug';++import { type TaskChatStore } from './store';++const n = setNamespace('taskChat');++const SWR_USE_FETCH_TASK_TOPICS = 'SWR_USE_FETCH_TASK_TOPICS';++type Setter = StoreSetter<TaskChatStore>;++export const createTaskChatSlice = (set: Setter, get: () => TaskChatStore, _api?: unknown) =>+ new TaskChatActionImpl(set, get, _api);++export class TaskChatActionImpl {+ readonly #get: () => TaskChatStore;+ readonly #set: Setter;++ constructor(set: Setter, get: () => TaskChatStore, _api?: unknown) {+ void _api;+ this.#set = set;+ this.#get = get;+ }++ switchTopic = (id: string | null): void => {+ if (this.#get().activeTopicId === id) return;+ this.#set({ activeTopicId: id }, false, n('switchTopic'));+ };++ /**+ * Called by `ConversationHooks.onTopicCreated` after the backend creates+ * a new topic from this panel's sendMessage. Writes the new id into the+ * isolated store and refreshes the local topic list.+ */+ onTopicCreated = async (topicId: string): Promise<void> => {+ this.#set({ activeTopicId: topicId }, false, n('onTopicCreated'));+ await this.refreshTopics();+ };++ refreshTopics = async (): Promise<void> => {+ const { activeAgentId } = useChatStore.getState();+ if (!activeAgentId) return;+ await mutate(+ (key) =>+ Array.isArray(key) && key[0] === SWR_USE_FETCH_TASK_TOPICS && key[1] === activeAgentId,+ );+ };++ useFetchTopics = (+ agentId: string | undefined,+ includeTriggers: string[],+ ): SWRResponse<ChatTopic[]> => {+ return useClientDataSWRWithSync<ChatTopic[]>(+ agentId ? [SWR_USE_FETCH_TASK_TOPICS, agentId, includeTriggers.join(',')] : null,+ async () => {+ if (!agentId) return [];+ const result = await topicService.getTopics({+ agentId,+ current: 0,+ includeTriggers,+ pageSize: 100,+ });+ return result.items;+ },+ {+ onData: (topics) => {+ if (!topics) return;+ if (isEqual(topics, this.#get().topics)) return;+ this.#set({ topics }, false, n('useFetchTopics(onData)'));+ },+ },+ );+ };+}++export type TaskChatAction = Pick<TaskChatActionImpl, keyof TaskChatActionImpl>;diff --git a/src/store/taskChat/index.ts b/src/store/taskChat/index.tsnew file mode 100644index 00000000000..a08172352c1--- /dev/null+++ b/src/store/taskChat/index.ts@@ -0,0 +1 @@+export { getTaskChatStoreState, type TaskChatStore, useTaskChatStore } from './store';diff --git a/src/store/taskChat/initialState.ts b/src/store/taskChat/initialState.tsnew file mode 100644index 00000000000..e32efaea96f--- /dev/null+++ b/src/store/taskChat/initialState.ts@@ -0,0 +1,25 @@+import { type ChatTopic } from '@/types/topic';++/**+ * State for the Task Manager right-side panel.+ *+ * Isolated from the main `useChatStore` so that switching/creating a Task+ * Manager topic does not mutate the main chat's `activeTopicId`.+ *+ * Messages are NOT duplicated here — they live in `useChatStore.dbMessagesMap`,+ * keyed by `messageMapKey(context)`. As long as the Task Manager uses its own+ * `activeTopicId` in the context it builds, the messages are naturally stored+ * under a different key.+ */+export interface TaskChatState {+ activeTopicId: string | null;+ /**+ * `undefined` means topics have not been fetched yet (loading state).+ */+ topics: ChatTopic[] | undefined;+}++export const initialState: TaskChatState = {+ activeTopicId: null,+ topics: undefined,+};diff --git a/src/store/taskChat/store.ts b/src/store/taskChat/store.tsnew file mode 100644index 00000000000..7ac2451d572--- /dev/null+++ b/src/store/taskChat/store.ts@@ -0,0 +1,39 @@+import { shallow } from 'zustand/shallow';+import { createWithEqualityFn } from 'zustand/traditional';+import { type StateCreator } from 'zustand/vanilla';++import { createDevtools } from '../middleware/createDevtools';+import { expose } from '../middleware/expose';+import { flattenActions } from '../utils/flattenActions';+import { type ResetableStore, ResetableStoreAction } from '../utils/resetableStore';+import { createTaskChatSlice, type TaskChatAction } from './action';+import { initialState, type TaskChatState } from './initialState';++export type TaskChatStore = TaskChatState & TaskChatAction & ResetableStore;++type TaskChatStoreAction = TaskChatAction & ResetableStore;++class TaskChatResetAction extends ResetableStoreAction<TaskChatStore> {+ protected readonly resetActionName = 'resetTaskChatStore';+}++const createStore: StateCreator<TaskChatStore, [['zustand/devtools', never]]> = (+ ...parameters: Parameters<StateCreator<TaskChatStore, [['zustand/devtools', never]]>>+) => ({+ ...initialState,+ ...flattenActions<TaskChatStoreAction>([+ createTaskChatSlice(...parameters),+ new TaskChatResetAction(...parameters),+ ]),+});++const devtools = createDevtools('taskChat');++export const useTaskChatStore = createWithEqualityFn<TaskChatStore>()(+ devtools(createStore),+ shallow,+);++expose('taskChat', useTaskChatStore);++export const getTaskChatStoreState = () => useTaskChatStore.getState();diff --git a/src/store/tool/slices/builtin/executors/index.ts b/src/store/tool/slices/builtin/executors/index.tsindex f6ea6cadd18..c1fefd309c9 100644--- a/src/store/tool/slices/builtin/executors/index.ts+++ b/src/store/tool/slices/builtin/executors/index.ts@@ -16,6 +16,7 @@ import { gtdExecutor } from '@lobechat/builtin-tool-gtd/executor';import { knowledgeBaseExecutor } from '@lobechat/builtin-tool-knowledge-base/executor';import { localSystemExecutor } from '@lobechat/builtin-tool-local-system/executor';import { memoryExecutor } from '@lobechat/builtin-tool-memory/executor';+import { taskExecutor } from '@lobechat/builtin-tool-task/executor';import type { BuiltinToolContext, BuiltinToolResult, IBuiltinToolExecutor } from '../types';import { activatorExecutor } from './lobe-activator';@@ -150,6 +151,7 @@ registerExecutors([pageAgentExecutor,skillStoreExecutor,skillsExecutor,+ taskExecutor,activatorExecutor,topicReferenceExecutor,userInteractionExecutor,diff --git a/src/store/tool/slices/builtin/selectors.test.ts b/src/store/tool/slices/builtin/selectors.test.tsindex 503c3c18612..b3d78ac799a 100644--- a/src/store/tool/slices/builtin/selectors.test.ts+++ b/src/store/tool/slices/builtin/selectors.test.ts@@ -76,4 +76,69 @@ describe('builtinToolSelectors', () => {expect(result).toEqual([]);});});++ describe('metaListIncludingHidden', () => {+ it('should keep task tools hidden from manual tool selection', () => {+ const state = {+ ...initialState,+ builtinTools: [+ {+ hidden: true,+ identifier: 'lobe-task',+ manifest: {+ api: [],+ identifier: 'lobe-task',+ meta: { title: 'Task Tools' },+ systemRole: '',+ },+ type: 'builtin',+ },+ {+ hidden: true,+ identifier: 'tool-1',+ manifest: { api: [], identifier: 'tool-1', meta: { title: 'Tool 1' }, systemRole: '' },+ type: 'builtin',+ },+ ],+ uninstalledBuiltinTools: [],+ } as ToolStoreState;++ const result = builtinToolSelectors.metaListIncludingHidden(state);++ expect(result.map((item) => item.identifier)).toContain('tool-1');+ expect(result.map((item) => item.identifier)).not.toContain('lobe-task');+ });+ });++ describe('installedAllMetaList', () => {+ it('should keep task tools out of agent profile configuration', () => {+ const state = {+ ...initialState,+ builtinTools: [+ {+ hidden: true,+ identifier: 'lobe-task',+ manifest: {+ api: [],+ identifier: 'lobe-task',+ meta: { title: 'Task Tools' },+ systemRole: '',+ },+ type: 'builtin',+ },+ {+ hidden: true,+ identifier: 'tool-1',+ manifest: { api: [], identifier: 'tool-1', meta: { title: 'Tool 1' }, systemRole: '' },+ type: 'builtin',+ },+ ],+ uninstalledBuiltinTools: [],+ } as ToolStoreState;++ const result = builtinToolSelectors.installedAllMetaList(state);++ expect(result.map((item) => item.identifier)).toEqual(['tool-1']);+ });+ });});diff --git a/src/store/tool/slices/builtin/selectors.ts b/src/store/tool/slices/builtin/selectors.tsindex 2fd1ec9e9a6..908756c08ca 100644--- a/src/store/tool/slices/builtin/selectors.ts+++ b/src/store/tool/slices/builtin/selectors.ts@@ -70,6 +70,7 @@ const getKlavisMetasWithAvailability = (s: ToolStoreState): LobeToolMetaWithAvai// Set form for O(1) lookup inside the filter loop.const RUNTIME_MANAGED_TOOL_IDS = new Set(runtimeManagedToolIds);+const USER_HIDDEN_BUILTIN_TOOL_IDS = new Set(['lobe-task']);/*** Shared list builder for the chat-input Tools popover.@@ -102,6 +103,8 @@ const buildVisibleMetaList = (// (their enabled state is forced by AgentToolsEngine rules; user toggles would// be a no-op and create UI/state mismatch).if (includeHidden && RUNTIME_MANAGED_TOOL_IDS.has(item.identifier)) return false;+ // Task tools are enabled by scenario/page context and should not be user-toggleable.+ if (includeHidden && USER_HIDDEN_BUILTIN_TOOL_IDS.has(item.identifier)) return false;// Filter platform-specific tools (e.g., LocalSystem desktop-only)if (!isBuiltinToolAvailableInCurrentEnv(item.identifier)) return false;@@ -189,6 +192,7 @@ const installedAllMetaList = (s: ToolStoreState): LobeToolMetaWithAvailability[]const builtinMetas = s.builtinTools.filter((item) => {if (EXCLUDED_TOOLS.has(item.identifier)) return false;+ if (USER_HIDDEN_BUILTIN_TOOL_IDS.has(item.identifier)) return false;if (uninstalledBuiltinTools.includes(item.identifier)) return false;return true;@@ -229,3 +233,5 @@ export const builtinToolSelectors = {metaListIncludingHidden,uninstalledBuiltinTools,};++export { USER_HIDDEN_BUILTIN_TOOL_IDS };