🤯 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
✨ feat(page-editor): anchor document comments to a text selection (#19602)
Rdmclin29c377eecf05c
diff --git a/apps/server/src/routers/lambda/__tests__/integration/documentComment.integration.test.ts b/apps/server/src/routers/lambda/__tests__/integration/documentComment.integration.test.tsindex 651fc256aba..b69dec7a767 100644--- a/apps/server/src/routers/lambda/__tests__/integration/documentComment.integration.test.ts+++ b/apps/server/src/routers/lambda/__tests__/integration/documentComment.integration.test.ts@@ -152,6 +152,63 @@ describe('documentCommentRouter integration', () => {expect((await admin.delete({ id: created.comment.id })).mode).toBe('hard');});+ it('round-trips a selection anchor on a root and refuses an inconsistent or misplaced one', async () => {+ const member = documentCommentRouter.createCaller(context(memberId, workspaceId));+ const selectionAnchor = {+ end: 9,+ prefix: 'the ',+ quote: 'quick',+ start: 4,+ suffix: ' brown fox',+ };++ const created = await member.create({+ clientId: 'anchored',+ content: 'about this phrase',+ documentId,+ selectionAnchor,+ });+ expect(created.comment.selectionAnchor).toEqual(selectionAnchor);+ expect((await member.listThreads({ documentId })).items[0].root.selectionAnchor).toEqual(+ selectionAnchor,+ );+ // The document-wide anchor list is what paints body highlights; readers+ // get it under the same view check as the thread list.+ const viewer = documentCommentRouter.createCaller(context(viewerId, workspaceId));+ expect(await viewer.listAnchors({ documentId })).toEqual({+ items: [{ id: created.comment.id, selectionAnchor }],+ });++ // Offsets that disagree with the quote mean the client measured against+ // different text, so the hint would mis-rank every re-location candidate.+ await expect(+ member.create({+ clientId: 'bad-offsets',+ content: 'no',+ documentId,+ selectionAnchor: { ...selectionAnchor, end: 40 },+ }),+ ).rejects.toMatchObject({ code: 'BAD_REQUEST' });++ // A reply belongs to its thread's anchor and may never carry another.+ await expect(+ member.create({+ clientId: 'anchored-reply',+ content: 'no',+ documentId,+ parentCommentId: created.comment.id,+ selectionAnchor,+ }),+ ).rejects.toMatchObject({ code: 'BAD_REQUEST' });++ const plain = await member.create({+ clientId: 'unanchored',+ content: 'about the whole page',+ documentId,+ });+ expect(plain.comment.selectionAnchor).toBeNull();+ });+it('serves one comment by id with a live reply count for roots', async () => {const member = documentCommentRouter.createCaller(context(memberId, workspaceId));const viewer = documentCommentRouter.createCaller(context(viewerId, workspaceId));diff --git a/apps/server/src/routers/lambda/documentComment.ts b/apps/server/src/routers/lambda/documentComment.tsindex 0d6e395e191..5109052da02 100644--- a/apps/server/src/routers/lambda/documentComment.ts+++ b/apps/server/src/routers/lambda/documentComment.ts@@ -1,4 +1,5 @@import type {+ DocumentCommentAnchorList,DocumentCommentDetail,DocumentCommentItem as DocumentCommentDTO,} from '@lobechat/types';@@ -38,6 +39,24 @@ const editorDataSchema = z.refine((value) => Buffer.byteLength(JSON.stringify(value), 'utf8') <= MAX_EDITOR_DATA_BYTES, {message: 'editorData must not exceed 128 KiB',});+/** Generous enough for a paragraph-sized selection, short enough to stay an excerpt. */+const ANCHOR_QUOTE_MAX = 2000;+const ANCHOR_CONTEXT_MAX = 100;+const selectionAnchorSchema = z+ .object({+ end: z.number().int().min(0),+ prefix: z.string().max(ANCHOR_CONTEXT_MAX).optional(),+ quote: z.string().min(1).max(ANCHOR_QUOTE_MAX),+ start: z.number().int().min(0),+ suffix: z.string().max(ANCHOR_CONTEXT_MAX).optional(),+ })+ // The offsets are only a hint for re-location — the quote is what actually+ // finds the run — but an inconsistent pair means the client measured against+ // something other than the text it sent, so reject it rather than store a+ // hint that will mis-rank every candidate.+ .refine(({ end, quote, start }) => end === start + quote.length, {+ message: 'selectionAnchor end must equal start + quote.length',+ });const pageSchema = z.object({cursor: z.string().min(1).optional(),limit: z.number().int().min(1).max(50).optional(),@@ -375,8 +394,19 @@ export const documentCommentRouter = router({documentId: idSchema,editorData: editorDataSchema.optional(),parentCommentId: idSchema.optional(),+ selectionAnchor: selectionAnchorSchema.optional(),})- .superRefine(validateCommentBody),+ .superRefine(validateCommentBody)+ .superRefine((value, ctx) => {+ // A reply belongs to its thread's anchor; accepting a second one+ // would split a thread across two runs of the body.+ if (!value.parentCommentId || !value.selectionAnchor) return;+ ctx.addIssue({+ code: 'custom',+ message: 'A reply cannot carry its own selectionAnchor',+ path: ['selectionAnchor'],+ });+ }),).mutation(async ({ ctx, input }) => {const { grantedPermissions } = await assertPermission(ctx, 'DOCUMENT_COMMENT_CREATE');@@ -463,6 +493,16 @@ export const documentCommentRouter = router({return { ...enriched[0], replyCount } satisfies DocumentCommentDetail;}),+ listAnchors: documentCommentProcedure+ .input(z.object({ documentId: idSchema }))+ .query(async ({ ctx, input }) => {+ const { grantedPermissions } = await assertPermission(ctx, 'DOCUMENT_COMMENT_READ');+ await assertDocumentView(ctx, input.documentId, grantedPermissions);+ return {+ items: await ctx.documentCommentModel.listAnchors(input.documentId),+ } satisfies DocumentCommentAnchorList;+ }),+listReplies: documentCommentProcedure.input(pageSchema.extend({ rootCommentId: idSchema })).query(async ({ ctx, input }) => {diff --git a/locales/ar/auth.json b/locales/ar/auth.jsonindex 49290ba53ce..e4a174b732f 100644--- a/locales/ar/auth.json+++ b/locales/ar/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "حذف","oauthApp.deleteConfirm.title": "حذف هذا التطبيق؟","oauthApp.detail.back": "العودة إلى القائمة",+ "oauthApp.detail.basicInfo": "معلومات أساسية",+ "oauthApp.detail.cancel": "إلغاء","oauthApp.detail.clientId": "معرف العميل",+ "oauthApp.detail.clientSecret": "السر الخاص بالعميل","oauthApp.detail.createdAt": "تاريخ الإنشاء","oauthApp.detail.dangerZone": "منطقة الخطر","oauthApp.detail.delete": "حذف التطبيق",+ "oauthApp.detail.edit": "تعديل","oauthApp.detail.enabled": "ممكّن","oauthApp.detail.lastUsedAt": "آخر استخدام","oauthApp.detail.neverUsed": "لم يتم استخدامه مطلقًا",+ "oauthApp.detail.noDescription": "لا يوجد وصف","oauthApp.detail.save": "حفظ التغييرات","oauthApp.detail.saveSuccess": "تم حفظ التغييرات","oauthApp.detail.title": "تفاصيل التطبيق",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "الشعار","oauthApp.form.name.label": "الاسم","oauthApp.form.name.placeholder": "يرجى إدخال اسم التطبيق",+ "oauthApp.form.redirectUris.extra": "يجب أن يكون كل عنوان URI عنوان URL دقيقًا باستخدام https (يُسمح باستخدام http فقط على localhost) ويتم مطابقته بدقة.",+ "oauthApp.form.redirectUris.label": "عناوين URI لإعادة التوجيه",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "إنشاء","oauthApp.form.title": "إنشاء تطبيق OAuth",+ "oauthApp.form.type.deviceDesc": "لواجهات الأوامر والأجهزة التي لا تحتوي على متصفح. يقوم المستخدمون بالمصادقة باستخدام رمز يظهر في الطرفية.",+ "oauthApp.form.type.immutable": "لا يمكن تغيير النوع بعد إنشاء التطبيق.",+ "oauthApp.form.type.label": "نوع التطبيق",+ "oauthApp.form.type.webDesc": "للتطبيقات التي تعمل على الخادم. يتم إعادة توجيه المستخدمين إلى تطبيقك، الذي يقوم بالمصادقة باستخدام السر الخاص بالعميل.",+ "oauthApp.form.type.webNext": "ستضيف عناوين URI لإعادة التوجيه في صفحة التطبيق بعد إنشائه.","oauthApp.item.disabledTag": "معطل","oauthApp.item.lastUsed": "آخر استخدام {{time}}","oauthApp.list.actions.create": "إنشاء تطبيق","oauthApp.list.actions.delete": "حذف","oauthApp.list.empty": "لا توجد تطبيقات OAuth حتى الآن. قم بإنشاء واحد للبدء.","oauthApp.list.neverUsed": "لم يتم استخدامه مطلقًا",+ "oauthApp.redirectUris.add": "إضافة عنوان URI لإعادة التوجيه",+ "oauthApp.redirectUris.configure": "تكوين",+ "oauthApp.redirectUris.empty": "لا توجد عناوين URI لإعادة التوجيه حتى الآن. لا يمكن استخدام هذا التطبيق لتسجيل الدخول حتى تضيف واحدًا.",+ "oauthApp.redirectUris.remove": "إزالة",+ "oauthApp.redirectUris.title": "عناوين URI لإعادة التوجيه",+ "oauthApp.secret.copy": "نسخ السر",+ "oauthApp.secret.hidden": "مخفي بعد الإنشاء",+ "oauthApp.secret.onceWarning": "هذه هي المرة الوحيدة التي يتم فيها عرض السر الخاص بالعميل. احفظه في مكان آمن قبل الإغلاق.",+ "oauthApp.secret.revealTitle": "السر الخاص بالعميل الخاص بك",+ "oauthApp.secret.rotate": "تدوير",+ "oauthApp.secret.rotateConfirm.content": "يتوقف السر الحالي عن العمل فورًا. أي نشر لا يزال يستخدمه سيفشل في تسجيل دخول المستخدمين حتى تقوم بتحديثه.",+ "oauthApp.secret.rotateConfirm.ok": "تدوير السر",+ "oauthApp.secret.rotateConfirm.title": "تدوير السر الخاص بالعميل هذا؟",+ "oauthApp.secret.usage": "أرسله إلى نقطة النهاية الخاصة بالرمز كـ `client_secret` في جسم الطلب.","oauthApp.stats.activeUsers": "المستخدمون النشطون","oauthApp.stats.calls": "إجمالي المكالمات","oauthApp.stats.credits": "الاستخدامات المستهلكة",@@ -268,8 +295,18 @@"oauthApp.stats.title": "إحصائيات الاستخدام","oauthApp.stats.tokens": "الرموز","oauthApp.type.badge": "أصلي · تدفق الجهاز",+ "oauthApp.type.device": "واجهة أوامر / جهاز","oauthApp.type.deviceFlow": "تدفق الجهاز",+ "oauthApp.type.web": "تطبيق ويب",+ "oauthApp.type.webBadge": "ويب · رمز التفويض","oauthApp.validation.nameRequired": "الاسم مطلوب",+ "oauthApp.validation.redirectUri.credentials": "لا يمكن أن يحتوي عنوان URI لإعادة التوجيه على اسم مستخدم أو كلمة مرور",+ "oauthApp.validation.redirectUri.fragment": "لا يمكن أن يحتوي عنوان URI لإعادة التوجيه على جزء (#)",+ "oauthApp.validation.redirectUri.insecure": "يجب أن يستخدم عنوان URI لإعادة التوجيه https، باستثناء localhost",+ "oauthApp.validation.redirectUri.malformed": "يرجى إدخال عنوان URL كامل ومطلق",+ "oauthApp.validation.redirectUri.wildcard": "لا يُسمح باستخدام الرموز العامة؛ يتم مطابقة عناوين URI لإعادة التوجيه بدقة",+ "oauthApp.validation.redirectUriRequired": "مطلوب عنوان URI واحد على الأقل لإعادة التوجيه",+ "oauthApp.validation.redirectUriTooMany": "يُسمح بحد أقصى {{count}} من عناوين URI لإعادة التوجيه","profile.account": "الحساب","profile.authorizations.actions.revoke": "إلغاء","profile.authorizations.revoke.description": "بعد الإلغاء، لن يتمكن الأداة من الوصول إلى بياناتك. ستحتاج إلى إعادة التفويض لاستخدامها مرة أخرى.",diff --git a/locales/ar/chat.json b/locales/ar/chat.jsonindex b71031ebdec..3ca05a9f071 100644--- a/locales/ar/chat.json+++ b/locales/ar/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} ملفات","agentProfile.knowledgeBases_one": "{{count}} قاعدة معرفة","agentProfile.knowledgeBases_other": "{{count}} قواعد معرفة",+ "agentProfile.runtime": "يعمل على {{name}}","agentProfile.skills_one": "{{count}} مهارة","agentProfile.skills_other": "{{count}} مهارات","agentSignal.receipts.agentSignalLabel": "إشارة الوكيل",diff --git a/locales/ar/error.json b/locales/ar/error.jsonindex e0bf90ba8d8..af519317bdd 100644--- a/locales/ar/error.json+++ b/locales/ar/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "انقر للنسخ","unknownError.desc": "حدث خطأ غير متوقع. يمكنك إعادة المحاولة أو الإبلاغ عنه.","unknownError.retry": "إعادة المحاولة",+ "unknownError.sharedDesc": "يرجى الإبلاغ عن هذه المشكلة على",+ "unknownError.sharedTitle": "غير قادر على إنشاء هذه الإجابة","unknownError.title": "عذرًا، الطلب أخذ قسطًا من الراحة","unknownError.traceIdLabel": "معرّف التتبع:","unlock.addProxyUrl": "إضافة عنوان وكيل OpenAI (اختياري)",diff --git a/locales/ar/file.json b/locales/ar/file.jsonindex 5d3740f1993..7796c0bdc6d 100644--- a/locales/ar/file.json+++ b/locales/ar/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "إضافة أيقونة","pageEditor.autoSaveMessage": "يتم حفظ صفحتك تلقائيًا. لا حاجة للحفظ يدويًا.","pageEditor.chooseIcon": "اختر أيقونة",+ "pageEditor.comments.anchor.add": "تعليق",+ "pageEditor.comments.anchor.label": "النص المقتبس:",+ "pageEditor.comments.anchor.missing": "تمت إزالة الأصل",+ "pageEditor.comments.anchor.remove": "إزالة الاقتباس","pageEditor.comments.attachments.add": "إضافة","pageEditor.comments.attachments.chooseLibrary": "اختر من المكتبة","pageEditor.comments.author.deactivated": "مستخدم معطل",diff --git a/locales/ar/labs.json b/locales/ar/labs.jsonindex 81d31e14071..6315b33a12c 100644--- a/locales/ar/labs.json+++ b/locales/ar/labs.json@@ -2,8 +2,6 @@"description": "هذه الميزات تجريبية. قد نقوم بإزالتها، وقد تحتوي على أخطاء. يسعدنا تلقي ملاحظاتك أثناء استخدامها.","features.agentGraphConfig.desc": "عرض تكوين وقت تشغيل الرسم البياني في إعدادات متقدمة لملف تعريف الوكيل.","features.agentGraphConfig.title": "تكوين وقت تشغيل الرسم البياني للوكيل",- "features.agentProviderBinding.desc": "دع الوكلاء المحليين المدعومين يستخدمون موفر API مُعد ونموذج بدلاً من اشتراكهم. متاح في البداية لـ Claude Code و Codex على تنفيذ سطح المكتب المحلي.",- "features.agentProviderBinding.title": "ربط موفر الوكيل","features.agentSelfIteration.desc": "السماح للمساعد بالتفكير الذاتي، وبناء الوعي الذاتي، والاستمرار في التطوير عبر المحاولات والتفاعلات المتواصلة.","features.agentSelfIteration.title": "التكرار الذاتي للوكيل","features.artifactDeployment.desc": "نشر العناصر إلى عنوان URL مستضاف وإدارة الإصدارات من الشريط الجانبي للمحادثة",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "عرض علامات التبويب المنقسمة","features.evalCapture.desc": "يضيف إجراء رسالة يلتقط دورة المحادثة - سياقها السابق، الإدخال والإجابة التي أنتجتها - كحالة اختبار تقييم.","features.evalCapture.title": "حفظ دورة كمثال تقييم",+ "features.gatewayMux.desc": "قم بتوجيه كل تشغيل للوكيل في هذه العلامة التبويب عبر بوابة WebSocket مشتركة واحدة بدلاً من فتح مقبس لكل تشغيل. يتم التعامل مع إعادة الاتصال وإعادة تشغيل الأحداث لكل تشغيل على الاتصال المشترك.",+ "features.gatewayMux.title": "بوابة الاتصال الواحد (تجريبي)","features.groupChat.desc": "تمكين تنسيق الدردشة الجماعية متعددة الوكلاء.","features.groupChat.title": "دردشة جماعية (متعددة الوكلاء)","features.heteroSessionImport.desc": "إضافة خيار \"استيراد جلسات الوكيل المحلي\" إلى قائمة مواضيع القائمة: قم بمسح نصوص Claude Code / Codex CLI المحلية واستيرادها كمواضيع، مع مزامنة تدريجية عند إعادة الاستيراد.",diff --git a/locales/ar/modelRuntime.json b/locales/ar/modelRuntime.jsonindex 03a96cfaf10..b950e7b1302 100644--- a/locales/ar/modelRuntime.json+++ b/locales/ar/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "المزود مشغول مؤقتًا أو غير متوفر. يرجى إعادة المحاولة قريبًا.","QuotaLimitReached": "عذرًا، تم الوصول إلى الحد الأقصى لاستخدام الرموز أو عدد الطلبات لهذه المفتاح. يرجى زيادة حصة المفتاح أو إعادة المحاولة لاحقًا.","RateLimitExceeded": "عذرًا، تم الوصول إلى الحد الأقصى لاستخدام الرموز أو عدد الطلبات لهذه المفتاح. يرجى إعادة المحاولة لاحقًا أو زيادة حصة المفتاح.",+ "RequestBodyTooLarge": "هذا الطلب كبير جدًا بالنسبة لمزود النموذج. قم بتقليص المحادثة أو تقليل المحتوى المرفق، ثم حاول مرة أخرى.","StateStorePersistError": "تسبب مشكلة مؤقتة في تخزين حالة المحادثة في تعطيل هذه العملية. يرجى إعادة المحاولة؛ إذا استمرت المشكلة، يرجى الاتصال بالدعم.","StateStoreReadError": "تعذر استئناف هذه العملية لأن حالة الجلسة غير متوفرة. يرجى إعادة فتح المحادثة للمتابعة؛ وإذا استمرت المشكلة، يرجى الاتصال بالدعم.","StreamChunkError": "حدث خطأ أثناء تحليل جزء الرسالة من الطلب المتدفق. يرجى التحقق مما إذا كانت واجهة API الحالية تتوافق مع المواصفات القياسية، أو الاتصال بمزود API للحصول على المساعدة.",diff --git a/locales/ar/oauth.json b/locales/ar/oauth.jsonindex 1caa5680fab..ee52ba39f7b 100644--- a/locales/ar/oauth.json+++ b/locales/ar/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "العودة إلى الصفحة الرئيسية",+ "authorizeError.code": "رمز الخطأ",+ "authorizeError.reason.access_denied": "تم رفض التفويض.",+ "authorizeError.reason.invalid_client": "لا يمكن العثور على هذا التطبيق، أو تم تعطيله.",+ "authorizeError.reason.invalid_redirect_uri": "طلب التطبيق إرجاعك إلى عنوان لم يسجله، لذلك تم إيقاف الطلب لحماية حسابك. إذا كنت تطور هذا التطبيق، أضف عنوان إعادة التوجيه هذا في إعدادات تطبيق OAuth الخاص به.",+ "authorizeError.reason.invalid_request": "طلب التفويض غير صحيح أو يفتقد إلى المعلمات المطلوبة.",+ "authorizeError.reason.invalid_scope": "طلب التطبيق أذونات غير مسموح له بطلبها.",+ "authorizeError.reason.server_error": "حدث خطأ من جانبنا. يرجى المحاولة مرة أخرى لاحقًا.",+ "authorizeError.reason.unauthorized_client": "هذا التطبيق غير مسموح له باستخدام طريقة تسجيل الدخول هذه.",+ "authorizeError.reason.unknown": "تعذر إكمال طلب التفويض.",+ "authorizeError.title": "لا يمكن متابعة التفويض","consent.buttons.accept": "السماح","consent.buttons.deny": "رفض","consent.description": "يطلب التطبيق {{clientName}} إذن الوصول إلى حسابك",diff --git a/locales/ar/verify.json b/locales/ar/verify.jsonindex cd8c59f38bf..6dab06fc6b6 100644--- a/locales/ar/verify.json+++ b/locales/ar/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "حدث خطأ أثناء تحميل تقاريرك.","workspace.loadErrorTitle": "تعذر تحميل التقارير","workspace.loadMoreError": "تعذر تحميل المزيد من التقارير",+ "workspace.pin": "تثبيت قائمة التقارير","workspace.renameEmpty": "لا يمكن أن يكون عنوان التقرير فارغًا","workspace.renameError": "فشل إعادة تسمية التقرير","workspace.renameSuccess": "تمت إعادة تسمية التقرير",diff --git a/locales/bg-BG/auth.json b/locales/bg-BG/auth.jsonindex dd2c1801354..070cb2b9f72 100644--- a/locales/bg-BG/auth.json+++ b/locales/bg-BG/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Изтрий","oauthApp.deleteConfirm.title": "Да изтрием това приложение?","oauthApp.detail.back": "Обратно към списъка",+ "oauthApp.detail.basicInfo": "Основна информация",+ "oauthApp.detail.cancel": "Отказ","oauthApp.detail.clientId": "Идентификатор на клиента",+ "oauthApp.detail.clientSecret": "Клиентски секрет","oauthApp.detail.createdAt": "Създадено","oauthApp.detail.dangerZone": "Опасна зона","oauthApp.detail.delete": "Изтрий приложението",+ "oauthApp.detail.edit": "Редактиране","oauthApp.detail.enabled": "Активирано","oauthApp.detail.lastUsedAt": "Последно използвано","oauthApp.detail.neverUsed": "Никога не е използвано",+ "oauthApp.detail.noDescription": "Няма описание","oauthApp.detail.save": "Запази промените","oauthApp.detail.saveSuccess": "Промените са запазени","oauthApp.detail.title": "Детайли за приложението",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Лого","oauthApp.form.name.label": "Име","oauthApp.form.name.placeholder": "Моля, въведете име на приложението",+ "oauthApp.form.redirectUris.extra": "Всеки URI трябва да бъде точен https URL (http е позволен само на localhost) и се съпоставя точно.",+ "oauthApp.form.redirectUris.label": "Пренасочващи URIs",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Създай","oauthApp.form.title": "Създаване на OAuth приложение",+ "oauthApp.form.type.deviceDesc": "За CLI и устройства без браузър. Потребителите се удостоверяват с код, показан в терминала.",+ "oauthApp.form.type.immutable": "Типът не може да бъде променен след създаването на приложението.",+ "oauthApp.form.type.label": "Тип на приложението",+ "oauthApp.form.type.webDesc": "За приложения от страна на сървъра. Потребителите се пренасочват обратно към вашето приложение, което се удостоверява с клиентски секрет.",+ "oauthApp.form.type.webNext": "Ще добавите пренасочващи URIs на страницата на приложението след създаването му.","oauthApp.item.disabledTag": "Деактивирано","oauthApp.item.lastUsed": "Последно използвано {{time}}","oauthApp.list.actions.create": "Създай приложение","oauthApp.list.actions.delete": "Изтрий","oauthApp.list.empty": "Все още няма OAuth приложения. Създайте едно, за да започнете.","oauthApp.list.neverUsed": "Никога не е използвано",+ "oauthApp.redirectUris.add": "Добавяне на пренасочващ URI",+ "oauthApp.redirectUris.configure": "Конфигуриране",+ "oauthApp.redirectUris.empty": "Все още няма пренасочващи URIs. Това приложение не може да се използва за вход, докато не добавите такъв.",+ "oauthApp.redirectUris.remove": "Премахване",+ "oauthApp.redirectUris.title": "Пренасочващи URIs",+ "oauthApp.secret.copy": "Копиране на секрета",+ "oauthApp.secret.hidden": "Скрит след създаването",+ "oauthApp.secret.onceWarning": "Това е единственият път, когато клиентският секрет се показва. Съхранете го на сигурно място, преди да затворите.",+ "oauthApp.secret.revealTitle": "Вашият клиентски секрет",+ "oauthApp.secret.rotate": "Ротация",+ "oauthApp.secret.rotateConfirm.content": "Текущият секрет спира да работи незабавно. Всяко внедряване, което все още го използва, няма да може да удостоверява потребители, докато не го актуализирате.",+ "oauthApp.secret.rotateConfirm.ok": "Ротиране на секрета",+ "oauthApp.secret.rotateConfirm.title": "Да ротира ли този клиентски секрет?",+ "oauthApp.secret.usage": "Изпратете го до endpoint-а за токени като `client_secret` в тялото на заявката.","oauthApp.stats.activeUsers": "Активни потребители","oauthApp.stats.calls": "Общо обаждания","oauthApp.stats.credits": "Използвани кредити",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Статистика за използване","oauthApp.stats.tokens": "Токени","oauthApp.type.badge": "Нативно · Устройство Flow",+ "oauthApp.type.device": "CLI / Устройство","oauthApp.type.deviceFlow": "Устройство Flow",+ "oauthApp.type.web": "Уеб приложение",+ "oauthApp.type.webBadge": "Уеб · Код за удостоверяване","oauthApp.validation.nameRequired": "Името е задължително",+ "oauthApp.validation.redirectUri.credentials": "Пренасочващ URI не може да съдържа потребителско име или парола",+ "oauthApp.validation.redirectUri.fragment": "Пренасочващ URI не може да съдържа фрагмент (#)",+ "oauthApp.validation.redirectUri.insecure": "Пренасочващ URI трябва да използва https, освен на localhost",+ "oauthApp.validation.redirectUri.malformed": "Моля, въведете пълен абсолютен URL",+ "oauthApp.validation.redirectUri.wildcard": "Не са позволени wildcard-и; пренасочващите URIs се съпоставят точно",+ "oauthApp.validation.redirectUriRequired": "Изисква се поне един пренасочващ URI",+ "oauthApp.validation.redirectUriTooMany": "Позволени са най-много {{count}} пренасочващи URIs","profile.account": "Акаунт","profile.authorizations.actions.revoke": "Отмени","profile.authorizations.revoke.description": "След отмяна инструментът вече няма да има достъп до вашите данни. За повторна употреба е необходима нова авторизация.",diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.jsonindex 103a585e418..400e5d43bc6 100644--- a/locales/bg-BG/chat.json+++ b/locales/bg-BG/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} файла","agentProfile.knowledgeBases_one": "{{count}} база знания","agentProfile.knowledgeBases_other": "{{count}} бази знания",+ "agentProfile.runtime": "Работи на {{name}}","agentProfile.skills_one": "{{count}} умение","agentProfile.skills_other": "{{count}} умения","agentSignal.receipts.agentSignalLabel": "Сигнал на агент",diff --git a/locales/bg-BG/error.json b/locales/bg-BG/error.jsonindex 400dde866d3..10e09030ecf 100644--- a/locales/bg-BG/error.json+++ b/locales/bg-BG/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Щракнете, за да копирате","unknownError.desc": "Възникна неочаквана грешка. Можете да опитате отново или да докладвате за проблема.","unknownError.retry": "Опитай отново",+ "unknownError.sharedDesc": "Моля, докладвайте за този проблем на",+ "unknownError.sharedTitle": "Не може да се генерира този отговор","unknownError.title": "Опа, заявката си почива","unknownError.traceIdLabel": "Идентификатор на следа:","unlock.addProxyUrl": "Добавете OpenAI прокси URL (по избор)",diff --git a/locales/bg-BG/file.json b/locales/bg-BG/file.jsonindex 54719a72e0d..3553b04c7ed 100644--- a/locales/bg-BG/file.json+++ b/locales/bg-BG/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Добави икона","pageEditor.autoSaveMessage": "Страницата се запазва автоматично. Не е нужно ръчно запазване.","pageEditor.chooseIcon": "Избери икона",+ "pageEditor.comments.anchor.add": "Коментар",+ "pageEditor.comments.anchor.label": "Цитиран текст:",+ "pageEditor.comments.anchor.missing": "Оригиналът е премахнат",+ "pageEditor.comments.anchor.remove": "Премахване на цитата","pageEditor.comments.attachments.add": "Добави","pageEditor.comments.attachments.chooseLibrary": "Избери от библиотеката","pageEditor.comments.author.deactivated": "Деактивиран потребител",diff --git a/locales/bg-BG/labs.json b/locales/bg-BG/labs.jsonindex 2bcefadc9ed..b466dedf184 100644--- a/locales/bg-BG/labs.json+++ b/locales/bg-BG/labs.json@@ -2,8 +2,6 @@"description": "Тези функции са експериментални. Възможно е да ги премахнем и те може да имат грешки. Ще се радваме на вашата обратна връзка, докато ги използвате.","features.agentGraphConfig.desc": "Показване на конфигурацията на графика за изпълнение в разширените настройки на профила на агент.","features.agentGraphConfig.title": "Конфигурация на графика за изпълнение на агент",- "features.agentProviderBinding.desc": "Позволете на поддържаните локални агенти да използват конфигуриран API доставчик и модел вместо техния абонамент. Първоначално достъпно за Claude Code и Codex при локално изпълнение на десктоп.",- "features.agentProviderBinding.title": "Свързване с доставчик на агенти","features.agentSelfIteration.desc": "Позволява на асистента да разсъждава, да изгражда самосъзнание и да извършва непрекъснати подобрения чрез последователни опити и взаимодействия.","features.agentSelfIteration.title": "Само-итерация на агента","features.artifactDeployment.desc": "Публикувайте артефакти на хостван URL адрес и управлявайте изданията от страничната лента на разговора",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Разделен изглед на раздели","features.evalCapture.desc": "Добавя действие за съобщение, което улавя обръщане на разговор — неговия предишен контекст, вход и отговора, който е произвел — като тестов случай за оценка.","features.evalCapture.title": "Запазване на обръщане като случай за оценка",+ "features.gatewayMux.desc": "Насочвайте всяко изпълнение на агент в този раздел през един споделен gateway WebSocket вместо да отваряте сокет за всяко изпълнение. Повторното свързване и възпроизвеждането на събития се обработват за всяко изпълнение на споделената връзка.",+ "features.gatewayMux.title": "Гейтуей с единична връзка (експериментално)","features.groupChat.desc": "Активиране на координация в групов чат с множество агенти.","features.groupChat.title": "Групов чат (многоагентен)","features.heteroSessionImport.desc": "Добавете запис „Импортиране на локални сесии на агент“ в менюто на списъка с теми: сканирайте локални транскрипции на Claude Code / Codex CLI и ги импортирайте като теми, с инкрементална синхронизация при повторно импортиране.",diff --git a/locales/bg-BG/modelRuntime.json b/locales/bg-BG/modelRuntime.jsonindex 34281643a24..c32086c15a7 100644--- a/locales/bg-BG/modelRuntime.json+++ b/locales/bg-BG/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Доставчикът временно е претоварен или недостъпен. Моля, опитайте отново след малко.","QuotaLimitReached": "Съжаляваме, използването на токени или броят на заявките достигна лимита на квотата за този ключ. Моля, увеличете квотата на ключа или опитайте отново по-късно.","RateLimitExceeded": "Съжаляваме, използването на токени или броят на заявките достигна лимита на скоростта за този ключ. Моля, опитайте отново по-късно или увеличете квотата на ключа.",+ "RequestBodyTooLarge": "Тази заявка е твърде голяма за доставчика на модела. Намалете разговора или намалете прикаченото съдържание и опитайте отново.","StateStorePersistError": "Временен проблем с хранилището на състоянието на разговора прекъсна тази операция. Моля, опитайте отново; ако проблемът продължи, свържете се с поддръжката.","StateStoreReadError": "Тази операция не може да бъде възобновена, защото състоянието на сесията не е налично. Моля, отворете разговора отново, за да продължите; ако проблемът продължава, свържете се с поддръжката.","StreamChunkError": "Грешка при анализиране на част от съобщението в заявката за стрийминг. Моля, проверете дали текущият API интерфейс отговаря на стандартните спецификации или се свържете с вашия доставчик на API за помощ.",diff --git a/locales/bg-BG/oauth.json b/locales/bg-BG/oauth.jsonindex b89a4a1a6a4..a1b8c62830a 100644--- a/locales/bg-BG/oauth.json+++ b/locales/bg-BG/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Обратно към началната страница",+ "authorizeError.code": "Код на грешка",+ "authorizeError.reason.access_denied": "Разрешението беше отказано.",+ "authorizeError.reason.invalid_client": "Това приложение не може да бъде намерено или е деактивирано.",+ "authorizeError.reason.invalid_redirect_uri": "Приложението поиска да ви върне на адрес, който не е регистрирало, затова заявката беше спряна, за да защити вашия акаунт. Ако разработвате това приложение, добавете този URI за пренасочване в настройките на OAuth приложението.",+ "authorizeError.reason.invalid_request": "Заявката за разрешение е неправилно форматирана или липсват задължителни параметри.",+ "authorizeError.reason.invalid_scope": "Приложението поиска разрешения, които не му е позволено да изисква.",+ "authorizeError.reason.server_error": "Нещо се обърка от наша страна. Моля, опитайте отново по-късно.",+ "authorizeError.reason.unauthorized_client": "Това приложение няма право да използва този метод за вход.",+ "authorizeError.reason.unknown": "Заявката за разрешение не можа да бъде завършена.",+ "authorizeError.title": "Разрешението не може да продължи","consent.buttons.accept": "Разрешавам","consent.buttons.deny": "Отказвам","consent.description": "Приложението {{clientName}} иска разрешение за достъп до вашия акаунт",diff --git a/locales/bg-BG/verify.json b/locales/bg-BG/verify.jsonindex 38284e62e7c..03e74cdd779 100644--- a/locales/bg-BG/verify.json+++ b/locales/bg-BG/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Възникна проблем при зареждането на вашите доклади.","workspace.loadErrorTitle": "Неуспешно зареждане на доклади","workspace.loadMoreError": "Неуспешно зареждане на още доклади",+ "workspace.pin": "Закачи списъка с доклади","workspace.renameEmpty": "Заглавието на доклада не може да бъде празно","workspace.renameError": "Неуспешно преименуване на доклада","workspace.renameSuccess": "Докладът е преименуван",diff --git a/locales/de-DE/auth.json b/locales/de-DE/auth.jsonindex 6ca36e7495f..e45cc76f2ba 100644--- a/locales/de-DE/auth.json+++ b/locales/de-DE/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Löschen","oauthApp.deleteConfirm.title": "Diese App löschen?","oauthApp.detail.back": "Zurück zur Liste",+ "oauthApp.detail.basicInfo": "Grundlegende Informationen",+ "oauthApp.detail.cancel": "Abbrechen","oauthApp.detail.clientId": "Client-ID",+ "oauthApp.detail.clientSecret": "Client-Geheimnis","oauthApp.detail.createdAt": "Erstellt","oauthApp.detail.dangerZone": "Gefahrenzone","oauthApp.detail.delete": "App löschen",+ "oauthApp.detail.edit": "Bearbeiten","oauthApp.detail.enabled": "Aktiviert","oauthApp.detail.lastUsedAt": "Zuletzt verwendet","oauthApp.detail.neverUsed": "Nie verwendet",+ "oauthApp.detail.noDescription": "Keine Beschreibung","oauthApp.detail.save": "Änderungen speichern","oauthApp.detail.saveSuccess": "Änderungen gespeichert","oauthApp.detail.title": "App-Details",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Name","oauthApp.form.name.placeholder": "Bitte geben Sie den App-Namen ein",+ "oauthApp.form.redirectUris.extra": "Jede URI muss eine genaue https-URL sein (http ist nur auf localhost erlaubt) und wird exakt abgeglichen.",+ "oauthApp.form.redirectUris.label": "Redirect-URIs",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Erstellen","oauthApp.form.title": "OAuth-App erstellen",+ "oauthApp.form.type.deviceDesc": "Für CLIs und Geräte ohne Browser. Benutzer autorisieren mit einem Code, der im Terminal angezeigt wird.",+ "oauthApp.form.type.immutable": "Der Typ kann nach der Erstellung der App nicht mehr geändert werden.",+ "oauthApp.form.type.label": "Anwendungstyp",+ "oauthApp.form.type.webDesc": "Für serverseitige Apps. Benutzer werden zurück zu Ihrer App geleitet, die sich mit einem Client-Geheimnis authentifiziert.",+ "oauthApp.form.type.webNext": "Sie fügen Redirect-URIs auf der App-Seite hinzu, nachdem sie erstellt wurde.","oauthApp.item.disabledTag": "Deaktiviert","oauthApp.item.lastUsed": "Zuletzt verwendet {{time}}","oauthApp.list.actions.create": "App erstellen","oauthApp.list.actions.delete": "Löschen","oauthApp.list.empty": "Noch keine OAuth-Apps. Erstellen Sie eine, um loszulegen.","oauthApp.list.neverUsed": "Nie verwendet",+ "oauthApp.redirectUris.add": "Redirect-URI hinzufügen",+ "oauthApp.redirectUris.configure": "Konfigurieren",+ "oauthApp.redirectUris.empty": "Noch keine Redirect-URIs. Diese App kann nicht verwendet werden, um sich anzumelden, bis Sie eine hinzufügen.",+ "oauthApp.redirectUris.remove": "Entfernen",+ "oauthApp.redirectUris.title": "Redirect-URIs",+ "oauthApp.secret.copy": "Geheimnis kopieren",+ "oauthApp.secret.hidden": "Nach der Erstellung verborgen",+ "oauthApp.secret.onceWarning": "Dies ist das einzige Mal, dass das Client-Geheimnis angezeigt wird. Speichern Sie es an einem sicheren Ort, bevor Sie schließen.",+ "oauthApp.secret.revealTitle": "Ihr Client-Geheimnis",+ "oauthApp.secret.rotate": "Rotieren",+ "oauthApp.secret.rotateConfirm.content": "Das aktuelle Geheimnis funktioniert sofort nicht mehr. Jede Bereitstellung, die es noch verwendet, wird fehlschlagen, bis Sie es aktualisieren.",+ "oauthApp.secret.rotateConfirm.ok": "Geheimnis rotieren",+ "oauthApp.secret.rotateConfirm.title": "Dieses Client-Geheimnis rotieren?",+ "oauthApp.secret.usage": "Senden Sie es an den Token-Endpunkt als `client_secret` im Anfragekörper.","oauthApp.stats.activeUsers": "Aktive Benutzer","oauthApp.stats.calls": "Gesamtaufrufe","oauthApp.stats.credits": "Verwendete Credits",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Nutzungsstatistiken","oauthApp.stats.tokens": "Tokens","oauthApp.type.badge": "Native · Gerätefluss",+ "oauthApp.type.device": "CLI / Gerät","oauthApp.type.deviceFlow": "Gerätefluss",+ "oauthApp.type.web": "Web-App",+ "oauthApp.type.webBadge": "Web · Autorisierungscode","oauthApp.validation.nameRequired": "Name ist erforderlich",+ "oauthApp.validation.redirectUri.credentials": "Eine Redirect-URI darf keinen Benutzernamen oder Passwort einbetten",+ "oauthApp.validation.redirectUri.fragment": "Eine Redirect-URI darf kein Fragment (#) enthalten",+ "oauthApp.validation.redirectUri.insecure": "Eine Redirect-URI muss https verwenden, außer auf localhost",+ "oauthApp.validation.redirectUri.malformed": "Bitte geben Sie eine vollständige absolute URL ein",+ "oauthApp.validation.redirectUri.wildcard": "Platzhalter sind nicht erlaubt; Redirect-URIs werden exakt abgeglichen",+ "oauthApp.validation.redirectUriRequired": "Mindestens eine Redirect-URI ist erforderlich",+ "oauthApp.validation.redirectUriTooMany": "Es sind höchstens {{count}} Redirect-URIs erlaubt","profile.account": "Konto","profile.authorizations.actions.revoke": "Widerrufen","profile.authorizations.revoke.description": "Nach dem Widerruf hat das Tool keinen Zugriff mehr auf Ihre Daten. Eine erneute Autorisierung ist erforderlich.",diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.jsonindex 55163c80dfa..f4d25fb6bd8 100644--- a/locales/de-DE/chat.json+++ b/locales/de-DE/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} Dateien","agentProfile.knowledgeBases_one": "{{count}} Wissensbasis","agentProfile.knowledgeBases_other": "{{count}} Wissensbasen",+ "agentProfile.runtime": "Läuft auf {{name}}","agentProfile.skills_one": "{{count}} Fähigkeit","agentProfile.skills_other": "{{count}} Fähigkeiten","agentSignal.receipts.agentSignalLabel": "Agentensignal",diff --git a/locales/de-DE/error.json b/locales/de-DE/error.jsonindex 9ac1aa6b098..60e7d49578c 100644--- a/locales/de-DE/error.json+++ b/locales/de-DE/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Klicken, um zu kopieren","unknownError.desc": "Ein unerwarteter Fehler ist aufgetreten. Sie können es erneut versuchen oder melden unter","unknownError.retry": "Erneut versuchen",+ "unknownError.sharedDesc": "Bitte melden Sie dieses Problem unter",+ "unknownError.sharedTitle": "Diese Antwort konnte nicht generiert werden","unknownError.title": "Hoppla, die Anfrage hat ein Nickerchen gemacht","unknownError.traceIdLabel": "Trace-ID:","unlock.addProxyUrl": "OpenAI-Proxy-URL hinzufügen (optional)",diff --git a/locales/de-DE/file.json b/locales/de-DE/file.jsonindex 4e049f71c4c..f769eb7e009 100644--- a/locales/de-DE/file.json+++ b/locales/de-DE/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Symbol hinzufügen","pageEditor.autoSaveMessage": "Ihre Seite wird automatisch gespeichert. Ein manuelles Speichern ist nicht erforderlich.","pageEditor.chooseIcon": "Symbol auswählen",+ "pageEditor.comments.anchor.add": "Kommentar",+ "pageEditor.comments.anchor.label": "Zitierter Text:",+ "pageEditor.comments.anchor.missing": "Original entfernt",+ "pageEditor.comments.anchor.remove": "Zitat entfernen","pageEditor.comments.attachments.add": "Hinzufügen","pageEditor.comments.attachments.chooseLibrary": "Aus der Bibliothek auswählen","pageEditor.comments.author.deactivated": "Deaktivierter Benutzer",diff --git a/locales/de-DE/labs.json b/locales/de-DE/labs.jsonindex 84f08ee2b46..5c4c567e73f 100644--- a/locales/de-DE/labs.json+++ b/locales/de-DE/labs.json@@ -2,8 +2,6 @@"description": "Diese Funktionen sind experimentell. Wir könnten sie entfernen, und sie könnten Fehler enthalten. Wir freuen uns über Ihr Feedback, während Sie sie verwenden.","features.agentGraphConfig.desc": "Zeigt die Laufzeitkonfiguration des Graphen in den erweiterten Einstellungen eines Agentenprofils an.","features.agentGraphConfig.title": "Laufzeitkonfiguration des Agenten-Graphen",- "features.agentProviderBinding.desc": "Lassen Sie unterstützte lokale Agenten einen konfigurierten API-Anbieter und ein Modell verwenden, anstatt ihr Abonnement. Zunächst verfügbar für Claude Code und Codex bei lokaler Desktop-Ausführung.",- "features.agentProviderBinding.title": "Agenten-Anbieterbindung","features.agentSelfIteration.desc": "Ermöglicht dem Assistenten, zu reflektieren, Selbstwahrnehmung aufzubauen und sich durch fortlaufende Versuche und Interaktionen kontinuierlich weiterzuentwickeln.","features.agentSelfIteration.title": "Agenten-Selbstiteration","features.artifactDeployment.desc": "Veröffentlichen Sie Artefakte unter einer gehosteten URL und verwalten Sie Releases über die Seitenleiste der Unterhaltung",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Geteilte Tab-Ansicht","features.evalCapture.desc": "Fügt eine Nachrichtenaktion hinzu, die eine Gesprächsrunde – ihren vorherigen Kontext, die Eingabe und die daraus resultierende Antwort – als Evaluierungstestfall erfasst.","features.evalCapture.title": "Speichern Sie eine Runde als Evaluierungsfall",+ "features.gatewayMux.desc": "Leiten Sie jeden Agentenlauf in diesem Tab über eine gemeinsame Gateway-WebSocket-Verbindung, anstatt für jeden Lauf eine eigene Verbindung zu öffnen. Wiederverbindungen und Ereigniswiederholungen werden pro Lauf über die gemeinsame Verbindung abgewickelt.",+ "features.gatewayMux.title": "Einzelverbindungs-Gateway (experimentell)","features.groupChat.desc": "Koordination von Gruppenchats mit mehreren Agenten aktivieren.","features.groupChat.title": "Gruppenchat (Multi-Agenten)","features.heteroSessionImport.desc": "Fügen Sie einen Eintrag \"Lokale Agentensitzungen importieren\" zum Themenlistenmenü hinzu: Scannen Sie lokale Claude Code / Codex CLI-Transkripte und importieren Sie diese als Themen, mit inkrementeller Synchronisierung beim erneuten Import.",diff --git a/locales/de-DE/modelRuntime.json b/locales/de-DE/modelRuntime.jsonindex 80e79c7a4ae..0ad70ba6ca9 100644--- a/locales/de-DE/modelRuntime.json+++ b/locales/de-DE/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Der Anbieter ist vorübergehend überlastet oder nicht verfügbar. Bitte versuchen Sie es in Kürze erneut.","QuotaLimitReached": "Entschuldigung, die Token-Nutzung oder die Anzahl der Anfragen hat das Kontingentlimit für diesen Schlüssel erreicht. Bitte erhöhen Sie das Kontingent des Schlüssels oder versuchen Sie es später erneut.","RateLimitExceeded": "Entschuldigung, die Token-Nutzung oder die Anzahl der Anfragen hat das Ratenlimit für diesen Schlüssel erreicht. Bitte versuchen Sie es später erneut oder erhöhen Sie das Kontingent des Schlüssels.",+ "RequestBodyTooLarge": "Diese Anfrage ist zu groß für den Modellanbieter. Komprimieren Sie die Unterhaltung oder reduzieren Sie angehängte Inhalte und versuchen Sie es erneut.","StateStorePersistError": "Ein vorübergehendes Problem mit dem Konversationsstatusspeicher hat diesen Vorgang unterbrochen. Bitte versuchen Sie es erneut; falls das Problem weiterhin besteht, wenden Sie sich an den Support.","StateStoreReadError": "Dieser Vorgang konnte nicht fortgesetzt werden, da der Sitzungsstatus nicht verfügbar war. Bitte öffnen Sie das Gespräch erneut, um fortzufahren; wenn das Problem weiterhin besteht, wenden Sie sich an den Support.","StreamChunkError": "Fehler beim Parsen des Nachrichtenchunks der Streaming-Anfrage. Bitte überprüfen Sie, ob die aktuelle API-Schnittstelle den Standardspezifikationen entspricht, oder wenden Sie sich an Ihren API-Anbieter, um Unterstützung zu erhalten.",diff --git a/locales/de-DE/oauth.json b/locales/de-DE/oauth.jsonindex 9517e4c8c5e..638c823ad71 100644--- a/locales/de-DE/oauth.json+++ b/locales/de-DE/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Zurück zur Startseite",+ "authorizeError.code": "Fehlercode",+ "authorizeError.reason.access_denied": "Die Autorisierung wurde verweigert.",+ "authorizeError.reason.invalid_client": "Diese App konnte nicht gefunden werden oder wurde deaktiviert.",+ "authorizeError.reason.invalid_redirect_uri": "Die App hat versucht, Sie zu einer Adresse zurückzuleiten, die nicht registriert ist. Daher wurde die Anfrage gestoppt, um Ihr Konto zu schützen. Wenn Sie diese App entwickeln, fügen Sie diese Redirect-URI in den OAuth-App-Einstellungen hinzu.",+ "authorizeError.reason.invalid_request": "Die Autorisierungsanfrage ist fehlerhaft oder es fehlen erforderliche Parameter.",+ "authorizeError.reason.invalid_scope": "Die App hat Berechtigungen angefordert, die sie nicht anfordern darf.",+ "authorizeError.reason.server_error": "Auf unserer Seite ist etwas schiefgelaufen. Bitte versuchen Sie es später erneut.",+ "authorizeError.reason.unauthorized_client": "Diese App darf diese Anmeldemethode nicht verwenden.",+ "authorizeError.reason.unknown": "Die Autorisierungsanfrage konnte nicht abgeschlossen werden.",+ "authorizeError.title": "Die Autorisierung kann nicht fortgesetzt werden","consent.buttons.accept": "Autorisieren","consent.buttons.deny": "Ablehnen","consent.description": "Die Anwendung {{clientName}} bittet um Autorisierung für Ihr Konto",diff --git a/locales/de-DE/verify.json b/locales/de-DE/verify.jsonindex 80d5c516b81..93c7185fec5 100644--- a/locales/de-DE/verify.json+++ b/locales/de-DE/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Beim Laden Ihrer Berichte ist etwas schiefgelaufen.","workspace.loadErrorTitle": "Berichte konnten nicht geladen werden","workspace.loadMoreError": "Weitere Berichte konnten nicht geladen werden",+ "workspace.pin": "Berichtliste anheften","workspace.renameEmpty": "Berichtstitel darf nicht leer sein","workspace.renameError": "Bericht konnte nicht umbenannt werden","workspace.renameSuccess": "Bericht umbenannt",diff --git a/locales/en-US/file.json b/locales/en-US/file.jsonindex 1a1c06e74b8..4ea4948c535 100644--- a/locales/en-US/file.json+++ b/locales/en-US/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Add Icon","pageEditor.autoSaveMessage": "Your page is saved automatically. No need to save manually.","pageEditor.chooseIcon": "Choose Icon",+ "pageEditor.comments.anchor.add": "Comment",+ "pageEditor.comments.anchor.label": "Quoted text:",+ "pageEditor.comments.anchor.missing": "Original removed",+ "pageEditor.comments.anchor.remove": "Remove quote","pageEditor.comments.attachments.add": "Add","pageEditor.comments.attachments.chooseLibrary": "Choose from Library","pageEditor.comments.author.deactivated": "Deactivated user",diff --git a/locales/es-ES/auth.json b/locales/es-ES/auth.jsonindex 3b9ad364782..db2dc66861f 100644--- a/locales/es-ES/auth.json+++ b/locales/es-ES/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Eliminar","oauthApp.deleteConfirm.title": "¿Eliminar esta aplicación?","oauthApp.detail.back": "Volver a la lista",+ "oauthApp.detail.basicInfo": "Información básica",+ "oauthApp.detail.cancel": "Cancelar","oauthApp.detail.clientId": "ID de cliente",+ "oauthApp.detail.clientSecret": "Secreto del cliente","oauthApp.detail.createdAt": "Creado","oauthApp.detail.dangerZone": "Zona de peligro","oauthApp.detail.delete": "Eliminar aplicación",+ "oauthApp.detail.edit": "Editar","oauthApp.detail.enabled": "Activado","oauthApp.detail.lastUsedAt": "Último uso","oauthApp.detail.neverUsed": "Nunca usado",+ "oauthApp.detail.noDescription": "Sin descripción","oauthApp.detail.save": "Guardar cambios","oauthApp.detail.saveSuccess": "Cambios guardados","oauthApp.detail.title": "Detalles de la aplicación",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Nombre","oauthApp.form.name.placeholder": "Por favor, introduce el nombre de la aplicación",+ "oauthApp.form.redirectUris.extra": "Cada URI debe ser una URL https exacta (http está permitido solo en localhost) y se debe coincidir exactamente.",+ "oauthApp.form.redirectUris.label": "URIs de redirección",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Crear","oauthApp.form.title": "Crear aplicación OAuth",+ "oauthApp.form.type.deviceDesc": "Para CLI y dispositivos sin navegador. Los usuarios autorizan con un código mostrado en la terminal.",+ "oauthApp.form.type.immutable": "El tipo no se puede cambiar después de que se cree la aplicación.",+ "oauthApp.form.type.label": "Tipo de aplicación",+ "oauthApp.form.type.webDesc": "Para aplicaciones del lado del servidor. Los usuarios son redirigidos de vuelta a tu aplicación, que se autentica con un secreto del cliente.",+ "oauthApp.form.type.webNext": "Agregarás URIs de redirección en la página de la aplicación después de que se cree.","oauthApp.item.disabledTag": "Desactivado","oauthApp.item.lastUsed": "Último uso {{time}}","oauthApp.list.actions.create": "Crear aplicación","oauthApp.list.actions.delete": "Eliminar","oauthApp.list.empty": "Aún no hay aplicaciones OAuth. Crea una para comenzar.","oauthApp.list.neverUsed": "Nunca usado",+ "oauthApp.redirectUris.add": "Agregar URI de redirección",+ "oauthApp.redirectUris.configure": "Configurar",+ "oauthApp.redirectUris.empty": "Aún no hay URIs de redirección. Esta aplicación no se puede usar para iniciar sesión hasta que agregues una.",+ "oauthApp.redirectUris.remove": "Eliminar",+ "oauthApp.redirectUris.title": "URIs de redirección",+ "oauthApp.secret.copy": "Copiar secreto",+ "oauthApp.secret.hidden": "Oculto después de la creación",+ "oauthApp.secret.onceWarning": "Esta es la única vez que se muestra el secreto del cliente. Guárdalo en un lugar seguro antes de cerrar.",+ "oauthApp.secret.revealTitle": "Tu secreto del cliente",+ "oauthApp.secret.rotate": "Rotar",+ "oauthApp.secret.rotateConfirm.content": "El secreto actual deja de funcionar inmediatamente. Cualquier implementación que aún lo use fallará al iniciar sesión hasta que lo actualices.",+ "oauthApp.secret.rotateConfirm.ok": "Rotar secreto",+ "oauthApp.secret.rotateConfirm.title": "¿Rotar este secreto del cliente?",+ "oauthApp.secret.usage": "Envíalo al endpoint de token como `client_secret` en el cuerpo de la solicitud.","oauthApp.stats.activeUsers": "Usuarios activos","oauthApp.stats.calls": "Llamadas totales","oauthApp.stats.credits": "Créditos utilizados",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Estadísticas de uso","oauthApp.stats.tokens": "Tokens","oauthApp.type.badge": "Nativo · Flujo de dispositivo",+ "oauthApp.type.device": "CLI / Dispositivo","oauthApp.type.deviceFlow": "Flujo de dispositivo",+ "oauthApp.type.web": "Aplicación web",+ "oauthApp.type.webBadge": "Web · Código de autorización","oauthApp.validation.nameRequired": "El nombre es obligatorio",+ "oauthApp.validation.redirectUri.credentials": "Un URI de redirección no puede incluir un nombre de usuario o contraseña",+ "oauthApp.validation.redirectUri.fragment": "Un URI de redirección no puede contener un fragmento (#)",+ "oauthApp.validation.redirectUri.insecure": "Un URI de redirección debe usar https, excepto en localhost",+ "oauthApp.validation.redirectUri.malformed": "Por favor, introduce una URL absoluta completa",+ "oauthApp.validation.redirectUri.wildcard": "No se permiten comodines; los URIs de redirección deben coincidir exactamente",+ "oauthApp.validation.redirectUriRequired": "Se requiere al menos un URI de redirección",+ "oauthApp.validation.redirectUriTooMany": "Se permiten como máximo {{count}} URIs de redirección","profile.account": "Cuenta","profile.authorizations.actions.revoke": "Revocar","profile.authorizations.revoke.description": "Después de revocar, la herramienta ya no tendrá acceso a sus datos. Se requerirá una nueva autorización para usarla nuevamente.",diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.jsonindex 2d1f88d8e22..a0598c9f3be 100644--- a/locales/es-ES/chat.json+++ b/locales/es-ES/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} archivos","agentProfile.knowledgeBases_one": "{{count}} base de conocimiento","agentProfile.knowledgeBases_other": "{{count}} bases de conocimiento",+ "agentProfile.runtime": "Se ejecuta en {{name}}","agentProfile.skills_one": "{{count}} habilidad","agentProfile.skills_other": "{{count}} habilidades","agentSignal.receipts.agentSignalLabel": "Señal del Agente",diff --git a/locales/es-ES/error.json b/locales/es-ES/error.jsonindex 8157fc713a6..addbde9ddd9 100644--- a/locales/es-ES/error.json+++ b/locales/es-ES/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Haz clic para copiar","unknownError.desc": "Ocurrió un error inesperado. Puedes intentarlo nuevamente o reportarlo en","unknownError.retry": "Reintentar",+ "unknownError.sharedDesc": "Por favor, informa de este problema en",+ "unknownError.sharedTitle": "No se puede generar esta respuesta","unknownError.title": "Vaya, la solicitud se tomó un descanso","unknownError.traceIdLabel": "ID de rastreo:","unlock.addProxyUrl": "Agregar URL de proxy de OpenAI (opcional)",diff --git a/locales/es-ES/file.json b/locales/es-ES/file.jsonindex dbdfd2265ed..c9f3af60cc9 100644--- a/locales/es-ES/file.json+++ b/locales/es-ES/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Agregar ícono","pageEditor.autoSaveMessage": "Tu página se guarda automáticamente. No es necesario guardar manualmente.","pageEditor.chooseIcon": "Elegir ícono",+ "pageEditor.comments.anchor.add": "Comentario",+ "pageEditor.comments.anchor.label": "Texto citado:",+ "pageEditor.comments.anchor.missing": "Original eliminado",+ "pageEditor.comments.anchor.remove": "Eliminar cita","pageEditor.comments.attachments.add": "Agregar","pageEditor.comments.attachments.chooseLibrary": "Elegir de la biblioteca","pageEditor.comments.author.deactivated": "Usuario desactivado",diff --git a/locales/es-ES/labs.json b/locales/es-ES/labs.jsonindex 2a27c616258..babe7b1dece 100644--- a/locales/es-ES/labs.json+++ b/locales/es-ES/labs.json@@ -2,8 +2,6 @@"description": "Estas funciones son experimentales. Podríamos eliminarlas y podrían tener errores. Nos encantaría recibir tus comentarios mientras las usas.","features.agentGraphConfig.desc": "Mostrar la configuración de tiempo de ejecución del gráfico en la configuración avanzada del perfil del agente.","features.agentGraphConfig.title": "Configuración de Tiempo de Ejecución del Gráfico del Agente",- "features.agentProviderBinding.desc": "Permite que los agentes locales compatibles utilicen un proveedor de API configurado y un modelo en lugar de su suscripción. Disponible inicialmente para Claude Code y Codex en ejecución local en escritorio.",- "features.agentProviderBinding.title": "Vinculación de Proveedor de Agente","features.agentSelfIteration.desc": "Permite que el asistente reflexione, desarrolle autoconsciencia y realice iteraciones continuas a lo largo de intentos e interacciones.","features.agentSelfIteration.title": "Autoiteración del agente","features.artifactDeployment.desc": "Publica artefactos en una URL alojada y gestiona lanzamientos desde la barra lateral de conversación",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Vista Dividida de Pestañas","features.evalCapture.desc": "Agrega una acción de mensaje que captura un turno de conversación —su contexto previo, entrada y la respuesta que produjo— como un caso de prueba de evaluación.","features.evalCapture.title": "Guardar un turno como caso de evaluación",+ "features.gatewayMux.desc": "Dirige cada ejecución de agente en esta pestaña a través de un único WebSocket de puerta de enlace compartido en lugar de abrir un socket por ejecución. Las reconexiones y la reproducción de eventos se gestionan por ejecución en la conexión compartida.",+ "features.gatewayMux.title": "Puerta de enlace de conexión única (experimental)","features.groupChat.desc": "Activa la coordinación de chat grupal con múltiples agentes.","features.groupChat.title": "Chat Grupal (Multiagente)","features.heteroSessionImport.desc": "Agrega una entrada \"Importar sesiones de agentes locales\" al menú de la lista de temas: escanea las transcripciones locales de Claude Code / Codex CLI y las importa como temas, con sincronización incremental al volver a importar.",diff --git a/locales/es-ES/modelRuntime.json b/locales/es-ES/modelRuntime.jsonindex 775af5bb2ac..9ee7d763d18 100644--- a/locales/es-ES/modelRuntime.json+++ b/locales/es-ES/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "El proveedor está temporalmente sobrecargado o no disponible. Por favor, vuelve a intentarlo en breve.","QuotaLimitReached": "Lo sentimos, el uso de tokens o el número de solicitudes ha alcanzado el límite de cuota para esta clave. Por favor, aumenta la cuota de la clave o vuelve a intentarlo más tarde.","RateLimitExceeded": "Lo sentimos, el uso de tokens o el número de solicitudes ha alcanzado el límite de velocidad para esta clave. Por favor, vuelve a intentarlo más tarde o aumenta la cuota de la clave.",+ "RequestBodyTooLarge": "Esta solicitud es demasiado grande para el proveedor del modelo. Compacta la conversación o reduce el contenido adjunto, y luego inténtalo de nuevo.","StateStorePersistError": "Un problema temporal con el almacenamiento del estado de la conversación interrumpió esta operación. Por favor, vuelve a intentarlo; si el problema persiste, contacta al soporte.","StateStoreReadError": "Esta operación no se pudo reanudar porque el estado de su sesión no estaba disponible. Por favor, vuelva a abrir la conversación para continuar; si el problema persiste, contacte con el soporte.","StreamChunkError": "Error al analizar el fragmento de mensaje de la solicitud de transmisión. Por favor, verifica si la interfaz API actual cumple con las especificaciones estándar, o contacta a tu proveedor de API para obtener ayuda.",diff --git a/locales/es-ES/oauth.json b/locales/es-ES/oauth.jsonindex c34c86e362a..884a2ab0f01 100644--- a/locales/es-ES/oauth.json+++ b/locales/es-ES/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Volver a Inicio",+ "authorizeError.code": "Código de error",+ "authorizeError.reason.access_denied": "La autorización fue denegada.",+ "authorizeError.reason.invalid_client": "Esta aplicación no se pudo encontrar o ha sido deshabilitada.",+ "authorizeError.reason.invalid_redirect_uri": "La aplicación solicitó enviarte de vuelta a una dirección que no ha registrado, por lo que la solicitud fue detenida para proteger tu cuenta. Si desarrollas esta aplicación, agrega este URI de redirección en la configuración de la aplicación OAuth.",+ "authorizeError.reason.invalid_request": "La solicitud de autorización está mal formada o le faltan parámetros requeridos.",+ "authorizeError.reason.invalid_scope": "La aplicación solicitó permisos que no tiene permitido solicitar.",+ "authorizeError.reason.server_error": "Algo salió mal de nuestro lado. Por favor, inténtalo de nuevo más tarde.",+ "authorizeError.reason.unauthorized_client": "Esta aplicación no tiene permitido usar este método de inicio de sesión.",+ "authorizeError.reason.unknown": "No se pudo completar la solicitud de autorización.",+ "authorizeError.title": "No se puede continuar con la autorización","consent.buttons.accept": "Autorizar","consent.buttons.deny": "Denegar","consent.description": "La aplicación {{clientName}} solicita autorización para acceder a tu cuenta",diff --git a/locales/es-ES/verify.json b/locales/es-ES/verify.jsonindex 2f87d49ed1d..32363ff6f88 100644--- a/locales/es-ES/verify.json+++ b/locales/es-ES/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Algo salió mal al cargar tus informes.","workspace.loadErrorTitle": "No se pudieron cargar los informes","workspace.loadMoreError": "No se pudieron cargar más informes",+ "workspace.pin": "Fijar lista de informes","workspace.renameEmpty": "El título del informe no puede estar vacío","workspace.renameError": "No se pudo renombrar el informe","workspace.renameSuccess": "Informe renombrado",diff --git a/locales/fa-IR/auth.json b/locales/fa-IR/auth.jsonindex f3c17e3b851..0aad139f097 100644--- a/locales/fa-IR/auth.json+++ b/locales/fa-IR/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "حذف","oauthApp.deleteConfirm.title": "این اپلیکیشن حذف شود؟","oauthApp.detail.back": "بازگشت به لیست",+ "oauthApp.detail.basicInfo": "اطلاعات پایه",+ "oauthApp.detail.cancel": "لغو","oauthApp.detail.clientId": "شناسه کلاینت",+ "oauthApp.detail.clientSecret": "کلید مخفی کلاینت","oauthApp.detail.createdAt": "ایجاد شده","oauthApp.detail.dangerZone": "منطقه خطر","oauthApp.detail.delete": "حذف اپلیکیشن",+ "oauthApp.detail.edit": "ویرایش","oauthApp.detail.enabled": "فعال","oauthApp.detail.lastUsedAt": "آخرین استفاده","oauthApp.detail.neverUsed": "هرگز استفاده نشده",+ "oauthApp.detail.noDescription": "بدون توضیح","oauthApp.detail.save": "ذخیره تغییرات","oauthApp.detail.saveSuccess": "تغییرات ذخیره شد","oauthApp.detail.title": "جزئیات اپلیکیشن",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "لوگو","oauthApp.form.name.label": "نام","oauthApp.form.name.placeholder": "لطفاً نام اپلیکیشن را وارد کنید",+ "oauthApp.form.redirectUris.extra": "هر URI باید یک URL دقیق https باشد (http فقط در localhost مجاز است) و دقیقاً مطابقت داشته باشد.",+ "oauthApp.form.redirectUris.label": "آدرسهای بازگشت",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "ایجاد","oauthApp.form.title": "ایجاد اپلیکیشن OAuth",+ "oauthApp.form.type.deviceDesc": "برای CLIها و دستگاههایی که مرورگر ندارند. کاربران با کدی که در ترمینال نمایش داده میشود، مجوز میدهند.",+ "oauthApp.form.type.immutable": "نوع پس از ایجاد برنامه قابل تغییر نیست.",+ "oauthApp.form.type.label": "نوع برنامه",+ "oauthApp.form.type.webDesc": "برای برنامههای سمت سرور. کاربران به برنامه شما بازگردانده میشوند که با یک کلید مخفی کلاینت احراز هویت میکند.",+ "oauthApp.form.type.webNext": "شما آدرسهای بازگشت را در صفحه برنامه پس از ایجاد آن اضافه خواهید کرد.","oauthApp.item.disabledTag": "غیرفعال","oauthApp.item.lastUsed": "آخرین استفاده {{time}}","oauthApp.list.actions.create": "ایجاد اپلیکیشن","oauthApp.list.actions.delete": "حذف","oauthApp.list.empty": "هنوز هیچ اپلیکیشن OAuth وجود ندارد. یکی ایجاد کنید تا شروع کنید.","oauthApp.list.neverUsed": "هرگز استفاده نشده",+ "oauthApp.redirectUris.add": "اضافه کردن آدرس بازگشت",+ "oauthApp.redirectUris.configure": "پیکربندی",+ "oauthApp.redirectUris.empty": "هنوز هیچ آدرس بازگشتی وجود ندارد. این برنامه نمیتواند برای ورود استفاده شود تا زمانی که یکی اضافه کنید.",+ "oauthApp.redirectUris.remove": "حذف",+ "oauthApp.redirectUris.title": "آدرسهای بازگشت",+ "oauthApp.secret.copy": "کپی کلید مخفی",+ "oauthApp.secret.hidden": "پس از ایجاد مخفی است",+ "oauthApp.secret.onceWarning": "این تنها زمانی است که کلید مخفی کلاینت نمایش داده میشود. قبل از بستن آن را در جایی امن ذخیره کنید.",+ "oauthApp.secret.revealTitle": "کلید مخفی کلاینت شما",+ "oauthApp.secret.rotate": "چرخش",+ "oauthApp.secret.rotateConfirm.content": "کلید مخفی فعلی بلافاصله از کار میافتد. هر استقراری که هنوز از آن استفاده میکند، تا زمانی که آن را بهروزرسانی کنید، نمیتواند کاربران را وارد کند.",+ "oauthApp.secret.rotateConfirm.ok": "چرخش کلید مخفی",+ "oauthApp.secret.rotateConfirm.title": "آیا این کلید مخفی کلاینت را بچرخانید؟",+ "oauthApp.secret.usage": "آن را به عنوان `client_secret` در بدنه درخواست به نقطه پایانی توکن ارسال کنید.","oauthApp.stats.activeUsers": "کاربران فعال","oauthApp.stats.calls": "کل تماسها","oauthApp.stats.credits": "اعتبارات مصرفشده",@@ -268,8 +295,18 @@"oauthApp.stats.title": "آمار استفاده","oauthApp.stats.tokens": "توکنها","oauthApp.type.badge": "بومی · جریان دستگاه",+ "oauthApp.type.device": "CLI / دستگاه","oauthApp.type.deviceFlow": "جریان دستگاه",+ "oauthApp.type.web": "برنامه وب",+ "oauthApp.type.webBadge": "وب · کد مجوز","oauthApp.validation.nameRequired": "نام الزامی است",+ "oauthApp.validation.redirectUri.credentials": "یک آدرس بازگشت نمیتواند نام کاربری یا رمز عبور را در خود جای دهد",+ "oauthApp.validation.redirectUri.fragment": "یک آدرس بازگشت نمیتواند شامل یک قطعه (#) باشد",+ "oauthApp.validation.redirectUri.insecure": "یک آدرس بازگشت باید از https استفاده کند، به جز در localhost",+ "oauthApp.validation.redirectUri.malformed": "لطفاً یک URL کامل و مطلق وارد کنید",+ "oauthApp.validation.redirectUri.wildcard": "کاراکترهای عام مجاز نیستند؛ آدرسهای بازگشت دقیقاً مطابقت دارند",+ "oauthApp.validation.redirectUriRequired": "حداقل یک آدرس بازگشت لازم است",+ "oauthApp.validation.redirectUriTooMany": "حداکثر {{count}} آدرس بازگشت مجاز است","profile.account": "حساب کاربری","profile.authorizations.actions.revoke": "لغو دسترسی","profile.authorizations.revoke.description": "پس از لغو، این ابزار دیگر به دادههای شما دسترسی نخواهد داشت. برای استفاده مجدد، نیاز به مجوزدهی دوباره است.",diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.jsonindex f1fab582cd5..640dda625d7 100644--- a/locales/fa-IR/chat.json+++ b/locales/fa-IR/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} فایل","agentProfile.knowledgeBases_one": "{{count}} پایگاهدانش","agentProfile.knowledgeBases_other": "{{count}} پایگاهدانش",+ "agentProfile.runtime": "اجرا شده بر روی {{name}}","agentProfile.skills_one": "{{count}} مهارت","agentProfile.skills_other": "{{count}} مهارت","agentSignal.receipts.agentSignalLabel": "سیگنال نماینده",diff --git a/locales/fa-IR/error.json b/locales/fa-IR/error.jsonindex e654ade687a..e946619c81c 100644--- a/locales/fa-IR/error.json+++ b/locales/fa-IR/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "برای کپی کلیک کنید","unknownError.desc": "یک خطای غیرمنتظره رخ داد. میتوانید دوباره تلاش کنید یا گزارش دهید در","unknownError.retry": "تلاش مجدد",+ "unknownError.sharedDesc": "لطفاً این مشکل را در اینجا گزارش دهید",+ "unknownError.sharedTitle": "قادر به تولید این پاسخ نیست","unknownError.title": "اوه، درخواست به خواب رفت","unknownError.traceIdLabel": "شناسه ردیابی:","unlock.addProxyUrl": "افزودن آدرس پراکسی OpenAI (اختیاری)",diff --git a/locales/fa-IR/file.json b/locales/fa-IR/file.jsonindex f769b76fec1..70c1fa783d5 100644--- a/locales/fa-IR/file.json+++ b/locales/fa-IR/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "افزودن آیکون","pageEditor.autoSaveMessage": "صفحه شما بهصورت خودکار ذخیره میشود. نیازی به ذخیره دستی نیست.","pageEditor.chooseIcon": "انتخاب آیکون",+ "pageEditor.comments.anchor.add": "نظر",+ "pageEditor.comments.anchor.label": "متن نقلشده:",+ "pageEditor.comments.anchor.missing": "متن اصلی حذف شده است",+ "pageEditor.comments.anchor.remove": "حذف نقلقول","pageEditor.comments.attachments.add": "افزودن","pageEditor.comments.attachments.chooseLibrary": "انتخاب از کتابخانه","pageEditor.comments.author.deactivated": "کاربر غیرفعال",diff --git a/locales/fa-IR/labs.json b/locales/fa-IR/labs.jsonindex 0b6db5f1113..6d3f4128c0f 100644--- a/locales/fa-IR/labs.json+++ b/locales/fa-IR/labs.json@@ -2,8 +2,6 @@"description": "این ویژگیها آزمایشی هستند. ممکن است آنها را حذف کنیم و ممکن است دارای اشکالاتی باشند. خوشحال میشویم نظرات شما را هنگام استفاده از آنها دریافت کنیم.","features.agentGraphConfig.desc": "نمایش تنظیمات زمان اجرای نمودار در تنظیمات پیشرفته پروفایل عامل.","features.agentGraphConfig.title": "پیکربندی زمان اجرای نمودار عامل",- "features.agentProviderBinding.desc": "اجازه دهید عوامل محلی پشتیبانیشده از یک ارائهدهنده API و مدل پیکربندیشده به جای اشتراک خود استفاده کنند. در ابتدا برای Claude Code و Codex در اجرای محلی دسکتاپ در دسترس است.",- "features.agentProviderBinding.title": "اتصال ارائهدهنده عامل","features.agentSelfIteration.desc": "به دستیار امکان میدهد درباره عملکرد خود تأمل کند، خودآگاهی ایجاد کند و از طریق تلاشها و تعاملات مداوم به طور پیوسته بهبود یابد.","features.agentSelfIteration.title": "خودتکراری عامل","features.artifactDeployment.desc": "انتشار مصنوعات به یک URL میزبانی شده و مدیریت نسخهها از نوار کناری مکالمه",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "نمایش تب تقسیمشده","features.evalCapture.desc": "یک اقدام پیام اضافه میکند که یک نوبت مکالمه — زمینه قبلی، ورودی و پاسخی که تولید کرده است — را به عنوان یک مورد آزمایشی ارزیابی ضبط میکند.","features.evalCapture.title": "ذخیره یک نوبت به عنوان یک مورد ارزیابی",+ "features.gatewayMux.desc": "اجرای هر عامل در این تب را از طریق یک وبسوکت مشترک دروازه هدایت کنید به جای باز کردن یک سوکت برای هر اجرا. اتصال مجدد و بازپخش رویدادها برای هر اجرا در اتصال مشترک مدیریت میشوند.",+ "features.gatewayMux.title": "دروازه تکاتصالی (آزمایشی)","features.groupChat.desc": "فعالسازی هماهنگی گفتوگوی گروهی چندعاملی.","features.groupChat.title": "گفتوگوی گروهی (چندعاملی)","features.heteroSessionImport.desc": "افزودن گزینه \"وارد کردن جلسات عامل محلی\" به منوی لیست موضوعات: اسکن متنهای Claude Code / Codex CLI محلی و وارد کردن آنها به عنوان موضوعات، با همگامسازی افزایشی در وارد کردن مجدد.",diff --git a/locales/fa-IR/modelRuntime.json b/locales/fa-IR/modelRuntime.jsonindex 2e0baf09cf0..fac90592cab 100644--- a/locales/fa-IR/modelRuntime.json+++ b/locales/fa-IR/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "ارائهدهنده به طور موقت بارگذاری بیش از حد دارد یا در دسترس نیست. لطفاً به زودی دوباره تلاش کنید.","QuotaLimitReached": "متأسفیم، استفاده از توکن یا تعداد درخواستها به حد سهمیه این کلید رسیده است. لطفاً سهمیه کلید را افزایش داده یا بعداً دوباره تلاش کنید.","RateLimitExceeded": "متأسفیم، استفاده از توکن یا تعداد درخواستها به حد نرخ این کلید رسیده است. لطفاً بعداً دوباره تلاش کنید یا سهمیه کلید را افزایش دهید.",+ "RequestBodyTooLarge": "این درخواست برای ارائهدهنده مدل بیش از حد بزرگ است. مکالمه را فشرده کنید یا محتوای پیوست شده را کاهش دهید، سپس دوباره تلاش کنید.","StateStorePersistError": "یک مشکل موقت در ذخیرهسازی وضعیت مکالمه این عملیات را مختل کرد. لطفاً دوباره تلاش کنید؛ اگر مشکل ادامه داشت، با پشتیبانی تماس بگیرید.","StateStoreReadError": "این عملیات نمیتواند ادامه یابد زیرا وضعیت جلسه در دسترس نیست. لطفاً مکالمه را دوباره باز کنید تا ادامه دهید؛ اگر مشکل ادامه داشت، با پشتیبانی تماس بگیرید.","StreamChunkError": "خطا در تجزیه بخش پیام درخواست جریان. لطفاً بررسی کنید که آیا رابط API فعلی با مشخصات استاندارد مطابقت دارد یا با ارائهدهنده API خود تماس بگیرید.",diff --git a/locales/fa-IR/oauth.json b/locales/fa-IR/oauth.jsonindex 8749e23f7d3..83574615673 100644--- a/locales/fa-IR/oauth.json+++ b/locales/fa-IR/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "بازگشت به خانه",+ "authorizeError.code": "کد خطا",+ "authorizeError.reason.access_denied": "مجوز رد شد.",+ "authorizeError.reason.invalid_client": "این برنامه پیدا نشد یا غیرفعال شده است.",+ "authorizeError.reason.invalid_redirect_uri": "برنامه درخواست کرد که شما را به آدرسی بازگرداند که ثبت نشده است، بنابراین درخواست برای حفاظت از حساب شما متوقف شد. اگر شما توسعهدهنده این برنامه هستید، این URI بازگشت را در تنظیمات برنامه OAuth اضافه کنید.",+ "authorizeError.reason.invalid_request": "درخواست مجوز ناقص یا فاقد پارامترهای لازم است.",+ "authorizeError.reason.invalid_scope": "برنامه مجوزهایی را درخواست کرده است که اجازه درخواست آنها را ندارد.",+ "authorizeError.reason.server_error": "مشکلی از سمت ما پیش آمد. لطفاً بعداً دوباره تلاش کنید.",+ "authorizeError.reason.unauthorized_client": "این برنامه اجازه استفاده از این روش ورود را ندارد.",+ "authorizeError.reason.unknown": "درخواست مجوز نمیتواند تکمیل شود.",+ "authorizeError.title": "مجوز نمیتواند ادامه یابد","consent.buttons.accept": "اجازه دادن","consent.buttons.deny": "رد کردن","consent.description": "برنامه {{clientName}} درخواست دسترسی به حساب شما را دارد",diff --git a/locales/fa-IR/verify.json b/locales/fa-IR/verify.jsonindex 4f402ada240..30a00c380f7 100644--- a/locales/fa-IR/verify.json+++ b/locales/fa-IR/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "مشکلی در بارگذاری گزارشهای شما پیش آمد.","workspace.loadErrorTitle": "بارگذاری گزارشها انجام نشد","workspace.loadMoreError": "بارگذاری گزارشهای بیشتر انجام نشد",+ "workspace.pin": "لیست گزارش را پین کنید","workspace.renameEmpty": "عنوان گزارش نمیتواند خالی باشد","workspace.renameError": "تغییر نام گزارش شکست خورد","workspace.renameSuccess": "گزارش تغییر نام یافت",diff --git a/locales/fr-FR/auth.json b/locales/fr-FR/auth.jsonindex b7238dd4216..1abdcec9bb4 100644--- a/locales/fr-FR/auth.json+++ b/locales/fr-FR/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Supprimer","oauthApp.deleteConfirm.title": "Supprimer cette application ?","oauthApp.detail.back": "Retour à la liste",+ "oauthApp.detail.basicInfo": "Informations de base",+ "oauthApp.detail.cancel": "Annuler","oauthApp.detail.clientId": "ID client",+ "oauthApp.detail.clientSecret": "Secret client","oauthApp.detail.createdAt": "Créé","oauthApp.detail.dangerZone": "Zone de danger","oauthApp.detail.delete": "Supprimer l'application",+ "oauthApp.detail.edit": "Modifier","oauthApp.detail.enabled": "Activé","oauthApp.detail.lastUsedAt": "Dernière utilisation","oauthApp.detail.neverUsed": "Jamais utilisé",+ "oauthApp.detail.noDescription": "Aucune description","oauthApp.detail.save": "Enregistrer les modifications","oauthApp.detail.saveSuccess": "Modifications enregistrées","oauthApp.detail.title": "Détails de l'application",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Nom","oauthApp.form.name.placeholder": "Veuillez entrer le nom de l'application",+ "oauthApp.form.redirectUris.extra": "Chaque URI doit être une URL https exacte (http est autorisé uniquement sur localhost) et correspond exactement.",+ "oauthApp.form.redirectUris.label": "URIs de redirection",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Créer","oauthApp.form.title": "Créer une application OAuth",+ "oauthApp.form.type.deviceDesc": "Pour les CLI et les appareils sans navigateur. Les utilisateurs autorisent avec un code affiché dans le terminal.",+ "oauthApp.form.type.immutable": "Le type ne peut pas être modifié après la création de l'application.",+ "oauthApp.form.type.label": "Type d'application",+ "oauthApp.form.type.webDesc": "Pour les applications côté serveur. Les utilisateurs sont redirigés vers votre application, qui s'authentifie avec un secret client.",+ "oauthApp.form.type.webNext": "Vous ajouterez des URIs de redirection sur la page de l'application après sa création.","oauthApp.item.disabledTag": "Désactivé","oauthApp.item.lastUsed": "Dernière utilisation {{time}}","oauthApp.list.actions.create": "Créer une application","oauthApp.list.actions.delete": "Supprimer","oauthApp.list.empty": "Aucune application OAuth pour le moment. Créez-en une pour commencer.","oauthApp.list.neverUsed": "Jamais utilisé",+ "oauthApp.redirectUris.add": "Ajouter une URI de redirection",+ "oauthApp.redirectUris.configure": "Configurer",+ "oauthApp.redirectUris.empty": "Aucune URI de redirection pour le moment. Cette application ne peut pas être utilisée pour se connecter tant que vous n'en ajoutez pas une.",+ "oauthApp.redirectUris.remove": "Supprimer",+ "oauthApp.redirectUris.title": "URIs de redirection",+ "oauthApp.secret.copy": "Copier le secret",+ "oauthApp.secret.hidden": "Caché après la création",+ "oauthApp.secret.onceWarning": "C'est la seule fois où le secret client est affiché. Stockez-le en lieu sûr avant de fermer.",+ "oauthApp.secret.revealTitle": "Votre secret client",+ "oauthApp.secret.rotate": "Faire tourner",+ "oauthApp.secret.rotateConfirm.content": "Le secret actuel cesse de fonctionner immédiatement. Tout déploiement l'utilisant échouera à connecter les utilisateurs tant que vous ne le mettez pas à jour.",+ "oauthApp.secret.rotateConfirm.ok": "Faire tourner le secret",+ "oauthApp.secret.rotateConfirm.title": "Faire tourner ce secret client ?",+ "oauthApp.secret.usage": "Envoyez-le au point de terminaison du jeton en tant que `client_secret` dans le corps de la requête.","oauthApp.stats.activeUsers": "Utilisateurs actifs","oauthApp.stats.calls": "Appels totaux","oauthApp.stats.credits": "Crédits utilisés",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Statistiques d'utilisation","oauthApp.stats.tokens": "Jetons","oauthApp.type.badge": "Natif · Flux de périphérique",+ "oauthApp.type.device": "CLI / Appareil","oauthApp.type.deviceFlow": "Flux de périphérique",+ "oauthApp.type.web": "Application Web",+ "oauthApp.type.webBadge": "Web · Code d'autorisation","oauthApp.validation.nameRequired": "Le nom est requis",+ "oauthApp.validation.redirectUri.credentials": "Une URI de redirection ne peut pas intégrer un nom d'utilisateur ou un mot de passe",+ "oauthApp.validation.redirectUri.fragment": "Une URI de redirection ne peut pas contenir de fragment (#)",+ "oauthApp.validation.redirectUri.insecure": "Une URI de redirection doit utiliser https, sauf sur localhost",+ "oauthApp.validation.redirectUri.malformed": "Veuillez entrer une URL absolue complète",+ "oauthApp.validation.redirectUri.wildcard": "Les caractères génériques ne sont pas autorisés ; les URIs de redirection sont correspondantes exactement",+ "oauthApp.validation.redirectUriRequired": "Au moins une URI de redirection est requise",+ "oauthApp.validation.redirectUriTooMany": "Au maximum {{count}} URIs de redirection sont autorisées","profile.account": "Compte","profile.authorizations.actions.revoke": "Révoquer","profile.authorizations.revoke.description": "Après révocation, l'outil n'aura plus accès à vos données. Une nouvelle autorisation sera nécessaire pour l'utiliser à nouveau.",diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.jsonindex b525bb4071a..b00085ea679 100644--- a/locales/fr-FR/chat.json+++ b/locales/fr-FR/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} fichiers","agentProfile.knowledgeBases_one": "{{count}} base de connaissances","agentProfile.knowledgeBases_other": "{{count}} bases de connaissances",+ "agentProfile.runtime": "S'exécute sur {{name}}","agentProfile.skills_one": "{{count}} compétence","agentProfile.skills_other": "{{count}} compétences","agentSignal.receipts.agentSignalLabel": "Signal de l'agent",diff --git a/locales/fr-FR/error.json b/locales/fr-FR/error.jsonindex 5b8fba8809c..94ea3305825 100644--- a/locales/fr-FR/error.json+++ b/locales/fr-FR/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Cliquez pour copier","unknownError.desc": "Une erreur inattendue s'est produite. Vous pouvez réessayer ou signaler sur","unknownError.retry": "Réessayer",+ "unknownError.sharedDesc": "Veuillez signaler ce problème sur",+ "unknownError.sharedTitle": "Impossible de générer cette réponse","unknownError.title": "Oups, la requête s'est assoupie","unknownError.traceIdLabel": "ID de trace :","unlock.addProxyUrl": "Ajouter une URL proxy OpenAI (optionnel)",diff --git a/locales/fr-FR/file.json b/locales/fr-FR/file.jsonindex fd24d3a38ee..fe1388dbfb2 100644--- a/locales/fr-FR/file.json+++ b/locales/fr-FR/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Ajouter une icône","pageEditor.autoSaveMessage": "Votre page est enregistrée automatiquement. Aucun enregistrement manuel nécessaire.","pageEditor.chooseIcon": "Choisir une icône",+ "pageEditor.comments.anchor.add": "Commentaire",+ "pageEditor.comments.anchor.label": "Texte cité :",+ "pageEditor.comments.anchor.missing": "Original supprimé",+ "pageEditor.comments.anchor.remove": "Supprimer la citation","pageEditor.comments.attachments.add": "Ajouter","pageEditor.comments.attachments.chooseLibrary": "Choisir depuis la bibliothèque","pageEditor.comments.author.deactivated": "Utilisateur désactivé",diff --git a/locales/fr-FR/labs.json b/locales/fr-FR/labs.jsonindex d2a248c375e..3d4f5ef2a28 100644--- a/locales/fr-FR/labs.json+++ b/locales/fr-FR/labs.json@@ -2,8 +2,6 @@"description": "Ces fonctionnalités sont expérimentales. Nous pourrions les supprimer, et elles pourraient contenir des bugs. Nous serions ravis de recevoir vos commentaires lors de leur utilisation.","features.agentGraphConfig.desc": "Afficher la configuration d'exécution du graphe dans les paramètres avancés du profil de l'agent.","features.agentGraphConfig.title": "Configuration d'exécution du graphe de l'agent",- "features.agentProviderBinding.desc": "Permettez aux agents locaux pris en charge d'utiliser un fournisseur d'API configuré et un modèle au lieu de leur abonnement. Disponible initialement pour Claude Code et Codex sur l'exécution locale de bureau.",- "features.agentProviderBinding.title": "Association du fournisseur d'agent","features.agentSelfIteration.desc": "Permet à l’assistant de réfléchir, de développer une conscience de soi et d’itérer en continu à travers des tentatives et des interactions successives.","features.agentSelfIteration.title": "Auto‑itération de l’agent","features.artifactDeployment.desc": "Publiez des artefacts sur une URL hébergée et gérez les versions depuis la barre latérale de conversation",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Vue en onglets divisés","features.evalCapture.desc": "Ajoute une action de message qui capture un échange de conversation — son contexte précédent, l'entrée et la réponse produite — en tant que cas de test d'évaluation.","features.evalCapture.title": "Enregistrer un échange comme cas d'évaluation",+ "features.gatewayMux.desc": "Acheminer chaque exécution d'agent dans cet onglet via une passerelle WebSocket partagée au lieu d'ouvrir une socket par exécution. Les reconnexions et la relecture des événements sont gérées par exécution sur la connexion partagée.",+ "features.gatewayMux.title": "Passerelle à connexion unique (expérimental)","features.groupChat.desc": "Activez la coordination de discussions de groupe multi-agents.","features.groupChat.title": "Discussion de groupe (multi-agents)","features.heteroSessionImport.desc": "Ajoutez une entrée \"Importer les sessions d'agent local\" au menu de la liste des sujets : analysez les transcriptions locales de Claude Code / Codex CLI et importez-les comme sujets, avec une synchronisation incrémentielle lors de la réimportation.",diff --git a/locales/fr-FR/modelRuntime.json b/locales/fr-FR/modelRuntime.jsonindex a1ccaff683d..93f618bea86 100644--- a/locales/fr-FR/modelRuntime.json+++ b/locales/fr-FR/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Le fournisseur est temporairement surchargé ou indisponible. Veuillez réessayer sous peu.","QuotaLimitReached": "Désolé, l'utilisation des jetons ou le nombre de requêtes a atteint la limite de quota pour cette clé. Veuillez augmenter le quota de la clé ou réessayer plus tard.","RateLimitExceeded": "Désolé, l'utilisation des jetons ou le nombre de requêtes a atteint la limite de débit pour cette clé. Veuillez réessayer plus tard ou augmenter le quota de la clé.",+ "RequestBodyTooLarge": "Cette requête est trop volumineuse pour le fournisseur de modèle. Compactez la conversation ou réduisez le contenu joint, puis réessayez.","StateStorePersistError": "Un problème temporaire avec le stockage de l'état de la conversation a interrompu cette opération. Veuillez réessayer ; si le problème persiste, contactez le support.","StateStoreReadError": "Cette opération n'a pas pu être reprise car l'état de la session était indisponible. Veuillez rouvrir la conversation pour continuer ; si le problème persiste, contactez le support.","StreamChunkError": "Erreur lors de l'analyse du fragment de message de la requête en streaming. Veuillez vérifier si l'interface API actuelle est conforme aux spécifications standard ou contactez votre fournisseur d'API pour obtenir de l'aide.",diff --git a/locales/fr-FR/oauth.json b/locales/fr-FR/oauth.jsonindex 887d5614192..9185e452f70 100644--- a/locales/fr-FR/oauth.json+++ b/locales/fr-FR/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Retour à l'accueil",+ "authorizeError.code": "Code d'erreur",+ "authorizeError.reason.access_denied": "L'autorisation a été refusée.",+ "authorizeError.reason.invalid_client": "Cette application est introuvable ou a été désactivée.",+ "authorizeError.reason.invalid_redirect_uri": "L'application a demandé de vous renvoyer à une adresse qu'elle n'a pas enregistrée, donc la demande a été arrêtée pour protéger votre compte. Si vous développez cette application, ajoutez cet URI de redirection dans ses paramètres d'application OAuth.",+ "authorizeError.reason.invalid_request": "La demande d'autorisation est mal formée ou manque de paramètres requis.",+ "authorizeError.reason.invalid_scope": "L'application a demandé des autorisations qu'elle n'est pas autorisée à demander.",+ "authorizeError.reason.server_error": "Un problème est survenu de notre côté. Veuillez réessayer plus tard.",+ "authorizeError.reason.unauthorized_client": "Cette application n'est pas autorisée à utiliser cette méthode de connexion.",+ "authorizeError.reason.unknown": "La demande d'autorisation n'a pas pu être complétée.",+ "authorizeError.title": "L'autorisation ne peut pas continuer","consent.buttons.accept": "Autoriser","consent.buttons.deny": "Refuser","consent.description": "L'application {{clientName}} demande l'autorisation d'accéder à votre compte",diff --git a/locales/fr-FR/verify.json b/locales/fr-FR/verify.jsonindex b1ad636b181..174164ca151 100644--- a/locales/fr-FR/verify.json+++ b/locales/fr-FR/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Une erreur s'est produite lors du chargement de vos rapports.","workspace.loadErrorTitle": "Impossible de charger les rapports","workspace.loadMoreError": "Impossible de charger plus de rapports",+ "workspace.pin": "Épingler la liste des rapports","workspace.renameEmpty": "Le titre du rapport ne peut pas être vide","workspace.renameError": "Échec du renommage du rapport","workspace.renameSuccess": "Rapport renommé",diff --git a/locales/it-IT/auth.json b/locales/it-IT/auth.jsonindex 4077988f52f..5b05e84fdc1 100644--- a/locales/it-IT/auth.json+++ b/locales/it-IT/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Elimina","oauthApp.deleteConfirm.title": "Eliminare questa app?","oauthApp.detail.back": "Torna alla lista",+ "oauthApp.detail.basicInfo": "Informazioni di base",+ "oauthApp.detail.cancel": "Annulla","oauthApp.detail.clientId": "ID client",+ "oauthApp.detail.clientSecret": "Segreto del client","oauthApp.detail.createdAt": "Creato","oauthApp.detail.dangerZone": "Zona pericolosa","oauthApp.detail.delete": "Elimina app",+ "oauthApp.detail.edit": "Modifica","oauthApp.detail.enabled": "Abilitato","oauthApp.detail.lastUsedAt": "Ultimo utilizzo","oauthApp.detail.neverUsed": "Mai utilizzato",+ "oauthApp.detail.noDescription": "Nessuna descrizione","oauthApp.detail.save": "Salva modifiche","oauthApp.detail.saveSuccess": "Modifiche salvate","oauthApp.detail.title": "Dettagli app",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Nome","oauthApp.form.name.placeholder": "Inserisci il nome dell'app",+ "oauthApp.form.redirectUris.extra": "Ogni URI deve essere un URL https esatto (http è consentito solo su localhost) e deve corrispondere esattamente.",+ "oauthApp.form.redirectUris.label": "URI di reindirizzamento",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Crea","oauthApp.form.title": "Crea app OAuth",+ "oauthApp.form.type.deviceDesc": "Per CLI e dispositivi senza browser. Gli utenti autorizzano con un codice mostrato nel terminale.",+ "oauthApp.form.type.immutable": "Il tipo non può essere modificato dopo la creazione dell'app.",+ "oauthApp.form.type.label": "Tipo di applicazione",+ "oauthApp.form.type.webDesc": "Per app lato server. Gli utenti vengono reindirizzati alla tua app, che si autentica con un segreto del client.",+ "oauthApp.form.type.webNext": "Aggiungerai gli URI di reindirizzamento nella pagina dell'app dopo che è stata creata.","oauthApp.item.disabledTag": "Disabilitato","oauthApp.item.lastUsed": "Ultimo utilizzo {{time}}","oauthApp.list.actions.create": "Crea app","oauthApp.list.actions.delete": "Elimina","oauthApp.list.empty": "Non ci sono ancora app OAuth. Creane una per iniziare.","oauthApp.list.neverUsed": "Mai utilizzato",+ "oauthApp.redirectUris.add": "Aggiungi URI di reindirizzamento",+ "oauthApp.redirectUris.configure": "Configura",+ "oauthApp.redirectUris.empty": "Nessun URI di reindirizzamento ancora. Questa app non può essere utilizzata per accedere finché non ne aggiungi uno.",+ "oauthApp.redirectUris.remove": "Rimuovi",+ "oauthApp.redirectUris.title": "URI di reindirizzamento",+ "oauthApp.secret.copy": "Copia segreto",+ "oauthApp.secret.hidden": "Nascosto dopo la creazione",+ "oauthApp.secret.onceWarning": "Questa è l'unica volta in cui il segreto del client viene mostrato. Conservalo in un luogo sicuro prima di chiudere.",+ "oauthApp.secret.revealTitle": "Il tuo segreto del client",+ "oauthApp.secret.rotate": "Ruota",+ "oauthApp.secret.rotateConfirm.content": "Il segreto attuale smette di funzionare immediatamente. Qualsiasi distribuzione che lo utilizza non sarà in grado di autenticare gli utenti finché non lo aggiorni.",+ "oauthApp.secret.rotateConfirm.ok": "Ruota segreto",+ "oauthApp.secret.rotateConfirm.title": "Ruotare questo segreto del client?",+ "oauthApp.secret.usage": "Invialo al token endpoint come `client_secret` nel corpo della richiesta.","oauthApp.stats.activeUsers": "Utenti attivi","oauthApp.stats.calls": "Chiamate totali","oauthApp.stats.credits": "Crediti utilizzati",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Statistiche di utilizzo","oauthApp.stats.tokens": "Token","oauthApp.type.badge": "Nativo · Device Flow",+ "oauthApp.type.device": "CLI / Dispositivo","oauthApp.type.deviceFlow": "Device Flow",+ "oauthApp.type.web": "App Web",+ "oauthApp.type.webBadge": "Web · Codice di autorizzazione","oauthApp.validation.nameRequired": "Il nome è obbligatorio",+ "oauthApp.validation.redirectUri.credentials": "Un URI di reindirizzamento non può incorporare un nome utente o una password",+ "oauthApp.validation.redirectUri.fragment": "Un URI di reindirizzamento non può contenere un frammento (#)",+ "oauthApp.validation.redirectUri.insecure": "Un URI di reindirizzamento deve utilizzare https, eccetto su localhost",+ "oauthApp.validation.redirectUri.malformed": "Inserisci un URL assoluto completo",+ "oauthApp.validation.redirectUri.wildcard": "I caratteri jolly non sono consentiti; gli URI di reindirizzamento devono corrispondere esattamente",+ "oauthApp.validation.redirectUriRequired": "È richiesto almeno un URI di reindirizzamento",+ "oauthApp.validation.redirectUriTooMany": "Sono consentiti al massimo {{count}} URI di reindirizzamento","profile.account": "Account","profile.authorizations.actions.revoke": "Revoca","profile.authorizations.revoke.description": "Dopo la revoca, lo strumento non avrà più accesso ai tuoi dati. Sarà necessaria una nuova autorizzazione per utilizzarlo.",diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.jsonindex 6c4461631b3..e7a6e3cdf0e 100644--- a/locales/it-IT/chat.json+++ b/locales/it-IT/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} file","agentProfile.knowledgeBases_one": "{{count}} base di conoscenza","agentProfile.knowledgeBases_other": "{{count}} basi di conoscenza",+ "agentProfile.runtime": "Eseguito su {{name}}","agentProfile.skills_one": "{{count}} competenza","agentProfile.skills_other": "{{count}} competenze","agentSignal.receipts.agentSignalLabel": "Segnale Agente",diff --git a/locales/it-IT/error.json b/locales/it-IT/error.jsonindex 35a35216e24..778dbd43bd6 100644--- a/locales/it-IT/error.json+++ b/locales/it-IT/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Fai clic per copiare","unknownError.desc": "Si è verificato un errore imprevisto. Puoi riprovare o segnalare su","unknownError.retry": "Riprova",+ "unknownError.sharedDesc": "Segnala questo problema su",+ "unknownError.sharedTitle": "Impossibile generare questa risposta","unknownError.title": "Ops, la richiesta si è presa una pausa","unknownError.traceIdLabel": "ID Traccia:","unlock.addProxyUrl": "Aggiungi URL proxy OpenAI (opzionale)",diff --git a/locales/it-IT/file.json b/locales/it-IT/file.jsonindex 5bee72d3373..5440759e2be 100644--- a/locales/it-IT/file.json+++ b/locales/it-IT/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Aggiungi icona","pageEditor.autoSaveMessage": "La tua pagina viene salvata automaticamente. Non è necessario salvare manualmente.","pageEditor.chooseIcon": "Scegli icona",+ "pageEditor.comments.anchor.add": "Commento",+ "pageEditor.comments.anchor.label": "Testo citato:",+ "pageEditor.comments.anchor.missing": "Originale rimosso",+ "pageEditor.comments.anchor.remove": "Rimuovi citazione","pageEditor.comments.attachments.add": "Aggiungi","pageEditor.comments.attachments.chooseLibrary": "Scegli dalla libreria","pageEditor.comments.author.deactivated": "Utente disattivato",diff --git a/locales/it-IT/labs.json b/locales/it-IT/labs.jsonindex a31adaabdac..6f9380beb21 100644--- a/locales/it-IT/labs.json+++ b/locales/it-IT/labs.json@@ -2,8 +2,6 @@"description": "Queste funzionalità sono sperimentali. Potremmo rimuoverle e potrebbero contenere bug. Ci piacerebbe ricevere il tuo feedback mentre le utilizzi.","features.agentGraphConfig.desc": "Mostra la configurazione runtime del grafico nelle impostazioni avanzate del profilo agente.","features.agentGraphConfig.title": "Configurazione Runtime Grafico Agente",- "features.agentProviderBinding.desc": "Consenti agli agenti locali supportati di utilizzare un provider API configurato e un modello invece del loro abbonamento. Disponibile inizialmente per Claude Code e Codex su esecuzione locale desktop.",- "features.agentProviderBinding.title": "Associazione del Provider dell'Agente","features.agentSelfIteration.desc": "Consenti all'assistente di riflettere, sviluppare autoconsapevolezza e iterare continuamente attraverso tentativi e interazioni continui.","features.agentSelfIteration.title": "Auto-iterazione dell'agente","features.artifactDeployment.desc": "Pubblica artefatti su un URL ospitato e gestisci le versioni dalla barra laterale della conversazione",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Vista a Schede Divise","features.evalCapture.desc": "Aggiunge un'azione di messaggio che cattura un turno di conversazione — il contesto precedente, l'input e la risposta prodotta — come caso di test di valutazione.","features.evalCapture.title": "Salva un turno come caso di valutazione",+ "features.gatewayMux.desc": "Instrada ogni esecuzione dell'agente in questa scheda attraverso un unico gateway WebSocket condiviso invece di aprire un socket per ogni esecuzione. Le riconnessioni e la riproduzione degli eventi sono gestite per ogni esecuzione sulla connessione condivisa.",+ "features.gatewayMux.title": "Gateway a connessione singola (sperimentale)","features.groupChat.desc": "Abilita il coordinamento della chat di gruppo con più agenti.","features.groupChat.title": "Chat di Gruppo (Multi-Agente)","features.heteroSessionImport.desc": "Aggiungi una voce \"Importa sessioni agente locali\" al menu dell'elenco degli argomenti: analizza le trascrizioni locali di Claude Code / Codex CLI e importale come argomenti, con sincronizzazione incrementale al momento della reimportazione.",diff --git a/locales/it-IT/modelRuntime.json b/locales/it-IT/modelRuntime.jsonindex 9657224dc0b..0b3b8d95c64 100644--- a/locales/it-IT/modelRuntime.json+++ b/locales/it-IT/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Il provider è temporaneamente sovraccarico o non disponibile. Riprova tra poco.","QuotaLimitReached": "Spiacenti, l'utilizzo dei token o il numero di richieste ha raggiunto il limite di quota per questa chiave. Aumenta la quota della chiave o riprova più tardi.","RateLimitExceeded": "Spiacenti, l'utilizzo dei token o il numero di richieste ha raggiunto il limite di velocità per questa chiave. Riprova più tardi o aumenta la quota della chiave.",+ "RequestBodyTooLarge": "Questa richiesta è troppo grande per il fornitore del modello. Compatta la conversazione o riduci il contenuto allegato, quindi riprova.","StateStorePersistError": "Un problema temporaneo con l'archiviazione dello stato della conversazione ha interrotto questa operazione. Riprova; se il problema persiste, contatta l'assistenza.","StateStoreReadError": "Questa operazione non può essere ripresa perché lo stato della sessione non è disponibile. Riapri la conversazione per continuare; se il problema persiste, contatta il supporto.","StreamChunkError": "Errore durante l'analisi del frammento di messaggio della richiesta in streaming. Controlla se l'interfaccia API corrente è conforme alle specifiche standard o contatta il tuo provider API per ricevere assistenza.",diff --git a/locales/it-IT/oauth.json b/locales/it-IT/oauth.jsonindex 1a9f2533ba0..cb4e7c74c67 100644--- a/locales/it-IT/oauth.json+++ b/locales/it-IT/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Torna alla Home",+ "authorizeError.code": "Codice errore",+ "authorizeError.reason.access_denied": "L'autorizzazione è stata negata.",+ "authorizeError.reason.invalid_client": "Questa app non è stata trovata o è stata disabilitata.",+ "authorizeError.reason.invalid_redirect_uri": "L'app ha richiesto di reindirizzarti a un indirizzo non registrato, quindi la richiesta è stata bloccata per proteggere il tuo account. Se sviluppi questa app, aggiungi questo URI di reindirizzamento nelle impostazioni dell'app OAuth.",+ "authorizeError.reason.invalid_request": "La richiesta di autorizzazione è malformata o mancano parametri richiesti.",+ "authorizeError.reason.invalid_scope": "L'app ha richiesto permessi che non è autorizzata a richiedere.",+ "authorizeError.reason.server_error": "Qualcosa è andato storto da parte nostra. Per favore riprova più tardi.",+ "authorizeError.reason.unauthorized_client": "Questa app non è autorizzata a utilizzare questo metodo di accesso.",+ "authorizeError.reason.unknown": "Non è stato possibile completare la richiesta di autorizzazione.",+ "authorizeError.title": "Impossibile Continuare con l'Autorizzazione","consent.buttons.accept": "Autorizza","consent.buttons.deny": "Nega","consent.description": "L'applicazione {{clientName}} sta richiedendo l'autorizzazione per accedere al tuo account",diff --git a/locales/it-IT/verify.json b/locales/it-IT/verify.jsonindex 5c70f881379..e3408d0ff1b 100644--- a/locales/it-IT/verify.json+++ b/locales/it-IT/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Si è verificato un errore durante il caricamento dei tuoi rapporti.","workspace.loadErrorTitle": "Impossibile caricare i rapporti","workspace.loadMoreError": "Impossibile caricare altri rapporti",+ "workspace.pin": "Fissa elenco rapporti","workspace.renameEmpty": "Il titolo del report non può essere vuoto","workspace.renameError": "Impossibile rinominare il report","workspace.renameSuccess": "Report rinominato",diff --git a/locales/ja-JP/auth.json b/locales/ja-JP/auth.jsonindex bcf19a0bb7b..574ea2f94d0 100644--- a/locales/ja-JP/auth.json+++ b/locales/ja-JP/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "削除","oauthApp.deleteConfirm.title": "このアプリを削除しますか?","oauthApp.detail.back": "リストに戻る",+ "oauthApp.detail.basicInfo": "基本情報",+ "oauthApp.detail.cancel": "キャンセル","oauthApp.detail.clientId": "クライアントID",+ "oauthApp.detail.clientSecret": "クライアントシークレット","oauthApp.detail.createdAt": "作成日","oauthApp.detail.dangerZone": "危険ゾーン","oauthApp.detail.delete": "アプリを削除",+ "oauthApp.detail.edit": "編集","oauthApp.detail.enabled": "有効","oauthApp.detail.lastUsedAt": "最終使用日","oauthApp.detail.neverUsed": "未使用",+ "oauthApp.detail.noDescription": "説明なし","oauthApp.detail.save": "変更を保存","oauthApp.detail.saveSuccess": "変更が保存されました","oauthApp.detail.title": "アプリ詳細",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "ロゴ","oauthApp.form.name.label": "名前","oauthApp.form.name.placeholder": "アプリ名を入力してください",+ "oauthApp.form.redirectUris.extra": "各URIは正確なhttps URLである必要があります(localhostではhttpも許可されます)し、正確に一致します。",+ "oauthApp.form.redirectUris.label": "リダイレクトURI",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "作成","oauthApp.form.title": "OAuthアプリを作成",+ "oauthApp.form.type.deviceDesc": "ブラウザのないCLIやデバイス用。ユーザーはターミナルに表示されるコードで認証します。",+ "oauthApp.form.type.immutable": "アプリ作成後はタイプを変更できません。",+ "oauthApp.form.type.label": "アプリケーションタイプ",+ "oauthApp.form.type.webDesc": "サーバーサイドアプリ用。ユーザーはアプリにリダイレクトされ、クライアントシークレットで認証します。",+ "oauthApp.form.type.webNext": "アプリ作成後にリダイレクトURIをアプリページで追加します。","oauthApp.item.disabledTag": "無効","oauthApp.item.lastUsed": "最終使用日 {{time}}","oauthApp.list.actions.create": "アプリを作成","oauthApp.list.actions.delete": "削除","oauthApp.list.empty": "OAuthアプリはまだありません。作成して始めましょう。","oauthApp.list.neverUsed": "未使用",+ "oauthApp.redirectUris.add": "リダイレクトURIを追加",+ "oauthApp.redirectUris.configure": "設定",+ "oauthApp.redirectUris.empty": "まだリダイレクトURIがありません。このアプリはリダイレクトURIを追加するまでサインインに使用できません。",+ "oauthApp.redirectUris.remove": "削除",+ "oauthApp.redirectUris.title": "リダイレクトURI",+ "oauthApp.secret.copy": "シークレットをコピー",+ "oauthApp.secret.hidden": "作成後は非表示",+ "oauthApp.secret.onceWarning": "クライアントシークレットが表示されるのはこれが唯一の機会です。閉じる前に安全な場所に保存してください。",+ "oauthApp.secret.revealTitle": "クライアントシークレット",+ "oauthApp.secret.rotate": "ローテーション",+ "oauthApp.secret.rotateConfirm.content": "現在のシークレットは直ちに無効になります。それを使用しているデプロイメントは、更新されるまでサインインに失敗します。",+ "oauthApp.secret.rotateConfirm.ok": "シークレットをローテーション",+ "oauthApp.secret.rotateConfirm.title": "このクライアントシークレットをローテーションしますか?",+ "oauthApp.secret.usage": "リクエストボディ内の`client_secret`としてトークンエンドポイントに送信します。","oauthApp.stats.activeUsers": "アクティブユーザー","oauthApp.stats.calls": "総呼び出し数","oauthApp.stats.credits": "使用クレジット",@@ -268,8 +295,18 @@"oauthApp.stats.title": "使用状況統計","oauthApp.stats.tokens": "トークン","oauthApp.type.badge": "ネイティブ · デバイスフロー",+ "oauthApp.type.device": "CLI / デバイス","oauthApp.type.deviceFlow": "デバイスフロー",+ "oauthApp.type.web": "ウェブアプリ",+ "oauthApp.type.webBadge": "ウェブ · 認可コード","oauthApp.validation.nameRequired": "名前は必須です",+ "oauthApp.validation.redirectUri.credentials": "リダイレクトURIにユーザー名やパスワードを埋め込むことはできません",+ "oauthApp.validation.redirectUri.fragment": "リダイレクトURIにフラグメント(#)を含めることはできません",+ "oauthApp.validation.redirectUri.insecure": "リダイレクトURIはhttpsを使用する必要があります(localhostを除く)",+ "oauthApp.validation.redirectUri.malformed": "完全な絶対URLを入力してください",+ "oauthApp.validation.redirectUri.wildcard": "ワイルドカードは許可されていません。リダイレクトURIは正確に一致します",+ "oauthApp.validation.redirectUriRequired": "少なくとも1つのリダイレクトURIが必要です",+ "oauthApp.validation.redirectUriTooMany": "リダイレクトURIは最大{{count}}個まで許可されます","profile.account": "アカウント","profile.authorizations.actions.revoke": "認可を取り消す","profile.authorizations.revoke.description": "認可を取り消すと、このツールはあなたのデータにアクセスできなくなります。再度使用するには、再認可が必要です。",diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.jsonindex 9da26f76f68..3c410a86fa8 100644--- a/locales/ja-JP/chat.json+++ b/locales/ja-JP/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} 件のファイル","agentProfile.knowledgeBases_one": "{{count}} 件のナレッジベース","agentProfile.knowledgeBases_other": "{{count}} 件のナレッジベース",+ "agentProfile.runtime": "{{name}} で実行されます","agentProfile.skills_one": "{{count}} 件のスキル","agentProfile.skills_other": "{{count}} 件のスキル","agentSignal.receipts.agentSignalLabel": "エージェントシグナル",diff --git a/locales/ja-JP/error.json b/locales/ja-JP/error.jsonindex 5099ce5be63..4c552a7ad4c 100644--- a/locales/ja-JP/error.json+++ b/locales/ja-JP/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "クリックしてコピー","unknownError.desc": "予期しないエラーが発生しました。再試行するか、報告してください。","unknownError.retry": "再試行",+ "unknownError.sharedDesc": "この問題を報告してください:",+ "unknownError.sharedTitle": "この回答を生成できませんでした","unknownError.title": "おっと、リクエストが休憩しました","unknownError.traceIdLabel": "トレースID:","unlock.addProxyUrl": "OpenAI プロキシアドレスを追加(オプション)",diff --git a/locales/ja-JP/file.json b/locales/ja-JP/file.jsonindex 8d7de5ce106..6581910a4e4 100644--- a/locales/ja-JP/file.json+++ b/locales/ja-JP/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "アイコンを追加","pageEditor.autoSaveMessage": "ドキュメントは自動的に保存されます。手動で保存する必要はありません。","pageEditor.chooseIcon": "アイコンを選択",+ "pageEditor.comments.anchor.add": "コメント",+ "pageEditor.comments.anchor.label": "引用テキスト:",+ "pageEditor.comments.anchor.missing": "元のテキストが削除されました",+ "pageEditor.comments.anchor.remove": "引用を削除","pageEditor.comments.attachments.add": "追加","pageEditor.comments.attachments.chooseLibrary": "ライブラリから選択","pageEditor.comments.author.deactivated": "無効化されたユーザー",diff --git a/locales/ja-JP/labs.json b/locales/ja-JP/labs.jsonindex cd871dcdb8a..45a47627ae3 100644--- a/locales/ja-JP/labs.json+++ b/locales/ja-JP/labs.json@@ -2,8 +2,6 @@"description": "これらの機能は実験的なものです。削除される可能性があり、バグが含まれている場合があります。ご利用中のフィードバックをぜひお寄せください。","features.agentGraphConfig.desc": "エージェントプロファイルの詳細設定でグラフの実行時設定を表示します。","features.agentGraphConfig.title": "エージェントグラフ実行時設定",- "features.agentProviderBinding.desc": "サポートされているローカルエージェントが、サブスクリプションの代わりに設定されたAPIプロバイダーとモデルを使用できるようにします。現在、Claude CodeとCodexのデスクトップローカル実行で利用可能です。",- "features.agentProviderBinding.title": "エージェントプロバイダーバインディング","features.agentSelfIteration.desc": "アシスタントが振り返りを行い、自己認識を深め、継続的な試行と対話を通じて自律的に改善を重ねられるようにします。","features.agentSelfIteration.title": "エージェントの自己反復","features.artifactDeployment.desc": "アーティファクトをホストされたURLに公開し、会話サイドバーからリリースを管理します",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "タブ分割ビュー","features.evalCapture.desc": "会話のターン、その前のコンテキスト、入力、および生成された回答を評価テストケースとしてキャプチャするメッセージアクションを追加します。","features.evalCapture.title": "ターンを評価ケースとして保存",+ "features.gatewayMux.desc": "このタブ内のすべてのエージェント実行を、実行ごとにソケットを開く代わりに、1つの共有ゲートウェイWebSocket経由でルーティングします。再接続とイベントリプレイは、共有接続上で実行ごとに処理されます。",+ "features.gatewayMux.title": "単一接続ゲートウェイ(実験的)","features.groupChat.desc": "複数のAIアシスタントによるグループチャット機能を有効にします。","features.groupChat.title": "グループチャット(マルチアシスタント)","features.heteroSessionImport.desc": "トピックリストメニューに「ローカルエージェントセッションのインポート」エントリを追加します: ローカルのClaude Code / Codex CLIトランスクリプトをスキャンしてトピックとしてインポートし、再インポート時には増分同期を行います。",diff --git a/locales/ja-JP/modelRuntime.json b/locales/ja-JP/modelRuntime.jsonindex 37532131765..072341d7ef2 100644--- a/locales/ja-JP/modelRuntime.json+++ b/locales/ja-JP/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "プロバイダーが一時的に過負荷または利用不可です。しばらくしてから再試行してください。","QuotaLimitReached": "申し訳ありませんが、このキーのトークン使用量またはリクエスト数がクォータ制限に達しました。キーのクォータを増やすか、後で再試行してください。","RateLimitExceeded": "申し訳ありませんが、このキーのトークン使用量またはリクエスト数がレート制限に達しました。後で再試行するか、キーのクォータを増やしてください。",+ "RequestBodyTooLarge": "このリクエストはモデルプロバイダーにとって大きすぎます。会話を簡潔にするか、添付コンテンツを減らしてから再試行してください。","StateStorePersistError": "会話状態ストアの一時的な問題により、この操作が中断されました。再試行してください。それでも解決しない場合はサポートにお問い合わせください。","StateStoreReadError": "この操作はセッション状態が利用できないため再開できませんでした。会話を再度開いて続行してください。それでも問題が解決しない場合は、サポートにお問い合わせください。","StreamChunkError": "ストリーミングリクエストのメッセージチャンクの解析中にエラーが発生しました。現在のAPIインターフェースが標準仕様に準拠しているか確認するか、APIプロバイダーにお問い合わせください。",diff --git a/locales/ja-JP/oauth.json b/locales/ja-JP/oauth.jsonindex d4ba93086d8..41715587595 100644--- a/locales/ja-JP/oauth.json+++ b/locales/ja-JP/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "ホームに戻る",+ "authorizeError.code": "エラーコード",+ "authorizeError.reason.access_denied": "認証が拒否されました。",+ "authorizeError.reason.invalid_client": "このアプリは見つからないか、無効化されています。",+ "authorizeError.reason.invalid_redirect_uri": "アプリが登録されていないアドレスに戻るよう要求したため、アカウント保護のためリクエストが停止されました。このアプリを開発している場合は、そのリダイレクトURIをOAuthアプリ設定に追加してください。",+ "authorizeError.reason.invalid_request": "認証リクエストが不正確または必要なパラメータが欠けています。",+ "authorizeError.reason.invalid_scope": "アプリが許可されていない権限を要求しました。",+ "authorizeError.reason.server_error": "当方の問題でエラーが発生しました。後でもう一度お試しください。",+ "authorizeError.reason.unauthorized_client": "このアプリはこのサインイン方法を使用することが許可されていません。",+ "authorizeError.reason.unknown": "認証リクエストを完了できませんでした。",+ "authorizeError.title": "認証を続行できません","consent.buttons.accept": "承認","consent.buttons.deny": "拒否","consent.description": "アプリケーション {{clientName}} があなたのアカウントの承認を要求しています",diff --git a/locales/ja-JP/verify.json b/locales/ja-JP/verify.jsonindex a41a4265a28..67ce0fdd2e2 100644--- a/locales/ja-JP/verify.json+++ b/locales/ja-JP/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "レポートの読み込み中に問題が発生しました。","workspace.loadErrorTitle": "レポートを読み込めませんでした","workspace.loadMoreError": "さらに多くのレポートを読み込めませんでした",+ "workspace.pin": "レポートリストをピン留め","workspace.renameEmpty": "レポートタイトルは空にできません","workspace.renameError": "レポートの名前変更に失敗しました","workspace.renameSuccess": "レポートの名前が変更されました",diff --git a/locales/ko-KR/auth.json b/locales/ko-KR/auth.jsonindex 6e55739085d..41364b63024 100644--- a/locales/ko-KR/auth.json+++ b/locales/ko-KR/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "삭제","oauthApp.deleteConfirm.title": "이 앱을 삭제하시겠습니까?","oauthApp.detail.back": "목록으로 돌아가기",+ "oauthApp.detail.basicInfo": "기본 정보",+ "oauthApp.detail.cancel": "취소","oauthApp.detail.clientId": "클라이언트 ID",+ "oauthApp.detail.clientSecret": "클라이언트 비밀키","oauthApp.detail.createdAt": "생성일","oauthApp.detail.dangerZone": "위험 구역","oauthApp.detail.delete": "앱 삭제",+ "oauthApp.detail.edit": "편집","oauthApp.detail.enabled": "활성화됨","oauthApp.detail.lastUsedAt": "마지막 사용일","oauthApp.detail.neverUsed": "사용된 적 없음",+ "oauthApp.detail.noDescription": "설명이 없습니다","oauthApp.detail.save": "변경 사항 저장","oauthApp.detail.saveSuccess": "변경 사항이 저장되었습니다","oauthApp.detail.title": "앱 세부 정보",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "로고","oauthApp.form.name.label": "이름","oauthApp.form.name.placeholder": "앱 이름을 입력하세요",+ "oauthApp.form.redirectUris.extra": "각 URI는 정확한 https URL이어야 하며 (localhost에서는 http만 허용됨) 정확히 일치해야 합니다.",+ "oauthApp.form.redirectUris.label": "리디렉션 URI",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "생성","oauthApp.form.title": "OAuth 앱 생성",+ "oauthApp.form.type.deviceDesc": "브라우저가 없는 CLI 및 장치용입니다. 사용자는 터미널에 표시된 코드를 사용하여 인증합니다.",+ "oauthApp.form.type.immutable": "앱이 생성된 후에는 유형을 변경할 수 없습니다.",+ "oauthApp.form.type.label": "애플리케이션 유형",+ "oauthApp.form.type.webDesc": "서버 측 앱용입니다. 사용자는 앱으로 다시 리디렉션되며 클라이언트 비밀키로 인증합니다.",+ "oauthApp.form.type.webNext": "앱이 생성된 후 앱 페이지에서 리디렉션 URI를 추가합니다.","oauthApp.item.disabledTag": "비활성화됨","oauthApp.item.lastUsed": "마지막 사용 {{time}}","oauthApp.list.actions.create": "앱 생성","oauthApp.list.actions.delete": "삭제","oauthApp.list.empty": "OAuth 앱이 아직 없습니다. 시작하려면 하나를 생성하세요.","oauthApp.list.neverUsed": "사용된 적 없음",+ "oauthApp.redirectUris.add": "리디렉션 URI 추가",+ "oauthApp.redirectUris.configure": "구성",+ "oauthApp.redirectUris.empty": "아직 리디렉션 URI가 없습니다. 리디렉션 URI를 추가하기 전까지 이 앱은 로그인에 사용할 수 없습니다.",+ "oauthApp.redirectUris.remove": "제거",+ "oauthApp.redirectUris.title": "리디렉션 URI",+ "oauthApp.secret.copy": "비밀키 복사",+ "oauthApp.secret.hidden": "생성 후 숨겨짐",+ "oauthApp.secret.onceWarning": "클라이언트 비밀키는 이때만 표시됩니다. 닫기 전에 안전한 곳에 저장하세요.",+ "oauthApp.secret.revealTitle": "클라이언트 비밀키",+ "oauthApp.secret.rotate": "비밀키 교체",+ "oauthApp.secret.rotateConfirm.content": "현재 비밀키는 즉시 작동을 중지합니다. 이를 사용하는 배포는 사용자 로그인에 실패할 수 있으니 업데이트하세요.",+ "oauthApp.secret.rotateConfirm.ok": "비밀키 교체",+ "oauthApp.secret.rotateConfirm.title": "이 클라이언트 비밀키를 교체하시겠습니까?",+ "oauthApp.secret.usage": "요청 본문에서 `client_secret`으로 토큰 엔드포인트에 전송하세요.","oauthApp.stats.activeUsers": "활성 사용자","oauthApp.stats.calls": "총 호출 수","oauthApp.stats.credits": "사용된 크레딧",@@ -268,8 +295,18 @@"oauthApp.stats.title": "사용 통계","oauthApp.stats.tokens": "토큰","oauthApp.type.badge": "네이티브 · 디바이스 플로우",+ "oauthApp.type.device": "CLI / 장치","oauthApp.type.deviceFlow": "디바이스 플로우",+ "oauthApp.type.web": "웹 앱",+ "oauthApp.type.webBadge": "웹 · 인증 코드","oauthApp.validation.nameRequired": "이름은 필수 항목입니다",+ "oauthApp.validation.redirectUri.credentials": "리디렉션 URI는 사용자 이름이나 비밀번호를 포함할 수 없습니다",+ "oauthApp.validation.redirectUri.fragment": "리디렉션 URI는 프래그먼트(#)를 포함할 수 없습니다",+ "oauthApp.validation.redirectUri.insecure": "리디렉션 URI는 localhost를 제외하고 https를 사용해야 합니다",+ "oauthApp.validation.redirectUri.malformed": "전체 절대 URL을 입력하세요",+ "oauthApp.validation.redirectUri.wildcard": "와일드카드는 허용되지 않습니다. 리디렉션 URI는 정확히 일치해야 합니다",+ "oauthApp.validation.redirectUriRequired": "최소 하나의 리디렉션 URI가 필요합니다",+ "oauthApp.validation.redirectUriTooMany": "최대 {{count}}개의 리디렉션 URI만 허용됩니다","profile.account": "계정","profile.authorizations.actions.revoke": "권한 취소","profile.authorizations.revoke.description": "권한을 취소하면 이 도구는 더 이상 귀하의 데이터에 접근할 수 없습니다. 다시 사용하려면 재인증이 필요합니다.",diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.jsonindex eb87d6ab37c..b1edcaa1803 100644--- a/locales/ko-KR/chat.json+++ b/locales/ko-KR/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}}개 파일","agentProfile.knowledgeBases_one": "{{count}}개 지식 베이스","agentProfile.knowledgeBases_other": "{{count}}개 지식 베이스",+ "agentProfile.runtime": "{{name}}에서 실행됩니다","agentProfile.skills_one": "{{count}}개 스킬","agentProfile.skills_other": "{{count}}개 스킬","agentSignal.receipts.agentSignalLabel": "에이전트 신호",diff --git a/locales/ko-KR/error.json b/locales/ko-KR/error.jsonindex b23f3bdd361..137a3e362bd 100644--- a/locales/ko-KR/error.json+++ b/locales/ko-KR/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "클릭하여 복사","unknownError.desc": "예기치 않은 오류가 발생했습니다. 다시 시도하거나 보고할 수 있습니다.","unknownError.retry": "다시 시도",+ "unknownError.sharedDesc": "이 문제를 보고해 주세요",+ "unknownError.sharedTitle": "이 답변을 생성할 수 없습니다","unknownError.title": "이런, 요청이 잠시 쉬고 있습니다","unknownError.traceIdLabel": "추적 ID:","unlock.addProxyUrl": "OpenAI 프록시 주소 추가(선택 사항)",diff --git a/locales/ko-KR/file.json b/locales/ko-KR/file.jsonindex 0a371070be5..af11812016c 100644--- a/locales/ko-KR/file.json+++ b/locales/ko-KR/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "아이콘 추가","pageEditor.autoSaveMessage": "문서는 자동으로 저장되며, 수동 저장이 필요하지 않습니다","pageEditor.chooseIcon": "아이콘 선택",+ "pageEditor.comments.anchor.add": "댓글",+ "pageEditor.comments.anchor.label": "인용된 텍스트:",+ "pageEditor.comments.anchor.missing": "원본이 삭제됨",+ "pageEditor.comments.anchor.remove": "인용 삭제","pageEditor.comments.attachments.add": "추가","pageEditor.comments.attachments.chooseLibrary": "라이브러리에서 선택","pageEditor.comments.author.deactivated": "비활성화된 사용자",diff --git a/locales/ko-KR/labs.json b/locales/ko-KR/labs.jsonindex 2e7d768673b..d7f893ec636 100644--- a/locales/ko-KR/labs.json+++ b/locales/ko-KR/labs.json@@ -2,8 +2,6 @@"description": "이 기능들은 실험적입니다. 제거될 수 있으며, 버그가 있을 수 있습니다. 사용 중에 의견을 보내주시면 감사하겠습니다.","features.agentGraphConfig.desc": "에이전트 프로필 고급 설정에서 그래프 런타임 구성을 표시합니다.","features.agentGraphConfig.title": "에이전트 그래프 런타임 구성",- "features.agentProviderBinding.desc": "지원되는 로컬 에이전트가 구독 대신 구성된 API 제공자와 모델을 사용할 수 있도록 합니다. 초기에는 Claude Code와 Codex의 데스크톱 로컬 실행에서 제공됩니다.",- "features.agentProviderBinding.title": "에이전트 제공자 바인딩","features.agentSelfIteration.desc": "어시스턴트가 스스로를 성찰하고 자기 인식을 구축하며, 지속적인 시도와 상호작용을 통해 계속해서 발전할 수 있도록 합니다.","features.agentSelfIteration.title": "에이전트 자기 반복","features.artifactDeployment.desc": "아티팩트를 호스팅된 URL에 게시하고 대화 사이드바에서 릴리스를 관리합니다",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "탭 분할 보기","features.evalCapture.desc": "대화의 이전 컨텍스트, 입력 및 생성된 답변을 평가 테스트 케이스로 캡처하는 메시지 작업을 추가합니다.","features.evalCapture.title": "대화 단계를 평가 케이스로 저장",+ "features.gatewayMux.desc": "이 탭에서 실행되는 모든 에이전트를 하나의 공유 게이트웨이 WebSocket을 통해 라우팅하여 실행마다 소켓을 열지 않도록 합니다. 재연결 및 이벤트 재생은 공유 연결에서 실행별로 처리됩니다.",+ "features.gatewayMux.title": "단일 연결 게이트웨이 (실험적)","features.groupChat.desc": "다중 도우미 그룹 채팅 조정 기능을 활성화합니다.","features.groupChat.title": "그룹 채팅 (다중 도우미)","features.heteroSessionImport.desc": "주제 목록 메뉴에 \"로컬 에이전트 세션 가져오기\" 항목 추가: 로컬 Claude Code / Codex CLI 대화 기록을 스캔하여 주제로 가져오고, 다시 가져올 때 점진적으로 동기화합니다.",diff --git a/locales/ko-KR/modelRuntime.json b/locales/ko-KR/modelRuntime.jsonindex 70264d56fff..f52f5417bc3 100644--- a/locales/ko-KR/modelRuntime.json+++ b/locales/ko-KR/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "제공업체가 일시적으로 과부하 상태이거나 사용할 수 없습니다. 잠시 후 다시 시도하세요.","QuotaLimitReached": "죄송합니다. 이 키의 토큰 사용량 또는 요청 수가 할당량 한도에 도달했습니다. 키의 할당량을 늘리거나 나중에 다시 시도하세요.","RateLimitExceeded": "죄송합니다. 이 키의 토큰 사용량 또는 요청 수가 속도 제한에 도달했습니다. 나중에 다시 시도하거나 키의 할당량을 늘리세요.",+ "RequestBodyTooLarge": "이 요청은 모델 제공자에게 너무 큽니다. 대화를 간소화하거나 첨부된 콘텐츠를 줄인 후 다시 시도하세요.","StateStorePersistError": "대화 상태 저장소의 일시적인 문제로 인해 이 작업이 중단되었습니다. 다시 시도하세요. 문제가 지속되면 지원팀에 문의하세요.","StateStoreReadError": "이 작업은 세션 상태를 사용할 수 없어 다시 시작할 수 없습니다. 대화를 다시 열어 계속 진행하십시오. 문제가 지속되면 지원팀에 문의하십시오.","StreamChunkError": "스트리밍 요청의 메시지 청크를 구문 분석하는 중 오류가 발생했습니다. 현재 API 인터페이스가 표준 사양을 준수하는지 확인하거나 API 제공업체에 문의하세요.",diff --git a/locales/ko-KR/oauth.json b/locales/ko-KR/oauth.jsonindex ae911b000b8..8518cbf744d 100644--- a/locales/ko-KR/oauth.json+++ b/locales/ko-KR/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "홈으로 돌아가기",+ "authorizeError.code": "오류 코드",+ "authorizeError.reason.access_denied": "승인이 거부되었습니다.",+ "authorizeError.reason.invalid_client": "이 앱을 찾을 수 없거나 비활성화되었습니다.",+ "authorizeError.reason.invalid_redirect_uri": "앱이 등록되지 않은 주소로 되돌아가도록 요청했으므로 요청이 중단되어 계정을 보호했습니다. 이 앱을 개발하는 경우 OAuth 앱 설정에 이 리디렉션 URI를 추가하세요.",+ "authorizeError.reason.invalid_request": "승인 요청이 잘못되었거나 필수 매개변수가 누락되었습니다.",+ "authorizeError.reason.invalid_scope": "앱이 요청할 수 없는 권한을 요청했습니다.",+ "authorizeError.reason.server_error": "우리 쪽에서 문제가 발생했습니다. 나중에 다시 시도해 주세요.",+ "authorizeError.reason.unauthorized_client": "이 앱은 이 로그인 방법을 사용할 수 없습니다.",+ "authorizeError.reason.unknown": "승인 요청을 완료할 수 없습니다.",+ "authorizeError.title": "승인을 계속할 수 없습니다","consent.buttons.accept": "허용","consent.buttons.deny": "거부","consent.description": "{{clientName}} 애플리케이션이 귀하의 계정 권한을 요청하고 있습니다",diff --git a/locales/ko-KR/verify.json b/locales/ko-KR/verify.jsonindex f0faec4bca2..2cbc9a0367f 100644--- a/locales/ko-KR/verify.json+++ b/locales/ko-KR/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "보고서를 로드하는 중 문제가 발생했습니다.","workspace.loadErrorTitle": "보고서를 로드할 수 없습니다","workspace.loadMoreError": "더 많은 보고서를 로드할 수 없습니다",+ "workspace.pin": "보고서 목록 고정","workspace.renameEmpty": "보고서 제목은 비워둘 수 없습니다","workspace.renameError": "보고서 이름을 변경하지 못했습니다","workspace.renameSuccess": "보고서 이름이 변경되었습니다",diff --git a/locales/nl-NL/auth.json b/locales/nl-NL/auth.jsonindex 3c3e13d9cc4..a52f4d855fc 100644--- a/locales/nl-NL/auth.json+++ b/locales/nl-NL/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Verwijderen","oauthApp.deleteConfirm.title": "Deze app verwijderen?","oauthApp.detail.back": "Terug naar lijst",+ "oauthApp.detail.basicInfo": "Basisinformatie",+ "oauthApp.detail.cancel": "Annuleren","oauthApp.detail.clientId": "Client-ID",+ "oauthApp.detail.clientSecret": "Clientgeheim","oauthApp.detail.createdAt": "Aangemaakt","oauthApp.detail.dangerZone": "Gevarenzone","oauthApp.detail.delete": "App verwijderen",+ "oauthApp.detail.edit": "Bewerken","oauthApp.detail.enabled": "Ingeschakeld","oauthApp.detail.lastUsedAt": "Laatst gebruikt","oauthApp.detail.neverUsed": "Nooit gebruikt",+ "oauthApp.detail.noDescription": "Geen beschrijving","oauthApp.detail.save": "Wijzigingen opslaan","oauthApp.detail.saveSuccess": "Wijzigingen opgeslagen","oauthApp.detail.title": "App Details",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Naam","oauthApp.form.name.placeholder": "Voer de naam van de app in",+ "oauthApp.form.redirectUris.extra": "Elke URI moet een exacte https-URL zijn (http is alleen toegestaan op localhost) en wordt exact gematcht.",+ "oauthApp.form.redirectUris.label": "Redirect-URI's",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Aanmaken","oauthApp.form.title": "OAuth-app aanmaken",+ "oauthApp.form.type.deviceDesc": "Voor CLI's en apparaten zonder browser. Gebruikers autoriseren met een code die in de terminal wordt weergegeven.",+ "oauthApp.form.type.immutable": "Het type kan niet worden gewijzigd nadat de app is aangemaakt.",+ "oauthApp.form.type.label": "Applicatietype",+ "oauthApp.form.type.webDesc": "Voor server-side apps. Gebruikers worden teruggeleid naar uw app, die zich authenticeert met een clientgeheim.",+ "oauthApp.form.type.webNext": "U voegt redirect-URI's toe op de app-pagina nadat deze is aangemaakt.","oauthApp.item.disabledTag": "Uitgeschakeld","oauthApp.item.lastUsed": "Laatst gebruikt {{time}}","oauthApp.list.actions.create": "App aanmaken","oauthApp.list.actions.delete": "Verwijderen","oauthApp.list.empty": "Nog geen OAuth-apps. Maak er een om te beginnen.","oauthApp.list.neverUsed": "Nooit gebruikt",+ "oauthApp.redirectUris.add": "Redirect-URI toevoegen",+ "oauthApp.redirectUris.configure": "Configureren",+ "oauthApp.redirectUris.empty": "Nog geen redirect-URI's. Deze app kan niet worden gebruikt om in te loggen totdat u er een toevoegt.",+ "oauthApp.redirectUris.remove": "Verwijderen",+ "oauthApp.redirectUris.title": "Redirect-URI's",+ "oauthApp.secret.copy": "Geheim kopiëren",+ "oauthApp.secret.hidden": "Verborgen na aanmaak",+ "oauthApp.secret.onceWarning": "Dit is de enige keer dat het clientgeheim wordt weergegeven. Sla het ergens veilig op voordat u dit venster sluit.",+ "oauthApp.secret.revealTitle": "Uw clientgeheim",+ "oauthApp.secret.rotate": "Roteren",+ "oauthApp.secret.rotateConfirm.content": "Het huidige geheim stopt onmiddellijk met werken. Elke implementatie die het nog gebruikt, zal falen bij het inloggen van gebruikers totdat u het bijwerkt.",+ "oauthApp.secret.rotateConfirm.ok": "Geheim roteren",+ "oauthApp.secret.rotateConfirm.title": "Dit clientgeheim roteren?",+ "oauthApp.secret.usage": "Stuur het naar het token-eindpunt als `client_secret` in de request body.","oauthApp.stats.activeUsers": "Actieve gebruikers","oauthApp.stats.calls": "Totaal aantal oproepen","oauthApp.stats.credits": "Gebruikte credits",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Gebruiksstatistieken","oauthApp.stats.tokens": "Tokens","oauthApp.type.badge": "Native · Device Flow",+ "oauthApp.type.device": "CLI / Apparaat","oauthApp.type.deviceFlow": "Device Flow",+ "oauthApp.type.web": "Webapp",+ "oauthApp.type.webBadge": "Web · Autorisatiecode","oauthApp.validation.nameRequired": "Naam is verplicht",+ "oauthApp.validation.redirectUri.credentials": "Een redirect-URI mag geen gebruikersnaam of wachtwoord bevatten",+ "oauthApp.validation.redirectUri.fragment": "Een redirect-URI mag geen fragment (#) bevatten",+ "oauthApp.validation.redirectUri.insecure": "Een redirect-URI moet https gebruiken, behalve op localhost",+ "oauthApp.validation.redirectUri.malformed": "Voer een volledige absolute URL in",+ "oauthApp.validation.redirectUri.wildcard": "Jokers zijn niet toegestaan; redirect-URI's worden exact gematcht",+ "oauthApp.validation.redirectUriRequired": "Ten minste één redirect-URI is vereist",+ "oauthApp.validation.redirectUriTooMany": "Er zijn maximaal {{count}} redirect-URI's toegestaan","profile.account": "Account","profile.authorizations.actions.revoke": "Intrekken","profile.authorizations.revoke.description": "Na intrekking heeft de tool geen toegang meer tot je gegevens. Herautorisatie is vereist om opnieuw te gebruiken.",diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.jsonindex 7f3e8033f7f..8172a4711e7 100644--- a/locales/nl-NL/chat.json+++ b/locales/nl-NL/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} bestanden","agentProfile.knowledgeBases_one": "{{count}} kennisbank","agentProfile.knowledgeBases_other": "{{count}} kennisbanken",+ "agentProfile.runtime": "Draait op {{name}}","agentProfile.skills_one": "{{count}} vaardigheid","agentProfile.skills_other": "{{count}} vaardigheden","agentSignal.receipts.agentSignalLabel": "Agent Signaal",diff --git a/locales/nl-NL/error.json b/locales/nl-NL/error.jsonindex 4635a57d590..2915960048f 100644--- a/locales/nl-NL/error.json+++ b/locales/nl-NL/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Klik om te kopiëren","unknownError.desc": "Er is een onverwachte fout opgetreden. U kunt het opnieuw proberen of rapporteren via","unknownError.retry": "Opnieuw Proberen",+ "unknownError.sharedDesc": "Meld dit probleem op",+ "unknownError.sharedTitle": "Kan dit antwoord niet genereren","unknownError.title": "Oeps, het verzoek heeft een dutje gedaan","unknownError.traceIdLabel": "Traceer-ID:","unlock.addProxyUrl": "Voeg OpenAI-proxy-URL toe (optioneel)",diff --git a/locales/nl-NL/file.json b/locales/nl-NL/file.jsonindex e72d8d4c091..034f2ed9e15 100644--- a/locales/nl-NL/file.json+++ b/locales/nl-NL/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Icoon toevoegen","pageEditor.autoSaveMessage": "Je pagina wordt automatisch opgeslagen. Handmatig opslaan is niet nodig.","pageEditor.chooseIcon": "Icoon kiezen",+ "pageEditor.comments.anchor.add": "Opmerking",+ "pageEditor.comments.anchor.label": "Geciteerde tekst:",+ "pageEditor.comments.anchor.missing": "Oorspronkelijke verwijderd",+ "pageEditor.comments.anchor.remove": "Citaat verwijderen","pageEditor.comments.attachments.add": "Toevoegen","pageEditor.comments.attachments.chooseLibrary": "Kies uit bibliotheek","pageEditor.comments.author.deactivated": "Gedeactiveerde gebruiker",diff --git a/locales/nl-NL/labs.json b/locales/nl-NL/labs.jsonindex 034c881ea02..0c78931a54a 100644--- a/locales/nl-NL/labs.json+++ b/locales/nl-NL/labs.json@@ -2,8 +2,6 @@"description": "Deze functies zijn experimenteel. We kunnen ze verwijderen en ze kunnen bugs bevatten. We horen graag uw feedback tijdens het gebruik ervan.","features.agentGraphConfig.desc": "Toon grafiek runtime-configuratie in de geavanceerde instellingen van een agentprofiel.","features.agentGraphConfig.title": "Agent Grafiek Runtime-configuratie",- "features.agentProviderBinding.desc": "Laat ondersteunde lokale agents een geconfigureerde API-provider en model gebruiken in plaats van hun abonnement. Aanvankelijk beschikbaar voor Claude Code en Codex bij lokale uitvoering op desktop.",- "features.agentProviderBinding.title": "Agent Provider Binding","features.agentSelfIteration.desc": "De assistent kan hierdoor reflecteren, zelfinzicht opbouwen en zich continu blijven verbeteren via aanhoudende pogingen en interacties.","features.agentSelfIteration.title": "Agent-zelfiteratie","features.artifactDeployment.desc": "Publiceer artefacten naar een gehoste URL en beheer releases vanuit de zijbalk van het gesprek",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Gesplitste Tabweergave","features.evalCapture.desc": "Voegt een berichtactie toe die een gespreksturn vastlegt — de voorafgaande context, invoer en het antwoord dat het heeft opgeleverd — als een evaluatietestgeval.","features.evalCapture.title": "Sla een beurt op als een evaluatiegeval",+ "features.gatewayMux.desc": "Routeer elke agentuitvoering in dit tabblad via één gedeelde gateway-WebSocket in plaats van een socket per uitvoering te openen. Herverbindingen en gebeurtenisherhalingen worden per uitvoering afgehandeld op de gedeelde verbinding.",+ "features.gatewayMux.title": "Enkele-verbinding Gateway (experimenteel)","features.groupChat.desc": "Schakel coördinatie van groepschats met meerdere agenten in.","features.groupChat.title": "Groepschat (Meerdere Agenten)","features.heteroSessionImport.desc": "Voeg een \"Importeer Lokale Agent Sessies\" optie toe aan het menu van de onderwerpenlijst: scan lokale Claude Code / Codex CLI-transcripten en importeer ze als onderwerpen, met incrementele synchronisatie bij herimport.",diff --git a/locales/nl-NL/modelRuntime.json b/locales/nl-NL/modelRuntime.jsonindex eadbad0d566..6e7721cbdd0 100644--- a/locales/nl-NL/modelRuntime.json+++ b/locales/nl-NL/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "De provider is tijdelijk overbelast of niet beschikbaar. Probeer het over een tijdje opnieuw.","QuotaLimitReached": "Sorry, het tokengebruik of het aantal verzoeken heeft de quotumlimiet voor deze sleutel bereikt. Verhoog het quotum van de sleutel of probeer het later opnieuw.","RateLimitExceeded": "Sorry, het tokengebruik of het aantal verzoeken heeft de snelheidslimiet voor deze sleutel bereikt. Probeer het later opnieuw of verhoog het quotum van de sleutel.",+ "RequestBodyTooLarge": "Dit verzoek is te groot voor de modelprovider. Maak het gesprek compacter of verminder de bijgevoegde inhoud en probeer het opnieuw.","StateStorePersistError": "Een tijdelijk probleem met de gespreksstatusopslag heeft deze bewerking onderbroken. Probeer het opnieuw; neem contact op met de ondersteuning als het probleem aanhoudt.","StateStoreReadError": "Deze bewerking kon niet worden hervat omdat de sessiestatus niet beschikbaar was. Open het gesprek opnieuw om verder te gaan; als het probleem aanhoudt, neem dan contact op met de ondersteuning.","StreamChunkError": "Fout bij het parseren van het berichtdeel van het streamingverzoek. Controleer of de huidige API-interface voldoet aan de standaardspecificaties, of neem contact op met uw API-provider voor hulp.",diff --git a/locales/nl-NL/oauth.json b/locales/nl-NL/oauth.jsonindex 354e4a0bf63..2ada607a942 100644--- a/locales/nl-NL/oauth.json+++ b/locales/nl-NL/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Terug naar Home",+ "authorizeError.code": "Foutcode",+ "authorizeError.reason.access_denied": "De autorisatie is geweigerd.",+ "authorizeError.reason.invalid_client": "Deze app kon niet worden gevonden of is uitgeschakeld.",+ "authorizeError.reason.invalid_redirect_uri": "De app vroeg om je terug te sturen naar een adres dat niet is geregistreerd, dus het verzoek is gestopt om je account te beschermen. Als je deze app ontwikkelt, voeg deze redirect-URI toe in de OAuth-appinstellingen.",+ "authorizeError.reason.invalid_request": "Het autorisatieverzoek is ongeldig of mist vereiste parameters.",+ "authorizeError.reason.invalid_scope": "De app heeft om machtigingen gevraagd die niet zijn toegestaan.",+ "authorizeError.reason.server_error": "Er is iets misgegaan aan onze kant. Probeer het later opnieuw.",+ "authorizeError.reason.unauthorized_client": "Deze app mag deze aanmeldmethode niet gebruiken.",+ "authorizeError.reason.unknown": "Het autorisatieverzoek kon niet worden voltooid.",+ "authorizeError.title": "Autorisatie Kan Niet Worden Voortgezet","consent.buttons.accept": "Toestaan","consent.buttons.deny": "Weigeren","consent.description": "De applicatie {{clientName}} vraagt toestemming om je account te gebruiken",diff --git a/locales/nl-NL/verify.json b/locales/nl-NL/verify.jsonindex 75c4bdae22c..af4ac6b91d6 100644--- a/locales/nl-NL/verify.json+++ b/locales/nl-NL/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Er is iets misgegaan bij het laden van je rapporten.","workspace.loadErrorTitle": "Kon rapporten niet laden","workspace.loadMoreError": "Kon geen extra rapporten laden",+ "workspace.pin": "Rapportlijst vastzetten","workspace.renameEmpty": "Rapporttitel mag niet leeg zijn","workspace.renameError": "Rapport hernoemen mislukt","workspace.renameSuccess": "Rapport hernoemd",diff --git a/locales/pl-PL/auth.json b/locales/pl-PL/auth.jsonindex e16a9bf4001..e911164388f 100644--- a/locales/pl-PL/auth.json+++ b/locales/pl-PL/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Usuń","oauthApp.deleteConfirm.title": "Usunąć tę aplikację?","oauthApp.detail.back": "Powrót do listy",+ "oauthApp.detail.basicInfo": "Podstawowe informacje",+ "oauthApp.detail.cancel": "Anuluj","oauthApp.detail.clientId": "ID klienta",+ "oauthApp.detail.clientSecret": "Sekret klienta","oauthApp.detail.createdAt": "Utworzono","oauthApp.detail.dangerZone": "Strefa zagrożenia","oauthApp.detail.delete": "Usuń aplikację",+ "oauthApp.detail.edit": "Edytuj","oauthApp.detail.enabled": "Włączona","oauthApp.detail.lastUsedAt": "Ostatnio używane","oauthApp.detail.neverUsed": "Nigdy nie używane",+ "oauthApp.detail.noDescription": "Brak opisu","oauthApp.detail.save": "Zapisz zmiany","oauthApp.detail.saveSuccess": "Zmiany zapisane","oauthApp.detail.title": "Szczegóły aplikacji",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Nazwa","oauthApp.form.name.placeholder": "Wprowadź nazwę aplikacji",+ "oauthApp.form.redirectUris.extra": "Każdy URI musi być dokładnym adresem URL https (http jest dozwolone tylko na localhost) i musi być dokładnie dopasowany.",+ "oauthApp.form.redirectUris.label": "URI przekierowania",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Utwórz","oauthApp.form.title": "Utwórz aplikację OAuth",+ "oauthApp.form.type.deviceDesc": "Dla interfejsów CLI i urządzeń bez przeglądarki. Użytkownicy autoryzują za pomocą kodu wyświetlanego w terminalu.",+ "oauthApp.form.type.immutable": "Typ nie może być zmieniony po utworzeniu aplikacji.",+ "oauthApp.form.type.label": "Typ aplikacji",+ "oauthApp.form.type.webDesc": "Dla aplikacji po stronie serwera. Użytkownicy są przekierowywani z powrotem do Twojej aplikacji, która uwierzytelnia się za pomocą sekretu klienta.",+ "oauthApp.form.type.webNext": "Dodasz URI przekierowania na stronie aplikacji po jej utworzeniu.","oauthApp.item.disabledTag": "Wyłączona","oauthApp.item.lastUsed": "Ostatnio używane {{time}}","oauthApp.list.actions.create": "Utwórz aplikację","oauthApp.list.actions.delete": "Usuń","oauthApp.list.empty": "Brak aplikacji OAuth. Utwórz jedną, aby rozpocząć.","oauthApp.list.neverUsed": "Nigdy nie używane",+ "oauthApp.redirectUris.add": "Dodaj URI przekierowania",+ "oauthApp.redirectUris.configure": "Konfiguruj",+ "oauthApp.redirectUris.empty": "Brak URI przekierowania. Ta aplikacja nie może być używana do logowania, dopóki nie dodasz URI.",+ "oauthApp.redirectUris.remove": "Usuń",+ "oauthApp.redirectUris.title": "URI przekierowania",+ "oauthApp.secret.copy": "Skopiuj sekret",+ "oauthApp.secret.hidden": "Ukryty po utworzeniu",+ "oauthApp.secret.onceWarning": "To jedyny moment, w którym sekret klienta jest wyświetlany. Przechowaj go w bezpiecznym miejscu przed zamknięciem.",+ "oauthApp.secret.revealTitle": "Twój sekret klienta",+ "oauthApp.secret.rotate": "Obróć",+ "oauthApp.secret.rotateConfirm.content": "Obecny sekret przestaje działać natychmiast. Każde wdrożenie nadal go używające nie będzie mogło zalogować użytkowników, dopóki go nie zaktualizujesz.",+ "oauthApp.secret.rotateConfirm.ok": "Obróć sekret",+ "oauthApp.secret.rotateConfirm.title": "Obrócić ten sekret klienta?",+ "oauthApp.secret.usage": "Wyślij go do punktu końcowego tokena jako `client_secret` w treści żądania.","oauthApp.stats.activeUsers": "Aktywni użytkownicy","oauthApp.stats.calls": "Łączna liczba wywołań","oauthApp.stats.credits": "Wykorzystane kredyty",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Statystyki użycia","oauthApp.stats.tokens": "Tokeny","oauthApp.type.badge": "Natywne · Device Flow",+ "oauthApp.type.device": "CLI / Urządzenie","oauthApp.type.deviceFlow": "Device Flow",+ "oauthApp.type.web": "Aplikacja webowa",+ "oauthApp.type.webBadge": "Web · Kod autoryzacyjny","oauthApp.validation.nameRequired": "Nazwa jest wymagana",+ "oauthApp.validation.redirectUri.credentials": "URI przekierowania nie może zawierać nazwy użytkownika ani hasła",+ "oauthApp.validation.redirectUri.fragment": "URI przekierowania nie może zawierać fragmentu (#)",+ "oauthApp.validation.redirectUri.insecure": "URI przekierowania musi używać https, z wyjątkiem localhost",+ "oauthApp.validation.redirectUri.malformed": "Wprowadź pełny, absolutny URL",+ "oauthApp.validation.redirectUri.wildcard": "Nie są dozwolone symbole wieloznaczne; URI przekierowania muszą być dokładnie dopasowane",+ "oauthApp.validation.redirectUriRequired": "Wymagany jest co najmniej jeden URI przekierowania",+ "oauthApp.validation.redirectUriTooMany": "Dozwolone jest maksymalnie {{count}} URI przekierowania","profile.account": "Konto","profile.authorizations.actions.revoke": "Cofnij","profile.authorizations.revoke.description": "Po cofnięciu narzędzie nie będzie miało dostępu do Twoich danych. Aby z niego ponownie korzystać, wymagana będzie ponowna autoryzacja.",diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.jsonindex 6f6832a27d1..55fa7c61d3d 100644--- a/locales/pl-PL/chat.json+++ b/locales/pl-PL/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} pliki","agentProfile.knowledgeBases_one": "{{count}} baza wiedzy","agentProfile.knowledgeBases_other": "{{count}} bazy wiedzy",+ "agentProfile.runtime": "Działa na {{name}}","agentProfile.skills_one": "{{count}} umiejętność","agentProfile.skills_other": "{{count}} umiejętności","agentSignal.receipts.agentSignalLabel": "Sygnał agenta",diff --git a/locales/pl-PL/error.json b/locales/pl-PL/error.jsonindex 8db9710fbee..e1f6b6c2d84 100644--- a/locales/pl-PL/error.json+++ b/locales/pl-PL/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Kliknij, aby skopiować","unknownError.desc": "Wystąpił nieoczekiwany błąd. Możesz spróbować ponownie lub zgłosić problem na","unknownError.retry": "Spróbuj Ponownie",+ "unknownError.sharedDesc": "Proszę zgłosić ten problem na",+ "unknownError.sharedTitle": "Nie można wygenerować tej odpowiedzi","unknownError.title": "Ups, żądanie zrobiło sobie drzemkę","unknownError.traceIdLabel": "Identyfikator śladu:","unlock.addProxyUrl": "Dodaj adres proxy OpenAI (opcjonalnie)",diff --git a/locales/pl-PL/file.json b/locales/pl-PL/file.jsonindex f5046d5f2ef..9de97f1664e 100644--- a/locales/pl-PL/file.json+++ b/locales/pl-PL/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Dodaj ikonę","pageEditor.autoSaveMessage": "Twoja strona jest zapisywana automatycznie. Nie musisz zapisywać ręcznie.","pageEditor.chooseIcon": "Wybierz ikonę",+ "pageEditor.comments.anchor.add": "Komentarz",+ "pageEditor.comments.anchor.label": "Cytowany tekst:",+ "pageEditor.comments.anchor.missing": "Oryginał usunięty",+ "pageEditor.comments.anchor.remove": "Usuń cytat","pageEditor.comments.attachments.add": "Dodaj","pageEditor.comments.attachments.chooseLibrary": "Wybierz z biblioteki","pageEditor.comments.author.deactivated": "Dezaktywowany użytkownik",diff --git a/locales/pl-PL/labs.json b/locales/pl-PL/labs.jsonindex d6cdf96904d..b2bfd4242e1 100644--- a/locales/pl-PL/labs.json+++ b/locales/pl-PL/labs.json@@ -2,8 +2,6 @@"description": "Te funkcje są eksperymentalne. Mogą zostać usunięte i mogą zawierać błędy. Będziemy wdzięczni za Twoją opinię podczas ich używania.","features.agentGraphConfig.desc": "Pokaż konfigurację czasu wykonywania grafu w zaawansowanych ustawieniach profilu agenta.","features.agentGraphConfig.title": "Konfiguracja czasu wykonywania grafu agenta",- "features.agentProviderBinding.desc": "Pozwól obsługiwanym lokalnym agentom korzystać z skonfigurowanego dostawcy API i modelu zamiast ich subskrypcji. Początkowo dostępne dla Claude Code i Codex w lokalnym wykonaniu na komputerze.",- "features.agentProviderBinding.title": "Powiązanie Dostawcy Agenta","features.agentSelfIteration.desc": "Pozwala asystentowi na refleksję, budowanie samoświadomości oraz ciągłe doskonalenie poprzez kolejne próby i interakcje.","features.agentSelfIteration.title": "Samoiteracja agenta","features.artifactDeployment.desc": "Publikuj artefakty na hostowanym URL i zarządzaj wydaniami z poziomu paska bocznego rozmowy",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Widok Podzielonych Zakładek","features.evalCapture.desc": "Dodaje akcję wiadomości, która zapisuje fragment rozmowy — jego wcześniejszy kontekst, wejście i odpowiedź, którą wygenerował — jako przypadek testowy oceny.","features.evalCapture.title": "Zapisz fragment jako przypadek oceny",+ "features.gatewayMux.desc": "Przekieruj każde uruchomienie agenta w tej karcie przez jedno wspólne połączenie WebSocket zamiast otwierać osobne połączenie dla każdego uruchomienia. Ponowne połączenia i odtwarzanie zdarzeń są obsługiwane dla każdego uruchomienia na wspólnym połączeniu.",+ "features.gatewayMux.title": "Bramka z pojedynczym połączeniem (eksperymentalne)","features.groupChat.desc": "Włącz koordynację czatu grupowego z wieloma agentami.","features.groupChat.title": "Czat Grupowy (Wielu Agentów)","features.heteroSessionImport.desc": "Dodaj opcję „Importuj sesje lokalnego agenta” do menu listy tematów: skanuj lokalne transkrypcje Claude Code / Codex CLI i importuj je jako tematy, z możliwością incrementalnej synchronizacji przy ponownym imporcie.",diff --git a/locales/pl-PL/modelRuntime.json b/locales/pl-PL/modelRuntime.jsonindex 696b92d72f2..9c5acc197cb 100644--- a/locales/pl-PL/modelRuntime.json+++ b/locales/pl-PL/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Dostawca jest tymczasowo przeciążony lub niedostępny. Proszę spróbować ponownie za chwilę.","QuotaLimitReached": "Przepraszamy, wykorzystanie tokenów lub liczba żądań osiągnęły limit przydziału dla tego klucza. Proszę zwiększyć przydział klucza lub spróbować ponownie później.","RateLimitExceeded": "Przepraszamy, wykorzystanie tokenów lub liczba żądań osiągnęły limit szybkości dla tego klucza. Proszę spróbować ponownie później lub zwiększyć przydział klucza.",+ "RequestBodyTooLarge": "To żądanie jest zbyt duże dla dostawcy modelu. Skróć rozmowę lub zmniejsz załączoną zawartość, a następnie spróbuj ponownie.","StateStorePersistError": "Tymczasowy problem z magazynem stanu rozmowy przerwał tę operację. Proszę spróbować ponownie; jeśli problem będzie się powtarzał, skontaktuj się z pomocą techniczną.","StateStoreReadError": "Nie można wznowić tej operacji, ponieważ stan sesji był niedostępny. Proszę ponownie otworzyć rozmowę, aby kontynuować; jeśli problem będzie się powtarzał, skontaktuj się z pomocą techniczną.","StreamChunkError": "Błąd podczas parsowania fragmentu wiadomości w żądaniu strumieniowym. Proszę sprawdzić, czy obecny interfejs API jest zgodny ze standardowymi specyfikacjami, lub skontaktować się z dostawcą API w celu uzyskania pomocy.",diff --git a/locales/pl-PL/oauth.json b/locales/pl-PL/oauth.jsonindex be085fd6dfa..aef4c6f5eef 100644--- a/locales/pl-PL/oauth.json+++ b/locales/pl-PL/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Powrót do strony głównej",+ "authorizeError.code": "Kod błędu",+ "authorizeError.reason.access_denied": "Autoryzacja została odrzucona.",+ "authorizeError.reason.invalid_client": "Nie można znaleźć tej aplikacji lub została ona wyłączona.",+ "authorizeError.reason.invalid_redirect_uri": "Aplikacja poprosiła o przekierowanie na adres, który nie został zarejestrowany, więc żądanie zostało zatrzymane w celu ochrony Twojego konta. Jeśli rozwijasz tę aplikację, dodaj ten URI przekierowania w ustawieniach aplikacji OAuth.",+ "authorizeError.reason.invalid_request": "Żądanie autoryzacji jest nieprawidłowe lub brakuje wymaganych parametrów.",+ "authorizeError.reason.invalid_scope": "Aplikacja zażądała uprawnień, których nie ma prawa żądać.",+ "authorizeError.reason.server_error": "Coś poszło nie tak po naszej stronie. Spróbuj ponownie później.",+ "authorizeError.reason.unauthorized_client": "Ta aplikacja nie ma uprawnień do korzystania z tej metody logowania.",+ "authorizeError.reason.unknown": "Nie można było zakończyć żądania autoryzacji.",+ "authorizeError.title": "Nie można kontynuować autoryzacji","consent.buttons.accept": "Autoryzuj","consent.buttons.deny": "Odmów","consent.description": "Aplikacja {{clientName}} prosi o autoryzację dostępu do Twojego konta",diff --git a/locales/pl-PL/verify.json b/locales/pl-PL/verify.jsonindex 88a50414490..f3e2b5e5695 100644--- a/locales/pl-PL/verify.json+++ b/locales/pl-PL/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Coś poszło nie tak podczas ładowania raportów.","workspace.loadErrorTitle": "Nie udało się załadować raportów","workspace.loadMoreError": "Nie udało się załadować więcej raportów",+ "workspace.pin": "Przypnij listę raportów","workspace.renameEmpty": "Tytuł raportu nie może być pusty","workspace.renameError": "Nie udało się zmienić nazwy raportu","workspace.renameSuccess": "Nazwa raportu zmieniona",diff --git a/locales/pt-BR/auth.json b/locales/pt-BR/auth.jsonindex 71e8f103823..ca98b24f341 100644--- a/locales/pt-BR/auth.json+++ b/locales/pt-BR/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Excluir","oauthApp.deleteConfirm.title": "Excluir este aplicativo?","oauthApp.detail.back": "Voltar para a lista",+ "oauthApp.detail.basicInfo": "Informações Básicas",+ "oauthApp.detail.cancel": "Cancelar","oauthApp.detail.clientId": "ID do Cliente",+ "oauthApp.detail.clientSecret": "Segredo do Cliente","oauthApp.detail.createdAt": "Criado","oauthApp.detail.dangerZone": "Zona de Perigo","oauthApp.detail.delete": "Excluir Aplicativo",+ "oauthApp.detail.edit": "Editar","oauthApp.detail.enabled": "Ativado","oauthApp.detail.lastUsedAt": "Último Uso","oauthApp.detail.neverUsed": "Nunca usado",+ "oauthApp.detail.noDescription": "Sem descrição","oauthApp.detail.save": "Salvar Alterações","oauthApp.detail.saveSuccess": "Alterações salvas","oauthApp.detail.title": "Detalhes do Aplicativo",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Nome","oauthApp.form.name.placeholder": "Por favor, insira o nome do aplicativo",+ "oauthApp.form.redirectUris.extra": "Cada URI deve ser uma URL https exata (http é permitido apenas no localhost) e é correspondida exatamente.",+ "oauthApp.form.redirectUris.label": "URIs de Redirecionamento",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Criar","oauthApp.form.title": "Criar Aplicativo OAuth",+ "oauthApp.form.type.deviceDesc": "Para CLIs e dispositivos sem navegador. Os usuários autorizam com um código exibido no terminal.",+ "oauthApp.form.type.immutable": "O tipo não pode ser alterado após a criação do aplicativo.",+ "oauthApp.form.type.label": "Tipo de Aplicativo",+ "oauthApp.form.type.webDesc": "Para aplicativos do lado do servidor. Os usuários são redirecionados de volta ao seu aplicativo, que autentica com um segredo do cliente.",+ "oauthApp.form.type.webNext": "Você adicionará URIs de redirecionamento na página do aplicativo após sua criação.","oauthApp.item.disabledTag": "Desativado","oauthApp.item.lastUsed": "Último uso {{time}}","oauthApp.list.actions.create": "Criar Aplicativo","oauthApp.list.actions.delete": "Excluir","oauthApp.list.empty": "Ainda não há aplicativos OAuth. Crie um para começar.","oauthApp.list.neverUsed": "Nunca usado",+ "oauthApp.redirectUris.add": "Adicionar URI de Redirecionamento",+ "oauthApp.redirectUris.configure": "Configurar",+ "oauthApp.redirectUris.empty": "Ainda não há URIs de redirecionamento. Este aplicativo não pode ser usado para login até que você adicione uma.",+ "oauthApp.redirectUris.remove": "Remover",+ "oauthApp.redirectUris.title": "URIs de Redirecionamento",+ "oauthApp.secret.copy": "Copiar segredo",+ "oauthApp.secret.hidden": "Oculto após a criação",+ "oauthApp.secret.onceWarning": "Esta é a única vez que o segredo do cliente será exibido. Armazene-o em um local seguro antes de fechar.",+ "oauthApp.secret.revealTitle": "Seu segredo do cliente",+ "oauthApp.secret.rotate": "Rotacionar",+ "oauthApp.secret.rotateConfirm.content": "O segredo atual para de funcionar imediatamente. Qualquer implantação que ainda o utilize falhará ao tentar autenticar usuários até que você o atualize.",+ "oauthApp.secret.rotateConfirm.ok": "Rotacionar segredo",+ "oauthApp.secret.rotateConfirm.title": "Rotacionar este segredo do cliente?",+ "oauthApp.secret.usage": "Envie-o para o endpoint de token como `client_secret` no corpo da solicitação.","oauthApp.stats.activeUsers": "Usuários Ativos","oauthApp.stats.calls": "Total de Chamadas","oauthApp.stats.credits": "Créditos Utilizados",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Estatísticas de Uso","oauthApp.stats.tokens": "Tokens","oauthApp.type.badge": "Nativo · Fluxo de Dispositivo",+ "oauthApp.type.device": "CLI / Dispositivo","oauthApp.type.deviceFlow": "Fluxo de Dispositivo",+ "oauthApp.type.web": "Aplicativo Web",+ "oauthApp.type.webBadge": "Web · Código de Autorização","oauthApp.validation.nameRequired": "O nome é obrigatório",+ "oauthApp.validation.redirectUri.credentials": "Um URI de redirecionamento não pode incorporar um nome de usuário ou senha",+ "oauthApp.validation.redirectUri.fragment": "Um URI de redirecionamento não pode conter um fragmento (#)",+ "oauthApp.validation.redirectUri.insecure": "Um URI de redirecionamento deve usar https, exceto no localhost",+ "oauthApp.validation.redirectUri.malformed": "Por favor, insira uma URL absoluta completa",+ "oauthApp.validation.redirectUri.wildcard": "Coringas não são permitidos; URIs de redirecionamento são correspondidos exatamente",+ "oauthApp.validation.redirectUriRequired": "Pelo menos um URI de redirecionamento é necessário",+ "oauthApp.validation.redirectUriTooMany": "No máximo {{count}} URIs de redirecionamento são permitidos","profile.account": "Conta","profile.authorizations.actions.revoke": "Revogar","profile.authorizations.revoke.description": "Após revogar, a ferramenta não terá mais acesso aos seus dados. Será necessário autorizar novamente para usá-la.",diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.jsonindex c796e2c649f..271e50bb6ba 100644--- a/locales/pt-BR/chat.json+++ b/locales/pt-BR/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} arquivos","agentProfile.knowledgeBases_one": "{{count}} base de conhecimento","agentProfile.knowledgeBases_other": "{{count}} bases de conhecimento",+ "agentProfile.runtime": "Executa em {{name}}","agentProfile.skills_one": "{{count}} habilidade","agentProfile.skills_other": "{{count}} habilidades","agentSignal.receipts.agentSignalLabel": "Sinal do Agente",diff --git a/locales/pt-BR/error.json b/locales/pt-BR/error.jsonindex db1849f35ad..a074edb8ea9 100644--- a/locales/pt-BR/error.json+++ b/locales/pt-BR/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Clique para copiar","unknownError.desc": "Ocorreu um erro inesperado. Você pode tentar novamente ou relatar o problema.","unknownError.retry": "Tentar Novamente",+ "unknownError.sharedDesc": "Por favor, reporte este problema em",+ "unknownError.sharedTitle": "Não foi possível gerar esta resposta","unknownError.title": "Ops, a solicitação tirou uma soneca","unknownError.traceIdLabel": "ID de Rastreamento:","unlock.addProxyUrl": "Adicionar URL de proxy do OpenAI (opcional)",diff --git a/locales/pt-BR/file.json b/locales/pt-BR/file.jsonindex b0ba7d148f1..2530d89a8a2 100644--- a/locales/pt-BR/file.json+++ b/locales/pt-BR/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Adicionar Ícone","pageEditor.autoSaveMessage": "Sua página é salva automaticamente. Não é necessário salvar manualmente.","pageEditor.chooseIcon": "Escolher Ícone",+ "pageEditor.comments.anchor.add": "Comentário",+ "pageEditor.comments.anchor.label": "Texto citado:",+ "pageEditor.comments.anchor.missing": "Original removido",+ "pageEditor.comments.anchor.remove": "Remover citação","pageEditor.comments.attachments.add": "Adicionar","pageEditor.comments.attachments.chooseLibrary": "Escolher da Biblioteca","pageEditor.comments.author.deactivated": "Usuário desativado",diff --git a/locales/pt-BR/labs.json b/locales/pt-BR/labs.jsonindex d1d02eb6310..e08e7003dc7 100644--- a/locales/pt-BR/labs.json+++ b/locales/pt-BR/labs.json@@ -2,8 +2,6 @@"description": "Esses recursos são experimentais. Podemos removê-los e eles podem conter bugs. Adoraríamos receber seu feedback enquanto os utiliza.","features.agentGraphConfig.desc": "Exibir configuração de tempo de execução do gráfico nas configurações avançadas do perfil do agente.","features.agentGraphConfig.title": "Configuração de Tempo de Execução do Gráfico do Agente",- "features.agentProviderBinding.desc": "Permita que agentes locais suportados usem um provedor de API e modelo configurado em vez de sua assinatura. Inicialmente disponível para Claude Code e Codex na execução local em desktop.",- "features.agentProviderBinding.title": "Vinculação de Provedor de Agente","features.agentSelfIteration.desc": "Permite que o assistente reflita, desenvolva autoconsciência e faça iterações contínuas por meio de tentativas e interações contínuas.","features.agentSelfIteration.title": "Autoiteração do Agente","features.artifactDeployment.desc": "Publique artefatos em uma URL hospedada e gerencie lançamentos a partir da barra lateral de conversas",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Visualização Dividida de Abas","features.evalCapture.desc": "Adiciona uma ação de mensagem que captura uma interação de conversa — seu contexto anterior, entrada e a resposta produzida — como um caso de teste de avaliação.","features.evalCapture.title": "Salvar uma interação como caso de avaliação",+ "features.gatewayMux.desc": "Roteie cada execução de agente nesta aba através de um WebSocket de gateway compartilhado em vez de abrir um socket por execução. Reconexões e reprodução de eventos são tratadas por execução na conexão compartilhada.",+ "features.gatewayMux.title": "Gateway de Conexão Única (experimental)","features.groupChat.desc": "Ative a coordenação de bate-papo em grupo com múltiplos agentes.","features.groupChat.title": "Bate-Papo em Grupo (Multiagente)","features.heteroSessionImport.desc": "Adicione uma entrada \"Importar Sessões de Agente Local\" ao menu da lista de tópicos: escaneie transcrições locais do Claude Code / Codex CLI e importe-as como tópicos, com sincronização incremental na reimportação.",diff --git a/locales/pt-BR/modelRuntime.json b/locales/pt-BR/modelRuntime.jsonindex 41b1d1f6981..3b417a87b23 100644--- a/locales/pt-BR/modelRuntime.json+++ b/locales/pt-BR/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "O provedor está temporariamente sobrecarregado ou indisponível. Por favor, tente novamente em breve.","QuotaLimitReached": "Desculpe, o uso de tokens ou a contagem de solicitações atingiu o limite de cota para esta chave. Por favor, aumente a cota da chave ou tente novamente mais tarde.","RateLimitExceeded": "Desculpe, o uso de tokens ou a contagem de solicitações atingiu o limite de taxa para esta chave. Por favor, tente novamente mais tarde ou aumente a cota da chave.",+ "RequestBodyTooLarge": "Esta solicitação é muito grande para o provedor do modelo. Compacte a conversa ou reduza o conteúdo anexado e tente novamente.","StateStorePersistError": "Um problema temporário com o armazenamento do estado da conversa interrompeu esta operação. Por favor, tente novamente; se o problema persistir, entre em contato com o suporte.","StateStoreReadError": "Esta operação não pôde ser retomada porque o estado da sessão estava indisponível. Por favor, reabra a conversa para continuar; se o problema persistir, entre em contato com o suporte.","StreamChunkError": "Erro ao analisar o fragmento de mensagem da solicitação de streaming. Por favor, verifique se a interface da API atual está em conformidade com as especificações padrão ou entre em contato com o provedor da API para obter assistência.",diff --git a/locales/pt-BR/oauth.json b/locales/pt-BR/oauth.jsonindex c043d2f2eac..5e118cbcde9 100644--- a/locales/pt-BR/oauth.json+++ b/locales/pt-BR/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Voltar para a Página Inicial",+ "authorizeError.code": "Código de Erro",+ "authorizeError.reason.access_denied": "A autorização foi negada.",+ "authorizeError.reason.invalid_client": "Este aplicativo não pôde ser encontrado ou foi desativado.",+ "authorizeError.reason.invalid_redirect_uri": "O aplicativo solicitou enviar você de volta para um endereço que não está registrado, então a solicitação foi interrompida para proteger sua conta. Se você desenvolve este aplicativo, adicione este URI de redirecionamento nas configurações do aplicativo OAuth.",+ "authorizeError.reason.invalid_request": "A solicitação de autorização está malformada ou faltam parâmetros obrigatórios.",+ "authorizeError.reason.invalid_scope": "O aplicativo solicitou permissões que não tem permissão para solicitar.",+ "authorizeError.reason.server_error": "Algo deu errado do nosso lado. Por favor, tente novamente mais tarde.",+ "authorizeError.reason.unauthorized_client": "Este aplicativo não tem permissão para usar este método de login.",+ "authorizeError.reason.unknown": "A solicitação de autorização não pôde ser concluída.",+ "authorizeError.title": "A Autorização Não Pode Continuar","consent.buttons.accept": "Autorizar","consent.buttons.deny": "Negar","consent.description": "O aplicativo {{clientName}} está solicitando autorização para acessar sua conta",diff --git a/locales/pt-BR/verify.json b/locales/pt-BR/verify.jsonindex c64be6cc1ba..d0a882809d0 100644--- a/locales/pt-BR/verify.json+++ b/locales/pt-BR/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Algo deu errado ao carregar seus relatórios.","workspace.loadErrorTitle": "Não foi possível carregar os relatórios","workspace.loadMoreError": "Não foi possível carregar mais relatórios",+ "workspace.pin": "Fixar lista de relatórios","workspace.renameEmpty": "O título do relatório não pode estar vazio","workspace.renameError": "Falha ao renomear o relatório","workspace.renameSuccess": "Relatório renomeado",diff --git a/locales/ru-RU/auth.json b/locales/ru-RU/auth.jsonindex 24ecdb9c6be..e8b2739b5f2 100644--- a/locales/ru-RU/auth.json+++ b/locales/ru-RU/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Удалить","oauthApp.deleteConfirm.title": "Удалить это приложение?","oauthApp.detail.back": "Назад к списку",+ "oauthApp.detail.basicInfo": "Основная информация",+ "oauthApp.detail.cancel": "Отмена","oauthApp.detail.clientId": "Идентификатор клиента",+ "oauthApp.detail.clientSecret": "Секрет клиента","oauthApp.detail.createdAt": "Создано","oauthApp.detail.dangerZone": "Опасная зона","oauthApp.detail.delete": "Удалить приложение",+ "oauthApp.detail.edit": "Редактировать","oauthApp.detail.enabled": "Включено","oauthApp.detail.lastUsedAt": "Последнее использование","oauthApp.detail.neverUsed": "Никогда не использовалось",+ "oauthApp.detail.noDescription": "Нет описания","oauthApp.detail.save": "Сохранить изменения","oauthApp.detail.saveSuccess": "Изменения сохранены","oauthApp.detail.title": "Детали приложения",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Логотип","oauthApp.form.name.label": "Название","oauthApp.form.name.placeholder": "Введите название приложения",+ "oauthApp.form.redirectUris.extra": "Каждый URI должен быть точным https URL (http разрешен только на localhost) и должен точно совпадать.",+ "oauthApp.form.redirectUris.label": "URI перенаправления",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Создать","oauthApp.form.title": "Создать OAuth приложение",+ "oauthApp.form.type.deviceDesc": "Для CLI и устройств без браузера. Пользователи авторизуются с помощью кода, отображаемого в терминале.",+ "oauthApp.form.type.immutable": "Тип нельзя изменить после создания приложения.",+ "oauthApp.form.type.label": "Тип приложения",+ "oauthApp.form.type.webDesc": "Для серверных приложений. Пользователи перенаправляются обратно в ваше приложение, которое аутентифицируется с помощью секрета клиента.",+ "oauthApp.form.type.webNext": "Вы добавите URI перенаправления на странице приложения после его создания.","oauthApp.item.disabledTag": "Отключено","oauthApp.item.lastUsed": "Последнее использование {{time}}","oauthApp.list.actions.create": "Создать приложение","oauthApp.list.actions.delete": "Удалить","oauthApp.list.empty": "OAuth приложения пока отсутствуют. Создайте одно, чтобы начать.","oauthApp.list.neverUsed": "Никогда не использовалось",+ "oauthApp.redirectUris.add": "Добавить URI перенаправления",+ "oauthApp.redirectUris.configure": "Настроить",+ "oauthApp.redirectUris.empty": "URI перенаправления еще не добавлены. Это приложение не может быть использовано для входа, пока вы не добавите хотя бы один.",+ "oauthApp.redirectUris.remove": "Удалить",+ "oauthApp.redirectUris.title": "URI перенаправления",+ "oauthApp.secret.copy": "Скопировать секрет",+ "oauthApp.secret.hidden": "Скрыт после создания",+ "oauthApp.secret.onceWarning": "Это единственный раз, когда секрет клиента отображается. Сохраните его в безопасном месте перед закрытием.",+ "oauthApp.secret.revealTitle": "Ваш секрет клиента",+ "oauthApp.secret.rotate": "Обновить",+ "oauthApp.secret.rotateConfirm.content": "Текущий секрет перестанет работать немедленно. Любое развертывание, которое его использует, не сможет авторизовать пользователей, пока вы не обновите его.",+ "oauthApp.secret.rotateConfirm.ok": "Обновить секрет",+ "oauthApp.secret.rotateConfirm.title": "Обновить этот секрет клиента?",+ "oauthApp.secret.usage": "Отправьте его на конечную точку токена как `client_secret` в теле запроса.","oauthApp.stats.activeUsers": "Активные пользователи","oauthApp.stats.calls": "Всего вызовов","oauthApp.stats.credits": "Использовано кредитов",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Статистика использования","oauthApp.stats.tokens": "Токены","oauthApp.type.badge": "Нативное · Device Flow",+ "oauthApp.type.device": "CLI / Устройство","oauthApp.type.deviceFlow": "Device Flow",+ "oauthApp.type.web": "Веб-приложение",+ "oauthApp.type.webBadge": "Веб · Код авторизации","oauthApp.validation.nameRequired": "Название обязательно",+ "oauthApp.validation.redirectUri.credentials": "URI перенаправления не может содержать имя пользователя или пароль",+ "oauthApp.validation.redirectUri.fragment": "URI перенаправления не может содержать фрагмент (#)",+ "oauthApp.validation.redirectUri.insecure": "URI перенаправления должен использовать https, за исключением localhost",+ "oauthApp.validation.redirectUri.malformed": "Пожалуйста, введите полный абсолютный URL",+ "oauthApp.validation.redirectUri.wildcard": "Подстановочные знаки не допускаются; URI перенаправления должны точно совпадать",+ "oauthApp.validation.redirectUriRequired": "Требуется хотя бы один URI перенаправления",+ "oauthApp.validation.redirectUriTooMany": "Разрешено не более {{count}} URI перенаправления","profile.account": "Аккаунт","profile.authorizations.actions.revoke": "Отозвать","profile.authorizations.revoke.description": "После отзыва инструмент потеряет доступ к вашим данным. Для повторного использования потребуется повторная авторизация.",diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.jsonindex ec2f4f79472..44fdcb3e17b 100644--- a/locales/ru-RU/chat.json+++ b/locales/ru-RU/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} файлов","agentProfile.knowledgeBases_one": "{{count}} база знаний","agentProfile.knowledgeBases_other": "{{count}} базы знаний",+ "agentProfile.runtime": "Работает на {{name}}","agentProfile.skills_one": "{{count}} навык","agentProfile.skills_other": "{{count}} навыков","agentSignal.receipts.agentSignalLabel": "Сигнал агента",diff --git a/locales/ru-RU/error.json b/locales/ru-RU/error.jsonindex daf8fef9a89..07de1e7efb9 100644--- a/locales/ru-RU/error.json+++ b/locales/ru-RU/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Нажмите, чтобы скопировать","unknownError.desc": "Произошла неожиданная ошибка. Вы можете повторить попытку или сообщить об этом","unknownError.retry": "Повторить",+ "unknownError.sharedDesc": "Пожалуйста, сообщите об этой проблеме на",+ "unknownError.sharedTitle": "Не удалось сгенерировать этот ответ","unknownError.title": "Упс, запрос вздремнул","unknownError.traceIdLabel": "Идентификатор трассировки:","unlock.addProxyUrl": "Добавить прокси-URL OpenAI (необязательно)",diff --git a/locales/ru-RU/file.json b/locales/ru-RU/file.jsonindex 72e760ece8c..6bd4eb829ea 100644--- a/locales/ru-RU/file.json+++ b/locales/ru-RU/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Добавить иконку","pageEditor.autoSaveMessage": "Страница сохраняется автоматически. Сохранять вручную не требуется.","pageEditor.chooseIcon": "Выбрать иконку",+ "pageEditor.comments.anchor.add": "Комментарий",+ "pageEditor.comments.anchor.label": "Цитируемый текст:",+ "pageEditor.comments.anchor.missing": "Оригинал удален",+ "pageEditor.comments.anchor.remove": "Удалить цитату","pageEditor.comments.attachments.add": "Добавить","pageEditor.comments.attachments.chooseLibrary": "Выбрать из библиотеки","pageEditor.comments.author.deactivated": "Деактивированный пользователь",diff --git a/locales/ru-RU/labs.json b/locales/ru-RU/labs.jsonindex 1e8b62e6cff..6e49623884d 100644--- a/locales/ru-RU/labs.json+++ b/locales/ru-RU/labs.json@@ -2,8 +2,6 @@"description": "Эти функции являются экспериментальными. Мы можем их удалить, и они могут содержать ошибки. Мы будем рады вашему отзыву при их использовании.","features.agentGraphConfig.desc": "Показать конфигурацию графа времени выполнения в расширенных настройках профиля агента.","features.agentGraphConfig.title": "Конфигурация времени выполнения графа агента",- "features.agentProviderBinding.desc": "Позвольте поддерживаемым локальным агентам использовать настроенного API-провайдера и модель вместо их подписки. Изначально доступно для Claude Code и Codex при локальном выполнении на компьютере.",- "features.agentProviderBinding.title": "Привязка провайдера агента","features.agentSelfIteration.desc": "Позволяет помощнику проводить самоанализ, формировать самосознание и постоянно совершенствоваться через непрерывные попытки и взаимодействия.","features.agentSelfIteration.title": "Самоитерация агента","features.artifactDeployment.desc": "Публикуйте артефакты на размещённом URL и управляйте релизами из боковой панели разговора",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Разделенный вид вкладок","features.evalCapture.desc": "Добавляет действие сообщения, которое фиксирует ход разговора — его предыдущий контекст, ввод и полученный ответ — как тестовый случай для оценки.","features.evalCapture.title": "Сохранить ход как случай оценки",+ "features.gatewayMux.desc": "Маршрутизируйте каждый запуск агента в этой вкладке через один общий шлюз WebSocket вместо открытия сокета для каждого запуска. Повторные подключения и воспроизведение событий обрабатываются для каждого запуска на общем соединении.",+ "features.gatewayMux.title": "Шлюз с одним соединением (экспериментально)","features.groupChat.desc": "Включите координацию группового чата с несколькими агентами.","features.groupChat.title": "Групповой чат (мультиагентный)","features.heteroSessionImport.desc": "Добавить пункт \"Импорт локальных сессий агента\" в меню списка тем: сканировать локальные стенограммы Claude Code / Codex CLI и импортировать их как темы, с постепенной синхронизацией при повторном импорте.",diff --git a/locales/ru-RU/modelRuntime.json b/locales/ru-RU/modelRuntime.jsonindex cbc3f03f2be..7c3cc527558 100644--- a/locales/ru-RU/modelRuntime.json+++ b/locales/ru-RU/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Провайдер временно перегружен или недоступен. Пожалуйста, повторите попытку позже.","QuotaLimitReached": "Извините, использование токенов или количество запросов достигли лимита квоты для этого ключа. Пожалуйста, увеличьте квоту ключа или повторите попытку позже.","RateLimitExceeded": "Извините, использование токенов или количество запросов достигли лимита скорости для этого ключа. Пожалуйста, повторите попытку позже или увеличьте квоту ключа.",+ "RequestBodyTooLarge": "Этот запрос слишком велик для поставщика модели. Сократите разговор или уменьшите прикрепленный контент, затем попробуйте снова.","StateStorePersistError": "Временная проблема с хранилищем состояния разговора прервала эту операцию. Пожалуйста, повторите попытку; если проблема сохраняется, свяжитесь с поддержкой.","StateStoreReadError": "Эта операция не может быть продолжена, так как состояние сеанса недоступно. Пожалуйста, откройте разговор заново, чтобы продолжить; если проблема сохраняется, обратитесь в службу поддержки.","StreamChunkError": "Ошибка при разборе фрагмента сообщения потокового запроса. Пожалуйста, проверьте, соответствует ли текущий API-интерфейс стандартным спецификациям, или свяжитесь с вашим провайдером API для получения помощи.",diff --git a/locales/ru-RU/oauth.json b/locales/ru-RU/oauth.jsonindex 2706916798b..ceae7a692ae 100644--- a/locales/ru-RU/oauth.json+++ b/locales/ru-RU/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Вернуться на главную",+ "authorizeError.code": "Код ошибки",+ "authorizeError.reason.access_denied": "Авторизация была отклонена.",+ "authorizeError.reason.invalid_client": "Это приложение не найдено или было отключено.",+ "authorizeError.reason.invalid_redirect_uri": "Приложение запросило перенаправление на адрес, который не зарегистрирован, поэтому запрос был остановлен для защиты вашей учетной записи. Если вы разрабатываете это приложение, добавьте этот URI перенаправления в его настройках OAuth.",+ "authorizeError.reason.invalid_request": "Запрос авторизации некорректен или отсутствуют обязательные параметры.",+ "authorizeError.reason.invalid_scope": "Приложение запросило разрешения, которые ему не разрешено запрашивать.",+ "authorizeError.reason.server_error": "Что-то пошло не так на нашей стороне. Пожалуйста, попробуйте позже.",+ "authorizeError.reason.unauthorized_client": "Этому приложению не разрешено использовать этот метод входа.",+ "authorizeError.reason.unknown": "Запрос авторизации не может быть выполнен.",+ "authorizeError.title": "Авторизация не может быть продолжена","consent.buttons.accept": "Разрешить","consent.buttons.deny": "Отклонить","consent.description": "Приложение {{clientName}} запрашивает доступ к вашему аккаунту",diff --git a/locales/ru-RU/verify.json b/locales/ru-RU/verify.jsonindex 8fe4819000b..1a6046b8092 100644--- a/locales/ru-RU/verify.json+++ b/locales/ru-RU/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Произошла ошибка при загрузке ваших отчетов.","workspace.loadErrorTitle": "Не удалось загрузить отчеты","workspace.loadMoreError": "Не удалось загрузить больше отчетов",+ "workspace.pin": "Закрепить список отчетов","workspace.renameEmpty": "Название отчета не может быть пустым","workspace.renameError": "Не удалось переименовать отчет","workspace.renameSuccess": "Отчет переименован",diff --git a/locales/tr-TR/auth.json b/locales/tr-TR/auth.jsonindex 78b08ef9d62..2498effae27 100644--- a/locales/tr-TR/auth.json+++ b/locales/tr-TR/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Sil","oauthApp.deleteConfirm.title": "Bu uygulamayı sil?","oauthApp.detail.back": "Listeye geri dön",+ "oauthApp.detail.basicInfo": "Temel Bilgiler",+ "oauthApp.detail.cancel": "İptal","oauthApp.detail.clientId": "Müşteri Kimliği",+ "oauthApp.detail.clientSecret": "İstemci Sırrı","oauthApp.detail.createdAt": "Oluşturulma Tarihi","oauthApp.detail.dangerZone": "Tehlike Bölgesi","oauthApp.detail.delete": "Uygulamayı Sil",+ "oauthApp.detail.edit": "Düzenle","oauthApp.detail.enabled": "Etkin","oauthApp.detail.lastUsedAt": "Son Kullanım","oauthApp.detail.neverUsed": "Hiç kullanılmadı",+ "oauthApp.detail.noDescription": "Açıklama yok","oauthApp.detail.save": "Değişiklikleri Kaydet","oauthApp.detail.saveSuccess": "Değişiklikler kaydedildi","oauthApp.detail.title": "Uygulama Detayları",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Ad","oauthApp.form.name.placeholder": "Lütfen uygulama adını girin",+ "oauthApp.form.redirectUris.extra": "Her URI tam bir https URL olmalıdır (http yalnızca localhost üzerinde izinlidir) ve tam olarak eşleşmelidir.",+ "oauthApp.form.redirectUris.label": "Yönlendirme URI'leri",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Oluştur","oauthApp.form.title": "OAuth Uygulaması Oluştur",+ "oauthApp.form.type.deviceDesc": "Tarayıcı olmayan CLI'lar ve cihazlar için. Kullanıcılar terminalde gösterilen bir kod ile yetkilendirme yapar.",+ "oauthApp.form.type.immutable": "Tür, uygulama oluşturulduktan sonra değiştirilemez.",+ "oauthApp.form.type.label": "Uygulama Türü",+ "oauthApp.form.type.webDesc": "Sunucu tarafı uygulamalar için. Kullanıcılar uygulamanıza geri yönlendirilir ve istemci sırrı ile kimlik doğrulama yapılır.",+ "oauthApp.form.type.webNext": "Uygulama oluşturulduktan sonra uygulama sayfasında yönlendirme URI'leri ekleyeceksiniz.","oauthApp.item.disabledTag": "Devre Dışı","oauthApp.item.lastUsed": "Son kullanım {{time}}","oauthApp.list.actions.create": "Uygulama Oluştur","oauthApp.list.actions.delete": "Sil","oauthApp.list.empty": "Henüz OAuth uygulaması yok. Başlamak için bir tane oluşturun.","oauthApp.list.neverUsed": "Hiç kullanılmadı",+ "oauthApp.redirectUris.add": "Yönlendirme URI'si ekle",+ "oauthApp.redirectUris.configure": "Yapılandır",+ "oauthApp.redirectUris.empty": "Henüz yönlendirme URI'si yok. Bu uygulama, bir URI eklenene kadar oturum açmak için kullanılamaz.",+ "oauthApp.redirectUris.remove": "Kaldır",+ "oauthApp.redirectUris.title": "Yönlendirme URI'leri",+ "oauthApp.secret.copy": "Sırrı kopyala",+ "oauthApp.secret.hidden": "Oluşturulduktan sonra gizlenir",+ "oauthApp.secret.onceWarning": "İstemci sırrı yalnızca bu sefer gösterilir. Kapatmadan önce güvenli bir yerde saklayın.",+ "oauthApp.secret.revealTitle": "İstemci sırrınız",+ "oauthApp.secret.rotate": "Sırrı döndür",+ "oauthApp.secret.rotateConfirm.content": "Mevcut sır hemen çalışmayı durdurur. Hâlâ bunu kullanan herhangi bir dağıtım, kullanıcıları oturum açtırmakta başarısız olur. Güncelleme yapana kadar.",+ "oauthApp.secret.rotateConfirm.ok": "Sırrı döndür",+ "oauthApp.secret.rotateConfirm.title": "Bu istemci sırrını döndürmek istiyor musunuz?",+ "oauthApp.secret.usage": "İstek gövdesinde `client_secret` olarak token uç noktasına gönderin.","oauthApp.stats.activeUsers": "Aktif Kullanıcılar","oauthApp.stats.calls": "Toplam Çağrı","oauthApp.stats.credits": "Kullanılan Krediler",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Kullanım İstatistikleri","oauthApp.stats.tokens": "Jetonlar","oauthApp.type.badge": "Yerel · Cihaz Akışı",+ "oauthApp.type.device": "CLI / Cihaz","oauthApp.type.deviceFlow": "Cihaz Akışı",+ "oauthApp.type.web": "Web Uygulaması",+ "oauthApp.type.webBadge": "Web · Yetkilendirme Kodu","oauthApp.validation.nameRequired": "Ad gereklidir",+ "oauthApp.validation.redirectUri.credentials": "Bir yönlendirme URI'si kullanıcı adı veya şifre içeremez",+ "oauthApp.validation.redirectUri.fragment": "Bir yönlendirme URI'si bir fragment (#) içeremez",+ "oauthApp.validation.redirectUri.insecure": "Bir yönlendirme URI'si https kullanmalıdır, localhost dışında",+ "oauthApp.validation.redirectUri.malformed": "Lütfen tam bir mutlak URL girin",+ "oauthApp.validation.redirectUri.wildcard": "Genel karakterlere izin verilmez; yönlendirme URI'leri tam olarak eşleşir",+ "oauthApp.validation.redirectUriRequired": "En az bir yönlendirme URI'si gereklidir",+ "oauthApp.validation.redirectUriTooMany": "En fazla {{count}} yönlendirme URI'sine izin verilir","profile.account": "Hesap","profile.authorizations.actions.revoke": "İptal Et","profile.authorizations.revoke.description": "İptal ettikten sonra, bu araç verilerinize erişemez. Yeniden kullanmak için tekrar yetkilendirme gerekir.",diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.jsonindex 8a3e9311a8c..6867bd43365 100644--- a/locales/tr-TR/chat.json+++ b/locales/tr-TR/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} dosya","agentProfile.knowledgeBases_one": "{{count}} bilgi tabanı","agentProfile.knowledgeBases_other": "{{count}} bilgi tabanı",+ "agentProfile.runtime": "{{name}} üzerinde çalışır","agentProfile.skills_one": "{{count}} beceri","agentProfile.skills_other": "{{count}} beceri","agentSignal.receipts.agentSignalLabel": "Ajan Sinyali",diff --git a/locales/tr-TR/error.json b/locales/tr-TR/error.jsonindex d18d4109747..04c1e1bb371 100644--- a/locales/tr-TR/error.json+++ b/locales/tr-TR/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Kopyalamak için tıklayın","unknownError.desc": "Beklenmedik bir hata oluştu. Tekrar deneyebilir veya bildirebilirsiniz","unknownError.retry": "Tekrar Dene",+ "unknownError.sharedDesc": "Lütfen bu sorunu bildirin",+ "unknownError.sharedTitle": "Bu yanıt oluşturulamadı","unknownError.title": "Hata, istek kısa bir mola verdi","unknownError.traceIdLabel": "İzleme Kimliği:","unlock.addProxyUrl": "OpenAI proxy URL'si ekle (isteğe bağlı)",diff --git a/locales/tr-TR/file.json b/locales/tr-TR/file.jsonindex 5bdd7a0030d..47f74a1fa39 100644--- a/locales/tr-TR/file.json+++ b/locales/tr-TR/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Simge Ekle","pageEditor.autoSaveMessage": "Sayfanız otomatik olarak kaydedilir. Manuel kaydetmenize gerek yok.","pageEditor.chooseIcon": "Simge Seç",+ "pageEditor.comments.anchor.add": "Yorum",+ "pageEditor.comments.anchor.label": "Alıntılanan metin:",+ "pageEditor.comments.anchor.missing": "Orijinal kaldırıldı",+ "pageEditor.comments.anchor.remove": "Alıntıyı kaldır","pageEditor.comments.attachments.add": "Ekle","pageEditor.comments.attachments.chooseLibrary": "Kütüphaneden Seç","pageEditor.comments.author.deactivated": "Devre dışı bırakılmış kullanıcı",diff --git a/locales/tr-TR/labs.json b/locales/tr-TR/labs.jsonindex ebb8e65b6b1..387869721b9 100644--- a/locales/tr-TR/labs.json+++ b/locales/tr-TR/labs.json@@ -2,8 +2,6 @@"description": "Bu özellikler deneyseldir. Kaldırılabilirler ve hatalar içerebilirler. Kullanırken geri bildirimlerinizi memnuniyetle karşılarız.","features.agentGraphConfig.desc": "Bir ajan profilinin gelişmiş ayarlarında grafik çalışma zamanı yapılandırmasını göster.","features.agentGraphConfig.title": "Ajan Grafik Çalışma Zamanı Yapılandırması",- "features.agentProviderBinding.desc": "Desteklenen yerel ajanların abonelikleri yerine yapılandırılmış bir API sağlayıcısını ve modeli kullanmasına izin verin. Başlangıçta Claude Code ve Codex için Masaüstü yerel yürütmede kullanılabilir.",- "features.agentProviderBinding.title": "Ajan Sağlayıcı Bağlama","features.agentSelfIteration.desc": "Ajanın düşünmesini, öz farkındalık geliştirmesini ve devam eden denemeler ile etkileşimler boyunca sürekli yineleme yapmasını sağlar.","features.agentSelfIteration.title": "Ajanın Kendi Kendine Yinelemesi","features.artifactDeployment.desc": "Artifaktleri barındırılan bir URL'ye yayınlayın ve sürümleri sohbet kenar çubuğundan yönetin",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Sekme Bölme Görünümü","features.evalCapture.desc": "Bir konuşma turunu — önceki bağlamı, girdi ve ürettiği cevabı — bir değerlendirme test vakası olarak yakalayan bir mesaj eylemi ekler.","features.evalCapture.title": "Bir turu değerlendirme vakası olarak kaydet",+ "features.gatewayMux.desc": "Bu sekmede her ajan çalışmasını, her çalıştırma için ayrı bir soket açmak yerine, paylaşılan bir ağ geçidi WebSocket üzerinden yönlendirin. Yeniden bağlantılar ve olay tekrarları, paylaşılan bağlantı üzerinde çalıştırma başına işlenir.",+ "features.gatewayMux.title": "Tek Bağlantılı Ağ Geçidi (deneysel)","features.groupChat.desc": "Çoklu ajan grup sohbeti koordinasyonunu etkinleştirin.","features.groupChat.title": "Grup Sohbeti (Çoklu Ajan)","features.heteroSessionImport.desc": "Konu listesi menüsüne \"Yerel Ajan Oturumlarını İçe Aktar\" seçeneği ekleyin: yerel Claude Code / Codex CLI transkriptlerini tarayın ve bunları konular olarak içe aktarın, yeniden içe aktarma sırasında artımlı senkronizasyon sağlayın.",diff --git a/locales/tr-TR/modelRuntime.json b/locales/tr-TR/modelRuntime.jsonindex 49add93a383..50f8f8fd590 100644--- a/locales/tr-TR/modelRuntime.json+++ b/locales/tr-TR/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Sağlayıcı geçici olarak aşırı yüklenmiş veya kullanılamıyor. Lütfen kısa bir süre sonra yeniden deneyin.","QuotaLimitReached": "Üzgünüz, jeton kullanımı veya istek sayısı bu anahtar için kota sınırına ulaştı. Lütfen anahtarın kotasını artırın veya daha sonra yeniden deneyin.","RateLimitExceeded": "Üzgünüz, jeton kullanımı veya istek sayısı bu anahtar için hız sınırına ulaştı. Lütfen daha sonra yeniden deneyin veya anahtarın kotasını artırın.",+ "RequestBodyTooLarge": "Bu istek model sağlayıcısı için çok büyük. Konuşmayı sıkıştırın veya ekli içeriği azaltın, ardından tekrar deneyin.","StateStorePersistError": "Konuşma durumu deposundaki geçici bir sorun bu işlemi kesintiye uğrattı. Lütfen yeniden deneyin; devam ederse destekle iletişime geçin.","StateStoreReadError": "Bu işlem devam ettirilemedi çünkü oturum durumu kullanılamıyordu. Devam etmek için lütfen konuşmayı yeniden açın; sorun devam ederse, destek ile iletişime geçin.","StreamChunkError": "Akış isteğinin mesaj parçası ayrıştırılırken hata oluştu. Lütfen mevcut API arayüzünün standart spesifikasyonlara uygun olup olmadığını kontrol edin veya API sağlayıcınızdan yardım alın.",diff --git a/locales/tr-TR/oauth.json b/locales/tr-TR/oauth.jsonindex c47f3bbc12d..a41a9d7e1ac 100644--- a/locales/tr-TR/oauth.json+++ b/locales/tr-TR/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Ana Sayfaya Dön",+ "authorizeError.code": "Hata kodu",+ "authorizeError.reason.access_denied": "Yetkilendirme reddedildi.",+ "authorizeError.reason.invalid_client": "Bu uygulama bulunamadı veya devre dışı bırakıldı.",+ "authorizeError.reason.invalid_redirect_uri": "Uygulama, sizi kayıtlı olmayan bir adrese geri göndermeyi istedi, bu nedenle hesabınızı korumak için istek durduruldu. Bu uygulamayı geliştiriyorsanız, OAuth uygulama ayarlarında bu yönlendirme URI'sini ekleyin.",+ "authorizeError.reason.invalid_request": "Yetkilendirme isteği hatalı veya gerekli parametreler eksik.",+ "authorizeError.reason.invalid_scope": "Uygulama, talep etmesine izin verilmeyen izinleri talep etti.",+ "authorizeError.reason.server_error": "Bizim tarafımızda bir şeyler ters gitti. Lütfen daha sonra tekrar deneyin.",+ "authorizeError.reason.unauthorized_client": "Bu uygulamanın bu oturum açma yöntemini kullanmasına izin verilmiyor.",+ "authorizeError.reason.unknown": "Yetkilendirme isteği tamamlanamadı.",+ "authorizeError.title": "Yetkilendirme Devam Edemiyor","consent.buttons.accept": "Yetkilendir","consent.buttons.deny": "Reddet","consent.description": "{{clientName}} uygulaması hesabınız için yetkilendirme talep ediyor",diff --git a/locales/tr-TR/verify.json b/locales/tr-TR/verify.jsonindex cdb26c6d525..04b1ff154d5 100644--- a/locales/tr-TR/verify.json+++ b/locales/tr-TR/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Raporlarınızı yüklerken bir şeyler ters gitti.","workspace.loadErrorTitle": "Raporlar yüklenemedi","workspace.loadMoreError": "Daha fazla rapor yüklenemedi",+ "workspace.pin": "Rapor listesini sabitle","workspace.renameEmpty": "Rapor başlığı boş olamaz","workspace.renameError": "Rapor yeniden adlandırılamadı","workspace.renameSuccess": "Rapor yeniden adlandırıldı",diff --git a/locales/vi-VN/auth.json b/locales/vi-VN/auth.jsonindex ddb470c4391..0c13b00a041 100644--- a/locales/vi-VN/auth.json+++ b/locales/vi-VN/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "Xóa","oauthApp.deleteConfirm.title": "Xóa ứng dụng này?","oauthApp.detail.back": "Quay lại danh sách",+ "oauthApp.detail.basicInfo": "Thông tin cơ bản",+ "oauthApp.detail.cancel": "Hủy","oauthApp.detail.clientId": "ID khách hàng",+ "oauthApp.detail.clientSecret": "Mã bí mật của ứng dụng","oauthApp.detail.createdAt": "Đã tạo","oauthApp.detail.dangerZone": "Khu vực nguy hiểm","oauthApp.detail.delete": "Xóa ứng dụng",+ "oauthApp.detail.edit": "Chỉnh sửa","oauthApp.detail.enabled": "Đã bật","oauthApp.detail.lastUsedAt": "Lần sử dụng cuối","oauthApp.detail.neverUsed": "Chưa từng sử dụng",+ "oauthApp.detail.noDescription": "Không có mô tả","oauthApp.detail.save": "Lưu thay đổi","oauthApp.detail.saveSuccess": "Thay đổi đã được lưu","oauthApp.detail.title": "Chi tiết ứng dụng",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "Logo","oauthApp.form.name.label": "Tên","oauthApp.form.name.placeholder": "Vui lòng nhập tên ứng dụng",+ "oauthApp.form.redirectUris.extra": "Mỗi URI phải là một URL https chính xác (http chỉ được phép trên localhost) và được khớp chính xác.",+ "oauthApp.form.redirectUris.label": "URI chuyển hướng",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "Tạo","oauthApp.form.title": "Tạo ứng dụng OAuth",+ "oauthApp.form.type.deviceDesc": "Dành cho các CLI và thiết bị không có trình duyệt. Người dùng ủy quyền bằng mã hiển thị trong terminal.",+ "oauthApp.form.type.immutable": "Loại không thể thay đổi sau khi ứng dụng được tạo.",+ "oauthApp.form.type.label": "Loại ứng dụng",+ "oauthApp.form.type.webDesc": "Dành cho các ứng dụng phía máy chủ. Người dùng được chuyển hướng trở lại ứng dụng của bạn, ứng dụng này xác thực bằng mã bí mật của ứng dụng.",+ "oauthApp.form.type.webNext": "Bạn sẽ thêm URI chuyển hướng trên trang ứng dụng sau khi nó được tạo.","oauthApp.item.disabledTag": "Đã tắt","oauthApp.item.lastUsed": "Lần sử dụng cuối {{time}}","oauthApp.list.actions.create": "Tạo ứng dụng","oauthApp.list.actions.delete": "Xóa","oauthApp.list.empty": "Chưa có ứng dụng OAuth nào. Tạo một ứng dụng để bắt đầu.","oauthApp.list.neverUsed": "Chưa từng sử dụng",+ "oauthApp.redirectUris.add": "Thêm URI chuyển hướng",+ "oauthApp.redirectUris.configure": "Cấu hình",+ "oauthApp.redirectUris.empty": "Chưa có URI chuyển hướng. Ứng dụng này không thể được sử dụng để đăng nhập cho đến khi bạn thêm một URI.",+ "oauthApp.redirectUris.remove": "Xóa",+ "oauthApp.redirectUris.title": "URI chuyển hướng",+ "oauthApp.secret.copy": "Sao chép mã bí mật",+ "oauthApp.secret.hidden": "Ẩn sau khi tạo",+ "oauthApp.secret.onceWarning": "Đây là lần duy nhất mã bí mật của ứng dụng được hiển thị. Lưu trữ nó ở nơi an toàn trước khi đóng.",+ "oauthApp.secret.revealTitle": "Mã bí mật của ứng dụng của bạn",+ "oauthApp.secret.rotate": "Thay đổi",+ "oauthApp.secret.rotateConfirm.content": "Mã bí mật hiện tại sẽ ngừng hoạt động ngay lập tức. Bất kỳ triển khai nào vẫn sử dụng nó sẽ không thể đăng nhập người dùng cho đến khi bạn cập nhật.",+ "oauthApp.secret.rotateConfirm.ok": "Thay đổi mã bí mật",+ "oauthApp.secret.rotateConfirm.title": "Thay đổi mã bí mật của ứng dụng này?",+ "oauthApp.secret.usage": "Gửi nó đến endpoint token dưới dạng `client_secret` trong phần thân yêu cầu.","oauthApp.stats.activeUsers": "Người dùng đang hoạt động","oauthApp.stats.calls": "Tổng số cuộc gọi","oauthApp.stats.credits": "Tín dụng đã sử dụng",@@ -268,8 +295,18 @@"oauthApp.stats.title": "Thống kê sử dụng","oauthApp.stats.tokens": "Token","oauthApp.type.badge": "Bản địa · Device Flow",+ "oauthApp.type.device": "CLI / Thiết bị","oauthApp.type.deviceFlow": "Device Flow",+ "oauthApp.type.web": "Ứng dụng Web",+ "oauthApp.type.webBadge": "Web · Mã ủy quyền","oauthApp.validation.nameRequired": "Tên là bắt buộc",+ "oauthApp.validation.redirectUri.credentials": "Một URI chuyển hướng không thể nhúng tên người dùng hoặc mật khẩu",+ "oauthApp.validation.redirectUri.fragment": "Một URI chuyển hướng không thể chứa một đoạn (#)",+ "oauthApp.validation.redirectUri.insecure": "Một URI chuyển hướng phải sử dụng https, ngoại trừ trên localhost",+ "oauthApp.validation.redirectUri.malformed": "Vui lòng nhập một URL đầy đủ và tuyệt đối",+ "oauthApp.validation.redirectUri.wildcard": "Không được phép sử dụng ký tự đại diện; URI chuyển hướng phải được khớp chính xác",+ "oauthApp.validation.redirectUriRequired": "Ít nhất một URI chuyển hướng là bắt buộc",+ "oauthApp.validation.redirectUriTooMany": "Tối đa {{count}} URI chuyển hướng được phép","profile.account": "Tài khoản","profile.authorizations.actions.revoke": "Thu hồi","profile.authorizations.revoke.description": "Sau khi thu hồi, công cụ sẽ không còn quyền truy cập dữ liệu của bạn. Cần cấp quyền lại để sử dụng.",diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.jsonindex fb98e0f50e8..efbb407a848 100644--- a/locales/vi-VN/chat.json+++ b/locales/vi-VN/chat.json@@ -38,6 +38,7 @@"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.runtime": "Chạy trên {{name}}","agentProfile.skills_one": "{{count}} kỹ năng","agentProfile.skills_other": "{{count}} kỹ năng","agentSignal.receipts.agentSignalLabel": "Tín hiệu Đại lý",diff --git a/locales/vi-VN/error.json b/locales/vi-VN/error.jsonindex f367a6fb884..63102c1f5d6 100644--- a/locales/vi-VN/error.json+++ b/locales/vi-VN/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "Nhấn để sao chép","unknownError.desc": "Đã xảy ra lỗi không mong muốn. Bạn có thể thử lại hoặc báo cáo tại","unknownError.retry": "Thử lại",+ "unknownError.sharedDesc": "Vui lòng báo cáo vấn đề này tại",+ "unknownError.sharedTitle": "Không thể tạo câu trả lời này","unknownError.title": "Rất tiếc, yêu cầu đã tạm nghỉ","unknownError.traceIdLabel": "ID Dấu vết:","unlock.addProxyUrl": "Thêm URL proxy OpenAI (tùy chọn)",diff --git a/locales/vi-VN/file.json b/locales/vi-VN/file.jsonindex 31e15c84bd4..1146209034b 100644--- a/locales/vi-VN/file.json+++ b/locales/vi-VN/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "Thêm Biểu Tượng","pageEditor.autoSaveMessage": "Trang của bạn được lưu tự động. Không cần lưu thủ công.","pageEditor.chooseIcon": "Chọn Biểu Tượng",+ "pageEditor.comments.anchor.add": "Bình luận",+ "pageEditor.comments.anchor.label": "Văn bản trích dẫn:",+ "pageEditor.comments.anchor.missing": "Đã xóa bản gốc",+ "pageEditor.comments.anchor.remove": "Xóa trích dẫn","pageEditor.comments.attachments.add": "Thêm","pageEditor.comments.attachments.chooseLibrary": "Chọn từ Thư viện","pageEditor.comments.author.deactivated": "Người dùng đã bị vô hiệu hóa",diff --git a/locales/vi-VN/labs.json b/locales/vi-VN/labs.jsonindex 399c17464d0..e430debdbf8 100644--- a/locales/vi-VN/labs.json+++ b/locales/vi-VN/labs.json@@ -2,8 +2,6 @@"description": "Những tính năng này đang trong giai đoạn thử nghiệm. Chúng tôi có thể loại bỏ chúng, và chúng có thể gặp lỗi. Chúng tôi rất mong nhận được phản hồi từ bạn khi sử dụng chúng.","features.agentGraphConfig.desc": "Hiển thị cấu hình thời gian chạy đồ thị trong cài đặt nâng cao của hồ sơ tác nhân.","features.agentGraphConfig.title": "Cấu Hình Thời Gian Chạy Đồ Thị Tác Nhân",- "features.agentProviderBinding.desc": "Cho phép các tác nhân cục bộ được hỗ trợ sử dụng nhà cung cấp API và mô hình đã cấu hình thay vì đăng ký của họ. Ban đầu có sẵn cho Claude Code và Codex trên thực thi cục bộ trên máy tính để bàn.",- "features.agentProviderBinding.title": "Liên kết Nhà cung cấp Tác nhân","features.agentSelfIteration.desc": "Cho phép trợ lý tự phản tư, xây dựng khả năng tự nhận thức và liên tục cải thiện thông qua các nỗ lực và tương tác đang diễn ra.","features.agentSelfIteration.title": "Tự lặp của tác nhân","features.artifactDeployment.desc": "Xuất bản các tệp hiện vật lên một URL được lưu trữ và quản lý các phiên bản từ thanh bên cuộc trò chuyện",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "Chế độ Xem Tab Chia","features.evalCapture.desc": "Thêm một hành động tin nhắn để ghi lại một lượt hội thoại — bao gồm ngữ cảnh trước đó, đầu vào và câu trả lời đã tạo ra — làm một trường hợp kiểm tra đánh giá.","features.evalCapture.title": "Lưu một lượt làm trường hợp đánh giá",+ "features.gatewayMux.desc": "Định tuyến mọi lần chạy của agent trong tab này qua một WebSocket gateway chung thay vì mở một socket cho mỗi lần chạy. Kết nối lại và phát lại sự kiện được xử lý cho mỗi lần chạy trên kết nối chung.",+ "features.gatewayMux.title": "Gateway kết nối đơn (thử nghiệm)","features.groupChat.desc": "Kích hoạt phối hợp trò chuyện nhóm với nhiều tác nhân.","features.groupChat.title": "Trò Chuyện Nhóm (Đa Tác Nhân)","features.heteroSessionImport.desc": "Thêm mục \"Nhập phiên làm việc của đại lý cục bộ\" vào menu danh sách chủ đề: quét các bản ghi Claude Code / Codex CLI cục bộ và nhập chúng dưới dạng chủ đề, với đồng bộ hóa gia tăng khi nhập lại.",diff --git a/locales/vi-VN/modelRuntime.json b/locales/vi-VN/modelRuntime.jsonindex f4e257980e5..9844ea16dd3 100644--- a/locales/vi-VN/modelRuntime.json+++ b/locales/vi-VN/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "Nhà cung cấp tạm thời quá tải hoặc không khả dụng. Vui lòng thử lại sau.","QuotaLimitReached": "Rất tiếc, việc sử dụng token hoặc số lượng yêu cầu đã đạt đến giới hạn hạn mức cho khóa này. Vui lòng tăng hạn mức của khóa hoặc thử lại sau.","RateLimitExceeded": "Rất tiếc, việc sử dụng token hoặc số lượng yêu cầu đã đạt đến giới hạn tốc độ cho khóa này. Vui lòng thử lại sau hoặc tăng hạn mức của khóa.",+ "RequestBodyTooLarge": "Yêu cầu này quá lớn đối với nhà cung cấp mô hình. Hãy thu gọn cuộc trò chuyện hoặc giảm nội dung đính kèm, sau đó thử lại.","StateStorePersistError": "Một vấn đề tạm thời với kho lưu trữ trạng thái hội thoại đã làm gián đoạn hoạt động này. Vui lòng thử lại; nếu vấn đề vẫn tiếp diễn, hãy liên hệ với bộ phận hỗ trợ.","StateStoreReadError": "Không thể tiếp tục thao tác này vì trạng thái phiên không khả dụng. Vui lòng mở lại cuộc trò chuyện để tiếp tục; nếu vấn đề vẫn xảy ra, hãy liên hệ với bộ phận hỗ trợ.","StreamChunkError": "Lỗi phân tích đoạn tin nhắn của yêu cầu streaming. Vui lòng kiểm tra xem giao diện API hiện tại có tuân thủ các tiêu chuẩn quy định hay không, hoặc liên hệ với nhà cung cấp API của bạn để được hỗ trợ.",diff --git a/locales/vi-VN/oauth.json b/locales/vi-VN/oauth.jsonindex 4695d76e34c..6ed90aac21a 100644--- a/locales/vi-VN/oauth.json+++ b/locales/vi-VN/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "Quay lại Trang chủ",+ "authorizeError.code": "Mã lỗi",+ "authorizeError.reason.access_denied": "Quyền truy cập đã bị từ chối.",+ "authorizeError.reason.invalid_client": "Ứng dụng này không thể được tìm thấy hoặc đã bị vô hiệu hóa.",+ "authorizeError.reason.invalid_redirect_uri": "Ứng dụng yêu cầu gửi bạn trở lại một địa chỉ mà nó chưa đăng ký, vì vậy yêu cầu đã bị dừng để bảo vệ tài khoản của bạn. Nếu bạn phát triển ứng dụng này, hãy thêm URI chuyển hướng này vào cài đặt ứng dụng OAuth của nó.",+ "authorizeError.reason.invalid_request": "Yêu cầu ủy quyền bị sai định dạng hoặc thiếu các tham số cần thiết.",+ "authorizeError.reason.invalid_scope": "Ứng dụng yêu cầu các quyền mà nó không được phép yêu cầu.",+ "authorizeError.reason.server_error": "Có lỗi xảy ra từ phía chúng tôi. Vui lòng thử lại sau.",+ "authorizeError.reason.unauthorized_client": "Ứng dụng này không được phép sử dụng phương thức đăng nhập này.",+ "authorizeError.reason.unknown": "Yêu cầu ủy quyền không thể hoàn thành.",+ "authorizeError.title": "Không thể Tiếp tục Ủy quyền","consent.buttons.accept": "Cho phép","consent.buttons.deny": "Từ chối","consent.description": "Ứng dụng {{clientName}} đang yêu cầu quyền truy cập vào tài khoản của bạn",diff --git a/locales/vi-VN/verify.json b/locales/vi-VN/verify.jsonindex cac944ec70e..7bd4c31d316 100644--- a/locales/vi-VN/verify.json+++ b/locales/vi-VN/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "Đã xảy ra lỗi khi tải báo cáo của bạn.","workspace.loadErrorTitle": "Không thể tải báo cáo","workspace.loadMoreError": "Không thể tải thêm báo cáo",+ "workspace.pin": "Ghim danh sách báo cáo","workspace.renameEmpty": "Tiêu đề báo cáo không được để trống","workspace.renameError": "Không thể đổi tên báo cáo","workspace.renameSuccess": "Đã đổi tên báo cáo",diff --git a/locales/zh-CN/file.json b/locales/zh-CN/file.jsonindex 110becf88b1..7149234daff 100644--- a/locales/zh-CN/file.json+++ b/locales/zh-CN/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "添加图标","pageEditor.autoSaveMessage": "文稿会自动保存,无需手动保存","pageEditor.chooseIcon": "选择图标",+ "pageEditor.comments.anchor.add": "评论",+ "pageEditor.comments.anchor.label": "引用原文:",+ "pageEditor.comments.anchor.missing": "原文已删除",+ "pageEditor.comments.anchor.remove": "移除引用","pageEditor.comments.attachments.add": "添加","pageEditor.comments.attachments.chooseLibrary": "从文件库选择","pageEditor.comments.author.deactivated": "已停用用户",diff --git a/locales/zh-TW/auth.json b/locales/zh-TW/auth.jsonindex 6a70bc267cc..4293cd071c2 100644--- a/locales/zh-TW/auth.json+++ b/locales/zh-TW/auth.json@@ -235,13 +235,18 @@"oauthApp.deleteConfirm.ok": "刪除","oauthApp.deleteConfirm.title": "刪除此應用程式?","oauthApp.detail.back": "返回列表",+ "oauthApp.detail.basicInfo": "基本資訊",+ "oauthApp.detail.cancel": "取消","oauthApp.detail.clientId": "客戶端 ID",+ "oauthApp.detail.clientSecret": "用戶端密鑰","oauthApp.detail.createdAt": "建立時間","oauthApp.detail.dangerZone": "危險區域","oauthApp.detail.delete": "刪除應用程式",+ "oauthApp.detail.edit": "編輯","oauthApp.detail.enabled": "已啟用","oauthApp.detail.lastUsedAt": "上次使用時間","oauthApp.detail.neverUsed": "從未使用",+ "oauthApp.detail.noDescription": "無描述","oauthApp.detail.save": "儲存變更","oauthApp.detail.saveSuccess": "變更已儲存","oauthApp.detail.title": "應用程式詳細資訊",@@ -251,14 +256,36 @@"oauthApp.form.logo.label": "標誌","oauthApp.form.name.label": "名稱","oauthApp.form.name.placeholder": "請輸入應用程式名稱",+ "oauthApp.form.redirectUris.extra": "每個 URI 必須是精確的 https URL(僅在 localhost 上允許 http),並且必須完全匹配。",+ "oauthApp.form.redirectUris.label": "重定向 URI",+ "oauthApp.form.redirectUris.placeholder": "https://example.com/api/auth/callback","oauthApp.form.submit": "建立","oauthApp.form.title": "建立 OAuth 應用程式",+ "oauthApp.form.type.deviceDesc": "適用於無瀏覽器的 CLI 和設備。用戶使用終端中顯示的代碼進行授權。",+ "oauthApp.form.type.immutable": "應用程式類型在建立後無法更改。",+ "oauthApp.form.type.label": "應用程式類型",+ "oauthApp.form.type.webDesc": "適用於伺服器端應用程式。用戶被重定向回您的應用程式,並使用用戶端密鑰進行身份驗證。",+ "oauthApp.form.type.webNext": "應用程式建立後,您將在應用程式頁面上新增重定向 URI。","oauthApp.item.disabledTag": "已停用","oauthApp.item.lastUsed": "上次使用時間 {{time}}","oauthApp.list.actions.create": "建立應用程式","oauthApp.list.actions.delete": "刪除","oauthApp.list.empty": "尚無 OAuth 應用程式。建立一個以開始使用。","oauthApp.list.neverUsed": "從未使用",+ "oauthApp.redirectUris.add": "新增重定向 URI",+ "oauthApp.redirectUris.configure": "配置",+ "oauthApp.redirectUris.empty": "尚無重定向 URI。在新增重定向 URI 之前,此應用程式無法用於登入。",+ "oauthApp.redirectUris.remove": "移除",+ "oauthApp.redirectUris.title": "重定向 URI",+ "oauthApp.secret.copy": "複製密鑰",+ "oauthApp.secret.hidden": "建立後隱藏",+ "oauthApp.secret.onceWarning": "這是唯一一次顯示用戶端密鑰。在關閉之前,請將其安全地存儲起來。",+ "oauthApp.secret.revealTitle": "您的用戶端密鑰",+ "oauthApp.secret.rotate": "旋轉",+ "oauthApp.secret.rotateConfirm.content": "當前密鑰將立即停止工作。任何仍在使用它的部署將無法登入用戶,直到您更新它。",+ "oauthApp.secret.rotateConfirm.ok": "旋轉密鑰",+ "oauthApp.secret.rotateConfirm.title": "旋轉此用戶端密鑰?",+ "oauthApp.secret.usage": "將其作為 `client_secret` 發送到請求正文中的令牌端點。","oauthApp.stats.activeUsers": "活躍使用者","oauthApp.stats.calls": "總呼叫次數","oauthApp.stats.credits": "已使用點數",@@ -268,8 +295,18 @@"oauthApp.stats.title": "使用統計","oauthApp.stats.tokens": "令牌","oauthApp.type.badge": "原生 · 裝置流程",+ "oauthApp.type.device": "CLI / 設備","oauthApp.type.deviceFlow": "裝置流程",+ "oauthApp.type.web": "網頁應用程式",+ "oauthApp.type.webBadge": "網頁 · 授權碼","oauthApp.validation.nameRequired": "名稱為必填項目",+ "oauthApp.validation.redirectUri.credentials": "重定向 URI 不能嵌入用戶名或密碼",+ "oauthApp.validation.redirectUri.fragment": "重定向 URI 不能包含片段 (#)",+ "oauthApp.validation.redirectUri.insecure": "重定向 URI 必須使用 https,除非在 localhost 上",+ "oauthApp.validation.redirectUri.malformed": "請輸入完整的絕對 URL",+ "oauthApp.validation.redirectUri.wildcard": "不允許使用通配符;重定向 URI 必須完全匹配",+ "oauthApp.validation.redirectUriRequired": "至少需要一個重定向 URI",+ "oauthApp.validation.redirectUriTooMany": "最多允許 {{count}} 個重定向 URI","profile.account": "帳戶","profile.authorizations.actions.revoke": "取消授權","profile.authorizations.revoke.description": "取消授權後,該工具將無法存取您的資料。如需再次使用,需重新授權。",diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.jsonindex 1d7946f120e..ebb7a8efbec 100644--- a/locales/zh-TW/chat.json+++ b/locales/zh-TW/chat.json@@ -38,6 +38,7 @@"agentProfile.files_other": "{{count}} 個檔案","agentProfile.knowledgeBases_one": "{{count}} 個知識庫","agentProfile.knowledgeBases_other": "{{count}} 個知識庫",+ "agentProfile.runtime": "運行於 {{name}}","agentProfile.skills_one": "{{count}} 項技能","agentProfile.skills_other": "{{count}} 項技能","agentSignal.receipts.agentSignalLabel": "代理信號",diff --git a/locales/zh-TW/error.json b/locales/zh-TW/error.jsonindex c49c3fa6e84..9f8203dc46c 100644--- a/locales/zh-TW/error.json+++ b/locales/zh-TW/error.json@@ -143,6 +143,8 @@"unknownError.copyTraceIdTooltip": "點擊以複製","unknownError.desc": "發生了意外錯誤。您可以重試或進行報告。","unknownError.retry": "重試",+ "unknownError.sharedDesc": "請在此回報此問題",+ "unknownError.sharedTitle": "無法生成此答案","unknownError.title": "哎呀,請求打了個盹","unknownError.traceIdLabel": "追蹤 ID:","unlock.addProxyUrl": "新增 OpenAI 代理網址(選填)",diff --git a/locales/zh-TW/file.json b/locales/zh-TW/file.jsonindex 8091e4bdc5e..efe329d2b0e 100644--- a/locales/zh-TW/file.json+++ b/locales/zh-TW/file.json@@ -94,6 +94,10 @@"pageEditor.addIcon": "新增圖示","pageEditor.autoSaveMessage": "文稿會自動儲存,無需手動儲存","pageEditor.chooseIcon": "選擇圖示",+ "pageEditor.comments.anchor.add": "評論",+ "pageEditor.comments.anchor.label": "引用文字:",+ "pageEditor.comments.anchor.missing": "原文已移除",+ "pageEditor.comments.anchor.remove": "移除引用","pageEditor.comments.attachments.add": "新增","pageEditor.comments.attachments.chooseLibrary": "從資料庫選擇","pageEditor.comments.author.deactivated": "已停用的使用者",diff --git a/locales/zh-TW/labs.json b/locales/zh-TW/labs.jsonindex d1864d97c70..3a53106247b 100644--- a/locales/zh-TW/labs.json+++ b/locales/zh-TW/labs.json@@ -2,8 +2,6 @@"description": "這些功能是實驗性的。我們可能會移除它們,而且它們可能存在錯誤。在使用過程中,我們非常期待您的回饋。","features.agentGraphConfig.desc": "在代理配置檔的進階設定中顯示圖形運行時配置。","features.agentGraphConfig.title": "代理圖形運行時配置",- "features.agentProviderBinding.desc": "讓支援的本地代理使用已配置的 API 提供者和模型,而不是使用它們的訂閱。最初僅適用於 Claude Code 和 Codex 的桌面本地執行。",- "features.agentProviderBinding.title": "代理提供者綁定","features.agentSelfIteration.desc": "允許助理進行反思、建立自我認知,並透過持續的嘗試與互動不斷迭代提升。","features.agentSelfIteration.title": "代理自我迭代","features.artifactDeployment.desc": "將工件發佈到託管的 URL,並從對話側邊欄管理版本",@@ -18,6 +16,8 @@"features.desktopSplitView.title": "分割標籤檢視","features.evalCapture.desc": "新增一個訊息操作,可捕捉對話輪次——包括其先前的上下文、輸入及生成的回答——作為評估測試案例。","features.evalCapture.title": "儲存對話輪次作為評估案例",+ "features.gatewayMux.desc": "將此標籤中的每個代理執行通過一個共享的網關 WebSocket 路由,而不是為每次執行打開一個單獨的連接。重新連接和事件重播將在共享連接上按每次執行處理。",+ "features.gatewayMux.title": "單連接網關(實驗性)","features.groupChat.desc": "啟用多智能體群組聊天編排功能。","features.groupChat.title": "群組聊天(多智能體)","features.heteroSessionImport.desc": "在主題列表選單中新增「匯入本地代理會話」項目:掃描本地 Claude Code / Codex CLI 轉錄內容並將其匯入為主題,重新匯入時進行增量同步。",diff --git a/locales/zh-TW/modelRuntime.json b/locales/zh-TW/modelRuntime.jsonindex f7cc8199e20..a9a62dcd447 100644--- a/locales/zh-TW/modelRuntime.json+++ b/locales/zh-TW/modelRuntime.json@@ -38,6 +38,7 @@"ProviderServiceUnavailable": "提供者暫時過載或不可用。請稍後重試。","QuotaLimitReached": "抱歉,此金鑰的令牌使用量或請求次數已達配額上限。請增加金鑰配額或稍後重試。","RateLimitExceeded": "抱歉,此金鑰的令牌使用量或請求次數已達速率限制。請稍後重試或增加金鑰配額。",+ "RequestBodyTooLarge": "此請求對於模型提供者來說過於龐大。請精簡對話或減少附加內容,然後再試一次。","StateStorePersistError": "對話狀態存儲的臨時問題中斷了此操作。請重試;如果問題持續,請聯繫支援。","StateStoreReadError": "此操作無法繼續,因為其會話狀態無法取得。請重新開啟對話以繼續;如果問題持續存在,請聯絡支援。","StreamChunkError": "解析流式請求的消息塊時發生錯誤。請檢查當前 API 接口是否符合標準規範,或聯繫您的 API 提供者以獲得協助。",diff --git a/locales/zh-TW/oauth.json b/locales/zh-TW/oauth.jsonindex a8a9901a4d1..2859218f99a 100644--- a/locales/zh-TW/oauth.json+++ b/locales/zh-TW/oauth.json@@ -1,4 +1,15 @@{+ "authorizeError.backToHome": "返回主頁",+ "authorizeError.code": "錯誤代碼",+ "authorizeError.reason.access_denied": "授權被拒絕。",+ "authorizeError.reason.invalid_client": "找不到此應用程式,或它已被停用。",+ "authorizeError.reason.invalid_redirect_uri": "應用程式要求將您發送回未註冊的地址,因此為了保護您的帳戶,請求已被停止。如果您是此應用程式的開發者,請在其 OAuth 應用程式設定中新增此重定向 URI。",+ "authorizeError.reason.invalid_request": "授權請求格式錯誤或缺少必要參數。",+ "authorizeError.reason.invalid_scope": "應用程式請求了不被允許的權限。",+ "authorizeError.reason.server_error": "我們的系統發生了一些問題。請稍後再試。",+ "authorizeError.reason.unauthorized_client": "此應用程式無法使用此登入方法。",+ "authorizeError.reason.unknown": "無法完成授權請求。",+ "authorizeError.title": "無法繼續授權","consent.buttons.accept": "授權","consent.buttons.deny": "拒絕","consent.description": "應用 {{clientName}} 申請您的帳戶授權",diff --git a/locales/zh-TW/verify.json b/locales/zh-TW/verify.jsonindex 6f355274b73..23ba9716d70 100644--- a/locales/zh-TW/verify.json+++ b/locales/zh-TW/verify.json@@ -766,6 +766,7 @@"workspace.loadError": "載入報告時發生錯誤。","workspace.loadErrorTitle": "無法載入報告","workspace.loadMoreError": "無法載入更多報告",+ "workspace.pin": "釘選報告清單","workspace.renameEmpty": "報告標題不能為空","workspace.renameError": "重新命名報告失敗","workspace.renameSuccess": "報告已重新命名",diff --git a/packages/database/src/models/__tests__/documentComment.test.ts b/packages/database/src/models/__tests__/documentComment.test.tsindex 13841d97d5d..cb234d7e65a 100644--- a/packages/database/src/models/__tests__/documentComment.test.ts+++ b/packages/database/src/models/__tests__/documentComment.test.ts@@ -93,6 +93,63 @@ describe('DocumentCommentModel', () => {expect(duplicate).toMatchObject({ isDuplicate: true, comment: { id: first.comment.id } });});+ it('anchors a root comment to a body selection and never lets a reply carry its own', async () => {+ const selectionAnchor = {+ end: 9,+ prefix: 'the ',+ quote: 'quick',+ start: 4,+ suffix: ' brown fox',+ };++ const root = await authorModel.create({+ clientId: 'anchored-root',+ content: 'about this phrase',+ documentId,+ selectionAnchor,+ });++ expect(root.comment.selectionAnchor).toEqual(selectionAnchor);++ // The thread's anchor lives on its root row, so an anchor sent with a reply+ // is dropped rather than splitting the thread across two runs of the body.+ const reply = await memberModel.create({+ clientId: 'anchored-reply',+ content: 'agreed',+ documentId,+ parentCommentId: root.comment.id,+ selectionAnchor,+ });++ expect(reply.comment.parentCommentId).toBe(root.comment.id);+ expect(reply.comment.selectionAnchor).toBeNull();++ const [stored] = await serverDB+ .select({ selectionAnchor: documentComments.selectionAnchor })+ .from(documentComments)+ .where(eq(documentComments.id, root.comment.id));+ expect(stored.selectionAnchor).toEqual(selectionAnchor);++ // The body paints from the document's full anchor set, independent of+ // thread paging: roots only, anchored only, scoped to the workspace.+ await memberModel.create({ clientId: 'plain-root', content: 'whole page', documentId });+ expect(await authorModel.listAnchors(documentId)).toEqual([+ { id: root.comment.id, selectionAnchor },+ ]);+ expect(await authorModel.listAnchors(secondDocumentId)).toEqual([]);+ expect(await outsiderModel.listAnchors(documentId)).toEqual([]);+ });++ it('leaves a comment made without a selection unanchored', async () => {+ const root = await authorModel.create({+ clientId: 'document-level',+ content: 'about the whole page',+ documentId,+ });++ expect(root.comment.selectionAnchor).toBeNull();+ });+it('rejects foreign parents and flattens replies to replies into the root thread', async () => {await expect(authorModel.create({ clientId: 'foreign', content: 'no', documentId: foreignDocumentId }),diff --git a/packages/database/src/models/documentComment.ts b/packages/database/src/models/documentComment.tsindex dad815f8df2..f2e4362b489 100644--- a/packages/database/src/models/documentComment.ts+++ b/packages/database/src/models/documentComment.ts@@ -1,5 +1,21 @@-import type { DocumentCommentJson } from '@lobechat/types';-import { and, asc, count, eq, getTableColumns, gt, inArray, isNull, or, sql } from 'drizzle-orm';+import type {+ DocumentCommentAnchorItem,+ DocumentCommentJson,+ DocumentCommentSelectionAnchor,+} from '@lobechat/types';+import {+ and,+ asc,+ count,+ eq,+ getTableColumns,+ gt,+ inArray,+ isNotNull,+ isNull,+ or,+ sql,+} from 'drizzle-orm';import type { DocumentCommentItem } from '../schemas/documentComment';import { documentCommentMentions, documentComments } from '../schemas/documentComment';@@ -36,6 +52,8 @@ export interface CreateDocumentCommentParams {/** Validated active Workspace members parsed from editorData by the router. */mentionedUserIds?: string[];parentCommentId?: string;+ /** Body anchor for a root comment; ignored for replies, which share the thread's anchor. */+ selectionAnchor?: DocumentCommentSelectionAnchor;}export interface CreateDocumentCommentResult {@@ -180,6 +198,10 @@ export class DocumentCommentModel {editorData: params.editorData,parentCommentId,replyToCommentId,+ // The thread's anchor lives on its root row (enforced by+ // `document_comments_reply_has_no_anchor`), so a reply drops any+ // anchor the caller sent instead of failing the insert.+ selectionAnchor: parentCommentId ? null : params.selectionAnchor,workspaceId,}).onConflictDoNothing({@@ -467,6 +489,33 @@ export class DocumentCommentModel {};}+ /**+ * Every anchored root of a document, oldest-first, unpaginated. Anchors are+ * small and bounded (see the router's quote cap), and a document has far+ * fewer anchored threads than comments, so one round trip is cheaper than+ * paging the full thread list just to paint highlights. Tombstoned roots+ * keep their anchor while replies remain, matching `listThreads`.+ */+ async listAnchors(documentId: string): Promise<DocumentCommentAnchorItem[]> {+ const workspaceId = this.requireWorkspaceId();+ const rows = await this.db+ .select({ id: documentComments.id, selectionAnchor: documentComments.selectionAnchor })+ .from(documentComments)+ .where(+ and(+ eq(documentComments.documentId, documentId),+ eq(documentComments.workspaceId, workspaceId),+ isNull(documentComments.parentCommentId),+ isNotNull(documentComments.selectionAnchor),+ ),+ )+ .orderBy(asc(documentComments.createdAt), asc(documentComments.id));++ return rows.flatMap(({ id, selectionAnchor }) =>+ selectionAnchor ? [{ id, selectionAnchor }] : [],+ );+ }+async listReplies(params: ListDocumentCommentRepliesParams) {const workspaceId = this.requireWorkspaceId();const { cursor, limit = 50, rootCommentId } = params;diff --git a/packages/database/src/schemas/documentComment.ts b/packages/database/src/schemas/documentComment.tsindex 32fff563f1e..497e5492424 100644--- a/packages/database/src/schemas/documentComment.ts+++ b/packages/database/src/schemas/documentComment.ts@@ -70,7 +70,7 @@ export const documentComments = pgTable(index('document_comments_author_user_id_idx').on(t.authorUserId),index('document_comments_workspace_id_idx').on(t.workspaceId),// A reply never carries its own anchor — the thread's anchor lives on the- // root row, so one anchored run maps to exactly one thread badge.+ // root row, so one anchored run maps to exactly one thread highlight.check('document_comments_reply_has_no_anchor',sql`${t.parentCommentId} IS NULL OR ${t.selectionAnchor} IS NULL`,diff --git a/packages/locales/src/default/file.ts b/packages/locales/src/default/file.tsindex cdac0a827ca..03e22e28a15 100644--- a/packages/locales/src/default/file.ts+++ b/packages/locales/src/default/file.ts@@ -106,6 +106,10 @@ export default {'pageEditor.addIcon': 'Add Icon','pageEditor.autoSaveMessage': 'Your page is saved automatically. No need to save manually.','pageEditor.chooseIcon': 'Choose Icon',+ 'pageEditor.comments.anchor.add': 'Comment',+ 'pageEditor.comments.anchor.label': 'Quoted text:',+ 'pageEditor.comments.anchor.missing': 'Original removed',+ 'pageEditor.comments.anchor.remove': 'Remove quote','pageEditor.comments.author.deactivated': 'Deactivated user','pageEditor.comments.author.former': 'Former member','pageEditor.comments.attachments.add': 'Add',diff --git a/packages/types/src/documentComment.ts b/packages/types/src/documentComment.tsindex 2c9997fdaa5..fb809c6a47e 100644--- a/packages/types/src/documentComment.ts+++ b/packages/types/src/documentComment.ts@@ -55,6 +55,8 @@ export interface DocumentCommentItem {parentCommentId: string | null;replyTo: { author: DocumentCommentAuthor; id: string } | null;replyToCommentId: string | null;+ /** Body anchor for a root comment created from a selection; null = whole-document comment. */+ selectionAnchor: DocumentCommentSelectionAnchor | null;updatedAt: Date;workspaceId: string;}@@ -69,6 +71,20 @@ export interface DocumentCommentThread {root: DocumentCommentItem;}+/**+ * One anchored root, as served by `listAnchors`. Body highlights are painted+ * from this list rather than from the paginated thread cards, so every+ * anchored run is discoverable from the document before its card has loaded.+ */+export interface DocumentCommentAnchorItem {+ id: string;+ selectionAnchor: DocumentCommentSelectionAnchor;+}++export interface DocumentCommentAnchorList {+ items: DocumentCommentAnchorItem[];+}+export interface DocumentCommentThreadPage {items: DocumentCommentThread[];nextCursor: string | null;@@ -90,6 +106,8 @@ export interface CreateDocumentCommentInput {documentId: string;editorData?: DocumentCommentJson;parentCommentId?: string;+ /** Only accepted on a root comment — a reply inherits its thread's anchor. */+ selectionAnchor?: DocumentCommentSelectionAnchor;}export interface UpdateDocumentCommentInput {diff --git a/src/features/EditorCanvas/EditorCanvas.tsx b/src/features/EditorCanvas/EditorCanvas.tsxindex 2d6b3da11cc..271b6c18d77 100644--- a/src/features/EditorCanvas/EditorCanvas.tsx+++ b/src/features/EditorCanvas/EditorCanvas.tsx@@ -139,6 +139,15 @@ export interface EditorCanvasProps {*/plugins?: EditorPlugins;+ /**+ * Selection actions that stay available while the editor is NOT editable+ * (locked or view-only page). They render in a floating toolbar of their+ * own with no formatting controls, so a reader can still act on a selection+ * — comment on it, ask about it — without being offered edits that would+ * never save. Ignored while editable; use `toolbarExtraItems` there.+ */+ readonlySelectionItems?: ChatInputActionsProps['items'];+/*** Slash menu items*/diff --git a/src/features/EditorCanvas/InlineToolbar.tsx b/src/features/EditorCanvas/InlineToolbar.tsxindex 1287d0d4a72..6d5c92dc517 100644--- a/src/features/EditorCanvas/InlineToolbar.tsx+++ b/src/features/EditorCanvas/InlineToolbar.tsx@@ -38,15 +38,23 @@ export interface InlineToolbarProps {*/extraItems?: ChatInputActionsProps['items'];floating?: boolean;+ /**+ * Show only `extraItems` — no formatting controls. For a read-only body,+ * where a selection can still be acted on (commented, asked about) but must+ * never be formatted, since those commands would edit content that never+ * saves.+ */+ selectionOnly?: boolean;style?: CSSProperties;}const InlineToolbar = memo<InlineToolbarProps>(- ({ floating, style, className, editor, editorState, extraItems }) => {+ ({ floating, style, className, editor, editorState, extraItems, selectionOnly }) => {const { t } = useTranslation('editor');const items: ChatInputActionsProps['items'] = useMemo(() => {if (!editorState) return [];+ if (selectionOnly) return extraItems ?? [];const baseItems = [// Extra items (like "Ask Copilot") come first@@ -202,7 +210,7 @@ const InlineToolbar = memo<InlineToolbarProps>(];return baseItems.filter(Boolean) as ChatInputActionsProps['items'];- }, [editor, editorState, extraItems, floating, t]);+ }, [editor, editorState, extraItems, floating, selectionOnly, t]);if (!editorState) return null;diff --git a/src/features/EditorCanvas/InternalEditor.readonly.test.tsx b/src/features/EditorCanvas/InternalEditor.readonly.test.tsxindex 49421924bfd..fc5a5ec3a0a 100644--- a/src/features/EditorCanvas/InternalEditor.readonly.test.tsx+++ b/src/features/EditorCanvas/InternalEditor.readonly.test.tsx@@ -19,6 +19,8 @@ vi.mock('@lobehub/ui/base-ui', () => ({const editorProps = vi.hoisted(() => ({last: undefined as any,image: undefined as any,+ /** Props of the `<InlineToolbar>` handed to the toolbar plugin, if any. */+ toolbar: undefined as any,}));vi.mock('@lobehub/editor/react', () => ({@@ -30,6 +32,7 @@ vi.mock('@lobehub/editor/react', () => ({{withProps: (plugin: unknown, props: any) => {if (props?.defaultBlockImage) editorProps.image = props;+ if (props?.children?.props?.floating) editorProps.toolbar = props.children.props;return plugin;},},@@ -141,6 +144,54 @@ describe('InternalEditor readonly state', () => {expect(editorProps.last?.plugins).not.toContain(ReactToolbarPlugin);});+ describe('readonly selection items', () => {+ const commentItem = { key: 'comment', label: 'Comment', onClick: () => {} };+ const askItem = { key: 'ask', label: 'Ask', onClick: () => {} };++ beforeEach(() => {+ editorProps.toolbar = undefined;+ });++ it('keeps selection actions reachable on a locked page through a selection-only toolbar', () => {+ render(+ <InternalEditor editable={false} editor={editor} readonlySelectionItems={[commentItem]} />,+ );++ expect(editorProps.last?.plugins).toContain(ReactToolbarPlugin);+ expect(editorProps.toolbar).toMatchObject({+ extraItems: [commentItem],+ floating: true,+ selectionOnly: true,+ });+ });++ it('offers the formatting toolbar with its own extras while editable', () => {+ render(+ <InternalEditor+ editor={editor}+ readonlySelectionItems={[commentItem]}+ toolbarExtraItems={[askItem, commentItem]}+ />,+ );++ expect(editorProps.last?.plugins).toContain(ReactToolbarPlugin);+ expect(editorProps.toolbar).toMatchObject({ extraItems: [askItem, commentItem] });+ expect(editorProps.toolbar?.selectionOnly).toBeUndefined();+ });++ it('registers nothing when not editable and there is nothing to act on', () => {+ render(<InternalEditor editable={false} editor={editor} readonlySelectionItems={[]} />);++ expect(editorProps.last?.plugins).not.toContain(ReactToolbarPlugin);+ });++ it('never surfaces a toolbar while disabled', () => {+ render(<InternalEditor disabled editor={editor} readonlySelectionItems={[commentItem]} />);++ expect(editorProps.last?.plugins).not.toContain(ReactToolbarPlugin);+ });+ });+it('renders the current file upload percentage', () => {const tracker = createEditorFileUploadTracker();const file = new File(['video'], 'recording.mp4', { type: 'video/mp4' });diff --git a/src/features/EditorCanvas/InternalEditor.tsx b/src/features/EditorCanvas/InternalEditor.tsxindex 7af7d65cad2..5f73387c4cb 100644--- a/src/features/EditorCanvas/InternalEditor.tsx+++ b/src/features/EditorCanvas/InternalEditor.tsx@@ -124,6 +124,7 @@ const InternalEditor = memo<InternalEditorProps>(onPressEnter,placeholder,plugins: customPlugins,+ readonlySelectionItems,slashItems,style,toolbarExtraItems,@@ -183,10 +184,12 @@ const InternalEditor = memo<InternalEditorProps>(? [...extraPlugins, ...STATIC_PLUGINS, imagePlugin, filePlugin]: [...STATIC_PLUGINS, imagePlugin, filePlugin];- // Add toolbar only when the editor is actually editable — a locked /- // read-only page must not surface the floating formatting toolbar on- // text selection (its buttons would dispatch commands that never save).- if (floatingToolbar && editable && !disabled) {+ if (!floatingToolbar || disabled) return basePlugins;++ // The formatting toolbar only when the editor is actually editable — a+ // locked / read-only page must not surface it on text selection (its+ // buttons would dispatch commands that never save).+ if (editable) {return [...basePlugins,Editor.withProps(ReactToolbarPlugin, {@@ -202,6 +205,26 @@ const InternalEditor = memo<InternalEditorProps>(];}+ // A read-only body can still be selected; selection-scoped actions that+ // never edit (comment on it, ask about it) stay reachable through a+ // toolbar that carries nothing else.+ if (readonlySelectionItems?.length) {+ return [+ ...basePlugins,+ Editor.withProps(ReactToolbarPlugin, {+ children: (+ <InlineToolbar+ floating+ selectionOnly+ editor={editor}+ editorState={editorState}+ extraItems={readonlySelectionItems}+ />+ ),+ }),+ ];+ }+return basePlugins;}, [customPlugins,@@ -214,6 +237,7 @@ const InternalEditor = memo<InternalEditorProps>(handleFileUpload,handleImageUpload,handlePickFile,+ readonlySelectionItems,toolbarExtraItems,]);diff --git a/src/features/PageEditor/DocumentComments/CommentCard.tsx b/src/features/PageEditor/DocumentComments/CommentCard.tsxindex 0d9cbf2ebb6..d57e1cf9a1d 100644--- a/src/features/PageEditor/DocumentComments/CommentCard.tsx+++ b/src/features/PageEditor/DocumentComments/CommentCard.tsx@@ -19,6 +19,8 @@ import { useEnterToSend } from '@/hooks/useEnterToSend';import { useLocalStorageState } from '@/hooks/useLocalStorageState';import { documentCommentService } from '@/services/documentComment';+import AnchorQuote from './anchor/AnchorQuote';+import { useCommentAnchors } from './anchor/context';import DocumentCommentEditor, {type DocumentCommentEditorRef,type DocumentCommentEditorValue,@@ -29,7 +31,9 @@ import { COMMENT_INPUT_MAX_HEIGHT, styles } from './styles';interface CommentCardProps {comment: DocumentCommentItem;- /** Set when a deep link targets this comment; each new token scrolls + highlights again. */+ /** Whether a focus also scrolls the card into view. Defaults to true; a pick in the body passes false. */+ focusScroll?: boolean;+ /** Set when a deep link targets this comment; each new token highlights (and by default scrolls) again. */focusToken?: number;onMutated: () => void | Promise<void>;onReply?: () => void;@@ -63,7 +67,16 @@ const CommentContent = memo<Pick<DocumentCommentItem, 'content' | 'editorData'>>CommentContent.displayName = 'DocumentCommentContent';const CommentCard = memo<CommentCardProps>(- ({ comment, focusToken, onMutated, onReply, onUpdate, replying, variant = 'root' }) => {+ ({+ comment,+ focusScroll = true,+ focusToken,+ onMutated,+ onReply,+ onUpdate,+ replying,+ variant = 'root',+ }) => {const { t } = useTranslation('file');const cardRef = useRef<HTMLDivElement>(null);const { text: time, title: timeTitle } = useActivityTime(comment.createdAt);@@ -79,6 +92,9 @@ const CommentCard = memo<CommentCardProps>(false,);const [mutating, setMutating] = useState(false);+ const { locateInBody, orphanedRootIds, setHoveredRootId } = useCommentAnchors();+ const anchor = comment.selectionAnchor;+ const anchorOrphaned = Boolean(anchor) && orphanedRootIds.has(comment.id);const deleted = Boolean(comment.deletedAt);const optimistic = isOptimisticDocumentComment(comment);const authorName =@@ -94,16 +110,18 @@ const CommentCard = memo<CommentCardProps>(useEffect(() => {const node = cardRef.current;if (focusToken === undefined || !node) return;- // Honor reduced motion: jump instead of gliding; the steady highlight itself stays.- const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;- node.scrollIntoView({ behavior: reduceMotion ? 'auto' : 'smooth', block: 'center' });+ if (focusScroll) {+ // Honor reduced motion: jump instead of gliding; the steady highlight itself stays.+ const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches;+ node.scrollIntoView({ behavior: reduceMotion ? 'auto' : 'smooth', block: 'center' });+ }node.classList.add(styles.highlighted);const timer = setTimeout(() => node.classList.remove(styles.highlighted), 2400);return () => {clearTimeout(timer);node.classList.remove(styles.highlighted);};- }, [focusToken]);+ }, [focusScroll, focusToken]);const handleUpdate = useCallback(async () => {const editorValue: DocumentCommentEditorValue = editorRef.current?.getValue() ?? {@@ -172,6 +190,12 @@ const CommentCard = memo<CommentCardProps>(className={`${styles.card} ${variant === 'reply' ? styles.replyCard : ''}`}data-document-comment-id={comment.id}ref={cardRef}+ onMouseEnter={anchor && !anchorOrphaned ? () => setHoveredRootId(comment.id) : undefined}+ onMouseLeave={+ anchor && !anchorOrphaned+ ? () => setHoveredRootId((current) => (current === comment.id ? null : current))+ : undefined+ }><Flexbox horizontal align={'center'} className={styles.header} gap={8}><Avatar@@ -206,6 +230,15 @@ const CommentCard = memo<CommentCardProps>()}</Flexbox>+ {anchor && (+ <AnchorQuote+ anchor={anchor}+ className={styles.cardAnchor}+ orphaned={anchorOrphaned}+ onLocate={() => locateInBody(comment.id)}+ />+ )}+<div className={`${styles.body} ${variant === 'reply' ? styles.replyBody : ''}`}>{deleted ? (<Text className={styles.deleted}>{t('pageEditor.comments.deleted')}</Text>diff --git a/src/features/PageEditor/DocumentComments/Composer.tsx b/src/features/PageEditor/DocumentComments/Composer.tsxindex 1ac1f975d2f..cc79f643e10 100644--- a/src/features/PageEditor/DocumentComments/Composer.tsx+++ b/src/features/PageEditor/DocumentComments/Composer.tsx@@ -1,9 +1,9 @@-import type { DocumentCommentJson } from '@lobechat/types';+import type { DocumentCommentJson, DocumentCommentSelectionAnchor } from '@lobechat/types';import { ChatInput, ChatInputActionBar, SendButton, useEditor } from '@lobehub/editor/react';import { Flexbox } from '@lobehub/ui';import { Avatar, toast } from '@lobehub/ui/base-ui';import { nanoid } from 'nanoid';-import { memo, useCallback, useRef, useState } from 'react';+import { memo, useCallback, useEffect, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';@@ -19,6 +19,9 @@ import { useLocalStorageState } from '@/hooks/useLocalStorageState';import { usePermission } from '@/hooks/usePermission';import { useUserAvatar } from '@/hooks/useUserAvatar';+import { usePageEditorStore } from '../store';+import AnchorQuote from './anchor/AnchorQuote';+import { DOCUMENT_COMMENT_COMPOSER_ID } from './anchor/constants';import DocumentCommentEditor, { type DocumentCommentEditorRef } from './DocumentCommentEditor';import type { DocumentCommentSubmitInput } from './optimistic';import { COMMENT_INPUT_MAX_HEIGHT, styles } from './styles';@@ -27,6 +30,11 @@ interface Draft {clientId: string;content: string;editorData: DocumentCommentJson | null;+ /**+ * Persisted alongside the text so a reload can't turn a comment the reader+ * started on a specific run into a comment about the whole document.+ */+ selectionAnchor?: DocumentCommentSelectionAnchor;}interface ComposerProps {@@ -50,12 +58,44 @@ const Composer = memo<ComposerProps>(({ documentId, onSubmit, onSuccess, parentC`document-comment-draft:${workspaceId ?? 'personal'}:${documentId}:${parentCommentId ?? 'root'}`,{ clientId: nanoid(), content: '', editorData: null },);+ // Only a root comment can be anchored; a reply shares its thread's anchor.+ const isRootComposer = !parentCommentId;+ // The store outlives a document switch, so a quote captured in another+ // document is not this composer's to adopt.+ const pendingAnchor = usePageEditorStore((s) =>+ s.pendingCommentAnchor?.documentId === documentId ? s.pendingCommentAnchor.anchor : undefined,+ );+ const setPendingCommentAnchor = usePageEditorStore((s) => s.setPendingCommentAnchor);+ const anchor = isRootComposer ? draft.selectionAnchor : undefined;const [showTypoBar, setShowTypoBar] = useLocalStorageState('document-comment:show-formatting-toolbar',false,);const [submitting, setSubmitting] = useState(false);+ // Intake: the toolbar drops a freshly captured selection into the store and+ // the root composer adopts it as its draft anchor.+ useEffect(() => {+ if (!isRootComposer || !pendingAnchor) return;+ setDraft((current) =>+ current.selectionAnchor === pendingAnchor+ ? current+ : { ...current, selectionAnchor: pendingAnchor },+ );+ }, [isRootComposer, pendingAnchor, setDraft]);++ // Restore: the draft outlives a reload, the store doesn't, so republish the+ // draft's anchor to keep the body highlight in sync with what will be sent.+ useEffect(() => {+ if (!isRootComposer || !anchor || pendingAnchor) return;+ setPendingCommentAnchor({ anchor, documentId });+ }, [anchor, documentId, isRootComposer, pendingAnchor, setPendingCommentAnchor]);++ const clearAnchor = useCallback(() => {+ setDraft((current) => ({ ...current, selectionAnchor: undefined }));+ setPendingCommentAnchor(undefined);+ }, [setDraft, setPendingCommentAnchor]);+const submit = useCallback(async () => {const editorValue = editorRef.current?.getValue() ?? {content: draft.content,@@ -74,14 +114,16 @@ const Composer = memo<ComposerProps>(({ documentId, onSubmit, onSuccess, parentCsubmittingRef.current = true;setSubmitting(true);- const submittedDraft = { clientId: draft.clientId, ...editorValue };+ const submittedDraft = { clientId: draft.clientId, ...editorValue, selectionAnchor: anchor };setDraft({ clientId: nanoid(), content: '', editorData: null });+ setPendingCommentAnchor(undefined);editorRef.current?.clean();try {await onSubmit({clientId: submittedDraft.clientId,content,editorData: editorValue.editorData,+ selectionAnchor: anchor,});onSuccess?.();} catch {@@ -93,7 +135,17 @@ const Composer = memo<ComposerProps>(({ documentId, onSubmit, onSuccess, parentCsubmittingRef.current = false;setSubmitting(false);}- }, [canCreate, draft, onSubmit, onSuccess, setDraft, t, workspaceId]);+ }, [+ anchor,+ canCreate,+ draft,+ onSubmit,+ onSuccess,+ setDraft,+ setPendingCommentAnchor,+ t,+ workspaceId,+ ]);const handleAttach = useCallback((files: File[]) => {@@ -107,14 +159,18 @@ const Composer = memo<ComposerProps>(({ documentId, onSubmit, onSuccess, parentCconst attachmentState = getEditorAttachmentStateFromJson(draft.editorData);return (- <Flexbox horizontal align={'flex-start'} gap={12}>+ <Flexbox+ horizontal+ align={'flex-start'}+ gap={12}+ id={isRootComposer ? DOCUMENT_COMMENT_COMPOSER_ID : undefined}+ ><Flexbox className={styles.composerAvatar}><Avatar avatar={avatar} size={parentCommentId ? 28 : 32} /></Flexbox><ChatInputclassName={styles.composer}flex={1}- header={showTypoBar ? <TypoBar editor={editor} /> : undefined}maxHeight={COMMENT_INPUT_MAX_HEIGHT}minHeight={72}resize={false}@@ -152,6 +208,20 @@ const Composer = memo<ComposerProps>(({ documentId, onSubmit, onSuccess, parentC}/>}+ header={+ anchor || showTypoBar ? (+ <>+ {anchor && (+ <AnchorQuote+ anchor={anchor}+ className={styles.composerAnchor}+ onDismiss={clearAnchor}+ />+ )}+ {showTypoBar && <TypoBar editor={editor} />}+ </>+ ) : undefined+ }onBodyClick={() => editor.focus()}><DocumentCommentEditordiff --git a/src/features/PageEditor/DocumentComments/Thread.tsx b/src/features/PageEditor/DocumentComments/Thread.tsxindex 3cc8e69340f..6fcfbc883b7 100644--- a/src/features/PageEditor/DocumentComments/Thread.tsx+++ b/src/features/PageEditor/DocumentComments/Thread.tsx@@ -232,6 +232,7 @@ const Thread = memo<ThreadProps>(<Fragment key={reply.id}><CommentCardcomment={reply}+ focusScroll={focus?.scroll}focusToken={focusedReplyId === reply.id ? focus?.token : undefined}replying={replyTargetId === reply.id}variant={'reply'}@@ -255,6 +256,7 @@ const Thread = memo<ThreadProps>(<Flexbox className={styles.thread} ref={containerRef}><CommentCardcomment={root}+ focusScroll={focus?.scroll}focusToken={focus && focus.commentId === root.id ? focus.token : undefined}replying={replyTargetId === root.id}onMutated={onMutated}diff --git a/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsx b/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsxnew file mode 100644index 00000000000..9dd240a0720--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/AnchorQuote.tsx@@ -0,0 +1,94 @@+'use client';++import type { DocumentCommentSelectionAnchor } from '@lobechat/types';+import { Flexbox } from '@lobehub/ui';+import { ActionIcon, Tag, Text } from '@lobehub/ui/base-ui';+import { cx } from 'antd-style';+import { X } from 'lucide-react';+import { memo } from 'react';+import { useTranslation } from 'react-i18next';++import { styles } from '../styles';++interface AnchorQuoteProps {+ anchor: DocumentCommentSelectionAnchor;+ className?: string;+ /** Show a dismiss control — the composer's pending quote can be dropped before publishing. */+ onDismiss?: () => void;+ /** Jump to the quoted run in the body. Omitted when the run is gone. */+ onLocate?: () => void;+ /** The quoted run no longer exists in the body. */+ orphaned?: boolean;+}++/**+ * The quoted run a comment is attached to.+ *+ * It renders from the stored quote, never from the body, so a comment stays+ * readable after its run is edited away — the same retention promise the+ * Topic comment anchor preview makes.+ *+ * One line, truncated: the quote is context for the comment underneath, not+ * content in its own right, so it must not out-weigh the comment it belongs+ * to. The full text is a tooltip away whenever it doesn't fit.+ */+const AnchorQuote = memo<AnchorQuoteProps>(+ ({ anchor, className, onDismiss, onLocate, orphaned }) => {+ const { t } = useTranslation('file');+ const clickable = Boolean(onLocate) && !orphaned;+ // Only a jump target that has gone missing is "disabled"; a plain quote row+ // (the composer's, which still holds an operable Remove control) is not.+ const disabled = Boolean(onLocate) && orphaned;++ return (+ <Flexbox+ horizontal+ align={'center'}+ aria-disabled={disabled ? true : undefined}+ gap={6}+ role={clickable ? 'button' : undefined}+ tabIndex={clickable ? 0 : undefined}+ className={cx(+ styles.anchorQuote,+ clickable && styles.anchorQuoteClickable,+ orphaned && styles.anchorQuoteOrphaned,+ className,+ )}+ onClick={clickable ? onLocate : undefined}+ onKeyDown={(event) => {+ if (!clickable || (event.key !== 'Enter' && event.key !== ' ')) return;+ event.preventDefault();+ onLocate?.();+ }}+ >+ <Text className={styles.anchorQuoteLabel} fontSize={12}>+ {t('pageEditor.comments.anchor.label')}+ </Text>+ <Text+ className={styles.anchorQuoteText}+ ellipsis={{ tooltipWhenOverflow: true }}+ fontSize={12}+ >+ {anchor.quote}+ </Text>+ {orphaned && <Tag size={'small'}>{t('pageEditor.comments.anchor.missing')}</Tag>}+ {onDismiss && (+ <ActionIcon+ aria-label={t('pageEditor.comments.anchor.remove')}+ icon={X}+ size={'small'}+ title={t('pageEditor.comments.anchor.remove')}+ onClick={(event) => {+ event.stopPropagation();+ onDismiss();+ }}+ />+ )}+ </Flexbox>+ );+ },+);++AnchorQuote.displayName = 'DocumentCommentAnchorQuote';++export default AnchorQuote;diff --git a/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsx b/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsxnew file mode 100644index 00000000000..434f4eca08c--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/HighlightStyle.tsx@@ -0,0 +1,52 @@+'use client';++import { createGlobalStyle, cssVar } from 'antd-style';++import { HIGHLIGHT_REGISTRY } from './highlights';++/**+ * `::highlight()` is a document-level pseudo-element, so its rules can't live+ * in a scoped `createStaticStyles` block. Only a handful of properties are+ * honoured on it (colour, background, text-decoration, text-shadow), which is+ * exactly the vocabulary an annotation highlight needs.+ *+ * The warning ramp is the amber one in LobeHub's token set — the colour readers+ * already associate with "someone annotated this", not with an error.+ *+ * The underline carries the signal, not the fill: an annotation has to be+ * visible on a dense page without turning the sentence into a highlighter+ * stripe. It is drawn at `colorWarning` (warning-6, the saturated gold), not at+ * a border-weight token — warning-3 is pale enough to disappear against body+ * text. The three registries then step the fill rather than the hue: warning-1+ * resting, -2 while composing, -3 for the picked thread.+ */+const DocumentCommentHighlightStyle = createGlobalStyle`+ ::highlight(${HIGHLIGHT_REGISTRY.all}) {+ text-decoration: underline;+ text-decoration-color: ${cssVar.colorWarning};+ text-decoration-thickness: 2px;+ text-underline-offset: 3px;++ background-color: ${cssVar.colorWarningBg};+ }++ ::highlight(${HIGHLIGHT_REGISTRY.pending}) {+ text-decoration: underline;+ text-decoration-color: ${cssVar.colorWarning};+ text-decoration-thickness: 2px;+ text-underline-offset: 3px;++ background-color: ${cssVar.colorWarningBgHover};+ }++ ::highlight(${HIGHLIGHT_REGISTRY.active}) {+ text-decoration: underline;+ text-decoration-color: ${cssVar.colorWarningActive};+ text-decoration-thickness: 2px;+ text-underline-offset: 3px;++ background-color: ${cssVar.colorWarningBorder};+ }+`;++export default DocumentCommentHighlightStyle;diff --git a/src/features/PageEditor/DocumentComments/anchor/commentLocator.ts b/src/features/PageEditor/DocumentComments/anchor/commentLocator.tsnew file mode 100644index 00000000000..eb116140192--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/commentLocator.ts@@ -0,0 +1,42 @@+import { styles } from '../styles';++/** How long a located card / anchor keeps its emphasis before settling back. */+export const LOCATE_FLASH_DURATION = 2400;++export const prefersReducedMotion = () =>+ typeof window !== 'undefined' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;++const scrollBehavior = (): ScrollBehavior => (prefersReducedMotion() ? 'auto' : 'smooth');++/**+ * Flash a comment card, the same landing treatment a notification deep link+ * gets (see `CommentCard`'s `focusToken` effect).+ *+ * `scroll` is opt-in because the two callers want different things: a deep+ * link has to bring the card into view, while a click in the body must not+ * move the reader's viewport at all.+ */+export const focusCommentCard = (commentId: string, { scroll = true } = {}): boolean => {+ if (typeof document === 'undefined') return false;+ const card = document.querySelector<HTMLElement>(`[data-document-comment-id="${commentId}"]`);+ if (!card) return false;++ if (scroll) card.scrollIntoView({ behavior: scrollBehavior(), block: 'center' });+ card.classList.add(styles.highlighted);+ setTimeout(() => card.classList.remove(styles.highlighted), LOCATE_FLASH_DURATION);+ return true;+};++/**+ * Scroll an anchored run into view. Ranges are not elements, so the scroll+ * target is the element the run starts in — close enough to put the quote on+ * screen, and free of the layout thrash a measured scroll would cost.+ */+export const scrollAnchorIntoView = (range: Range): void => {+ const { startContainer } = range;+ const element =+ startContainer.nodeType === Node.ELEMENT_NODE+ ? (startContainer as HTMLElement)+ : startContainer.parentElement;+ element?.scrollIntoView({ behavior: scrollBehavior(), block: 'center' });+};diff --git a/src/features/PageEditor/DocumentComments/anchor/constants.ts b/src/features/PageEditor/DocumentComments/anchor/constants.tsnew file mode 100644index 00000000000..9b860db5d4c--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/constants.ts@@ -0,0 +1,6 @@+/**+ * DOM id of the root comment composer. The selection toolbar lives in the body+ * and the composer lives in the list below it — two sibling subtrees with no+ * shared ref — so the jump between them goes through the document.+ */+export const DOCUMENT_COMMENT_COMPOSER_ID = 'document-comment-composer';diff --git a/src/features/PageEditor/DocumentComments/anchor/context.tsx b/src/features/PageEditor/DocumentComments/anchor/context.tsxnew file mode 100644index 00000000000..8a425162ccb--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/context.tsx@@ -0,0 +1,36 @@+'use client';++import { createContext, type ReactNode, use } from 'react';++import type { DocumentCommentAnchorsValue } from './useDocumentCommentAnchors';++const noop = () => {};++/**+ * Keeps cards that render outside the list — the pinned deep-link thread+ * mounts before the list exists — from having to null-check the resolution.+ */+const FALLBACK: DocumentCommentAnchorsValue = {+ activeRootId: null,+ locateInBody: noop,+ orphanedRootIds: new Set(),+ setHoveredRootId: noop,+};++const DocumentCommentAnchorsContext = createContext<DocumentCommentAnchorsValue>(FALLBACK);++/**+ * Anchors are resolved once for the whole list — one DOM walk, one repaint —+ * and read by every card, so the resolution lives in context rather than being+ * recomputed per card.+ */+export const DocumentCommentAnchorsProvider = ({+ children,+ value,+}: {+ children: ReactNode;+ value: DocumentCommentAnchorsValue;+}) => <DocumentCommentAnchorsContext value={value}>{children}</DocumentCommentAnchorsContext>;++export const useCommentAnchors = (): DocumentCommentAnchorsValue =>+ use(DocumentCommentAnchorsContext);diff --git a/src/features/PageEditor/DocumentComments/anchor/highlights.test.ts b/src/features/PageEditor/DocumentComments/anchor/highlights.test.tsnew file mode 100644index 00000000000..f16f28172a7--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/highlights.test.ts@@ -0,0 +1,130 @@+import { afterEach, describe, expect, it, vi } from 'vitest';++import {+ clearCommentHighlights,+ HIGHLIGHT_REGISTRY,+ paintCommentHighlights,+ supportsHighlightApi,+} from './highlights';+import { flattenEditorText } from './textAnchor';++const mount = (html: string) => {+ const root = document.createElement('div');+ root.innerHTML = html;+ document.body.append(root);+ return root;+};++class FakeHighlight {+ priority = 0;+ ranges: Range[];+ constructor(...ranges: Range[]) {+ this.ranges = ranges;+ }+}++const withHighlightApi = () => {+ const registry = new Map<string, FakeHighlight>();+ vi.stubGlobal('Highlight', FakeHighlight);+ vi.stubGlobal('CSS', { highlights: registry });+ return registry;+};++afterEach(() => {+ vi.unstubAllGlobals();+ document.body.innerHTML = '';+});++describe('comment highlights', () => {+ it('stays a no-op where the Custom Highlight API is missing', () => {+ vi.stubGlobal('CSS', undefined);+ const flat = flattenEditorText(mount('<p>the quick brown fox</p>'));++ expect(supportsHighlightApi()).toBe(false);+ expect(() =>+ paintCommentHighlights({+ activeRootId: null,+ flat,+ matches: new Map([['root-1', { end: 9, start: 4 }]]),+ pending: null,+ }),+ ).not.toThrow();+ expect(() => clearCommentHighlights()).not.toThrow();+ });++ it('paints the resting, active and pending registries', () => {+ const registry = withHighlightApi();+ const flat = flattenEditorText(mount('<p>the quick brown fox</p>'));++ paintCommentHighlights({+ activeRootId: 'root-1',+ flat,+ matches: new Map([+ ['root-1', { end: 9, start: 4 }],+ ['root-2', { end: 15, start: 10 }],+ ]),+ pending: { end: 19, start: 16 },+ });++ expect(registry.get(HIGHLIGHT_REGISTRY.all)?.ranges).toHaveLength(2);+ expect(registry.get(HIGHLIGHT_REGISTRY.active)?.ranges.map(String)).toEqual(['quick']);+ expect(registry.get(HIGHLIGHT_REGISTRY.pending)?.ranges.map(String)).toEqual(['fox']);+ });++ it('gives the active thread the winning priority so it paints over the resting layer', () => {+ const registry = withHighlightApi();+ const flat = flattenEditorText(mount('<p>the quick brown fox</p>'));++ paintCommentHighlights({+ activeRootId: 'root-1',+ flat,+ matches: new Map([['root-1', { end: 9, start: 4 }]]),+ pending: null,+ });++ const all = registry.get(HIGHLIGHT_REGISTRY.all)!;+ const active = registry.get(HIGHLIGHT_REGISTRY.active)!;+ expect(active.priority).toBeGreaterThan(all.priority);+ });++ it('drops a registry rather than leaving a stale paint behind', () => {+ const registry = withHighlightApi();+ const flat = flattenEditorText(mount('<p>the quick brown fox</p>'));+ const matches = new Map([['root-1', { end: 9, start: 4 }]]);++ paintCommentHighlights({ activeRootId: 'root-1', flat, matches, pending: null });+ expect(registry.has(HIGHLIGHT_REGISTRY.active)).toBe(true);++ paintCommentHighlights({ activeRootId: null, flat, matches, pending: null });+ expect(registry.has(HIGHLIGHT_REGISTRY.active)).toBe(false);+ });++ it('skips an anchor that cannot be turned into a range', () => {+ const registry = withHighlightApi();+ const flat = flattenEditorText(mount(''));++ paintCommentHighlights({+ activeRootId: null,+ flat,+ matches: new Map([['root-1', { end: 9, start: 4 }]]),+ pending: null,+ });++ expect(registry.has(HIGHLIGHT_REGISTRY.all)).toBe(false);+ });++ it('clears every registry on teardown', () => {+ const registry = withHighlightApi();+ const flat = flattenEditorText(mount('<p>the quick brown fox</p>'));++ paintCommentHighlights({+ activeRootId: 'root-1',+ flat,+ matches: new Map([['root-1', { end: 9, start: 4 }]]),+ pending: { end: 19, start: 16 },+ });+ clearCommentHighlights();++ expect(registry.size).toBe(0);+ });+});diff --git a/src/features/PageEditor/DocumentComments/anchor/highlights.ts b/src/features/PageEditor/DocumentComments/anchor/highlights.tsnew file mode 100644index 00000000000..879d858c361--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/highlights.ts@@ -0,0 +1,79 @@+import type { AnchorMatch, FlattenedText } from './textAnchor';+import { buildAnchorRange } from './textAnchor';++/**+ * CSS Custom Highlight registry names. One registry per visual weight rather+ * than one per comment: the API resolves overlaps by `priority`, so the active+ * thread simply outranks the resting paint without any per-range bookkeeping.+ */+export const HIGHLIGHT_REGISTRY = {+ /** Every resolved anchor on the page. */+ all: 'lobe-document-comment',+ /** The thread the reader is pointing at, from either side. */+ active: 'lobe-document-comment-active',+ /** The selection being composed, before it becomes a comment. */+ pending: 'lobe-document-comment-pending',+} as const;++const PRIORITY = { active: 3, all: 1, pending: 2 } as const;++/**+ * Highlights are painted through the CSS Custom Highlight API instead of mark+ * nodes or absolutely positioned overlays.+ *+ * A mark node would mean editing the document to comment on it — polluting the+ * markdown export, fighting the collaborative Yjs doc, and needing a write-back+ * whenever a comment is deleted. An overlay would need re-measuring on every+ * reflow. Highlight ranges own no DOM at all and follow the text for free.+ */+export const supportsHighlightApi = () =>+ typeof CSS !== 'undefined' && 'highlights' in CSS && typeof Highlight !== 'undefined';++const setRegistry = (name: string, ranges: Range[], priority: number) => {+ if (!supportsHighlightApi()) return;+ if (ranges.length === 0) {+ CSS.highlights.delete(name);+ return;+ }+ const highlight = new Highlight(...ranges);+ highlight.priority = priority;+ CSS.highlights.set(name, highlight);+};++export const clearCommentHighlights = () => {+ if (!supportsHighlightApi()) return;+ for (const name of Object.values(HIGHLIGHT_REGISTRY)) CSS.highlights.delete(name);+};++interface PaintParams {+ activeRootId: string | null;+ flat: FlattenedText;+ matches: ReadonlyMap<string, AnchorMatch>;+ pending: AnchorMatch | null;+}++/** Repaint every registry from the currently resolved matches. */+export const paintCommentHighlights = ({+ activeRootId,+ flat,+ matches,+ pending,+}: PaintParams): void => {+ if (!supportsHighlightApi()) return;++ const resting: Range[] = [];+ const active: Range[] = [];++ for (const [rootId, match] of matches) {+ const range = buildAnchorRange(flat, match);+ if (!range) continue;+ resting.push(range);+ if (rootId === activeRootId) active.push(range);+ }++ const pendingRange = pending ? buildAnchorRange(flat, pending) : null;++ setRegistry(HIGHLIGHT_REGISTRY.all, resting, PRIORITY.all);+ setRegistry(HIGHLIGHT_REGISTRY.active, active, PRIORITY.active);+ setRegistry(HIGHLIGHT_REGISTRY.pending, pendingRange ? [pendingRange] : [], PRIORITY.pending);+};diff --git a/src/features/PageEditor/DocumentComments/anchor/resolveAnchors.test.ts b/src/features/PageEditor/DocumentComments/anchor/resolveAnchors.test.tsnew file mode 100644index 00000000000..f9604dbfa66--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/resolveAnchors.test.ts@@ -0,0 +1,77 @@+import { describe, expect, it, vi } from 'vitest';++import { resolveAnchors } from './resolveAnchors';+import * as textAnchor from './textAnchor';++const flat = (text: string) => ({ segments: [], text });++const anchor = (quote: string, start: number) => ({+ end: start + quote.length,+ quote,+ start,+});++describe('resolveAnchors', () => {+ it('locates each distinct anchor once, however many threads share it', () => {+ const locate = vi.spyOn(textAnchor, 'locateAnchor');+ const body = flat('the quick brown fox');+ const shared = anchor('quick', 4);++ const { matches, orphaned } = resolveAnchors(body, [+ { id: 'a', selectionAnchor: shared },+ { id: 'b', selectionAnchor: { ...shared } },+ { id: 'gone', selectionAnchor: anchor('vanished', 0) },+ ]);++ expect(locate).toHaveBeenCalledTimes(2);+ expect(matches.get('a')).toEqual({ end: 9, start: 4 });+ expect(matches.get('b')).toEqual({ end: 9, start: 4 });+ expect([...orphaned]).toEqual(['gone']);+ locate.mockRestore();+ });++ it('reuses every result while the body text is unchanged, orphans included', () => {+ const locate = vi.spyOn(textAnchor, 'locateAnchor');+ const body = flat('the quick brown fox');+ const entries = [+ { id: 'a', selectionAnchor: anchor('quick', 4) },+ { id: 'gone', selectionAnchor: anchor('vanished', 0) },+ ];++ const first = resolveAnchors(body, entries);+ locate.mockClear();+ // A formatting-only update re-flattens to identical text.+ const second = resolveAnchors(flat('the quick brown fox'), entries, first.cache);++ expect(locate).not.toHaveBeenCalled();+ expect(second.matches).toEqual(first.matches);+ expect(second.orphaned).toEqual(first.orphaned);+ locate.mockRestore();+ });++ it('re-scans once the text actually changes and lets an orphan come back', () => {+ const locate = vi.spyOn(textAnchor, 'locateAnchor');+ const entries = [{ id: 'gone', selectionAnchor: anchor('vanished', 4) }];++ const first = resolveAnchors(flat('the quick brown fox'), entries);+ expect([...first.orphaned]).toEqual(['gone']);+ locate.mockClear();++ const second = resolveAnchors(flat('the vanished fox'), entries, first.cache);++ expect(locate).toHaveBeenCalledTimes(1);+ expect(second.orphaned.size).toBe(0);+ expect(second.matches.get('gone')).toEqual({ end: 12, start: 4 });+ locate.mockRestore();+ });++ it('drops cached entries for anchors that are no longer listed', () => {+ const body = flat('the quick brown fox');+ const first = resolveAnchors(body, [{ id: 'a', selectionAnchor: anchor('quick', 4) }]);++ const second = resolveAnchors(body, [], first.cache);++ expect(second.cache.results.size).toBe(0);+ expect(second.matches.size).toBe(0);+ });+});diff --git a/src/features/PageEditor/DocumentComments/anchor/resolveAnchors.ts b/src/features/PageEditor/DocumentComments/anchor/resolveAnchors.tsnew file mode 100644index 00000000000..ba29270852c--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/resolveAnchors.ts@@ -0,0 +1,63 @@+import type { DocumentCommentAnchorItem, DocumentCommentSelectionAnchor } from '@lobechat/types';++import type { AnchorMatch, FlattenedText } from './textAnchor';+import { locateAnchor } from './textAnchor';++/**+ * Two roots quoting the same run at the same offset resolve identically, so+ * the body is scanned once per distinct anchor rather than once per thread.+ */+const anchorKey = ({ prefix = '', quote, start, suffix = '' }: DocumentCommentSelectionAnchor) =>+ `${start}\u0001${prefix}\u0001${quote}\u0001${suffix}`;++/**+ * Resolutions keyed by the body text they were made against. A body update+ * that changed no text (formatting, an attribute, a caret) reuses every result+ * outright; only an actual edit pays for a scan, and even then only once per+ * distinct anchor. Orphaned anchors are the expensive ones — they miss the+ * offset fast path and fall through to a full `indexOf` — so not re-scanning+ * them for nothing matters most on a document that has accumulated many+ * retained comments.+ */+export interface AnchorResolveCache {+ results: ReadonlyMap<string, AnchorMatch | null>;+ text: string;+}++export const EMPTY_ANCHOR_RESOLVE_CACHE: AnchorResolveCache = { results: new Map(), text: '' };++export interface ResolvedAnchors {+ cache: AnchorResolveCache;+ /** Root id → where its quote sits in the body now. */+ matches: ReadonlyMap<string, AnchorMatch>;+ /** Roots whose quote is no longer in the body. */+ orphaned: ReadonlySet<string>;+}++/** Locate every anchor against the body, reusing `previous` where the text is unchanged. */+export const resolveAnchors = (+ flat: FlattenedText,+ entries: readonly DocumentCommentAnchorItem[],+ previous: AnchorResolveCache = EMPTY_ANCHOR_RESOLVE_CACHE,+): ResolvedAnchors => {+ const matches = new Map<string, AnchorMatch>();+ const orphaned = new Set<string>();+ const results = new Map<string, AnchorMatch | null>();+ const reusable = previous.text === flat.text;++ for (const { id: rootId, selectionAnchor } of entries) {+ const key = anchorKey(selectionAnchor);+ let match = results.get(key);+ if (match === undefined) {+ match =+ reusable && previous.results.has(key)+ ? previous.results.get(key)!+ : locateAnchor(flat, selectionAnchor);+ results.set(key, match);+ }+ if (match) matches.set(rootId, match);+ else orphaned.add(rootId);+ }++ return { cache: { results, text: flat.text }, matches, orphaned };+};diff --git a/src/features/PageEditor/DocumentComments/anchor/textAnchor.test.ts b/src/features/PageEditor/DocumentComments/anchor/textAnchor.test.tsnew file mode 100644index 00000000000..7e0dab64378--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/textAnchor.test.ts@@ -0,0 +1,331 @@+import type { DocumentCommentSelectionAnchor } from '@lobechat/types';+import { afterEach, describe, expect, it } from 'vitest';++import {+ ANCHOR_CONTEXT_LENGTH,+ ANCHOR_QUOTE_MAX_LENGTH,+ buildAnchorRange,+ captureSelectionAnchor,+ flattenEditorText,+ locateAnchor,+ pointToOffset,+} from './textAnchor';++const mount = (html: string) => {+ const root = document.createElement('div');+ root.innerHTML = html;+ document.body.append(root);+ return root;+};++const anchorOf = (+ quote: string,+ overrides: Partial<DocumentCommentSelectionAnchor> = {},+): DocumentCommentSelectionAnchor => ({+ end: (overrides.start ?? 0) + quote.length,+ quote,+ start: 0,+ ...overrides,+});++/** Select `quote` inside the first text node that contains it. */+const selectText = (root: HTMLElement, quote: string) => {+ const walker = document.createTreeWalker(root, NodeFilter.SHOW_TEXT);+ let node = walker.nextNode() as Text | null;+ while (node) {+ const index = node.data.indexOf(quote);+ if (index !== -1) {+ const range = document.createRange();+ range.setStart(node, index);+ range.setEnd(node, index + quote.length);+ const selection = window.getSelection()!;+ selection.removeAllRanges();+ selection.addRange(range);+ return;+ }+ node = walker.nextNode() as Text | null;+ }+ throw new Error(`No text node contains ${JSON.stringify(quote)}`);+};++afterEach(() => {+ window.getSelection()?.removeAllRanges();+ document.body.innerHTML = '';+});++describe('flattenEditorText', () => {+ it('separates block siblings so adjacent paragraphs never concatenate', () => {+ const root = mount('<p>Hello</p><p>World</p>');++ expect(flattenEditorText(root).text).toBe('Hello\nWorld\n');+ });++ it('keeps inline formatting as one continuous run', () => {+ const root = mount('<p>a <strong>bold</strong> word</p>');++ expect(flattenEditorText(root).text).toBe('a bold word\n');+ });++ it('breaks on <br> and skips non-rendered elements', () => {+ const root = mount('<p>one<br>two<style>.x{}</style></p>');++ expect(flattenEditorText(root).text).toBe('one\ntwo\n');+ });++ it('indexes every text node against the flattened offsets', () => {+ const root = mount('<p>ab</p><p>cd</p>');+ const flat = flattenEditorText(root);++ expect(flat.segments.map(({ end, start }) => [start, end])).toEqual([+ [0, 2],+ [3, 5],+ ]);+ expect(flat.text.slice(3, 5)).toBe('cd');+ });++ it('returns an empty result for a missing root', () => {+ expect(flattenEditorText(null)).toEqual({ segments: [], text: '' });+ });+});++describe('pointToOffset', () => {+ it('maps a text-node boundary to its flattened offset', () => {+ const root = mount('<p>ab</p><p>cd</p>');+ const flat = flattenEditorText(root);+ const second = flat.segments[1].node;++ expect(pointToOffset(flat, second, 1)).toBe(4);+ });++ it('maps an element boundary to the start of the following run', () => {+ const root = mount('<p>ab</p><p>cd</p>');+ const flat = flattenEditorText(root);++ expect(pointToOffset(flat, root, 1)).toBe(3);+ });++ it('maps a past-the-end element boundary to the end of its content', () => {+ const root = mount('<p>ab</p><p>cd</p>');+ const flat = flattenEditorText(root);++ expect(pointToOffset(flat, root, 2)).toBe(5);+ });+});++describe('locateAnchor', () => {+ it('resolves an untouched document at the stored offsets', () => {+ const flat = flattenEditorText(mount('<p>the quick brown fox</p>'));++ expect(locateAnchor(flat, anchorOf('quick', { end: 9, start: 4 }))).toEqual({+ end: 9,+ start: 4,+ });+ });++ it('follows the quote when text above it was inserted', () => {+ const flat = flattenEditorText(mount('<p>new line</p><p>the quick brown fox</p>'));++ expect(locateAnchor(flat, anchorOf('quick', { end: 9, start: 4 }))).toEqual({+ end: 18,+ start: 13,+ });+ });++ it('uses the surrounding context to pick between repeated quotes', () => {+ const flat = flattenEditorText(mount('<p>alpha target omega</p><p>delta target sigma</p>'));++ expect(+ locateAnchor(flat, {+ end: 6,+ prefix: 'delta ',+ quote: 'target',+ start: 0,+ suffix: ' sigma',+ }),+ ).toEqual({ end: 31, start: 25 });+ });++ it('falls back to the nearest occurrence when no context was stored', () => {+ const flat = flattenEditorText(mount('<p>target</p><p>target</p>'));++ expect(locateAnchor(flat, anchorOf('target', { end: 13, start: 7 }))).toEqual({+ end: 13,+ start: 7,+ });+ });++ it('ignores the stored offsets when a different sentence took that position', () => {+ // The reader inserted a paragraph that happens to repeat the quoted phrase+ // at exactly the old offset; the original still exists further down.+ const flat = flattenEditorText(mount('<p>delta target sigma</p><p>alpha target omega</p>'));++ expect(+ locateAnchor(flat, {+ end: 12,+ prefix: 'alpha ',+ quote: 'target',+ start: 6,+ suffix: ' omega',+ }),+ ).toEqual({ end: 31, start: 25 });+ });++ it('reports the anchor lost when the quote repeats past the scan cap without matching context', () => {+ const flat = flattenEditorText(mount(`<p>${'x '.repeat(4000)}</p>`));++ expect(+ locateAnchor(flat, { end: 5, prefix: 'gone ', quote: 'x', start: 4, suffix: ' away' }),+ ).toBeNull();+ });++ it('keeps the nearest repetition when the quote repeats far past the scan cap', () => {+ // Every occurrence carries identical context, so only distance can settle+ // it — and a top-down scan would burn the whole budget before reaching it.+ const flat = flattenEditorText(mount(`<p>a${'x '.repeat(4000)}</p>`));+ const quoteStart = 6000;++ const match = locateAnchor(flat, {+ end: quoteStart + 1,+ prefix: flat.text.slice(quoteStart - ANCHOR_CONTEXT_LENGTH - 1, quoteStart - 1),+ quote: 'x',+ start: quoteStart,+ suffix: flat.text.slice(quoteStart, quoteStart + ANCHOR_CONTEXT_LENGTH),+ })!;++ expect(Math.abs(match.start - quoteStart)).toBeLessThanOrEqual(1);+ });++ it('returns null once the quoted run is gone', () => {+ const flat = flattenEditorText(mount('<p>nothing like it here</p>'));++ expect(locateAnchor(flat, anchorOf('quick', { end: 9, start: 4 }))).toBeNull();+ });++ it('returns null for an empty body', () => {+ expect(locateAnchor(flattenEditorText(mount('')), anchorOf('quick'))).toBeNull();+ });+});++describe('buildAnchorRange', () => {+ it('spans the located run', () => {+ const root = mount('<p>the quick brown fox</p>');+ const flat = flattenEditorText(root);++ const range = buildAnchorRange(flat, { end: 9, start: 4 });++ expect(range?.toString()).toBe('quick');+ });++ it('spans a run that crosses a block boundary', () => {+ const root = mount('<p>ab</p><p>cd</p>');+ const flat = flattenEditorText(root);++ const range = buildAnchorRange(flat, { end: 5, start: 1 });++ expect(range?.toString()).toBe('bcd');+ });++ it('returns null when the body has no text', () => {+ expect(buildAnchorRange(flattenEditorText(mount('')), { end: 1, start: 0 })).toBeNull();+ });+});++describe('captureSelectionAnchor', () => {+ it('captures the quote with its surrounding context', () => {+ const root = mount('<p>the quick brown fox</p>');+ selectText(root, 'quick');++ expect(captureSelectionAnchor(root)).toEqual({+ end: 9,+ prefix: 'the ',+ quote: 'quick',+ start: 4,+ suffix: ' brown fox\n',+ });+ });++ it('trims whitespace at the selection edges', () => {+ const root = mount('<p>the quick brown fox</p>');+ selectText(root, ' quick ');++ const anchor = captureSelectionAnchor(root)!;++ expect(anchor.quote).toBe('quick');+ expect(anchor.end).toBe(anchor.start + anchor.quote.length);+ });++ it('caps an oversized selection at the stored quote limit', () => {+ const root = mount(`<p>${'x'.repeat(ANCHOR_QUOTE_MAX_LENGTH + 50)}</p>`);+ selectText(root, 'x'.repeat(ANCHOR_QUOTE_MAX_LENGTH + 50));++ const anchor = captureSelectionAnchor(root)!;++ expect(anchor.quote).toHaveLength(ANCHOR_QUOTE_MAX_LENGTH);+ expect(anchor.end).toBe(anchor.start + ANCHOR_QUOTE_MAX_LENGTH);+ });++ it('never cuts a surrogate pair in half when windowing the context', () => {+ // A lone surrogate is not well-formed text; Postgres rejects it on insert,+ // so an emoji sitting on a window boundary must not be split.+ const root = mount(+ `<p>\u{1F600}${'a'.repeat(ANCHOR_CONTEXT_LENGTH - 1)}word\u{1F600}${'b'.repeat(ANCHOR_CONTEXT_LENGTH)}</p>`,+ );+ selectText(root, 'word');++ const anchor = captureSelectionAnchor(root)!;++ expect(anchor.prefix!.isWellFormed()).toBe(true);+ expect(anchor.suffix!.isWellFormed()).toBe(true);+ expect(anchor.quote.isWellFormed()).toBe(true);+ });++ it('keeps an oversized selection well-formed when the cap lands inside a surrogate pair', () => {+ const root = mount(`<p>${'x'.repeat(ANCHOR_QUOTE_MAX_LENGTH - 1)}\u{1F600}yyy</p>`);+ selectText(root, `${'x'.repeat(ANCHOR_QUOTE_MAX_LENGTH - 1)}\u{1F600}yyy`);++ const anchor = captureSelectionAnchor(root)!;++ expect(anchor.quote).toHaveLength(ANCHOR_QUOTE_MAX_LENGTH - 1);+ expect(anchor.quote.isWellFormed()).toBe(true);+ expect(anchor.end).toBe(anchor.start + anchor.quote.length);+ });++ it('returns null for a collapsed selection', () => {+ const root = mount('<p>the quick brown fox</p>');+ const flat = flattenEditorText(root);+ const range = document.createRange();+ range.setStart(flat.segments[0].node, 2);+ range.collapse(true);+ const selection = window.getSelection()!;+ selection.removeAllRanges();+ selection.addRange(range);++ expect(captureSelectionAnchor(root)).toBeNull();+ });++ it('returns null for a whitespace-only selection', () => {+ const root = mount('<p>a b</p>');+ selectText(root, ' ');++ expect(captureSelectionAnchor(root)).toBeNull();+ });++ it('returns null for a selection outside the body', () => {+ const root = mount('<p>inside</p>');+ const outside = mount('<p>outside</p>');+ selectText(outside, 'outside');++ expect(captureSelectionAnchor(root)).toBeNull();+ });++ it('round-trips a captured anchor back to the same range', () => {+ const root = mount('<p>alpha</p><p>the quick brown fox</p>');+ selectText(root, 'brown');++ const anchor = captureSelectionAnchor(root)!;+ const flat = flattenEditorText(root);+ const match = locateAnchor(flat, anchor)!;++ expect(buildAnchorRange(flat, match)?.toString()).toBe('brown');+ });+});diff --git a/src/features/PageEditor/DocumentComments/anchor/textAnchor.ts b/src/features/PageEditor/DocumentComments/anchor/textAnchor.tsnew file mode 100644index 00000000000..5baadafa614--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/textAnchor.ts@@ -0,0 +1,431 @@+import type { DocumentCommentSelectionAnchor } from '@lobechat/types';++/** Kept in sync with the router's `selectionAnchorSchema`. */+export const ANCHOR_QUOTE_MAX_LENGTH = 2000;+export const ANCHOR_CONTEXT_LENGTH = 100;++/**+ * Cap on how many identical occurrences of a quote are scored. Past this the+ * quote is repeated so often that context cannot single one out, and the+ * scan reports the anchor lost rather than picking an arbitrary hit.+ */+const MAX_CANDIDATES = 2000;++/**+ * Elements that start a new line of running text. The flattened text inserts a+ * `\n` at their boundaries so two adjacent paragraphs never concatenate into a+ * word that exists in neither ("Hello" + "World" -> "HelloWorld"), which would+ * otherwise produce quotes that read as gibberish and context windows that+ * match the wrong run.+ */+const BLOCK_TAGS = new Set([+ 'ADDRESS',+ 'ARTICLE',+ 'ASIDE',+ 'BLOCKQUOTE',+ 'DD',+ 'DETAILS',+ 'DIV',+ 'DL',+ 'DT',+ 'FIELDSET',+ 'FIGCAPTION',+ 'FIGURE',+ 'FOOTER',+ 'FORM',+ 'H1',+ 'H2',+ 'H3',+ 'H4',+ 'H5',+ 'H6',+ 'HEADER',+ 'HR',+ 'LI',+ 'MAIN',+ 'NAV',+ 'OL',+ 'P',+ 'PRE',+ 'SECTION',+ 'TABLE',+ 'TD',+ 'TH',+ 'TR',+ 'UL',+]);++/** Never contribute rendered text. */+const SKIPPED_TAGS = new Set(['NOSCRIPT', 'SCRIPT', 'STYLE', 'TEMPLATE']);++interface TextSegment {+ /** Exclusive offset of this node's last character in {@link FlattenedText.text}. */+ end: number;+ node: Text;+ /** Offset of this node's first character in {@link FlattenedText.text}. */+ start: number;+}++export interface FlattenedText {+ /** In document order. Synthetic block separators live *between* segments and belong to none. */+ segments: TextSegment[];+ text: string;+}++export interface AnchorMatch {+ end: number;+ start: number;+}++export const EMPTY_FLATTENED_TEXT: FlattenedText = { segments: [], text: '' };++/**+ * Flatten the rendered body into one string plus a DOM index, so an anchor can+ * be expressed as plain character offsets.+ *+ * Reading the DOM rather than the Lexical editor state is deliberate: the same+ * walk serves capture, re-location and range painting, so all three agree by+ * construction, and none of them depends on node keys that the editor throws+ * away on every load.+ */+export const flattenEditorText = (root: HTMLElement | null | undefined): FlattenedText => {+ if (!root) return EMPTY_FLATTENED_TEXT;++ const segments: TextSegment[] = [];+ let text = '';++ const pushBreak = () => {+ if (text.length > 0 && !text.endsWith('\n')) text += '\n';+ };++ const visit = (node: Node) => {+ if (node.nodeType === Node.TEXT_NODE) {+ const value = (node as Text).data;+ if (!value) return;+ segments.push({ end: text.length + value.length, node: node as Text, start: text.length });+ text += value;+ return;+ }+ if (node.nodeType !== Node.ELEMENT_NODE) return;++ const element = node as HTMLElement;+ if (SKIPPED_TAGS.has(element.tagName)) return;+ if (element.tagName === 'BR') {+ pushBreak();+ return;+ }++ const isBlock = BLOCK_TAGS.has(element.tagName);+ if (isBlock) pushBreak();+ for (const child of element.childNodes) visit(child);+ if (isBlock) pushBreak();+ };++ visit(root);++ return { segments, text };+};++const isWhitespace = (value: string | undefined) => Boolean(value) && /\s/.test(value!);++const isHighSurrogate = (code: number) => code >= 0xd800 && code <= 0xdbff;+const isLowSurrogate = (code: number) => code >= 0xdc00 && code <= 0xdfff;++/** True when cutting the string at `index` would leave half a surrogate pair. */+const splitsSurrogatePair = (text: string, index: number) =>+ index > 0 &&+ index < text.length &&+ isHighSurrogate(text.charCodeAt(index - 1)) &&+ isLowSurrogate(text.charCodeAt(index));++/**+ * Nudge a slice boundary off the middle of a surrogate pair.+ *+ * An anchor is stored as JSONB, and Postgres rejects a string containing a lone+ * surrogate — so a prefix window that happens to start halfway through an emoji+ * would fail the whole insert. `direction` says which way the boundary may move+ * without eating into the text the caller actually wants.+ */+const safeBoundary = (text: string, index: number, direction: -1 | 1) =>+ splitsSurrogatePair(text, index) ? index + direction : index;++/** Offset of the first character contributed by `node` or anything after it. */+const offsetAtStartOf = (flat: FlattenedText, node: Node): number => {+ for (const segment of flat.segments) {+ if (segment.node === node) return segment.start;+ const position = node.compareDocumentPosition(segment.node);+ if (+ position & Node.DOCUMENT_POSITION_CONTAINED_BY ||+ position & Node.DOCUMENT_POSITION_FOLLOWING+ )+ return segment.start;+ }+ return flat.text.length;+};++/** Offset just past the last character contributed by `node` or anything before it. */+const offsetAtEndOf = (flat: FlattenedText, node: Node): number => {+ let offset = 0;+ for (const segment of flat.segments) {+ if (segment.node === node) {+ offset = segment.end;+ continue;+ }+ const position = node.compareDocumentPosition(segment.node);+ if (+ position & Node.DOCUMENT_POSITION_CONTAINED_BY ||+ position & Node.DOCUMENT_POSITION_PRECEDING+ ) {+ offset = segment.end;+ continue;+ }+ break;+ }+ return offset;+};++/** Turn a DOM boundary point into a flattened-text offset. */+export const pointToOffset = (+ flat: FlattenedText,+ container: Node,+ containerOffset: number,+): number => {+ if (container.nodeType === Node.TEXT_NODE) {+ const segment = flat.segments.find(({ node }) => node === container);+ if (segment) return Math.min(segment.start + containerOffset, segment.end);+ // An empty text node contributes nothing, so fall back to its position.+ return offsetAtStartOf(flat, container);+ }++ const child = container.childNodes[containerOffset];+ return child ? offsetAtStartOf(flat, child) : offsetAtEndOf(flat, container);+};++interface DomPoint {+ node: Text;+ offset: number;+}++/**+ * Turn a flattened-text offset back into a DOM point. An offset that lands on a+ * synthetic block separator belongs to no text node, so it is clamped towards+ * the inside of the run: forward for a start edge, backward for an end edge.+ */+const offsetToPoint = (+ flat: FlattenedText,+ offset: number,+ edge: 'end' | 'start',+): DomPoint | null => {+ const { segments } = flat;+ if (segments.length === 0) return null;++ if (edge === 'start') {+ for (const segment of segments) {+ if (offset < segment.start) return { node: segment.node, offset: 0 };+ if (offset <= segment.end) return { node: segment.node, offset: offset - segment.start };+ }+ const last = segments.at(-1)!;+ return { node: last.node, offset: last.node.data.length };+ }++ for (let index = segments.length - 1; index >= 0; index--) {+ const segment = segments[index];+ if (offset > segment.end) return { node: segment.node, offset: segment.node.data.length };+ if (offset >= segment.start) return { node: segment.node, offset: offset - segment.start };+ }+ const first = segments[0];+ return { node: first.node, offset: 0 };+};++export const buildAnchorRange = (flat: FlattenedText, match: AnchorMatch): Range | null => {+ const start = offsetToPoint(flat, match.start, 'start');+ const end = offsetToPoint(flat, match.end, 'end');+ if (!start || !end) return null;++ const range = start.node.ownerDocument.createRange();+ try {+ range.setStart(start.node, start.offset);+ range.setEnd(end.node, end.offset);+ } catch {+ return null;+ }+ return range.collapsed ? null : range;+};++const commonSuffixLength = (left: string, right: string) => {+ let length = 0;+ while (+ length < left.length &&+ length < right.length &&+ left[left.length - 1 - length] === right[right.length - 1 - length]+ )+ length++;+ return length;+};++const commonPrefixLength = (left: string, right: string) => {+ let length = 0;+ while (length < left.length && length < right.length && left[length] === right[length]) length++;+ return length;+};++/**+ * Re-find an anchor in the current body.+ *+ * The stored offsets are only a hint — any edit above the quote shifts them —+ * so they are checked first (the common, unedited case, and free) and then+ * demoted to a tie-breaker between candidates that the surrounding text can't+ * separate. Context agreement always outranks position: the distance term is+ * normalised below 1 so it can never outvote a single matching character of+ * prefix or suffix.+ *+ * Returns `null` when the quoted run no longer exists — the caller renders the+ * comment as orphaned rather than guessing at a different run.+ */+export const locateAnchor = (+ flat: FlattenedText,+ anchor: DocumentCommentSelectionAnchor,+): AnchorMatch | null => {+ const { prefix = '', quote, start, suffix = '' } = anchor;+ if (!quote) return null;+ if (!flat.text) return null;++ const fullContext = prefix.length + suffix.length;+ const contextScore = (index: number) => {+ const before = flat.text.slice(Math.max(0, index - prefix.length), index);+ const after = flat.text.slice(index + quote.length, index + quote.length + suffix.length);+ return commonSuffixLength(before, prefix) + commonPrefixLength(after, suffix);+ };++ // Fast path for the untouched document. The context has to agree too: an+ // identical phrase that happens to land on the stored offset — say the reader+ // duplicated the paragraph above — is a different sentence, not this one.+ if (+ flat.text.slice(start, start + quote.length) === quote &&+ contextScore(start) === fullContext+ ) {+ return { end: start + quote.length, start };+ }++ let best: number | null = null;+ let bestScore = Number.NEGATIVE_INFINITY;+ let bestContext = -1;+ let seen = 0;+ let truncated = false;++ // Occurrences are visited outwards from the stored offset rather than from+ // the top of the document, so the candidate cap can only ever discard the+ // furthest repetitions — scanning top-down would spend the whole budget+ // before reaching the one the reader actually annotated.+ let forward = flat.text.indexOf(quote, start);+ let backward = start > 0 ? flat.text.lastIndexOf(quote, start - 1) : -1;++ while (forward !== -1 || backward !== -1) {+ if (seen >= MAX_CANDIDATES) {+ truncated = true;+ break;+ }+ const takeForward =+ backward === -1 ||+ (forward !== -1 && Math.abs(forward - start) <= Math.abs(backward - start));+ const index = takeForward ? forward : backward;+ if (takeForward) forward = flat.text.indexOf(quote, forward + 1);+ else backward = backward === 0 ? -1 : flat.text.lastIndexOf(quote, backward - 1);++ seen++;+ const context = contextScore(index);+ const score = context - Math.abs(index - start) / (flat.text.length + 1);++ if (score > bestScore) {+ bestScore = score;+ bestContext = context;+ best = index;+ }+ }++ if (best === null) return null;+ // The scan stopped early and nothing matched its stored context outright, so+ // the right occurrence may well be one we never looked at. Report the anchor+ // lost instead of pointing the comment at a arbitrary repetition.+ if (truncated && bestContext < fullContext) return null;+ return { end: best + quote.length, start: best };+};++/**+ * Read the reader's current selection as an anchor.+ *+ * Whitespace at either edge is dropped before the quote is taken so a sloppy+ * double-click ("word ") doesn't bake a trailing space into the text every+ * future re-location has to reproduce. Returns `null` for a collapsed+ * selection, one outside the body, or one that is whitespace only.+ */+export const captureSelectionAnchor = (+ root: HTMLElement | null | undefined,+): DocumentCommentSelectionAnchor | null => {+ if (!root) return null;+ const selection = root.ownerDocument.defaultView?.getSelection();+ if (!selection || selection.isCollapsed || selection.rangeCount === 0) return null;++ const range = selection.getRangeAt(0);+ if (!root.contains(range.commonAncestorContainer)) return null;++ const flat = flattenEditorText(root);+ if (!flat.text) return null;++ let start = pointToOffset(flat, range.startContainer, range.startOffset);+ let end = pointToOffset(flat, range.endContainer, range.endOffset);+ if (end < start) [start, end] = [end, start];++ while (start < end && isWhitespace(flat.text[start])) start++;+ while (end > start && isWhitespace(flat.text[end - 1])) end--;++ // Every window below is cut to a fixed length, which can land halfway through+ // an astral character. Snap each boundary inwards first: the anchor is stored+ // as JSONB and a lone surrogate would fail the insert outright.+ start = safeBoundary(flat.text, start, 1);+ end = safeBoundary(flat.text, end, -1);+ if (end <= start) return null;++ if (end - start > ANCHOR_QUOTE_MAX_LENGTH) {+ end = safeBoundary(flat.text, start + ANCHOR_QUOTE_MAX_LENGTH, -1);+ }+ if (end <= start) return null;++ const prefixStart = safeBoundary(flat.text, Math.max(0, start - ANCHOR_CONTEXT_LENGTH), 1);+ const suffixEnd = safeBoundary(+ flat.text,+ Math.min(flat.text.length, end + ANCHOR_CONTEXT_LENGTH),+ -1,+ );++ return {+ end,+ prefix: flat.text.slice(prefixStart, start),+ quote: flat.text.slice(start, end),+ start,+ suffix: flat.text.slice(end, suffixEnd),+ };+};++/** Which flattened-text offset sits under a viewport point, or `null` when it is outside the body. */+export const offsetFromClientPoint = (+ root: HTMLElement,+ flat: FlattenedText,+ clientX: number,+ clientY: number,+): number | null => {+ const doc = root.ownerDocument as Document & {+ caretPositionFromPoint?: (x: number, y: number) => { offset: number; offsetNode: Node } | null;+ caretRangeFromPoint?: (x: number, y: number) => Range | null;+ };++ const position = doc.caretPositionFromPoint?.(clientX, clientY);+ if (position?.offsetNode) {+ if (!root.contains(position.offsetNode)) return null;+ return pointToOffset(flat, position.offsetNode, position.offset);+ }++ const caretRange = doc.caretRangeFromPoint?.(clientX, clientY);+ if (!caretRange || !root.contains(caretRange.startContainer)) return null;+ return pointToOffset(flat, caretRange.startContainer, caretRange.startOffset);+};diff --git a/src/features/PageEditor/DocumentComments/anchor/useDocumentCommentAnchors.ts b/src/features/PageEditor/DocumentComments/anchor/useDocumentCommentAnchors.tsnew file mode 100644index 00000000000..04d5240222f--- /dev/null+++ b/src/features/PageEditor/DocumentComments/anchor/useDocumentCommentAnchors.ts@@ -0,0 +1,270 @@+'use client';++import type { DocumentCommentAnchorItem } from '@lobechat/types';+import type { IEditor } from '@lobehub/editor';+import { debounce } from 'es-toolkit/compat';+import type { Dispatch, SetStateAction } from 'react';+import { useCallback, useEffect, useMemo, useRef, useState } from 'react';++import { usePageEditorStore } from '../../store';+import { focusCommentCard, scrollAnchorIntoView } from './commentLocator';+import { clearCommentHighlights, paintCommentHighlights } from './highlights';+import type { AnchorResolveCache } from './resolveAnchors';+import { EMPTY_ANCHOR_RESOLVE_CACHE, resolveAnchors } from './resolveAnchors';+import type { AnchorMatch, FlattenedText } from './textAnchor';+import {+ buildAnchorRange,+ EMPTY_FLATTENED_TEXT,+ flattenEditorText,+ locateAnchor,+ offsetFromClientPoint,+} from './textAnchor';++const EMPTY_MATCHES: ReadonlyMap<string, AnchorMatch> = new Map();++/** Re-resolving on every keystroke is wasted work; the body settles far faster than a reader reacts. */+const BODY_SETTLE_DELAY = 200;+const BODY_SETTLE_MAX_WAIT = 1000;++/**+ * The body element plus a revision that ticks whenever its text changes.+ *+ * Anchors are resolved against the rendered DOM, so every content edit+ * invalidates both the flattened text and the painted ranges (Lexical swaps+ * text nodes wholesale rather than mutating them in place).+ */+const useEditorBody = (editor?: IEditor) => {+ const [element, setElement] = useState<HTMLElement | null>(null);+ const [revision, setRevision] = useState(0);++ useEffect(() => {+ if (!editor) {+ setElement(null);+ return;+ }++ let disposed = false;+ let unregisterUpdates: (() => void) | undefined;+ let unregisterRoot: (() => void) | undefined;++ const bump = debounce(+ () => {+ if (!disposed) setRevision((current) => current + 1);+ },+ BODY_SETTLE_DELAY,+ { maxWait: BODY_SETTLE_MAX_WAIT },+ );++ const attach = () => {+ if (disposed) return;+ const lexical = editor.getLexicalEditor?.();+ if (!lexical) return;++ // A document switch rebuilds the Lexical editor under the same kernel,+ // so drop the previous registrations before taking new ones.+ unregisterRoot?.();+ unregisterUpdates?.();++ setElement(editor.getRootElement?.() ?? null);+ unregisterRoot = lexical.registerRootListener((root) => {+ if (!disposed) setElement(root ?? null);+ });+ unregisterUpdates = lexical.registerUpdateListener(({ dirtyElements, dirtyLeaves }) => {+ // Caret moves don't change the text, so they can't move an anchor.+ if (dirtyElements.size === 0 && dirtyLeaves.size === 0) return;+ bump();+ });+ // The document may already be hydrated by the time we attach.+ bump();+ };++ // The comment list mounts beside the body, but the body itself only mounts+ // once its content request resolves — a cold document shows a skeleton+ // first. Wait for the kernel's own signal instead of polling for a bounded+ // window and giving up forever on a slow load.+ editor.on('initialized', attach);+ attach();++ return () => {+ disposed = true;+ editor.off('initialized', attach);+ bump.cancel();+ unregisterUpdates?.();+ unregisterRoot?.();+ };+ }, [editor]);++ return { element, revision };+};++const sameRootIds = (left: ReadonlySet<string>, right: ReadonlySet<string>) =>+ left.size === right.size && [...left].every((id) => right.has(id));++export interface DocumentCommentAnchorsValue {+ /**+ * The thread whose run is emphasised in the body right now. A hover wins+ * while it lasts; underneath it the last deliberately picked thread stays+ * emphasised, so arriving at a quote does not immediately lose it again.+ */+ activeRootId: string | null;+ /** Scroll the body to a thread's anchor and select it. No-op for an orphaned anchor. */+ locateInBody: (rootCommentId: string) => void;+ /** Threads whose quoted run no longer exists in the body. */+ orphanedRootIds: ReadonlySet<string>;+ /** Transient emphasis while the pointer is over a card. */+ setHoveredRootId: Dispatch<SetStateAction<string | null>>;+}++export interface DocumentCommentAnchorsOptions {+ /**+ * A run was picked in the body but its card is not mounted — the thread is+ * on a page the list has not loaded yet. The caller brings it into view+ * (the same pinning a notification deep link uses).+ */+ onPickUnloaded?: (rootCommentId: string) => void;+}++/**+ * Resolve every anchored thread against the live body, paint the highlights,+ * and wire the two-way jump between a run and its comment card.+ *+ * `anchors` is the document's complete anchor set, not the loaded thread+ * pages: highlights must exist for every anchored run so a comment further+ * down the list is still discoverable from the body.+ *+ * Nothing here writes back to the server: an anchor's stored offsets are a+ * capture-time snapshot, and re-location is a pure read of the current DOM. A+ * thread whose quote is gone is reported as orphaned rather than silently+ * re-pointed at a different run.+ */+export const useDocumentCommentAnchors = (+ anchors: readonly DocumentCommentAnchorItem[],+ { onPickUnloaded }: DocumentCommentAnchorsOptions = {},+): DocumentCommentAnchorsValue => {+ const editor = usePageEditorStore((s) => s.editor);+ // A quote captured before a document switch belongs to the previous body;+ // painting it here would highlight whatever text happens to match.+ const pendingAnchor = usePageEditorStore((s) =>+ s.pendingCommentAnchor?.documentId && s.pendingCommentAnchor.documentId === s.documentId+ ? s.pendingCommentAnchor.anchor+ : undefined,+ );+ const { element, revision } = useEditorBody(editor);++ const [hoveredRootId, setHoveredRootId] = useState<string | null>(null);+ const [selectedRootId, setSelectedRootId] = useState<string | null>(null);+ const activeRootId = hoveredRootId ?? selectedRootId;+ const [orphanedRootIds, setOrphanedRootIds] = useState<ReadonlySet<string>>(() => new Set());+ const [resolvedAt, setResolvedAt] = useState(0);++ const flatRef = useRef<FlattenedText>(EMPTY_FLATTENED_TEXT);+ const matchesRef = useRef<ReadonlyMap<string, AnchorMatch>>(EMPTY_MATCHES);+ // See `resolveAnchors`: results are reused while the body text is unchanged,+ // so a formatting-only update never re-scans for orphaned quotes.+ const resolveCacheRef = useRef<AnchorResolveCache>(EMPTY_ANCHOR_RESOLVE_CACHE);+ // `anchors` is rebuilt from SWR data on every render, so it can't be an+ // effect dependency — the resolve below writes state and would re-run itself+ // forever. The signature is the content that actually matters, as a string.+ const anchorsRef = useRef(anchors);+ anchorsRef.current = anchors;+ const onPickUnloadedRef = useRef(onPickUnloaded);+ onPickUnloadedRef.current = onPickUnloaded;++ const anchorSignature = useMemo(+ () =>+ anchors+ .map(+ ({ id, selectionAnchor }) =>+ `${id}\u0001${selectionAnchor.start}\u0001${selectionAnchor.quote}`,+ )+ .join('\u0000'),+ [anchors],+ );+ const hasPendingAnchor = Boolean(pendingAnchor);++ useEffect(() => {+ const entries = anchorsRef.current;++ // Most documents carry no anchors at all; skip the body walk entirely for them.+ const flat =+ entries.length > 0 || hasPendingAnchor ? flattenEditorText(element) : EMPTY_FLATTENED_TEXT;+ const { cache, matches, orphaned } = resolveAnchors(flat, entries, resolveCacheRef.current);++ resolveCacheRef.current = cache;+ flatRef.current = flat;+ matchesRef.current = matches;+ setOrphanedRootIds((current) => (sameRootIds(current, orphaned) ? current : orphaned));+ setResolvedAt((current) => current + 1);+ }, [anchorSignature, element, hasPendingAnchor, revision]);++ useEffect(() => {+ paintCommentHighlights({+ activeRootId,+ flat: flatRef.current,+ matches: matchesRef.current,+ pending: pendingAnchor ? locateAnchor(flatRef.current, pendingAnchor) : null,+ });+ }, [activeRootId, pendingAnchor, resolvedAt]);++ useEffect(() => () => clearCommentHighlights(), []);++ const locateInBody = useCallback((rootCommentId: string) => {+ const match = matchesRef.current.get(rootCommentId);+ if (!match) return;+ const range = buildAnchorRange(flatRef.current, match);+ if (!range) return;+ scrollAnchorIntoView(range);+ // Jumping to a quote is a deliberate pick, so the run stays emphasised+ // until another thread is picked or the reader clicks elsewhere in the+ // body. A timed flash would drop it seconds after they arrive.+ setSelectedRootId(rootCommentId);+ }, []);++ // Clicking a run selects its thread. Selecting moves nothing, so unlike the+ // old jump-to-the-comment behaviour it can't interrupt someone mid-edit and+ // needs no "is the reader typing?" guard — that guard was what made a second+ // click inside the body do nothing at all once the editor held focus.+ //+ // It deliberately does NOT scroll to the card: the comment list lives below+ // the body, so scrolling would throw the reader to the bottom of the page+ // just for pointing at a sentence. LOBE-14151 (cards beside the text) turns+ // this into focusing the card in place.+ useEffect(() => {+ if (!element) return;++ const handleClick = (event: MouseEvent) => {+ if (matchesRef.current.size === 0) return;+ // A drag that ends inside a run is a text selection, not a pick.+ const selection = element.ownerDocument.defaultView?.getSelection();+ if (selection && !selection.isCollapsed) return;++ const offset = offsetFromClientPoint(element, flatRef.current, event.clientX, event.clientY);+ if (offset === null) return;++ // Nested anchors are legal; the tightest one is the one being pointed at.+ let hitId: string | null = null;+ let hitLength = Number.POSITIVE_INFINITY;+ for (const [rootId, match] of matchesRef.current) {+ const length = match.end - match.start;+ if (offset >= match.start && offset < match.end && length < hitLength) {+ hitId = rootId;+ hitLength = length;+ }+ }+ setSelectedRootId(hitId);+ if (!hitId) return;++ // The card may sit on a thread page the list has not loaded yet — the+ // highlight exists because anchors are fetched for the whole document.+ if (!focusCommentCard(hitId, { scroll: false })) onPickUnloadedRef.current?.(hitId);+ };++ element.addEventListener('click', handleClick);+ return () => element.removeEventListener('click', handleClick);+ }, [element]);++ return useMemo(+ () => ({ activeRootId, locateInBody, orphanedRootIds, setHoveredRootId }),+ [activeRootId, locateInBody, orphanedRootIds],+ );+};diff --git a/src/features/PageEditor/DocumentComments/hooks.ts b/src/features/PageEditor/DocumentComments/hooks.tsindex 482cd82ca13..c3fd4c5b08d 100644--- a/src/features/PageEditor/DocumentComments/hooks.ts+++ b/src/features/PageEditor/DocumentComments/hooks.ts@@ -1,7 +1,9 @@import type {+ DocumentCommentAnchorList,DocumentCommentDetail,DocumentCommentItem,DocumentCommentReplyPage,+ DocumentCommentSelectionAnchor,DocumentCommentSummary,DocumentCommentThreadPage,} from '@lobechat/types';@@ -91,6 +93,7 @@ export const useOptimisticDocumentComment = () => {editorData,parentCommentId,replyTo,+ selectionAnchor,}: {clientId: string;content: string;@@ -98,6 +101,7 @@ export const useOptimisticDocumentComment = () => {editorData: DocumentCommentItem['editorData'];parentCommentId?: string;replyTo?: DocumentCommentItem['replyTo'];+ selectionAnchor?: DocumentCommentSelectionAnchor;}) => {if (!workspaceId) throw new Error('Workspace is required for document comments');@@ -115,6 +119,7 @@ export const useOptimisticDocumentComment = () => {editorData,parentCommentId,replyTo,+ selectionAnchor,userId: user?.id ?? null,workspaceId,});@@ -123,6 +128,20 @@ export const useOptimisticDocumentComment = () => {);};+/**+ * Every anchored root of the document, independent of how many thread pages+ * the list has loaded. Body highlights are painted from this so a+ * newer anchored comment is discoverable from the document right after a+ * reload, not only once the reader has paged the list far enough to reach it.+ */+export const useDocumentCommentAnchorList = (documentId?: string | null) => {+ const workspaceId = useActiveWorkspaceId();+ return useClientDataSWR<DocumentCommentAnchorList>(+ documentId && workspaceId ? documentCommentKeys.anchors(workspaceId, documentId) : null,+ () => documentCommentService.listAnchors(documentId!),+ );+};+export const useDocumentCommentThreads = (documentId?: string | null) => {const workspaceId = useActiveWorkspaceId();const getKey = useCallback(diff --git a/src/features/PageEditor/DocumentComments/index.tsx b/src/features/PageEditor/DocumentComments/index.tsxindex 6a16f9326c3..1361cfee90d 100644--- a/src/features/PageEditor/DocumentComments/index.tsx+++ b/src/features/PageEditor/DocumentComments/index.tsx@@ -1,8 +1,9 @@'use client';+import type { DocumentCommentAnchorItem } from '@lobechat/types';import { Center, Flexbox } from '@lobehub/ui';import { Button, Skeleton, Text, toast } from '@lobehub/ui/base-ui';-import { memo, useCallback, useEffect } from 'react';+import { memo, useCallback, useEffect, useMemo } from 'react';import { useTranslation } from 'react-i18next';import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';@@ -10,8 +11,12 @@ import AsyncError from '@/components/AsyncError';import SurfaceSkeleton from '@/components/Skeleton/Surface';import { documentCommentService } from '@/services/documentComment';+import { DocumentCommentAnchorsProvider } from './anchor/context';+import DocumentCommentHighlightStyle from './anchor/HighlightStyle';+import { useDocumentCommentAnchors } from './anchor/useDocumentCommentAnchors';import Composer from './Composer';import {+ useDocumentCommentAnchorList,useDocumentCommentDetail,useDocumentCommentSummary,useDocumentCommentThreads,@@ -37,14 +42,16 @@ const DocumentComments = memo<{ documentId: string }>(({ documentId }) => {const workspaceId = useActiveWorkspaceId();const summary = useDocumentCommentSummary(workspaceId ? documentId : undefined);const threads = useDocumentCommentThreads(workspaceId ? documentId : undefined);+ const anchorList = useDocumentCommentAnchorList(workspaceId ? documentId : undefined);const createOptimistic = useOptimisticDocumentComment();- const { clearFocus, focus, focusRoot } = useDocumentCommentDeepLink(documentId);+ const { clearFocus, focus, focusRoot, focusThread } = useDocumentCommentDeepLink(documentId);const reloadSummary = summary.mutate;const reloadThreads = threads.reload;const mutateThreads = threads.mutate;+ const mutateAnchors = anchorList.mutate;const refresh = useCallback(async () => {- await Promise.all([reloadThreads(), reloadSummary()]);- }, [reloadSummary, reloadThreads]);+ await Promise.all([reloadThreads(), reloadSummary(), mutateAnchors()]);+ }, [mutateAnchors, reloadSummary, reloadThreads]);const updateSummaryTotal = useCallback((delta: number) =>reloadSummary(@@ -62,8 +69,14 @@ const DocumentComments = memo<{ documentId: string }>(({ documentId }) => {[mutateThreads],);const handleCreate = useCallback(- async ({ clientId, content, editorData }: DocumentCommentSubmitInput) => {- const optimisticComment = createOptimistic({ clientId, content, documentId, editorData });+ async ({ clientId, content, editorData, selectionAnchor }: DocumentCommentSubmitInput) => {+ const optimisticComment = createOptimistic({+ clientId,+ content,+ documentId,+ editorData,+ selectionAnchor,+ });await Promise.all([mutateThreads((pages) => appendOptimisticThread(pages, optimisticComment), {revalidate: false,@@ -78,6 +91,7 @@ const DocumentComments = memo<{ documentId: string }>(({ documentId }) => {content,documentId,editorData,+ selectionAnchor,});if (!created) throw new Error('Document comment creation returned no result');} catch (error) {@@ -99,8 +113,33 @@ const DocumentComments = memo<{ documentId: string }>(({ documentId }) => {void reloadThreads();}if (created.isDuplicate) void reloadSummary();+ // The body paints from the document-wide anchor list, so the new root+ // joins it here rather than waiting for the next revalidation.+ const createdAnchor = created.comment.selectionAnchor;+ if (createdAnchor) {+ void mutateAnchors(+ (current) =>+ current && !current.items.some(({ id }) => id === created.comment.id)+ ? {+ items: [+ ...current.items,+ { id: created.comment.id, selectionAnchor: createdAnchor },+ ],+ }+ : current,+ { revalidate: false },+ );+ }},- [createOptimistic, documentId, mutateThreads, reloadSummary, reloadThreads, updateSummaryTotal],+ [+ createOptimistic,+ documentId,+ mutateAnchors,+ mutateThreads,+ reloadSummary,+ reloadThreads,+ updateSummaryTotal,+ ],);const handleUpdate: DocumentCommentUpdateHandler = useCallback(async (comment, value) => {@@ -146,10 +185,31 @@ const DocumentComments = memo<{ documentId: string }>(({ documentId }) => {Boolean(focusedRootData) &&!focusedRootData?.parentCommentId &&focusedRootData?.documentId === documentId;- const pinnedThread =- focus && !hasFocusedThread && focusedRootData && isFocusedRootUsable- ? { replyCount: focusedRootData.replyCount, root: focusedRootData }- : undefined;+ const pinnedThread = useMemo(+ () =>+ focus && !hasFocusedThread && focusedRootData && isFocusedRootUsable+ ? { replyCount: focusedRootData.replyCount, root: focusedRootData }+ : undefined,+ [focus, focusedRootData, hasFocusedThread, isFocusedRootUsable],+ );+ // Highlights come from the document-wide anchor list so every anchored run+ // is discoverable from the body, however far down the list its card sits.+ // Loaded pages and the pinned thread are folded in on top: an optimistic+ // root has no server row yet, and a pinned root may predate the last fetch.+ const anchorItems = useMemo(() => {+ const byId = new Map<string, DocumentCommentAnchorItem>();+ for (const { id, selectionAnchor } of anchorList.data?.items ?? []) {+ byId.set(id, { id, selectionAnchor });+ }+ const loaded = pinnedThread ? [pinnedThread, ...threads.items] : threads.items;+ for (const { root } of loaded) {+ if (root.selectionAnchor && !byId.has(root.id)) {+ byId.set(root.id, { id: root.id, selectionAnchor: root.selectionAnchor });+ }+ }+ return [...byId.values()];+ }, [anchorList.data, pinnedThread, threads.items]);+ const anchors = useDocumentCommentAnchors(anchorItems, { onPickUnloaded: focusThread });const isFocusedRootMissing =Boolean(focusRootCommentId) &&(focusedRoot.isNotFound || (Boolean(focusedRootData) && !isFocusedRootUsable));@@ -216,106 +276,109 @@ const DocumentComments = memo<{ documentId: string }>(({ documentId }) => {if (!workspaceId) return null;return (- <Flexbox- data-document-comments- className={styles.section}- gap={24}- onClick={(event) => event.stopPropagation()}- >- <Flexbox horizontal align={'center'} className={styles.header} gap={8}>- {isHeaderLoading ? (- <>- <Skeleton height={28} width={48} />- <Skeleton height={20} width={16} />- </>- ) : (- <>- <Text as={'h2'} fontSize={20} weight={600}>- {t('pageEditor.comments.title')}- </Text>- {summary.data && (- <Text className={styles.meta} fontSize={14}>- {summary.data.total}+ <DocumentCommentAnchorsProvider value={anchors}>+ <DocumentCommentHighlightStyle />+ <Flexbox+ data-document-comments+ className={styles.section}+ gap={24}+ onClick={(event) => event.stopPropagation()}+ >+ <Flexbox horizontal align={'center'} className={styles.header} gap={8}>+ {isHeaderLoading ? (+ <>+ <Skeleton height={28} width={48} />+ <Skeleton height={20} width={16} />+ </>+ ) : (+ <>+ <Text as={'h2'} fontSize={20} weight={600}>+ {t('pageEditor.comments.title')}</Text>- )}- </>- )}- </Flexbox>+ {summary.data && (+ <Text className={styles.meta} fontSize={14}>+ {summary.data.total}+ </Text>+ )}+ </>+ )}+ </Flexbox>- {/* The pinned deep-link thread renders on its own, so a pending or failed list+ {/* The pinned deep-link thread renders on its own, so a pending or failed listrequest never hides a target that was already fetched. */}- {threads.isInitialError ||- threads.isLoadingInitial ||- threads.items.length > 0 ||- pinnedThread ? (- <Flexbox className={styles.threadList}>- {pinnedThread && (- <Thread- documentId={documentId}- focus={focus}- key={pinnedThread.root.id}- replyCount={pinnedThread.replyCount}- root={pinnedThread.root}- onFocusMissing={handleReplyFocusMissing}- onMutated={refreshPinned}- onReplyCountChange={updatePinnedReplyCount}- onRootUpdate={handlePinnedRootUpdate}- onSummaryChange={updateSummaryTotal}- />- )}- {threads.isInitialError ? (- <AsyncError- error={threads.error}- variant={'block'}- onRetry={() => void threads.reload()}- />- ) : threads.isLoadingInitial ? (- <SurfaceSkeleton header={false} variant={'list'} />- ) : (- threads.items.map(({ replyCount, root }) => (+ {threads.isInitialError ||+ threads.isLoadingInitial ||+ threads.items.length > 0 ||+ pinnedThread ? (+ <Flexbox className={styles.threadList}>+ {pinnedThread && (<ThreaddocumentId={documentId}- focus={focus?.rootCommentId === root.id ? focus : undefined}- key={root.id}- replyCount={replyCount}- root={root}+ focus={focus}+ key={pinnedThread.root.id}+ replyCount={pinnedThread.replyCount}+ root={pinnedThread.root}onFocusMissing={handleReplyFocusMissing}- onMutated={refresh}- onReplyCountChange={updateReplyCount}- onRootUpdate={handleUpdate}+ onMutated={refreshPinned}+ onReplyCountChange={updatePinnedReplyCount}+ onRootUpdate={handlePinnedRootUpdate}onSummaryChange={updateSummaryTotal}/>- ))- )}- {threads.error && !threads.isInitialError ? (- <AsyncError- error={threads.error}- retrying={threads.isRetrying}- variant={'inline'}- onRetry={() => void threads.reload()}- />- ) : (- threads.hasMore && (- <Center paddingBlock={12}>- <Button- loading={threads.isLoadingMore}- type={'text'}- onClick={() => void threads.loadMore()}- >- {t('pageEditor.comments.loadMore')}- </Button>- </Center>- )- )}- </Flexbox>- ) : null}+ )}+ {threads.isInitialError ? (+ <AsyncError+ error={threads.error}+ variant={'block'}+ onRetry={() => void threads.reload()}+ />+ ) : threads.isLoadingInitial ? (+ <SurfaceSkeleton header={false} variant={'list'} />+ ) : (+ threads.items.map(({ replyCount, root }) => (+ <Thread+ documentId={documentId}+ focus={focus?.rootCommentId === root.id ? focus : undefined}+ key={root.id}+ replyCount={replyCount}+ root={root}+ onFocusMissing={handleReplyFocusMissing}+ onMutated={refresh}+ onReplyCountChange={updateReplyCount}+ onRootUpdate={handleUpdate}+ onSummaryChange={updateSummaryTotal}+ />+ ))+ )}+ {threads.error && !threads.isInitialError ? (+ <AsyncError+ error={threads.error}+ retrying={threads.isRetrying}+ variant={'inline'}+ onRetry={() => void threads.reload()}+ />+ ) : (+ threads.hasMore && (+ <Center paddingBlock={12}>+ <Button+ loading={threads.isLoadingMore}+ type={'text'}+ onClick={() => void threads.loadMore()}+ >+ {t('pageEditor.comments.loadMore')}+ </Button>+ </Center>+ )+ )}+ </Flexbox>+ ) : null}- {/* While the thread list is still skeleton-loading the composer would+ {/* While the thread list is still skeleton-loading the composer wouldfloat against placeholder content — reveal it with the real list. */}- {!threads.isLoadingInitial && (- <Composer documentId={documentId} key={`root:${documentId}`} onSubmit={handleCreate} />- )}- </Flexbox>+ {!threads.isLoadingInitial && (+ <Composer documentId={documentId} key={`root:${documentId}`} onSubmit={handleCreate} />+ )}+ </Flexbox>+ </DocumentCommentAnchorsProvider>);});diff --git a/src/features/PageEditor/DocumentComments/optimistic.test.ts b/src/features/PageEditor/DocumentComments/optimistic.test.tsindex 8c304baba8e..f8435b5f07e 100644--- a/src/features/PageEditor/DocumentComments/optimistic.test.ts+++ b/src/features/PageEditor/DocumentComments/optimistic.test.ts@@ -40,6 +40,7 @@ const createComment = (parentCommentId: null,replyTo: null,replyToCommentId: null,+ selectionAnchor: null,updatedAt: createdAt,workspaceId: 'workspace-1',});diff --git a/src/features/PageEditor/DocumentComments/optimistic.ts b/src/features/PageEditor/DocumentComments/optimistic.tsindex d241fc425a2..df53e2c566e 100644--- a/src/features/PageEditor/DocumentComments/optimistic.ts+++ b/src/features/PageEditor/DocumentComments/optimistic.ts@@ -3,6 +3,7 @@ import type {DocumentCommentItem,DocumentCommentJson,DocumentCommentReplyPage,+ DocumentCommentSelectionAnchor,DocumentCommentThreadPage,} from '@lobechat/types';@@ -14,6 +15,7 @@ interface CreateOptimisticCommentParams {editorData: DocumentCommentJson | null;parentCommentId?: string;replyTo?: DocumentCommentItem['replyTo'];+ selectionAnchor?: DocumentCommentSelectionAnchor;userId: string | null;workspaceId: string;}@@ -22,6 +24,8 @@ export interface DocumentCommentSubmitInput {clientId: string;content: string;editorData: DocumentCommentJson;+ /** Set only by the root composer, and only when the comment was started from a selection. */+ selectionAnchor?: DocumentCommentSelectionAnchor;}export interface DocumentCommentEditorValue {@@ -90,6 +94,7 @@ export const createOptimisticComment = ({editorData,parentCommentId,replyTo = null,+ selectionAnchor,userId,workspaceId,}: CreateOptimisticCommentParams): DocumentCommentItem => {@@ -110,6 +115,7 @@ export const createOptimisticComment = ({parentCommentId: parentCommentId ?? null,replyTo,replyToCommentId: replyTo?.id ?? null,+ selectionAnchor: selectionAnchor ?? null,updatedAt: now,workspaceId,};diff --git a/src/features/PageEditor/DocumentComments/styles.ts b/src/features/PageEditor/DocumentComments/styles.tsindex c46066b092b..23f6cde723b 100644--- a/src/features/PageEditor/DocumentComments/styles.ts+++ b/src/features/PageEditor/DocumentComments/styles.ts@@ -33,6 +33,48 @@ export const styles = createStaticStyles(({ css }) => ({padding-block-start: 8px;color: ${cssVar.colorTextTertiary};`,+ /**+ * The quoted run a comment is attached to. Shared by the card and the+ * composer; each host adds its own framing, because what marks the text as+ * quoted differs between them — see `cardAnchor` and `composerAnchor`.+ */+ anchorQuote: css`+ min-width: 0;+ color: ${cssVar.colorTextSecondary};+ `,+ /**+ * Hover fills the row rather than recolouring the rule: the fill is what+ * shows how far the hit area actually reaches, which a 2px rule cannot.+ * Resting stays unfilled so a card with a quote doesn't read as two stacked+ * blocks.+ */+ anchorQuoteClickable: css`+ cursor: pointer;+ transition:+ background-color ${cssVar.motionDurationFast},+ color ${cssVar.motionDurationFast};++ &:hover {+ color: ${cssVar.colorText};+ background: ${cssVar.colorFillQuaternary};+ }+ `,+ /** Names what the run is; the run itself is the content, so this stays quieter. */+ anchorQuoteLabel: css`+ flex: none;+ color: ${cssVar.colorTextTertiary};+ `,+ /** The quoted run is gone from the body: readable, but no longer a jump target. */+ anchorQuoteOrphaned: css`+ border-inline-start-style: dashed;+ color: ${cssVar.colorTextQuaternary};+ `,+ /** `flex: 1` + `min-width: 0` is what lets the quote actually shrink and ellipsise in the row. */+ anchorQuoteText: css`+ flex: 1;+ min-width: 0;+ color: inherit;+ `,body: css`margin-inline-start: 40px;padding-block-start: 8px;@@ -50,6 +92,18 @@ export const styles = createStaticStyles(({ css }) => ({transition: none;}`,+ /**+ * On a card the quote floats in open space, so it carries the quote rule+ * itself. Indented past the comment body's own inset so it reads as the+ * thing being replied to rather than as another paragraph of the comment.+ */+ cardAnchor: css`+ margin-block-start: 8px;+ margin-inline-start: 40px;+ padding-block: 4px;+ padding-inline-start: 10px;+ border-inline-start: 2px solid ${cssVar.colorBorder};+ `,commentContent: css`/* Published comments render images as left-aligned thumbnails: therenderer inlines the stored (natural) width, which would otherwise span@@ -138,6 +192,21 @@ export const styles = createStaticStyles(({ css }) => ({box-shadow: 0 0 0 2px ${cssVar.colorPrimaryBg};}`,+ /**+ * In the composer the input's own border already frames the quote, so it+ * takes a bottom hairline instead of a quote rule — a rule here would sit+ * flush against that border and read as a rendering artifact rather than as+ * a quote mark.+ *+ * ChatInput gives its header slot no horizontal padding while the body sits+ * at 12px (ChatInput) + 16px (`commentEditor`), so the inset is restated+ * here; without it the quote hangs left of the comment being written.+ */+ composerAnchor: css`+ padding-block: 8px;+ padding-inline: 28px 12px;+ border-block-end: 1px solid ${cssVar.colorBorderSecondary};+ `,composerAvatar: css`flex: none;align-self: flex-start;diff --git a/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.test.ts b/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.test.tsindex 5f644de98c0..d4b3277ccff 100644--- a/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.test.ts+++ b/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.test.ts@@ -33,6 +33,8 @@ describe('useDocumentCommentDeepLink', () => {expect(result.current.focus).toMatchObject({commentId: 'reply-1',rootCommentId: 'root-1',+ // A notification link has to bring its target on screen.+ scroll: true,token: 1,}),);@@ -76,6 +78,25 @@ describe('useDocumentCommentDeepLink', () => {});});+ it('pins a thread picked in the body without scrolling the reader to the list', async () => {+ mocks.location.search = '';+ const { result } = renderHook(() => useDocumentCommentDeepLink('document-1'));++ act(() => result.current.focusThread('root-9'));++ expect(result.current.focus).toMatchObject({+ commentId: 'root-9',+ rootCommentId: 'root-9',+ scroll: false,+ token: 1,+ });++ // A later deep link restores the scrolling contract for its own target.+ mocks.location.search = '?commentThread=root-1';+ const linked = renderHook(() => useDocumentCommentDeepLink('document-1'));+ await waitFor(() => expect(linked.result.current.focus?.scroll).toBe(true));+ });+it('does nothing without a comment thread target', () => {mocks.location.search = '?source=inbox';diff --git a/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.ts b/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.tsindex cbb10215b26..5ed1b34add6 100644--- a/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.ts+++ b/src/features/PageEditor/DocumentComments/useDocumentCommentDeepLink.ts@@ -10,9 +10,15 @@ const COMMENT_THREAD_QUERY = 'commentThread';export type DocumentCommentFocusMissReason = 'failed' | 'missing';export interface DocumentCommentFocus {- /** The comment to scroll to and highlight; equals `rootCommentId` for roots. */+ /** The comment to land on and highlight; equals `rootCommentId` for roots. */commentId: string;rootCommentId: string;+ /**+ * Whether landing scrolls the card into view. A notification deep link must+ * bring its target on screen; a pick made in the body must not move the+ * reader's viewport (the comment list lives below the document).+ */+ scroll: boolean;/** Changes on every deep link so the same comment can be focused twice in a row. */token: number;}@@ -41,6 +47,7 @@ export const useDocumentCommentDeepLink = (documentId: string) => {commentId,documentId,rootCommentId,+ scroll: true,token: (current?.token ?? 0) + 1,}));@@ -53,6 +60,22 @@ export const useDocumentCommentDeepLink = (documentId: string) => {}, [documentId, location.hash, location.pathname, location.search, navigate]);const clearFocus = useCallback(() => setFocus(undefined), []);+ /**+ * Pin a thread picked from the body whose card is not loaded yet — the same+ * pinning a notification deep link gets, minus the URL round trip and minus+ * the scroll: pointing at a sentence must not throw the reader to the list.+ */+ const focusThread = useCallback(+ (rootCommentId: string) =>+ setFocus((current) => ({+ commentId: rootCommentId,+ documentId,+ rootCommentId,+ scroll: false,+ token: (current?.token ?? 0) + 1,+ })),+ [documentId],+ );/** Fall back to the thread root when the linked reply itself is gone. */const focusRoot = useCallback(() =>@@ -64,5 +87,10 @@ export const useDocumentCommentDeepLink = (documentId: string) => {);// A focus target belongs to the document it was opened on.- return { clearFocus, focus: focus?.documentId === documentId ? focus : undefined, focusRoot };+ return {+ clearFocus,+ focus: focus?.documentId === documentId ? focus : undefined,+ focusRoot,+ focusThread,+ };};diff --git a/src/features/PageEditor/EditorCanvas/index.tsx b/src/features/PageEditor/EditorCanvas/index.tsxindex 195304d6486..8653f51afc3 100644--- a/src/features/PageEditor/EditorCanvas/index.tsx+++ b/src/features/PageEditor/EditorCanvas/index.tsx@@ -12,6 +12,7 @@ import { EditorCanvas as SharedEditorCanvas } from '@/features/EditorCanvas';import { usePageEditorStore } from '../store';import { usePageEditable } from '../usePageEditable';+import { useAddCommentItem } from './useAddCommentItem';import { useAskCopilotItem } from './useAskCopilotItem';import { useDocumentMentionOption } from './useDocumentMentionOption';import { useSlashItems } from './useSlashItems';@@ -31,7 +32,12 @@ const EditorCanvas = memo<EditorCanvasProps>(({ askCopilotTarget, placeholder, sconst slashItems = useSlashItems();const askCopilotItem = useAskCopilotItem(editor, askCopilotTarget);+ const addCommentItem = useAddCommentItem(editor, documentId);const mentionOption = useDocumentMentionOption();+ const toolbarExtraItems = useMemo(+ () => [...(askCopilotItem ?? []), ...(addCommentItem ?? [])],+ [addCommentItem, askCopilotItem],+ );const extraPlugins = useMemo(() => [Editor.withProps(ReactBlockPlugin, { anchorPadding: 0 })],@@ -47,9 +53,13 @@ const EditorCanvas = memo<EditorCanvasProps>(({ askCopilotTarget, placeholder, sextraPlugins={extraPlugins}mentionOption={mentionOption}placeholder={placeholder || t('pageEditor.editorPlaceholder')}+ // Commenting on a selection is a read action: it must survive the page+ // being locked by another collaborator or opened view-only, when the+ // formatting toolbar (and Ask Copilot with it) is withheld.+ readonlySelectionItems={editable ? undefined : addCommentItem}slashItems={slashItems}style={style}- toolbarExtraItems={editable ? askCopilotItem : undefined}+ toolbarExtraItems={editable ? toolbarExtraItems : undefined}unsavedChangesGuard={{enabled: true,message: t('form.unsavedWarning', { ns: 'ui' }),diff --git a/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsx b/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsxnew file mode 100644index 00000000000..c85c3304564--- /dev/null+++ b/src/features/PageEditor/EditorCanvas/useAddCommentItem.tsx@@ -0,0 +1,111 @@+'use client';++import type { DocumentCommentSelectionAnchor } from '@lobechat/types';+import { type IEditor } from '@lobehub/editor';+import { HIDE_TOOLBAR_COMMAND } from '@lobehub/editor';+import { type ChatInputActionsProps } from '@lobehub/editor/react';+import { Block, Icon } from '@lobehub/ui';+import { createStaticStyles, cssVar } from 'antd-style';+import { MessageSquarePlus } from 'lucide-react';+import { useMemo, useRef } from 'react';+import { useTranslation } from 'react-i18next';++import { prefersReducedMotion } from '@/features/PageEditor/DocumentComments/anchor/commentLocator';+import { DOCUMENT_COMMENT_COMPOSER_ID } from '@/features/PageEditor/DocumentComments/anchor/constants';+import { captureSelectionAnchor } from '@/features/PageEditor/DocumentComments/anchor/textAnchor';+import { usePermission } from '@/hooks/usePermission';++import { usePageEditorStore } from '../store';++const styles = createStaticStyles(({ css }) => ({+ addComment: css`+ border-radius: 6px;+ color: ${cssVar.colorTextDescription};++ &:hover {+ color: ${cssVar.colorTextSecondary};+ }+ `,+}));++/**+ * The "Comment" action on the body's selection toolbar — the entry point for an+ * anchored comment, sitting next to Ask Lobe AI because both act on whatever+ * the reader just selected.+ *+ * The anchor is read from the native DOM selection rather than the editor's+ * `getSelection()`: that returns Lexical node keys, which are regenerated on+ * every load and therefore useless the moment the comment is persisted.+ *+ * It is read on pointer-down, not on click. The toolbar is portalled to the+ * document body, so pressing it collapses the body's selection as the pointer+ * event's default action — by the time a click handler runs there is nothing+ * left to quote. Cancelling that default also keeps the run visibly selected+ * while the composer takes over.+ */+export const useAddCommentItem = (+ editor: IEditor | undefined,+ documentId: string | undefined,+): ChatInputActionsProps['items'] => {+ const { t } = useTranslation('file');+ const { allowed: canComment } = usePermission('create_content');+ const setPendingCommentAnchor = usePageEditorStore((s) => s.setPendingCommentAnchor);+ const capturedAnchorRef = useRef<DocumentCommentSelectionAnchor | null>(null);++ return useMemo(() => {+ if (!editor || !documentId || !canComment) return [];++ const label = t('pageEditor.comments.anchor.add');++ return [+ {+ children: (+ <Block+ clickable+ horizontal+ align="center"+ className={styles.addComment}+ gap={8}+ paddingBlock={6}+ paddingInline={12}+ variant="borderless"+ onClick={() => {+ const anchor =+ capturedAnchorRef.current ?? captureSelectionAnchor(editor.getRootElement?.());+ capturedAnchorRef.current = null;+ if (!anchor) return;++ setPendingCommentAnchor({ anchor, documentId });+ editor.dispatchCommand(HIDE_TOOLBAR_COMMAND, undefined);+ editor.blur();++ // The composer lives below the body, so it has to be brought into+ // view before it can be typed into. One frame of delay lets the+ // quote row render first, so the scroll lands on its real height.+ requestAnimationFrame(() => {+ const composer = document.getElementById(DOCUMENT_COMMENT_COMPOSER_ID);+ composer?.scrollIntoView({+ behavior: prefersReducedMotion() ? 'auto' : 'smooth',+ block: 'center',+ });+ composer+ ?.querySelector<HTMLElement>('[contenteditable="true"]')+ ?.focus({ preventScroll: true });+ });+ }}+ onMouseDown={(event) => {+ event.preventDefault();+ capturedAnchorRef.current = captureSelectionAnchor(editor.getRootElement?.());+ }}+ >+ <Icon icon={MessageSquarePlus} size={16} />+ <span>{label}</span>+ </Block>+ ),+ key: 'add-document-comment',+ label,+ onClick: () => {},+ },+ ];+ }, [canComment, documentId, editor, setPendingCommentAnchor, t]);+};diff --git a/src/features/PageEditor/store/action.ts b/src/features/PageEditor/store/action.tsindex 471f6037780..c28c8f7019c 100644--- a/src/features/PageEditor/store/action.ts+++ b/src/features/PageEditor/store/action.ts@@ -10,7 +10,7 @@ import { getElectronStoreState } from '@/store/electron';import { electronSyncSelectors } from '@/store/electron/selectors';import { useFileStore } from '@/store/file';-import { type RightPanelMode, type State } from './initialState';+import { type PendingCommentAnchor, type RightPanelMode, type State } from './initialState';import { initialState } from './initialState';const log = debug('page:editor');@@ -41,6 +41,8 @@ export interface Action {expiresAt?: Date | string | null,holderOwnerId?: string | null,) => void;+ /** Hand a captured body selection to the comment composer, or clear it (`undefined`). */+ setPendingCommentAnchor: (pending: PendingCommentAnchor | undefined) => void;setRightPanelMode: (mode: RightPanelMode) => void;setTitle: (title: string) => void;triggerDebouncedMetaSave: () => void;@@ -223,6 +225,10 @@ export const store: (initState?: Partial<State>) => StateCreator<Store> =set({ lockExpiresAt: expiresAt, lockHolderId: holderId, lockHolderOwnerId: holderOwnerId });},+ setPendingCommentAnchor: (pendingCommentAnchor) => {+ set({ pendingCommentAnchor });+ },+setRightPanelMode: (rightPanelMode) => {set({ rightPanelMode });},diff --git a/src/features/PageEditor/store/initialState.ts b/src/features/PageEditor/store/initialState.tsindex 80c8682270d..0e735c0de37 100644--- a/src/features/PageEditor/store/initialState.ts+++ b/src/features/PageEditor/store/initialState.ts@@ -1,3 +1,4 @@+import type { DocumentCommentSelectionAnchor } from '@lobechat/types';import { type IEditor } from '@lobehub/editor';import { type EditLockHealth } from '@/features/EditLock';@@ -5,6 +6,12 @@ import { type EditLockHealth } from '@/features/EditLock';export type MetaSaveStatus = 'idle' | 'saving' | 'saved';export type RightPanelMode = 'copilot' | 'history';+/** A captured body selection, tagged with the document it was taken from. */+export interface PendingCommentAnchor {+ anchor: DocumentCommentSelectionAnchor;+ documentId: string;+}+export interface PublicState {autoSave?: boolean;emoji?: string;@@ -61,6 +68,18 @@ export interface State extends PublicState {/** Edit-session id for this open page instance. */lockOwnerId?: string;metaSaveStatus?: MetaSaveStatus;+ /**+ * A body selection captured by the toolbar's comment action and waiting for+ * the composer to publish it. This is the one piece of state the editor+ * canvas and the comment list have to share — everything else about an+ * anchor is derived from the body's DOM inside the comment list.+ *+ * It carries its own `documentId` because this store outlives a document+ * switch (the resource manager swaps `pageId` on a mounted PageEditor): a+ * quote captured in one document must never be adopted by the next one's+ * composer, or published against it.+ */+ pendingCommentAnchor?: PendingCommentAnchor;rightPanelMode: RightPanelMode;}@@ -80,6 +99,7 @@ export const initialState: State = {lockHolderOwnerId: null,lockOwnerId: undefined,metaSaveStatus: 'idle',+ pendingCommentAnchor: undefined,rightPanelMode: 'copilot',title: undefined,};diff --git a/src/libs/swr/keys.ts b/src/libs/swr/keys.tsindex 672cda40032..c30323a20b4 100644--- a/src/libs/swr/keys.ts+++ b/src/libs/swr/keys.ts@@ -186,6 +186,11 @@ export const acceptanceCommentKeys = {// ---- document comment ---------------------------------------------------export const documentCommentKeys = {+ anchors: def('documentComment:anchors', (workspaceId: string | null, documentId: string) => [+ 'documentComment:anchors',+ workspaceId ?? '',+ documentId,+ ]),detail: def('documentComment:detail', (workspaceId: string | null, commentId: string) => ['documentComment:detail',workspaceId ?? '',@@ -236,6 +241,7 @@ export const isDocumentCommentKeyForEvent = (// carry the comment id, so revalidate them on any comment event in the workspace.if (key[0] === documentCommentKeys.detail.root) return true;if (key[0] === documentCommentKeys.threads.root) return key[2] === event.documentId;+ if (key[0] === documentCommentKeys.anchors.root) return key[2] === event.documentId;if (key[0] === documentCommentKeys.replies.root) {return !event.rootCommentId || key[2] === event.rootCommentId;}diff --git a/src/services/documentComment.ts b/src/services/documentComment.tsindex 611d732b9f6..4b70d35e38d 100644--- a/src/services/documentComment.ts+++ b/src/services/documentComment.ts@@ -9,6 +9,9 @@ class DocumentCommentService {get = (id: string) => lambdaClient.documentComment.get.query({ id });+ listAnchors = (documentId: string) =>+ lambdaClient.documentComment.listAnchors.query({ documentId });+listReplies = (params: { cursor?: string; limit?: number; rootCommentId: string }) =>lambdaClient.documentComment.listReplies.query(params);