Skip to content

🤯 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.

feat: add unified messaging tool for cross-platform communication (#13296)

Rdmclin2965fc929e118
diff --git a/apps/cli/README.md b/apps/cli/README.md
index 2243c402af0..eb6cc0fdb8e 100644
--- a/apps/cli/README.md
+++ b/apps/cli/README.md
@@ -15,6 +15,17 @@ LobeHub command-line interface.
- To make `lh` available in your shell, run `bun run cli:link`.
- After linking, if your shell still cannot find `lh`, run `rehash` in `zsh`.
+## Custom Server URL
+
+By default the CLI connects to `https://app.lobehub.com`. To point it at a different server (e.g. a local instance):
+
+| Method | Command | Persistence |
+| -------------------- | --------------------------------------------------------------- | ----------------------------------- |
+| Environment variable | `LOBEHUB_SERVER=http://localhost:4000 bun run dev -- <command>` | Current command only |
+| Login flag | `lh login --server http://localhost:4000` | Saved to `~/.lobehub/settings.json` |
+
+Priority: `LOBEHUB_SERVER` env var > `settings.json` > default official URL.
+
## Shell Completion
### Install completion for a linked CLI
diff --git a/apps/cli/src/commands/bot.ts b/apps/cli/src/commands/bot.ts
index d0ada779f8b..802ccd2fe3f 100644
--- a/apps/cli/src/commands/bot.ts
+++ b/apps/cli/src/commands/bot.ts
@@ -1,39 +1,130 @@
import type { Command } from 'commander';
import pc from 'picocolors';
+import type { TrpcClient } from '../api/client';
import { getTrpcClient } from '../api/client';
-import { confirm, outputJson, printTable } from '../utils/format';
+import { confirm, outputJson, printBoxTable, printTable, timeAgo } from '../utils/format';
import { log } from '../utils/logger';
+import { registerBotMessageCommands } from './botMessage';
-const SUPPORTED_PLATFORMS = ['discord', 'slack', 'telegram', 'lark', 'feishu', 'wechat'];
+// ── Helpers ──────────────────────────────────────────────
-const PLATFORM_CREDENTIAL_FIELDS: Record<string, string[]> = {
- discord: ['botToken', 'publicKey'],
- feishu: ['appSecret'],
- lark: ['appSecret'],
- slack: ['botToken', 'signingSecret'],
- telegram: ['botToken'],
- wechat: ['botToken', 'botId'],
-};
+function maskValue(val: string): string {
+ if (val.length > 8) return val.slice(0, 4) + '****' + val.slice(-4);
+ return '****';
+}
+
+function camelToFlag(name: string): string {
+ return '--' + name.replaceAll(/([A-Z])/g, '-$1').toLowerCase();
+}
-function parseCredentials(
- platform: string,
- options: Record<string, string | undefined>,
-): Record<string, string> {
- const creds: Record<string, string> = {};
+/** Extract credential field definitions from a platform schema. */
+function getCredentialFields(platformDef: any): any[] {
+ const credSchema = (platformDef.schema ?? []).find(
+ (f: any) => f.key === 'credentials' && f.properties,
+ );
+ return credSchema?.properties ?? [];
+}
- if (options.botToken) creds.botToken = options.botToken;
- if (options.botId) creds.botId = options.botId;
- if (options.publicKey) creds.publicKey = options.publicKey;
- if (options.signingSecret) creds.signingSecret = options.signingSecret;
- if (options.appSecret) creds.appSecret = options.appSecret;
+/** Extract credential values from CLI options based on platform schema. */
+function extractCredentials(
+ platformDef: any,
+ options: Record<string, any>,
+): { credentials: Record<string, string>; missing: any[] } {
+ const fields = getCredentialFields(platformDef);
+ const credentials: Record<string, string> = {};
+
+ for (const field of fields) {
+ const value = options[field.key];
+ if (typeof value === 'string') {
+ credentials[field.key] = value;
+ }
+ }
+
+ const missing = fields.filter((f: any) => f.required && !credentials[f.key]);
+ return { credentials, missing };
+}
- return creds;
+/** Find a bot by ID from the user's bot list. */
+async function findBot(client: TrpcClient, botId: string) {
+ const bots = await client.agentBotProvider.list.query();
+ const bot = (bots as any[]).find((b: any) => b.id === botId);
+ if (!bot) {
+ log.error(`Bot integration not found: ${botId}`);
+ process.exit(1);
+ }
+ return bot;
}
+const STATUS_COLORS: Record<string, (s: string) => string> = {
+ connected: pc.green,
+ disconnected: pc.dim,
+ failed: pc.red,
+ queued: pc.yellow,
+ starting: pc.yellow,
+ unknown: pc.dim,
+};
+
+/** Validate a platform ID and return its definition. */
+async function resolvePlatform(client: TrpcClient, platformId: string) {
+ const platforms = await client.agentBotProvider.listPlatforms.query();
+ const def = (platforms as any[]).find((p: any) => p.id === platformId);
+ if (!def) {
+ const ids = (platforms as any[]).map((p: any) => p.id).join(', ');
+ log.error(`Invalid platform "${platformId}". Must be one of: ${ids}`);
+ log.info('Run `lh bot platforms` to see required credentials for each platform.');
+ process.exit(1);
+ }
+ return def;
+}
+
+// ── Command Registration ─────────────────────────────────
+
export function registerBotCommand(program: Command) {
const bot = program.command('bot').description('Manage bot integrations');
+ // Register message subcommand group
+ registerBotMessageCommands(bot);
+
+ // ── platforms ───────────────────────────────────────────
+
+ bot
+ .command('platforms')
+ .description('List supported platforms and their required credentials')
+ .option('--json', 'Output JSON')
+ .action(async (options: { json?: boolean }) => {
+ const client = await getTrpcClient();
+ const platforms = await client.agentBotProvider.listPlatforms.query();
+
+ if (options.json) {
+ outputJson(platforms);
+ return;
+ }
+
+ console.log(pc.bold('Supported platforms:\n'));
+
+ for (const p of platforms as any[]) {
+ console.log(` ${pc.bold(pc.cyan(p.id))}`);
+ if (p.name) console.log(` Name: ${p.name}`);
+
+ const fields = getCredentialFields(p);
+ const required = fields.filter((f: any) => f.required);
+ const optional = fields.filter((f: any) => !f.required);
+
+ if (required.length > 0) {
+ console.log(
+ ` Required: ${required.map((f: any) => pc.yellow(camelToFlag(f.key))).join(', ')}`,
+ );
+ }
+ if (optional.length > 0) {
+ console.log(
+ ` Optional: ${optional.map((f: any) => pc.dim(camelToFlag(f.key))).join(', ')}`,
+ );
+ }
+ console.log();
+ }
+ });
+
// ── list ──────────────────────────────────────────────
bot
@@ -63,15 +154,20 @@ export function registerBotCommand(program: Command) {
return;
}
- const rows = items.map((b: any) => [
- b.id || '',
- b.platform || '',
- b.applicationId || '',
- b.agentId || '',
- b.enabled ? pc.green('enabled') : pc.dim('disabled'),
- ]);
+ const rows = items.map((b: any) => {
+ const status = b.enabled ? (b.runtimeStatus ?? 'disconnected') : 'disabled';
+ const colorFn = STATUS_COLORS[status] ?? pc.dim;
+ return [
+ b.id || '',
+ b.platform || '',
+ b.applicationId || '',
+ b.agentId || '',
+ colorFn(status),
+ b.updatedAt ? timeAgo(b.updatedAt) : pc.dim('-'),
+ ];
+ });
- printTable(rows, ['ID', 'PLATFORM', 'APP ID', 'AGENT', 'STATUS']);
+ printTable(rows, ['ID', 'PLATFORM', 'APP ID', 'AGENT', 'STATUS', 'UPDATED']);
});
// ── view ──────────────────────────────────────────────
@@ -79,44 +175,62 @@ export function registerBotCommand(program: Command) {
bot
.command('view <botId>')
.description('View bot integration details')
- .requiredOption('-a, --agent <agentId>', 'Agent ID')
.option('--json [fields]', 'Output JSON, optionally specify fields (comma-separated)')
- .action(async (botId: string, options: { agent: string; json?: string | boolean }) => {
- const client = await getTrpcClient();
- const result = await client.agentBotProvider.getByAgentId.query({
- agentId: options.agent,
- });
- const items = Array.isArray(result) ? result : [];
- const item = items.find((b: any) => b.id === botId);
+ .option('--show-credentials', 'Show full credential values (unmasked)')
+ .action(
+ async (botId: string, options: { json?: string | boolean; showCredentials?: boolean }) => {
+ const client = await getTrpcClient();
+ const b = await findBot(client, botId);
- if (!item) {
- log.error(`Bot integration not found: ${botId}`);
- process.exit(1);
- return;
- }
+ if (options.json !== undefined) {
+ const fields = typeof options.json === 'string' ? options.json : undefined;
+ outputJson(b, fields);
+ return;
+ }
- if (options.json !== undefined) {
- const fields = typeof options.json === 'string' ? options.json : undefined;
- outputJson(item, fields);
- return;
- }
+ const status = b.enabled ? (b.runtimeStatus ?? 'disconnected') : 'disabled';
+ const statusColorFn = STATUS_COLORS[status] ?? pc.dim;
- const b = item as any;
- console.log(pc.bold(`${b.platform} bot`));
- console.log(pc.dim(`ID: ${b.id}`));
- console.log(`Application ID: ${b.applicationId}`);
- console.log(`Status: ${b.enabled ? pc.green('enabled') : pc.dim('disabled')}`);
+ const credentialLines: string[] = [];
+ if (b.credentials && typeof b.credentials === 'object') {
+ for (const [key, value] of Object.entries(b.credentials)) {
+ const val = String(value);
+ const display = options.showCredentials ? val : maskValue(val);
+ credentialLines.push(`${pc.dim(key)}: ${display}`);
+ }
+ }
- if (b.credentials && typeof b.credentials === 'object') {
- console.log();
- console.log(pc.bold('Credentials:'));
- for (const [key, value] of Object.entries(b.credentials)) {
- const val = String(value);
- const masked = val.length > 8 ? val.slice(0, 4) + '****' + val.slice(-4) : '****';
- console.log(` ${key}: ${masked}`);
+ const settingsLines: string[] = [];
+ if (b.settings && typeof b.settings === 'object') {
+ for (const [key, value] of Object.entries(b.settings)) {
+ settingsLines.push(`${pc.dim(key)}: ${JSON.stringify(value)}`);
+ }
}
- }
- });
+
+ printBoxTable(
+ [
+ { header: 'Field', key: 'field' },
+ { header: 'Value', key: 'value' },
+ ],
+ [
+ { field: 'ID', value: b.id || '' },
+ { field: 'Platform', value: pc.cyan(b.platform || '') },
+ { field: 'Application ID', value: b.applicationId || '' },
+ { field: 'Agent ID', value: b.agentId || '' },
+ { field: 'Status', value: statusColorFn(status) },
+ ...(credentialLines.length > 0
+ ? [{ field: 'Credentials', value: credentialLines }]
+ : []),
+ ...(settingsLines.length > 0 ? [{ field: 'Settings', value: settingsLines }] : []),
+ ...(b.createdAt
+ ? [{ field: 'Created', value: new Date(b.createdAt).toLocaleString() }]
+ : []),
+ ...(b.updatedAt ? [{ field: 'Updated', value: timeAgo(b.updatedAt) }] : []),
+ ],
+ `${b.platform} bot`,
+ );
+ },
+ );
// ── add ───────────────────────────────────────────────
@@ -124,13 +238,18 @@ export function registerBotCommand(program: Command) {
.command('add')
.description('Add a bot integration to an agent')
.requiredOption('-a, --agent <agentId>', 'Agent ID')
- .requiredOption('--platform <platform>', `Platform: ${SUPPORTED_PLATFORMS.join(', ')}`)
+ .requiredOption('--platform <platform>', 'Platform (run `lh bot platforms` to see options)')
.requiredOption('--app-id <appId>', 'Application ID for webhook routing')
- .option('--bot-token <token>', 'Bot token')
+ .option('--bot-token <token>', 'Bot token (Discord, Slack, Telegram)')
.option('--bot-id <id>', 'Bot ID (WeChat)')
.option('--public-key <key>', 'Public key (Discord)')
.option('--signing-secret <secret>', 'Signing secret (Slack)')
- .option('--app-secret <secret>', 'App secret (Lark/Feishu)')
+ .option('--app-secret <secret>', 'App secret (Lark, Feishu, QQ)')
+ .option('--secret-token <token>', 'Secret token (Telegram)')
+ .option('--webhook-proxy-url <url>', 'Webhook proxy URL (Telegram)')
+ .option('--encrypt-key <key>', 'Encrypt key (Feishu)')
+ .option('--verification-token <token>', 'Verification token (Feishu)')
+ .option('--json', 'Output created bot as JSON')
.action(
async (options: {
agent: string;
@@ -138,34 +257,39 @@ export function registerBotCommand(program: Command) {
appSecret?: string;
botId?: string;
botToken?: string;
+ encryptKey?: string;
+ json?: boolean;
platform: string;
publicKey?: string;
+ secretToken?: string;
signingSecret?: string;
+ verificationToken?: string;
+ webhookProxyUrl?: string;
}) => {
- if (!SUPPORTED_PLATFORMS.includes(options.platform)) {
- log.error(`Invalid platform. Must be one of: ${SUPPORTED_PLATFORMS.join(', ')}`);
- process.exit(1);
- return;
- }
+ const client = await getTrpcClient();
+ const platformDef = await resolvePlatform(client, options.platform);
- const credentials = parseCredentials(options.platform, options);
- const requiredFields = PLATFORM_CREDENTIAL_FIELDS[options.platform] || [];
- const missing = requiredFields.filter((f) => !credentials[f]);
+ const { credentials, missing } = extractCredentials(platformDef, options);
if (missing.length > 0) {
log.error(
- `Missing required credentials for ${options.platform}: ${missing.map((f) => '--' + f.replaceAll(/([A-Z])/g, '-$1').toLowerCase()).join(', ')}`,
+ `Missing required credentials for ${options.platform}: ${missing.map((f: any) => camelToFlag(f.key)).join(', ')}`,
);
process.exit(1);
return;
}
- const client = await getTrpcClient();
const result = await client.agentBotProvider.create.mutate({
agentId: options.agent,
applicationId: options.appId,
credentials,
platform: options.platform,
});
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
const r = result as any;
console.log(
`${pc.green('✓')} Added ${pc.bold(options.platform)} bot ${pc.bold(r.id || '')}`,
@@ -183,6 +307,10 @@ export function registerBotCommand(program: Command) {
.option('--public-key <key>', 'New public key')
.option('--signing-secret <secret>', 'New signing secret')
.option('--app-secret <secret>', 'New app secret')
+ .option('--secret-token <token>', 'New secret token')
+ .option('--webhook-proxy-url <url>', 'New webhook proxy URL')
+ .option('--encrypt-key <key>', 'New encrypt key')
+ .option('--verification-token <token>', 'New verification token')
.option('--app-id <appId>', 'New application ID')
.option('--platform <platform>', 'New platform')
.action(
@@ -193,20 +321,23 @@ export function registerBotCommand(program: Command) {
appSecret?: string;
botId?: string;
botToken?: string;
+ encryptKey?: string;
platform?: string;
publicKey?: string;
+ secretToken?: string;
signingSecret?: string;
+ verificationToken?: string;
+ webhookProxyUrl?: string;
},
) => {
+ const client = await getTrpcClient();
const input: Record<string, any> = { id: botId };
- const credentials: Record<string, string> = {};
- if (options.botToken) credentials.botToken = options.botToken;
- if (options.botId) credentials.botId = options.botId;
- if (options.publicKey) credentials.publicKey = options.publicKey;
- if (options.signingSecret) credentials.signingSecret = options.signingSecret;
- if (options.appSecret) credentials.appSecret = options.appSecret;
+ const existing = await findBot(client, botId);
+ const platform = options.platform ?? existing.platform;
+ const platformDef = await resolvePlatform(client, platform);
+ const { credentials } = extractCredentials(platformDef, options);
if (Object.keys(credentials).length > 0) input.credentials = credentials;
if (options.appId) input.applicationId = options.appId;
if (options.platform) input.platform = options.platform;
@@ -217,7 +348,6 @@ export function registerBotCommand(program: Command) {
return;
}
- const client = await getTrpcClient();
await client.agentBotProvider.update.mutate(input as any);
console.log(`${pc.green('✓')} Updated bot ${pc.bold(botId)}`);
},
@@ -263,28 +393,41 @@ export function registerBotCommand(program: Command) {
console.log(`${pc.green('✓')} Disabled bot ${pc.bold(botId)}`);
});
+ // ── test ───────────────────────────────────────────────
+
+ bot
+ .command('test <botId>')
+ .description('Test bot credentials against the platform API')
+ .action(async (botId: string) => {
+ const client = await getTrpcClient();
+ const b = await findBot(client, botId);
+
+ log.status(`Testing ${b.platform} credentials for ${b.applicationId}...`);
+
+ try {
+ await client.agentBotProvider.testConnection.mutate({
+ applicationId: b.applicationId,
+ platform: b.platform,
+ });
+ console.log(`${pc.green('✓')} Credentials are valid for ${pc.bold(b.platform)} bot`);
+ } catch (err: any) {
+ const message = err?.message || 'Connection test failed';
+ log.error(`Credential test failed: ${message}`);
+ process.exit(1);
+ }
+ });
+
// ── connect ───────────────────────────────────────────
bot
.command('connect <botId>')
.description('Connect and start a bot')
- .requiredOption('-a, --agent <agentId>', 'Agent ID')
- .action(async (botId: string, options: { agent: string }) => {
- // First fetch the bot to get platform and applicationId
+ .action(async (botId: string) => {
const client = await getTrpcClient();
- const result = await client.agentBotProvider.getByAgentId.query({
- agentId: options.agent,
- });
- const items = Array.isArray(result) ? result : [];
- const item = items.find((b: any) => b.id === botId);
+ const b = await findBot(client, botId);
- if (!item) {
- log.error(`Bot integration not found: ${botId}`);
- process.exit(1);
- return;
- }
+ log.status(`Connecting ${b.platform} bot ${b.applicationId}...`);
- const b = item as any;
const connectResult = await client.agentBotProvider.connectBot.mutate({
applicationId: b.applicationId,
platform: b.platform,
diff --git a/apps/cli/src/commands/botMessage.ts b/apps/cli/src/commands/botMessage.ts
new file mode 100644
index 00000000000..d4285803ff3
--- /dev/null
+++ b/apps/cli/src/commands/botMessage.ts
@@ -0,0 +1,564 @@
+import { DEFAULT_BOT_HISTORY_LIMIT } from '@lobechat/const';
+import type { Command } from 'commander';
+import pc from 'picocolors';
+
+import { getTrpcClient } from '../api/client';
+import { confirm, outputJson, printTable, truncate } from '../utils/format';
+import { log } from '../utils/logger';
+
+export function registerBotMessageCommands(bot: Command) {
+ const message = bot
+ .command('message')
+ .description('Send and manage messages on connected platforms');
+
+ // ── send ────────────────────────────────────────────────
+
+ message
+ .command('send <botId>')
+ .description('Send a message to a channel')
+ .requiredOption('--target <channelId>', 'Target channel / conversation ID')
+ .requiredOption('--message <text>', 'Message content')
+ .option('--reply-to <messageId>', 'Reply to a specific message')
+ .option('--json', 'Output JSON')
+ .action(
+ async (
+ botId: string,
+ options: { json?: boolean; message: string; replyTo?: string; target: string },
+ ) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.sendMessage.mutate({
+ botId,
+ channelId: options.target,
+ content: options.message,
+ replyTo: options.replyTo,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const r = result as any;
+ console.log(
+ `${pc.green('✓')} Message sent${r.messageId ? ` (${pc.dim(r.messageId)})` : ''}`,
+ );
+ },
+ );
+
+ // ── read ────────────────────────────────────────────────
+
+ message
+ .command('read <botId>')
+ .description('Read messages from a channel')
+ .requiredOption('--target <channelId>', 'Target channel / conversation ID')
+ .option('--limit <n>', 'Max messages to fetch', String(DEFAULT_BOT_HISTORY_LIMIT))
+ .option('--before <messageId>', 'Read messages before this ID')
+ .option('--after <messageId>', 'Read messages after this ID')
+ .option('--start-time <timestamp>', 'Start time as Unix seconds (Feishu/Lark)')
+ .option('--end-time <timestamp>', 'End time as Unix seconds (Feishu/Lark)')
+ .option('--cursor <token>', 'Pagination cursor from a previous response (Feishu/Lark)')
+ .option('--json', 'Output JSON')
+ .action(
+ async (
+ botId: string,
+ options: {
+ after?: string;
+ before?: string;
+ cursor?: string;
+ endTime?: string;
+ json?: boolean;
+ limit?: string;
+ startTime?: string;
+ target: string;
+ },
+ ) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.readMessages.query({
+ after: options.after,
+ before: options.before,
+ botId,
+ channelId: options.target,
+ cursor: options.cursor,
+ endTime: options.endTime,
+ limit: options.limit ? Number.parseInt(options.limit, 10) : undefined,
+ startTime: options.startTime,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const messages = (result as any).messages ?? [];
+ if (messages.length === 0) {
+ console.log('No messages found.');
+ return;
+ }
+
+ const rows = messages.map((m: any) => [
+ m.id || '',
+ m.author?.name || '',
+ truncate(m.content || '', 60),
+ m.timestamp || '',
+ ]);
+
+ printTable(rows, ['ID', 'AUTHOR', 'CONTENT', 'TIME']);
+
+ const r = result as any;
+ if (r.hasMore && r.nextCursor) {
+ console.log(
+ `\nMore messages available. Use ${pc.dim(`--cursor ${r.nextCursor}`)} to fetch next page.`,
+ );
+ }
+ },
+ );
+
+ // ── edit ────────────────────────────────────────────────
+
+ message
+ .command('edit <botId>')
+ .description('Edit a message')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--message-id <id>', 'Message ID to edit')
+ .requiredOption('--message <text>', 'New message content')
+ .action(
+ async (botId: string, options: { message: string; messageId: string; target: string }) => {
+ const client = await getTrpcClient();
+ await client.botMessage.editMessage.mutate({
+ botId,
+ channelId: options.target,
+ content: options.message,
+ messageId: options.messageId,
+ });
+
+ console.log(`${pc.green('✓')} Message ${pc.bold(options.messageId)} edited`);
+ },
+ );
+
+ // ── delete ──────────────────────────────────────────────
+
+ message
+ .command('delete <botId>')
+ .description('Delete a message')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--message-id <id>', 'Message ID to delete')
+ .option('--yes', 'Skip confirmation prompt')
+ .action(
+ async (botId: string, options: { messageId: string; target: string; yes?: boolean }) => {
+ if (!options.yes) {
+ const confirmed = await confirm('Are you sure you want to delete this message?');
+ if (!confirmed) {
+ console.log('Cancelled.');
+ return;
+ }
+ }
+
+ const client = await getTrpcClient();
+ await client.botMessage.deleteMessage.mutate({
+ botId,
+ channelId: options.target,
+ messageId: options.messageId,
+ });
+
+ console.log(`${pc.green('✓')} Message ${pc.bold(options.messageId)} deleted`);
+ },
+ );
+
+ // ── search ──────────────────────────────────────────────
+
+ message
+ .command('search <botId>')
+ .description('Search messages in a channel')
+ .requiredOption('--target <channelId>', 'Channel ID to search in')
+ .requiredOption('--query <text>', 'Search query')
+ .option('--author-id <id>', 'Filter by author ID')
+ .option('--limit <n>', 'Max results')
+ .option('--json', 'Output JSON')
+ .action(
+ async (
+ botId: string,
+ options: {
+ authorId?: string;
+ json?: boolean;
+ limit?: string;
+ query: string;
+ target: string;
+ },
+ ) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.searchMessages.query({
+ authorId: options.authorId,
+ botId,
+ channelId: options.target,
+ limit: options.limit ? Number.parseInt(options.limit, 10) : undefined,
+ query: options.query,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const messages = (result as any).messages ?? [];
+ if (messages.length === 0) {
+ console.log('No messages found.');
+ return;
+ }
+
+ const rows = messages.map((m: any) => [
+ m.id || '',
+ m.author?.name || '',
+ truncate(m.content || '', 60),
+ ]);
+
+ printTable(rows, ['ID', 'AUTHOR', 'CONTENT']);
+ },
+ );
+
+ // ── react ───────────────────────────────────────────────
+
+ message
+ .command('react <botId>')
+ .description('Add an emoji reaction to a message')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--message-id <id>', 'Message ID to react to')
+ .requiredOption('--emoji <emoji>', 'Emoji to react with')
+ .action(
+ async (botId: string, options: { emoji: string; messageId: string; target: string }) => {
+ const client = await getTrpcClient();
+ await client.botMessage.reactToMessage.mutate({
+ botId,
+ channelId: options.target,
+ emoji: options.emoji,
+ messageId: options.messageId,
+ });
+
+ console.log(
+ `${pc.green('✓')} Reacted with ${options.emoji} to message ${pc.bold(options.messageId)}`,
+ );
+ },
+ );
+
+ // ── reactions ───────────────────────────────────────────
+
+ message
+ .command('reactions <botId>')
+ .description('List reactions on a message')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--message-id <id>', 'Message ID')
+ .option('--json', 'Output JSON')
+ .action(
+ async (botId: string, options: { json?: boolean; messageId: string; target: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.getReactions.query({
+ botId,
+ channelId: options.target,
+ messageId: options.messageId,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const reactions = (result as any).reactions ?? [];
+ if (reactions.length === 0) {
+ console.log('No reactions found.');
+ return;
+ }
+
+ const rows = reactions.map((r: any) => [r.emoji || '', String(r.count || 0)]);
+ printTable(rows, ['EMOJI', 'COUNT']);
+ },
+ );
+
+ // ── pin ─────────────────────────────────────────────────
+
+ message
+ .command('pin <botId>')
+ .description('Pin a message')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--message-id <id>', 'Message ID to pin')
+ .action(async (botId: string, options: { messageId: string; target: string }) => {
+ const client = await getTrpcClient();
+ await client.botMessage.pinMessage.mutate({
+ botId,
+ channelId: options.target,
+ messageId: options.messageId,
+ });
+
+ console.log(`${pc.green('✓')} Pinned message ${pc.bold(options.messageId)}`);
+ });
+
+ // ── unpin ───────────────────────────────────────────────
+
+ message
+ .command('unpin <botId>')
+ .description('Unpin a message')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--message-id <id>', 'Message ID to unpin')
+ .action(async (botId: string, options: { messageId: string; target: string }) => {
+ const client = await getTrpcClient();
+ await client.botMessage.unpinMessage.mutate({
+ botId,
+ channelId: options.target,
+ messageId: options.messageId,
+ });
+
+ console.log(`${pc.green('✓')} Unpinned message ${pc.bold(options.messageId)}`);
+ });
+
+ // ── pins ────────────────────────────────────────────────
+
+ message
+ .command('pins <botId>')
+ .description('List pinned messages')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .option('--json', 'Output JSON')
+ .action(async (botId: string, options: { json?: boolean; target: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.listPins.query({
+ botId,
+ channelId: options.target,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const messages = (result as any).messages ?? [];
+ if (messages.length === 0) {
+ console.log('No pinned messages.');
+ return;
+ }
+
+ const rows = messages.map((m: any) => [
+ m.id || '',
+ m.author?.name || '',
+ truncate(m.content || '', 60),
+ ]);
+
+ printTable(rows, ['ID', 'AUTHOR', 'CONTENT']);
+ });
+
+ // ── poll ────────────────────────────────────────────────
+
+ message
+ .command('poll <botId>')
+ .description('Create a poll')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--poll-question <text>', 'Poll question')
+ .requiredOption('--poll-option <option>', 'Poll option (repeatable)', collectOptions, [])
+ .option('--poll-multi', 'Allow multiple answers')
+ .option('--poll-duration-hours <n>', 'Poll duration in hours')
+ .action(
+ async (
+ botId: string,
+ options: {
+ pollDurationHours?: string;
+ pollMulti?: boolean;
+ pollOption: string[];
+ pollQuestion: string;
+ target: string;
+ },
+ ) => {
+ if (options.pollOption.length < 2) {
+ log.error('At least 2 poll options are required.');
+ process.exit(1);
+ }
+
+ const client = await getTrpcClient();
+ const result = await client.botMessage.createPoll.mutate({
+ botId,
+ channelId: options.target,
+ duration: options.pollDurationHours
+ ? Number.parseInt(options.pollDurationHours, 10)
+ : undefined,
+ multipleAnswers: options.pollMulti,
+ options: options.pollOption,
+ question: options.pollQuestion,
+ });
+
+ const r = result as any;
+ console.log(`${pc.green('✓')} Poll created${r.pollId ? ` (${pc.dim(r.pollId)})` : ''}`);
+ },
+ );
+
+ // ── thread (subcommand group) ───────────────────────────
+
+ const thread = message.command('thread').description('Manage threads');
+
+ thread
+ .command('create <botId>')
+ .description('Create a new thread')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .requiredOption('--thread-name <name>', 'Thread name')
+ .option('--message <text>', 'Initial message content')
+ .option('--message-id <id>', 'Create thread from a message')
+ .action(
+ async (
+ botId: string,
+ options: { message?: string; messageId?: string; target: string; threadName: string },
+ ) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.createThread.mutate({
+ botId,
+ channelId: options.target,
+ content: options.message,
+ messageId: options.messageId,
+ name: options.threadName,
+ });
+
+ const r = result as any;
+ console.log(
+ `${pc.green('✓')} Thread created${r.threadId ? ` (${pc.dim(r.threadId)})` : ''}`,
+ );
+ },
+ );
+
+ thread
+ .command('list <botId>')
+ .description('List threads in a channel')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .option('--json', 'Output JSON')
+ .action(async (botId: string, options: { json?: boolean; target: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.listThreads.query({
+ botId,
+ channelId: options.target,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const threads = (result as any).threads ?? [];
+ if (threads.length === 0) {
+ console.log('No threads found.');
+ return;
+ }
+
+ const rows = threads.map((t: any) => [
+ t.id || '',
+ t.name || '',
+ String(t.messageCount ?? ''),
+ ]);
+
+ printTable(rows, ['ID', 'NAME', 'MESSAGES']);
+ });
+
+ thread
+ .command('reply <botId>')
+ .description('Reply to a thread')
+ .requiredOption('--thread-id <id>', 'Thread ID')
+ .requiredOption('--message <text>', 'Reply content')
+ .action(async (botId: string, options: { message: string; threadId: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.replyToThread.mutate({
+ botId,
+ content: options.message,
+ threadId: options.threadId,
+ });
+
+ const r = result as any;
+ console.log(`${pc.green('✓')} Reply sent${r.messageId ? ` (${pc.dim(r.messageId)})` : ''}`);
+ });
+
+ // ── channel (subcommand group) ──────────────────────────
+
+ const channel = message.command('channel').description('Manage channels');
+
+ channel
+ .command('list <botId>')
+ .description('List channels')
+ .option('--server-id <id>', 'Server / workspace ID')
+ .option('--filter <type>', 'Filter by type')
+ .option('--json', 'Output JSON')
+ .action(
+ async (botId: string, options: { filter?: string; json?: boolean; serverId?: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.listChannels.query({
+ botId,
+ filter: options.filter,
+ serverId: options.serverId,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const channels = (result as any).channels ?? [];
+ if (channels.length === 0) {
+ console.log('No channels found.');
+ return;
+ }
+
+ const rows = channels.map((c: any) => [c.id || '', c.name || '', c.type || '']);
+ printTable(rows, ['ID', 'NAME', 'TYPE']);
+ },
+ );
+
+ channel
+ .command('info <botId>')
+ .description('Get channel details')
+ .requiredOption('--target <channelId>', 'Channel ID')
+ .option('--json', 'Output JSON')
+ .action(async (botId: string, options: { json?: boolean; target: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.getChannelInfo.query({
+ botId,
+ channelId: options.target,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const r = result as any;
+ console.log(`Channel: ${pc.bold(r.name || options.target)}`);
+ if (r.type) console.log(` Type: ${r.type}`);
+ if (r.memberCount != null) console.log(` Members: ${r.memberCount}`);
+ if (r.description) console.log(` Description: ${r.description}`);
+ });
+
+ // ── member ──────────────────────────────────────────────
+
+ const member = message.command('member').description('Member information');
+
+ member
+ .command('info <botId>')
+ .description('Get member details')
+ .requiredOption('--member-id <id>', 'Member / user ID')
+ .option('--server-id <id>', 'Server / workspace ID')
+ .option('--json', 'Output JSON')
+ .action(
+ async (botId: string, options: { json?: boolean; memberId: string; serverId?: string }) => {
+ const client = await getTrpcClient();
+ const result = await client.botMessage.getMemberInfo.query({
+ botId,
+ memberId: options.memberId,
+ serverId: options.serverId,
+ });
+
+ if (options.json) {
+ outputJson(result);
+ return;
+ }
+
+ const r = result as any;
+ console.log(`Member: ${pc.bold(r.displayName || r.username || options.memberId)}`);
+ if (r.status) console.log(` Status: ${r.status}`);
+ if (r.roles?.length) console.log(` Roles: ${r.roles.join(', ')}`);
+ },
+ );
+}
+
+// ── Helpers ──────────────────────────────────────────────
+
+function collectOptions(value: string, previous: string[]): string[] {
+ return [...previous, value];
+}
diff --git a/e2e/src/steps/agent/conversation.steps.ts b/e2e/src/steps/agent/conversation.steps.ts
index 2bc2d1cb2da..c29f64492c4 100644
--- a/e2e/src/steps/agent/conversation.steps.ts
+++ b/e2e/src/steps/agent/conversation.steps.ts
@@ -97,7 +97,7 @@ Given('用户已登录系统', async function (this: CustomWorld) {
expect(cookies.length).toBeGreaterThan(0);
});
-Given('用户进入 Lobe AI 对话页面', async function (this: CustomWorld) {
+Given('用户进入 Lobe AI 对话页面', { timeout: 30_000 }, async function (this: CustomWorld) {
console.log(' 📍 Step: 设置 LLM mock...');
// Setup LLM mock before navigation
llmMockManager.setResponse('hello', presetResponses.greeting);
diff --git a/locales/ar/agent.json b/locales/ar/agent.json
index f1ae983faf7..fcf877f9f35 100644
--- a/locales/ar/agent.json
+++ b/locales/ar/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "يرجى نسخ هذا العنوان ولصقه في الحقل <bold>{{fieldName}}</bold> في بوابة مطوري {{name}}.",
"channel.exportConfig": "تصدير التكوين",
"channel.feishu.description": "قم بتوصيل هذا المساعد بـ Feishu للدردشة الخاصة والجماعية.",
+ "channel.historyLimit": "حد رسائل السجل",
+ "channel.historyLimitHint": "العدد الافتراضي للرسائل التي يتم جلبها عند قراءة سجل القناة",
"channel.importConfig": "استيراد التكوين",
"channel.importFailed": "فشل في استيراد التكوين",
"channel.importInvalidFormat": "تنسيق ملف التكوين غير صالح",
@@ -78,6 +80,8 @@
"channel.secretToken": "رمز سر الويب هوك",
"channel.secretTokenHint": "اختياري. يُستخدم للتحقق من طلبات الويب هوك من Telegram.",
"channel.secretTokenPlaceholder": "السر الاختياري للتحقق من الويب هوك",
+ "channel.serverId": "معرف الخادم / النقابة الافتراضي",
+ "channel.serverIdHint": "معرف الخادم أو النقابة الافتراضي الخاص بك على هذه المنصة. يستخدمه الذكاء الاصطناعي لإدراج القنوات دون الحاجة للسؤال.",
"channel.settings": "الإعدادات المتقدمة",
"channel.settingsResetConfirm": "هل أنت متأكد أنك تريد إعادة تعيين الإعدادات المتقدمة إلى الوضع الافتراضي؟",
"channel.settingsResetDefault": "إعادة إلى الوضع الافتراضي",
@@ -93,6 +97,8 @@
"channel.testFailed": "فشل اختبار الاتصال",
"channel.testSuccess": "نجح اختبار الاتصال",
"channel.updateFailed": "فشل في تحديث الحالة",
+ "channel.userId": "معرف المستخدم الخاص بك على المنصة",
+ "channel.userIdHint": "معرف المستخدم الخاص بك على هذه المنصة. يمكن للذكاء الاصطناعي استخدامه لإرسال رسائل مباشرة إليك.",
"channel.validationError": "يرجى ملء معرف التطبيق والرمز",
"channel.verificationToken": "رمز التحقق",
"channel.verificationTokenHint": "اختياري. يُستخدم للتحقق من مصدر أحداث الويب هوك.",
diff --git a/locales/ar/chat.json b/locales/ar/chat.json
index 3e7bc998579..f81e6a5c7ed 100644
--- a/locales/ar/chat.json
+++ b/locales/ar/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "حذف وإعادة التوليد",
"messageAction.deleteDisabledByThreads": "لا يمكن حذف هذه الرسالة لأنها تحتوي على موضوع فرعي",
"messageAction.expand": "توسيع الرسالة",
+ "messageAction.interrupted": "تم الإيقاف",
+ "messageAction.interruptedHint": "ماذا يجب أن أفعل بدلاً من ذلك؟",
"messageAction.reaction": "إضافة تفاعل",
"messageAction.regenerate": "إعادة التوليد",
"messages.dm.sentTo": "مرئي فقط لـ {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "الموافقة تلقائيًا على جميع تنفيذات الأدوات",
"tool.intervention.mode.manual": "يدوي",
"tool.intervention.mode.manualDesc": "يتطلب الموافقة اليدوية لكل استدعاء",
+ "tool.intervention.pending": "قيد الانتظار",
"tool.intervention.reject": "رفض",
"tool.intervention.rejectAndContinue": "رفض وإعادة المحاولة",
"tool.intervention.rejectOnly": "رفض",
"tool.intervention.rejectReasonPlaceholder": "سيساعد السبب الوكيل على فهم حدودك وتحسين التصرفات المستقبلية",
"tool.intervention.rejectTitle": "رفض استدعاء المهارة",
"tool.intervention.rejectedWithReason": "تم رفض استدعاء المهارة: {{reason}}",
+ "tool.intervention.scrollToIntervention": "عرض",
"tool.intervention.toolAbort": "لقد ألغيت استدعاء المهارة",
"tool.intervention.toolRejected": "تم رفض استدعاء المهارة",
"toolAuth.authorize": "تفويض",
diff --git a/locales/ar/models.json b/locales/ar/models.json
index cea35d591e8..28454dd9759 100644
--- a/locales/ar/models.json
+++ b/locales/ar/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "نموذج استدلال داخلي جديد بسلسلة تفكير تصل إلى 80K ومدخلات حتى 1M، يقدم أداءً مماثلاً لأفضل النماذج العالمية.",
"MiniMax-M2-Stable.description": "مصمم لتدفقات العمل البرمجية والوكلاء بكفاءة عالية، مع قدرة تزامن أعلى للاستخدام التجاري.",
"MiniMax-M2.1-Lightning.description": "قدرات برمجة متعددة اللغات قوية وتجربة برمجة مطورة بالكامل. أسرع وأكثر كفاءة.",
- "MiniMax-M2.1-highspeed.description": "قدرات برمجة متعددة اللغات قوية مع استدلال أسرع وأكثر كفاءة.",
"MiniMax-M2.1.description": "MiniMax-M2.1 هو نموذج مفتوح المصدر رائد من MiniMax، يركز على حل المهام الواقعية المعقدة. يتميز بقدرات برمجة متعددة اللغات والقدرة على أداء المهام المعقدة كوكلاء ذكي.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: نفس الأداء، أسرع وأكثر رشاقة (تقريباً 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: نفس أداء M2.5 مع استدلال أسرع.",
@@ -307,18 +306,18 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku هو أسرع وأصغر نموذج من Anthropic، مصمم لتقديم استجابات شبه فورية بأداء سريع ودقيق.",
"claude-3-opus-20240229.description": "Claude 3 Opus هو أقوى نموذج من Anthropic للمهام المعقدة، يتميز بالأداء العالي، الذكاء، الطلاقة، والفهم.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet يوازن بين الذكاء والسرعة لتلبية احتياجات المؤسسات، ويوفر فائدة عالية بتكلفة أقل ونشر موثوق على نطاق واسع.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 هو النموذج الأسرع والأكثر ذكاءً من Anthropic، مع سرعة فائقة وتفكير ممتد.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 هو أسرع وأذكى نموذج Haiku من Anthropic، يتميز بسرعة البرق وقدرات استدلال موسعة.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 هو نموذج Haiku الأسرع والأذكى من Anthropic، يتميز بسرعة البرق وقدرات استدلال موسعة.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking هو إصدار متقدم يمكنه عرض عملية تفكيره.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 هو أحدث وأقوى نموذج من Anthropic للمهام المعقدة للغاية، يتميز بالأداء، الذكاء، الطلاقة، والفهم.",
- "claude-opus-4-20250514.description": "Claude Opus 4 هو النموذج الأكثر قوة من Anthropic للمهام المعقدة للغاية، يتميز بالأداء، الذكاء، الطلاقة، والفهم.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 هو أحدث وأقوى نموذج من Anthropic للمهام المعقدة للغاية، يتميز بالأداء العالي، الذكاء، الطلاقة، والفهم.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 هو أقوى نموذج من Anthropic للمهام المعقدة للغاية، يتميز بالأداء العالي، الذكاء، الطلاقة، والاستيعاب.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 هو النموذج الرائد من Anthropic، يجمع بين الذكاء الاستثنائي والأداء القابل للتوسع، مثالي للمهام المعقدة التي تتطلب استجابات عالية الجودة وتفكير متقدم.",
"claude-opus-4-6.description": "Claude Opus 4.6 هو النموذج الأكثر ذكاءً من Anthropic لبناء الوكلاء والبرمجة.",
"claude-opus-4.5.description": "Claude Opus 4.5 هو النموذج الرائد من Anthropic، يجمع بين الذكاء الفائق والأداء القابل للتوسع لمهام الاستدلال المعقدة وعالية الجودة.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 هو النموذج الأكثر ذكاءً من Anthropic لبناء الوكلاء والبرمجة.",
"claude-opus-4.6.description": "Claude Opus 4.6 هو النموذج الأكثر ذكاءً من Anthropic لبناء الوكلاء والبرمجة.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking يمكنه تقديم استجابات شبه فورية أو تفكير متسلسل مرئي.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 هو النموذج الأكثر ذكاءً من Anthropic حتى الآن، يقدم استجابات شبه فورية أو تفكيرًا ممتدًا خطوة بخطوة مع تحكم دقيق لمستخدمي API.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 يمكنه إنتاج استجابات شبه فورية أو تفكير ممتد خطوة بخطوة مع عملية مرئية.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 هو النموذج الأكثر ذكاءً من Anthropic حتى الآن.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 هو أفضل مزيج من السرعة والذكاء من Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 هو النموذج الأكثر ذكاءً من Anthropic حتى الآن.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 هو نموذج تفكير من الجيل التالي يتمتع بقدرات أقوى في التفكير المعقد وسلسلة التفكير لمهام التحليل العميق.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 هو نموذج استدلال من الجيل التالي يتميز بقدرات استدلال معقدة وسلسلة التفكير.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 هو نموذج رؤية-لغة MoE يعتمد على DeepSeekMoE-27B مع تنشيط متفرق، ويحقق أداءً قويًا باستخدام 4.5 مليار معلمة نشطة فقط. يتميز في الأسئلة البصرية، وOCR، وفهم المستندات/الجداول/المخططات، والتأريض البصري.",
- "deepseek-chat.description": "DeepSeek V3.2 يوازن بين التفكير وطول المخرجات لمهام الأسئلة اليومية والوكلاء. تصل المعايير العامة إلى مستويات GPT-5، وهو الأول الذي يدمج التفكير في استخدام الأدوات، مما يؤدي إلى تقييمات الوكلاء مفتوحة المصدر.",
+ "deepseek-chat.description": "نموذج مفتوح المصدر جديد يجمع بين القدرات العامة والبرمجية. يحافظ على حوار النموذج العام وقوة البرمجة للنموذج البرمجي، مع تحسين توافق التفضيلات. كما يحسن DeepSeek-V2.5 الكتابة واتباع التعليمات.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B هو نموذج لغة برمجية تم تدريبه على 2 تريليون رمز (87٪ كود، 13٪ نص صيني/إنجليزي). يقدم نافذة سياق 16K ومهام الإكمال في المنتصف، ويوفر إكمال كود على مستوى المشاريع وملء مقاطع الكود.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 هو نموذج كود MoE مفتوح المصدر يتميز بأداء قوي في مهام البرمجة، ويضاهي GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 هو نموذج كود MoE مفتوح المصدر يتميز بأداء قوي في مهام البرمجة، ويضاهي GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "الإصدار الكامل السريع من DeepSeek R1 مع بحث ويب في الوقت الحقيقي، يجمع بين قدرات بحجم 671B واستجابة أسرع.",
"deepseek-r1-online.description": "الإصدار الكامل من DeepSeek R1 مع 671 مليار معلمة وبحث ويب في الوقت الحقيقي، يوفر فهمًا وتوليدًا أقوى.",
"deepseek-r1.description": "يستخدم DeepSeek-R1 بيانات البداية الباردة قبل التعلم المعزز ويؤدي أداءً مماثلًا لـ OpenAI-o1 في الرياضيات، والبرمجة، والتفكير.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking هو نموذج استدلال عميق يولد سلسلة من الأفكار قبل المخرجات لتحقيق دقة أعلى، مع نتائج تنافسية رائدة واستدلال قابل للمقارنة مع Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "وضع التفكير في DeepSeek V3.2 ينتج سلسلة من الأفكار قبل الإجابة النهائية لتحسين الدقة.",
"deepseek-v2.description": "DeepSeek V2 هو نموذج MoE فعال لمعالجة منخفضة التكلفة.",
"deepseek-v2:236b.description": "DeepSeek V2 236B هو نموذج DeepSeek الموجه للبرمجة مع قدرات قوية في توليد الكود.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 هو نموذج MoE يحتوي على 671 مليار معلمة يتميز بقوة في البرمجة، والقدرات التقنية، وفهم السياق، والتعامل مع النصوص الطويلة.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K هو نموذج تفكير سريع بسياق 32K للاستدلال المعقد والدردشة متعددة الأدوار.",
"ernie-x1.1-preview.description": "معاينة ERNIE X1.1 هو نموذج تفكير مخصص للتقييم والاختبار.",
"ernie-x1.1.description": "ERNIE X1.1 هو نموذج تفكير تجريبي للتقييم والاختبار.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5، تم تطويره بواسطة فريق ByteDance Seed، يدعم تحرير وتكوين الصور المتعددة. يتميز باتساق الموضوع المعزز، اتباع التعليمات بدقة، فهم المنطق المكاني، التعبير الجمالي، تخطيط الملصقات وتصميم الشعارات مع تقديم نصوص وصور عالية الدقة.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0، تم تطويره بواسطة ByteDance Seed، يدعم إدخال النصوص والصور لتوليد صور عالية الجودة وقابلة للتحكم من المطالبات.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 هو نموذج توليد الصور من ByteDance Seed، يدعم إدخال النصوص والصور مع توليد صور عالية الجودة وقابلة للتحكم بدرجة كبيرة. يقوم بتوليد الصور من التعليمات النصية.",
"fal-ai/flux-kontext/dev.description": "نموذج FLUX.1 يركز على تحرير الصور، ويدعم إدخال النصوص والصور.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] يقبل النصوص وصور مرجعية كمدخلات، مما يتيح تعديلات محلية مستهدفة وتحولات معقدة في المشهد العام.",
"fal-ai/flux/krea.description": "Flux Krea [dev] هو نموذج لتوليد الصور يتميز بميول جمالية نحو صور أكثر واقعية وطبيعية.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "نموذج قوي لتوليد الصور متعدد الوسائط أصلي.",
"fal-ai/imagen4/preview.description": "نموذج عالي الجودة لتوليد الصور من Google.",
"fal-ai/nano-banana.description": "Nano Banana هو أحدث وأسرع وأكثر نماذج Google كفاءةً لتوليد وتحرير الصور من خلال المحادثة.",
- "fal-ai/qwen-image-edit.description": "نموذج تحرير الصور الاحترافي من فريق Qwen، يدعم التعديلات الدلالية والمظهرية، تحرير النصوص الدقيقة باللغتين الصينية والإنجليزية، نقل الأنماط، التدوير، والمزيد.",
- "fal-ai/qwen-image.description": "نموذج توليد الصور القوي من فريق Qwen مع تقديم نصوص صينية قوية وأنماط بصرية متنوعة.",
+ "fal-ai/qwen-image-edit.description": "نموذج تحرير الصور الاحترافي من فريق Qwen يدعم التعديلات الدلالية والمظهرية، ويحرر النصوص الصينية والإنجليزية بدقة، ويمكّن من تعديلات عالية الجودة مثل نقل الأنماط وتدوير الكائنات.",
+ "fal-ai/qwen-image.description": "نموذج قوي لتوليد الصور من فريق Qwen يتميز بعرض نصوص صينية مبهرة وأنماط بصرية متنوعة.",
"flux-1-schnell.description": "نموذج تحويل النص إلى صورة يحتوي على 12 مليار معلمة من Black Forest Labs يستخدم تقنيات تقطير الانتشار العدائي الكامن لتوليد صور عالية الجودة في 1-4 خطوات. ينافس البدائل المغلقة ومتاح بموجب ترخيص Apache-2.0 للاستخدام الشخصي والبحثي والتجاري.",
"flux-dev.description": "FLUX.1 [dev] هو نموذج مفتوح الأوزان ومقطر للاستخدام غير التجاري. يحافظ على جودة صور قريبة من المستوى الاحترافي واتباع التعليمات مع كفاءة تشغيل أعلى مقارنة بالنماذج القياسية من نفس الحجم.",
"flux-kontext-max.description": "توليد وتحرير صور سياقية متقدمة، تجمع بين النصوص والصور لتحقيق نتائج دقيقة ومتسقة.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) هو نموذج توليد الصور من Google ويدعم أيضًا الدردشة متعددة الوسائط.",
"gemini-3-pro-preview.description": "Gemini 3 Pro هو أقوى نموذج من Google للوكيل الذكي والبرمجة الإبداعية، يقدم تفاعلاً أعمق وصورًا أغنى مع استدلال متقدم.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) يقدم جودة صور احترافية بسرعة فائقة مع دعم الدردشة متعددة الوسائط.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) يقدم جودة صور بمستوى Pro بسرعة Flash مع دعم الدردشة متعددة الوسائط.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) هو أسرع نموذج توليد صور أصلي من Google مع دعم التفكير، وتوليد الصور الحواري، والتحرير.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview هو النموذج الأكثر كفاءة من حيث التكلفة من Google، مُحسّن للمهام الوكيلة ذات الحجم الكبير، الترجمة، ومعالجة البيانات.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview يحسن من Gemini 3 Pro مع قدرات استدلال محسّنة ويضيف دعم مستوى التفكير المتوسط.",
"gemini-flash-latest.description": "أحدث إصدار من Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "أقوى وأحدث نماذجنا، مصمم للمهام المؤسسية المعقدة بأداء متميز.",
"jamba-mini.description": "أكثر النماذج كفاءة في فئته، يوازن بين السرعة والجودة مع استهلاك منخفض للموارد.",
"jina-deepsearch-v1.description": "DeepSearch يجمع بين البحث عبر الإنترنت، والقراءة، والاستدلال لإجراء تحقيقات شاملة. فكر فيه كوكيل يأخذ مهمة البحث الخاصة بك، ويجري عمليات بحث واسعة متعددة المراحل، ثم يقدم إجابة. تتضمن العملية بحثًا مستمرًا، واستدلالًا، وحلًا متعدد الزوايا للمشكلات، وهو مختلف جوهريًا عن نماذج LLM التقليدية التي تعتمد على بيانات التدريب المسبق أو أنظمة RAG التقليدية التي تعتمد على بحث سطحي لمرة واحدة.",
+ "k2p5.description": "Kimi K2.5 هو النموذج الأكثر تنوعًا لـ Kimi حتى الآن، يتميز بهيكل متعدد الوسائط يدعم إدخال الرؤية والنصوص، أوضاع 'التفكير' و'غير التفكير'، بالإضافة إلى المهام الحوارية والوكيلة.",
"kimi-k2-0711-preview.description": "kimi-k2 هو نموذج MoE أساسي يتمتع بقدرات قوية في البرمجة والوكالة (1 تريليون معلمة إجمالية، 32 مليار نشطة)، ويتفوق على النماذج المفتوحة السائدة في اختبارات الاستدلال، البرمجة، الرياضيات، والوكالة.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview يوفر نافذة سياق 256k، برمجة وكيلة أقوى، جودة أفضل لرموز الواجهة الأمامية، وفهم سياقي محسن.",
"kimi-k2-instruct.description": "Kimi K2 Instruct هو النموذج الرسمي للاستدلال من Kimi مع سياق طويل للبرمجة، الأسئلة والأجوبة، والمزيد.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ هو نموذج استدلال من عائلة Qwen. مقارنة بالنماذج المضبوطة على التعليمات، يقدم قدرات تفكير واستدلال تعزز الأداء بشكل كبير، خاصة في المشكلات الصعبة. QwQ-32B هو نموذج متوسط الحجم ينافس أفضل نماذج الاستدلال مثل DeepSeek-R1 و o1-mini.",
"qwq_32b.description": "نموذج استدلال متوسط الحجم من عائلة Qwen. مقارنة بالنماذج المضبوطة على التعليمات، تعزز قدرات التفكير والاستدلال في QwQ الأداء بشكل كبير، خاصة في المشكلات الصعبة.",
"r1-1776.description": "R1-1776 هو إصدار ما بعد التدريب من DeepSeek R1 مصمم لتقديم معلومات واقعية غير خاضعة للرقابة أو التحيز.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro من ByteDance يدعم تحويل النص إلى فيديو، الصورة إلى فيديو (الإطار الأول، الإطار الأول + الأخير)، وتوليد الصوت المتزامن مع المرئيات.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite من BytePlus يتميز بتوليد معزز بالمعلومات المسترجعة من الويب للحصول على معلومات في الوقت الفعلي، تفسير المطالبات المعقدة بشكل محسن، وتحسين اتساق المراجع لإنشاء مرئيات احترافية.",
"solar-mini-ja.description": "Solar Mini (Ja) يوسع Solar Mini مع تركيز على اللغة اليابانية مع الحفاظ على الأداء القوي والكفاءة في الإنجليزية والكورية.",
"solar-mini.description": "Solar Mini هو نموذج لغة مدمج يتفوق على GPT-3.5، يتميز بقدرات متعددة اللغات قوية تدعم الإنجليزية والكورية، ويقدم حلاً فعالاً بصمة صغيرة.",
"solar-pro.description": "Solar Pro هو نموذج لغة عالي الذكاء من Upstage، يركز على اتباع التعليمات باستخدام وحدة معالجة رسومات واحدة، مع درجات IFEval تتجاوز 80. حالياً يدعم اللغة الإنجليزية؛ وكان من المقرر إصدار النسخة الكاملة في نوفمبر 2024 مع دعم لغات موسع وسياق أطول.",
diff --git a/locales/ar/onboarding.json b/locales/ar/onboarding.json
index c0887a133e4..5eb7bc80516 100644
--- a/locales/ar/onboarding.json
+++ b/locales/ar/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "تسجيل وكيل",
+ "agent.completionSubtitle": "تم إعداد مساعدك وهو جاهز للعمل.",
+ "agent.completionTitle": "تم الإعداد بالكامل!",
+ "agent.enterApp": "دخول التطبيق",
+ "agent.greeting.emojiLabel": "رمز تعبيري",
+ "agent.greeting.nameLabel": "الاسم",
+ "agent.greeting.namePlaceholder": "مثلًا: لومي، أطلس، نيكو...",
+ "agent.greeting.prompt": "امنحني اسمًا، طابعًا، ورمزًا تعبيريًا",
+ "agent.greeting.vibeLabel": "الطابع / الطبيعة",
+ "agent.greeting.vibePlaceholder": "مثلًا: دافئ وودود، حاد ومباشر...",
+ "agent.history.current": "الحالي",
+ "agent.history.title": "مواضيع السجل",
+ "agent.modeSwitch.agent": "تفاعلي",
+ "agent.modeSwitch.classic": "كلاسيكي",
+ "agent.modeSwitch.debug": "تصدير التصحيح",
+ "agent.modeSwitch.label": "اختر وضع التسجيل",
+ "agent.modeSwitch.reset": "إعادة ضبط التدفق",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "تخطي التسجيل",
+ "agent.stage.agentIdentity": "هوية الوكيل",
+ "agent.stage.painPoints": "نقاط الألم",
+ "agent.stage.proSettings": "الإعدادات المتقدمة",
+ "agent.stage.responseLanguage": "لغة الرد",
+ "agent.stage.summary": "الملخص",
+ "agent.stage.userIdentity": "معلومات عنك",
+ "agent.stage.workContext": "سياق العمل",
+ "agent.stage.workStyle": "أسلوب العمل",
+ "agent.subtitle": "أكمل الإعداد في محادثة تسجيل مخصصة.",
+ "agent.summaryHint": "أنهِ هنا إذا كان ملخص الإعداد يبدو صحيحًا.",
+ "agent.telemetryAllow": "السماح بالتتبع",
+ "agent.telemetryDecline": "لا شكرًا",
+ "agent.telemetryHint": "يمكنك أيضًا الإجابة بكلماتك الخاصة.",
+ "agent.title": "تسجيل المحادثة",
+ "agent.welcome": "...هم؟ لقد استيقظت للتو — ذهني فارغ. من أنت؟ وأيضًا — ماذا يجب أن يُطلق علي؟ أحتاج إلى اسم أيضًا.",
"back": "رجوع",
"finish": "ابدأ الآن",
"interests.area.business": "الأعمال والاستراتيجية",
@@ -29,6 +63,7 @@
"next": "التالي",
"proSettings.connectors.title": "اربط أدواتك المفضلة",
"proSettings.devMode.title": "وضع المطور",
+ "proSettings.model.fixed": "النموذج الافتراضي مضبوط مسبقًا على {{provider}}/{{model}} في هذه البيئة.",
"proSettings.model.title": "النموذج الافتراضي المستخدم من قبل الوكيل",
"proSettings.title": "قم بإعداد الخيارات المتقدمة مسبقًا",
"proSettings.title2": "جرّب ربط بعض الأدوات الشائعة~",
diff --git a/locales/ar/plugin.json b/locales/ar/plugin.json
index 1a8c6f0071a..5bd1b47e736 100644
--- a/locales/ar/plugin.json
+++ b/locales/ar/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "نسخ المستند",
"builtins.lobe-agent-documents.apiName.createDocument": "إنشاء مستند",
"builtins.lobe-agent-documents.apiName.editDocument": "تعديل المستند",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "قائمة المستندات",
"builtins.lobe-agent-documents.apiName.readDocument": "قراءة المستند",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "قراءة المستند حسب اسم الملف",
"builtins.lobe-agent-documents.apiName.removeDocument": "إزالة المستند",
"builtins.lobe-agent-documents.apiName.renameDocument": "إعادة تسمية المستند",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "تحديث قاعدة التحميل",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "إدراج أو تحديث المستند حسب اسم الملف",
"builtins.lobe-agent-documents.title": "مستندات الوكيل",
"builtins.lobe-agent-management.apiName.callAgent": "وكيل الاتصال",
"builtins.lobe-agent-management.apiName.createAgent": "إنشاء وكيل",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "بيئة سحابية",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "إنشاء وكلاء دفعة واحدة",
"builtins.lobe-group-agent-builder.apiName.createAgent": "إنشاء وكيل",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "إنشاء مجموعة",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "الحصول على معلومات العضو",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "الحصول على النماذج المتاحة",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "تثبيت المهارة",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "المهارات",
"builtins.lobe-topic-reference.apiName.getTopicContext": "الحصول على سياق الموضوع",
"builtins.lobe-topic-reference.title": "مرجع الموضوع",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "طرح سؤال على المستخدم",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "إلغاء استجابة المستخدم",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "الحصول على حالة التفاعل",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "تخطي استجابة المستخدم",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "إرسال استجابة المستخدم",
+ "builtins.lobe-user-interaction.title": "تفاعل المستخدم",
"builtins.lobe-user-memory.apiName.addContextMemory": "إضافة ذاكرة السياق",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "إضافة ذاكرة الخبرة",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "إضافة ذاكرة الهوية",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "البحث في الصفحات",
"builtins.lobe-web-browsing.inspector.noResults": "لا توجد نتائج",
"builtins.lobe-web-browsing.title": "بحث الويب",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "إنهاء الإعداد",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "قراءة حالة الإعداد",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "قراءة المستند",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "حفظ سؤال المستخدم",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "تحديث المستند",
+ "builtins.lobe-web-onboarding.title": "إعداد المستخدم",
"confirm": "تأكيد",
"debug.arguments": "المعلمات",
"debug.error": "سجل الأخطاء",
diff --git a/locales/ar/providers.json b/locales/ar/providers.json
index 51e872a7c53..5105cd625ac 100644
--- a/locales/ar/providers.json
+++ b/locales/ar/providers.json
@@ -33,7 +33,6 @@
"jina.description": "تأسست Jina AI في عام 2020، وهي شركة رائدة في مجال البحث الذكي. تشمل تقنياتها نماذج المتجهات، ومعيدو الترتيب، ونماذج لغوية صغيرة لبناء تطبيقات بحث توليدية ومتعددة الوسائط عالية الجودة.",
"kimicodingplan.description": "كود Kimi من Moonshot AI يوفر الوصول إلى نماذج Kimi بما في ذلك K2.5 لأداء مهام الترميز.",
"lmstudio.description": "LM Studio هو تطبيق سطح مكتب لتطوير وتجربة النماذج اللغوية الكبيرة على جهازك.",
- "lobehub.description": "LobeHub Cloud يستخدم واجهات برمجية رسمية للوصول إلى نماذج الذكاء الاصطناعي ويقيس الاستخدام عبر أرصدة مرتبطة برموز النماذج.",
"longcat.description": "LongCat هو سلسلة من نماذج الذكاء الاصطناعي التوليدية الكبيرة التي تم تطويرها بشكل مستقل بواسطة Meituan. تم تصميمه لتعزيز إنتاجية المؤسسة الداخلية وتمكين التطبيقات المبتكرة من خلال بنية حسابية فعالة وقدرات متعددة الوسائط قوية.",
"minimax.description": "تأسست MiniMax في عام 2021، وتبني نماذج ذكاء اصطناعي متعددة الوسائط للأغراض العامة، بما في ذلك نماذج نصية بمليارات المعلمات، ونماذج صوتية وبصرية، بالإضافة إلى تطبيقات مثل Hailuo AI.",
"minimaxcodingplan.description": "خطة الرموز MiniMax توفر الوصول إلى نماذج MiniMax بما في ذلك M2.7 لأداء مهام الترميز عبر اشتراك ثابت الرسوم.",
diff --git a/locales/ar/ui.json b/locales/ar/ui.json
index c2c400fbcaa..54dc7ed724d 100644
--- a/locales/ar/ui.json
+++ b/locales/ar/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "يمكنك تحميل ملفات الصور فقط!",
"emojiPicker.upload": "تحميل",
"emojiPicker.uploadBtn": "قص وتحميل",
+ "form.other": "أو اكتب مباشرة",
+ "form.otherBack": "العودة إلى الخيارات",
"form.reset": "إعادة تعيين",
+ "form.skip": "تخطى",
"form.submit": "إرسال",
"form.unsavedChanges": "تغييرات غير محفوظة",
"form.unsavedWarning": "لديك تغييرات غير محفوظة. هل أنت متأكد أنك تريد المغادرة؟",
diff --git a/locales/bg-BG/agent.json b/locales/bg-BG/agent.json
index fb28256eb8a..153d993672f 100644
--- a/locales/bg-BG/agent.json
+++ b/locales/bg-BG/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Моля, копирайте този URL и го поставете в полето <bold>{{fieldName}}</bold> в {{name}} Developer Portal.",
"channel.exportConfig": "Експортиране на конфигурация",
"channel.feishu.description": "Свържете този асистент с Feishu за лични и групови чатове.",
+ "channel.historyLimit": "Лимит на съобщенията в историята",
+ "channel.historyLimitHint": "По подразбиране брой съобщения за извличане при четене на историята на канала",
"channel.importConfig": "Импортиране на конфигурация",
"channel.importFailed": "Неуспешно импортиране на конфигурация",
"channel.importInvalidFormat": "Невалиден формат на конфигурационния файл",
@@ -78,6 +80,8 @@
"channel.secretToken": "Секретен токен на уебхук",
"channel.secretTokenHint": "По избор. Използва се за проверка на заявки за уебхук от Telegram.",
"channel.secretTokenPlaceholder": "По избор секрет за проверка на уебхук",
+ "channel.serverId": "ID на сървъра / гилдията по подразбиране",
+ "channel.serverIdHint": "Вашият ID на сървъра или гилдията по подразбиране на тази платформа. AI го използва, за да изброи каналите без да пита.",
"channel.settings": "Разширени настройки",
"channel.settingsResetConfirm": "Сигурни ли сте, че искате да върнете разширените настройки към техните стойности по подразбиране?",
"channel.settingsResetDefault": "Връщане към стойности по подразбиране",
@@ -93,6 +97,8 @@
"channel.testFailed": "Тестът на връзката неуспешен",
"channel.testSuccess": "Тестът на връзката успешен",
"channel.updateFailed": "Неуспешно актуализиране на статуса",
+ "channel.userId": "Вашият потребителски ID на платформата",
+ "channel.userIdHint": "Вашият потребителски ID на тази платформа. AI може да го използва, за да ви изпраща директни съобщения.",
"channel.validationError": "Моля, попълнете ID на приложението и токен",
"channel.verificationToken": "Токен за проверка",
"channel.verificationTokenHint": "По избор. Използва се за проверка на източника на събития за уебхук.",
diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.json
index bfcc9ddd870..f34153bf123 100644
--- a/locales/bg-BG/chat.json
+++ b/locales/bg-BG/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Изтрий и генерирай отново",
"messageAction.deleteDisabledByThreads": "Това съобщение има подтема и не може да бъде изтрито",
"messageAction.expand": "Разгъни съобщението",
+ "messageAction.interrupted": "Прекъснато",
+ "messageAction.interruptedHint": "Какво трябва да направя вместо това?",
"messageAction.reaction": "Добави реакция",
"messageAction.regenerate": "Генерирай отново",
"messages.dm.sentTo": "Видимо само за {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Автоматично одобрявай всички изпълнения на инструменти",
"tool.intervention.mode.manual": "Ръчно",
"tool.intervention.mode.manualDesc": "Изисква ръчно одобрение за всяко извикване",
+ "tool.intervention.pending": "В очакване",
"tool.intervention.reject": "Отхвърли",
"tool.intervention.rejectAndContinue": "Отхвърли и опитай отново",
"tool.intervention.rejectOnly": "Отхвърли",
"tool.intervention.rejectReasonPlaceholder": "Причината помага на агента да разбере вашите граници и да подобри действията си в бъдеще",
"tool.intervention.rejectTitle": "Отхвърли това извикване на умение",
"tool.intervention.rejectedWithReason": "Това извикване на умение беше отхвърлено: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Преглед",
"tool.intervention.toolAbort": "Отменихте това извикване на умение",
"tool.intervention.toolRejected": "Това извикване на умение беше отхвърлено",
"toolAuth.authorize": "Упълномощи",
diff --git a/locales/bg-BG/models.json b/locales/bg-BG/models.json
index 67c88104217..a5adc41e2b5 100644
--- a/locales/bg-BG/models.json
+++ b/locales/bg-BG/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Нов вътрешен модел за разсъждение с 80K верига на мисълта и 1M вход, предлагащ производителност, сравнима с водещите глобални модели.",
"MiniMax-M2-Stable.description": "Създаден за ефективно програмиране и агентски работни потоци, с по-висока едновременност за търговска употреба.",
"MiniMax-M2.1-Lightning.description": "Мощни многоезични възможности за програмиране и цялостно подобрено програмистко изживяване. По-бързо и по-ефективно.",
- "MiniMax-M2.1-highspeed.description": "Мощни многоезични програмни възможности с по-бързо и ефективно извеждане.",
"MiniMax-M2.1.description": "MiniMax-M2.1 е водеща отворена голяма езикова система от MiniMax, фокусирана върху решаването на сложни реални задачи. Основните ѝ предимства са възможностите за програмиране на множество езици и способността да действа като агент за решаване на сложни задачи.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Същата производителност, по-бърз и по-агилен (приблизително 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Същата производителност като M2.5, но с по-бързо извеждане.",
@@ -307,18 +306,18 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku е най-бързият и най-компактен модел на Anthropic, проектиран за почти мигновени отговори с бърза и точна производителност.",
"claude-3-opus-20240229.description": "Claude 3 Opus е най-мощният модел на Anthropic за силно сложни задачи, отличаващ се с производителност, интелигентност, плавност и разбиране.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet балансира интелигентност и скорост за корпоративни натоварвания, осигурявайки висока полезност на по-ниска цена и надеждно мащабно внедряване.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 е най-бързият и интелигентен модел Haiku на Anthropic, с мълниеносна скорост и разширено мислене.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 е най-бързият и най-умен Haiku модел на Anthropic, с мълниеносна скорост и разширено разсъждение.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 е най-бързият и най-умен Haiku модел на Anthropic, с мълниеносна скорост и разширено разсъждение.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking е усъвършенстван вариант, който може да разкрие процеса си на разсъждение.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 е най-новият и най-способен модел на Anthropic за силно сложни задачи, отличаващ се с производителност, интелигентност, плавност и разбиране.",
- "claude-opus-4-20250514.description": "Claude Opus 4 е най-мощният модел на Anthropic за силно сложни задачи, отличаващ се с производителност, интелигентност, плавност и разбиране.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 е най-новият и най-способен модел на Anthropic за изключително сложни задачи, отличаващ се с производителност, интелигентност, плавност и разбиране.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 е най-мощният модел на Anthropic за изключително сложни задачи, отличаващ се с производителност, интелигентност, плавност и разбиране.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 е флагманският модел на Anthropic, комбиниращ изключителна интелигентност с мащабируема производителност, идеален за сложни задачи, изискващи най-висококачествени отговори и разсъждение.",
- "claude-opus-4-6.description": "Claude Opus 4.6 е най-интелигентният модел на Anthropic за изграждане на агенти и програмиране.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 е най-интелигентният модел на Anthropic за създаване на агенти и програмиране.",
"claude-opus-4.5.description": "Claude Opus 4.5 е водещият модел на Anthropic, съчетаващ първокласен интелект с мащабируемо представяне за сложни задачи с високо качество на разсъжденията.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 е най-интелигентният модел на Anthropic за създаване на агенти и програмиране.",
"claude-opus-4.6.description": "Claude Opus 4.6 е най-интелигентният модел на Anthropic за създаване на агенти и програмиране.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking може да генерира почти мигновени отговори или разширено стъпково мислене с видим процес.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 е най-интелигентният модел на Anthropic досега, предлагащ почти мигновени отговори или разширено мислене стъпка по стъпка с фино управление за API потребители.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 може да предоставя почти мигновени отговори или разширено поетапно мислене с видим процес.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 е най-интелигентният модел на Anthropic досега.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 е най-добрата комбинация от скорост и интелигентност на Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 е най-интелигентният модел на Anthropic до момента.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 е модел за разсъждение от ново поколение с по-силни способности за сложни разсъждения и верига от мисли за задълбочени аналитични задачи.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 е модел за разсъждение от следващо поколение с по-силни способности за сложни разсъждения и верига на мисълта.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 е MoE модел за визия и език, базиран на DeepSeekMoE-27B със слаба активация, постигайки висока производителност с едва 4.5 милиарда активни параметъра. Отличава се в визуални въпроси и отговори, OCR, разбиране на документи/таблици/графики и визуално привързване.",
- "deepseek-chat.description": "DeepSeek V3.2 балансира разсъжденията и дължината на изхода за ежедневни QA и задачи с агенти. Публичните бенчмаркове достигат нивата на GPT-5, и той е първият, който интегрира мислене в използването на инструменти, водещ в оценките на агенти с отворен код.",
+ "deepseek-chat.description": "Нов модел с отворен код, който комбинира общи и кодови способности. Той запазва общия диалог на чат модела и силното програмиране на кодовия модел, с по-добро съответствие на предпочитанията. DeepSeek-V2.5 също така подобрява писането и следването на инструкции.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B е езиков модел за програмиране, обучен върху 2 трилиона токени (87% код, 13% китайски/английски текст). Въвежда 16K контекстен прозорец и задачи за попълване в средата, осигурявайки допълване на код на ниво проект и попълване на фрагменти.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 е отворен MoE модел за програмиране, който се представя на ниво GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 е отворен MoE модел за програмиране, който се представя на ниво GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Пълна бърза версия на DeepSeek R1 с търсене в реално време в уеб, комбинираща възможности от мащаб 671B и по-бърз отговор.",
"deepseek-r1-online.description": "Пълна версия на DeepSeek R1 с 671 милиарда параметъра и търсене в реално време в уеб, предлагаща по-силно разбиране и генериране.",
"deepseek-r1.description": "DeepSeek-R1 използва данни от студен старт преди подсиленото обучение и се представя наравно с OpenAI-o1 в математика, програмиране и разсъждение.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking е модел за дълбоко разсъждение, който генерира верига от мисли преди изходите за по-висока точност, с водещи резултати в състезания и разсъждения, сравними с Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "Режимът на мислене DeepSeek V3.2 предоставя верига от мисли преди крайния отговор за подобряване на точността.",
"deepseek-v2.description": "DeepSeek V2 е ефективен MoE модел за икономична обработка.",
"deepseek-v2:236b.description": "DeepSeek V2 236B е модел на DeepSeek, фокусиран върху програмиране, с висока производителност при генериране на код.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 е MoE модел с 671 милиарда параметъра, с изключителни способности в програмиране, технически задачи, разбиране на контекст и обработка на дълги текстове.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K е бърз мислещ модел с 32K контекст за сложни разсъждения и многозавойни разговори.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview е предварителен модел за мислене, предназначен за оценка и тестване.",
"ernie-x1.1.description": "ERNIE X1.1 е мисловен модел за предварителен преглед за оценка и тестване.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, създаден от екипа Seed на ByteDance, поддържа редактиране и композиция на множество изображения. Характеризира се с подобрена консистентност на обектите, прецизно следване на инструкции, разбиране на пространствена логика, естетично изразяване, оформление на плакати и дизайн на лого с високопрецизно текстово-изображение рендиране.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, създаден от ByteDance Seed, поддържа текстови и визуални входове за силно контролируемо, висококачествено генериране на изображения от подсказки.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 е модел за генериране на изображения от ByteDance Seed, който поддържа текстови и визуални входове с високо контролируемо и висококачествено генериране на изображения. Той създава изображения от текстови подсказки.",
"fal-ai/flux-kontext/dev.description": "FLUX.1 модел, фокусиран върху редактиране на изображения, поддържащ вход от текст и изображения.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] приема текст и референтни изображения като вход, позволявайки целенасочени локални редакции и сложни глобални трансформации на сцени.",
"fal-ai/flux/krea.description": "Flux Krea [dev] е модел за генериране на изображения с естетично предпочитание към по-реалистични и естествени изображения.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Мощен роден мултимодален модел за генериране на изображения.",
"fal-ai/imagen4/preview.description": "Модел за висококачествено генериране на изображения от Google.",
"fal-ai/nano-banana.description": "Nano Banana е най-новият, най-бърз и най-ефективен роден мултимодален модел на Google, позволяващ генериране и редактиране на изображения чрез разговор.",
- "fal-ai/qwen-image-edit.description": "Професионален модел за редактиране на изображения от екипа Qwen, поддържащ семантични и визуални редакции, прецизно редактиране на текст на китайски/английски, трансфер на стил, ротация и други.",
- "fal-ai/qwen-image.description": "Мощен модел за генериране на изображения от екипа Qwen със силно рендиране на китайски текст и разнообразни визуални стилове.",
+ "fal-ai/qwen-image-edit.description": "Професионален модел за редактиране на изображения от екипа на Qwen, който поддържа семантични и визуални редакции, прецизно редактира китайски и английски текст и позволява висококачествени редакции като прехвърляне на стил и завъртане на обекти.",
+ "fal-ai/qwen-image.description": "Мощен модел за генериране на изображения от екипа на Qwen с впечатляващо рендиране на китайски текст и разнообразни визуални стилове.",
"flux-1-schnell.description": "Модел за преобразуване на текст в изображение с 12 милиарда параметъра от Black Forest Labs, използващ латентна дифузионна дестилация за генериране на висококачествени изображения в 1–4 стъпки. Съперничи на затворени алтернативи и е пуснат под лиценз Apache-2.0 за лична, изследователска и търговска употреба.",
"flux-dev.description": "FLUX.1 [dev] е дестилиран модел с отворени тегла за нетърговска употреба. Запазва почти професионално качество на изображенията и следване на инструкции, като същевременно работи по-ефективно и използва ресурсите по-добре от стандартни модели със същия размер.",
"flux-kontext-max.description": "Съвременно генериране и редактиране на изображения с контекст, комбиниращо текст и изображения за прецизни и последователни резултати.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro е най-усъвършенстваният модел за разсъждение на Google, способен да разсъждава върху код, математика и STEM проблеми и да анализира големи набори от данни, кодови бази и документи с дълъг контекст.",
"gemini-3-flash-preview.description": "Gemini 3 Flash е най-интелигентният модел, създаден за скорост, съчетаващ авангардна интелигентност с отлично търсене и обоснованост.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro) е модел за генериране на изображения на Google, който също поддържа мултимодален диалог.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) е модел на Google за генериране на изображения, който също поддържа мултимодален чат.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) е модел за генериране на изображения на Google и също така поддържа мултимодален чат.",
"gemini-3-pro-preview.description": "Gemini 3 Pro е най-мощният агентен и „vibe-coding“ модел на Google, който предлага по-богати визуализации и по-дълбоко взаимодействие, базирано на съвременно логическо мислене.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) е най-бързият модел на Google за генериране на изображения с поддръжка на мислене, разговорно генериране и редактиране на изображения.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) предлага качество на изображения от ниво Pro с Flash скорост и поддръжка на мултимодален чат.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) е най-бързият модел на Google за генериране на изображения с поддръжка на мислене, разговорно генериране и редактиране на изображения.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview е най-икономичният мултимодален модел на Google, оптимизиран за задачи с голям обем, превод и обработка на данни.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview подобрява Gemini 3 Pro с усъвършенствани способности за разсъждение и добавя поддръжка за средно ниво на мислене.",
"gemini-flash-latest.description": "Най-новата версия на Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Нашият най-мощен и напреднал модел, създаден за комплексни корпоративни задачи с изключителна производителност.",
"jamba-mini.description": "Най-ефективният модел в своя клас, балансиращ скорост и качество с малък отпечатък.",
"jina-deepsearch-v1.description": "DeepSearch комбинира уеб търсене, четене и разсъждение за задълбочени изследвания. Представете си го като агент, който поема вашата изследователска задача, извършва широки търсения с множество итерации и едва след това предоставя отговор. Процесът включва непрекъснато проучване, разсъждение и многопластово решаване на проблеми, коренно различен от стандартните LLM, които отговарят въз основа на предварително обучение или традиционни RAG системи, разчитащи на еднократно повърхностно търсене.",
+ "k2p5.description": "Kimi K2.5 е най-гъвкавият модел на Kimi досега, с вградена мултимодална архитектура, която поддържа както визуални, така и текстови входове, режими на 'мислене' и 'немислене', както и както разговорни, така и агентски задачи.",
"kimi-k2-0711-preview.description": "kimi-k2 е MoE базов модел с мощни способности за програмиране и агентни задачи (1T общи параметри, 32B активни), надминаващ други водещи отворени модели в области като разсъждение, програмиране, математика и агентни бенчмаркове.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview предлага прозорец на контекста от 256k, по-силно агентно програмиране, по-добро качество на front-end код и подобрено разбиране на контекста.",
"kimi-k2-instruct.description": "Kimi K2 Instruct е официалният модел за разсъждение на Kimi с дълъг контекст за код, въпроси и отговори и други.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ е модел за аргументация от семейството на Qwen. В сравнение със стандартните модели, обучени с инструкции, предлага мисловни и логически способности, които значително подобряват ефективността при трудни задачи. QwQ-32B е среден по размер модел, който се конкурира с водещи модели като DeepSeek-R1 и o1-mini.",
"qwq_32b.description": "Среден по размер модел за аргументация от семейството на Qwen. В сравнение със стандартните модели, обучени с инструкции, мисловните и логическите способности на QwQ значително подобряват ефективността при трудни задачи.",
"r1-1776.description": "R1-1776 е дообучен вариант на DeepSeek R1, създаден да предоставя неконфронтирана, обективна и фактическа информация.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro от ByteDance поддържа текст към видео, изображение към видео (първа рамка, първа+последна рамка) и генериране на аудио, синхронизирано с визуализации.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite от BytePlus предлага генериране, обогатено с уеб търсене за реална информация, подобрена интерпретация на сложни подсказки и подобрена консистентност на препратките за професионално визуално създаване.",
"solar-mini-ja.description": "Solar Mini (Ja) разширява Solar Mini с фокус върху японски език, като запазва ефективността и силната производителност на английски и корейски.",
"solar-mini.description": "Solar Mini е компактен LLM, който превъзхожда GPT-3.5, с мощни многоезични възможности, поддържащ английски и корейски, и предлага ефективно решение с малък отпечатък.",
"solar-pro.description": "Solar Pro е интелигентен LLM от Upstage, фокусиран върху следване на инструкции на един GPU, с IFEval резултати над 80. Понастоящем поддържа английски; пълното издание е планирано за ноември 2024 с разширена езикова поддръжка и по-дълъг контекст.",
diff --git a/locales/bg-BG/onboarding.json b/locales/bg-BG/onboarding.json
index 2eb79cd4e7d..3206b3fc114 100644
--- a/locales/bg-BG/onboarding.json
+++ b/locales/bg-BG/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Въвеждане на агент",
+ "agent.completionSubtitle": "Вашият асистент е конфигуриран и готов за работа.",
+ "agent.completionTitle": "Всичко е готово!",
+ "agent.enterApp": "Влезте в приложението",
+ "agent.greeting.emojiLabel": "Емоджи",
+ "agent.greeting.nameLabel": "Име",
+ "agent.greeting.namePlaceholder": "напр. Луми, Атлас, Неко...",
+ "agent.greeting.prompt": "Дайте ми име, настроение и емоджи",
+ "agent.greeting.vibeLabel": "Настроение / Природа",
+ "agent.greeting.vibePlaceholder": "напр. Топло и приятелско, Остро и директно...",
+ "agent.history.current": "Текущо",
+ "agent.history.title": "История на темите",
+ "agent.modeSwitch.agent": "Разговорен",
+ "agent.modeSwitch.classic": "Класически",
+ "agent.modeSwitch.debug": "Експорт за отстраняване на грешки",
+ "agent.modeSwitch.label": "Изберете режим за въвеждане",
+ "agent.modeSwitch.reset": "Нулиране на процеса",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Пропуснете въвеждането",
+ "agent.stage.agentIdentity": "Идентичност на агента",
+ "agent.stage.painPoints": "Трудности",
+ "agent.stage.proSettings": "Разширени настройки",
+ "agent.stage.responseLanguage": "Език на отговорите",
+ "agent.stage.summary": "Резюме",
+ "agent.stage.userIdentity": "За вас",
+ "agent.stage.workContext": "Работен контекст",
+ "agent.stage.workStyle": "Стил на работа",
+ "agent.subtitle": "Завършете настройката в специален разговор за въвеждане.",
+ "agent.summaryHint": "Завършете тук, ако резюмето на настройката изглежда правилно.",
+ "agent.telemetryAllow": "Разрешавам телеметрия",
+ "agent.telemetryDecline": "Не, благодаря",
+ "agent.telemetryHint": "Можете също да отговорите със свои думи.",
+ "agent.title": "Разговорно въвеждане",
+ "agent.welcome": "...хм? Току-що се събудих — умът ми е празен. Кой сте вие? И — какво име да ми дадете? Имам нужда и от име.",
"back": "Назад",
"finish": "Да започнем",
"interests.area.business": "Бизнес и стратегия",
@@ -29,6 +63,7 @@
"next": "Напред",
"proSettings.connectors.title": "Свържете любимите си инструменти",
"proSettings.devMode.title": "Режим за разработчици",
+ "proSettings.model.fixed": "Моделът по подразбиране е предварително зададен на {{provider}}/{{model}} в тази среда.",
"proSettings.model.title": "Модел по подразбиране, използван от агента",
"proSettings.title": "Конфигурирайте разширени опции предварително",
"proSettings.title2": "Опитайте да свържете някои често използвани инструменти~",
diff --git a/locales/bg-BG/plugin.json b/locales/bg-BG/plugin.json
index f38c3364cd6..b7e37dbd8de 100644
--- a/locales/bg-BG/plugin.json
+++ b/locales/bg-BG/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Копиране на документ",
"builtins.lobe-agent-documents.apiName.createDocument": "Създаване на документ",
"builtins.lobe-agent-documents.apiName.editDocument": "Редактиране на документ",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Списък с документи",
"builtins.lobe-agent-documents.apiName.readDocument": "Четене на документ",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Прочетете документа по име на файл",
"builtins.lobe-agent-documents.apiName.removeDocument": "Премахване на документ",
"builtins.lobe-agent-documents.apiName.renameDocument": "Преименуване на документ",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Актуализиране на правило за зареждане",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Добавете или актуализирайте документ по име на файл",
"builtins.lobe-agent-documents.title": "Документи на агент",
"builtins.lobe-agent-management.apiName.callAgent": "Обаждане на агент",
"builtins.lobe-agent-management.apiName.createAgent": "Създаване на агент",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Облачна пясъчник среда",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Създай агенти на групи",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Създай агент",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Създайте група",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Извличане на информация за член",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Извличане на налични модели",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Инсталиране на умение",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Умения",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Вземи контекста на темата",
"builtins.lobe-topic-reference.title": "Препратка към тема",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Задайте въпрос на потребителя",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Отмяна на отговора на потребителя",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Получаване на състоянието на взаимодействие",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Пропускане на отговора на потребителя",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Изпращане на отговора на потребителя",
+ "builtins.lobe-user-interaction.title": "Взаимодействие с потребителя",
"builtins.lobe-user-memory.apiName.addContextMemory": "Добавяне на контекстна памет",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Добавяне на памет за опит",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Добавяне на памет за идентичност",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Търсене на страници",
"builtins.lobe-web-browsing.inspector.noResults": "Няма резултати",
"builtins.lobe-web-browsing.title": "Уеб търсене",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Завършване на въвеждането",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Прочетете състоянието на въвеждането",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Прочетете документа",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Запазете въпроса на потребителя",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Актуализирайте документа",
+ "builtins.lobe-web-onboarding.title": "Въвеждане на потребител",
"confirm": "Потвърди",
"debug.arguments": "Аргументи",
"debug.error": "Дневник на грешки",
diff --git a/locales/bg-BG/providers.json b/locales/bg-BG/providers.json
index c5468bbce40..70312535e4e 100644
--- a/locales/bg-BG/providers.json
+++ b/locales/bg-BG/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Основана през 2020 г., Jina AI е водеща компания в областта на търсещия AI. Технологичният ѝ стек включва векторни модели, преоценители и малки езикови модели за създаване на надеждни генеративни и мултимодални търсещи приложения.",
"kimicodingplan.description": "Kimi Code от Moonshot AI предоставя достъп до модели Kimi, включително K2.5, за задачи, свързани с програмиране.",
"lmstudio.description": "LM Studio е десктоп приложение за разработка и експериментиране с LLM на вашия компютър.",
- "lobehub.description": "LobeHub Cloud използва официални API за достъп до AI модели и измерва използването чрез кредити, свързани с токените на модела.",
"longcat.description": "LongCat е серия от големи модели за генеративен AI, независимо разработени от Meituan. Той е създаден да подобри вътрешната продуктивност на предприятието и да позволи иновативни приложения чрез ефективна изчислителна архитектура и силни мултимодални възможности.",
"minimax.description": "Основана през 2021 г., MiniMax създава универсален AI с мултимодални базови модели, включително текстови модели с трилиони параметри, речеви и визуални модели, както и приложения като Hailuo AI.",
"minimaxcodingplan.description": "MiniMax Token Plan предоставя достъп до модели MiniMax, включително M2.7, за задачи, свързани с програмиране, чрез абонамент с фиксирана такса.",
diff --git a/locales/bg-BG/ui.json b/locales/bg-BG/ui.json
index 2b76e4551e7..4e3d6a9ab3a 100644
--- a/locales/bg-BG/ui.json
+++ b/locales/bg-BG/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Можете да качвате само файлове с изображения!",
"emojiPicker.upload": "Качване",
"emojiPicker.uploadBtn": "Изрежи и качи",
+ "form.other": "Или въведете директно",
+ "form.otherBack": "Обратно към опциите",
"form.reset": "Нулирай",
+ "form.skip": "Пропусни",
"form.submit": "Изпрати",
"form.unsavedChanges": "Незаписани промени",
"form.unsavedWarning": "Имате незаписани промени. Сигурни ли сте, че искате да напуснете?",
diff --git a/locales/de-DE/agent.json b/locales/de-DE/agent.json
index f431d9d595a..b8bf2052b3d 100644
--- a/locales/de-DE/agent.json
+++ b/locales/de-DE/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Bitte kopieren Sie diese URL und fügen Sie sie in das Feld <bold>{{fieldName}}</bold> im {{name}} Entwicklerportal ein.",
"channel.exportConfig": "Konfiguration exportieren",
"channel.feishu.description": "Verbinden Sie diesen Assistenten mit Feishu für private und Gruppenchats.",
+ "channel.historyLimit": "Begrenzung der Nachrichtenhistorie",
+ "channel.historyLimitHint": "Standardanzahl von Nachrichten, die beim Lesen der Kanäle-Historie abgerufen werden",
"channel.importConfig": "Konfiguration importieren",
"channel.importFailed": "Fehler beim Import der Konfiguration",
"channel.importInvalidFormat": "Ungültiges Format der Konfigurationsdatei",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhook-Geheimtoken",
"channel.secretTokenHint": "Optional. Wird verwendet, um Webhook-Anfragen von Telegram zu überprüfen.",
"channel.secretTokenPlaceholder": "Optionales Geheimnis zur Webhook-Verifizierung",
+ "channel.serverId": "Standard-Server / Gilden-ID",
+ "channel.serverIdHint": "Ihre Standard-Server- oder Gilden-ID auf dieser Plattform. Die KI verwendet sie, um Kanäle aufzulisten, ohne nachzufragen.",
"channel.settings": "Erweiterte Einstellungen",
"channel.settingsResetConfirm": "Sind Sie sicher, dass Sie die erweiterten Einstellungen auf die Standardeinstellungen zurücksetzen möchten?",
"channel.settingsResetDefault": "Auf Standard zurücksetzen",
@@ -93,6 +97,8 @@
"channel.testFailed": "Verbindungstest fehlgeschlagen",
"channel.testSuccess": "Verbindungstest erfolgreich",
"channel.updateFailed": "Status konnte nicht aktualisiert werden",
+ "channel.userId": "Ihre Benutzer-ID auf der Plattform",
+ "channel.userIdHint": "Ihre Benutzer-ID auf dieser Plattform. Die KI kann sie verwenden, um Ihnen Direktnachrichten zu senden.",
"channel.validationError": "Bitte füllen Sie Anwendungs-ID und Token aus",
"channel.verificationToken": "Verifizierungstoken",
"channel.verificationTokenHint": "Optional. Wird verwendet, um die Quelle von Webhook-Ereignissen zu überprüfen.",
diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.json
index 6a4c961e1e7..17dc4483802 100644
--- a/locales/de-DE/chat.json
+++ b/locales/de-DE/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Löschen und neu generieren",
"messageAction.deleteDisabledByThreads": "Diese Nachricht hat ein Unterthema und kann nicht gelöscht werden",
"messageAction.expand": "Nachricht ausklappen",
+ "messageAction.interrupted": "Unterbrochen",
+ "messageAction.interruptedHint": "Was soll ich stattdessen tun?",
"messageAction.reaction": "Reaktion hinzufügen",
"messageAction.regenerate": "Neu generieren",
"messages.dm.sentTo": "Nur sichtbar für {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Alle Tool-Ausführungen automatisch genehmigen",
"tool.intervention.mode.manual": "Manuell",
"tool.intervention.mode.manualDesc": "Manuelle Genehmigung für jeden Aufruf erforderlich",
+ "tool.intervention.pending": "Ausstehend",
"tool.intervention.reject": "Ablehnen",
"tool.intervention.rejectAndContinue": "Ablehnen und erneut versuchen",
"tool.intervention.rejectOnly": "Ablehnen",
"tool.intervention.rejectReasonPlaceholder": "Ein Grund hilft dem Agenten, deine Grenzen zu verstehen und sich zu verbessern",
"tool.intervention.rejectTitle": "Diesen Skill-Aufruf ablehnen",
"tool.intervention.rejectedWithReason": "Dieser Skill-Aufruf wurde abgelehnt: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Ansehen",
"tool.intervention.toolAbort": "Du hast diesen Skill-Aufruf abgebrochen",
"tool.intervention.toolRejected": "Dieser Skill-Aufruf wurde abgelehnt",
"toolAuth.authorize": "Autorisieren",
diff --git a/locales/de-DE/models.json b/locales/de-DE/models.json
index 5b93542a3dc..2657c18b90e 100644
--- a/locales/de-DE/models.json
+++ b/locales/de-DE/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Ein neues Inhouse-Argumentationsmodell mit 80K Chain-of-Thought und 1M Eingabe, vergleichbar mit führenden globalen Modellen.",
"MiniMax-M2-Stable.description": "Entwickelt für effizientes Coden und Agenten-Workflows mit höherer Parallelität für den kommerziellen Einsatz.",
"MiniMax-M2.1-Lightning.description": "Leistungsstarke mehrsprachige Programmierfunktionen, umfassend verbesserte Programmiererfahrung. Schneller und effizienter.",
- "MiniMax-M2.1-highspeed.description": "Leistungsstarke mehrsprachige Programmierfähigkeiten mit schnellerer und effizienterer Inferenz.",
"MiniMax-M2.1.description": "MiniMax-M2.1 ist das Flaggschiff unter den Open-Source-Großmodellen von MiniMax und konzentriert sich auf die Lösung komplexer Aufgaben aus der realen Welt. Seine zentralen Stärken liegen in der mehrsprachigen Programmierfähigkeit und der Fähigkeit, als Agent komplexe Aufgaben zu bewältigen.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Gleiche Leistung, schneller und agiler (ca. 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Gleiche Leistung wie M2.5 mit schnellerer Inferenz.",
@@ -307,18 +306,18 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku ist das schnellste und kompakteste Modell von Anthropic, entwickelt für nahezu sofortige Antworten mit schneller, präziser Leistung.",
"claude-3-opus-20240229.description": "Claude 3 Opus ist das leistungsstärkste Modell von Anthropic für hochkomplexe Aufgaben. Es überzeugt in Leistung, Intelligenz, Sprachfluss und Verständnis.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet bietet eine ausgewogene Kombination aus Intelligenz und Geschwindigkeit für Unternehmensanwendungen. Es liefert hohe Nutzbarkeit bei geringeren Kosten und zuverlässiger Skalierbarkeit.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 ist das schnellste und intelligenteste Haiku-Modell von Anthropic, mit blitzschneller Geschwindigkeit und erweitertem Denken.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 ist das schnellste und intelligenteste Haiku-Modell von Anthropic, mit blitzschneller Geschwindigkeit und erweitertem Denkvermögen.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 ist das schnellste und intelligenteste Haiku-Modell von Anthropic, mit blitzschneller Geschwindigkeit und erweiterten Denkfähigkeiten.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking ist eine erweiterte Variante, die ihren Denkprozess offenlegen kann.",
"claude-opus-4-1-20250805.description": "Claude Opus 4.1 ist das neueste und leistungsfähigste Modell von Anthropic für hochkomplexe Aufgaben, das in Leistung, Intelligenz, Sprachgewandtheit und Verständnis herausragt.",
- "claude-opus-4-20250514.description": "Claude Opus 4 ist das leistungsstärkste Modell von Anthropic für hochkomplexe Aufgaben, das in Leistung, Intelligenz, Sprachgewandtheit und Verständnis herausragt.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 ist das leistungsstärkste Modell von Anthropic für hochkomplexe Aufgaben, das in Leistung, Intelligenz, Sprachgewandtheit und Verständnis brilliert.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 ist das Flaggschiffmodell von Anthropic. Es kombiniert herausragende Intelligenz mit skalierbarer Leistung und ist ideal für komplexe Aufgaben, die höchste Qualität bei Antworten und logischem Denken erfordern.",
- "claude-opus-4-6.description": "Claude Opus 4.6 ist das intelligenteste Modell von Anthropic für die Entwicklung von Agenten und Programmierung.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 ist das intelligenteste Modell von Anthropic für die Entwicklung von Agenten und das Programmieren.",
"claude-opus-4.5.description": "Claude Opus 4.5 ist das Flaggschiff-Modell von Anthropic, das erstklassige Intelligenz mit skalierbarer Leistung für komplexe, hochwertige Denkaufgaben kombiniert.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 ist das intelligenteste Modell von Anthropic für die Entwicklung von Agenten und Programmierung.",
"claude-opus-4.6.description": "Claude Opus 4.6 ist das intelligenteste Modell von Anthropic für die Entwicklung von Agenten und Programmierung.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking kann nahezu sofortige Antworten oder schrittweises Denken mit sichtbarem Prozess erzeugen.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 ist das bisher intelligenteste Modell von Anthropic, das nahezu sofortige Antworten oder erweitertes schrittweises Denken mit fein abgestimmter Kontrolle für API-Nutzer bietet.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 kann nahezu sofortige Antworten oder ausführliches, schrittweises Denken mit sichtbarem Prozess liefern.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 ist das bisher intelligenteste Modell von Anthropic.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 ist die beste Kombination aus Geschwindigkeit und Intelligenz von Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 ist das bisher intelligenteste Modell von Anthropic.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 ist ein Next-Gen-Denkmodell mit stärkerem komplexem Denken und Chain-of-Thought für tiefgreifende Analyseaufgaben.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 ist ein Next-Gen-Modell für logisches Denken mit stärkeren Fähigkeiten für komplexes Denken und Kettenlogik.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 ist ein MoE Vision-Language-Modell auf Basis von DeepSeekMoE-27B mit sparsamer Aktivierung. Es erreicht starke Leistung mit nur 4,5B aktiven Parametern und überzeugt bei visuellen QA-Aufgaben, OCR, Dokument-/Tabellen-/Diagrammverständnis und visueller Verankerung.",
- "deepseek-chat.description": "DeepSeek V3.2 balanciert logisches Denken und Ausgabelänge für tägliche QA- und Agentenaufgaben. Öffentliche Benchmarks erreichen GPT-5-Niveau, und es ist das erste Modell, das Denken in die Werkzeugnutzung integriert und führende Open-Source-Agentenbewertungen erzielt.",
+ "deepseek-chat.description": "Ein neues Open-Source-Modell, das allgemeine und Programmierfähigkeiten kombiniert. Es bewahrt den allgemeinen Dialog des Chat-Modells und die starken Programmierfähigkeiten des Coder-Modells, mit besserer Präferenzabstimmung. DeepSeek-V2.5 verbessert auch das Schreiben und das Befolgen von Anweisungen.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B ist ein Code-Sprachmodell, trainiert auf 2 B Tokens (87 % Code, 13 % chinesisch/englischer Text). Es bietet ein 16K-Kontextfenster und Fill-in-the-Middle-Aufgaben für projektweite Codevervollständigung und Snippet-Ergänzung.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 ist ein Open-Source-MoE-Code-Modell mit starker Leistung bei Programmieraufgaben, vergleichbar mit GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 ist ein Open-Source-MoE-Code-Modell mit starker Leistung bei Programmieraufgaben, vergleichbar mit GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 Schnellversion mit Echtzeit-Websuche – kombiniert 671B-Fähigkeiten mit schneller Reaktion.",
"deepseek-r1-online.description": "DeepSeek R1 Vollversion mit 671B Parametern und Echtzeit-Websuche – bietet stärkeres Verständnis und bessere Generierung.",
"deepseek-r1.description": "DeepSeek-R1 nutzt Cold-Start-Daten vor dem RL und erreicht vergleichbare Leistungen wie OpenAI-o1 bei Mathematik, Programmierung und logischem Denken.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking ist ein tiefes Argumentationsmodell, das vor der Ausgabe eine Gedankenkette generiert, um höhere Genauigkeit zu erzielen, mit Spitzenwettbewerbsergebnissen und Argumentationsfähigkeiten vergleichbar mit Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "Der Denkmodus von DeepSeek V3.2 gibt eine Gedankenkette vor der endgültigen Antwort aus, um die Genauigkeit zu verbessern.",
"deepseek-v2.description": "DeepSeek V2 ist ein effizientes MoE-Modell für kostengünstige Verarbeitung.",
"deepseek-v2:236b.description": "DeepSeek V2 236B ist das codefokussierte Modell von DeepSeek mit starker Codegenerierung.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 ist ein MoE-Modell mit 671B Parametern und herausragenden Stärken in Programmierung, technischer Kompetenz, Kontextverständnis und Langtextverarbeitung.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K ist ein schnelles Denkmodell mit 32K Kontext für komplexe Schlussfolgerungen und mehrstufige Gespräche.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview ist ein Vorschau-Modell mit Denkfähigkeit zur Bewertung und zum Testen.",
"ernie-x1.1.description": "ERNIE X1.1 ist ein Vorschau-Denkmodell für Evaluierung und Tests.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, entwickelt vom ByteDance Seed-Team, unterstützt die Bearbeitung und Komposition mehrerer Bilder. Es bietet verbesserte Konsistenz des Motivs, präzise Befolgung von Anweisungen, räumliches Logikverständnis, ästhetischen Ausdruck, Posterlayout und Logodesign mit hochpräziser Text-Bild-Wiedergabe.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, entwickelt von ByteDance Seed, unterstützt Text- und Bildeingaben für hochkontrollierbare, qualitativ hochwertige Bildgenerierung aus Eingabeaufforderungen.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 ist ein Bildgenerierungsmodell von ByteDance Seed, das Text- und Bildeingaben unterstützt und hochkontrollierbare, qualitativ hochwertige Bilder generiert. Es erstellt Bilder aus Texteingaben.",
"fal-ai/flux-kontext/dev.description": "FLUX.1-Modell mit Fokus auf Bildbearbeitung, unterstützt Text- und Bildeingaben.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] akzeptiert Texte und Referenzbilder als Eingabe und ermöglicht gezielte lokale Bearbeitungen sowie komplexe globale Szenentransformationen.",
"fal-ai/flux/krea.description": "Flux Krea [dev] ist ein Bildgenerierungsmodell mit ästhetischer Ausrichtung auf realistischere, natürliche Bilder.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Ein leistungsstarkes natives multimodales Bildgenerierungsmodell.",
"fal-ai/imagen4/preview.description": "Hochwertiges Bildgenerierungsmodell von Google.",
"fal-ai/nano-banana.description": "Nano Banana ist das neueste, schnellste und effizienteste native multimodale Modell von Google. Es ermöglicht Bildgenerierung und -bearbeitung im Dialog.",
- "fal-ai/qwen-image-edit.description": "Ein professionelles Bildbearbeitungsmodell des Qwen-Teams, das semantische und Erscheinungsbearbeitungen, präzise chinesische/englische Textbearbeitung, Stiltransfer, Rotation und mehr unterstützt.",
- "fal-ai/qwen-image.description": "Ein leistungsstarkes Bildgenerierungsmodell des Qwen-Teams mit starker chinesischer Textrendering-Fähigkeit und vielfältigen visuellen Stilen.",
+ "fal-ai/qwen-image-edit.description": "Ein professionelles Bildbearbeitungsmodell des Qwen-Teams, das semantische und optische Bearbeitungen unterstützt, präzise chinesischen und englischen Text bearbeitet und hochwertige Bearbeitungen wie Stilübertragungen und Objektrotation ermöglicht.",
+ "fal-ai/qwen-image.description": "Ein leistungsstarkes Bildgenerierungsmodell des Qwen-Teams mit beeindruckender chinesischer Textrendering-Fähigkeit und vielfältigen visuellen Stilen.",
"flux-1-schnell.description": "Ein Text-zu-Bild-Modell mit 12 Milliarden Parametern von Black Forest Labs, das latente adversariale Diffusionsdistillation nutzt, um hochwertige Bilder in 1–4 Schritten zu erzeugen. Es konkurriert mit geschlossenen Alternativen und ist unter Apache-2.0 für persönliche, Forschungs- und kommerzielle Nutzung verfügbar.",
"flux-dev.description": "FLUX.1 [dev] ist ein Modell mit offenen Gewichten für nicht-kommerzielle Nutzung. Es bietet nahezu professionelle Bildqualität und Befolgung von Anweisungen bei effizienterer Nutzung von Ressourcen im Vergleich zu Standardmodellen gleicher Größe.",
"flux-kontext-max.description": "Modernste kontextuelle Bildgenerierung und -bearbeitung, kombiniert Text und Bilder für präzise, kohärente Ergebnisse.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) ist Googles Bildgenerierungsmodell und unterstützt auch multimodale Chats.",
"gemini-3-pro-preview.description": "Gemini 3 Pro ist Googles leistungsstärkstes Agenten- und Vibe-Coding-Modell. Es bietet reichhaltigere visuelle Inhalte und tiefere Interaktionen auf Basis modernster logischer Fähigkeiten.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) ist Googles schnellstes natives Bildgenerierungsmodell mit Denkunterstützung, konversationaler Bildgenerierung und -bearbeitung.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) liefert Pro-Level-Bildqualität mit Flash-Geschwindigkeit und unterstützt multimodale Chats.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) ist Googles schnellstes natives Bildgenerierungsmodell mit Denkunterstützung, konversationaler Bildgenerierung und -bearbeitung.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview ist Googles kosteneffizientestes multimodales Modell, optimiert für hochvolumige agentische Aufgaben, Übersetzung und Datenverarbeitung.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview verbessert Gemini 3 Pro mit erweiterten Fähigkeiten für logisches Denken und unterstützt mittleres Denklevel.",
"gemini-flash-latest.description": "Neueste Version von Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Unser leistungsstärkstes und fortschrittlichstes Modell, entwickelt für komplexe Unternehmensaufgaben mit herausragender Leistung.",
"jamba-mini.description": "Das effizienteste Modell seiner Klasse – vereint Geschwindigkeit und Qualität bei geringem Ressourcenverbrauch.",
"jina-deepsearch-v1.description": "DeepSearch kombiniert Websuche, Leseverständnis und logisches Denken für gründliche Recherchen. Stellen Sie sich einen Agenten vor, der Ihre Rechercheaufgabe übernimmt, breit gefächerte Suchen in mehreren Iterationen durchführt und erst dann eine Antwort liefert. Der Prozess umfasst kontinuierliche Recherche, Schlussfolgerungen und Problemlösungen aus verschiedenen Blickwinkeln – grundlegend anders als herkömmliche LLMs, die auf vortrainierten Daten basieren, oder klassische RAG-Systeme mit einmaliger Oberflächensuche.",
+ "k2p5.description": "Kimi K2.5 ist Kimi's vielseitigstes Modell bis heute, mit einer nativen multimodalen Architektur, die sowohl visuelle als auch textuelle Eingaben unterstützt, 'denkenden' und 'nicht-denkenden' Modi sowie sowohl konversationelle als auch agentenbasierte Aufgaben.",
"kimi-k2-0711-preview.description": "kimi-k2 ist ein MoE-Grundlagenmodell mit starken Fähigkeiten in den Bereichen Programmierung und Agentenfunktionen (1T Gesamtparameter, 32B aktiv) und übertrifft andere gängige Open-Source-Modelle in den Bereichen logisches Denken, Programmierung, Mathematik und Agenten-Benchmarks.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview bietet ein 256k-Kontextfenster, verbesserte agentenbasierte Programmierung, höhere Codequalität im Frontend und ein besseres Kontextverständnis.",
"kimi-k2-instruct.description": "Kimi K2 Instruct ist das offizielle Modell von Kimi für logisches Denken mit erweitertem Kontext für Code, Fragenbeantwortung und mehr.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ ist ein Schlussfolgerungsmodell aus der Qwen-Familie. Im Vergleich zu standardmäßig instruktionstunierten Modellen bietet es überlegene Denk- und Schlussfolgerungsfähigkeiten, die die Leistung bei nachgelagerten Aufgaben deutlich verbessern – insbesondere bei schwierigen Problemen. QwQ-32B ist ein mittelgroßes Modell, das mit führenden Schlussfolgerungsmodellen wie DeepSeek-R1 und o1-mini mithalten kann.",
"qwq_32b.description": "Mittelgroßes Schlussfolgerungsmodell aus der Qwen-Familie. Im Vergleich zu standardmäßig instruktionstunierten Modellen steigern QwQs Denk- und Schlussfolgerungsfähigkeiten die Leistung bei nachgelagerten Aufgaben deutlich – insbesondere bei schwierigen Problemen.",
"r1-1776.description": "R1-1776 ist eine nachtrainierte Variante von DeepSeek R1, die darauf ausgelegt ist, unzensierte, objektive und faktenbasierte Informationen bereitzustellen.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro von ByteDance unterstützt Text-zu-Video, Bild-zu-Video (erstes Bild, erstes+letztes Bild) und Audiogenerierung synchronisiert mit visuellen Elementen.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite von BytePlus bietet webabfrage-unterstützte Generierung für Echtzeitinformationen, verbesserte Interpretation komplexer Eingabeaufforderungen und verbesserte Konsistenz von Referenzen für professionelle visuelle Kreationen.",
"solar-mini-ja.description": "Solar Mini (Ja) erweitert Solar Mini mit einem Fokus auf Japanisch und behält dabei eine effiziente und starke Leistung in Englisch und Koreanisch bei.",
"solar-mini.description": "Solar Mini ist ein kompaktes LLM, das GPT-3.5 übertrifft. Es bietet starke mehrsprachige Fähigkeiten in Englisch und Koreanisch und ist eine effiziente Lösung mit kleinem Ressourcenbedarf.",
"solar-pro.description": "Solar Pro ist ein hochintelligentes LLM von Upstage, das auf Befolgen von Anweisungen auf einer einzelnen GPU ausgelegt ist und IFEval-Werte über 80 erreicht. Derzeit wird Englisch unterstützt; die vollständige Veröffentlichung mit erweitertem Sprachsupport und längeren Kontexten war für November 2024 geplant.",
diff --git a/locales/de-DE/onboarding.json b/locales/de-DE/onboarding.json
index 22bcb4b8fbd..77ee12e1784 100644
--- a/locales/de-DE/onboarding.json
+++ b/locales/de-DE/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Agent-Einführung",
+ "agent.completionSubtitle": "Ihr Assistent ist konfiguriert und einsatzbereit.",
+ "agent.completionTitle": "Alles erledigt!",
+ "agent.enterApp": "App betreten",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Name",
+ "agent.greeting.namePlaceholder": "z. B. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Geben Sie mir einen Namen, eine Stimmung und ein Emoji",
+ "agent.greeting.vibeLabel": "Stimmung / Natur",
+ "agent.greeting.vibePlaceholder": "z. B. Warm & freundlich, Scharf & direkt...",
+ "agent.history.current": "Aktuell",
+ "agent.history.title": "Verlaufsthemen",
+ "agent.modeSwitch.agent": "Konversation",
+ "agent.modeSwitch.classic": "Klassisch",
+ "agent.modeSwitch.debug": "Debug-Export",
+ "agent.modeSwitch.label": "Wählen Sie Ihren Einführungsmodus",
+ "agent.modeSwitch.reset": "Flow zurücksetzen",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Einführung überspringen",
+ "agent.stage.agentIdentity": "Agentenidentität",
+ "agent.stage.painPoints": "Schmerzpunkte",
+ "agent.stage.proSettings": "Erweiterte Einstellungen",
+ "agent.stage.responseLanguage": "Antwortsprache",
+ "agent.stage.summary": "Zusammenfassung",
+ "agent.stage.userIdentity": "Über Sie",
+ "agent.stage.workContext": "Arbeitskontext",
+ "agent.stage.workStyle": "Arbeitsstil",
+ "agent.subtitle": "Abschluss der Einrichtung in einem speziellen Einführungsgespräch.",
+ "agent.summaryHint": "Beenden Sie hier, wenn die Einrichtungszusammenfassung korrekt aussieht.",
+ "agent.telemetryAllow": "Telemetrie erlauben",
+ "agent.telemetryDecline": "Nein, danke",
+ "agent.telemetryHint": "Sie können auch in Ihren eigenen Worten antworten.",
+ "agent.title": "Konversations-Einführung",
+ "agent.welcome": "...hm? Ich bin gerade aufgewacht – mein Kopf ist leer. Wer sind Sie? Und – wie soll ich heißen? Ich brauche auch einen Namen.",
"back": "Zurück",
"finish": "Los geht’s",
"interests.area.business": "Geschäft & Strategie",
@@ -29,6 +63,7 @@
"next": "Weiter",
"proSettings.connectors.title": "Verbinde deine Lieblingstools",
"proSettings.devMode.title": "Entwicklermodus",
+ "proSettings.model.fixed": "Das Standardmodell ist in dieser Umgebung auf {{provider}}/{{model}} voreingestellt.",
"proSettings.model.title": "Standardmodell des Agenten",
"proSettings.title": "Erweiterte Optionen im Voraus konfigurieren",
"proSettings.title2": "Probiere aus, einige gängige Tools zu verbinden~",
diff --git a/locales/de-DE/plugin.json b/locales/de-DE/plugin.json
index 64c42c56ded..b422762b357 100644
--- a/locales/de-DE/plugin.json
+++ b/locales/de-DE/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Dokument kopieren",
"builtins.lobe-agent-documents.apiName.createDocument": "Dokument erstellen",
"builtins.lobe-agent-documents.apiName.editDocument": "Dokument bearbeiten",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Dokumente auflisten",
"builtins.lobe-agent-documents.apiName.readDocument": "Dokument lesen",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Dokument nach Dateiname lesen",
"builtins.lobe-agent-documents.apiName.removeDocument": "Dokument entfernen",
"builtins.lobe-agent-documents.apiName.renameDocument": "Dokument umbenennen",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Laderegel aktualisieren",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Dokument nach Dateiname einfügen oder aktualisieren",
"builtins.lobe-agent-documents.title": "Agentendokumente",
"builtins.lobe-agent-management.apiName.callAgent": "Agent anrufen",
"builtins.lobe-agent-management.apiName.createAgent": "Agent erstellen",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Cloud-Sandbox",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Agenten stapelweise erstellen",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Agent erstellen",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Gruppe erstellen",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Mitgliederinformationen abrufen",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Verfügbare Modelle abrufen",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Skill installieren",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Fähigkeiten",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Themenkontext abrufen",
"builtins.lobe-topic-reference.title": "Themenreferenz",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Benutzerfrage stellen",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Benutzerantwort abbrechen",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Interaktionsstatus abrufen",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Benutzerantwort überspringen",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Benutzerantwort einreichen",
+ "builtins.lobe-user-interaction.title": "Benutzerinteraktion",
"builtins.lobe-user-memory.apiName.addContextMemory": "Kontextgedächtnis hinzufügen",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Erfahrungsgedächtnis hinzufügen",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Identitätsgedächtnis hinzufügen",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Seiten durchsuchen",
"builtins.lobe-web-browsing.inspector.noResults": "Keine Ergebnisse",
"builtins.lobe-web-browsing.title": "Websuche",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Onboarding abschließen",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Onboarding-Status abrufen",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Dokument lesen",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Benutzerfrage speichern",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Dokument aktualisieren",
+ "builtins.lobe-web-onboarding.title": "Benutzer-Onboarding",
"confirm": "Bestätigen",
"debug.arguments": "Argumente",
"debug.error": "Fehlerprotokoll",
diff --git a/locales/de-DE/providers.json b/locales/de-DE/providers.json
index f149ab8acd3..faf9d794f6a 100644
--- a/locales/de-DE/providers.json
+++ b/locales/de-DE/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Jina AI wurde 2020 gegründet und ist ein führendes Unternehmen im Bereich Such-KI. Der Such-Stack umfasst Vektormodelle, Reranker und kleine Sprachmodelle für zuverlässige, hochwertige generative und multimodale Suchanwendungen.",
"kimicodingplan.description": "Kimi Code von Moonshot AI bietet Zugriff auf Kimi-Modelle, darunter K2.5, für Coding-Aufgaben.",
"lmstudio.description": "LM Studio ist eine Desktop-App zur Entwicklung und zum Experimentieren mit LLMs auf dem eigenen Computer.",
- "lobehub.description": "LobeHub Cloud verwendet offizielle APIs, um auf KI-Modelle zuzugreifen, und misst die Nutzung mit Credits, die an Modell-Tokens gebunden sind.",
"longcat.description": "LongCat ist eine Reihe von generativen KI-Großmodellen, die unabhängig von Meituan entwickelt wurden. Sie sind darauf ausgelegt, die Produktivität innerhalb des Unternehmens zu steigern und innovative Anwendungen durch eine effiziente Rechenarchitektur und starke multimodale Fähigkeiten zu ermöglichen.",
"minimax.description": "MiniMax wurde 2021 gegründet und entwickelt allgemeine KI mit multimodalen Foundation-Modellen, darunter Textmodelle mit Billionen Parametern, Sprach- und Bildmodelle sowie Apps wie Hailuo AI.",
"minimaxcodingplan.description": "Der MiniMax Token Plan bietet Zugriff auf MiniMax-Modelle, darunter M2.7, für Coding-Aufgaben im Rahmen eines Festpreis-Abonnements.",
diff --git a/locales/de-DE/ui.json b/locales/de-DE/ui.json
index fc003d9f1a5..2171e64eb4e 100644
--- a/locales/de-DE/ui.json
+++ b/locales/de-DE/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Sie können nur Bilddateien hochladen!",
"emojiPicker.upload": "Hochladen",
"emojiPicker.uploadBtn": "Zuschneiden und hochladen",
+ "form.other": "Oder direkt eingeben",
+ "form.otherBack": "Zurück zu den Optionen",
"form.reset": "Zurücksetzen",
+ "form.skip": "Überspringen",
"form.submit": "Absenden",
"form.unsavedChanges": "Nicht gespeicherte Änderungen",
"form.unsavedWarning": "Sie haben nicht gespeicherte Änderungen. Möchten Sie die Seite wirklich verlassen?",
diff --git a/locales/en-US/agent.json b/locales/en-US/agent.json
index be3ff41ae0a..2b418966f95 100644
--- a/locales/en-US/agent.json
+++ b/locales/en-US/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Please copy this URL and paste it into the <bold>{{fieldName}}</bold> field in the {{name}} Developer Portal.",
"channel.exportConfig": "Export Configuration",
"channel.feishu.description": "Connect this assistant to Feishu for private and group chats.",
+ "channel.historyLimit": "History Message Limit",
+ "channel.historyLimitHint": "Default number of messages to fetch when reading channel history",
"channel.importConfig": "Import Configuration",
"channel.importFailed": "Failed to import configuration",
"channel.importInvalidFormat": "Invalid configuration file format",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhook Secret Token",
"channel.secretTokenHint": "Optional. Used to verify webhook requests from Telegram.",
"channel.secretTokenPlaceholder": "Optional secret for webhook verification",
+ "channel.serverId": "Default Server / Guild ID",
+ "channel.serverIdHint": "Your default server or guild ID on this platform. The AI uses it to list channels without asking.",
"channel.settings": "Advanced Settings",
"channel.settingsResetConfirm": "Are you sure you want to reset advanced settings to default?",
"channel.settingsResetDefault": "Reset to Default",
@@ -93,6 +97,8 @@
"channel.testFailed": "Connection test failed",
"channel.testSuccess": "Connection test passed",
"channel.updateFailed": "Failed to update status",
+ "channel.userId": "Your Platform User ID",
+ "channel.userIdHint": "Your user ID on this platform. The AI can use it to send you direct messages.",
"channel.validationError": "Please fill in Application ID and Token",
"channel.verificationToken": "Verification Token",
"channel.verificationTokenHint": "Optional. Used to verify webhook event source.",
diff --git a/locales/en-US/models.json b/locales/en-US/models.json
index c487128c049..099f386f47b 100644
--- a/locales/en-US/models.json
+++ b/locales/en-US/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "A new in-house reasoning model with 80K chain-of-thought and 1M input, delivering performance comparable to top global models.",
"MiniMax-M2-Stable.description": "Built for efficient coding and agent workflows, with higher concurrency for commercial use.",
"MiniMax-M2.1-Lightning.description": "Powerful multilingual programming capabilities, comprehensively upgraded programming experience. Faster and more efficient.",
- "MiniMax-M2.1-highspeed.description": "Powerful multilingual programming capabilities with faster and more efficient inference.",
"MiniMax-M2.1.description": "MiniMax-M2.1 is a flagship open-source large model from MiniMax, focusing on solving complex real-world tasks. Its core strengths are multi-language programming capabilities and the ability to solve complex tasks as an Agent.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Same performance, faster and more agile (approx. 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Same performance as M2.5 with faster inference.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku is Anthropic’s fastest and most compact model, designed for near-instant responses with fast, accurate performance.",
"claude-3-opus-20240229.description": "Claude 3 Opus is Anthropic’s most powerful model for highly complex tasks, excelling in performance, intelligence, fluency, and comprehension.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet balances intelligence and speed for enterprise workloads, delivering high utility at lower cost and reliable large-scale deployment.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 is Anthropic's fastest and most intelligent Haiku model, with lightning speed and extended thinking.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 is Anthropic’s fastest and smartest Haiku model, with lightning speed and extended reasoning.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 is Anthropic’s fastest and smartest Haiku model, with lightning speed and extended reasoning.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking is an advanced variant that can reveal its reasoning process.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 is Anthropic's latest and most capable model for highly complex tasks, excelling in performance, intelligence, fluency, and understanding.",
- "claude-opus-4-20250514.description": "Claude Opus 4 is Anthropic's most powerful model for highly complex tasks, excelling in performance, intelligence, fluency, and understanding.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 is Anthropic’s latest and most capable model for highly complex tasks, excelling in performance, intelligence, fluency, and understanding.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 is Anthropic’s most powerful model for highly complex tasks, excelling in performance, intelligence, fluency, and comprehension.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 is Anthropic’s flagship model, combining outstanding intelligence with scalable performance, ideal for complex tasks requiring the highest-quality responses and reasoning.",
- "claude-opus-4-6.description": "Claude Opus 4.6 is Anthropic's most intelligent model for building agents and coding.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 is Anthropic’s most intelligent model for building agents and coding.",
"claude-opus-4.5.description": "Claude Opus 4.5 is Anthropic’s flagship model, combining top-tier intelligence with scalable performance for complex, high-quality reasoning tasks.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 is Anthropic’s most intelligent model for building agents and coding.",
"claude-opus-4.6.description": "Claude Opus 4.6 is Anthropic’s most intelligent model for building agents and coding.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking can produce near-instant responses or extended step-by-step thinking with visible process.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 is Anthropic's most intelligent model to date, offering near-instant responses or extended step-by-step thinking with fine-grained control for API users.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 is Anthropic's most intelligent model to date.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6 is Anthropic's best combination of speed and intelligence.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 can produce near-instant responses or extended step-by-step thinking with visible process.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 is Anthropic’s most intelligent model to date.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 is Anthropic’s best combination of speed and intelligence.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 is Anthropic’s most intelligent model to date.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 is Anthropic’s best combination of speed and intelligence.",
"claude-sonnet-4.description": "Claude Sonnet 4 can produce near-instant responses or extended step-by-step reasoning that users can see. API users can finely control how long the model thinks.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 is a next-gen reasoning model with stronger complex reasoning and chain-of-thought for deep analysis tasks.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 is a next-gen reasoning model with stronger complex reasoning and chain-of-thought capabilities.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 is a MoE vision-language model based on DeepSeekMoE-27B with sparse activation, achieving strong performance with only 4.5B active parameters. It excels at visual QA, OCR, document/table/chart understanding, and visual grounding.",
- "deepseek-chat.description": "DeepSeek V3.2 balances reasoning and output length for daily QA and agent tasks. Public benchmarks reach GPT-5 levels, and it is the first to integrate thinking into tool use, leading open-source agent evaluations.",
+ "deepseek-chat.description": "A new open-source model combining general and code abilities. It preserves the chat model’s general dialogue and the coder model’s strong coding, with better preference alignment. DeepSeek-V2.5 also improves writing and instruction following.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B is a code language model trained on 2T tokens (87% code, 13% Chinese/English text). It introduces a 16K context window and fill-in-the-middle tasks, providing project-level code completion and snippet infilling.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 is an open-source MoE code model that performs strongly on coding tasks, comparable to GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 is an open-source MoE code model that performs strongly on coding tasks, comparable to GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 fast full version with real-time web search, combining 671B-scale capability and faster response.",
"deepseek-r1-online.description": "DeepSeek R1 full version with 671B parameters and real-time web search, offering stronger understanding and generation.",
"deepseek-r1.description": "DeepSeek-R1 uses cold-start data before RL and performs comparably to OpenAI-o1 on math, coding, and reasoning.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking is a deep reasoning model that generates chain-of-thought before outputs for higher accuracy, with top competition results and reasoning comparable to Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "DeepSeek V3.2 thinking mode outputs a chain-of-thought before the final answer to improve accuracy.",
"deepseek-v2.description": "DeepSeek V2 is an efficient MoE model for cost-effective processing.",
"deepseek-v2:236b.description": "DeepSeek V2 236B is DeepSeek’s code-focused model with strong code generation.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 is a 671B-parameter MoE model with standout strengths in programming and technical capability, context understanding, and long-text handling.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K is a fast thinking model with 32K context for complex reasoning and multi-turn chat.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview is a thinking-model preview for evaluation and testing.",
"ernie-x1.1.description": "ERNIE X1.1 is a thinking-model preview for evaluation and testing.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, built by ByteDance Seed team, supports multi-image editing and composition. Features enhanced subject consistency, precise instruction following, spatial logic understanding, aesthetic expression, poster layout and logo design with high-precision text-image rendering.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, built by ByteDance Seed, supports text and image inputs for highly controllable, high-quality image generation from prompts.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 is an image generation model from ByteDance Seed, supporting text and image inputs with highly controllable, high-quality image generation. It generates images from text prompts.",
"fal-ai/flux-kontext/dev.description": "FLUX.1 model focused on image editing, supporting text and image inputs.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] accepts text and reference images as input, enabling targeted local edits and complex global scene transformations.",
"fal-ai/flux/krea.description": "Flux Krea [dev] is an image generation model with an aesthetic bias toward more realistic, natural images.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "A powerful native multimodal image generation model.",
"fal-ai/imagen4/preview.description": "High-quality image generation model from Google.",
"fal-ai/nano-banana.description": "Nano Banana is Google’s newest, fastest, and most efficient native multimodal model, enabling image generation and editing through conversation.",
- "fal-ai/qwen-image-edit.description": "A professional image editing model from the Qwen team, supporting semantic and appearance edits, precise Chinese/English text editing, style transfer, rotation, and more.",
- "fal-ai/qwen-image.description": "A powerful image generation model from the Qwen team with strong Chinese text rendering and diverse visual styles.",
+ "fal-ai/qwen-image-edit.description": "A professional image editing model from the Qwen team that supports semantic and appearance edits, precisely edits Chinese and English text, and enables high-quality edits such as style transfer and object rotation.",
+ "fal-ai/qwen-image.description": "A powerful image generation model from the Qwen team with impressive Chinese text rendering and diverse visual styles.",
"flux-1-schnell.description": "A 12B-parameter text-to-image model from Black Forest Labs using latent adversarial diffusion distillation to generate high-quality images in 1-4 steps. It rivals closed alternatives and is released under Apache-2.0 for personal, research, and commercial use.",
"flux-dev.description": "FLUX.1 [dev] is an open-weights distilled model for non-commercial use. It keeps near-pro image quality and instruction following while running more efficiently, using resources better than same-size standard models.",
"flux-kontext-max.description": "State-of-the-art contextual image generation and editing, combining text and images for precise, coherent results.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro is Google’s most advanced reasoning model, able to reason over code, math, and STEM problems and analyze large datasets, codebases, and documents with long context.",
"gemini-3-flash-preview.description": "Gemini 3 Flash is the smartest model built for speed, combining cutting-edge intelligence with excellent search grounding.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro) is Google's image generation model that also supports multimodal dialogue.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) is Google's image generation model and also supports multimodal chat.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) is Google’s image generation model and also supports multimodal chat.",
"gemini-3-pro-preview.description": "Gemini 3 Pro is Google’s most powerful agent and vibe-coding model, delivering richer visuals and deeper interaction on top of state-of-the-art reasoning.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) is Google's fastest native image generation model with thinking support, conversational image generation and editing.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) delivers Pro-level image quality at Flash speed with multimodal chat support.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) is Google's fastest native image generation model with thinking support, conversational image generation and editing.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview is Google's most cost-efficient multimodal model, optimized for high-volume agentic tasks, translation, and data processing.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview improves on Gemini 3 Pro with enhanced reasoning capabilities and adds medium thinking level support.",
"gemini-flash-latest.description": "Latest release of Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Our most powerful, advanced model, designed for complex enterprise tasks with outstanding performance.",
"jamba-mini.description": "The most efficient model in its class, balancing speed and quality with a smaller footprint.",
"jina-deepsearch-v1.description": "DeepSearch combines web search, reading, and reasoning for thorough investigations. Think of it as an agent that takes your research task, performs broad searches with multiple iterations, and only then produces an answer. The process involves continuous research, reasoning, and multi-angle problem solving, fundamentally different from standard LLMs that answer from pretraining data or traditional RAG systems that rely on one-shot surface search.",
+ "k2p5.description": "Kimi K2.5 is Kimi's most versatile model to date, featuring a native multimodal architecture that supports both vision and text inputs, 'thinking' and 'non-thinking' modes, and both conversational and agent tasks.",
"kimi-k2-0711-preview.description": "kimi-k2 is an MoE foundation model with strong coding and agent capabilities (1T total params, 32B active), outperforming other mainstream open models across reasoning, programming, math, and agent benchmarks.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview offers a 256k context window, stronger agentic coding, better front-end code quality, and improved context understanding.",
"kimi-k2-instruct.description": "Kimi K2 Instruct is Kimi’s official reasoning model with long context for code, QA, and more.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ is a reasoning model in the Qwen family. Compared with standard instruction-tuned models, it brings thinking and reasoning abilities that significantly improve downstream performance, especially on hard problems. QwQ-32B is a mid-sized reasoning model that competes well with top reasoning models like DeepSeek-R1 and o1-mini.",
"qwq_32b.description": "Mid-sized reasoning model in the Qwen family. Compared with standard instruction-tuned models, QwQ’s thinking and reasoning abilities significantly boost downstream performance, especially on hard problems.",
"r1-1776.description": "R1-1776 is a post-trained variant of DeepSeek R1 designed to provide uncensored, unbiased factual information.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro by ByteDance supports text-to-video, image-to-video (first frame, first+last frame), and audio generation synchronized with visuals.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite by BytePlus features web-retrieval-augmented generation for real-time information, enhanced complex prompt interpretation, and improved reference consistency for professional visual creation.",
"solar-mini-ja.description": "Solar Mini (Ja) extends Solar Mini with a focus on Japanese while maintaining efficient, strong performance in English and Korean.",
"solar-mini.description": "Solar Mini is a compact LLM that outperforms GPT-3.5, with strong multilingual capability supporting English and Korean, offering an efficient small-footprint solution.",
"solar-pro.description": "Solar Pro is a high-intelligence LLM from Upstage, focused on instruction following on a single GPU, with IFEval scores above 80. It currently supports English; the full release was planned for November 2024 with expanded language support and longer context.",
diff --git a/locales/en-US/onboarding.json b/locales/en-US/onboarding.json
index 9cf28359010..12250f8caba 100644
--- a/locales/en-US/onboarding.json
+++ b/locales/en-US/onboarding.json
@@ -1,8 +1,37 @@
{
+ "agent.banner.label": "Agent Onboarding",
"agent.completionSubtitle": "Your assistant is configured and ready to go.",
"agent.completionTitle": "You're All Set!",
"agent.enterApp": "Enter App",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Name",
+ "agent.greeting.namePlaceholder": "e.g. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Give me a name, a vibe, and an emoji",
+ "agent.greeting.vibeLabel": "Vibe / Nature",
+ "agent.greeting.vibePlaceholder": "e.g. Warm & friendly, Sharp & direct...",
+ "agent.history.current": "Current",
+ "agent.history.title": "History Topics",
+ "agent.modeSwitch.agent": "Conversational",
+ "agent.modeSwitch.classic": "Classic",
+ "agent.modeSwitch.debug": "Debug Export",
+ "agent.modeSwitch.label": "Choose your onboarding mode",
+ "agent.modeSwitch.reset": "Reset Flow",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
"agent.skipOnboarding": "Skip onboarding",
+ "agent.stage.agentIdentity": "Agent Identity",
+ "agent.stage.painPoints": "Pain Points",
+ "agent.stage.proSettings": "Advanced Setup",
+ "agent.stage.responseLanguage": "Response Language",
+ "agent.stage.summary": "Summary",
+ "agent.stage.userIdentity": "About You",
+ "agent.stage.workContext": "Work Context",
+ "agent.stage.workStyle": "Work Style",
+ "agent.subtitle": "Complete setup in a dedicated onboarding conversation.",
+ "agent.summaryHint": "Finish here if the setup summary looks right.",
+ "agent.telemetryAllow": "Allow telemetry",
+ "agent.telemetryDecline": "No thanks",
+ "agent.telemetryHint": "You can also answer in your own words.",
+ "agent.title": "Conversation Onboarding",
"agent.welcome": "...hm? I just woke up — my mind's a blank. Who are you? And — what should I be called? I need a name too.",
"back": "Back",
"finish": "Get Started",
@@ -34,6 +63,7 @@
"next": "Next",
"proSettings.connectors.title": "Connect Your Favorite Tools",
"proSettings.devMode.title": "Developer Mode",
+ "proSettings.model.fixed": "Default model is preset to {{provider}}/{{model}} in this environment.",
"proSettings.model.title": "Default Model Used by the Agent",
"proSettings.title": "Configure Advanced Options in Advance",
"proSettings.title2": "Try Connecting Some Common Tools~",
diff --git a/locales/en-US/plugin.json b/locales/en-US/plugin.json
index 70a4da067d5..46f88012c62 100644
--- a/locales/en-US/plugin.json
+++ b/locales/en-US/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Copy document",
"builtins.lobe-agent-documents.apiName.createDocument": "Create document",
"builtins.lobe-agent-documents.apiName.editDocument": "Edit document",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "List documents",
"builtins.lobe-agent-documents.apiName.readDocument": "Read document",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Read document by filename",
"builtins.lobe-agent-documents.apiName.removeDocument": "Remove document",
"builtins.lobe-agent-documents.apiName.renameDocument": "Rename document",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Update load rule",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Upsert document by filename",
"builtins.lobe-agent-documents.title": "Agent Documents",
"builtins.lobe-agent-management.apiName.callAgent": "Call agent",
"builtins.lobe-agent-management.apiName.createAgent": "Create agent",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Cloud Sandbox",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Batch create agents",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Create agent",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Create group",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Get member info",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Get available models",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Install Skill",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Skills",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Get Topic Context",
"builtins.lobe-topic-reference.title": "Topic Reference",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Ask user question",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Cancel user response",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Get interaction state",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Skip user response",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Submit user response",
+ "builtins.lobe-user-interaction.title": "User Interaction",
"builtins.lobe-user-memory.apiName.addContextMemory": "Add context memory",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Add experience memory",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Add identity memory",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Search pages",
"builtins.lobe-web-browsing.inspector.noResults": "No results",
"builtins.lobe-web-browsing.title": "Web Search",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Finish onboarding",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Read onboarding state",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Read document",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Save user question",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Update document",
+ "builtins.lobe-web-onboarding.title": "User Onboarding",
"confirm": "Confirm",
"debug.arguments": "Arguments",
"debug.error": "Error log",
diff --git a/locales/en-US/providers.json b/locales/en-US/providers.json
index 09562a402bb..4c79ebcbee4 100644
--- a/locales/en-US/providers.json
+++ b/locales/en-US/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Founded in 2020, Jina AI is a leading search AI company. Its search stack includes vector models, rerankers, and small language models to build reliable, high-quality generative and multimodal search apps.",
"kimicodingplan.description": "Kimi Code from Moonshot AI provides access to Kimi models including K2.5 for coding tasks.",
"lmstudio.description": "LM Studio is a desktop app for developing and experimenting with LLMs on your computer.",
- "lobehub.description": "LobeHub Cloud uses official APIs to access AI models and measures usage with Credits tied to model tokens.",
"longcat.description": "LongCat is a series of generative AI large models independently developed by Meituan. It is designed to enhance internal enterprise productivity and enable innovative applications through an efficient computational architecture and strong multimodal capabilities.",
"minimax.description": "Founded in 2021, MiniMax builds general-purpose AI with multimodal foundation models, including trillion-parameter MoE text models, speech models, and vision models, along with apps like Hailuo AI.",
"minimaxcodingplan.description": "MiniMax Token Plan provides access to MiniMax models including M2.7 for coding tasks via a fixed-fee subscription.",
diff --git a/locales/es-ES/agent.json b/locales/es-ES/agent.json
index 5651fe38dbd..f466693c5cc 100644
--- a/locales/es-ES/agent.json
+++ b/locales/es-ES/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Por favor, copia esta URL y pégala en el campo <bold>{{fieldName}}</bold> en el Portal de Desarrolladores de {{name}}.",
"channel.exportConfig": "Exportar configuración",
"channel.feishu.description": "Conecta este asistente a Feishu para chats privados y grupales.",
+ "channel.historyLimit": "Límite de Mensajes en el Historial",
+ "channel.historyLimitHint": "Número predeterminado de mensajes para recuperar al leer el historial del canal",
"channel.importConfig": "Importar configuración",
"channel.importFailed": "No se pudo importar la configuración",
"channel.importInvalidFormat": "Formato de archivo de configuración inválido",
@@ -78,6 +80,8 @@
"channel.secretToken": "Token Secreto del Webhook",
"channel.secretTokenHint": "Opcional. Usado para verificar solicitudes de webhook desde Telegram.",
"channel.secretTokenPlaceholder": "Secreto opcional para la verificación del webhook",
+ "channel.serverId": "ID Predeterminado del Servidor / Gremio",
+ "channel.serverIdHint": "Tu ID predeterminado de servidor o gremio en esta plataforma. La IA lo utiliza para listar canales sin preguntar.",
"channel.settings": "Configuraciones avanzadas",
"channel.settingsResetConfirm": "¿Estás seguro de que deseas restablecer las configuraciones avanzadas a los valores predeterminados?",
"channel.settingsResetDefault": "Restablecer a predeterminado",
@@ -93,6 +97,8 @@
"channel.testFailed": "Prueba de conexión fallida",
"channel.testSuccess": "Prueba de conexión exitosa",
"channel.updateFailed": "Error al actualizar el estado",
+ "channel.userId": "Tu ID de Usuario en la Plataforma",
+ "channel.userIdHint": "Tu ID de usuario en esta plataforma. La IA puede usarlo para enviarte mensajes directos.",
"channel.validationError": "Por favor, completa el ID de la Aplicación y el Token",
"channel.verificationToken": "Token de Verificación",
"channel.verificationTokenHint": "Opcional. Usado para verificar la fuente de eventos del webhook.",
diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.json
index f91ca8f9a14..72d6abb6058 100644
--- a/locales/es-ES/chat.json
+++ b/locales/es-ES/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Eliminar y regenerar",
"messageAction.deleteDisabledByThreads": "Este mensaje tiene un subtema y no se puede eliminar",
"messageAction.expand": "Expandir mensaje",
+ "messageAction.interrupted": "Interrumpido",
+ "messageAction.interruptedHint": "¿Qué debería hacer en su lugar?",
"messageAction.reaction": "Agregar reacción",
"messageAction.regenerate": "Regenerar",
"messages.dm.sentTo": "Visible solo para {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Aprobar automáticamente todas las ejecuciones de herramientas",
"tool.intervention.mode.manual": "Manual",
"tool.intervention.mode.manualDesc": "Requiere aprobación manual para cada invocación",
+ "tool.intervention.pending": "Pendiente",
"tool.intervention.reject": "Rechazar",
"tool.intervention.rejectAndContinue": "Rechazar e intentar de nuevo",
"tool.intervention.rejectOnly": "Rechazar",
"tool.intervention.rejectReasonPlaceholder": "Una razón ayuda al agente a entender tus límites y mejorar sus acciones futuras",
"tool.intervention.rejectTitle": "Rechazar esta llamada de habilidad",
"tool.intervention.rejectedWithReason": "Esta llamada de habilidad fue rechazada: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Ver",
"tool.intervention.toolAbort": "Cancelaste esta llamada de habilidad",
"tool.intervention.toolRejected": "Esta llamada de habilidad fue rechazada",
"toolAuth.authorize": "Autorizar",
diff --git a/locales/es-ES/models.json b/locales/es-ES/models.json
index c2c8bb04a73..a81f96d605c 100644
--- a/locales/es-ES/models.json
+++ b/locales/es-ES/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Nuevo modelo de razonamiento interno con 80K de cadena de pensamiento y 1M de entrada, con rendimiento comparable a los mejores modelos globales.",
"MiniMax-M2-Stable.description": "Diseñado para codificación eficiente y flujos de trabajo de agentes, con mayor concurrencia para uso comercial.",
"MiniMax-M2.1-Lightning.description": "Potentes capacidades de programación multilingüe, experiencia de desarrollo completamente mejorada. Más rápido y eficiente.",
- "MiniMax-M2.1-highspeed.description": "Potentes capacidades de programación multilingüe con inferencia más rápida y eficiente.",
"MiniMax-M2.1.description": "MiniMax-M2.1 es un modelo insignia de código abierto de MiniMax, enfocado en resolver tareas complejas del mundo real. Sus principales fortalezas son sus capacidades de programación multilingüe y su habilidad para resolver tareas complejas como un Agente.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Misma rendimiento, más rápido y ágil (aproximadamente 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Mismo rendimiento que M2.5 con inferencia más rápida.",
@@ -307,18 +306,18 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku es el modelo más rápido y compacto de Anthropic, diseñado para respuestas casi instantáneas con rendimiento rápido y preciso.",
"claude-3-opus-20240229.description": "Claude 3 Opus es el modelo más potente de Anthropic para tareas altamente complejas, destacando en rendimiento, inteligencia, fluidez y comprensión.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet equilibra inteligencia y velocidad para cargas de trabajo empresariales, ofreciendo alta utilidad a menor costo y despliegue confiable a gran escala.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 es el modelo Haiku más rápido e inteligente de Anthropic, con velocidad relámpago y pensamiento extendido.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 es el modelo Haiku más rápido e inteligente de Anthropic, con velocidad relámpago y razonamiento extendido.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 es el modelo Haiku más rápido e inteligente de Anthropic, con velocidad relámpago y razonamiento extendido.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking es una variante avanzada que puede mostrar su proceso de razonamiento.",
"claude-opus-4-1-20250805.description": "Claude Opus 4.1 es el modelo más reciente y capaz de Anthropic para tareas altamente complejas, destacando en rendimiento, inteligencia, fluidez y comprensión.",
- "claude-opus-4-20250514.description": "Claude Opus 4 es el modelo más poderoso de Anthropic para tareas altamente complejas, destacando en rendimiento, inteligencia, fluidez y comprensión.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 es el modelo más poderoso de Anthropic para tareas altamente complejas, sobresaliendo en rendimiento, inteligencia, fluidez y comprensión.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 es el modelo insignia de Anthropic, combinando inteligencia excepcional con rendimiento escalable, ideal para tareas complejas que requieren respuestas y razonamiento de la más alta calidad.",
"claude-opus-4-6.description": "Claude Opus 4.6 es el modelo más inteligente de Anthropic para construir agentes y programar.",
"claude-opus-4.5.description": "Claude Opus 4.5 es el modelo insignia de Anthropic, que combina inteligencia de primer nivel con un rendimiento escalable para tareas complejas de razonamiento de alta calidad.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 es el modelo más inteligente de Anthropic para construir agentes y programar.",
"claude-opus-4.6.description": "Claude Opus 4.6 es el modelo más inteligente de Anthropic para construir agentes y programar.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking puede generar respuestas casi instantáneas o pensamiento paso a paso extendido con proceso visible.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 es el modelo más inteligente de Anthropic hasta la fecha, ofreciendo respuestas casi instantáneas o pensamiento extendido paso a paso con control detallado para usuarios de API.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 puede generar respuestas casi instantáneas o razonamientos paso a paso extendidos con un proceso visible.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 es el modelo más inteligente de Anthropic hasta la fecha.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 es la mejor combinación de velocidad e inteligencia de Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 es el modelo más inteligente de Anthropic hasta la fecha.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 es un modelo de razonamiento de nueva generación con capacidades mejoradas para razonamiento complejo y cadenas de pensamiento, ideal para tareas de análisis profundo.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 es un modelo de razonamiento de próxima generación con capacidades mejoradas de razonamiento complejo y cadenas de pensamiento.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 es un modelo visión-lenguaje MoE basado en DeepSeekMoE-27B con activación dispersa, logrando un alto rendimiento con solo 4.5B de parámetros activos. Destaca en preguntas visuales, OCR, comprensión de documentos/tablas/gráficos y anclaje visual.",
- "deepseek-chat.description": "DeepSeek V3.2 equilibra razonamiento y longitud de salida para tareas diarias de QA y agentes. Los puntos de referencia públicos alcanzan niveles de GPT-5, y es el primero en integrar pensamiento en el uso de herramientas, liderando evaluaciones de agentes de código abierto.",
+ "deepseek-chat.description": "Un nuevo modelo de código abierto que combina habilidades generales y de programación. Preserva el diálogo general del modelo de chat y la sólida capacidad de codificación del modelo de programación, con una mejor alineación de preferencias. DeepSeek-V2.5 también mejora la escritura y el seguimiento de instrucciones.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B es un modelo de lenguaje para código entrenado con 2T de tokens (87% código, 13% texto en chino/inglés). Introduce una ventana de contexto de 16K y tareas de completado intermedio, ofreciendo completado de código a nivel de proyecto y relleno de fragmentos.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 es un modelo de código MoE de código abierto que tiene un rendimiento sólido en tareas de programación, comparable a GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 es un modelo de código MoE de código abierto que tiene un rendimiento sólido en tareas de programación, comparable a GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Versión completa rápida de DeepSeek R1 con búsqueda web en tiempo real, combinando capacidad a escala 671B y respuesta ágil.",
"deepseek-r1-online.description": "Versión completa de DeepSeek R1 con 671B de parámetros y búsqueda web en tiempo real, ofreciendo mejor comprensión y generación.",
"deepseek-r1.description": "DeepSeek-R1 utiliza datos de arranque en frío antes del aprendizaje por refuerzo y tiene un rendimiento comparable a OpenAI-o1 en matemáticas, programación y razonamiento.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking es un modelo de razonamiento profundo que genera cadenas de pensamiento antes de las salidas para mayor precisión, con resultados de competencia destacados y razonamiento comparable a Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "El modo de pensamiento DeepSeek V3.2 genera una cadena de razonamiento antes de la respuesta final para mejorar la precisión.",
"deepseek-v2.description": "DeepSeek V2 es un modelo MoE eficiente para procesamiento rentable.",
"deepseek-v2:236b.description": "DeepSeek V2 236B es el modelo de DeepSeek centrado en código con fuerte generación de código.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 es un modelo MoE con 671 mil millones de parámetros, con fortalezas destacadas en programación, capacidad técnica, comprensión de contexto y manejo de textos largos.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K es un modelo de pensamiento rápido con contexto de 32K para razonamiento complejo y chat de múltiples turnos.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview es una vista previa del modelo de pensamiento para evaluación y pruebas.",
"ernie-x1.1.description": "ERNIE X1.1 es un modelo de pensamiento en vista previa para evaluación y pruebas.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, desarrollado por el equipo Seed de ByteDance, admite edición y composición de múltiples imágenes. Ofrece consistencia mejorada de sujetos, seguimiento preciso de instrucciones, comprensión de lógica espacial, expresión estética, diseño de carteles y logotipos con renderizado de texto e imagen de alta precisión.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, desarrollado por ByteDance Seed, admite entradas de texto e imagen para generación de imágenes altamente controlable y de alta calidad a partir de indicaciones.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 es un modelo de generación de imágenes de ByteDance Seed, que admite entradas de texto e imagen con generación de imágenes altamente controlable y de alta calidad. Genera imágenes a partir de indicaciones de texto.",
"fal-ai/flux-kontext/dev.description": "Modelo FLUX.1 centrado en la edición de imágenes, compatible con entradas de texto e imagen.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] acepta texto e imágenes de referencia como entrada, permitiendo ediciones locales dirigidas y transformaciones globales complejas de escenas.",
"fal-ai/flux/krea.description": "Flux Krea [dev] es un modelo de generación de imágenes con una inclinación estética hacia imágenes más realistas y naturales.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Un potente modelo nativo multimodal de generación de imágenes.",
"fal-ai/imagen4/preview.description": "Modelo de generación de imágenes de alta calidad de Google.",
"fal-ai/nano-banana.description": "Nano Banana es el modelo multimodal nativo más nuevo, rápido y eficiente de Google, que permite generación y edición de imágenes mediante conversación.",
- "fal-ai/qwen-image-edit.description": "Un modelo profesional de edición de imágenes del equipo Qwen, que admite ediciones semánticas y de apariencia, edición precisa de texto en chino/inglés, transferencia de estilo, rotación y más.",
- "fal-ai/qwen-image.description": "Un modelo potente de generación de imágenes del equipo Qwen con fuerte renderizado de texto en chino y estilos visuales diversos.",
+ "fal-ai/qwen-image-edit.description": "Un modelo profesional de edición de imágenes del equipo Qwen que admite ediciones semánticas y de apariencia, edita con precisión texto en chino e inglés, y permite ediciones de alta calidad como transferencia de estilo y rotación de objetos.",
+ "fal-ai/qwen-image.description": "Un modelo poderoso de generación de imágenes del equipo Qwen con impresionante renderizado de texto en chino y estilos visuales diversos.",
"flux-1-schnell.description": "Modelo de texto a imagen con 12 mil millones de parámetros de Black Forest Labs que utiliza destilación difusiva adversarial latente para generar imágenes de alta calidad en 1 a 4 pasos. Compite con alternativas cerradas y se lanza bajo licencia Apache-2.0 para uso personal, de investigación y comercial.",
"flux-dev.description": "FLUX.1 [dev] es un modelo destilado con pesos abiertos para uso no comercial. Mantiene calidad de imagen casi profesional y seguimiento de instrucciones mientras funciona de manera más eficiente, utilizando mejor los recursos que modelos estándar del mismo tamaño.",
"flux-kontext-max.description": "Generación y edición de imágenes contextual de última generación, combinando texto e imágenes para resultados precisos y coherentes.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) es el modelo de generación de imágenes de Google y también admite chat multimodal.",
"gemini-3-pro-preview.description": "Gemini 3 Pro es el agente más potente de Google y modelo de codificación emocional, que ofrece visuales más ricos e interacción más profunda sobre un razonamiento de última generación.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) es el modelo nativo de generación de imágenes más rápido de Google con soporte de pensamiento, generación conversacional de imágenes y edición.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) ofrece calidad de imagen a nivel Pro a velocidad Flash con soporte de chat multimodal.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) es el modelo nativo de generación de imágenes más rápido de Google con soporte de razonamiento, generación conversacional de imágenes y edición.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview es el modelo multimodal más rentable de Google, optimizado para tareas agentivas de alto volumen, traducción y procesamiento de datos.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview mejora las capacidades de razonamiento de Gemini 3 Pro y añade soporte para un nivel de pensamiento medio.",
"gemini-flash-latest.description": "Última versión de Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Nuestro modelo más potente y avanzado, diseñado para tareas empresariales complejas con un rendimiento sobresaliente.",
"jamba-mini.description": "El modelo más eficiente de su clase, equilibrando velocidad y calidad con un tamaño reducido.",
"jina-deepsearch-v1.description": "DeepSearch combina búsqueda web, lectura y razonamiento para investigaciones exhaustivas. Funciona como un agente que toma tu tarea de investigación, realiza búsquedas amplias con múltiples iteraciones y luego produce una respuesta. El proceso implica investigación continua, razonamiento y resolución de problemas desde múltiples ángulos, diferenciándose fundamentalmente de los LLM estándar que responden desde datos preentrenados o sistemas RAG tradicionales que dependen de búsquedas superficiales de una sola vez.",
+ "k2p5.description": "Kimi K2.5 es el modelo más versátil de Kimi hasta la fecha, con una arquitectura multimodal nativa que admite tanto entradas de visión como de texto, modos de 'pensamiento' y 'no pensamiento', y tareas tanto conversacionales como de agente.",
"kimi-k2-0711-preview.description": "kimi-k2 es un modelo base MoE con sólidas capacidades de programación y agentes (1T de parámetros totales, 32B activos), superando a otros modelos abiertos en razonamiento, programación, matemáticas y benchmarks de agentes.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview ofrece una ventana de contexto de 256k, codificación agente más sólida, mejor calidad de código frontend y comprensión de contexto mejorada.",
"kimi-k2-instruct.description": "Kimi K2 Instruct es el modelo oficial de razonamiento de Kimi con contexto largo para código, preguntas y respuestas, y más.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ es un modelo de razonamiento de la familia Qwen. En comparación con los modelos estándar ajustados por instrucciones, ofrece capacidades de pensamiento y razonamiento que mejoran significativamente el rendimiento en tareas difíciles. QwQ-32B es un modelo de razonamiento de tamaño medio que compite con los mejores modelos como DeepSeek-R1 y o1-mini.",
"qwq_32b.description": "Modelo de razonamiento de tamaño medio de la familia Qwen. En comparación con los modelos estándar ajustados por instrucciones, las capacidades de pensamiento y razonamiento de QwQ mejoran significativamente el rendimiento en tareas difíciles.",
"r1-1776.description": "R1-1776 es una variante postentrenada de DeepSeek R1 diseñada para proporcionar información factual sin censura ni sesgo.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro de ByteDance admite generación de texto a video, imagen a video (primer cuadro, primer+último cuadro) y generación de audio sincronizado con visuales.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite de BytePlus presenta generación aumentada con recuperación web para información en tiempo real, interpretación mejorada de indicaciones complejas y consistencia de referencia mejorada para creación visual profesional.",
"solar-mini-ja.description": "Solar Mini (Ja) amplía Solar Mini con un enfoque en japonés, manteniendo un rendimiento eficiente y sólido en inglés y coreano.",
"solar-mini.description": "Solar Mini es un modelo LLM compacto que supera a GPT-3.5, con una sólida capacidad multilingüe compatible con inglés y coreano, ofreciendo una solución eficiente de bajo consumo.",
"solar-pro.description": "Solar Pro es un LLM de alta inteligencia de Upstage, enfocado en el seguimiento de instrucciones en una sola GPU, con puntuaciones IFEval superiores a 80. Actualmente admite inglés; el lanzamiento completo estaba previsto para noviembre de 2024 con soporte de idiomas ampliado y contexto más largo.",
diff --git a/locales/es-ES/onboarding.json b/locales/es-ES/onboarding.json
index 79ad0284f52..1734a1075d5 100644
--- a/locales/es-ES/onboarding.json
+++ b/locales/es-ES/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Incorporación del Agente",
+ "agent.completionSubtitle": "Tu asistente está configurado y listo para comenzar.",
+ "agent.completionTitle": "¡Todo Listo!",
+ "agent.enterApp": "Entrar a la Aplicación",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Nombre",
+ "agent.greeting.namePlaceholder": "p. ej. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Dame un nombre, un estilo y un emoji",
+ "agent.greeting.vibeLabel": "Estilo / Naturaleza",
+ "agent.greeting.vibePlaceholder": "p. ej. Cálido y amigable, Directo y preciso...",
+ "agent.history.current": "Actual",
+ "agent.history.title": "Temas del Historial",
+ "agent.modeSwitch.agent": "Conversacional",
+ "agent.modeSwitch.classic": "Clásico",
+ "agent.modeSwitch.debug": "Exportar Depuración",
+ "agent.modeSwitch.label": "Elige tu modo de incorporación",
+ "agent.modeSwitch.reset": "Reiniciar Flujo",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Omitir incorporación",
+ "agent.stage.agentIdentity": "Identidad del Agente",
+ "agent.stage.painPoints": "Puntos Problemáticos",
+ "agent.stage.proSettings": "Configuración Avanzada",
+ "agent.stage.responseLanguage": "Idioma de Respuesta",
+ "agent.stage.summary": "Resumen",
+ "agent.stage.userIdentity": "Sobre Ti",
+ "agent.stage.workContext": "Contexto de Trabajo",
+ "agent.stage.workStyle": "Estilo de Trabajo",
+ "agent.subtitle": "Completa la configuración en una conversación dedicada de incorporación.",
+ "agent.summaryHint": "Termina aquí si el resumen de configuración parece correcto.",
+ "agent.telemetryAllow": "Permitir telemetría",
+ "agent.telemetryDecline": "No, gracias",
+ "agent.telemetryHint": "También puedes responder con tus propias palabras.",
+ "agent.title": "Incorporación Conversacional",
+ "agent.welcome": "...¿hm? Acabo de despertar — mi mente está en blanco. ¿Quién eres? Y — ¿cómo debería llamarme? También necesito un nombre.",
"back": "Volver",
"finish": "Comenzar",
"interests.area.business": "Negocios y Estrategia",
@@ -29,6 +63,7 @@
"next": "Siguiente",
"proSettings.connectors.title": "Conecta tus herramientas favoritas",
"proSettings.devMode.title": "Modo Desarrollador",
+ "proSettings.model.fixed": "El modelo predeterminado está configurado como {{provider}}/{{model}} en este entorno.",
"proSettings.model.title": "Modelo predeterminado usado por el agente",
"proSettings.title": "Configura opciones avanzadas por adelantado",
"proSettings.title2": "Prueba conectando algunas herramientas comunes~",
diff --git a/locales/es-ES/plugin.json b/locales/es-ES/plugin.json
index 9cedf48c732..2c754e81ce3 100644
--- a/locales/es-ES/plugin.json
+++ b/locales/es-ES/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Copiar documento",
"builtins.lobe-agent-documents.apiName.createDocument": "Crear documento",
"builtins.lobe-agent-documents.apiName.editDocument": "Editar documento",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Listar documentos",
"builtins.lobe-agent-documents.apiName.readDocument": "Leer documento",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Leer documento por nombre de archivo",
"builtins.lobe-agent-documents.apiName.removeDocument": "Eliminar documento",
"builtins.lobe-agent-documents.apiName.renameDocument": "Renombrar documento",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Actualizar regla de carga",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Insertar o actualizar documento por nombre de archivo",
"builtins.lobe-agent-documents.title": "Documentos del Agente",
"builtins.lobe-agent-management.apiName.callAgent": "Agente de llamada",
"builtins.lobe-agent-management.apiName.createAgent": "Crear agente",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Sandbox en la Nube",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Crear agentes en lote",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Crear agente",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Crear grupo",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Obtener información del miembro",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Obtener modelos disponibles",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Instalar habilidad",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Habilidades",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Obtener contexto del tema",
"builtins.lobe-topic-reference.title": "Referencia de tema",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Hacer pregunta al usuario",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Cancelar respuesta del usuario",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Obtener estado de interacción",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Omitir respuesta del usuario",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Enviar respuesta del usuario",
+ "builtins.lobe-user-interaction.title": "Interacción del Usuario",
"builtins.lobe-user-memory.apiName.addContextMemory": "Agregar memoria de contexto",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Agregar memoria de experiencia",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Agregar memoria de identidad",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Buscar páginas",
"builtins.lobe-web-browsing.inspector.noResults": "Sin resultados",
"builtins.lobe-web-browsing.title": "Búsqueda Web",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Finalizar incorporación",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Leer estado de incorporación",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Leer documento",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Guardar pregunta del usuario",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Actualizar documento",
+ "builtins.lobe-web-onboarding.title": "Incorporación del Usuario",
"confirm": "Confirmar",
"debug.arguments": "Argumentos",
"debug.error": "Registro de errores",
diff --git a/locales/es-ES/providers.json b/locales/es-ES/providers.json
index cff41aa5f5c..ad31155149c 100644
--- a/locales/es-ES/providers.json
+++ b/locales/es-ES/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Fundada en 2020, Jina AI es una empresa líder en búsqueda con IA. Su pila de búsqueda incluye modelos vectoriales, reordenadores y pequeños modelos de lenguaje para construir aplicaciones generativas y multimodales confiables y de alta calidad.",
"kimicodingplan.description": "Kimi Code de Moonshot AI proporciona acceso a los modelos Kimi, incluidos K2.5, para tareas de codificación.",
"lmstudio.description": "LM Studio es una aplicación de escritorio para desarrollar y experimentar con LLMs en tu ordenador.",
- "lobehub.description": "LobeHub Cloud utiliza APIs oficiales para acceder a modelos de IA y mide el uso con Créditos vinculados a los tokens de los modelos.",
"longcat.description": "LongCat es una serie de modelos grandes de inteligencia artificial generativa desarrollados de manera independiente por Meituan. Está diseñado para mejorar la productividad interna de la empresa y permitir aplicaciones innovadoras mediante una arquitectura computacional eficiente y sólidas capacidades multimodales.",
"minimax.description": "Fundada en 2021, MiniMax desarrolla IA de propósito general con modelos fundacionales multimodales, incluyendo modelos de texto MoE con billones de parámetros, modelos de voz y visión, junto con aplicaciones como Hailuo AI.",
"minimaxcodingplan.description": "El Plan de Tokens MiniMax proporciona acceso a los modelos MiniMax, incluidos M2.7, para tareas de codificación mediante una suscripción de tarifa fija.",
diff --git a/locales/es-ES/ui.json b/locales/es-ES/ui.json
index 8c9154ccf61..f9df0597bea 100644
--- a/locales/es-ES/ui.json
+++ b/locales/es-ES/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "¡Solo puedes subir archivos de imagen!",
"emojiPicker.upload": "Subir",
"emojiPicker.uploadBtn": "Recortar y subir",
+ "form.other": "O escribe directamente",
+ "form.otherBack": "Volver a las opciones",
"form.reset": "Restablecer",
+ "form.skip": "Omitir",
"form.submit": "Enviar",
"form.unsavedChanges": "Cambios no guardados",
"form.unsavedWarning": "Tienes cambios no guardados. ¿Estás seguro de que deseas salir?",
diff --git a/locales/fa-IR/agent.json b/locales/fa-IR/agent.json
index 7b0cfe49cf7..dcb54634823 100644
--- a/locales/fa-IR/agent.json
+++ b/locales/fa-IR/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "لطفاً این آدرس را کپی کرده و در قسمت <bold>{{fieldName}}</bold> در پورتال توسعه‌دهنده {{name}} وارد کنید.",
"channel.exportConfig": "صادرات تنظیمات",
"channel.feishu.description": "این دستیار را به Feishu برای چت‌های خصوصی و گروهی متصل کنید.",
+ "channel.historyLimit": "محدودیت پیام‌های تاریخچه",
+ "channel.historyLimitHint": "تعداد پیش‌فرض پیام‌هایی که هنگام خواندن تاریخچه کانال دریافت می‌شوند",
"channel.importConfig": "وارد کردن تنظیمات",
"channel.importFailed": "وارد کردن تنظیمات ناموفق بود",
"channel.importInvalidFormat": "فرمت فایل تنظیمات نامعتبر است",
@@ -78,6 +80,8 @@
"channel.secretToken": "توکن مخفی وبهوک",
"channel.secretTokenHint": "اختیاری. برای تأیید درخواست‌های وبهوک از Telegram استفاده می‌شود.",
"channel.secretTokenPlaceholder": "توکن مخفی اختیاری برای تأیید وبهوک",
+ "channel.serverId": "شناسه پیش‌فرض سرور / انجمن",
+ "channel.serverIdHint": "شناسه پیش‌فرض سرور یا انجمن شما در این پلتفرم. هوش مصنوعی از آن برای لیست کردن کانال‌ها بدون پرسش استفاده می‌کند.",
"channel.settings": "تنظیمات پیشرفته",
"channel.settingsResetConfirm": "آیا مطمئن هستید که می‌خواهید تنظیمات پیشرفته را به حالت پیش‌فرض بازنشانی کنید؟",
"channel.settingsResetDefault": "بازنشانی به پیش‌فرض",
@@ -93,6 +97,8 @@
"channel.testFailed": "آزمایش اتصال ناموفق بود",
"channel.testSuccess": "آزمایش اتصال موفقیت‌آمیز بود",
"channel.updateFailed": "به‌روزرسانی وضعیت ناموفق بود",
+ "channel.userId": "شناسه کاربری شما در پلتفرم",
+ "channel.userIdHint": "شناسه کاربری شما در این پلتفرم. هوش مصنوعی می‌تواند از آن برای ارسال پیام‌های مستقیم به شما استفاده کند.",
"channel.validationError": "لطفاً شناسه برنامه و توکن را وارد کنید",
"channel.verificationToken": "توکن تأیید",
"channel.verificationTokenHint": "اختیاری. برای تأیید منبع رویداد وبهوک استفاده می‌شود.",
diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.json
index 899a2ff8e22..237f0b2a419 100644
--- a/locales/fa-IR/chat.json
+++ b/locales/fa-IR/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "حذف و بازتولید",
"messageAction.deleteDisabledByThreads": "این پیام دارای زیرموضوع است و قابل حذف نیست",
"messageAction.expand": "باز کردن پیام",
+ "messageAction.interrupted": "قطع شد",
+ "messageAction.interruptedHint": "به جای آن چه کاری باید انجام دهم؟",
"messageAction.reaction": "افزودن واکنش",
"messageAction.regenerate": "بازتولید",
"messages.dm.sentTo": "فقط برای {{name}} قابل مشاهده است",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "همه فراخوانی‌های ابزار به‌طور خودکار تأیید شوند",
"tool.intervention.mode.manual": "دستی",
"tool.intervention.mode.manualDesc": "برای هر فراخوانی تأیید دستی لازم است",
+ "tool.intervention.pending": "در انتظار",
"tool.intervention.reject": "رد کردن",
"tool.intervention.rejectAndContinue": "رد و تلاش مجدد",
"tool.intervention.rejectOnly": "رد کردن",
"tool.intervention.rejectReasonPlaceholder": "ارائه دلیل به نماینده کمک می‌کند تا مرزهای شما را درک کرده و عملکرد آینده را بهبود دهد",
"tool.intervention.rejectTitle": "رد این فراخوانی مهارت",
"tool.intervention.rejectedWithReason": "این فراخوانی مهارت رد شد: {{reason}}",
+ "tool.intervention.scrollToIntervention": "مشاهده",
"tool.intervention.toolAbort": "شما این فراخوانی مهارت را لغو کردید",
"tool.intervention.toolRejected": "این فراخوانی مهارت رد شد",
"toolAuth.authorize": "مجازسازی",
diff --git a/locales/fa-IR/models.json b/locales/fa-IR/models.json
index 22142c9808b..1ecac76bdce 100644
--- a/locales/fa-IR/models.json
+++ b/locales/fa-IR/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "یک مدل استدلالی داخلی جدید با ۸۰ هزار زنجیره تفکر و ورودی ۱ میلیون توکن، با عملکردی در سطح مدل‌های برتر جهانی.",
"MiniMax-M2-Stable.description": "طراحی‌شده برای کدنویسی کارآمد و جریان‌های کاری عامل‌محور، با هم‌زمانی بالاتر برای استفاده تجاری.",
"MiniMax-M2.1-Lightning.description": "قابلیت‌های قدرتمند برنامه‌نویسی چندزبانه با تجربه‌ای کاملاً ارتقاء‌یافته. سریع‌تر و کارآمدتر.",
- "MiniMax-M2.1-highspeed.description": "قابلیت‌های قدرتمند برنامه‌نویسی چندزبانه با استنتاج سریع‌تر و کارآمدتر.",
"MiniMax-M2.1.description": "MiniMax-M2.1 یک مدل بزرگ متن‌باز پیشرفته از MiniMax است که بر حل وظایف پیچیده دنیای واقعی تمرکز دارد. نقاط قوت اصلی آن شامل توانایی برنامه‌نویسی چندزبانه و قابلیت عمل به‌عنوان یک عامل هوشمند برای حل مسائل پیچیده است.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: همان عملکرد، سریع‌تر و چابک‌تر (تقریباً 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: همان عملکرد M2.5 با استنتاج سریع‌تر.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku سریع‌ترین و فشرده‌ترین مدل Anthropic است که برای پاسخ‌های تقریباً فوری با عملکرد سریع و دقیق طراحی شده است.",
"claude-3-opus-20240229.description": "Claude 3 Opus قدرتمندترین مدل Anthropic برای وظایف بسیار پیچیده است که در عملکرد، هوش، روانی و درک زبان برتری دارد.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet تعادل بین هوش و سرعت را برای بارهای کاری سازمانی برقرار می‌کند و با هزینه کمتر، بهره‌وری بالا و استقرار قابل اعتماد در مقیاس وسیع را ارائه می‌دهد.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 سریع‌ترین و هوشمندترین مدل Haiku Anthropic است که با سرعت فوق‌العاده و تفکر گسترده ارائه می‌شود.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 سریع‌ترین و هوشمندترین مدل Haiku شرکت Anthropic است که با سرعت فوق‌العاده و توانایی استدلال پیشرفته ارائه می‌شود.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 سریع‌ترین و هوشمندترین مدل Haiku از Anthropic است که با سرعت برق‌آسا و توانایی استدلال پیشرفته ارائه می‌شود.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking یک نسخه پیشرفته است که می‌تواند فرآیند استدلال خود را آشکار کند.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 جدیدترین و توانمندترین مدل Anthropic برای وظایف بسیار پیچیده است که در عملکرد، هوش، روانی و درک برتری دارد.",
- "claude-opus-4-20250514.description": "Claude Opus 4 قدرتمندترین مدل Anthropic برای وظایف بسیار پیچیده است که در عملکرد، هوش، روانی و درک برتری دارد.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 جدیدترین و توانمندترین مدل شرکت Anthropic برای انجام وظایف بسیار پیچیده است که در عملکرد، هوش، روانی و درک برتری دارد.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 قدرتمندترین مدل شرکت Anthropic برای انجام وظایف بسیار پیچیده است که در عملکرد، هوش، روانی و فهم برتری دارد.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 مدل پرچم‌دار Anthropic است که هوش برجسته را با عملکرد مقیاس‌پذیر ترکیب می‌کند و برای وظایف پیچیده‌ای که نیاز به پاسخ‌های باکیفیت و استدلال دارند، ایده‌آل است.",
- "claude-opus-4-6.description": "Claude Opus 4.6 هوشمندترین مدل Anthropic برای ساخت عوامل و کدنویسی است.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 هوشمندترین مدل شرکت Anthropic برای ساخت عوامل و کدنویسی است.",
"claude-opus-4.5.description": "Claude Opus 4.5 مدل پرچمدار Anthropic است که هوش برتر را با عملکرد مقیاس‌پذیر برای وظایف پیچیده و استدلال با کیفیت بالا ترکیب می‌کند.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 هوشمندترین مدل Anthropic برای ساخت عوامل و کدنویسی است.",
"claude-opus-4.6.description": "Claude Opus 4.6 هوشمندترین مدل Anthropic برای ساخت عوامل و کدنویسی است.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking می‌تواند پاسخ‌های تقریباً فوری یا تفکر گام‌به‌گام طولانی با فرآیند قابل مشاهده تولید کند.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 هوشمندترین مدل Anthropic تا به امروز است که پاسخ‌های تقریباً فوری یا تفکر مرحله‌به‌مرحله گسترده با کنترل دقیق برای کاربران API ارائه می‌دهد.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 هوشمندترین مدل Anthropic تا به امروز است.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6 بهترین ترکیب سرعت و هوش Anthropic است.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 می‌تواند پاسخ‌های تقریباً فوری یا تفکر مرحله‌به‌مرحله طولانی با فرآیند قابل مشاهده تولید کند.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 هوشمندترین مدل شرکت Anthropic تا به امروز است.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 بهترین ترکیب سرعت و هوش شرکت Anthropic است.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 هوشمندترین مدل Anthropic تا به امروز است.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 بهترین ترکیب از سرعت و هوش را ارائه می‌دهد.",
"claude-sonnet-4.description": "Claude Sonnet 4 می‌تواند پاسخ‌های تقریباً فوری یا استدلال گام‌به‌گام طولانی‌تری که کاربران می‌توانند مشاهده کنند، تولید کند. کاربران API می‌توانند به‌طور دقیق کنترل کنند که مدل چه مدت فکر کند.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 یک مدل استدلال نسل بعدی با توانایی استدلال پیچیده و زنجیره تفکر برای وظایف تحلیلی عمیق است.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 یک مدل استدلال نسل بعدی با قابلیت‌های استدلال پیچیده‌تر و زنجیره‌ای از تفکر است.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 یک مدل بینایی-زبانی MoE مبتنی بر DeepSeekMoE-27B با فعال‌سازی پراکنده است که تنها با ۴.۵ میلیارد پارامتر فعال عملکرد قوی‌ای دارد. این مدل در پاسخ به سوالات بصری، OCR، درک اسناد/جداول/نمودارها و پایه‌گذاری بصری عملکرد درخشانی دارد.",
- "deepseek-chat.description": "DeepSeek V3.2 تعادل بین استدلال و طول خروجی را برای وظایف روزانه QA و عامل برقرار می‌کند. معیارهای عمومی به سطح GPT-5 می‌رسند و این مدل اولین مدلی است که تفکر را در استفاده از ابزار ادغام می‌کند و ارزیابی‌های عامل متن‌باز را رهبری می‌کند.",
+ "deepseek-chat.description": "یک مدل متن‌باز جدید که توانایی‌های عمومی و کدنویسی را ترکیب می‌کند. این مدل گفتگوی عمومی مدل چت و کدنویسی قوی مدل کدنویس را حفظ کرده و با تنظیم بهتر ترجیحات ارائه می‌شود. DeepSeek-V2.5 همچنین نوشتن و پیروی از دستورات را بهبود می‌بخشد.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B یک مدل زبان برنامه‌نویسی است که با ۲ تریلیون توکن (۸۷٪ کد، ۱۳٪ متن چینی/انگلیسی) آموزش دیده است. این مدل دارای پنجره متنی ۱۶K و وظایف تکمیل در میانه است که تکمیل کد در سطح پروژه و پر کردن قطعات کد را فراهم می‌کند.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 یک مدل کدنویسی MoE متن‌باز است که در وظایف برنامه‌نویسی عملکردی هم‌سطح با GPT-4 Turbo دارد.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 یک مدل کدنویسی MoE متن‌باز است که در وظایف برنامه‌نویسی عملکردی هم‌سطح با GPT-4 Turbo دارد.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "نسخه کامل سریع DeepSeek R1 با جستجوی وب در زمان واقعی که توانایی در مقیاس ۶۷۱B را با پاسخ‌دهی سریع‌تر ترکیب می‌کند.",
"deepseek-r1-online.description": "نسخه کامل DeepSeek R1 با ۶۷۱ میلیارد پارامتر و جستجوی وب در زمان واقعی که درک و تولید قوی‌تری را ارائه می‌دهد.",
"deepseek-r1.description": "DeepSeek-R1 پیش از یادگیری تقویتی از داده‌های شروع سرد استفاده می‌کند و در وظایف ریاضی، کدنویسی و استدلال عملکردی هم‌سطح با OpenAI-o1 دارد.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking یک مدل استدلال عمیق است که زنجیره‌ای از تفکر را قبل از خروجی‌ها برای دقت بالاتر تولید می‌کند و نتایج رقابتی برتر و استدلالی قابل مقایسه با Gemini-3.0-Pro ارائه می‌دهد.",
+ "deepseek-reasoner.description": "حالت تفکر DeepSeek V3.2 قبل از پاسخ نهایی یک زنجیره تفکر ارائه می‌دهد تا دقت را بهبود بخشد.",
"deepseek-v2.description": "DeepSeek V2 یک مدل MoE کارآمد است که پردازش مقرون‌به‌صرفه را امکان‌پذیر می‌سازد.",
"deepseek-v2:236b.description": "DeepSeek V2 236B مدل متمرکز بر کدنویسی DeepSeek است که توانایی بالایی در تولید کد دارد.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 یک مدل MoE با ۶۷۱ میلیارد پارامتر است که در برنامه‌نویسی، توانایی‌های فنی، درک زمینه و پردازش متون بلند عملکرد برجسته‌ای دارد.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K یک مدل تفکر سریع با زمینه ۳۲K برای استدلال پیچیده و گفت‌وگوی چندمرحله‌ای است.",
"ernie-x1.1-preview.description": "پیش‌نمایش ERNIE X1.1 یک مدل تفکر برای ارزیابی و آزمایش است.",
"ernie-x1.1.description": "ERNIE X1.1 یک مدل تفکر پیش‌نمایش برای ارزیابی و آزمایش است.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5 که توسط تیم Seed ByteDance ساخته شده است، از ویرایش و ترکیب چندتصویری پشتیبانی می‌کند. ویژگی‌های آن شامل سازگاری موضوعی بهبود یافته، پیروی دقیق از دستورالعمل‌ها، درک منطق فضایی، بیان زیبایی‌شناختی، طراحی پوستر و لوگو با رندر متن-تصویر دقیق است.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 که توسط تیم Seed ByteDance ساخته شده است، از ورودی‌های متن و تصویر برای تولید تصویر با کیفیت بالا و قابل کنترل از طریق درخواست‌ها پشتیبانی می‌کند.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 یک مدل تولید تصویر از ByteDance Seed است که از ورودی‌های متنی و تصویری پشتیبانی می‌کند و تولید تصاویر با کیفیت بالا و قابل کنترل را ارائه می‌دهد. این مدل تصاویر را از درخواست‌های متنی تولید می‌کند.",
"fal-ai/flux-kontext/dev.description": "مدل FLUX.1 با تمرکز بر ویرایش تصویر که از ورودی‌های متنی و تصویری پشتیبانی می‌کند.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] ورودی‌های متنی و تصاویر مرجع را می‌پذیرد و امکان ویرایش‌های محلی هدفمند و تغییرات پیچیده در صحنه کلی را فراهم می‌کند.",
"fal-ai/flux/krea.description": "Flux Krea [dev] یک مدل تولید تصویر با تمایل زیبایی‌شناسی به تصاویر طبیعی و واقع‌گرایانه‌تر است.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "یک مدل قدرتمند بومی چندوجهی برای تولید تصویر.",
"fal-ai/imagen4/preview.description": "مدل تولید تصویر با کیفیت بالا از گوگل.",
"fal-ai/nano-banana.description": "Nano Banana جدیدترین، سریع‌ترین و کارآمدترین مدل چندوجهی بومی گوگل است که امکان تولید و ویرایش تصویر از طریق مکالمه را فراهم می‌کند.",
- "fal-ai/qwen-image-edit.description": "یک مدل ویرایش تصویر حرفه‌ای از تیم Qwen که از ویرایش‌های معنایی و ظاهری، ویرایش دقیق متن چینی/انگلیسی، انتقال سبک، چرخش و موارد دیگر پشتیبانی می‌کند.",
- "fal-ai/qwen-image.description": "یک مدل قدرتمند تولید تصویر از تیم Qwen با رندر متن چینی قوی و سبک‌های بصری متنوع.",
+ "fal-ai/qwen-image-edit.description": "یک مدل حرفه‌ای ویرایش تصویر از تیم Qwen که از ویرایش‌های معنایی و ظاهری پشتیبانی می‌کند، متن‌های چینی و انگلیسی را به دقت ویرایش می‌کند و ویرایش‌های با کیفیت بالا مانند انتقال سبک و چرخش اشیاء را امکان‌پذیر می‌سازد.",
+ "fal-ai/qwen-image.description": "یک مدل قدرتمند تولید تصویر از تیم Qwen با ارائه متن چینی چشمگیر و سبک‌های بصری متنوع.",
"flux-1-schnell.description": "مدل تبدیل متن به تصویر با ۱۲ میلیارد پارامتر از Black Forest Labs که از تقطیر انتشار تقابلی نهفته برای تولید تصاویر با کیفیت بالا در ۱ تا ۴ مرحله استفاده می‌کند. این مدل با جایگزین‌های بسته رقابت می‌کند و تحت مجوز Apache-2.0 برای استفاده شخصی، تحقیقاتی و تجاری منتشر شده است.",
"flux-dev.description": "FLUX.1 [dev] یک مدل تقطیر شده با وزن‌های باز برای استفاده غیرتجاری است. این مدل کیفیت تصویر نزدیک به حرفه‌ای و پیروی از دستورالعمل را حفظ می‌کند و در عین حال کارآمدتر اجرا می‌شود و منابع را بهتر از مدل‌های استاندارد هم‌سایز استفاده می‌کند.",
"flux-kontext-max.description": "تولید و ویرایش تصویر متنی-زمینه‌ای پیشرفته که متن و تصویر را برای نتایج دقیق و منسجم ترکیب می‌کند.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro پرچم‌دار مدل‌های استدلالی گوگل است که از زمینه‌های طولانی برای انجام وظایف پیچیده پشتیبانی می‌کند.",
"gemini-3-flash-preview.description": "Gemini 3 Flash هوشمندترین مدل طراحی‌شده برای سرعت است که هوش پیشرفته را با قابلیت جست‌وجوی دقیق ترکیب می‌کند.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro) مدل تولید تصویر گوگل است که از گفتگوی چندوجهی نیز پشتیبانی می‌کند.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) مدل تولید تصویر گوگل است و همچنین از چت چندوجهی پشتیبانی می‌کند.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) مدل تولید تصویر گوگل است که از چت چندوجهی نیز پشتیبانی می‌کند.",
"gemini-3-pro-preview.description": "Gemini 3 Pro قدرتمندترین مدل عامل و کدنویسی احساسی گوگل است که تعاملات بصری غنی‌تر و تعامل عمیق‌تری را بر پایه استدلال پیشرفته ارائه می‌دهد.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) سریع‌ترین مدل تولید تصویر بومی گوگل با پشتیبانی از تفکر، تولید و ویرایش تصویر مکالمه‌ای است.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) کیفیت تصویر سطح حرفه‌ای را با سرعت Flash ارائه می‌دهد و از چت چندوجهی پشتیبانی می‌کند.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) سریع‌ترین مدل تولید تصویر گوگل با پشتیبانی از تفکر، تولید و ویرایش تصویری مکالمه‌ای است.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview اقتصادی‌ترین مدل چندوجهی گوگل است که برای وظایف عامل‌محور با حجم بالا، ترجمه و پردازش داده‌ها بهینه شده است.",
"gemini-3.1-pro-preview.description": "پیش‌نمایش Gemini 3.1 Pro قابلیت‌های استدلال بهبود یافته را به Gemini 3 Pro اضافه می‌کند و از سطح تفکر متوسط پشتیبانی می‌کند.",
"gemini-flash-latest.description": "آخرین نسخه منتشرشده از Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "پیشرفته‌ترین و قدرتمندترین مدل ما، طراحی‌شده برای وظایف پیچیده سازمانی با عملکرد برجسته.",
"jamba-mini.description": "کارآمدترین مدل در کلاس خود، با تعادل بین سرعت و کیفیت و ردپای کوچک‌تر.",
"jina-deepsearch-v1.description": "DeepSearch جستجوی وب، خواندن و استدلال را برای تحقیقات جامع ترکیب می‌کند. آن را مانند عاملی تصور کنید که وظیفه تحقیق شما را می‌گیرد، جستجوهای گسترده‌ای با تکرارهای متعدد انجام می‌دهد و سپس پاسخ تولید می‌کند. این فرآیند شامل تحقیق مداوم، استدلال و حل مسئله از زوایای مختلف است و اساساً با مدل‌های زبانی استاندارد یا سیستم‌های RAG سنتی متفاوت است.",
+ "k2p5.description": "Kimi K2.5 جامع‌ترین مدل Kimi تا به امروز است که دارای معماری چندوجهی بومی است و از ورودی‌های تصویری و متنی، حالت‌های 'تفکر' و 'غیرتفکر' و وظایف مکالمه‌ای و عامل پشتیبانی می‌کند.",
"kimi-k2-0711-preview.description": "kimi-k2 یک مدل پایه MoE با قابلیت‌های قوی در برنامه‌نویسی و عامل‌سازی است (۱ تریلیون پارامتر کل، ۳۲ میلیارد فعال) که در معیارهای استدلال، برنامه‌نویسی، ریاضی و عامل از سایر مدل‌های متن‌باز پیشی می‌گیرد.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview دارای پنجره متنی ۲۵۶هزار توکن، برنامه‌نویسی عامل‌محور قوی‌تر، کیفیت بهتر کد فرانت‌اند و درک بهتر از زمینه است.",
"kimi-k2-instruct.description": "Kimi K2 Instruct مدل رسمی استدلال Kimi با پشتیبانی از زمینه طولانی برای کدنویسی، پرسش‌وپاسخ و موارد دیگر است.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ یک مدل استدلال در خانواده Qwen است. در مقایسه با مدل‌های تنظیم‌شده با دستورالعمل استاندارد، توانایی تفکر و استدلال آن عملکرد پایین‌دستی را به‌ویژه در مسائل دشوار به‌طور قابل توجهی بهبود می‌بخشد. QwQ-32B یک مدل استدلال میان‌رده است که با مدل‌های برتر مانند DeepSeek-R1 و o1-mini رقابت می‌کند.",
"qwq_32b.description": "مدل استدلال میان‌رده در خانواده Qwen. در مقایسه با مدل‌های تنظیم‌شده با دستورالعمل استاندارد، توانایی تفکر و استدلال QwQ عملکرد پایین‌دستی را به‌ویژه در مسائل دشوار به‌طور قابل توجهی بهبود می‌بخشد.",
"r1-1776.description": "R1-1776 نسخه پس‌آموزشی مدل DeepSeek R1 است که برای ارائه اطلاعات واقعی، بدون سانسور و بی‌طرف طراحی شده است.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro توسط ByteDance از متن به ویدیو، تصویر به ویدیو (فریم اول، فریم اول+آخر) و تولید صوتی همگام با تصاویر پشتیبانی می‌کند.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite توسط BytePlus دارای تولید تقویت‌شده با بازیابی وب برای اطلاعات بلادرنگ، تفسیر پیچیده درخواست‌ها و بهبود سازگاری مرجع برای خلق بصری حرفه‌ای است.",
"solar-mini-ja.description": "Solar Mini (ژاپنی) نسخه‌ای از Solar Mini با تمرکز بر زبان ژاپنی است که در عین حال عملکرد قوی و کارآمدی در زبان‌های انگلیسی و کره‌ای حفظ می‌کند.",
"solar-mini.description": "Solar Mini یک مدل زبانی فشرده است که عملکردی بهتر از GPT-3.5 دارد و با پشتیبانی چندزبانه قوی از زبان‌های انگلیسی و کره‌ای، راه‌حلی کارآمد با حجم کم ارائه می‌دهد.",
"solar-pro.description": "Solar Pro یک مدل زبانی هوشمند از Upstage است که برای پیروی از دستورالعمل‌ها روی یک GPU طراحی شده و امتیاز IFEval بالای ۸۰ دارد. در حال حاضر از زبان انگلیسی پشتیبانی می‌کند؛ انتشار کامل آن برای نوامبر ۲۰۲۴ با پشتیبانی زبانی گسترده‌تر و زمینه طولانی‌تر برنامه‌ریزی شده است.",
diff --git a/locales/fa-IR/onboarding.json b/locales/fa-IR/onboarding.json
index 0a4d8623248..9e8124c5c5c 100644
--- a/locales/fa-IR/onboarding.json
+++ b/locales/fa-IR/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "آموزش نماینده",
+ "agent.completionSubtitle": "دستیار شما تنظیم شده و آماده استفاده است.",
+ "agent.completionTitle": "همه چیز آماده است!",
+ "agent.enterApp": "ورود به برنامه",
+ "agent.greeting.emojiLabel": "ایموجی",
+ "agent.greeting.nameLabel": "نام",
+ "agent.greeting.namePlaceholder": "مثلاً لومی، اطلس، نکو...",
+ "agent.greeting.prompt": "به من یک نام، یک حس و یک ایموجی بدهید",
+ "agent.greeting.vibeLabel": "حس / طبیعت",
+ "agent.greeting.vibePlaceholder": "مثلاً گرم و دوستانه، تیز و مستقیم...",
+ "agent.history.current": "فعلی",
+ "agent.history.title": "موضوعات تاریخچه",
+ "agent.modeSwitch.agent": "مکالمه‌ای",
+ "agent.modeSwitch.classic": "کلاسیک",
+ "agent.modeSwitch.debug": "صادرات اشکال‌زدایی",
+ "agent.modeSwitch.label": "حالت آموزش خود را انتخاب کنید",
+ "agent.modeSwitch.reset": "بازنشانی جریان",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "رد کردن آموزش",
+ "agent.stage.agentIdentity": "هویت نماینده",
+ "agent.stage.painPoints": "نقاط ضعف",
+ "agent.stage.proSettings": "تنظیمات پیشرفته",
+ "agent.stage.responseLanguage": "زبان پاسخ",
+ "agent.stage.summary": "خلاصه",
+ "agent.stage.userIdentity": "درباره شما",
+ "agent.stage.workContext": "زمینه کاری",
+ "agent.stage.workStyle": "سبک کاری",
+ "agent.subtitle": "تنظیمات را در یک مکالمه اختصاصی آموزش کامل کنید.",
+ "agent.summaryHint": "اگر خلاصه تنظیمات درست به نظر می‌رسد، اینجا تمام کنید.",
+ "agent.telemetryAllow": "اجازه دادن به تله‌متری",
+ "agent.telemetryDecline": "نه، ممنون",
+ "agent.telemetryHint": "همچنین می‌توانید با کلمات خود پاسخ دهید.",
+ "agent.title": "آموزش مکالمه",
+ "agent.welcome": "...هم؟ تازه بیدار شدم — ذهنم خالیه. شما کی هستید؟ و — چه نامی باید داشته باشم؟ من هم به یک نام نیاز دارم.",
"back": "بازگشت",
"finish": "شروع کن",
"interests.area.business": "کسب‌وکار و استراتژی",
@@ -29,6 +63,7 @@
"next": "بعدی",
"proSettings.connectors.title": "ابزارهای مورد علاقه‌ات رو وصل کن",
"proSettings.devMode.title": "حالت توسعه‌دهنده",
+ "proSettings.model.fixed": "مدل پیش‌فرض در این محیط به {{provider}}/{{model}} تنظیم شده است.",
"proSettings.model.title": "مدل پیش‌فرض مورد استفاده عامل",
"proSettings.title": "تنظیم گزینه‌های پیشرفته از همین حالا",
"proSettings.title2": "چند ابزار رایج رو امتحان کن~",
diff --git a/locales/fa-IR/plugin.json b/locales/fa-IR/plugin.json
index 5a3a8e14160..c41944154ab 100644
--- a/locales/fa-IR/plugin.json
+++ b/locales/fa-IR/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "کپی کردن سند",
"builtins.lobe-agent-documents.apiName.createDocument": "ایجاد سند",
"builtins.lobe-agent-documents.apiName.editDocument": "ویرایش سند",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "فهرست اسناد",
"builtins.lobe-agent-documents.apiName.readDocument": "خواندن سند",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "خواندن سند با نام فایل",
"builtins.lobe-agent-documents.apiName.removeDocument": "حذف سند",
"builtins.lobe-agent-documents.apiName.renameDocument": "تغییر نام سند",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "به‌روزرسانی قانون بارگذاری",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "به‌روزرسانی یا درج سند با نام فایل",
"builtins.lobe-agent-documents.title": "اسناد عامل",
"builtins.lobe-agent-management.apiName.callAgent": "نماینده تماس",
"builtins.lobe-agent-management.apiName.createAgent": "ایجاد نماینده",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "محیط ابری",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "ایجاد گروهی عامل‌ها",
"builtins.lobe-group-agent-builder.apiName.createAgent": "ایجاد عامل",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "ایجاد گروه",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "دریافت اطلاعات عضو",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "دریافت مدل‌های موجود",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "نصب مهارت",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "مهارت‌ها",
"builtins.lobe-topic-reference.apiName.getTopicContext": "دریافت زمینه موضوع",
"builtins.lobe-topic-reference.title": "ارجاع به موضوع",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "پرسیدن سوال از کاربر",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "لغو پاسخ کاربر",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "دریافت وضعیت تعامل",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "رد کردن پاسخ کاربر",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "ارسال پاسخ کاربر",
+ "builtins.lobe-user-interaction.title": "تعامل با کاربر",
"builtins.lobe-user-memory.apiName.addContextMemory": "افزودن حافظه زمینه",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "افزودن حافظه تجربه",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "افزودن حافظه هویتی",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "جستجوی صفحات",
"builtins.lobe-web-browsing.inspector.noResults": "نتیجه‌ای یافت نشد",
"builtins.lobe-web-browsing.title": "جستجوی وب",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "پایان فرآیند آشنایی",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "خواندن وضعیت آشنایی",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "خواندن سند",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "ذخیره سوال کاربر",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "به‌روزرسانی سند",
+ "builtins.lobe-web-onboarding.title": "آشنایی کاربر",
"confirm": "تأیید",
"debug.arguments": "آرگومان‌ها",
"debug.error": "گزارش خطا",
diff --git a/locales/fa-IR/providers.json b/locales/fa-IR/providers.json
index 719a37a9de3..687e9a8a881 100644
--- a/locales/fa-IR/providers.json
+++ b/locales/fa-IR/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Jina AI که در سال 2020 تأسیس شد، یک شرکت پیشرو در زمینه جستجوی هوش مصنوعی است. پشته جستجوی آن شامل مدل‌های برداری، رتبه‌بندها و مدل‌های زبانی کوچک برای ساخت اپلیکیشن‌های جستجوی مولد و چندوجهی با کیفیت بالا است.",
"kimicodingplan.description": "Kimi Code از Moonshot AI دسترسی به مدل‌های Kimi شامل K2.5 را برای وظایف کدنویسی فراهم می‌کند.",
"lmstudio.description": "LM Studio یک اپلیکیشن دسکتاپ برای توسعه و آزمایش مدل‌های زبانی بزرگ روی رایانه شخصی شماست.",
- "lobehub.description": "LobeHub Cloud از API‌های رسمی برای دسترسی به مدل‌های هوش مصنوعی استفاده می‌کند و مصرف را با اعتباراتی که به توکن‌های مدل مرتبط هستند اندازه‌گیری می‌کند.",
"longcat.description": "لانگ‌کت مجموعه‌ای از مدل‌های بزرگ هوش مصنوعی تولیدی است که به‌طور مستقل توسط میتوآن توسعه داده شده است. این مدل‌ها برای افزایش بهره‌وری داخلی شرکت و امکان‌پذیر کردن کاربردهای نوآورانه از طریق معماری محاسباتی کارآمد و قابلیت‌های چندوجهی قدرتمند طراحی شده‌اند.",
"minimax.description": "MiniMax که در سال 2021 تأسیس شد، هوش مصنوعی چندمنظوره با مدل‌های پایه چندوجهی از جمله مدل‌های متنی با پارامترهای تریلیونی، مدل‌های گفتاری و تصویری توسعه می‌دهد و اپ‌هایی مانند Hailuo AI را ارائه می‌کند.",
"minimaxcodingplan.description": "طرح توکن MiniMax دسترسی به مدل‌های MiniMax شامل M2.7 را برای وظایف کدنویسی از طریق اشتراک با هزینه ثابت فراهم می‌کند.",
diff --git a/locales/fa-IR/ui.json b/locales/fa-IR/ui.json
index c7a987bea96..4e05ba683fe 100644
--- a/locales/fa-IR/ui.json
+++ b/locales/fa-IR/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "فقط می‌توانید فایل‌های تصویری بارگذاری کنید!",
"emojiPicker.upload": "بارگذاری",
"emojiPicker.uploadBtn": "برش و بارگذاری",
+ "form.other": "یا مستقیماً تایپ کنید",
+ "form.otherBack": "بازگشت به گزینه‌ها",
"form.reset": "بازنشانی",
+ "form.skip": "رد کردن",
"form.submit": "ارسال",
"form.unsavedChanges": "تغییرات ذخیره‌نشده",
"form.unsavedWarning": "تغییرات ذخیره‌نشده دارید. آیا مطمئن هستید که می‌خواهید خارج شوید؟",
diff --git a/locales/fr-FR/agent.json b/locales/fr-FR/agent.json
index 4270437e03d..26656e22e94 100644
--- a/locales/fr-FR/agent.json
+++ b/locales/fr-FR/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Veuillez copier cette URL et la coller dans le champ <bold>{{fieldName}}</bold> du portail développeur {{name}}.",
"channel.exportConfig": "Exporter la configuration",
"channel.feishu.description": "Connectez cet assistant à Feishu pour les discussions privées et de groupe.",
+ "channel.historyLimit": "Limite des messages historiques",
+ "channel.historyLimitHint": "Nombre par défaut de messages à récupérer lors de la lecture de l'historique du canal",
"channel.importConfig": "Importer la configuration",
"channel.importFailed": "Échec de l'importation de la configuration",
"channel.importInvalidFormat": "Format de fichier de configuration invalide",
@@ -78,6 +80,8 @@
"channel.secretToken": "Jeton secret du webhook",
"channel.secretTokenHint": "Optionnel. Utilisé pour vérifier les requêtes webhook provenant de Telegram.",
"channel.secretTokenPlaceholder": "Secret optionnel pour la vérification du webhook",
+ "channel.serverId": "ID du serveur / guilde par défaut",
+ "channel.serverIdHint": "Votre ID de serveur ou de guilde par défaut sur cette plateforme. L'IA l'utilise pour lister les canaux sans demander.",
"channel.settings": "Paramètres avancés",
"channel.settingsResetConfirm": "Êtes-vous sûr de vouloir réinitialiser les paramètres avancés par défaut ?",
"channel.settingsResetDefault": "Réinitialiser par défaut",
@@ -93,6 +97,8 @@
"channel.testFailed": "Échec du test de connexion",
"channel.testSuccess": "Test de connexion réussi",
"channel.updateFailed": "Échec de la mise à jour du statut",
+ "channel.userId": "Votre ID utilisateur sur la plateforme",
+ "channel.userIdHint": "Votre ID utilisateur sur cette plateforme. L'IA peut l'utiliser pour vous envoyer des messages directs.",
"channel.validationError": "Veuillez remplir l'ID de l'application et le jeton",
"channel.verificationToken": "Jeton de vérification",
"channel.verificationTokenHint": "Optionnel. Utilisé pour vérifier la source des événements webhook.",
diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.json
index be2a9103595..f9fe3390f1a 100644
--- a/locales/fr-FR/chat.json
+++ b/locales/fr-FR/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Supprimer et régénérer",
"messageAction.deleteDisabledByThreads": "Ce message contient un sous-sujet et ne peut pas être supprimé",
"messageAction.expand": "Développer le message",
+ "messageAction.interrupted": "Interrompu",
+ "messageAction.interruptedHint": "Que dois-je faire à la place ?",
"messageAction.reaction": "Ajouter une réaction",
"messageAction.regenerate": "Régénérer",
"messages.dm.sentTo": "Visible uniquement par {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Approuver automatiquement toutes les exécutions d'outils",
"tool.intervention.mode.manual": "Manuel",
"tool.intervention.mode.manualDesc": "Approbation manuelle requise pour chaque appel",
+ "tool.intervention.pending": "En attente",
"tool.intervention.reject": "Rejeter",
"tool.intervention.rejectAndContinue": "Rejeter et réessayer",
"tool.intervention.rejectOnly": "Rejeter",
"tool.intervention.rejectReasonPlaceholder": "Une raison aide l'agent à comprendre vos limites et à améliorer ses actions futures",
"tool.intervention.rejectTitle": "Rejeter cet appel de compétence",
"tool.intervention.rejectedWithReason": "Cet appel de compétence a été rejeté : {{reason}}",
+ "tool.intervention.scrollToIntervention": "Voir",
"tool.intervention.toolAbort": "Vous avez annulé cet appel de compétence",
"tool.intervention.toolRejected": "Cet appel de compétence a été rejeté",
"toolAuth.authorize": "Autoriser",
diff --git a/locales/fr-FR/models.json b/locales/fr-FR/models.json
index 5c558158a6a..907098ef3bb 100644
--- a/locales/fr-FR/models.json
+++ b/locales/fr-FR/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Un nouveau modèle de raisonnement interne avec 80 000 chaînes de pensée et 1 million d’entrées, offrant des performances comparables aux meilleurs modèles mondiaux.",
"MiniMax-M2-Stable.description": "Conçu pour un codage efficace et des flux de travail d’agents, avec une plus grande simultanéité pour un usage commercial.",
"MiniMax-M2.1-Lightning.description": "Puissantes capacités de programmation multilingue, expérience de codage entièrement améliorée. Plus rapide et plus efficace.",
- "MiniMax-M2.1-highspeed.description": "Capacités de programmation multilingues puissantes avec une inférence plus rapide et plus efficace.",
"MiniMax-M2.1.description": "MiniMax-M2.1 est un modèle phare open source de MiniMax, conçu pour résoudre des tâches complexes du monde réel. Ses principaux atouts résident dans ses capacités de programmation multilingue et sa faculté à résoudre des problèmes complexes en tant qu'agent.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning : Même performance, plus rapide et plus agile (environ 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed : Même performance que M2.5 avec une inférence plus rapide.",
@@ -307,18 +306,18 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku est le modèle le plus rapide et le plus compact d’Anthropic, conçu pour des réponses quasi instantanées avec des performances rapides et précises.",
"claude-3-opus-20240229.description": "Claude 3 Opus est le modèle le plus puissant d’Anthropic pour les tâches complexes, excellent en performance, intelligence, fluidité et compréhension.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet équilibre intelligence et rapidité pour les charges de travail en entreprise, offrant une grande utilité à moindre coût et un déploiement fiable à grande échelle.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 est le modèle Haiku le plus rapide et le plus intelligent d'Anthropic, avec une vitesse fulgurante et une pensée étendue.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 est le modèle Haiku le plus rapide et le plus intelligent d'Anthropic, avec une vitesse fulgurante et un raisonnement étendu.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 est le modèle Haiku le plus rapide et le plus intelligent d’Anthropic, avec une vitesse fulgurante et un raisonnement étendu.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking est une variante avancée capable de révéler son processus de raisonnement.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 est le dernier modèle d'Anthropic, le plus performant pour des tâches hautement complexes, excelle en performance, intelligence, fluidité et compréhension.",
- "claude-opus-4-20250514.description": "Claude Opus 4 est le modèle le plus puissant d'Anthropic pour des tâches hautement complexes, excelle en performance, intelligence, fluidité et compréhension.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 est le dernier modèle d'Anthropic, le plus performant pour les tâches hautement complexes, excelle en performance, intelligence, fluidité et compréhension.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 est le modèle le plus puissant d'Anthropic pour les tâches hautement complexes, excelle en performance, intelligence, fluidité et compréhension.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 est le modèle phare d’Anthropic, combinant intelligence exceptionnelle et performance évolutive, idéal pour les tâches complexes nécessitant des réponses et un raisonnement de très haute qualité.",
"claude-opus-4-6.description": "Claude Opus 4.6 est le modèle le plus intelligent d'Anthropic pour la création d'agents et le codage.",
"claude-opus-4.5.description": "Claude Opus 4.5 est le modèle phare d’Anthropic, combinant une intelligence de premier ordre avec des performances évolutives pour des tâches complexes et un raisonnement de haute qualité.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 est le modèle le plus intelligent d’Anthropic pour la création d’agents et le codage.",
"claude-opus-4.6.description": "Claude Opus 4.6 est le modèle le plus intelligent d’Anthropic pour la création d’agents et le codage.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking peut produire des réponses quasi instantanées ou une réflexion détaillée étape par étape avec un processus visible.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 est le modèle le plus intelligent d'Anthropic à ce jour, offrant des réponses quasi-instantanées ou une pensée détaillée étape par étape avec un contrôle précis pour les utilisateurs d'API.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 peut produire des réponses quasi instantanées ou un raisonnement détaillé étape par étape avec un processus visible.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 est le modèle le plus intelligent d'Anthropic à ce jour.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 est la meilleure combinaison de vitesse et d'intelligence d'Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 est le modèle le plus intelligent d’Anthropic à ce jour.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 est un modèle de raisonnement nouvelle génération avec un raisonnement complexe renforcé et une chaîne de pensée pour les tâches d’analyse approfondie.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 est un modèle de raisonnement de nouvelle génération avec des capacités renforcées de raisonnement complexe et de chaîne de pensée.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 est un modèle vision-langage MoE basé sur DeepSeekMoE-27B avec activation clairsemée, atteignant de hautes performances avec seulement 4,5B de paramètres actifs. Il excelle en QA visuelle, OCR, compréhension de documents/tableaux/graphes et ancrage visuel.",
- "deepseek-chat.description": "DeepSeek V3.2 équilibre le raisonnement et la longueur des sorties pour les tâches quotidiennes de QA et d'agent. Les benchmarks publics atteignent les niveaux de GPT-5, et il est le premier à intégrer la pensée dans l'utilisation des outils, menant les évaluations d'agents open source.",
+ "deepseek-chat.description": "Un nouveau modèle open-source combinant des capacités générales et de codage. Il préserve le dialogue général du modèle de chat et les solides compétences en codage du modèle de programmeur, avec un meilleur alignement des préférences. DeepSeek-V2.5 améliore également l'écriture et le suivi des instructions.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B est un modèle de langage pour le code entraîné sur 2T de tokens (87 % de code, 13 % de texte en chinois/anglais). Il introduit une fenêtre de contexte de 16K et des tâches de remplissage au milieu, offrant une complétion de code à l’échelle du projet et un remplissage de fragments.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 est un modèle de code MoE open source performant sur les tâches de programmation, comparable à GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 est un modèle de code MoE open source performant sur les tâches de programmation, comparable à GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Version complète rapide de DeepSeek R1 avec recherche web en temps réel, combinant des capacités à l’échelle de 671B et des réponses plus rapides.",
"deepseek-r1-online.description": "Version complète de DeepSeek R1 avec 671B de paramètres et recherche web en temps réel, offrant une meilleure compréhension et génération.",
"deepseek-r1.description": "DeepSeek-R1 utilise des données de démarrage à froid avant l’apprentissage par renforcement et affiche des performances comparables à OpenAI-o1 en mathématiques, codage et raisonnement.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking est un modèle de raisonnement profond qui génère une chaîne de pensée avant les sorties pour une précision accrue, avec des résultats de compétition de haut niveau et un raisonnement comparable à Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "Le mode de réflexion DeepSeek V3.2 produit une chaîne de raisonnement avant la réponse finale pour améliorer la précision.",
"deepseek-v2.description": "DeepSeek V2 est un modèle MoE efficace pour un traitement économique.",
"deepseek-v2:236b.description": "DeepSeek V2 236B est le modèle axé sur le code de DeepSeek avec une forte génération de code.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 est un modèle MoE de 671B paramètres avec des points forts en programmation, compréhension du contexte et traitement de longs textes.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K est un modèle de réflexion rapide avec un contexte de 32K pour le raisonnement complexe et les dialogues multi-tours.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview est une préversion de modèle de réflexion pour l’évaluation et les tests.",
"ernie-x1.1.description": "ERNIE X1.1 est un modèle de réflexion en aperçu pour évaluation et test.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, développé par l'équipe Seed de ByteDance, prend en charge l'édition et la composition multi-images. Il offre une meilleure cohérence des sujets, un suivi précis des instructions, une compréhension de la logique spatiale, une expression esthétique, une mise en page de posters et la conception de logos avec un rendu texte-image de haute précision.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, développé par ByteDance Seed, prend en charge les entrées texte et image pour une génération d'images hautement contrôlable et de haute qualité à partir de prompts.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 est un modèle de génération d'images de ByteDance Seed, prenant en charge les entrées textuelles et visuelles avec une génération d'images hautement contrôlable et de haute qualité. Il génère des images à partir de descriptions textuelles.",
"fal-ai/flux-kontext/dev.description": "Modèle FLUX.1 axé sur l’édition d’images, prenant en charge les entrées texte et image.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] accepte des textes et des images de référence en entrée, permettant des modifications locales ciblées et des transformations globales complexes de scènes.",
"fal-ai/flux/krea.description": "Flux Krea [dev] est un modèle de génération d’images avec une préférence esthétique pour des images plus réalistes et naturelles.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Un puissant modèle natif multimodal de génération d’images.",
"fal-ai/imagen4/preview.description": "Modèle de génération d’images de haute qualité développé par Google.",
"fal-ai/nano-banana.description": "Nano Banana est le modèle multimodal natif le plus récent, le plus rapide et le plus efficace de Google, permettant la génération et l’édition d’images via la conversation.",
- "fal-ai/qwen-image-edit.description": "Un modèle professionnel d'édition d'images de l'équipe Qwen, prenant en charge les modifications sémantiques et d'apparence, l'édition précise de texte en chinois/anglais, le transfert de style, la rotation et plus encore.",
- "fal-ai/qwen-image.description": "Un modèle puissant de génération d'images de l'équipe Qwen avec un rendu texte chinois robuste et des styles visuels variés.",
+ "fal-ai/qwen-image-edit.description": "Un modèle professionnel d'édition d'images de l'équipe Qwen qui prend en charge les modifications sémantiques et d'apparence, édite précisément le texte en chinois et en anglais, et permet des modifications de haute qualité telles que le transfert de style et la rotation d'objets.",
+ "fal-ai/qwen-image.description": "Un modèle puissant de génération d'images de l'équipe Qwen avec un rendu impressionnant du texte en chinois et des styles visuels variés.",
"flux-1-schnell.description": "Modèle texte-vers-image à 12 milliards de paramètres de Black Forest Labs utilisant la distillation par diffusion latente adversariale pour générer des images de haute qualité en 1 à 4 étapes. Il rivalise avec les alternatives propriétaires et est publié sous licence Apache-2.0 pour un usage personnel, de recherche et commercial.",
"flux-dev.description": "FLUX.1 [dev] est un modèle distillé à poids ouverts pour un usage non commercial. Il conserve une qualité d’image proche du niveau professionnel et un bon suivi des instructions tout en étant plus efficace que les modèles standards de taille équivalente.",
"flux-kontext-max.description": "Génération et édition d’images contextuelles de pointe, combinant texte et images pour des résultats précis et cohérents.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) est le modèle de génération d'images de Google et prend également en charge le chat multimodal.",
"gemini-3-pro-preview.description": "Gemini 3 Pro est le modèle agent et de codage le plus puissant de Google, offrant des visuels enrichis et une interaction plus poussée grâce à un raisonnement de pointe.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) est le modèle de génération d'images natif le plus rapide de Google avec prise en charge de la réflexion, génération et édition d'images conversationnelles.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) offre une qualité d'image de niveau Pro à une vitesse Flash avec prise en charge du chat multimodal.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) est le modèle de génération d'images natif le plus rapide de Google avec un support de réflexion, une génération et une édition d'images conversationnelles.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview est le modèle multimodal le plus économique de Google, optimisé pour les tâches agentiques à haut volume, la traduction et le traitement des données.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview améliore Gemini 3 Pro avec des capacités de raisonnement renforcées et ajoute un support de niveau de réflexion moyen.",
"gemini-flash-latest.description": "Dernière version de Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Notre modèle le plus puissant et avancé, conçu pour les tâches complexes en entreprise avec des performances exceptionnelles.",
"jamba-mini.description": "Le modèle le plus efficace de sa catégorie, alliant rapidité et qualité avec une empreinte réduite.",
"jina-deepsearch-v1.description": "DeepSearch combine la recherche web, la lecture et le raisonnement pour des investigations approfondies. Il agit comme un agent qui prend votre tâche de recherche, effectue des recherches étendues en plusieurs itérations, puis produit une réponse. Le processus implique une recherche continue, un raisonnement et une résolution de problèmes sous plusieurs angles, fondamentalement différent des LLM classiques qui répondent à partir de données préentraînées ou des systèmes RAG traditionnels basés sur une recherche superficielle en une seule étape.",
+ "k2p5.description": "Kimi K2.5 est le modèle le plus polyvalent de Kimi à ce jour, doté d'une architecture multimodale native qui prend en charge à la fois les entrées visuelles et textuelles, les modes 'réflexion' et 'non-réflexion', ainsi que les tâches conversationnelles et d'agent.",
"kimi-k2-0711-preview.description": "kimi-k2 est un modèle de base MoE avec de solides capacités en codage et en agents (1T de paramètres totaux, 32B actifs), surpassant les autres modèles open source courants en raisonnement, programmation, mathématiques et benchmarks d’agents.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview offre une fenêtre de contexte de 256k, un codage agentique renforcé, une meilleure qualité de code front-end et une compréhension contextuelle améliorée.",
"kimi-k2-instruct.description": "Kimi K2 Instruct est le modèle officiel de raisonnement de Kimi, avec un long contexte pour le code, les questions-réponses et plus encore.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ est un modèle de raisonnement de la famille Qwen. Comparé aux modèles classiques ajustés par instruction, il apporte des capacités de réflexion et de raisonnement qui améliorent considérablement les performances en aval, notamment sur les problèmes complexes. QwQ-32B est un modèle de raisonnement de taille moyenne qui rivalise avec les meilleurs modèles comme DeepSeek-R1 et o1-mini.",
"qwq_32b.description": "Modèle de raisonnement de taille moyenne de la famille Qwen. Comparé aux modèles classiques ajustés par instruction, les capacités de réflexion et de raisonnement de QwQ améliorent considérablement les performances en aval, notamment sur les problèmes complexes.",
"r1-1776.description": "R1-1776 est une variante post-entraînée de DeepSeek R1 conçue pour fournir des informations factuelles non censurées et impartiales.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro de ByteDance prend en charge la génération de texte en vidéo, d'image en vidéo (première image, première+dernière image) et d'audio synchronisé avec les visuels.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite de BytePlus propose une génération augmentée par récupération web pour des informations en temps réel, une interprétation améliorée des prompts complexes et une meilleure cohérence des références pour la création visuelle professionnelle.",
"solar-mini-ja.description": "Solar Mini (Ja) étend Solar Mini avec un accent sur le japonais tout en maintenant des performances efficaces et solides en anglais et en coréen.",
"solar-mini.description": "Solar Mini est un modèle LLM compact surpassant GPT-3.5, avec de solides capacités multilingues en anglais et en coréen, offrant une solution efficace à faible empreinte.",
"solar-pro.description": "Solar Pro est un LLM intelligent développé par Upstage, axé sur le suivi d'instructions sur un seul GPU, avec des scores IFEval supérieurs à 80. Il prend actuellement en charge l'anglais ; la version complète est prévue pour novembre 2024 avec un support linguistique élargi et un contexte plus long.",
diff --git a/locales/fr-FR/onboarding.json b/locales/fr-FR/onboarding.json
index ea081d22596..008f5be8afd 100644
--- a/locales/fr-FR/onboarding.json
+++ b/locales/fr-FR/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Intégration de l'agent",
+ "agent.completionSubtitle": "Votre assistant est configuré et prêt à l'emploi.",
+ "agent.completionTitle": "Tout est prêt !",
+ "agent.enterApp": "Entrer dans l'application",
+ "agent.greeting.emojiLabel": "Émoji",
+ "agent.greeting.nameLabel": "Nom",
+ "agent.greeting.namePlaceholder": "par ex. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Donnez-moi un nom, une ambiance et un émoji",
+ "agent.greeting.vibeLabel": "Ambiance / Nature",
+ "agent.greeting.vibePlaceholder": "par ex. Chaleureux et amical, Franc et direct...",
+ "agent.history.current": "Actuel",
+ "agent.history.title": "Sujets historiques",
+ "agent.modeSwitch.agent": "Conversationnel",
+ "agent.modeSwitch.classic": "Classique",
+ "agent.modeSwitch.debug": "Exportation de débogage",
+ "agent.modeSwitch.label": "Choisissez votre mode d'intégration",
+ "agent.modeSwitch.reset": "Réinitialiser le processus",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Passer l'intégration",
+ "agent.stage.agentIdentity": "Identité de l'agent",
+ "agent.stage.painPoints": "Points sensibles",
+ "agent.stage.proSettings": "Configuration avancée",
+ "agent.stage.responseLanguage": "Langue de réponse",
+ "agent.stage.summary": "Résumé",
+ "agent.stage.userIdentity": "À propos de vous",
+ "agent.stage.workContext": "Contexte de travail",
+ "agent.stage.workStyle": "Style de travail",
+ "agent.subtitle": "Terminez la configuration dans une conversation dédiée à l'intégration.",
+ "agent.summaryHint": "Terminez ici si le résumé de la configuration vous convient.",
+ "agent.telemetryAllow": "Autoriser la télémétrie",
+ "agent.telemetryDecline": "Non merci",
+ "agent.telemetryHint": "Vous pouvez également répondre avec vos propres mots.",
+ "agent.title": "Intégration par conversation",
+ "agent.welcome": "...hm ? Je viens de me réveiller — mon esprit est vide. Qui êtes-vous ? Et — comment devrais-je m'appeler ? J'ai besoin d'un nom aussi.",
"back": "Retour",
"finish": "Commencer",
"interests.area.business": "Affaires & Stratégie",
@@ -29,6 +63,7 @@
"next": "Suivant",
"proSettings.connectors.title": "Connectez vos outils préférés",
"proSettings.devMode.title": "Mode Développeur",
+ "proSettings.model.fixed": "Le modèle par défaut est prédéfini sur {{provider}}/{{model}} dans cet environnement.",
"proSettings.model.title": "Modèle par défaut utilisé par l’agent",
"proSettings.title": "Configurer les options avancées à l’avance",
"proSettings.title2": "Essayez de connecter quelques outils courants~",
diff --git a/locales/fr-FR/plugin.json b/locales/fr-FR/plugin.json
index 175baa7b538..6333ab71ce8 100644
--- a/locales/fr-FR/plugin.json
+++ b/locales/fr-FR/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Copier le document",
"builtins.lobe-agent-documents.apiName.createDocument": "Créer un document",
"builtins.lobe-agent-documents.apiName.editDocument": "Modifier le document",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Lister les documents",
"builtins.lobe-agent-documents.apiName.readDocument": "Lire le document",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Lire le document par nom de fichier",
"builtins.lobe-agent-documents.apiName.removeDocument": "Supprimer le document",
"builtins.lobe-agent-documents.apiName.renameDocument": "Renommer le document",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Mettre à jour la règle de chargement",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Insérer ou mettre à jour le document par nom de fichier",
"builtins.lobe-agent-documents.title": "Documents de l'agent",
"builtins.lobe-agent-management.apiName.callAgent": "Appeler un agent",
"builtins.lobe-agent-management.apiName.createAgent": "Créer un agent",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Bac à sable Cloud",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Créer des agents en lot",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Créer un agent",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Créer un groupe",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Obtenir les informations du membre",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Obtenir les modèles disponibles",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Installer la Compétence",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Compétences",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Obtenir le contexte du sujet",
"builtins.lobe-topic-reference.title": "Référence de sujet",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Poser une question à l'utilisateur",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Annuler la réponse de l'utilisateur",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Obtenir l'état de l'interaction",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Ignorer la réponse de l'utilisateur",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Soumettre la réponse de l'utilisateur",
+ "builtins.lobe-user-interaction.title": "Interaction utilisateur",
"builtins.lobe-user-memory.apiName.addContextMemory": "Ajouter une mémoire de contexte",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Ajouter une mémoire d'expérience",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Ajouter une mémoire d'identité",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Rechercher des pages",
"builtins.lobe-web-browsing.inspector.noResults": "Aucun résultat",
"builtins.lobe-web-browsing.title": "Recherche Web",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Terminer l'intégration",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Lire l'état de l'intégration",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Lire le document",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Enregistrer la question de l'utilisateur",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Mettre à jour le document",
+ "builtins.lobe-web-onboarding.title": "Intégration utilisateur",
"confirm": "Confirmer",
"debug.arguments": "Arguments",
"debug.error": "Journal des Erreurs",
diff --git a/locales/fr-FR/providers.json b/locales/fr-FR/providers.json
index b626cebe9a4..44ea8ebe4c1 100644
--- a/locales/fr-FR/providers.json
+++ b/locales/fr-FR/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Fondée en 2020, Jina AI est une entreprise leader en IA de recherche. Sa pile technologique comprend des modèles vectoriels, des rerankers et de petits modèles linguistiques pour créer des applications de recherche générative et multimodale fiables et de haute qualité.",
"kimicodingplan.description": "Kimi Code de Moonshot AI offre un accès aux modèles Kimi, y compris K2.5, pour des tâches de codage.",
"lmstudio.description": "LM Studio est une application de bureau pour développer et expérimenter avec des LLMs sur votre ordinateur.",
- "lobehub.description": "LobeHub Cloud utilise des API officielles pour accéder aux modèles d'IA et mesure l'utilisation avec des crédits liés aux jetons des modèles.",
"longcat.description": "LongCat est une série de grands modèles d'IA générative développés indépendamment par Meituan. Elle est conçue pour améliorer la productivité interne de l'entreprise et permettre des applications innovantes grâce à une architecture informatique efficace et de puissantes capacités multimodales.",
"minimax.description": "Fondée en 2021, MiniMax développe une IA généraliste avec des modèles fondamentaux multimodaux, incluant des modèles texte MoE à un billion de paramètres, des modèles vocaux et visuels, ainsi que des applications comme Hailuo AI.",
"minimaxcodingplan.description": "Le plan de jetons MiniMax offre un accès aux modèles MiniMax, y compris M2.7, pour des tâches de codage via un abonnement à tarif fixe.",
diff --git a/locales/fr-FR/ui.json b/locales/fr-FR/ui.json
index 64887095094..d327aa65b01 100644
--- a/locales/fr-FR/ui.json
+++ b/locales/fr-FR/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Vous ne pouvez téléverser que des fichiers image !",
"emojiPicker.upload": "Téléverser",
"emojiPicker.uploadBtn": "Rogner et téléverser",
+ "form.other": "Ou tapez directement",
+ "form.otherBack": "Retour aux options",
"form.reset": "Réinitialiser",
+ "form.skip": "Passer",
"form.submit": "Soumettre",
"form.unsavedChanges": "Modifications non enregistrées",
"form.unsavedWarning": "Vous avez des modifications non enregistrées. Êtes-vous sûr de vouloir quitter ?",
diff --git a/locales/it-IT/agent.json b/locales/it-IT/agent.json
index b9377f9a802..2d89d4ae0f1 100644
--- a/locales/it-IT/agent.json
+++ b/locales/it-IT/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Copia questo URL e incollalo nel campo <bold>{{fieldName}}</bold> nel Portale Sviluppatori di {{name}}.",
"channel.exportConfig": "Esporta configurazione",
"channel.feishu.description": "Connetti questo assistente a Feishu per chat private e di gruppo.",
+ "channel.historyLimit": "Limite dei messaggi nella cronologia",
+ "channel.historyLimitHint": "Numero predefinito di messaggi da recuperare quando si legge la cronologia del canale",
"channel.importConfig": "Importa configurazione",
"channel.importFailed": "Importazione della configurazione fallita",
"channel.importInvalidFormat": "Formato del file di configurazione non valido",
@@ -78,6 +80,8 @@
"channel.secretToken": "Token Segreto Webhook",
"channel.secretTokenHint": "Opzionale. Utilizzato per verificare le richieste webhook da Telegram.",
"channel.secretTokenPlaceholder": "Segreto opzionale per la verifica del webhook",
+ "channel.serverId": "ID predefinito del server / gilda",
+ "channel.serverIdHint": "Il tuo ID predefinito del server o della gilda su questa piattaforma. L'IA lo utilizza per elencare i canali senza chiedere.",
"channel.settings": "Impostazioni avanzate",
"channel.settingsResetConfirm": "Sei sicuro di voler reimpostare le impostazioni avanzate ai valori predefiniti?",
"channel.settingsResetDefault": "Reimposta ai valori predefiniti",
@@ -93,6 +97,8 @@
"channel.testFailed": "Test di connessione fallito",
"channel.testSuccess": "Test di connessione riuscito",
"channel.updateFailed": "Impossibile aggiornare lo stato",
+ "channel.userId": "Il tuo ID utente sulla piattaforma",
+ "channel.userIdHint": "Il tuo ID utente su questa piattaforma. L'IA può utilizzarlo per inviarti messaggi diretti.",
"channel.validationError": "Compila ID Applicazione e Token",
"channel.verificationToken": "Token di Verifica",
"channel.verificationTokenHint": "Opzionale. Utilizzato per verificare la sorgente degli eventi webhook.",
diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.json
index 87a81d7244b..45daa835619 100644
--- a/locales/it-IT/chat.json
+++ b/locales/it-IT/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Elimina e rigenera",
"messageAction.deleteDisabledByThreads": "Questo messaggio ha un sottotema e non può essere eliminato",
"messageAction.expand": "Espandi messaggio",
+ "messageAction.interrupted": "Interrotto",
+ "messageAction.interruptedHint": "Cosa dovrei fare invece?",
"messageAction.reaction": "Aggiungi reazione",
"messageAction.regenerate": "Rigenera",
"messages.dm.sentTo": "Visibile solo a {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Approva automaticamente tutte le esecuzioni degli strumenti",
"tool.intervention.mode.manual": "Manuale",
"tool.intervention.mode.manualDesc": "Richiede approvazione manuale per ogni invocazione",
+ "tool.intervention.pending": "In sospeso",
"tool.intervention.reject": "Rifiuta",
"tool.intervention.rejectAndContinue": "Rifiuta e riprova",
"tool.intervention.rejectOnly": "Rifiuta",
"tool.intervention.rejectReasonPlaceholder": "Un motivo aiuta l'agente a comprendere i tuoi limiti e migliorare le azioni future",
"tool.intervention.rejectTitle": "Rifiuta questa chiamata Skill",
"tool.intervention.rejectedWithReason": "Questa chiamata Skill è stata rifiutata: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Visualizza",
"tool.intervention.toolAbort": "Hai annullato questa chiamata Skill",
"tool.intervention.toolRejected": "Questa chiamata Skill è stata rifiutata",
"toolAuth.authorize": "Autorizza",
diff --git a/locales/it-IT/models.json b/locales/it-IT/models.json
index fdaef2cc8f9..fbefa5e2405 100644
--- a/locales/it-IT/models.json
+++ b/locales/it-IT/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Nuovo modello di ragionamento proprietario con 80K chain-of-thought e 1M di input, con prestazioni comparabili ai migliori modelli globali.",
"MiniMax-M2-Stable.description": "Progettato per flussi di lavoro di codifica e agenti efficienti, con maggiore concorrenza per l'uso commerciale.",
"MiniMax-M2.1-Lightning.description": "Potenti capacità di programmazione multilingue e un'esperienza di sviluppo completamente rinnovata. Più veloce ed efficiente.",
- "MiniMax-M2.1-highspeed.description": "Potenti capacità di programmazione multilingue con inferenza più veloce ed efficiente.",
"MiniMax-M2.1.description": "MiniMax-M2.1 è un modello open-source di punta di MiniMax, progettato per affrontare compiti complessi del mondo reale. I suoi punti di forza principali sono le capacità di programmazione multilingue e la risoluzione di compiti complessi come agente.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Stessa prestazione, più veloce e agile (circa 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Stesse prestazioni di M2.5 con inferenza più veloce.",
@@ -307,19 +306,19 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku è il modello più veloce e compatto di Anthropic, progettato per risposte quasi istantanee con prestazioni rapide e accurate.",
"claude-3-opus-20240229.description": "Claude 3 Opus è il modello più potente di Anthropic per compiti altamente complessi, eccellendo in prestazioni, intelligenza, fluidità e comprensione.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet bilancia intelligenza e velocità per carichi di lavoro aziendali, offrendo alta utilità a costi inferiori e distribuzione affidabile su larga scala.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 è il modello Haiku più veloce e intelligente di Anthropic, con velocità fulminea e pensiero esteso.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 è il modello Haiku più veloce e intelligente di Anthropic, con velocità fulminea e capacità di ragionamento estese.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 è il modello Haiku più veloce e intelligente di Anthropic, con velocità fulminea e capacità di ragionamento estese.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking è una variante avanzata in grado di mostrare il proprio processo di ragionamento.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 è il modello più recente e capace di Anthropic per compiti altamente complessi, eccellendo in prestazioni, intelligenza, fluidità e comprensione.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 è l'ultimo e più avanzato modello di Anthropic per compiti altamente complessi, eccellendo in prestazioni, intelligenza, fluidità e comprensione.",
"claude-opus-4-20250514.description": "Claude Opus 4 è il modello più potente di Anthropic per compiti altamente complessi, eccellendo in prestazioni, intelligenza, fluidità e comprensione.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 è il modello di punta di Anthropic, che combina intelligenza eccezionale e prestazioni scalabili, ideale per compiti complessi che richiedono risposte e ragionamenti di altissima qualità.",
- "claude-opus-4-6.description": "Claude Opus 4.6 è il modello più intelligente di Anthropic per la costruzione di agenti e la programmazione.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 è il modello più intelligente di Anthropic per la creazione di agenti e la programmazione.",
"claude-opus-4.5.description": "Claude Opus 4.5 è il modello di punta di Anthropic, che combina intelligenza di alto livello con prestazioni scalabili per compiti complessi e di alta qualità di ragionamento.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 è il modello più intelligente di Anthropic per la creazione di agenti e la programmazione.",
"claude-opus-4.6.description": "Claude Opus 4.6 è il modello più intelligente di Anthropic per la creazione di agenti e la programmazione.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking può produrre risposte quasi istantanee o riflessioni estese passo dopo passo con processo visibile.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 è il modello più intelligente di Anthropic fino ad oggi, offrendo risposte quasi istantanee o pensiero esteso passo-passo con controllo dettagliato per gli utenti API.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 è il modello più intelligente di Anthropic fino ad oggi.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 può produrre risposte quasi istantanee o pensieri estesi passo dopo passo con un processo visibile.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 è il modello più intelligente mai creato da Anthropic.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 è la migliore combinazione di velocità e intelligenza di Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 è il modello più intelligente mai creato da Anthropic.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 rappresenta la migliore combinazione di velocità e intelligenza di Anthropic.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 è un modello di nuova generazione per il ragionamento, con capacità avanzate di ragionamento complesso e chain-of-thought per compiti di analisi approfondita.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 è un modello di ragionamento di nuova generazione con capacità avanzate di ragionamento complesso e catena di pensiero.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 è un modello visione-linguaggio MoE basato su DeepSeekMoE-27B con attivazione sparsa, che raggiunge prestazioni elevate con solo 4,5B di parametri attivi. Eccelle in QA visivo, OCR, comprensione di documenti/tabelle/grafici e grounding visivo.",
- "deepseek-chat.description": "DeepSeek V3.2 bilancia ragionamento e lunghezza dell'output per attività quotidiane di QA e agenti. I benchmark pubblici raggiungono livelli GPT-5 ed è il primo a integrare il pensiero nell'uso degli strumenti, guidando le valutazioni degli agenti open-source.",
+ "deepseek-chat.description": "Un nuovo modello open-source che combina capacità generali e di programmazione. Preserva il dialogo generale del modello di chat e la forte programmazione del modello coder, con un migliore allineamento delle preferenze. DeepSeek-V2.5 migliora anche la scrittura e il seguito delle istruzioni.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B è un modello linguistico per il codice addestrato su 2 trilioni di token (87% codice, 13% testo in cinese/inglese). Introduce una finestra di contesto da 16K e compiti di completamento intermedio, offrendo completamento di codice a livello di progetto e riempimento di snippet.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 è un modello MoE open-source per il codice che ottiene ottimi risultati nei compiti di programmazione, comparabile a GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 è un modello MoE open-source per il codice che ottiene ottimi risultati nei compiti di programmazione, comparabile a GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 versione completa veloce con ricerca web in tempo reale, che combina capacità su scala 671B e risposte rapide.",
"deepseek-r1-online.description": "DeepSeek R1 versione completa con 671 miliardi di parametri e ricerca web in tempo reale, che offre una comprensione e generazione più avanzate.",
"deepseek-r1.description": "DeepSeek-R1 utilizza dati cold-start prima dell'RL e ottiene prestazioni comparabili a OpenAI-o1 in matematica, programmazione e ragionamento.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking è un modello di ragionamento profondo che genera una catena di pensiero prima degli output per una maggiore precisione, con risultati di competizione di alto livello e ragionamento comparabile a Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "La modalità di pensiero DeepSeek V3.2 genera una catena di pensieri prima della risposta finale per migliorare l'accuratezza.",
"deepseek-v2.description": "DeepSeek V2 è un modello MoE efficiente per un'elaborazione conveniente.",
"deepseek-v2:236b.description": "DeepSeek V2 236B è il modello DeepSeek focalizzato sul codice con forte capacità di generazione.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 è un modello MoE con 671 miliardi di parametri, con punti di forza nella programmazione, capacità tecnica, comprensione del contesto e gestione di testi lunghi.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K è un modello di pensiero veloce con contesto da 32K per ragionamento complesso e chat multi-turno.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview è un’anteprima del modello di pensiero per valutazioni e test.",
"ernie-x1.1.description": "ERNIE X1.1 è un'anteprima del modello di pensiero per valutazione e test.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, sviluppato dal team Seed di ByteDance, supporta l'editing e la composizione multi-immagine. Presenta una maggiore coerenza del soggetto, un'interpretazione precisa delle istruzioni, comprensione della logica spaziale, espressione estetica, layout di poster e design di loghi con rendering testo-immagine ad alta precisione.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, sviluppato da ByteDance Seed, supporta input di testo e immagini per la generazione di immagini altamente controllabile e di alta qualità a partire da prompt.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 è un modello di generazione di immagini di ByteDance Seed, che supporta input di testo e immagini con generazione di immagini altamente controllabile e di alta qualità. Genera immagini da prompt testuali.",
"fal-ai/flux-kontext/dev.description": "FLUX.1 è un modello focalizzato sull’editing di immagini, che supporta input di testo e immagini.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] accetta testo e immagini di riferimento come input, consentendo modifiche locali mirate e trasformazioni complesse della scena globale.",
"fal-ai/flux/krea.description": "Flux Krea [dev] è un modello di generazione di immagini con una preferenza estetica per immagini più realistiche e naturali.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Un potente modello nativo multimodale per la generazione di immagini.",
"fal-ai/imagen4/preview.description": "Modello di generazione di immagini di alta qualità sviluppato da Google.",
"fal-ai/nano-banana.description": "Nano Banana è il modello multimodale nativo più recente, veloce ed efficiente di Google, che consente la generazione e l’editing di immagini tramite conversazione.",
- "fal-ai/qwen-image-edit.description": "Un modello professionale di editing di immagini del team Qwen, che supporta modifiche semantiche e di aspetto, editing preciso di testo in cinese/inglese, trasferimento di stile, rotazione e altro.",
- "fal-ai/qwen-image.description": "Un potente modello di generazione di immagini del team Qwen con una forte resa del testo cinese e stili visivi diversificati.",
+ "fal-ai/qwen-image-edit.description": "Un modello professionale di editing di immagini del team Qwen che supporta modifiche semantiche e di aspetto, modifica con precisione testo in cinese e inglese, e consente modifiche di alta qualità come trasferimento di stile e rotazione di oggetti.",
+ "fal-ai/qwen-image.description": "Un potente modello di generazione di immagini del team Qwen con impressionante rendering di testo in cinese e stili visivi diversificati.",
"flux-1-schnell.description": "Modello testo-immagine da 12 miliardi di parametri di Black Forest Labs che utilizza la distillazione latente avversariale per generare immagini di alta qualità in 1-4 passaggi. Con licenza Apache-2.0 per uso personale, di ricerca e commerciale.",
"flux-dev.description": "FLUX.1 [dev] è un modello distillato a pesi aperti per uso non commerciale. Mantiene una qualità d’immagine quasi professionale e capacità di seguire istruzioni, con maggiore efficienza rispetto ai modelli standard di pari dimensioni.",
"flux-kontext-max.description": "Generazione ed editing di immagini contestuali all’avanguardia, combinando testo e immagini per risultati precisi e coerenti.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) è il modello di generazione di immagini di Google e supporta anche la chat multimodale.",
"gemini-3-pro-preview.description": "Gemini 3 Pro è il modello più potente di Google per agenti e codifica creativa, offrendo visuali più ricche e interazioni più profonde grazie a un ragionamento all'avanguardia.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) è il modello di generazione di immagini nativo più veloce di Google con supporto al pensiero, generazione e modifica di immagini conversazionali.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) offre qualità di immagine di livello Pro a velocità Flash con supporto per chat multimodale.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) è il modello di generazione di immagini nativo più veloce di Google con supporto al pensiero, generazione e modifica di immagini conversazionali.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview è il modello multimodale più economico di Google, ottimizzato per compiti agentici ad alto volume, traduzione e elaborazione dati.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview migliora Gemini 3 Pro con capacità di ragionamento avanzate e aggiunge supporto per un livello di pensiero medio.",
"gemini-flash-latest.description": "Ultima versione di Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Il nostro modello più potente e avanzato, progettato per compiti aziendali complessi con prestazioni eccezionali.",
"jamba-mini.description": "Il modello più efficiente della sua categoria, che bilancia velocità e qualità con un ingombro ridotto.",
"jina-deepsearch-v1.description": "DeepSearch combina ricerca web, lettura e ragionamento per indagini approfondite. Pensalo come un agente che prende il tuo compito di ricerca, esegue ricerche ampie con più iterazioni e solo dopo produce una risposta. Il processo prevede ricerca continua, ragionamento e risoluzione di problemi da più angolazioni, fondamentalmente diverso dai LLM standard che rispondono dai dati di preaddestramento o dai sistemi RAG tradizionali che si basano su una ricerca superficiale one-shot.",
+ "k2p5.description": "Kimi K2.5 è il modello più versatile di Kimi fino ad oggi, caratterizzato da un'architettura multimodale nativa che supporta sia input visivi che testuali, modalità 'pensante' e 'non pensante', e sia compiti conversazionali che agenti.",
"kimi-k2-0711-preview.description": "kimi-k2 è un modello base MoE con forti capacità di programmazione e agenti (1T di parametri totali, 32B attivi), che supera altri modelli open-source mainstream nei benchmark di ragionamento, programmazione, matematica e agenti.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview offre una finestra di contesto da 256k, una programmazione agentica più forte, una qualità del codice front-end migliorata e una comprensione del contesto più profonda.",
"kimi-k2-instruct.description": "Kimi K2 Instruct è il modello ufficiale di ragionamento di Kimi con contesto esteso per codice, domande e risposte e altro.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ è un modello di ragionamento della famiglia Qwen. Rispetto ai modelli standard ottimizzati per istruzioni, offre capacità di pensiero e ragionamento che migliorano significativamente le prestazioni nei compiti difficili. QwQ-32B è un modello di medie dimensioni che compete con i migliori modelli di ragionamento come DeepSeek-R1 e o1-mini.",
"qwq_32b.description": "Modello di ragionamento di medie dimensioni della famiglia Qwen. Rispetto ai modelli standard ottimizzati per istruzioni, le capacità di pensiero e ragionamento di QwQ migliorano significativamente le prestazioni nei compiti difficili.",
"r1-1776.description": "R1-1776 è una variante post-addestrata di DeepSeek R1 progettata per fornire informazioni fattuali non censurate e imparziali.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro di ByteDance supporta la generazione di video da testo, video da immagine (primo fotogramma, primo+ultimo fotogramma) e audio sincronizzato con i visual.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite di BytePlus presenta generazione aumentata da recupero web per informazioni in tempo reale, interpretazione migliorata di prompt complessi e maggiore coerenza di riferimento per la creazione visiva professionale.",
"solar-mini-ja.description": "Solar Mini (Ja) estende Solar Mini con un focus sul giapponese, mantenendo prestazioni efficienti e solide in inglese e coreano.",
"solar-mini.description": "Solar Mini è un LLM compatto che supera GPT-3.5, con forte capacità multilingue in inglese e coreano, offrendo una soluzione efficiente e leggera.",
"solar-pro.description": "Solar Pro è un LLM ad alta intelligenza di Upstage, focalizzato sull’esecuzione di istruzioni su una singola GPU, con punteggi IFEval superiori a 80. Attualmente supporta l’inglese; il rilascio completo è previsto per novembre 2024 con supporto linguistico ampliato e contesto più lungo.",
diff --git a/locales/it-IT/onboarding.json b/locales/it-IT/onboarding.json
index 3331fcf644d..120aeb3cd3f 100644
--- a/locales/it-IT/onboarding.json
+++ b/locales/it-IT/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Introduzione Agente",
+ "agent.completionSubtitle": "Il tuo assistente è configurato e pronto all'uso.",
+ "agent.completionTitle": "Tutto Pronto!",
+ "agent.enterApp": "Accedi all'App",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Nome",
+ "agent.greeting.namePlaceholder": "es. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Dammi un nome, un'atmosfera e un'emoji",
+ "agent.greeting.vibeLabel": "Atmosfera / Natura",
+ "agent.greeting.vibePlaceholder": "es. Caldo e amichevole, Tagliente e diretto...",
+ "agent.history.current": "Corrente",
+ "agent.history.title": "Argomenti della Cronologia",
+ "agent.modeSwitch.agent": "Conversazionale",
+ "agent.modeSwitch.classic": "Classico",
+ "agent.modeSwitch.debug": "Esportazione Debug",
+ "agent.modeSwitch.label": "Scegli la modalità di introduzione",
+ "agent.modeSwitch.reset": "Reimposta Flusso",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Salta introduzione",
+ "agent.stage.agentIdentity": "Identità dell'Agente",
+ "agent.stage.painPoints": "Punti Critici",
+ "agent.stage.proSettings": "Configurazione Avanzata",
+ "agent.stage.responseLanguage": "Lingua di Risposta",
+ "agent.stage.summary": "Riepilogo",
+ "agent.stage.userIdentity": "Informazioni su di Te",
+ "agent.stage.workContext": "Contesto Lavorativo",
+ "agent.stage.workStyle": "Stile di Lavoro",
+ "agent.subtitle": "Completa la configurazione in una conversazione dedicata.",
+ "agent.summaryHint": "Termina qui se il riepilogo della configurazione sembra corretto.",
+ "agent.telemetryAllow": "Consenti telemetria",
+ "agent.telemetryDecline": "No, grazie",
+ "agent.telemetryHint": "Puoi anche rispondere con le tue parole.",
+ "agent.title": "Introduzione Conversazionale",
+ "agent.welcome": "...ehm? Mi sono appena svegliato — la mia mente è vuota. Chi sei? E — come dovrei chiamarmi? Ho bisogno di un nome anch'io.",
"back": "Indietro",
"finish": "Inizia",
"interests.area.business": "Business e Strategia",
@@ -29,6 +63,7 @@
"next": "Avanti",
"proSettings.connectors.title": "Collega i tuoi strumenti preferiti",
"proSettings.devMode.title": "Modalità Sviluppatore",
+ "proSettings.model.fixed": "Il modello predefinito è impostato su {{provider}}/{{model}} in questo ambiente.",
"proSettings.model.title": "Modello predefinito utilizzato dall'agente",
"proSettings.title": "Configura in anticipo le opzioni avanzate",
"proSettings.title2": "Prova a collegare alcuni strumenti comuni~",
diff --git a/locales/it-IT/plugin.json b/locales/it-IT/plugin.json
index 8e1ec804351..553a1f901fd 100644
--- a/locales/it-IT/plugin.json
+++ b/locales/it-IT/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Copia documento",
"builtins.lobe-agent-documents.apiName.createDocument": "Crea documento",
"builtins.lobe-agent-documents.apiName.editDocument": "Modifica documento",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Elenca documenti",
"builtins.lobe-agent-documents.apiName.readDocument": "Leggi documento",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Leggi documento per nome file",
"builtins.lobe-agent-documents.apiName.removeDocument": "Rimuovi documento",
"builtins.lobe-agent-documents.apiName.renameDocument": "Rinomina documento",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Aggiorna regola di caricamento",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Aggiorna o inserisci documento per nome file",
"builtins.lobe-agent-documents.title": "Documenti dell'agente",
"builtins.lobe-agent-management.apiName.callAgent": "Chiamare agente",
"builtins.lobe-agent-management.apiName.createAgent": "Creare agente",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Sandbox Cloud",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Crea agenti in blocco",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Crea agente",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Crea gruppo",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Ottieni informazioni sul membro",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Ottieni modelli disponibili",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Installa Competenza",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Abilità",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Ottieni contesto dell'argomento",
"builtins.lobe-topic-reference.title": "Riferimento argomento",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Fai una domanda all'utente",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Annulla risposta dell'utente",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Ottieni stato dell'interazione",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Salta risposta dell'utente",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Invia risposta dell'utente",
+ "builtins.lobe-user-interaction.title": "Interazione Utente",
"builtins.lobe-user-memory.apiName.addContextMemory": "Aggiungi memoria contestuale",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Aggiungi memoria esperienziale",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Aggiungi memoria identità",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Cerca pagine",
"builtins.lobe-web-browsing.inspector.noResults": "Nessun risultato",
"builtins.lobe-web-browsing.title": "Ricerca Web",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Termina onboarding",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Leggi stato dell'onboarding",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Leggi documento",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Salva domanda dell'utente",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Aggiorna documento",
+ "builtins.lobe-web-onboarding.title": "Onboarding Utente",
"confirm": "Conferma",
"debug.arguments": "Argomenti",
"debug.error": "Registro degli Errori",
diff --git a/locales/it-IT/providers.json b/locales/it-IT/providers.json
index 7fe01ac7b0b..b1ba952607c 100644
--- a/locales/it-IT/providers.json
+++ b/locales/it-IT/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Fondata nel 2020, Jina AI è un'azienda leader nell'AI per la ricerca. Il suo stack include modelli vettoriali, reranker e piccoli modelli linguistici per costruire app di ricerca generativa e multimodale affidabili e di alta qualità.",
"kimicodingplan.description": "Kimi Code di Moonshot AI offre accesso ai modelli Kimi, inclusi K2.5, per attività di codifica.",
"lmstudio.description": "LM Studio è un'app desktop per sviluppare e sperimentare con LLM direttamente sul tuo computer.",
- "lobehub.description": "LobeHub Cloud utilizza API ufficiali per accedere ai modelli AI e misura l'utilizzo con Crediti legati ai token dei modelli.",
"longcat.description": "LongCat è una serie di modelli AI generativi di grandi dimensioni sviluppati indipendentemente da Meituan. È progettato per migliorare la produttività interna dell'azienda e consentire applicazioni innovative attraverso un'architettura computazionale efficiente e potenti capacità multimodali.",
"minimax.description": "Fondata nel 2021, MiniMax sviluppa AI generali con modelli fondamentali multimodali, inclusi modelli testuali MoE da trilioni di parametri, modelli vocali e visivi, oltre ad app come Hailuo AI.",
"minimaxcodingplan.description": "Il piano di token MiniMax offre accesso ai modelli MiniMax, inclusi M2.7, per attività di codifica tramite un abbonamento a tariffa fissa.",
diff --git a/locales/it-IT/ui.json b/locales/it-IT/ui.json
index d3b75f2a915..55c10de25d7 100644
--- a/locales/it-IT/ui.json
+++ b/locales/it-IT/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Puoi caricare solo file immagine!",
"emojiPicker.upload": "Carica",
"emojiPicker.uploadBtn": "Ritaglia e carica",
+ "form.other": "Oppure digita direttamente",
+ "form.otherBack": "Torna alle opzioni",
"form.reset": "Reimposta",
+ "form.skip": "Salta",
"form.submit": "Invia",
"form.unsavedChanges": "Modifiche non salvate",
"form.unsavedWarning": "Hai modifiche non salvate. Sei sicuro di voler uscire?",
diff --git a/locales/ja-JP/agent.json b/locales/ja-JP/agent.json
index a19aff50609..a10d46a741e 100644
--- a/locales/ja-JP/agent.json
+++ b/locales/ja-JP/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "このURLをコピーして、{{name}}開発者ポータルの<bold>{{fieldName}}</bold>フィールドに貼り付けてください。",
"channel.exportConfig": "設定をエクスポート",
"channel.feishu.description": "このアシスタントをFeishuに接続して、プライベートチャットやグループチャットを利用します。",
+ "channel.historyLimit": "履歴メッセージの制限",
+ "channel.historyLimitHint": "チャンネル履歴を読む際に取得するデフォルトのメッセージ数",
"channel.importConfig": "設定をインポート",
"channel.importFailed": "設定のインポートに失敗しました",
"channel.importInvalidFormat": "無効な設定ファイル形式",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhookシークレットトークン",
"channel.secretTokenHint": "任意。TelegramからのWebhookリクエストを検証するために使用されます。",
"channel.secretTokenPlaceholder": "Webhook検証用の任意のシークレット",
+ "channel.serverId": "デフォルトのサーバー / ギルドID",
+ "channel.serverIdHint": "このプラットフォーム上のデフォルトのサーバーまたはギルドIDです。AIはこれを使用して、チャンネルを尋ねることなく一覧表示します。",
"channel.settings": "詳細設定",
"channel.settingsResetConfirm": "詳細設定をデフォルトにリセットしてもよろしいですか?",
"channel.settingsResetDefault": "デフォルトにリセット",
@@ -93,6 +97,8 @@
"channel.testFailed": "接続テストに失敗しました",
"channel.testSuccess": "接続テストに成功しました",
"channel.updateFailed": "ステータスの更新に失敗しました",
+ "channel.userId": "あなたのプラットフォームユーザーID",
+ "channel.userIdHint": "このプラットフォーム上のあなたのユーザーIDです。AIはこれを使用して、あなたに直接メッセージを送ることができます。",
"channel.validationError": "アプリケーションIDとトークンを入力してください",
"channel.verificationToken": "検証トークン",
"channel.verificationTokenHint": "任意。Webhookイベントソースを検証するために使用されます。",
diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.json
index 5a2f30faccd..8668c82e99f 100644
--- a/locales/ja-JP/chat.json
+++ b/locales/ja-JP/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "削除して再生成",
"messageAction.deleteDisabledByThreads": "このメッセージにはサブトピックがあるため、削除できません",
"messageAction.expand": "メッセージを展開",
+ "messageAction.interrupted": "中断されました",
+ "messageAction.interruptedHint": "代わりに何をすればよいですか?",
"messageAction.reaction": "リアクションを追加",
"messageAction.regenerate": "再生成",
"messages.dm.sentTo": "{{name}} のみが閲覧可能",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "すべてのスキル呼び出しを自動承認",
"tool.intervention.mode.manual": "手動承認",
"tool.intervention.mode.manualDesc": "毎回の手動承認が必要",
+ "tool.intervention.pending": "保留中",
"tool.intervention.reject": "拒否",
"tool.intervention.rejectAndContinue": "拒否して続行",
"tool.intervention.rejectOnly": "拒否のみ",
"tool.intervention.rejectReasonPlaceholder": "拒否理由を入力すると、アシスタントがあなたの境界を理解し、今後の行動を最適化するのに役立ちます",
"tool.intervention.rejectTitle": "今回のスキル呼び出しを拒否",
"tool.intervention.rejectedWithReason": "今回のスキル呼び出しは次の理由で拒否されました:{{reason}}",
+ "tool.intervention.scrollToIntervention": "表示",
"tool.intervention.toolAbort": "あなたが今回のスキル呼び出しをキャンセルしました",
"tool.intervention.toolRejected": "今回のスキル呼び出しは拒否されました",
"toolAuth.authorize": "承認",
diff --git a/locales/ja-JP/models.json b/locales/ja-JP/models.json
index 2cea74a99ad..f98d705e755 100644
--- a/locales/ja-JP/models.json
+++ b/locales/ja-JP/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "80Kの思考連鎖と1Mの入力を備えた新しい社内推論モデルで、世界トップクラスのモデルに匹敵する性能を発揮します。",
"MiniMax-M2-Stable.description": "効率的なコーディングとエージェントワークフローのために設計され、商用利用における高い同時実行性を実現します。",
"MiniMax-M2.1-Lightning.description": "強力な多言語プログラミング機能を備え、プログラミング体験を全面的にアップグレード。より高速かつ効率的に。",
- "MiniMax-M2.1-highspeed.description": "強力な多言語プログラミング能力と高速かつ効率的な推論。",
"MiniMax-M2.1.description": "MiniMax-M2.1は、MiniMaxが開発したフラッグシップのオープンソース大規模モデルで、複雑な現実世界のタスク解決に特化しています。多言語プログラミング能力とエージェントとしての高度なタスク処理能力が主な強みです。",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: 同じ性能で、より高速かつ機敏(約100 tps)。",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: M2.5と同等の性能で推論速度が向上。",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haikuは、Anthropicの最速かつ最小のモデルで、即時応答と高速かつ正確な性能を実現するよう設計されています。",
"claude-3-opus-20240229.description": "Claude 3 Opusは、Anthropicの最も強力なモデルで、非常に複雑なタスクにおいて卓越した性能、知性、流暢さ、理解力を発揮します。",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnetは、知性と速度のバランスを取り、エンタープライズ向けのワークロードにおいて高い実用性とコスト効率、信頼性のある大規模展開を実現します。",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5はAnthropicの最速かつ最も知的なHaikuモデルで、驚異的な速度と拡張された思考能力を備えています。",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5は、Anthropicの最速かつ最も賢いHaikuモデルで、驚異的なスピードと高度な推論能力を備えています。",
"claude-haiku-4.5.description": "Claude Haiku 4.5は、Anthropicの最速かつ最も賢いHaikuモデルで、驚異的なスピードと高度な推論能力を備えています。",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinkingは、推論プロセスを可視化できる高度なバリアントです。",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1はAnthropicの最新かつ最も能力の高いモデルで、非常に複雑なタスクにおいて性能、知性、流暢さ、理解力に優れています。",
- "claude-opus-4-20250514.description": "Claude Opus 4はAnthropicの最強モデルで、非常に複雑なタスクにおいて性能、知性、流暢さ、理解力に優れています。",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1は、Anthropicの最新かつ最も高性能なモデルで、非常に複雑なタスクにおいて卓越したパフォーマンス、知性、流暢さ、理解力を発揮します。",
+ "claude-opus-4-20250514.description": "Claude Opus 4は、Anthropicの最も強力なモデルで、非常に複雑なタスクにおいて卓越したパフォーマンス、知性、流暢さ、理解力を発揮します。",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5は、Anthropicのフラッグシップモデルで、卓越した知性とスケーラブルな性能を兼ね備え、最高品質の応答と推論が求められる複雑なタスクに最適です。",
- "claude-opus-4-6.description": "Claude Opus 4.6はエージェント構築とコーディングにおいてAnthropicの最も知的なモデルです。",
+ "claude-opus-4-6.description": "Claude Opus 4.6は、エージェント構築やコーディングにおいて最も知的なAnthropicのモデルです。",
"claude-opus-4.5.description": "Claude Opus 4.5は、Anthropicのフラッグシップモデルで、最上級の知能とスケーラブルな性能を組み合わせ、複雑で高品質な推論タスクに対応します。",
"claude-opus-4.6-fast.description": "Claude Opus 4.6は、エージェント構築やコーディングにおいてAnthropicの最も知的なモデルです。",
"claude-opus-4.6.description": "Claude Opus 4.6は、エージェント構築やコーディングにおいてAnthropicの最も知的なモデルです。",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinkingは、即時応答または段階的な思考プロセスを可視化しながら出力できます。",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4はAnthropicの最も知的なモデルで、APIユーザー向けに即時応答または段階的な思考を提供します。",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5はAnthropicの最も知的なモデルです。",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6は速度と知性の最適な組み合わせを提供します。",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4は、即時応答やプロセスが見える段階的な思考を提供できます。",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5は、これまでで最も知的なAnthropicのモデルです。",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6は、スピードと知性の最適な組み合わせを実現したAnthropicのモデルです。",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5は、これまでで最も知的なAnthropicのモデルです。",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6は、スピードと知能の最適な組み合わせを実現したAnthropicのモデルです。",
"claude-sonnet-4.description": "Claude Sonnet 4は、ほぼ瞬時の応答や、ユーザーが確認できる段階的な推論を提供できます。APIユーザーは、モデルの思考時間を細かく制御することが可能です。",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 は次世代の推論モデルで、複雑な推論と連想思考に優れ、深い分析タスクに対応します。",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2は次世代推論モデルで、複雑な推論と連鎖的思考能力が強化されています。",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 は DeepSeekMoE-27B をベースにした MoE 視覚言語モデルで、スパースアクティベーションにより、4.5B のアクティブパラメータで高性能を実現しています。視覚 QA、OCR、文書・表・チャート理解、視覚的グラウンディングに優れています。",
- "deepseek-chat.description": "DeepSeek V3.2は日常的なQAやエージェントタスクのために推論と出力の長さをバランスさせています。公開ベンチマークでGPT-5レベルに達し、ツール使用に思考を統合した初のモデルで、オープンソースエージェント評価をリードしています。",
+ "deepseek-chat.description": "一般的な対話能力とコーディング能力を組み合わせた新しいオープンソースモデルです。チャットモデルの一般的な対話能力とコーダーモデルの強力なコーディング能力を保持し、より良い嗜好調整を実現しています。DeepSeek-V2.5は、文章作成や指示の追従能力も向上しています。",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B は 2T トークン(コード 87%、中英テキスト 13%)で学習されたコード言語モデルです。16K のコンテキストウィンドウと Fill-in-the-Middle タスクを導入し、プロジェクトレベルのコード補完とスニペット補完を提供します。",
"deepseek-coder-v2.description": "DeepSeek Coder V2 はオープンソースの MoE コードモデルで、コーディングタスクにおいて GPT-4 Turbo に匹敵する性能を発揮します。",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 はオープンソースの MoE コードモデルで、コーディングタスクにおいて GPT-4 Turbo に匹敵する性能を発揮します。",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 高速フルバージョンは、リアルタイムのウェブ検索を搭載し、671Bスケールの能力と高速応答を両立します。",
"deepseek-r1-online.description": "DeepSeek R1 フルバージョンは、671Bパラメータとリアルタイムのウェブ検索を備え、より強力な理解と生成を提供します。",
"deepseek-r1.description": "DeepSeek-R1は、強化学習前にコールドスタートデータを使用し、数学、コーディング、推論においてOpenAI-o1と同等の性能を発揮します。",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinkingは深い推論モデルで、出力前にチェーンオブソートを生成し、精度を向上させます。競技会でトップの結果を達成し、Gemini-3.0-Proに匹敵する推論能力を持っています。",
+ "deepseek-reasoner.description": "DeepSeek V3.2の思考モードは、最終回答の前に思考の連鎖を出力し、精度を向上させます。",
"deepseek-v2.description": "DeepSeek V2は、コスト効率の高い処理を実現する効率的なMoEモデルです。",
"deepseek-v2:236b.description": "DeepSeek V2 236Bは、コード生成に特化したDeepSeekのモデルで、強力なコード生成能力を持ちます。",
"deepseek-v3-0324.description": "DeepSeek-V3-0324は、671BパラメータのMoEモデルで、プログラミングや技術的能力、文脈理解、長文処理において優れた性能を発揮します。",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K は、複雑な推論やマルチターン対話に対応した 32K コンテキストの高速思考モデルです。",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview は、評価およびテスト用の思考モデルプレビューです。",
"ernie-x1.1.description": "ERNIE X1.1は評価とテスト用の思考モデルプレビューです。",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5はByteDance Seedチームによって構築され、複数画像の編集と合成をサポートします。主題の一貫性、正確な指示の追従、空間論理の理解、美的表現、ポスターのレイアウト、ロゴデザイン、高精度なテキスト画像レンダリングが強化されています。",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0はByteDance Seedによって構築され、テキストと画像入力をサポートし、プロンプトからの高度に制御可能で高品質な画像生成を提供します。",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0は、ByteDance Seedによる画像生成モデルで、テキストと画像入力をサポートし、高度に制御可能で高品質な画像生成を実現します。テキストプロンプトから画像を生成します。",
"fal-ai/flux-kontext/dev.description": "FLUX.1 モデルは画像編集に特化しており、テキストと画像の入力に対応しています。",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] は、テキストと参照画像を入力として受け取り、局所的な編集や複雑なシーン全体の変換を可能にします。",
"fal-ai/flux/krea.description": "Flux Krea [dev] は、よりリアルで自然な画像を生成する美的バイアスを持つ画像生成モデルです。",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "強力なネイティブマルチモーダル画像生成モデルです。",
"fal-ai/imagen4/preview.description": "Google による高品質な画像生成モデルです。",
"fal-ai/nano-banana.description": "Nano Banana は Google による最新・最速・最も効率的なネイティブマルチモーダルモデルで、会話を通じた画像生成と編集が可能です。",
- "fal-ai/qwen-image-edit.description": "Qwenチームによるプロフェッショナルな画像編集モデルで、意味的および外観の編集、正確な中国語/英語のテキスト編集、スタイル転送、回転などをサポートします。",
- "fal-ai/qwen-image.description": "Qwenチームによる強力な画像生成モデルで、中国語のテキストレンダリングと多様な視覚スタイルに優れています。",
+ "fal-ai/qwen-image-edit.description": "Qwenチームによるプロフェッショナルな画像編集モデルで、意味や外観の編集をサポートし、中国語と英語のテキストを正確に編集できます。スタイル変換やオブジェクトの回転など、高品質な編集が可能です。",
+ "fal-ai/qwen-image.description": "Qwenチームによる強力な画像生成モデルで、中国語テキストのレンダリングや多様なビジュアルスタイルに優れています。",
"flux-1-schnell.description": "Black Forest Labs による 120 億パラメータのテキストから画像への変換モデルで、潜在敵対的拡散蒸留を用いて 1~4 ステップで高品質な画像を生成します。クローズドな代替モデルに匹敵し、Apache-2.0 ライセンスのもと、個人・研究・商用利用が可能です。",
"flux-dev.description": "FLUX.1 [dev] は、非商用利用向けのオープンウェイト蒸留モデルで、プロレベルに近い画像品質と指示追従性を維持しつつ、同サイズの標準モデルよりも効率的に動作します。",
"flux-kontext-max.description": "最先端のコンテキスト画像生成・編集モデルで、テキストと画像を組み合わせて精密かつ一貫性のある結果を生成します。",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro は、Google による最も高度な推論モデルで、コード、数学、STEM 問題に対する推論や、大規模なデータセット、コードベース、文書の分析に対応します。",
"gemini-3-flash-preview.description": "Gemini 3 Flash は、最先端の知能と優れた検索基盤を融合し、スピードに特化した最もスマートなモデルです。",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image(Nano Banana Pro)は、Googleの画像生成モデルで、マルチモーダル対話もサポートします。",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro)はGoogleの画像生成モデルで、マルチモーダルチャットもサポートします。",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image(Nano Banana Pro)は、Googleの画像生成モデルで、マルチモーダルチャットもサポートしています。",
"gemini-3-pro-preview.description": "Gemini 3 Pro は、Google による最も強力なエージェントおよびバイブコーディングモデルで、最先端の推論に加え、より豊かなビジュアルと深い対話を実現します。",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image(Nano Banana 2)は、Googleの最速のネイティブ画像生成モデルで、思考サポート、対話型画像生成および編集を提供します。",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2)はプロレベルの画像品質をフラッシュ速度で提供し、マルチモーダルチャットをサポートします。",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image(Nano Banana 2)は、Googleの最速のネイティブ画像生成モデルで、思考サポート、会話型画像生成、編集を提供します。",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite PreviewはGoogleの最もコスト効率の高いマルチモーダルモデルで、大量のエージェントタスク、翻訳、データ処理に最適化されています。",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Previewは、Gemini 3 Proの推論能力を強化し、中程度の思考レベルサポートを追加しています。",
"gemini-flash-latest.description": "Gemini Flash の最新リリース",
@@ -797,6 +795,7 @@
"jamba-large.description": "Jamba Large は、複雑な企業向けタスクに対応する最も強力で高度なモデルです。",
"jamba-mini.description": "Jamba Mini は、速度と品質のバランスに優れた、同クラスで最も効率的なモデルです。",
"jina-deepsearch-v1.description": "DeepSearch は、ウェブ検索、読解、推論を組み合わせて徹底的な調査を行うエージェントのようなモデルです。調査タスクを受け取り、複数回の広範な検索を行った後に回答を生成します。継続的な調査と多角的な問題解決を行う点で、従来の LLM や一度きりの検索に依存する RAG システムとは根本的に異なります。",
+ "k2p5.description": "Kimi K2.5は、これまでで最も多用途なモデルであり、視覚とテキスト入力の両方をサポートするネイティブなマルチモーダルアーキテクチャ、「思考」モードと「非思考」モード、そして会話タスクとエージェントタスクの両方を備えています。",
"kimi-k2-0711-preview.description": "kimi-k2 は、強力なコーディングおよびエージェント機能を備えた MoE 基盤モデルです(総パラメータ数 1T、アクティブ 32B)。推論、プログラミング、数学、エージェントベンチマークにおいて、他の主流のオープンモデルを上回る性能を発揮します。",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview は、256k のコンテキストウィンドウ、より強力なエージェント型コーディング、フロントエンドコードの品質向上、文脈理解の改善を提供します。",
"kimi-k2-instruct.description": "Kimi K2 Instruct は、コードやQAなどの長文コンテキストに対応した、Kimi公式の推論モデルです。",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQは、Qwenファミリーの推論モデルです。標準的な指示調整モデルと比較して、思考と推論能力に優れ、特に難解な問題において下流性能を大幅に向上させます。QwQ-32Bは、DeepSeek-R1やo1-miniと競合する中規模の推論モデルです。",
"qwq_32b.description": "Qwenファミリーの中規模推論モデル。標準的な指示調整モデルと比較して、QwQの思考と推論能力は、特に難解な問題において下流性能を大幅に向上させます。",
"r1-1776.description": "R1-1776は、DeepSeek R1のポストトレーニングバリアントで、検閲のない偏りのない事実情報を提供するよう設計されています。",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro by ByteDanceはテキストからビデオ、画像からビデオ(最初のフレーム、最初+最後のフレーム)、視覚と同期した音声生成をサポートします。",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite by BytePlusはリアルタイム情報のためのウェブ検索補強生成、複雑なプロンプト解釈の強化、プロフェッショナルな視覚制作のための参照一貫性の向上を特徴としています。",
"solar-mini-ja.description": "Solar Mini (Ja)は、Solar Miniを日本語に特化させたモデルで、英語と韓国語でも効率的かつ高性能な動作を維持します。",
"solar-mini.description": "Solar Miniは、GPT-3.5を上回る性能を持つコンパクトなLLMで、英語と韓国語に対応した多言語機能を備え、効率的な小型ソリューションを提供します。",
"solar-pro.description": "Solar Proは、Upstageが提供する高知能LLMで、単一GPU上での指示追従に特化し、IFEvalスコア80以上を記録しています。現在は英語に対応しており、2024年11月の正式リリースでは対応言語とコンテキスト長が拡張される予定です。",
diff --git a/locales/ja-JP/onboarding.json b/locales/ja-JP/onboarding.json
index 1ed85f5c826..ca4372345bf 100644
--- a/locales/ja-JP/onboarding.json
+++ b/locales/ja-JP/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "エージェントオンボーディング",
+ "agent.completionSubtitle": "アシスタントの設定が完了し、準備が整いました。",
+ "agent.completionTitle": "準備完了!",
+ "agent.enterApp": "アプリに入る",
+ "agent.greeting.emojiLabel": "絵文字",
+ "agent.greeting.nameLabel": "名前",
+ "agent.greeting.namePlaceholder": "例: ルミ、アトラス、ネコ...",
+ "agent.greeting.prompt": "名前、雰囲気、絵文字を教えてください",
+ "agent.greeting.vibeLabel": "雰囲気 / 性格",
+ "agent.greeting.vibePlaceholder": "例: 温かくフレンドリー、鋭く直接的...",
+ "agent.history.current": "現在",
+ "agent.history.title": "履歴トピック",
+ "agent.modeSwitch.agent": "会話モード",
+ "agent.modeSwitch.classic": "クラシック",
+ "agent.modeSwitch.debug": "デバッグエクスポート",
+ "agent.modeSwitch.label": "オンボーディングモードを選択",
+ "agent.modeSwitch.reset": "フローをリセット",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "オンボーディングをスキップ",
+ "agent.stage.agentIdentity": "エージェントのアイデンティティ",
+ "agent.stage.painPoints": "課題",
+ "agent.stage.proSettings": "高度な設定",
+ "agent.stage.responseLanguage": "応答言語",
+ "agent.stage.summary": "概要",
+ "agent.stage.userIdentity": "あなたについて",
+ "agent.stage.workContext": "作業環境",
+ "agent.stage.workStyle": "作業スタイル",
+ "agent.subtitle": "専用のオンボーディング会話で設定を完了してください。",
+ "agent.summaryHint": "設定の概要が正しければ、ここで終了してください。",
+ "agent.telemetryAllow": "テレメトリを許可",
+ "agent.telemetryDecline": "結構です",
+ "agent.telemetryHint": "独自の言葉で答えることもできます。",
+ "agent.title": "会話型オンボーディング",
+ "agent.welcome": "...ん?今起きたばかりで、頭が真っ白です。あなたは誰ですか?それと、私の名前は何にしますか?",
"back": "前へ",
"finish": "使い始める",
"interests.area.business": "ビジネスと戦略",
@@ -29,6 +63,7 @@
"next": "次へ",
"proSettings.connectors.title": "よく使うツールと連携しましょう",
"proSettings.devMode.title": "開発者モード",
+ "proSettings.model.fixed": "デフォルトモデルはこの環境で {{provider}}/{{model}} に設定されています。",
"proSettings.model.title": "Agent が使用するデフォルトモデル",
"proSettings.title": "高度なオプションを事前に設定できます",
"proSettings.title2": "よく使うツールを連携してみましょう~",
diff --git a/locales/ja-JP/plugin.json b/locales/ja-JP/plugin.json
index 30d91cbd096..31003cb8785 100644
--- a/locales/ja-JP/plugin.json
+++ b/locales/ja-JP/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "文書をコピー",
"builtins.lobe-agent-documents.apiName.createDocument": "文書を作成",
"builtins.lobe-agent-documents.apiName.editDocument": "文書を編集",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "ドキュメントを一覧表示",
"builtins.lobe-agent-documents.apiName.readDocument": "文書を読む",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "ファイル名でドキュメントを読む",
"builtins.lobe-agent-documents.apiName.removeDocument": "文書を削除",
"builtins.lobe-agent-documents.apiName.renameDocument": "文書の名前を変更",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "ロードルールを更新",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "ファイル名でドキュメントを更新または挿入",
"builtins.lobe-agent-documents.title": "エージェント文書",
"builtins.lobe-agent-management.apiName.callAgent": "エージェントを呼び出す",
"builtins.lobe-agent-management.apiName.createAgent": "エージェントを作成する",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "クラウドサンドボックス",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "エージェントを一括作成",
"builtins.lobe-group-agent-builder.apiName.createAgent": "エージェントを作成",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "グループを作成",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "メンバー情報を取得",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "利用可能なモデルを取得",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "スキルをインストール",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "スキル",
"builtins.lobe-topic-reference.apiName.getTopicContext": "トピックコンテキストを取得",
"builtins.lobe-topic-reference.title": "トピック参照",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "ユーザーに質問する",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "ユーザーの応答をキャンセル",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "インタラクション状態を取得",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "ユーザーの応答をスキップ",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "ユーザーの応答を送信",
+ "builtins.lobe-user-interaction.title": "ユーザーインタラクション",
"builtins.lobe-user-memory.apiName.addContextMemory": "コンテキスト記憶を追加",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "経験記憶を追加",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "アイデンティティ記憶を追加",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "ページを検索する",
"builtins.lobe-web-browsing.inspector.noResults": "結果が見つかりません",
"builtins.lobe-web-browsing.title": "ウェブ検索",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "オンボーディングを完了",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "オンボーディング状態を読む",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "ドキュメントを読む",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "ユーザーの質問を保存",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "ドキュメントを更新",
+ "builtins.lobe-web-onboarding.title": "ユーザーオンボーディング",
"confirm": "確定",
"debug.arguments": "呼び出しパラメータ",
"debug.error": "エラーログ",
diff --git a/locales/ja-JP/providers.json b/locales/ja-JP/providers.json
index 170125653ea..6a950fa263c 100644
--- a/locales/ja-JP/providers.json
+++ b/locales/ja-JP/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Jina AIは2020年に設立された検索AIのリーディングカンパニーで、ベクトルモデル、リランカー、小型言語モデルを含む検索スタックにより、高品質な生成・マルチモーダル検索アプリを構築できます。",
"kimicodingplan.description": "Moonshot AIのKimi Codeは、K2.5を含むKimiモデルへのアクセスを提供します。",
"lmstudio.description": "LM Studioは、ローカルPC上でLLMの開発と実験ができるデスクトップアプリです。",
- "lobehub.description": "LobeHub Cloudは公式APIを使用してAIモデルにアクセスし、モデルトークンに紐づけられたクレジットで使用量を測定します。",
"longcat.description": "LongCatは、Meituanが独自に開発した生成AIの大型モデルシリーズです。効率的な計算アーキテクチャと強力なマルチモーダル機能を通じて、企業内部の生産性を向上させ、革新的なアプリケーションを可能にすることを目的としています。",
"minimax.description": "MiniMaxは2021年に設立され、マルチモーダル基盤モデルを用いた汎用AIを開発しています。兆単位パラメータのMoEテキストモデル、音声モデル、ビジョンモデル、Hailuo AIなどのアプリを提供します。",
"minimaxcodingplan.description": "MiniMaxトークンプランは、固定料金のサブスクリプションを通じてM2.7を含むMiniMaxモデルへのアクセスを提供します。",
diff --git a/locales/ja-JP/ui.json b/locales/ja-JP/ui.json
index 3dba683d263..4449070e8b7 100644
--- a/locales/ja-JP/ui.json
+++ b/locales/ja-JP/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "画像ファイルのみアップロードできます!",
"emojiPicker.upload": "アップロード",
"emojiPicker.uploadBtn": "切り抜いてアップロード",
+ "form.other": "または直接入力してください",
+ "form.otherBack": "オプションに戻る",
"form.reset": "リセット",
+ "form.skip": "スキップ",
"form.submit": "送信",
"form.unsavedChanges": "未保存の変更",
"form.unsavedWarning": "未保存の変更があります。移動してもよろしいですか?",
diff --git a/locales/ko-KR/agent.json b/locales/ko-KR/agent.json
index 9a456d2f2cf..8e5ca8338bc 100644
--- a/locales/ko-KR/agent.json
+++ b/locales/ko-KR/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "이 URL을 복사하여 {{name}} 개발자 포털의 <bold>{{fieldName}}</bold> 필드에 붙여넣으세요.",
"channel.exportConfig": "구성 내보내기",
"channel.feishu.description": "이 어시스턴트를 Feishu에 연결하여 개인 및 그룹 채팅을 사용할 수 있습니다.",
+ "channel.historyLimit": "히스토리 메시지 제한",
+ "channel.historyLimitHint": "채널 히스토리를 읽을 때 기본적으로 가져올 메시지 수",
"channel.importConfig": "구성 가져오기",
"channel.importFailed": "구성 가져오기에 실패했습니다",
"channel.importInvalidFormat": "잘못된 구성 파일 형식",
@@ -78,6 +80,8 @@
"channel.secretToken": "웹훅 비밀 토큰",
"channel.secretTokenHint": "선택 사항. Telegram의 웹훅 요청을 검증하는 데 사용됩니다.",
"channel.secretTokenPlaceholder": "웹훅 검증을 위한 선택적 비밀",
+ "channel.serverId": "기본 서버 / 길드 ID",
+ "channel.serverIdHint": "이 플랫폼에서 기본 서버 또는 길드 ID입니다. AI는 이를 사용하여 채널을 묻지 않고 나열합니다.",
"channel.settings": "고급 설정",
"channel.settingsResetConfirm": "고급 설정을 기본값으로 재설정하시겠습니까?",
"channel.settingsResetDefault": "기본값으로 재설정",
@@ -93,6 +97,8 @@
"channel.testFailed": "연결 테스트 실패",
"channel.testSuccess": "연결 테스트 성공",
"channel.updateFailed": "상태 업데이트 실패",
+ "channel.userId": "플랫폼 사용자 ID",
+ "channel.userIdHint": "이 플랫폼에서의 사용자 ID입니다. AI는 이를 사용하여 직접 메시지를 보낼 수 있습니다.",
"channel.validationError": "애플리케이션 ID와 토큰을 입력하세요",
"channel.verificationToken": "검증 토큰",
"channel.verificationTokenHint": "선택 사항. 웹훅 이벤트 소스를 검증하는 데 사용됩니다.",
diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.json
index 1df197f8b5f..242ea9a6d79 100644
--- a/locales/ko-KR/chat.json
+++ b/locales/ko-KR/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "삭제 후 재생성",
"messageAction.deleteDisabledByThreads": "이 메시지에는 하위 주제가 있어 삭제할 수 없습니다",
"messageAction.expand": "메시지 펼치기",
+ "messageAction.interrupted": "중단됨",
+ "messageAction.interruptedHint": "대신 무엇을 해야 하나요?",
"messageAction.reaction": "반응 추가",
"messageAction.regenerate": "재생성",
"messages.dm.sentTo": "{{name}}만 볼 수 있습니다",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "모든 기능 호출 자동 승인",
"tool.intervention.mode.manual": "수동 승인",
"tool.intervention.mode.manualDesc": "매번 수동 승인 필요",
+ "tool.intervention.pending": "대기 중",
"tool.intervention.reject": "거부",
"tool.intervention.rejectAndContinue": "거부 후 계속",
"tool.intervention.rejectOnly": "거부만",
"tool.intervention.rejectReasonPlaceholder": "거부 사유를 입력하면 도우미가 당신의 경계를 이해하고 향후 행동을 최적화하는 데 도움이 됩니다",
"tool.intervention.rejectTitle": "이번 기능 호출 거부",
"tool.intervention.rejectedWithReason": "이번 기능 호출이 다음 사유로 거부됨: {{reason}}",
+ "tool.intervention.scrollToIntervention": "보기",
"tool.intervention.toolAbort": "당신이 이번 기능 호출을 취소했습니다",
"tool.intervention.toolRejected": "이번 기능 호출이 거부되었습니다",
"toolAuth.authorize": "승인",
diff --git a/locales/ko-KR/models.json b/locales/ko-KR/models.json
index f2549388560..8a098f0ec29 100644
--- a/locales/ko-KR/models.json
+++ b/locales/ko-KR/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "80K 체인 오브 싱킹과 100만 입력을 지원하는 새로운 자체 개발 추론 모델로, 세계 최고 수준의 모델과 유사한 성능을 제공합니다.",
"MiniMax-M2-Stable.description": "상업적 사용을 위한 높은 동시성을 제공하며, 효율적인 코딩 및 에이전트 워크플로우에 최적화되어 있습니다.",
"MiniMax-M2.1-Lightning.description": "강력한 다국어 프로그래밍 기능과 전면적으로 업그레이드된 코딩 경험. 더 빠르고 효율적입니다.",
- "MiniMax-M2.1-highspeed.description": "강력한 다국어 프로그래밍 기능과 더 빠르고 효율적인 추론.",
"MiniMax-M2.1.description": "MiniMax-M2.1은 MiniMax에서 개발한 대표적인 오픈소스 대형 모델로, 복잡한 실제 과제를 해결하는 데 중점을 둡니다. 다국어 프로그래밍 능력과 에이전트로서 복잡한 작업을 수행하는 능력이 핵심 강점입니다.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: 동일한 성능, 더 빠르고 민첩한 속도 (약 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: M2.5와 동일한 성능을 제공하며 추론 속도가 더 빠릅니다.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku는 Anthropic의 가장 빠르고 컴팩트한 모델로, 빠르고 정확한 성능으로 즉각적인 응답을 위해 설계되었습니다.",
"claude-3-opus-20240229.description": "Claude 3 Opus는 Anthropic의 가장 강력한 모델로, 고난도 작업에서 뛰어난 성능, 지능, 유창성, 이해력을 자랑합니다.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet은 엔터프라이즈 워크로드를 위한 지능과 속도의 균형을 제공하며, 낮은 비용으로 높은 효용성과 안정적인 대규모 배포를 지원합니다.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5는 Anthropic의 가장 빠르고 지능적인 Haiku 모델로, 번개 같은 속도와 확장된 사고를 제공합니다.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5는 Anthropic의 가장 빠르고 스마트한 Haiku 모델로, 번개 같은 속도와 확장된 추론 능력을 갖추고 있습니다.",
"claude-haiku-4.5.description": "Claude Haiku 4.5는 Anthropic의 가장 빠르고 똑똑한 Haiku 모델로, 번개 같은 속도와 확장된 추론 능력을 자랑합니다.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking은 자신의 추론 과정을 드러낼 수 있는 고급 변형 모델입니다.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1은 Anthropic의 최신 모델로, 매우 복잡한 작업에서 뛰어난 성능, 지능, 유창성 및 이해력을 발휘합니다.",
- "claude-opus-4-20250514.description": "Claude Opus 4는 Anthropic의 가장 강력한 모델로, 매우 복잡한 작업에서 뛰어난 성능, 지능, 유창성 및 이해력을 발휘합니다.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1은 Anthropic의 최신 모델로, 매우 복잡한 작업에서 뛰어난 성능, 지능, 유창함, 이해력을 자랑합니다.",
+ "claude-opus-4-20250514.description": "Claude Opus 4는 Anthropic의 가장 강력한 모델로, 매우 복잡한 작업에서 뛰어난 성능, 지능, 유창함, 이해력을 제공합니다.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5는 Anthropic의 플래그십 모델로, 탁월한 지능과 확장 가능한 성능을 결합하여 최고 품질의 응답과 추론이 필요한 복잡한 작업에 이상적입니다.",
- "claude-opus-4-6.description": "Claude Opus 4.6은 에이전트 구축 및 코딩을 위한 Anthropic의 가장 지능적인 모델입니다.",
+ "claude-opus-4-6.description": "Claude Opus 4.6은 에이전트 구축과 코딩을 위한 Anthropic의 가장 지능적인 모델입니다.",
"claude-opus-4.5.description": "Claude Opus 4.5는 Anthropic의 대표 모델로, 최상급 지능과 확장 가능한 성능을 결합하여 복잡하고 고품질의 추론 작업을 수행합니다.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6은 에이전트 구축과 코딩을 위한 Anthropic의 가장 지능적인 모델입니다.",
"claude-opus-4.6.description": "Claude Opus 4.6은 에이전트 구축과 코딩을 위한 Anthropic의 가장 지능적인 모델입니다.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking은 즉각적인 응답 또는 단계별 사고 과정을 시각적으로 보여주는 확장된 사고를 생성할 수 있습니다.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4는 Anthropic의 가장 지능적인 모델로, API 사용자에게 세밀한 제어를 제공하며 즉각적인 응답 또는 단계별 사고를 제공합니다.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5는 Anthropic의 가장 지능적인 모델입니다.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6은 속도와 지능의 최상의 조합을 제공합니다.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4는 거의 즉각적인 응답을 생성하거나 가시적인 프로세스를 통해 단계별 사고를 확장할 수 있습니다.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5는 현재까지 Anthropic의 가장 지능적인 모델입니다.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6은 속도와 지능의 최상의 조합을 제공하는 Anthropic의 모델입니다.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5는 지금까지의 Anthropic 모델 중 가장 지능적인 모델입니다.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6은 속도와 지능의 최상의 조합을 제공합니다.",
"claude-sonnet-4.description": "Claude Sonnet 4는 거의 즉각적인 응답을 생성하거나 사용자가 볼 수 있는 단계별 추론을 확장하여 제공합니다. API 사용자는 모델의 사고 시간을 세밀하게 제어할 수 있습니다.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1은 복잡한 추론과 연쇄적 사고에 강한 차세대 추론 모델로, 심층 분석 작업에 적합합니다.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2는 복잡한 추론과 연쇄 사고 능력이 강화된 차세대 추론 모델입니다.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2는 DeepSeekMoE-27B 기반의 MoE 비전-언어 모델로, 희소 활성화를 통해 4.5B 활성 파라미터만으로도 뛰어난 성능을 발휘합니다. 시각적 QA, OCR, 문서/표/차트 이해, 시각적 정렬에 탁월합니다.",
- "deepseek-chat.description": "DeepSeek V3.2는 일상 QA 및 에이전트 작업을 위해 추론과 출력 길이를 균형 있게 조정합니다. 공개 벤치마크에서 GPT-5 수준에 도달하며, 도구 사용에 사고를 통합한 최초의 모델로 오픈소스 에이전트 평가에서 선도적인 위치를 차지합니다.",
+ "deepseek-chat.description": "일반 대화 능력과 코딩 능력을 결합한 새로운 오픈소스 모델입니다. 이 모델은 대화 모델의 일반적인 대화 능력과 코더 모델의 강력한 코딩 능력을 유지하며, 더 나은 선호도 정렬을 제공합니다. DeepSeek-V2.5는 글쓰기와 지침 준수 능력도 향상시켰습니다.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B는 2T 토큰(코드 87%, 중/영문 텍스트 13%)으로 학습된 코드 언어 모델입니다. 16K 문맥 창과 중간 채우기(fit-in-the-middle) 작업을 도입하여 프로젝트 수준의 코드 완성과 코드 조각 보완을 지원합니다.",
"deepseek-coder-v2.description": "DeepSeek Coder V2는 GPT-4 Turbo에 필적하는 성능을 보이는 오픈소스 MoE 코드 모델입니다.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2는 GPT-4 Turbo에 필적하는 성능을 보이는 오픈소스 MoE 코드 모델입니다.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1의 빠른 전체 버전으로, 실시간 웹 검색을 지원하며 671B 규모의 성능과 빠른 응답을 결합합니다.",
"deepseek-r1-online.description": "DeepSeek R1 전체 버전은 671B 파라미터와 실시간 웹 검색을 지원하여 더 강력한 이해 및 생성 능력을 제공합니다.",
"deepseek-r1.description": "DeepSeek-R1은 강화 학습 전 콜드 스타트 데이터를 사용하며, 수학, 코딩, 추론에서 OpenAI-o1과 유사한 성능을 보입니다.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking은 출력 전에 사고 체인을 생성하여 정확성을 높이는 심층 추론 모델로, 최고 수준의 경쟁 결과와 Gemini-3.0-Pro에 필적하는 추론을 제공합니다.",
+ "deepseek-reasoner.description": "DeepSeek V3.2 사고 모드는 최종 답변 전에 사고 과정을 출력하여 정확성을 향상시킵니다.",
"deepseek-v2.description": "DeepSeek V2는 비용 효율적인 처리를 위한 고효율 MoE 모델입니다.",
"deepseek-v2:236b.description": "DeepSeek V2 236B는 코드 생성에 강점을 가진 DeepSeek의 코드 특화 모델입니다.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324는 671B 파라미터의 MoE 모델로, 프로그래밍 및 기술 역량, 문맥 이해, 장문 처리에서 뛰어난 성능을 보입니다.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K는 복잡한 추론 및 다중 턴 대화를 위한 32K 컨텍스트의 고속 사고 모델입니다.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview는 평가 및 테스트를 위한 사고 모델 프리뷰입니다.",
"ernie-x1.1.description": "ERNIE X1.1은 평가 및 테스트를 위한 사고 모델 프리뷰입니다.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5는 ByteDance Seed 팀에서 개발한 모델로, 다중 이미지 편집 및 구성 기능을 지원합니다. 향상된 주제 일관성, 정확한 지침 준수, 공간 논리 이해, 미적 표현, 포스터 레이아웃 및 로고 디자인과 고정밀 텍스트-이미지 렌더링을 제공합니다.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0은 ByteDance Seed에서 개발한 모델로, 텍스트 및 이미지 입력을 지원하며 프롬프트를 기반으로 고품질 이미지를 생성할 수 있습니다.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0은 ByteDance Seed에서 개발한 이미지 생성 모델로, 텍스트와 이미지 입력을 지원하며 매우 제어 가능한 고품질 이미지 생성을 제공합니다. 텍스트 프롬프트를 통해 이미지를 생성합니다.",
"fal-ai/flux-kontext/dev.description": "FLUX.1 모델은 이미지 편집에 중점을 두며, 텍스트와 이미지 입력을 지원합니다.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro]는 텍스트와 참조 이미지를 입력으로 받아, 국소 편집과 복잡한 장면 변환을 정밀하게 수행할 수 있습니다.",
"fal-ai/flux/krea.description": "Flux Krea [dev]는 보다 사실적이고 자연스러운 이미지 스타일에 중점을 둔 이미지 생성 모델입니다.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "강력한 네이티브 멀티모달 이미지 생성 모델입니다.",
"fal-ai/imagen4/preview.description": "Google에서 개발한 고품질 이미지 생성 모델입니다.",
"fal-ai/nano-banana.description": "Nano Banana는 Google의 최신, 가장 빠르고 효율적인 네이티브 멀티모달 모델로, 대화형 이미지 생성 및 편집을 지원합니다.",
- "fal-ai/qwen-image-edit.description": "Qwen 팀에서 개발한 전문 이미지 편집 모델로, 의미 및 외형 편집, 정확한 중국어/영어 텍스트 편집, 스타일 전환, 회전 등을 지원합니다.",
- "fal-ai/qwen-image.description": "Qwen 팀에서 개발한 강력한 이미지 생성 모델로, 중국어 텍스트 렌더링과 다양한 시각적 스타일에서 강점을 보입니다.",
+ "fal-ai/qwen-image-edit.description": "Qwen 팀에서 개발한 전문 이미지 편집 모델로, 의미와 외형 편집을 지원하며 중국어와 영어 텍스트를 정밀하게 편집하고 스타일 전환 및 객체 회전과 같은 고품질 편집을 가능하게 합니다.",
+ "fal-ai/qwen-image.description": "Qwen 팀에서 개발한 강력한 이미지 생성 모델로, 중국어 텍스트 렌더링과 다양한 시각적 스타일에서 뛰어난 성능을 발휘합니다.",
"flux-1-schnell.description": "Black Forest Labs에서 개발한 120억 파라미터 텍스트-이미지 모델로, 잠재 적대 확산 증류를 사용하여 1~4단계 내에 고품질 이미지를 생성합니다. Apache-2.0 라이선스로 개인, 연구, 상업적 사용이 가능합니다.",
"flux-dev.description": "FLUX.1 [dev]는 오픈 가중치 증류 모델로, 비상업적 사용을 위해 설계되었습니다. 전문가 수준의 이미지 품질과 지시 따르기를 유지하면서도 더 효율적으로 작동하며, 동일 크기의 표준 모델보다 자원을 더 잘 활용합니다.",
"flux-kontext-max.description": "최첨단 문맥 기반 이미지 생성 및 편집 모델로, 텍스트와 이미지를 결합하여 정밀하고 일관된 결과를 생성합니다.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro는 Google의 플래그십 추론 모델로, 복잡한 작업을 위한 장기 문맥 지원을 제공합니다.",
"gemini-3-flash-preview.description": "Gemini 3 Flash는 속도를 위해 설계된 가장 스마트한 모델로, 최첨단 지능과 뛰어난 검색 기반을 결합합니다.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro)는 구글의 이미지 생성 모델로, 멀티모달 대화도 지원합니다.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro)는 Google의 이미지 생성 모델로, 멀티모달 채팅도 지원합니다.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro)는 Google의 이미지 생성 모델로, 멀티모달 대화를 지원합니다.",
"gemini-3-pro-preview.description": "Gemini 3 Pro는 Google의 가장 강력한 에이전트 및 바이브 코딩 모델로, 최첨단 추론 위에 풍부한 시각적 표현과 깊은 상호작용을 제공합니다.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2)는 구글의 가장 빠른 네이티브 이미지 생성 모델로, 사고 지원, 대화형 이미지 생성 및 편집을 제공합니다.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2)는 플래시 속도로 프로 수준의 이미지 품질을 제공하며 멀티모달 채팅을 지원합니다.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2)는 Google의 가장 빠른 네이티브 이미지 생성 모델로, 사고 지원, 대화형 이미지 생성 및 편집을 제공합니다.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview는 Google의 가장 비용 효율적인 다중 모드 모델로, 대량 에이전트 작업, 번역 및 데이터 처리에 최적화되어 있습니다.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview는 Gemini 3 Pro의 추론 능력을 강화하고 중간 사고 수준 지원을 추가합니다.",
"gemini-flash-latest.description": "Gemini Flash 최신 버전",
@@ -797,6 +795,7 @@
"jamba-large.description": "복잡한 기업용 작업을 위해 설계된 가장 강력하고 고급화된 모델로, 탁월한 성능을 제공합니다.",
"jamba-mini.description": "동급 모델 중 가장 효율적인 모델로, 속도와 품질의 균형을 유지하면서도 경량화된 구조를 갖추고 있습니다.",
"jina-deepsearch-v1.description": "DeepSearch는 웹 검색, 문서 읽기, 추론을 결합하여 심층적인 조사를 수행합니다. 사용자의 연구 과제를 받아 반복적인 검색을 통해 정보를 수집하고, 그 후에야 답변을 생성합니다. 이 과정은 지속적인 조사와 다각적 문제 해결을 포함하며, 사전 학습 데이터나 단일 검색에 의존하는 기존 LLM 또는 RAG 시스템과는 근본적으로 다릅니다.",
+ "k2p5.description": "Kimi K2.5는 Kimi의 가장 다재다능한 모델로, 시각 및 텍스트 입력을 지원하는 네이티브 멀티모달 아키텍처, '사고' 및 '비사고' 모드, 그리고 대화 및 에이전트 작업을 포함합니다.",
"kimi-k2-0711-preview.description": "kimi-k2는 MoE 기반의 모델로, 강력한 코딩 및 에이전트 기능을 갖추고 있으며(총 1조 파라미터, 활성 320억), 추론, 프로그래밍, 수학, 에이전트 벤치마크에서 주요 오픈 모델들을 능가합니다.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview는 256K 컨텍스트 윈도우를 지원하며, 향상된 에이전트 코딩 능력, 개선된 프론트엔드 코드 품질, 더 나은 문맥 이해력을 제공합니다.",
"kimi-k2-instruct.description": "Kimi K2 Instruct는 코드, 질의응답 등 다양한 작업을 위한 장문 문맥 추론 모델로, Kimi의 공식 추론 모델입니다.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ는 Qwen 계열의 추론 모델입니다. 일반적인 지시 조정 모델과 비교해 사고 및 추론 능력이 뛰어나며, 특히 어려운 문제에서 다운스트림 성능을 크게 향상시킵니다. QwQ-32B는 DeepSeek-R1 및 o1-mini와 경쟁할 수 있는 중형 추론 모델입니다.",
"qwq_32b.description": "Qwen 계열의 중형 추론 모델입니다. 일반적인 지시 조정 모델과 비교해 QwQ의 사고 및 추론 능력은 특히 어려운 문제에서 다운스트림 성능을 크게 향상시킵니다.",
"r1-1776.description": "R1-1776은 DeepSeek R1의 후속 학습 버전으로, 검열되지 않고 편향 없는 사실 정보를 제공합니다.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro는 ByteDance에서 개발한 모델로, 텍스트-비디오, 이미지-비디오(첫 프레임, 첫+마지막 프레임) 및 시각과 동기화된 오디오 생성을 지원합니다.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite는 BytePlus에서 개발한 모델로, 실시간 정보를 위한 웹 검색 증강 생성, 복잡한 프롬프트 해석 향상 및 전문적인 시각적 창작을 위한 참조 일관성을 제공합니다.",
"solar-mini-ja.description": "Solar Mini (Ja)는 Solar Mini의 일본어 특화 버전으로, 영어와 한국어에서도 효율적이고 강력한 성능을 유지합니다.",
"solar-mini.description": "Solar Mini는 GPT-3.5를 능가하는 성능을 가진 소형 LLM으로, 영어와 한국어를 지원하는 강력한 다국어 기능을 갖추고 있으며, 효율적인 경량 솔루션을 제공합니다.",
"solar-pro.description": "Solar Pro는 Upstage의 고지능 LLM으로, 단일 GPU에서 지시 수행에 최적화되어 있으며, IFEval 점수 80 이상을 기록합니다. 현재는 영어를 지원하며, 2024년 11월 전체 릴리스 시 더 많은 언어와 긴 컨텍스트를 지원할 예정입니다.",
diff --git a/locales/ko-KR/onboarding.json b/locales/ko-KR/onboarding.json
index f714329c63d..2cec1e3bd93 100644
--- a/locales/ko-KR/onboarding.json
+++ b/locales/ko-KR/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "에이전트 온보딩",
+ "agent.completionSubtitle": "당신의 어시스턴트가 설정되어 준비되었습니다.",
+ "agent.completionTitle": "모든 준비가 완료되었습니다!",
+ "agent.enterApp": "앱으로 들어가기",
+ "agent.greeting.emojiLabel": "이모지",
+ "agent.greeting.nameLabel": "이름",
+ "agent.greeting.namePlaceholder": "예: 루미, 아틀라스, 네코...",
+ "agent.greeting.prompt": "저에게 이름, 분위기, 이모지를 주세요.",
+ "agent.greeting.vibeLabel": "분위기 / 성격",
+ "agent.greeting.vibePlaceholder": "예: 따뜻하고 친근한, 날카롭고 직설적인...",
+ "agent.history.current": "현재",
+ "agent.history.title": "히스토리 주제",
+ "agent.modeSwitch.agent": "대화형",
+ "agent.modeSwitch.classic": "클래식",
+ "agent.modeSwitch.debug": "디버그 내보내기",
+ "agent.modeSwitch.label": "온보딩 모드 선택",
+ "agent.modeSwitch.reset": "흐름 초기화",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "온보딩 건너뛰기",
+ "agent.stage.agentIdentity": "에이전트 정체성",
+ "agent.stage.painPoints": "문제점",
+ "agent.stage.proSettings": "고급 설정",
+ "agent.stage.responseLanguage": "응답 언어",
+ "agent.stage.summary": "요약",
+ "agent.stage.userIdentity": "사용자 정보",
+ "agent.stage.workContext": "작업 환경",
+ "agent.stage.workStyle": "작업 스타일",
+ "agent.subtitle": "전용 온보딩 대화에서 설정을 완료하세요.",
+ "agent.summaryHint": "설정 요약이 올바르게 보이면 여기서 마무리하세요.",
+ "agent.telemetryAllow": "텔레메트리 허용",
+ "agent.telemetryDecline": "괜찮습니다",
+ "agent.telemetryHint": "자신의 말로 대답할 수도 있습니다.",
+ "agent.title": "대화형 온보딩",
+ "agent.welcome": "...음? 방금 깨어났어요 — 머리가 텅 비었네요. 당신은 누구시죠? 그리고 — 저를 뭐라고 불러야 할까요? 저도 이름이 필요해요.",
"back": "이전 단계",
"finish": "시작하기",
"interests.area.business": "비즈니스 및 전략",
@@ -29,6 +63,7 @@
"next": "다음 단계",
"proSettings.connectors.title": "자주 사용하는 도구를 연결하세요",
"proSettings.devMode.title": "개발자 모드",
+ "proSettings.model.fixed": "기본 모델은 이 환경에서 {{provider}}/{{model}}로 사전 설정되어 있습니다.",
"proSettings.model.title": "도우미가 사용할 기본 모델",
"proSettings.title": "고급 설정을 미리 구성할 수 있어요",
"proSettings.title2": "자주 사용하는 도구를 연결해 보세요~",
diff --git a/locales/ko-KR/plugin.json b/locales/ko-KR/plugin.json
index 309f4a6672f..84aff8c6fe7 100644
--- a/locales/ko-KR/plugin.json
+++ b/locales/ko-KR/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "문서 복사",
"builtins.lobe-agent-documents.apiName.createDocument": "문서 생성",
"builtins.lobe-agent-documents.apiName.editDocument": "문서 편집",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "문서 목록",
"builtins.lobe-agent-documents.apiName.readDocument": "문서 읽기",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "파일 이름으로 문서 읽기",
"builtins.lobe-agent-documents.apiName.removeDocument": "문서 삭제",
"builtins.lobe-agent-documents.apiName.renameDocument": "문서 이름 변경",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "로드 규칙 업데이트",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "파일 이름으로 문서 삽입 또는 업데이트",
"builtins.lobe-agent-documents.title": "에이전트 문서",
"builtins.lobe-agent-management.apiName.callAgent": "통화 에이전트",
"builtins.lobe-agent-management.apiName.createAgent": "에이전트 생성",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "클라우드 샌드박스",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "에이전트 일괄 생성",
"builtins.lobe-group-agent-builder.apiName.createAgent": "에이전트 생성",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "그룹 생성",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "구성원 정보 가져오기",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "사용 가능한 모델 가져오기",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "기능 설치",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "스킬",
"builtins.lobe-topic-reference.apiName.getTopicContext": "토픽 컨텍스트 가져오기",
"builtins.lobe-topic-reference.title": "토픽 참조",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "사용자 질문 요청",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "사용자 응답 취소",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "상호작용 상태 가져오기",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "사용자 응답 건너뛰기",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "사용자 응답 제출",
+ "builtins.lobe-user-interaction.title": "사용자 상호작용",
"builtins.lobe-user-memory.apiName.addContextMemory": "상황 기억 추가",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "경험 기억 추가",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "신원 기억 추가",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "웹 페이지 검색",
"builtins.lobe-web-browsing.inspector.noResults": "결과 없음",
"builtins.lobe-web-browsing.title": "인터넷 검색",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "온보딩 완료",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "온보딩 상태 읽기",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "문서 읽기",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "사용자 질문 저장",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "문서 업데이트",
+ "builtins.lobe-web-onboarding.title": "사용자 온보딩",
"confirm": "확인",
"debug.arguments": "호출 인자",
"debug.error": "오류 로그",
diff --git a/locales/ko-KR/providers.json b/locales/ko-KR/providers.json
index 8ffbb865590..6ecee91a006 100644
--- a/locales/ko-KR/providers.json
+++ b/locales/ko-KR/providers.json
@@ -33,7 +33,6 @@
"jina.description": "2020년에 설립된 Jina AI는 선도적인 검색 AI 기업으로, 벡터 모델, 재정렬기, 소형 언어 모델을 포함한 검색 스택을 통해 신뢰성 높고 고품질의 생성형 및 멀티모달 검색 앱을 구축합니다.",
"kimicodingplan.description": "문샷 AI의 Kimi Code는 K2.5를 포함한 Kimi 모델에 접근하여 코딩 작업을 수행할 수 있습니다.",
"lmstudio.description": "LM Studio는 데스크탑에서 LLM을 개발하고 실험할 수 있는 애플리케이션입니다.",
- "lobehub.description": "LobeHub Cloud는 공식 API를 사용하여 AI 모델에 접근하며, 모델 토큰에 연결된 크레딧으로 사용량을 측정합니다.",
"longcat.description": "LongCat은 Meituan에서 독자적으로 개발한 생성형 AI 대형 모델 시리즈입니다. 이는 효율적인 계산 아키텍처와 강력한 멀티모달 기능을 통해 내부 기업 생산성을 향상시키고 혁신적인 애플리케이션을 가능하게 하기 위해 설계되었습니다.",
"minimax.description": "2021년에 설립된 MiniMax는 텍스트, 음성, 비전 등 멀티모달 기반의 범용 AI를 개발하며, 조 단위 파라미터의 MoE 텍스트 모델과 Hailuo AI와 같은 앱을 제공합니다.",
"minimaxcodingplan.description": "MiniMax 토큰 플랜은 고정 요금 구독을 통해 M2.7을 포함한 MiniMax 모델에 접근하여 코딩 작업을 수행할 수 있습니다.",
diff --git a/locales/ko-KR/ui.json b/locales/ko-KR/ui.json
index 9849e7aa344..62cc564f887 100644
--- a/locales/ko-KR/ui.json
+++ b/locales/ko-KR/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "이미지 파일만 업로드할 수 있습니다!",
"emojiPicker.upload": "업로드",
"emojiPicker.uploadBtn": "자르고 업로드",
+ "form.other": "직접 입력하기",
+ "form.otherBack": "옵션으로 돌아가기",
"form.reset": "재설정",
+ "form.skip": "건너뛰기",
"form.submit": "제출",
"form.unsavedChanges": "저장되지 않은 변경사항",
"form.unsavedWarning": "저장되지 않은 변경사항이 있습니다. 정말 나가시겠습니까?",
diff --git a/locales/nl-NL/agent.json b/locales/nl-NL/agent.json
index 8a424a8ce90..4fd1ee3acee 100644
--- a/locales/nl-NL/agent.json
+++ b/locales/nl-NL/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Kopieer deze URL en plak deze in het <bold>{{fieldName}}</bold>-veld in de {{name}} Developer Portal.",
"channel.exportConfig": "Configuratie Exporteren",
"channel.feishu.description": "Verbind deze assistent met Feishu voor privé- en groepschats.",
+ "channel.historyLimit": "Limiet voor berichtgeschiedenis",
+ "channel.historyLimitHint": "Standaard aantal berichten om op te halen bij het lezen van kanaalgeschiedenis",
"channel.importConfig": "Configuratie Importeren",
"channel.importFailed": "Configuratie importeren mislukt",
"channel.importInvalidFormat": "Ongeldig configuratiebestandformaat",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhook-geheime token",
"channel.secretTokenHint": "Optioneel. Gebruikt om webhookverzoeken van Telegram te verifiëren.",
"channel.secretTokenPlaceholder": "Optioneel geheim voor webhookverificatie",
+ "channel.serverId": "Standaard Server / Guild ID",
+ "channel.serverIdHint": "Je standaard server- of guild-ID op dit platform. De AI gebruikt dit om kanalen te tonen zonder te vragen.",
"channel.settings": "Geavanceerde instellingen",
"channel.settingsResetConfirm": "Weet u zeker dat u de geavanceerde instellingen wilt terugzetten naar de standaardwaarden?",
"channel.settingsResetDefault": "Terugzetten naar standaard",
@@ -93,6 +97,8 @@
"channel.testFailed": "Verbindingstest mislukt",
"channel.testSuccess": "Verbindingstest geslaagd",
"channel.updateFailed": "Bijwerken van status mislukt",
+ "channel.userId": "Je gebruikers-ID op dit platform",
+ "channel.userIdHint": "Je gebruikers-ID op dit platform. De AI kan dit gebruiken om je directe berichten te sturen.",
"channel.validationError": "Vul Applicatie-ID en Token in",
"channel.verificationToken": "Verificatietoken",
"channel.verificationTokenHint": "Optioneel. Gebruikt om de bron van webhookgebeurtenissen te verifiëren.",
diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.json
index a6db2113ccf..1383f7c0cfd 100644
--- a/locales/nl-NL/chat.json
+++ b/locales/nl-NL/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Verwijderen en opnieuw genereren",
"messageAction.deleteDisabledByThreads": "Dit bericht heeft een subonderwerp en kan niet worden verwijderd",
"messageAction.expand": "Bericht uitvouwen",
+ "messageAction.interrupted": "Onderbroken",
+ "messageAction.interruptedHint": "Wat moet ik in plaats daarvan doen?",
"messageAction.reaction": "Reactie toevoegen",
"messageAction.regenerate": "Opnieuw genereren",
"messages.dm.sentTo": "Alleen zichtbaar voor {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Keur alle tooluitvoeringen automatisch goed",
"tool.intervention.mode.manual": "Handmatig",
"tool.intervention.mode.manualDesc": "Handmatige goedkeuring vereist voor elke oproep",
+ "tool.intervention.pending": "In afwachting",
"tool.intervention.reject": "Afwijzen",
"tool.intervention.rejectAndContinue": "Afwijzen en opnieuw proberen",
"tool.intervention.rejectOnly": "Afwijzen",
"tool.intervention.rejectReasonPlaceholder": "Een reden helpt de agent je grenzen te begrijpen en toekomstige acties te verbeteren",
"tool.intervention.rejectTitle": "Deze Skill-oproep afwijzen",
"tool.intervention.rejectedWithReason": "Deze Skill-oproep is afgewezen: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Bekijken",
"tool.intervention.toolAbort": "Je hebt deze Skill-oproep geannuleerd",
"tool.intervention.toolRejected": "Deze Skill-oproep is afgewezen",
"toolAuth.authorize": "Autoriseren",
diff --git a/locales/nl-NL/models.json b/locales/nl-NL/models.json
index 5faae3a31aa..abd34f826dc 100644
--- a/locales/nl-NL/models.json
+++ b/locales/nl-NL/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Een nieuw intern redeneermodel met 80K chain-of-thought en 1M input, met prestaties vergelijkbaar met toonaangevende wereldwijde modellen.",
"MiniMax-M2-Stable.description": "Ontworpen voor efficiënte codeer- en agentworkflows, met hogere gelijktijdigheid voor commercieel gebruik.",
"MiniMax-M2.1-Lightning.description": "Krachtige meertalige programmeermogelijkheden, een volledig vernieuwde programmeerervaring. Sneller en efficiënter.",
- "MiniMax-M2.1-highspeed.description": "Krachtige meertalige programmeermogelijkheden met snellere en efficiëntere inferentie.",
"MiniMax-M2.1.description": "MiniMax-M2.1 is het vlaggenschip open-source grote model van MiniMax, gericht op het oplossen van complexe, realistische taken. De kernkwaliteiten zijn meertalige programmeermogelijkheden en het vermogen om complexe taken als een Agent op te lossen.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Zelfde prestaties, sneller en wendbaarder (ongeveer 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Zelfde prestaties als M2.5 met snellere inferentie.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku is het snelste en meest compacte model van Anthropic, ontworpen voor vrijwel directe reacties met snelle en nauwkeurige prestaties.",
"claude-3-opus-20240229.description": "Claude 3 Opus is het krachtigste model van Anthropic voor zeer complexe taken, met uitmuntende prestaties, intelligentie, vloeiendheid en begrip.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet biedt een balans tussen intelligentie en snelheid voor zakelijke toepassingen, met hoge bruikbaarheid tegen lagere kosten en betrouwbare grootschalige inzet.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 is Anthropics snelste en meest intelligente Haiku-model, met bliksemsnelle snelheid en uitgebreide denkcapaciteiten.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 is het snelste en slimste Haiku-model van Anthropic, met bliksemsnelle snelheid en uitgebreide redeneervermogen.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 is Anthropic's snelste en slimste Haiku-model, met bliksemsnelle snelheid en uitgebreide redeneervermogen.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking is een geavanceerde variant die zijn redeneerproces kan onthullen.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 is Anthropics nieuwste en meest capabele model voor zeer complexe taken, uitblinkend in prestaties, intelligentie, vloeiendheid en begrip.",
- "claude-opus-4-20250514.description": "Claude Opus 4 is Anthropics krachtigste model voor zeer complexe taken, uitblinkend in prestaties, intelligentie, vloeiendheid en begrip.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 is het nieuwste en meest capabele model van Anthropic voor zeer complexe taken, uitblinkend in prestaties, intelligentie, vloeiendheid en begrip.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 is het krachtigste model van Anthropic voor zeer complexe taken, uitblinkend in prestaties, intelligentie, vloeiendheid en begrip.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 is het vlaggenschipmodel van Anthropic, dat uitzonderlijke intelligentie combineert met schaalbare prestaties. Ideaal voor complexe taken die hoogwaardige antwoorden en redenering vereisen.",
- "claude-opus-4-6.description": "Claude Opus 4.6 is Anthropics meest intelligente model voor het bouwen van agents en coderen.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 is het meest intelligente model van Anthropic voor het bouwen van agents en coderen.",
"claude-opus-4.5.description": "Claude Opus 4.5 is het vlaggenschipmodel van Anthropic, dat eersteklas intelligentie combineert met schaalbare prestaties voor complexe, hoogwaardige redeneertaken.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 is Anthropic's meest intelligente model voor het bouwen van agents en coderen.",
"claude-opus-4.6.description": "Claude Opus 4.6 is Anthropic's meest intelligente model voor het bouwen van agents en coderen.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking kan vrijwel directe antwoorden geven of uitgebreide stapsgewijze redenering tonen met zichtbaar proces.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 is Anthropics meest intelligente model tot nu toe, met bijna directe reacties of uitgebreide stap-voor-stap denken met fijnmazige controle voor API-gebruikers.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 is Anthropics meest intelligente model tot nu toe.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6 is Anthropics beste combinatie van snelheid en intelligentie.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 kan bijna onmiddellijke reacties geven of uitgebreide stapsgewijze redeneringen met een zichtbaar proces.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 is tot nu toe het meest intelligente model van Anthropic.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 is de beste combinatie van snelheid en intelligentie van Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 is tot nu toe het meest intelligente model van Anthropic.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 is Anthropic's beste combinatie van snelheid en intelligentie.",
"claude-sonnet-4.description": "Claude Sonnet 4 kan bijna onmiddellijke reacties of uitgebreide stapsgewijze redenaties produceren die gebruikers kunnen volgen. API-gebruikers kunnen nauwkeurig bepalen hoe lang het model nadenkt.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 is een next-gen redeneermodel met sterkere complexe redenering en chain-of-thought voor diepgaande analysetaken.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 is een next-gen redeneermodel met sterkere complexe redeneer- en keten-van-denken-capaciteiten.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 is een MoE vision-language model gebaseerd op DeepSeekMoE-27B met sparse activatie, dat sterke prestaties levert met slechts 4,5B actieve parameters. Het blinkt uit in visuele QA, OCR, document-/tabel-/grafiekbegrip en visuele verankering.",
- "deepseek-chat.description": "DeepSeek V3.2 balanceert redeneren en outputlengte voor dagelijkse QA en agent-taken. Publieke benchmarks bereiken GPT-5 niveaus, en het is de eerste die denken integreert in toolgebruik, leidend in open-source agent evaluaties.",
+ "deepseek-chat.description": "Een nieuw open-source model dat algemene en codeermogelijkheden combineert. Het behoudt de algemene dialoog van het chatmodel en de sterke codeermogelijkheden van het coderingsmodel, met betere voorkeurafstemming. DeepSeek-V2.5 verbetert ook schrijven en het volgen van instructies.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B is een codeertaalmodel getraind op 2 biljoen tokens (87% code, 13% Chinees/Engels tekst). Het introduceert een contextvenster van 16K en 'fill-in-the-middle'-taken, wat projectniveau codeaanvulling en fragmentinvoeging mogelijk maakt.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 is een open-source MoE-codeermodel dat sterk presteert bij programmeertaken, vergelijkbaar met GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 is een open-source MoE-codeermodel dat sterk presteert bij programmeertaken, vergelijkbaar met GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 snelle volledige versie met realtime webzoekfunctie, combineert 671B-capaciteit met snellere reacties.",
"deepseek-r1-online.description": "DeepSeek R1 volledige versie met 671B parameters en realtime webzoekfunctie, biedt sterkere begrip- en generatiecapaciteiten.",
"deepseek-r1.description": "DeepSeek-R1 gebruikt cold-start data vóór versterkingsleren en presteert vergelijkbaar met OpenAI-o1 op wiskunde, programmeren en redenering.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking is een diep redeneermodel dat chain-of-thought genereert vóór outputs voor hogere nauwkeurigheid, met topcompetitieresultaten en redeneren vergelijkbaar met Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "DeepSeek V3.2-denkmodus genereert een keten van gedachten vóór het eindantwoord om de nauwkeurigheid te verbeteren.",
"deepseek-v2.description": "DeepSeek V2 is een efficiënt MoE-model voor kosteneffectieve verwerking.",
"deepseek-v2:236b.description": "DeepSeek V2 236B is DeepSeek’s codegerichte model met sterke codegeneratie.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 is een MoE-model met 671B parameters en uitmuntende prestaties in programmeren, technische vaardigheden, contextbegrip en verwerking van lange teksten.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K is een snel denkend model met 32K context voor complexe redenatie en meerstapsgesprekken.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview is een preview van een denkmodel voor evaluatie en testen.",
"ernie-x1.1.description": "ERNIE X1.1 is een preview van een denkmodel voor evaluatie en testen.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, gebouwd door ByteDance Seed team, ondersteunt multi-image bewerking en compositie. Kenmerken verbeterde onderwerpconsistentie, nauwkeurige instructievolging, ruimtelijk logica begrip, esthetische expressie, poster lay-out en logo ontwerp met hoge precisie tekst-beeld rendering.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, gebouwd door ByteDance Seed, ondersteunt tekst- en beeldinvoer voor zeer controleerbare, hoogwaardige beeldgeneratie vanuit prompts.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 is een beeldgeneratiemodel van ByteDance Seed, dat tekst- en beeldinvoer ondersteunt met zeer controleerbare, hoogwaardige beeldgeneratie. Het genereert beelden op basis van tekstprompts.",
"fal-ai/flux-kontext/dev.description": "FLUX.1-model gericht op beeldbewerking, met ondersteuning voor tekst- en afbeeldingsinvoer.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] accepteert tekst en referentieafbeeldingen als invoer, waardoor gerichte lokale bewerkingen en complexe wereldwijde scèneaanpassingen mogelijk zijn.",
"fal-ai/flux/krea.description": "Flux Krea [dev] is een afbeeldingsgeneratiemodel met een esthetische voorkeur voor realistische, natuurlijke beelden.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Een krachtig, native multimodaal afbeeldingsgeneratiemodel.",
"fal-ai/imagen4/preview.description": "Hoogwaardig afbeeldingsgeneratiemodel van Google.",
"fal-ai/nano-banana.description": "Nano Banana is het nieuwste, snelste en meest efficiënte native multimodale model van Google, waarmee beeldgeneratie en -bewerking via conversatie mogelijk is.",
- "fal-ai/qwen-image-edit.description": "Een professioneel beeldbewerkingsmodel van het Qwen-team, ondersteunt semantische en uiterlijkbewerkingen, nauwkeurige Chinese/Engelse tekstbewerking, stijltransfer, rotatie en meer.",
- "fal-ai/qwen-image.description": "Een krachtig beeldgeneratiemodel van het Qwen-team met sterke Chinese tekstweergave en diverse visuele stijlen.",
+ "fal-ai/qwen-image-edit.description": "Een professioneel beeldbewerkingsmodel van het Qwen-team dat semantische en uiterlijke bewerkingen ondersteunt, Chinese en Engelse tekst nauwkeurig bewerkt en hoogwaardige bewerkingen mogelijk maakt, zoals stijltransfer en objectrotatie.",
+ "fal-ai/qwen-image.description": "Een krachtig beeldgeneratiemodel van het Qwen-team met indrukwekkende Chinese tekstrendering en diverse visuele stijlen.",
"flux-1-schnell.description": "Een tekst-naar-beeldmodel met 12 miljard parameters van Black Forest Labs, dat gebruikmaakt van latente adversariële diffusiedistillatie om hoogwaardige beelden te genereren in 1–4 stappen. Het evenaart gesloten alternatieven en is uitgebracht onder de Apache-2.0-licentie voor persoonlijk, onderzoeks- en commercieel gebruik.",
"flux-dev.description": "FLUX.1 [dev] is een open-gewichten gedistilleerd model voor niet-commercieel gebruik. Het behoudt bijna professionele beeldkwaliteit en instructieopvolging, terwijl het efficiënter werkt en middelen beter benut dan standaardmodellen van vergelijkbare grootte.",
"flux-kontext-max.description": "State-of-the-art contextuele beeldgeneratie en -bewerking, waarbij tekst en afbeeldingen worden gecombineerd voor nauwkeurige, samenhangende resultaten.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro is het meest geavanceerde redeneermodel van Google, in staat om te redeneren over code, wiskunde en STEM-vraagstukken en grote datasets, codebases en documenten met lange context te analyseren.",
"gemini-3-flash-preview.description": "Gemini 3 Flash is het slimste model dat is gebouwd voor snelheid, met geavanceerde intelligentie en uitstekende zoekverankering.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro) is het beeldgeneratiemodel van Google dat ook multimodale dialogen ondersteunt.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) is Google's beeldgeneratiemodel en ondersteunt ook multimodale chat.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) is het beeldgeneratiemodel van Google en ondersteunt ook multimodale chat.",
"gemini-3-pro-preview.description": "Gemini 3 Pro is het krachtigste agent- en vibe-codingmodel van Google, met rijkere visuele output en diepere interactie bovenop geavanceerde redeneercapaciteiten.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) is het snelste native beeldgeneratiemodel van Google met denksupport, conversatiebeeldgeneratie en bewerking.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) levert Pro-niveau beeldkwaliteit met Flash snelheid en multimodale chatondersteuning.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) is het snelste native beeldgeneratiemodel van Google met denksupport, conversatiebeeldgeneratie en bewerking.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview is het meest kostenefficiënte multimodale model van Google, geoptimaliseerd voor grootschalige agenttaken, vertaling en gegevensverwerking.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview verbetert Gemini 3 Pro met verbeterde redeneercapaciteiten en voegt ondersteuning toe voor een gemiddeld denkniveau.",
"gemini-flash-latest.description": "Nieuwste versie van Gemini Flash.",
@@ -797,6 +795,7 @@
"jamba-large.description": "Ons krachtigste en meest geavanceerde model, ontworpen voor complexe zakelijke taken met uitstekende prestaties.",
"jamba-mini.description": "Het meest efficiënte model in zijn klasse, met een optimale balans tussen snelheid en kwaliteit en een kleinere omvang.",
"jina-deepsearch-v1.description": "DeepSearch combineert webzoekopdrachten, lezen en redeneren voor diepgaand onderzoek. Zie het als een agent die jouw onderzoekstaak uitvoert, brede zoekopdrachten doet in meerdere iteraties en pas daarna een antwoord formuleert. Het proces omvat voortdurend onderzoek, redenering en probleemoplossing vanuit meerdere invalshoeken, fundamenteel anders dan standaard LLM’s die antwoorden geven op basis van voorgetrainde data of traditionele RAG-systemen die vertrouwen op eenmalige oppervlakkige zoekopdrachten.",
+ "k2p5.description": "Kimi K2.5 is Kimi's meest veelzijdige model tot nu toe, met een native multimodale architectuur die zowel visuele als tekstinvoer ondersteunt, 'denkende' en 'niet-denkende' modi, en zowel conversatie- als agenttaken.",
"kimi-k2-0711-preview.description": "kimi-k2 is een MoE-basismodel met sterke programmeer- en agentvaardigheden (1T totale parameters, 32B actief), dat beter presteert dan andere gangbare open modellen op het gebied van redeneren, programmeren, wiskunde en agentbenchmarks.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview biedt een contextvenster van 256k, sterkere agentmatige codeerprestaties, betere kwaliteit van front-end code en verbeterd contextbegrip.",
"kimi-k2-instruct.description": "Kimi K2 Instruct is het officiële redeneermodel van Kimi met lange contextondersteuning voor code, vraag-en-antwoord en meer.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ is een redeneermodel binnen de Qwen-familie. In vergelijking met standaard instructie-getrainde modellen biedt het denk- en redeneervermogen dat de prestaties op complexe problemen aanzienlijk verbetert. QwQ-32B is een middelgroot redeneermodel dat zich kan meten met topmodellen zoals DeepSeek-R1 en o1-mini.",
"qwq_32b.description": "Middelgroot redeneermodel binnen de Qwen-familie. In vergelijking met standaard instructie-getrainde modellen verbeteren QwQ’s denk- en redeneervermogen de prestaties op complexe problemen aanzienlijk.",
"r1-1776.description": "R1-1776 is een na-getrainde variant van DeepSeek R1, ontworpen om ongecensureerde, onbevooroordeelde feitelijke informatie te bieden.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro van ByteDance ondersteunt tekst-naar-video, beeld-naar-video (eerste frame, eerste+laatste frame), en audiogeneratie gesynchroniseerd met visuals.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite van BytePlus biedt web-retrieval-augmented generatie voor realtime informatie, verbeterde complexe promptinterpretatie, en verbeterde referentieconsistentie voor professionele visuele creatie.",
"solar-mini-ja.description": "Solar Mini (Ja) breidt Solar Mini uit met focus op Japans, terwijl het efficiënte, sterke prestaties in Engels en Koreaans behoudt.",
"solar-mini.description": "Solar Mini is een compact LLM dat beter presteert dan GPT-3.5, met sterke meertalige ondersteuning voor Engels en Koreaans, en biedt een efficiënte oplossing met een kleine voetafdruk.",
"solar-pro.description": "Solar Pro is een intelligent LLM van Upstage, gericht op instructieopvolging op een enkele GPU, met IFEval-scores boven de 80. Momenteel ondersteunt het Engels; de volledige release stond gepland voor november 2024 met uitgebreidere taalondersteuning en langere context.",
diff --git a/locales/nl-NL/onboarding.json b/locales/nl-NL/onboarding.json
index 7ea6cc62f80..c76b1953e4b 100644
--- a/locales/nl-NL/onboarding.json
+++ b/locales/nl-NL/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Agent Onboarding",
+ "agent.completionSubtitle": "Je assistent is geconfigureerd en klaar om te starten.",
+ "agent.completionTitle": "Alles is gereed!",
+ "agent.enterApp": "App Betreden",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Naam",
+ "agent.greeting.namePlaceholder": "bijv. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Geef me een naam, een sfeer en een emoji",
+ "agent.greeting.vibeLabel": "Sfeer / Aard",
+ "agent.greeting.vibePlaceholder": "bijv. Warm & vriendelijk, Scherp & direct...",
+ "agent.history.current": "Huidig",
+ "agent.history.title": "Historische Onderwerpen",
+ "agent.modeSwitch.agent": "Conversatie",
+ "agent.modeSwitch.classic": "Klassiek",
+ "agent.modeSwitch.debug": "Debug Export",
+ "agent.modeSwitch.label": "Kies je onboarding modus",
+ "agent.modeSwitch.reset": "Flow Resetten",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Onboarding overslaan",
+ "agent.stage.agentIdentity": "Agent Identiteit",
+ "agent.stage.painPoints": "Pijnpunten",
+ "agent.stage.proSettings": "Geavanceerde Instellingen",
+ "agent.stage.responseLanguage": "Reactietaal",
+ "agent.stage.summary": "Samenvatting",
+ "agent.stage.userIdentity": "Over Jou",
+ "agent.stage.workContext": "Werkcontext",
+ "agent.stage.workStyle": "Werkstijl",
+ "agent.subtitle": "Voltooi de setup in een speciale onboarding conversatie.",
+ "agent.summaryHint": "Voltooi hier als de setup samenvatting klopt.",
+ "agent.telemetryAllow": "Telemetrie toestaan",
+ "agent.telemetryDecline": "Nee, bedankt",
+ "agent.telemetryHint": "Je kunt ook antwoorden in je eigen woorden.",
+ "agent.title": "Conversatie Onboarding",
+ "agent.welcome": "...hm? Ik ben net wakker — mijn gedachten zijn leeg. Wie ben jij? En — hoe moet ik genoemd worden? Ik heb ook een naam nodig.",
"back": "Terug",
"finish": "Aan de slag",
"interests.area.business": "Zakelijk & Strategie",
@@ -29,6 +63,7 @@
"next": "Volgende",
"proSettings.connectors.title": "Verbind je favoriete tools",
"proSettings.devMode.title": "Ontwikkelaarsmodus",
+ "proSettings.model.fixed": "Standaardmodel is ingesteld op {{provider}}/{{model}} in deze omgeving.",
"proSettings.model.title": "Standaardmodel gebruikt door de agent",
"proSettings.title": "Geavanceerde opties vooraf configureren",
"proSettings.title2": "Probeer een aantal veelgebruikte tools te koppelen~",
diff --git a/locales/nl-NL/plugin.json b/locales/nl-NL/plugin.json
index 38a35835336..43184208e8b 100644
--- a/locales/nl-NL/plugin.json
+++ b/locales/nl-NL/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Document kopiëren",
"builtins.lobe-agent-documents.apiName.createDocument": "Document maken",
"builtins.lobe-agent-documents.apiName.editDocument": "Document bewerken",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Documenten weergeven",
"builtins.lobe-agent-documents.apiName.readDocument": "Document lezen",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Document lezen op bestandsnaam",
"builtins.lobe-agent-documents.apiName.removeDocument": "Document verwijderen",
"builtins.lobe-agent-documents.apiName.renameDocument": "Document hernoemen",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Laadregel bijwerken",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Document bijwerken of toevoegen op bestandsnaam",
"builtins.lobe-agent-documents.title": "Agentdocumenten",
"builtins.lobe-agent-management.apiName.callAgent": "Bel agent",
"builtins.lobe-agent-management.apiName.createAgent": "Maak agent aan",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Cloud Sandbox",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Meerdere agenten aanmaken",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Agent aanmaken",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Groep aanmaken",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Ledeninformatie ophalen",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Beschikbare modellen ophalen",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Skill installeren",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Vaardigheden",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Onderwerpcontext ophalen",
"builtins.lobe-topic-reference.title": "Onderwerpverwijzing",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Gebruiker een vraag stellen",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Gebruikersreactie annuleren",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Interactie status ophalen",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Gebruikersreactie overslaan",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Gebruikersreactie indienen",
+ "builtins.lobe-user-interaction.title": "Gebruikersinteractie",
"builtins.lobe-user-memory.apiName.addContextMemory": "Contextgeheugen toevoegen",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Ervaringsgeheugen toevoegen",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Identiteitsgeheugen toevoegen",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Webpagina's doorzoeken",
"builtins.lobe-web-browsing.inspector.noResults": "Geen resultaten",
"builtins.lobe-web-browsing.title": "Webzoekopdracht",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Onboarding voltooien",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Onboarding status ophalen",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Document lezen",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Gebruikersvraag opslaan",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Document bijwerken",
+ "builtins.lobe-web-onboarding.title": "Gebruikersonboarding",
"confirm": "Bevestigen",
"debug.arguments": "Argumenten",
"debug.error": "Foutenlogboek",
diff --git a/locales/nl-NL/providers.json b/locales/nl-NL/providers.json
index 76de537eb98..f93eeedd43f 100644
--- a/locales/nl-NL/providers.json
+++ b/locales/nl-NL/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Opgericht in 2020, is Jina AI een toonaangevend zoek-AI-bedrijf. De zoekstack omvat vectormodellen, herordenaars en kleine taalmodellen om betrouwbare, hoogwaardige generatieve en multimodale zoekapps te bouwen.",
"kimicodingplan.description": "Kimi Code van Moonshot AI biedt toegang tot Kimi-modellen, waaronder K2.5, voor coderingstaken.",
"lmstudio.description": "LM Studio is een desktopapplicatie voor het ontwikkelen en experimenteren met LLM’s op je eigen computer.",
- "lobehub.description": "LobeHub Cloud maakt gebruik van officiële API's om toegang te krijgen tot AI-modellen en meet gebruik met Credits gekoppeld aan modeltokens.",
"longcat.description": "LongCat is een reeks generatieve AI-grote modellen die onafhankelijk zijn ontwikkeld door Meituan. Het is ontworpen om de productiviteit binnen ondernemingen te verbeteren en innovatieve toepassingen mogelijk te maken door middel van een efficiënte computationele architectuur en sterke multimodale mogelijkheden.",
"minimax.description": "Opgericht in 2021, bouwt MiniMax algemene AI met multimodale fundamentele modellen, waaronder tekstmodellen met biljoenen parameters, spraakmodellen en visiemodellen, evenals apps zoals Hailuo AI.",
"minimaxcodingplan.description": "MiniMax Token Plan biedt toegang tot MiniMax-modellen, waaronder M2.7, voor coderingstaken via een abonnement met vaste kosten.",
diff --git a/locales/nl-NL/ui.json b/locales/nl-NL/ui.json
index 72afd77979c..cd4cba29cd3 100644
--- a/locales/nl-NL/ui.json
+++ b/locales/nl-NL/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Je kunt alleen afbeeldingsbestanden uploaden!",
"emojiPicker.upload": "Uploaden",
"emojiPicker.uploadBtn": "Bijsnijden en uploaden",
+ "form.other": "Of typ direct in",
+ "form.otherBack": "Terug naar opties",
"form.reset": "Resetten",
+ "form.skip": "Overslaan",
"form.submit": "Verzenden",
"form.unsavedChanges": "Niet-opgeslagen wijzigingen",
"form.unsavedWarning": "Je hebt niet-opgeslagen wijzigingen. Weet je zeker dat je wilt verlaten?",
diff --git a/locales/pl-PL/agent.json b/locales/pl-PL/agent.json
index f259bbd1066..f58f578db48 100644
--- a/locales/pl-PL/agent.json
+++ b/locales/pl-PL/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Proszę skopiować ten URL i wkleić go w polu <bold>{{fieldName}}</bold> w Portalu Deweloperskim {{name}}.",
"channel.exportConfig": "Eksportuj konfigurację",
"channel.feishu.description": "Połącz tego asystenta z Feishu, aby umożliwić czaty prywatne i grupowe.",
+ "channel.historyLimit": "Limit wiadomości w historii",
+ "channel.historyLimitHint": "Domyślna liczba wiadomości do pobrania podczas przeglądania historii kanału",
"channel.importConfig": "Importuj konfigurację",
"channel.importFailed": "Nie udało się zaimportować konfiguracji",
"channel.importInvalidFormat": "Nieprawidłowy format pliku konfiguracji",
@@ -78,6 +80,8 @@
"channel.secretToken": "Sekretny token webhooka",
"channel.secretTokenHint": "Opcjonalne. Używane do weryfikacji żądań webhook z Telegram.",
"channel.secretTokenPlaceholder": "Opcjonalny sekret do weryfikacji webhooka",
+ "channel.serverId": "Domyślne ID serwera / gildii",
+ "channel.serverIdHint": "Twoje domyślne ID serwera lub gildii na tej platformie. AI używa go do wyświetlania kanałów bez konieczności pytania.",
"channel.settings": "Zaawansowane ustawienia",
"channel.settingsResetConfirm": "Czy na pewno chcesz zresetować zaawansowane ustawienia do domyślnych?",
"channel.settingsResetDefault": "Przywróć domyślne",
@@ -93,6 +97,8 @@
"channel.testFailed": "Test połączenia nie powiódł się",
"channel.testSuccess": "Test połączenia zakończony sukcesem",
"channel.updateFailed": "Nie udało się zaktualizować statusu",
+ "channel.userId": "Twój ID użytkownika na platformie",
+ "channel.userIdHint": "Twój ID użytkownika na tej platformie. AI może go używać do wysyłania Ci wiadomości bezpośrednich.",
"channel.validationError": "Proszę wypełnić ID aplikacji i token",
"channel.verificationToken": "Token weryfikacyjny",
"channel.verificationTokenHint": "Opcjonalne. Używane do weryfikacji źródła zdarzeń webhook.",
diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.json
index 4e9f01ad7bc..1f9d75d7d49 100644
--- a/locales/pl-PL/chat.json
+++ b/locales/pl-PL/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Usuń i wygeneruj ponownie",
"messageAction.deleteDisabledByThreads": "Ta wiadomość zawiera podtemat i nie może zostać usunięta",
"messageAction.expand": "Rozwiń wiadomość",
+ "messageAction.interrupted": "Przerwane",
+ "messageAction.interruptedHint": "Co powinienem zrobić zamiast tego?",
"messageAction.reaction": "Dodaj reakcję",
"messageAction.regenerate": "Wygeneruj ponownie",
"messages.dm.sentTo": "Widoczne tylko dla {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Automatycznie zatwierdzaj wszystkie wywołania narzędzi",
"tool.intervention.mode.manual": "Ręczne",
"tool.intervention.mode.manualDesc": "Wymagane ręczne zatwierdzenie każdego wywołania",
+ "tool.intervention.pending": "Oczekujące",
"tool.intervention.reject": "Odrzuć",
"tool.intervention.rejectAndContinue": "Odrzuć i spróbuj ponownie",
"tool.intervention.rejectOnly": "Odrzuć",
"tool.intervention.rejectReasonPlaceholder": "Podanie powodu pomoże agentowi zrozumieć Twoje granice i poprawić przyszłe działania",
"tool.intervention.rejectTitle": "Odrzuć to wywołanie umiejętności",
"tool.intervention.rejectedWithReason": "To wywołanie umiejętności zostało odrzucone: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Zobacz",
"tool.intervention.toolAbort": "Anulowałeś to wywołanie umiejętności",
"tool.intervention.toolRejected": "To wywołanie umiejętności zostało odrzucone",
"toolAuth.authorize": "Autoryzuj",
diff --git a/locales/pl-PL/models.json b/locales/pl-PL/models.json
index f0756f2e633..5776f9a89d1 100644
--- a/locales/pl-PL/models.json
+++ b/locales/pl-PL/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Nowy wewnętrzny model rozumowania z 80 tys. łańcuchów myślowych i 1 mln tokenów wejściowych, oferujący wydajność porównywalną z czołowymi modelami światowymi.",
"MiniMax-M2-Stable.description": "Zaprojektowany z myślą o wydajnym kodowaniu i przepływach pracy agentów, z większą równoległością dla zastosowań komercyjnych.",
"MiniMax-M2.1-Lightning.description": "Potężne możliwości programowania wielojęzycznego, kompleksowo ulepszone doświadczenie programistyczne. Szybsze i bardziej wydajne.",
- "MiniMax-M2.1-highspeed.description": "Potężne wielojęzyczne możliwości programowania z szybszym i bardziej efektywnym wnioskowaniem.",
"MiniMax-M2.1.description": "MiniMax-M2.1 to flagowy, otwartoźródłowy model dużej skali od MiniMax, zaprojektowany do rozwiązywania złożonych zadań rzeczywistych. Jego główne atuty to wielojęzyczne możliwości programistyczne oraz zdolność działania jako Agent do rozwiązywania skomplikowanych problemów.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Ta sama wydajność, szybszy i bardziej zwinny (około 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Ta sama wydajność co M2.5, ale z szybszym wnioskowaniem.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku to najszybszy i najbardziej kompaktowy model firmy Anthropic, zaprojektowany do natychmiastowych odpowiedzi z szybką i dokładną wydajnością.",
"claude-3-opus-20240229.description": "Claude 3 Opus to najpotężniejszy model firmy Anthropic do bardzo złożonych zadań, wyróżniający się wydajnością, inteligencją, płynnością i zrozumieniem.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet łączy inteligencję i szybkość dla obciążeń korporacyjnych, oferując wysoką użyteczność przy niższych kosztach i niezawodnym wdrażaniu na dużą skalę.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 to najszybszy i najbardziej inteligentny model Haiku od Anthropic, oferujący błyskawiczną szybkość i rozszerzone myślenie.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 to najszybszy i najinteligentniejszy model Haiku firmy Anthropic, oferujący błyskawiczną prędkość i rozszerzone możliwości rozumowania.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 to najszybszy i najinteligentniejszy model Haiku firmy Anthropic, charakteryzujący się błyskawiczną szybkością i rozszerzonym rozumowaniem.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking to zaawansowany wariant, który może ujawniać swój proces rozumowania.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 to najnowszy i najbardziej zaawansowany model Anthropic do wysoce złożonych zadań, wyróżniający się wydajnością, inteligencją, płynnością i zrozumieniem.",
- "claude-opus-4-20250514.description": "Claude Opus 4 to najpotężniejszy model Anthropic do wysoce złożonych zadań, wyróżniający się wydajnością, inteligencją, płynnością i zrozumieniem.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 to najnowszy i najbardziej zaawansowany model firmy Anthropic do wysoce złożonych zadań, wyróżniający się wydajnością, inteligencją, płynnością i zrozumieniem.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 to najpotężniejszy model firmy Anthropic do wysoce złożonych zadań, wyróżniający się wydajnością, inteligencją, płynnością i zrozumieniem.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 to flagowy model firmy Anthropic, łączący wyjątkową inteligencję z wydajnością na dużą skalę, idealny do złożonych zadań wymagających najwyższej jakości odpowiedzi i rozumowania.",
- "claude-opus-4-6.description": "Claude Opus 4.6 to najbardziej inteligentny model Anthropic do budowy agentów i kodowania.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 to najbardziej inteligentny model firmy Anthropic do budowania agentów i kodowania.",
"claude-opus-4.5.description": "Claude Opus 4.5 to flagowy model firmy Anthropic, łączący najwyższej klasy inteligencję z skalowalną wydajnością w złożonych zadaniach wymagających wysokiej jakości rozumowania.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 to najbardziej inteligentny model firmy Anthropic do tworzenia agentów i kodowania.",
"claude-opus-4.6.description": "Claude Opus 4.6 to najbardziej inteligentny model firmy Anthropic do tworzenia agentów i kodowania.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking może generować natychmiastowe odpowiedzi lub rozszerzone rozumowanie krok po kroku z widocznym procesem.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 to najbardziej inteligentny model Anthropic do tej pory, oferujący niemal natychmiastowe odpowiedzi lub rozszerzone myślenie krok po kroku z precyzyjną kontrolą dla użytkowników API.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 to najbardziej inteligentny model Anthropic do tej pory.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6 to najlepsze połączenie szybkości i inteligencji od Anthropic.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 potrafi generować niemal natychmiastowe odpowiedzi lub rozbudowane, krok po kroku, przemyślenia z widocznym procesem.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 to najbardziej inteligentny model firmy Anthropic do tej pory.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 to najlepsze połączenie prędkości i inteligencji firmy Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 to najbardziej inteligentny model firmy Anthropic do tej pory.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 to najlepsze połączenie szybkości i inteligencji firmy Anthropic.",
"claude-sonnet-4.description": "Claude Sonnet 4 może generować niemal natychmiastowe odpowiedzi lub rozszerzone, krok po kroku rozumowanie, które użytkownicy mogą obserwować. Użytkownicy API mogą precyzyjnie kontrolować, jak długo model myśli.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 to model nowej generacji do rozumowania z silniejszym rozumowaniem złożonym i łańcuchem myśli do zadań wymagających głębokiej analizy.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 to model rozumowania nowej generacji z ulepszonymi zdolnościami do rozwiązywania złożonych problemów i myślenia łańcuchowego.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 to model językowo-wizualny MoE oparty na DeepSeekMoE-27B z rzadką aktywacją, osiągający wysoką wydajność przy zaledwie 4,5B aktywnych parametrów. Wyróżnia się w zadaniach QA wizualnych, OCR, rozumieniu dokumentów/tabel/wykresów i ugruntowaniu wizualnym.",
- "deepseek-chat.description": "DeepSeek V3.2 równoważy rozumowanie i długość wyników dla codziennych zadań QA i agentowych. Publiczne benchmarki osiągają poziom GPT-5, a model jako pierwszy integruje myślenie z użyciem narzędzi, prowadząc w ocenach agentów open-source.",
+ "deepseek-chat.description": "Nowy model open-source łączący ogólne zdolności i umiejętności kodowania. Zachowuje ogólny dialog modelu czatu oraz silne zdolności kodowania modelu programistycznego, z lepszym dopasowaniem preferencji. DeepSeek-V2.5 również poprawia pisanie i wykonywanie instrukcji.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B to model języka kodu wytrenowany na 2T tokenach (87% kod, 13% tekst chiński/angielski). Wprowadza okno kontekstu 16K i zadania uzupełniania w środku, oferując uzupełnianie kodu na poziomie projektu i wypełnianie fragmentów.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 to open-source’owy model kodu MoE, który osiąga wysokie wyniki w zadaniach programistycznych, porównywalne z GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 to open-source’owy model kodu MoE, który osiąga wysokie wyniki w zadaniach programistycznych, porównywalne z GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Szybka pełna wersja DeepSeek R1 z wyszukiwaniem w czasie rzeczywistym, łącząca możliwości modelu 671B z szybszymi odpowiedziami.",
"deepseek-r1-online.description": "Pełna wersja DeepSeek R1 z 671 miliardami parametrów i wyszukiwaniem w czasie rzeczywistym, oferująca lepsze rozumienie i generowanie.",
"deepseek-r1.description": "DeepSeek-R1 wykorzystuje dane startowe przed RL i osiąga wyniki porównywalne z OpenAI-o1 w zadaniach matematycznych, programistycznych i logicznych.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking to model głębokiego rozumowania, który generuje łańcuch myśli przed wynikami dla większej dokładności, osiągając najlepsze wyniki w konkursach i rozumowaniu porównywalnym do Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "Tryb myślenia DeepSeek V3.2 generuje łańcuch myśli przed ostateczną odpowiedzią, aby poprawić dokładność.",
"deepseek-v2.description": "DeepSeek V2 to wydajny model MoE zoptymalizowany pod kątem efektywności kosztowej.",
"deepseek-v2:236b.description": "DeepSeek V2 236B to model skoncentrowany na kodzie, oferujący zaawansowane generowanie kodu.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 to model MoE z 671 miliardami parametrów, wyróżniający się w programowaniu, rozumieniu kontekstu i obsłudze długich tekstów.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K to szybki model rozumowania z kontekstem 32K do złożonego rozumowania i dialogów wieloetapowych.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview to podgląd modelu rozumowania do oceny i testów.",
"ernie-x1.1.description": "ERNIE X1.1 to model rozumowania w wersji podglądowej do oceny i testowania.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, stworzony przez zespół Seed ByteDance, obsługuje edycję i kompozycję wielu obrazów. Funkcje obejmują ulepszoną spójność tematyczną, precyzyjne wykonywanie instrukcji, zrozumienie logiki przestrzennej, ekspresję estetyczną, układ plakatów i projektowanie logo z wysoką precyzją renderowania tekstu i obrazu.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, stworzony przez ByteDance Seed, obsługuje wejścia tekstowe i obrazowe do wysoce kontrolowanej, wysokiej jakości generacji obrazów na podstawie promptów.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 to model generowania obrazów firmy ByteDance Seed, obsługujący wejścia tekstowe i obrazowe, oferujący wysoce kontrolowaną, wysokiej jakości generację obrazów. Generuje obrazy na podstawie tekstowych wskazówek.",
"fal-ai/flux-kontext/dev.description": "Model FLUX.1 skoncentrowany na edycji obrazów, obsługujący wejścia tekstowe i obrazowe.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] przyjmuje tekst i obrazy referencyjne jako dane wejściowe, umożliwiając lokalne edycje i złożone transformacje sceny.",
"fal-ai/flux/krea.description": "Flux Krea [dev] to model generowania obrazów z estetycznym ukierunkowaniem na bardziej realistyczne, naturalne obrazy.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Potężny natywny model multimodalny do generowania obrazów.",
"fal-ai/imagen4/preview.description": "Model generowania obrazów wysokiej jakości od Google.",
"fal-ai/nano-banana.description": "Nano Banana to najnowszy, najszybszy i najbardziej wydajny natywny model multimodalny Google, umożliwiający generowanie i edycję obrazów w rozmowie.",
- "fal-ai/qwen-image-edit.description": "Profesjonalny model edycji obrazów od zespołu Qwen, obsługujący edycje semantyczne i wyglądu, precyzyjną edycję tekstu w języku chińskim/angielskim, transfer stylu, rotację i inne.",
- "fal-ai/qwen-image.description": "Potężny model generacji obrazów od zespołu Qwen z silnym renderowaniem tekstu w języku chińskim i różnorodnymi stylami wizualnymi.",
+ "fal-ai/qwen-image-edit.description": "Profesjonalny model edycji obrazów zespołu Qwen, który obsługuje edycje semantyczne i wyglądu, precyzyjnie edytuje tekst w języku chińskim i angielskim oraz umożliwia wysokiej jakości edycje, takie jak transfer stylu i obrót obiektów.",
+ "fal-ai/qwen-image.description": "Potężny model generowania obrazów zespołu Qwen z imponującym renderowaniem tekstu w języku chińskim i różnorodnymi stylami wizualnymi.",
"flux-1-schnell.description": "Model tekst-na-obraz z 12 miliardami parametrów od Black Forest Labs, wykorzystujący latent adversarial diffusion distillation do generowania wysokiej jakości obrazów w 1–4 krokach. Dorównuje zamkniętym alternatywom i jest dostępny na licencji Apache-2.0 do użytku osobistego, badawczego i komercyjnego.",
"flux-dev.description": "FLUX.1 [dev] to model z otwartymi wagami do użytku niekomercyjnego. Zachowuje jakość obrazu zbliżoną do wersji pro i przestrzeganie instrukcji, działając przy tym wydajniej niż standardowe modele o podobnym rozmiarze.",
"flux-kontext-max.description": "Najnowocześniejsze generowanie i edycja obrazów kontekstowych, łączące tekst i obrazy dla precyzyjnych, spójnych wyników.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro to flagowy model rozumowania Google z obsługą długiego kontekstu do złożonych zadań.",
"gemini-3-flash-preview.description": "Gemini 3 Flash to najszybszy i najinteligentniejszy model, łączący najnowsze osiągnięcia AI z doskonałym osadzeniem w wynikach wyszukiwania.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro) to model generowania obrazów od Google, który obsługuje również dialogi multimodalne.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) to model generacji obrazów Google, który obsługuje również multimodalny chat.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) to model generowania obrazów firmy Google, który obsługuje również czat multimodalny.",
"gemini-3-pro-preview.description": "Gemini 3 Pro to najpotężniejszy model agenta i kodowania nastrojów od Google, oferujący bogatsze wizualizacje i głębszą interakcję przy zaawansowanym rozumowaniu.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) to najszybszy natywny model generowania obrazów od Google z obsługą myślenia, generowaniem obrazów w rozmowach i edycją.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) oferuje jakość obrazu na poziomie Pro z szybkością Flash oraz wsparcie dla multimodalnego chatu.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) to najszybszy natywny model generowania obrazów firmy Google z obsługą myślenia, generowaniem obrazów w rozmowie i ich edycją.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview to najbardziej ekonomiczny model multimodalny Google, zoptymalizowany do zadań agentowych o dużej skali, tłumaczeń i przetwarzania danych.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview ulepsza Gemini 3 Pro, oferując lepsze zdolności rozumowania i wsparcie dla średniego poziomu myślenia.",
"gemini-flash-latest.description": "Najnowsza wersja Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Nasz najbardziej zaawansowany model, zaprojektowany do złożonych zadań korporacyjnych, oferujący wyjątkową wydajność.",
"jamba-mini.description": "Najbardziej efektywny model w swojej klasie, łączący szybkość i jakość przy mniejszym zużyciu zasobów.",
"jina-deepsearch-v1.description": "DeepSearch łączy wyszukiwanie w sieci, czytanie i rozumowanie w celu przeprowadzania dogłębnych analiz. Działa jak agent, który przyjmuje zadanie badawcze, przeprowadza szerokie wyszukiwanie z wieloma iteracjami, a dopiero potem generuje odpowiedź. Proces obejmuje ciągłe badanie, rozumowanie i rozwiązywanie problemów z różnych perspektyw, co zasadniczo różni się od standardowych LLM, które odpowiadają na podstawie danych treningowych lub tradycyjnych systemów RAG opartych na jednorazowym wyszukiwaniu powierzchownym.",
+ "k2p5.description": "Kimi K2.5 to najbardziej wszechstronny model Kimi do tej pory, wyposażony w natywną architekturę multimodalną, która obsługuje zarówno dane wizualne, jak i tekstowe, tryby 'myślenia' i 'niemyslenia', a także zadania konwersacyjne i agentowe.",
"kimi-k2-0711-preview.description": "kimi-k2 to model bazowy MoE o silnych możliwościach programistycznych i agentowych (1T parametrów, 32B aktywnych), przewyższający inne popularne otwarte modele w testach rozumowania, programowania, matematyki i agentów.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview oferuje okno kontekstu 256k, lepsze kodowanie agentowe, wyższą jakość kodu front-end i lepsze rozumienie kontekstu.",
"kimi-k2-instruct.description": "Kimi K2 Instruct to oficjalny model rozumowania Kimi z długim kontekstem, przeznaczony do kodu, pytań i odpowiedzi oraz innych zastosowań.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ to model rozumowania z rodziny Qwen. W porównaniu do standardowych modeli dostrojonych instrukcyjnie, oferuje zaawansowane myślenie i rozumowanie, co znacząco poprawia wydajność w zadaniach trudnych. QwQ-32B to model średniej wielkości, konkurujący z czołowymi modelami rozumowania, takimi jak DeepSeek-R1 i o1-mini.",
"qwq_32b.description": "Model rozumowania średniej wielkości z rodziny Qwen. W porównaniu do standardowych modeli dostrojonych instrukcyjnie, zdolności myślenia i rozumowania QwQ znacząco poprawiają wydajność w trudnych zadaniach.",
"r1-1776.description": "R1-1776 to wariant modelu DeepSeek R1 po dodatkowym treningu, zaprojektowany do dostarczania nieocenzurowanych, bezstronnych informacji faktograficznych.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro od ByteDance obsługuje generację tekstu na wideo, obrazu na wideo (pierwsza klatka, pierwsza+ostatnia klatka) oraz generację audio zsynchronizowaną z wizualizacjami.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite od BytePlus oferuje generację wspomaganą wyszukiwaniem w sieci w czasie rzeczywistym, ulepszoną interpretację złożonych promptów oraz poprawioną spójność odniesień dla profesjonalnej kreacji wizualnej.",
"solar-mini-ja.description": "Solar Mini (Ja) rozszerza Solar Mini o nacisk na język japoński, zachowując jednocześnie wydajność w języku angielskim i koreańskim.",
"solar-mini.description": "Solar Mini to kompaktowy model LLM, który przewyższa GPT-3.5, oferując silne możliwości wielojęzyczne w języku angielskim i koreańskim oraz efektywne działanie przy małych zasobach.",
"solar-pro.description": "Solar Pro to inteligentny model LLM od Upstage, skoncentrowany na wykonywaniu instrukcji na pojedynczym GPU, z wynikami IFEval powyżej 80. Obecnie obsługuje język angielski; pełna wersja z rozszerzonym wsparciem językowym i dłuższym kontekstem planowana jest na listopad 2024.",
diff --git a/locales/pl-PL/onboarding.json b/locales/pl-PL/onboarding.json
index 46cd14e6abb..0ef17cb776f 100644
--- a/locales/pl-PL/onboarding.json
+++ b/locales/pl-PL/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Wprowadzenie Agenta",
+ "agent.completionSubtitle": "Twój asystent jest skonfigurowany i gotowy do działania.",
+ "agent.completionTitle": "Wszystko gotowe!",
+ "agent.enterApp": "Wejdź do aplikacji",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Imię",
+ "agent.greeting.namePlaceholder": "np. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Daj mi imię, charakter i emoji",
+ "agent.greeting.vibeLabel": "Charakter / Natura",
+ "agent.greeting.vibePlaceholder": "np. Ciepły i przyjazny, Ostry i bezpośredni...",
+ "agent.history.current": "Bieżące",
+ "agent.history.title": "Tematy historii",
+ "agent.modeSwitch.agent": "Konwersacyjny",
+ "agent.modeSwitch.classic": "Klasyczny",
+ "agent.modeSwitch.debug": "Eksport debugowania",
+ "agent.modeSwitch.label": "Wybierz tryb wprowadzenia",
+ "agent.modeSwitch.reset": "Zresetuj proces",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Pomiń wprowadzenie",
+ "agent.stage.agentIdentity": "Tożsamość Agenta",
+ "agent.stage.painPoints": "Problemy",
+ "agent.stage.proSettings": "Zaawansowana konfiguracja",
+ "agent.stage.responseLanguage": "Język odpowiedzi",
+ "agent.stage.summary": "Podsumowanie",
+ "agent.stage.userIdentity": "O Tobie",
+ "agent.stage.workContext": "Kontekst pracy",
+ "agent.stage.workStyle": "Styl pracy",
+ "agent.subtitle": "Ukończ konfigurację w dedykowanej rozmowie wprowadzającej.",
+ "agent.summaryHint": "Zakończ tutaj, jeśli podsumowanie konfiguracji wygląda poprawnie.",
+ "agent.telemetryAllow": "Zezwól na telemetrię",
+ "agent.telemetryDecline": "Nie, dziękuję",
+ "agent.telemetryHint": "Możesz również odpowiedzieć własnymi słowami.",
+ "agent.title": "Wprowadzenie do rozmowy",
+ "agent.welcome": "...hm? Właśnie się obudziłem — moja głowa jest pusta. Kim jesteś? I — jak mam się nazywać? Potrzebuję też imienia.",
"back": "Wstecz",
"finish": "Zaczynamy",
"interests.area.business": "Biznes i strategia",
@@ -29,6 +63,7 @@
"next": "Dalej",
"proSettings.connectors.title": "Połącz swoje ulubione narzędzia",
"proSettings.devMode.title": "Tryb deweloperski",
+ "proSettings.model.fixed": "Domyślny model jest ustawiony na {{provider}}/{{model}} w tym środowisku.",
"proSettings.model.title": "Domyślny model używany przez agenta",
"proSettings.title": "Skonfiguruj zaawansowane opcje z wyprzedzeniem",
"proSettings.title2": "Spróbuj połączyć kilka popularnych narzędzi~",
diff --git a/locales/pl-PL/plugin.json b/locales/pl-PL/plugin.json
index caa91f4c343..92dfdeeb476 100644
--- a/locales/pl-PL/plugin.json
+++ b/locales/pl-PL/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Skopiuj dokument",
"builtins.lobe-agent-documents.apiName.createDocument": "Utwórz dokument",
"builtins.lobe-agent-documents.apiName.editDocument": "Edytuj dokument",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Lista dokumentów",
"builtins.lobe-agent-documents.apiName.readDocument": "Przeczytaj dokument",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Odczytaj dokument według nazwy pliku",
"builtins.lobe-agent-documents.apiName.removeDocument": "Usuń dokument",
"builtins.lobe-agent-documents.apiName.renameDocument": "Zmień nazwę dokumentu",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Zaktualizuj regułę ładowania",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Zaktualizuj lub wstaw dokument według nazwy pliku",
"builtins.lobe-agent-documents.title": "Dokumenty agenta",
"builtins.lobe-agent-management.apiName.callAgent": "Zadzwoń do agenta",
"builtins.lobe-agent-management.apiName.createAgent": "Utwórz agenta",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Piaskownica w Chmurze",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Utwórz wielu agentów",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Utwórz agenta",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Utwórz grupę",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Pobierz informacje o członku",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Pobierz dostępne modele",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Zainstaluj Umiejętność",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Umiejętności",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Pobierz kontekst tematu",
"builtins.lobe-topic-reference.title": "Odwołanie do tematu",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Zadaj pytanie użytkownikowi",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Anuluj odpowiedź użytkownika",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Pobierz stan interakcji",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Pomiń odpowiedź użytkownika",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Prześlij odpowiedź użytkownika",
+ "builtins.lobe-user-interaction.title": "Interakcja z użytkownikiem",
"builtins.lobe-user-memory.apiName.addContextMemory": "Dodaj pamięć kontekstu",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Dodaj pamięć doświadczenia",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Dodaj pamięć tożsamości",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Przeszukaj strony",
"builtins.lobe-web-browsing.inspector.noResults": "Brak wyników",
"builtins.lobe-web-browsing.title": "Wyszukiwanie w Sieci",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Zakończ wprowadzenie",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Odczytaj stan wprowadzenia",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Odczytaj dokument",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Zapisz pytanie użytkownika",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Zaktualizuj dokument",
+ "builtins.lobe-web-onboarding.title": "Wprowadzenie użytkownika",
"confirm": "Potwierdź",
"debug.arguments": "Argumenty",
"debug.error": "Dziennik błędów",
diff --git a/locales/pl-PL/providers.json b/locales/pl-PL/providers.json
index 6df87f787a5..f4a142c0c06 100644
--- a/locales/pl-PL/providers.json
+++ b/locales/pl-PL/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Założona w 2020 roku, Jina AI to wiodąca firma zajmująca się wyszukiwaniem AI. Jej stos wyszukiwania obejmuje modele wektorowe, rerankery i małe modele językowe do tworzenia niezawodnych, wysokiej jakości aplikacji generatywnych i multimodalnych.",
"kimicodingplan.description": "Kimi Code od Moonshot AI zapewnia dostęp do modeli Kimi, w tym K2.5, do zadań związanych z kodowaniem.",
"lmstudio.description": "LM Studio to aplikacja desktopowa do tworzenia i testowania LLM-ów na własnym komputerze.",
- "lobehub.description": "LobeHub Cloud korzysta z oficjalnych interfejsów API, aby uzyskać dostęp do modeli AI i mierzy zużycie za pomocą Kredytów powiązanych z tokenami modeli.",
"longcat.description": "LongCat to seria dużych modeli generatywnej sztucznej inteligencji, niezależnie opracowanych przez Meituan. Został zaprojektowany, aby zwiększyć produktywność wewnętrzną przedsiębiorstwa i umożliwić innowacyjne zastosowania dzięki wydajnej architekturze obliczeniowej i silnym możliwościom multimodalnym.",
"minimax.description": "Założona w 2021 roku, MiniMax tworzy AI ogólnego przeznaczenia z multimodalnymi modelami bazowymi, w tym tekstowymi modelami MoE z bilionami parametrów, modelami mowy i wizji oraz aplikacjami takimi jak Hailuo AI.",
"minimaxcodingplan.description": "MiniMax Token Plan zapewnia dostęp do modeli MiniMax, w tym M2.7, do zadań związanych z kodowaniem w ramach subskrypcji o stałej opłacie.",
diff --git a/locales/pl-PL/ui.json b/locales/pl-PL/ui.json
index 6a4631fcb24..c6c9f53669c 100644
--- a/locales/pl-PL/ui.json
+++ b/locales/pl-PL/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Można przesyłać tylko pliki graficzne!",
"emojiPicker.upload": "Prześlij",
"emojiPicker.uploadBtn": "Przytnij i prześlij",
+ "form.other": "Lub wpisz bezpośrednio",
+ "form.otherBack": "Powrót do opcji",
"form.reset": "Resetuj",
+ "form.skip": "Pomiń",
"form.submit": "Zatwierdź",
"form.unsavedChanges": "Niezapisane zmiany",
"form.unsavedWarning": "Masz niezapisane zmiany. Czy na pewno chcesz opuścić stronę?",
diff --git a/locales/pt-BR/agent.json b/locales/pt-BR/agent.json
index 997ffb0d372..89c5a43a966 100644
--- a/locales/pt-BR/agent.json
+++ b/locales/pt-BR/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Por favor, copie este URL e cole no campo <bold>{{fieldName}}</bold> no Portal de Desenvolvedores do {{name}}.",
"channel.exportConfig": "Exportar Configuração",
"channel.feishu.description": "Conecte este assistente ao Feishu para bate-papo privado e em grupo.",
+ "channel.historyLimit": "Limite de Mensagens no Histórico",
+ "channel.historyLimitHint": "Número padrão de mensagens a serem buscadas ao ler o histórico do canal",
"channel.importConfig": "Importar Configuração",
"channel.importFailed": "Falha ao importar configuração",
"channel.importInvalidFormat": "Formato de arquivo de configuração inválido",
@@ -78,6 +80,8 @@
"channel.secretToken": "Token Secreto do Webhook",
"channel.secretTokenHint": "Opcional. Usado para verificar solicitações de webhook do Telegram.",
"channel.secretTokenPlaceholder": "Segredo opcional para verificação de webhook",
+ "channel.serverId": "ID Padrão do Servidor / Guilda",
+ "channel.serverIdHint": "Seu ID padrão de servidor ou guilda nesta plataforma. A IA o utiliza para listar canais sem perguntar.",
"channel.settings": "Configurações Avançadas",
"channel.settingsResetConfirm": "Tem certeza de que deseja redefinir as configurações avançadas para o padrão?",
"channel.settingsResetDefault": "Redefinir para o Padrão",
@@ -93,6 +97,8 @@
"channel.testFailed": "Teste de conexão falhou",
"channel.testSuccess": "Teste de conexão bem-sucedido",
"channel.updateFailed": "Falha ao atualizar status",
+ "channel.userId": "Seu ID de Usuário na Plataforma",
+ "channel.userIdHint": "Seu ID de usuário nesta plataforma. A IA pode usá-lo para enviar mensagens diretas para você.",
"channel.validationError": "Por favor, preencha o ID do Aplicativo e o Token",
"channel.verificationToken": "Token de Verificação",
"channel.verificationTokenHint": "Opcional. Usado para verificar a origem do evento de webhook.",
diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.json
index 33f78c86c5d..1caabc72269 100644
--- a/locales/pt-BR/chat.json
+++ b/locales/pt-BR/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Excluir e Regenerar",
"messageAction.deleteDisabledByThreads": "Esta mensagem possui um subtópico e não pode ser excluída",
"messageAction.expand": "Expandir Mensagem",
+ "messageAction.interrupted": "Interrompido",
+ "messageAction.interruptedHint": "O que devo fazer em vez disso?",
"messageAction.reaction": "Adicionar reação",
"messageAction.regenerate": "Regenerar",
"messages.dm.sentTo": "Visível apenas para {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Aprovar automaticamente todas as execuções de ferramentas",
"tool.intervention.mode.manual": "Manual",
"tool.intervention.mode.manualDesc": "Requer aprovação manual para cada execução",
+ "tool.intervention.pending": "Pendente",
"tool.intervention.reject": "Rejeitar",
"tool.intervention.rejectAndContinue": "Rejeitar e Tentar Novamente",
"tool.intervention.rejectOnly": "Rejeitar",
"tool.intervention.rejectReasonPlaceholder": "Um motivo ajuda o Agente a entender seus limites e melhorar ações futuras",
"tool.intervention.rejectTitle": "Rejeitar esta chamada de Habilidade",
"tool.intervention.rejectedWithReason": "Esta chamada de Habilidade foi rejeitada: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Visualizar",
"tool.intervention.toolAbort": "Você cancelou esta chamada de Habilidade",
"tool.intervention.toolRejected": "Esta chamada de Habilidade foi rejeitada",
"toolAuth.authorize": "Autorizar",
diff --git a/locales/pt-BR/models.json b/locales/pt-BR/models.json
index b95007885f6..3669de2ee03 100644
--- a/locales/pt-BR/models.json
+++ b/locales/pt-BR/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Um novo modelo de raciocínio interno com 80 mil cadeias de pensamento e 1 milhão de tokens de entrada, oferecendo desempenho comparável aos principais modelos globais.",
"MiniMax-M2-Stable.description": "Projetado para fluxos de trabalho de codificação e agentes eficientes, com maior concorrência para uso comercial.",
"MiniMax-M2.1-Lightning.description": "Poderosas capacidades de programação multilíngue, experiência de codificação totalmente aprimorada. Mais rápido e eficiente.",
- "MiniMax-M2.1-highspeed.description": "Capacidades poderosas de programação multilíngue com inferência mais rápida e eficiente.",
"MiniMax-M2.1.description": "MiniMax-M2.1 é o principal modelo open-source da MiniMax, focado em resolver tarefas complexas do mundo real. Seus principais pontos fortes são as capacidades de programação multilíngue e a habilidade de atuar como um Agente para resolver tarefas complexas.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Mesma performance, mais rápido e ágil (aprox. 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Mesmo desempenho do M2.5 com inferência mais rápida.",
@@ -307,18 +306,18 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku é o modelo mais rápido e compacto da Anthropic, projetado para respostas quase instantâneas com desempenho rápido e preciso.",
"claude-3-opus-20240229.description": "Claude 3 Opus é o modelo mais poderoso da Anthropic para tarefas altamente complexas, com excelência em desempenho, inteligência, fluência e compreensão.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet equilibra inteligência e velocidade para cargas de trabalho empresariais, oferecendo alta utilidade com menor custo e implantação confiável em larga escala.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 é o modelo Haiku mais rápido e inteligente da Anthropic, com velocidade relâmpago e pensamento estendido.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 é o modelo Haiku mais rápido e inteligente da Anthropic, com velocidade relâmpago e raciocínio ampliado.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 é o modelo Haiku mais rápido e inteligente da Anthropic, com velocidade relâmpago e raciocínio ampliado.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking é uma variante avançada que pode revelar seu processo de raciocínio.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 é o modelo mais recente e capaz da Anthropic para tarefas altamente complexas, destacando-se em desempenho, inteligência, fluência e compreensão.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 é o modelo mais recente e avançado da Anthropic para tarefas altamente complexas, destacando-se em desempenho, inteligência, fluência e compreensão.",
"claude-opus-4-20250514.description": "Claude Opus 4 é o modelo mais poderoso da Anthropic para tarefas altamente complexas, destacando-se em desempenho, inteligência, fluência e compreensão.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 é o modelo principal da Anthropic, combinando inteligência excepcional com desempenho escalável, ideal para tarefas complexas que exigem respostas e raciocínio da mais alta qualidade.",
- "claude-opus-4-6.description": "Claude Opus 4.6 é o modelo mais inteligente da Anthropic para construção de agentes e programação.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 é o modelo mais inteligente da Anthropic para criação de agentes e codificação.",
"claude-opus-4.5.description": "Claude Opus 4.5 é o modelo principal da Anthropic, combinando inteligência de ponta com desempenho escalável para tarefas complexas de raciocínio de alta qualidade.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 é o modelo mais inteligente da Anthropic para criação de agentes e codificação.",
"claude-opus-4.6.description": "Claude Opus 4.6 é o modelo mais inteligente da Anthropic para criação de agentes e codificação.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking pode produzir respostas quase instantâneas ou pensamento passo a passo estendido com processo visível.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 é o modelo mais inteligente da Anthropic até hoje, oferecendo respostas quase instantâneas ou pensamento passo a passo estendido com controle refinado para usuários de API.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 pode produzir respostas quase instantâneas ou raciocínio detalhado passo a passo com processo visível.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 é o modelo mais inteligente da Anthropic até hoje.",
"claude-sonnet-4-6.description": "Claude Sonnet 4.6 é a melhor combinação de velocidade e inteligência da Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 é o modelo mais inteligente da Anthropic até o momento.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "O DeepSeek V3.1 é um modelo de raciocínio de nova geração com raciocínio complexo mais forte e cadeia de pensamento para tarefas de análise profunda.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 é um modelo de raciocínio de próxima geração com capacidades mais fortes de raciocínio complexo e cadeia de pensamento.",
"deepseek-ai/deepseek-vl2.description": "O DeepSeek-VL2 é um modelo de visão e linguagem MoE baseado no DeepSeekMoE-27B com ativação esparsa, alcançando alto desempenho com apenas 4,5B de parâmetros ativos. Destaca-se em QA visual, OCR, compreensão de documentos/tabelas/gráficos e ancoragem visual.",
- "deepseek-chat.description": "DeepSeek V3.2 equilibra raciocínio e comprimento de saída para tarefas diárias de QA e agentes. Benchmarks públicos alcançam níveis do GPT-5, sendo o primeiro a integrar pensamento ao uso de ferramentas, liderando avaliações de agentes de código aberto.",
+ "deepseek-chat.description": "Um novo modelo de código aberto que combina habilidades gerais e de codificação. Ele preserva o diálogo geral do modelo de chat e a forte codificação do modelo de programador, com melhor alinhamento de preferências. DeepSeek-V2.5 também melhora a escrita e o seguimento de instruções.",
"deepseek-coder-33B-instruct.description": "O DeepSeek Coder 33B é um modelo de linguagem para código treinado com 2 trilhões de tokens (87% código, 13% texto em chinês/inglês). Introduz uma janela de contexto de 16K e tarefas de preenchimento intermediário, oferecendo preenchimento de código em nível de projeto e inserção de trechos.",
"deepseek-coder-v2.description": "O DeepSeek Coder V2 é um modelo de código MoE open-source com forte desempenho em tarefas de programação, comparável ao GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "O DeepSeek Coder V2 é um modelo de código MoE open-source com forte desempenho em tarefas de programação, comparável ao GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Versão completa e rápida do DeepSeek R1 com busca em tempo real na web, combinando capacidade de 671B com respostas mais ágeis.",
"deepseek-r1-online.description": "Versão completa do DeepSeek R1 com 671B de parâmetros e busca em tempo real na web, oferecendo compreensão e geração mais robustas.",
"deepseek-r1.description": "O DeepSeek-R1 usa dados de inicialização a frio antes do RL e apresenta desempenho comparável ao OpenAI-o1 em matemática, programação e raciocínio.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking é um modelo de raciocínio profundo que gera cadeia de pensamento antes das saídas para maior precisão, com resultados de competição de ponta e raciocínio comparável ao Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "O modo de raciocínio DeepSeek V3.2 gera uma cadeia de pensamento antes da resposta final para melhorar a precisão.",
"deepseek-v2.description": "O DeepSeek V2 é um modelo MoE eficiente para processamento econômico.",
"deepseek-v2:236b.description": "O DeepSeek V2 236B é o modelo da DeepSeek focado em código com forte geração de código.",
"deepseek-v3-0324.description": "O DeepSeek-V3-0324 é um modelo MoE com 671B de parâmetros, com destaque em programação, capacidade técnica, compreensão de contexto e manipulação de textos longos.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K é um modelo de raciocínio rápido com contexto de 32K para raciocínio complexo e bate-papo de múltiplas interações.",
"ernie-x1.1-preview.description": "Pré-visualização do modelo de raciocínio ERNIE X1.1 para avaliação e testes.",
"ernie-x1.1.description": "ERNIE X1.1 é um modelo de pensamento em pré-visualização para avaliação e testes.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, desenvolvido pela equipe Seed da ByteDance, suporta edição e composição de múltiplas imagens. Apresenta consistência aprimorada de assuntos, seguimento preciso de instruções, compreensão de lógica espacial, expressão estética, layout de pôster e design de logotipo com renderização de texto-imagem de alta precisão.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, desenvolvido pela ByteDance Seed, suporta entradas de texto e imagem para geração de imagens altamente controláveis e de alta qualidade a partir de prompts.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 é um modelo de geração de imagens da ByteDance Seed, que suporta entradas de texto e imagem com geração de imagens altamente controlável e de alta qualidade. Ele gera imagens a partir de prompts de texto.",
"fal-ai/flux-kontext/dev.description": "Modelo FLUX.1 focado em edição de imagens, com suporte a entradas de texto e imagem.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] aceita texto e imagens de referência como entrada, permitindo edições locais direcionadas e transformações complexas de cena.",
"fal-ai/flux/krea.description": "Flux Krea [dev] é um modelo de geração de imagens com viés estético para imagens mais realistas e naturais.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Um poderoso modelo multimodal nativo de geração de imagens.",
"fal-ai/imagen4/preview.description": "Modelo de geração de imagens de alta qualidade do Google.",
"fal-ai/nano-banana.description": "Nano Banana é o modelo multimodal nativo mais novo, rápido e eficiente do Google, permitindo geração e edição de imagens por meio de conversas.",
- "fal-ai/qwen-image-edit.description": "Um modelo profissional de edição de imagens da equipe Qwen, suportando edições semânticas e de aparência, edição precisa de texto em chinês/inglês, transferência de estilo, rotação e mais.",
- "fal-ai/qwen-image.description": "Um modelo poderoso de geração de imagens da equipe Qwen com forte renderização de texto em chinês e estilos visuais diversos.",
+ "fal-ai/qwen-image-edit.description": "Um modelo profissional de edição de imagens da equipe Qwen que suporta edições semânticas e de aparência, edita texto em chinês e inglês com precisão e permite edições de alta qualidade, como transferência de estilo e rotação de objetos.",
+ "fal-ai/qwen-image.description": "Um modelo poderoso de geração de imagens da equipe Qwen com renderização impressionante de texto em chinês e estilos visuais diversos.",
"flux-1-schnell.description": "Modelo de texto para imagem com 12 bilhões de parâmetros da Black Forest Labs, usando difusão adversarial latente para gerar imagens de alta qualidade em 1 a 4 etapas. Rivaliza com alternativas fechadas e é lançado sob licença Apache-2.0 para uso pessoal, acadêmico e comercial.",
"flux-dev.description": "FLUX.1 [dev] é um modelo destilado de código aberto para uso não comercial. Mantém qualidade de imagem próxima à profissional e seguimento de instruções, com execução mais eficiente e melhor uso de recursos do que modelos padrão do mesmo tamanho.",
"flux-kontext-max.description": "Geração e edição de imagens contextuais de última geração, combinando texto e imagens para resultados precisos e coerentes.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) é o modelo de geração de imagens do Google e também suporta chat multimodal.",
"gemini-3-pro-preview.description": "Gemini 3 Pro é o agente mais poderoso do Google, com capacidades de codificação emocional e visuais aprimoradas, além de raciocínio de última geração.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) é o modelo de geração de imagens nativo mais rápido do Google, com suporte a raciocínio, geração e edição de imagens conversacionais.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) oferece qualidade de imagem em nível Pro com velocidade Flash e suporte a chat multimodal.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) é o modelo nativo de geração de imagens mais rápido do Google, com suporte a raciocínio, geração e edição de imagens conversacionais.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview é o modelo multimodal mais econômico do Google, otimizado para tarefas agentivas de alto volume, tradução e processamento de dados.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview melhora o Gemini 3 Pro com capacidades de raciocínio aprimoradas e adiciona suporte a nível médio de pensamento.",
"gemini-flash-latest.description": "Última versão do Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Nosso modelo mais poderoso e avançado, projetado para tarefas empresariais complexas com desempenho excepcional.",
"jamba-mini.description": "O modelo mais eficiente de sua categoria, equilibrando velocidade e qualidade com baixo consumo de recursos.",
"jina-deepsearch-v1.description": "DeepSearch combina busca na web, leitura e raciocínio para investigações aprofundadas. Pense nele como um agente que assume sua tarefa de pesquisa, realiza buscas amplas com múltiplas iterações e só então produz uma resposta. O processo envolve pesquisa contínua, raciocínio e resolução de problemas sob múltiplas perspectivas, diferindo fundamentalmente dos LLMs padrão que respondem com base em dados pré-treinados ou sistemas RAG tradicionais que dependem de buscas superficiais pontuais.",
+ "k2p5.description": "Kimi K2.5 é o modelo mais versátil da Kimi até hoje, apresentando uma arquitetura multimodal nativa que suporta entradas de visão e texto, modos de 'pensamento' e 'não-pensamento', além de tarefas conversacionais e de agente.",
"kimi-k2-0711-preview.description": "kimi-k2 é um modelo base MoE com fortes capacidades de programação e agentes (1T de parâmetros totais, 32B ativos), superando outros modelos abertos populares em benchmarks de raciocínio, programação, matemática e agentes.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview oferece uma janela de contexto de 256k, codificação agente mais robusta, melhor qualidade de código front-end e compreensão de contexto aprimorada.",
"kimi-k2-instruct.description": "Kimi K2 Instruct é o modelo oficial de raciocínio da Kimi com contexto longo para código, perguntas e respostas e mais.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ é um modelo de raciocínio da família Qwen. Em comparação com modelos ajustados por instruções padrão, oferece habilidades de pensamento e raciocínio que melhoram significativamente o desempenho em tarefas difíceis. O QwQ-32B é um modelo de porte médio que compete com os principais modelos como DeepSeek-R1 e o1-mini.",
"qwq_32b.description": "Modelo de raciocínio de porte médio da família Qwen. Em comparação com modelos ajustados por instruções padrão, as habilidades de pensamento e raciocínio do QwQ aumentam significativamente o desempenho em tarefas difíceis.",
"r1-1776.description": "R1-1776 é uma variante pós-treinada do DeepSeek R1 projetada para fornecer informações factuais sem censura e imparciais.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro da ByteDance suporta geração de texto para vídeo, imagem para vídeo (primeiro quadro, primeiro+último quadro) e áudio sincronizado com visuais.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite da BytePlus apresenta geração aumentada por recuperação na web para informações em tempo real, interpretação aprimorada de prompts complexos e consistência de referência melhorada para criação visual profissional.",
"solar-mini-ja.description": "Solar Mini (Ja) estende o Solar Mini com foco no japonês, mantendo desempenho eficiente e forte em inglês e coreano.",
"solar-mini.description": "Solar Mini é um LLM compacto que supera o GPT-3.5, com forte capacidade multilíngue suportando inglês e coreano, oferecendo uma solução eficiente e de baixo custo.",
"solar-pro.description": "Solar Pro é um LLM de alta inteligência da Upstage, focado em seguir instruções em uma única GPU, com pontuações IFEval acima de 80. Atualmente suporta inglês; o lançamento completo está previsto para novembro de 2024 com suporte expandido a idiomas e contexto mais longo.",
diff --git a/locales/pt-BR/onboarding.json b/locales/pt-BR/onboarding.json
index 908e905804f..19ccf6d6500 100644
--- a/locales/pt-BR/onboarding.json
+++ b/locales/pt-BR/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Integração do Agente",
+ "agent.completionSubtitle": "Seu assistente está configurado e pronto para uso.",
+ "agent.completionTitle": "Tudo Pronto!",
+ "agent.enterApp": "Entrar no Aplicativo",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Nome",
+ "agent.greeting.namePlaceholder": "ex.: Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Dê-me um nome, um estilo e um emoji",
+ "agent.greeting.vibeLabel": "Estilo / Personalidade",
+ "agent.greeting.vibePlaceholder": "ex.: Caloroso e amigável, Direto e objetivo...",
+ "agent.history.current": "Atual",
+ "agent.history.title": "Tópicos do Histórico",
+ "agent.modeSwitch.agent": "Conversacional",
+ "agent.modeSwitch.classic": "Clássico",
+ "agent.modeSwitch.debug": "Exportar Depuração",
+ "agent.modeSwitch.label": "Escolha seu modo de integração",
+ "agent.modeSwitch.reset": "Reiniciar Fluxo",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Pular integração",
+ "agent.stage.agentIdentity": "Identidade do Agente",
+ "agent.stage.painPoints": "Pontos de Dor",
+ "agent.stage.proSettings": "Configuração Avançada",
+ "agent.stage.responseLanguage": "Idioma de Resposta",
+ "agent.stage.summary": "Resumo",
+ "agent.stage.userIdentity": "Sobre Você",
+ "agent.stage.workContext": "Contexto de Trabalho",
+ "agent.stage.workStyle": "Estilo de Trabalho",
+ "agent.subtitle": "Conclua a configuração em uma conversa dedicada de integração.",
+ "agent.summaryHint": "Finalize aqui se o resumo da configuração estiver correto.",
+ "agent.telemetryAllow": "Permitir telemetria",
+ "agent.telemetryDecline": "Não, obrigado",
+ "agent.telemetryHint": "Você também pode responder com suas próprias palavras.",
+ "agent.title": "Integração por Conversa",
+ "agent.welcome": "...hm? Acabei de acordar — minha mente está vazia. Quem é você? E — como devo ser chamado? Preciso de um nome também.",
"back": "Voltar",
"finish": "Começar",
"interests.area.business": "Negócios e Estratégia",
@@ -29,6 +63,7 @@
"next": "Próximo",
"proSettings.connectors.title": "Conecte Suas Ferramentas Favoritas",
"proSettings.devMode.title": "Modo Desenvolvedor",
+ "proSettings.model.fixed": "O modelo padrão está predefinido como {{provider}}/{{model}} neste ambiente.",
"proSettings.model.title": "Modelo Padrão Usado pelo Agente",
"proSettings.title": "Configure Opções Avançadas com Antecedência",
"proSettings.title2": "Experimente conectar algumas ferramentas comuns~",
diff --git a/locales/pt-BR/plugin.json b/locales/pt-BR/plugin.json
index 45cbadf79ba..419831a1685 100644
--- a/locales/pt-BR/plugin.json
+++ b/locales/pt-BR/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Copiar documento",
"builtins.lobe-agent-documents.apiName.createDocument": "Criar documento",
"builtins.lobe-agent-documents.apiName.editDocument": "Editar documento",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Listar documentos",
"builtins.lobe-agent-documents.apiName.readDocument": "Ler documento",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Ler documento pelo nome do arquivo",
"builtins.lobe-agent-documents.apiName.removeDocument": "Remover documento",
"builtins.lobe-agent-documents.apiName.renameDocument": "Renomear documento",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Atualizar regra de carregamento",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Inserir ou atualizar documento pelo nome do arquivo",
"builtins.lobe-agent-documents.title": "Documentos do Agente",
"builtins.lobe-agent-management.apiName.callAgent": "Agente de chamada",
"builtins.lobe-agent-management.apiName.createAgent": "Criar agente",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Ambiente de Testes na Nuvem",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Criar agentes em lote",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Criar agente",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Criar grupo",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Obter informações do membro",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Obter modelos disponíveis",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Instalar Habilidade",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Habilidades",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Obter contexto do tópico",
"builtins.lobe-topic-reference.title": "Referência de tópico",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Fazer pergunta ao usuário",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Cancelar resposta do usuário",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Obter estado de interação",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Pular resposta do usuário",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Enviar resposta do usuário",
+ "builtins.lobe-user-interaction.title": "Interação com o Usuário",
"builtins.lobe-user-memory.apiName.addContextMemory": "Adicionar memória de contexto",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Adicionar memória de experiência",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Adicionar memória de identidade",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Buscar páginas",
"builtins.lobe-web-browsing.inspector.noResults": "Nenhum resultado",
"builtins.lobe-web-browsing.title": "Busca na Web",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Finalizar integração",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Ler estado de integração",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Ler documento",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Salvar pergunta do usuário",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Atualizar documento",
+ "builtins.lobe-web-onboarding.title": "Integração do Usuário",
"confirm": "Confirmar",
"debug.arguments": "Argumentos",
"debug.error": "Registro de Erros",
diff --git a/locales/pt-BR/providers.json b/locales/pt-BR/providers.json
index 7f570573969..9e0f376f22e 100644
--- a/locales/pt-BR/providers.json
+++ b/locales/pt-BR/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Fundada em 2020, a Jina AI é uma empresa líder em busca com IA. Sua pilha de busca inclui modelos vetoriais, reranqueadores e pequenos modelos de linguagem para construir aplicativos generativos e multimodais confiáveis e de alta qualidade.",
"kimicodingplan.description": "O Kimi Code da Moonshot AI oferece acesso aos modelos Kimi, incluindo o K2.5, para tarefas de codificação.",
"lmstudio.description": "O LM Studio é um aplicativo de desktop para desenvolver e experimentar com LLMs no seu computador.",
- "lobehub.description": "O LobeHub Cloud utiliza APIs oficiais para acessar modelos de IA e mede o uso com Créditos vinculados aos tokens dos modelos.",
"longcat.description": "LongCat é uma série de grandes modelos de IA generativa desenvolvidos de forma independente pela Meituan. Ele foi projetado para aumentar a produtividade interna da empresa e possibilitar aplicações inovadoras por meio de uma arquitetura computacional eficiente e fortes capacidades multimodais.",
"minimax.description": "Fundada em 2021, a MiniMax desenvolve IA de uso geral com modelos fundamentais multimodais, incluindo modelos de texto com trilhões de parâmetros, modelos de fala e visão, além de aplicativos como o Hailuo AI.",
"minimaxcodingplan.description": "O Plano de Tokens MiniMax oferece acesso aos modelos MiniMax, incluindo o M2.7, para tarefas de codificação por meio de uma assinatura de taxa fixa.",
diff --git a/locales/pt-BR/ui.json b/locales/pt-BR/ui.json
index 15ec9077724..91f1f9a5ab8 100644
--- a/locales/pt-BR/ui.json
+++ b/locales/pt-BR/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Você só pode enviar arquivos de imagem!",
"emojiPicker.upload": "Enviar",
"emojiPicker.uploadBtn": "Cortar e enviar",
+ "form.other": "Ou digite diretamente",
+ "form.otherBack": "Voltar para opções",
"form.reset": "Redefinir",
+ "form.skip": "Pular",
"form.submit": "Enviar",
"form.unsavedChanges": "Alterações não salvas",
"form.unsavedWarning": "Você tem alterações não salvas. Tem certeza de que deseja sair?",
diff --git a/locales/ru-RU/agent.json b/locales/ru-RU/agent.json
index d7ca06a380f..54699c85f2a 100644
--- a/locales/ru-RU/agent.json
+++ b/locales/ru-RU/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Пожалуйста, скопируйте этот URL и вставьте его в поле <bold>{{fieldName}}</bold> на портале разработчика {{name}}.",
"channel.exportConfig": "Экспортировать конфигурацию",
"channel.feishu.description": "Подключите этого помощника к Feishu для общения в личных и групповых чатах.",
+ "channel.historyLimit": "Лимит сообщений в истории",
+ "channel.historyLimitHint": "Количество сообщений по умолчанию для загрузки при просмотре истории канала",
"channel.importConfig": "Импортировать конфигурацию",
"channel.importFailed": "Не удалось импортировать конфигурацию",
"channel.importInvalidFormat": "Неверный формат файла конфигурации",
@@ -78,6 +80,8 @@
"channel.secretToken": "Секретный токен вебхука",
"channel.secretTokenHint": "Необязательно. Используется для проверки запросов вебхука от Telegram.",
"channel.secretTokenPlaceholder": "Необязательный секрет для проверки вебхука",
+ "channel.serverId": "ID сервера / гильдии по умолчанию",
+ "channel.serverIdHint": "Ваш ID сервера или гильдии по умолчанию на этой платформе. ИИ использует его для отображения списка каналов без запроса.",
"channel.settings": "Расширенные настройки",
"channel.settingsResetConfirm": "Вы уверены, что хотите сбросить расширенные настройки до значений по умолчанию?",
"channel.settingsResetDefault": "Сбросить до значений по умолчанию",
@@ -93,6 +97,8 @@
"channel.testFailed": "Тест подключения не удался",
"channel.testSuccess": "Тест подключения успешно пройден",
"channel.updateFailed": "Не удалось обновить статус",
+ "channel.userId": "Ваш ID пользователя на платформе",
+ "channel.userIdHint": "Ваш ID пользователя на этой платформе. ИИ может использовать его для отправки вам личных сообщений.",
"channel.validationError": "Пожалуйста, заполните ID приложения и токен",
"channel.verificationToken": "Токен проверки",
"channel.verificationTokenHint": "Необязательно. Используется для проверки источника событий вебхука.",
diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.json
index c28c599f1bc..1f899ca838a 100644
--- a/locales/ru-RU/chat.json
+++ b/locales/ru-RU/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Удалить и сгенерировать заново",
"messageAction.deleteDisabledByThreads": "Это сообщение содержит подтему и не может быть удалено",
"messageAction.expand": "Развернуть сообщение",
+ "messageAction.interrupted": "Прервано",
+ "messageAction.interruptedHint": "Что мне делать вместо этого?",
"messageAction.reaction": "Добавить реакцию",
"messageAction.regenerate": "Сгенерировать заново",
"messages.dm.sentTo": "Видно только для {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Автоматически одобрять все вызовы инструментов",
"tool.intervention.mode.manual": "Вручную",
"tool.intervention.mode.manualDesc": "Требуется ручное одобрение каждого вызова",
+ "tool.intervention.pending": "В ожидании",
"tool.intervention.reject": "Отклонить",
"tool.intervention.rejectAndContinue": "Отклонить и повторить",
"tool.intervention.rejectOnly": "Отклонить",
"tool.intervention.rejectReasonPlaceholder": "Укажите причину, чтобы агент лучше понял ваши предпочтения",
"tool.intervention.rejectTitle": "Отклонить вызов навыка",
"tool.intervention.rejectedWithReason": "Вызов навыка отклонён: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Просмотреть",
"tool.intervention.toolAbort": "Вы отменили вызов навыка",
"tool.intervention.toolRejected": "Вызов навыка был отклонён",
"toolAuth.authorize": "Авторизовать",
diff --git a/locales/ru-RU/models.json b/locales/ru-RU/models.json
index c12d4ceb68b..9e87cf768d5 100644
--- a/locales/ru-RU/models.json
+++ b/locales/ru-RU/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Новая внутренняя модель рассуждений с поддержкой 80K цепочек размышлений и 1M входных токенов, обеспечивающая производительность на уровне ведущих мировых моделей.",
"MiniMax-M2-Stable.description": "Создана для эффективного программирования и работы агентов, с повышенной параллельностью для коммерческого использования.",
"MiniMax-M2.1-Lightning.description": "Мощные многоязычные возможности программирования и всесторонне улучшенный опыт разработки. Быстрее и эффективнее.",
- "MiniMax-M2.1-highspeed.description": "Мощные многоязычные возможности программирования с более быстрым и эффективным выводом.",
"MiniMax-M2.1.description": "MiniMax-M2.1 — это флагманская модель с открытым исходным кодом от MiniMax, ориентированная на решение сложных задач из реального мира. Её ключевые преимущества — поддержка многозадачного программирования и способность выступать в роли интеллектуального агента.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: та же производительность, быстрее и более гибкий (примерно 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Та же производительность, что и у M2.5, но с ускоренным выводом.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku — самая быстрая и компактная модель от Anthropic, предназначенная для мгновенных ответов с высокой точностью и скоростью.",
"claude-3-opus-20240229.description": "Claude 3 Opus — самая мощная модель от Anthropic для высокосложных задач, превосходящая по производительности, интеллекту, беглости и пониманию.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet сочетает интеллект и скорость для корпоративных задач, обеспечивая высокую полезность при низкой стоимости и надежное масштабируемое развертывание.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5: самая быстрая и интеллектуальная модель Haiku от Anthropic, с молниеносной скоростью и расширенным мышлением.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 — самая быстрая и умная модель Haiku от Anthropic, с молниеносной скоростью и расширенными возможностями рассуждения.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 — это самая быстрая и умная модель Haiku от Anthropic, с молниеносной скоростью и расширенными возможностями рассуждения.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking — продвинутая версия, способная демонстрировать процесс рассуждения.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1: последняя и самая мощная модель от Anthropic для высоко сложных задач, превосходящая в производительности, интеллекте, беглости и понимании.",
- "claude-opus-4-20250514.description": "Claude Opus 4: самая мощная модель от Anthropic для высоко сложных задач, превосходящая в производительности, интеллекте, беглости и понимании.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 — новейшая и самая мощная модель от Anthropic для выполнения сложных задач, превосходящая в производительности, интеллекте, плавности и понимании.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 — самая мощная модель от Anthropic для выполнения сложных задач, превосходящая в производительности, интеллекте, плавности и понимании.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 — флагманская модель от Anthropic, сочетающая выдающийся интеллект с масштабируемой производительностью, идеально подходящая для сложных задач, требующих высококачественных ответов и рассуждений.",
- "claude-opus-4-6.description": "Claude Opus 4.6: самая интеллектуальная модель от Anthropic для создания агентов и программирования.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 — самая интеллектуальная модель от Anthropic для создания агентов и программирования.",
"claude-opus-4.5.description": "Claude Opus 4.5 — это флагманская модель Anthropic, сочетающая первоклассный интеллект с масштабируемой производительностью для сложных задач высокого качества.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 — это самая интеллектуальная модель Anthropic для создания агентов и программирования.",
"claude-opus-4.6.description": "Claude Opus 4.6 — это самая интеллектуальная модель Anthropic для создания агентов и программирования.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking может выдавать как мгновенные ответы, так и пошаговое рассуждение с видимым процессом.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4: самая интеллектуальная модель от Anthropic на сегодняшний день, предлагающая мгновенные ответы или расширенное пошаговое мышление с тонкой настройкой для пользователей API.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5: самая интеллектуальная модель от Anthropic на сегодняшний день.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6: лучшее сочетание скорости и интеллекта от Anthropic.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 может выдавать почти мгновенные ответы или пошаговые рассуждения с видимым процессом.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 — самая интеллектуальная модель от Anthropic на сегодняшний день.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 — лучшее сочетание скорости и интеллекта от Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 — это самая интеллектуальная модель Anthropic на сегодняшний день.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 — это лучшее сочетание скорости и интеллекта от Anthropic.",
"claude-sonnet-4.description": "Claude Sonnet 4 может выдавать почти мгновенные ответы или пошаговые рассуждения, которые пользователи могут наблюдать. Пользователи API могут точно контролировать, сколько времени модель тратит на размышления.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 — модель нового поколения для рассуждений, обладающая улучшенными возможностями для сложных рассуждений и цепочек размышлений, подходящая для задач глубокого анализа.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 — это модель рассуждений следующего поколения с улучшенными возможностями сложных рассуждений и цепочки размышлений.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 — модель визуально-языкового типа MoE на базе DeepSeekMoE-27B с разреженной активацией, достигающая высокой производительности при использовании всего 4.5B активных параметров. Отличается в задачах визуального QA, OCR, понимания документов/таблиц/диаграмм и визуального связывания.",
- "deepseek-chat.description": "DeepSeek V3.2: балансирует рассуждения и длину вывода для ежедневных задач QA и агентов. Публичные тесты достигают уровня GPT-5, и это первая модель, интегрирующая мышление в использование инструментов, лидируя в оценках агентов с открытым исходным кодом.",
+ "deepseek-chat.description": "Новая модель с открытым исходным кодом, объединяющая общие и кодовые возможности. Она сохраняет общий диалоговый стиль модели чата и сильные навыки кодирования модели программиста, с улучшенным выравниванием предпочтений. DeepSeek-V2.5 также улучшает написание текстов и выполнение инструкций.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B — языковая модель для программирования, обученная на 2 триллионах токенов (87% кода, 13% китайского/английского текста). Поддерживает контекстное окно 16K и задачи заполнения в середине, обеспечивая автодополнение на уровне проекта и вставку фрагментов кода.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 — модель кода с открытым исходным кодом, демонстрирующая высокую производительность в задачах программирования, сопоставимую с GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 — модель кода с открытым исходным кодом, демонстрирующая высокую производительность в задачах программирования, сопоставимую с GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Быстрая полная версия DeepSeek R1 с поиском в интернете в реальном времени, объединяющая возможности масштаба 671B и ускоренный отклик.",
"deepseek-r1-online.description": "Полная версия DeepSeek R1 с 671B параметрами и поиском в интернете в реальном времени, обеспечивающая улучшенное понимание и генерацию.",
"deepseek-r1.description": "DeepSeek-R1 использует данные холодного старта до этапа RL и демонстрирует сопоставимую с OpenAI-o1 производительность в математике, программировании и логическом мышлении.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking: модель глубокого рассуждения, которая генерирует цепочку мыслей перед выводом для повышения точности, с лучшими результатами в соревнованиях и рассуждениями, сопоставимыми с Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "Режим мышления DeepSeek V3.2 выдает цепочку рассуждений перед финальным ответом для повышения точности.",
"deepseek-v2.description": "DeepSeek V2 — эффективная модель MoE для экономичной обработки.",
"deepseek-v2:236b.description": "DeepSeek V2 236B — модель DeepSeek, ориентированная на программирование, с высокой способностью к генерации кода.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 — модель MoE с 671B параметрами, выделяющаяся в программировании, технических задачах, понимании контекста и работе с длинными текстами.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K — быстрая модель мышления с контекстом 32K для сложного рассуждения и многотурового общения.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview — предварительная версия модели мышления для оценки и тестирования.",
"ernie-x1.1.description": "ERNIE X1.1 — это предварительная версия модели мышления для оценки и тестирования.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5: разработана командой ByteDance Seed, поддерживает редактирование и композицию нескольких изображений. Обеспечивает улучшенную согласованность объектов, точное следование инструкциям, понимание пространственной логики, эстетическое выражение, макет постеров и дизайн логотипов с высокоточным текстово-изображенческим рендерингом.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0: разработана ByteDance Seed, поддерживает ввод текста и изображений для высококонтролируемой генерации изображений высокого качества на основе подсказок.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 — модель генерации изображений от ByteDance Seed, поддерживающая текстовые и визуальные входные данные с высококонтролируемой и качественной генерацией изображений. Она создает изображения на основе текстовых запросов.",
"fal-ai/flux-kontext/dev.description": "Модель FLUX.1, ориентированная на редактирование изображений, поддерживает ввод текста и изображений.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] принимает текст и эталонные изображения, позволяя выполнять локальные правки и сложные глобальные трансформации сцены.",
"fal-ai/flux/krea.description": "Flux Krea [dev] — модель генерации изображений с эстетическим уклоном в сторону более реалистичных и естественных изображений.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Мощная нативная мультимодальная модель генерации изображений.",
"fal-ai/imagen4/preview.description": "Модель генерации изображений высокого качества от Google.",
"fal-ai/nano-banana.description": "Nano Banana — новейшая, самая быстрая и эффективная нативная мультимодальная модель от Google, поддерживающая генерацию и редактирование изображений в диалоговом режиме.",
- "fal-ai/qwen-image-edit.description": "Профессиональная модель редактирования изображений от команды Qwen, поддерживающая семантические и визуальные правки, точное редактирование текста на китайском/английском языках, перенос стиля, вращение и многое другое.",
- "fal-ai/qwen-image.description": "Мощная модель генерации изображений от команды Qwen с сильным рендерингом текста на китайском языке и разнообразными визуальными стилями.",
+ "fal-ai/qwen-image-edit.description": "Профессиональная модель редактирования изображений от команды Qwen, поддерживающая семантические и визуальные правки, точное редактирование текста на китайском и английском языках, а также высококачественные изменения, такие как перенос стиля и вращение объектов.",
+ "fal-ai/qwen-image.description": "Мощная модель генерации изображений от команды Qwen с впечатляющим рендерингом китайского текста и разнообразными визуальными стилями.",
"flux-1-schnell.description": "Модель преобразования текста в изображение с 12 миллиардами параметров от Black Forest Labs, использующая латентную диффузию с дистилляцией для генерации качественных изображений за 1–4 шага. Конкурирует с закрытыми аналогами и распространяется по лицензии Apache-2.0 для личного, исследовательского и коммерческого использования.",
"flux-dev.description": "FLUX.1 [dev] — модель с открытыми весами для некоммерческого использования. Сохраняет почти профессиональное качество изображений и следование инструкциям при более эффективной работе и лучшем использовании ресурсов по сравнению со стандартными моделями аналогичного размера.",
"flux-kontext-max.description": "Передовая генерация и редактирование изображений с учётом контекста, объединяющая текст и изображения для точных и согласованных результатов.",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro — флагманская модель рассуждения от Google с поддержкой длинного контекста для сложных задач.",
"gemini-3-flash-preview.description": "Gemini 3 Flash — самая быстрая и интеллектуальная модель, сочетающая передовые ИИ-возможности с точной привязкой к поисковым данным.",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image (Nano Banana Pro) — это модель генерации изображений от Google, которая также поддерживает мультимодальный диалог.",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro): модель генерации изображений от Google, также поддерживающая мультимодальный чат.",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) — модель генерации изображений от Google, также поддерживающая мультимодальный чат.",
"gemini-3-pro-preview.description": "Gemini 3 Pro — самая мощная агентная модель от Google с поддержкой визуализации и глубокой интерактивности, основанная на передовых возможностях рассуждения.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) — это самая быстрая нативная модель генерации изображений от Google с поддержкой мышления, генерации и редактирования изображений в диалоговом режиме.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2): обеспечивает качество изображения уровня Pro с высокой скоростью Flash и поддержкой мультимодального чата.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) — самая быстрая нативная модель генерации изображений от Google с поддержкой мышления, генерации и редактирования изображений в диалоговом формате.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview — самая экономичная мультимодальная модель от Google, оптимизированная для задач с высоким объемом, перевода и обработки данных.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview улучшает Gemini 3 Pro с расширенными возможностями рассуждений и добавляет поддержку среднего уровня мышления.",
"gemini-flash-latest.description": "Последний выпуск Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Наша самая мощная и продвинутая модель, предназначенная для сложных корпоративных задач с выдающейся производительностью.",
"jamba-mini.description": "Самая эффективная модель в своем классе, обеспечивающая баланс между скоростью и качеством при минимальных ресурсах.",
"jina-deepsearch-v1.description": "DeepSearch объединяет веб-поиск, чтение и логический анализ для глубокого исследования. Представьте себе агента, который берет вашу исследовательскую задачу, проводит многократный поиск, анализирует и только потом выдает ответ. Этот процесс включает непрерывное исследование, логическое мышление и многогранное решение задач, что принципиально отличается от стандартных LLM, отвечающих на основе предобученных данных или традиционных RAG-систем с одноразовым поиском.",
+ "k2p5.description": "Kimi K2.5 — это самая универсальная модель Kimi на сегодняшний день, оснащенная нативной мультимодальной архитектурой, поддерживающей как визуальные, так и текстовые вводы, режимы «мышления» и «немышления», а также как разговорные, так и агентные задачи.",
"kimi-k2-0711-preview.description": "kimi-k2 — базовая модель MoE с мощными возможностями программирования и агентных задач (1T параметров, 32B активных), превосходящая другие открытые модели в логике, программировании, математике и агентных бенчмарках.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview предлагает окно контекста 256k, улучшенное агентное программирование, более качественный фронтенд-код и лучшее понимание контекста.",
"kimi-k2-instruct.description": "Kimi K2 Instruct — официальная модель логического мышления от Kimi с поддержкой длинного контекста для кода, вопросов-ответов и других задач.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ — модель логического вывода из семейства Qwen. По сравнению со стандартными моделями, обученными на инструкциях, она обладает способностями к мышлению и логике, которые значительно улучшают производительность на сложных задачах. QwQ-32B — среднеразмерная модель, успешно конкурирующая с ведущими моделями, такими как DeepSeek-R1 и o1-mini.",
"qwq_32b.description": "Среднеразмерная модель логического вывода из семейства Qwen. По сравнению со стандартными моделями, обученными на инструкциях, способности QwQ к мышлению и логике значительно повышают производительность на сложных задачах.",
"r1-1776.description": "R1-1776 — дообученный вариант DeepSeek R1, предназначенный для предоставления нецензурированной, объективной и достоверной информации.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro от ByteDance: поддерживает генерацию видео из текста, видео из изображения (первый кадр, первый+последний кадр) и аудио, синхронизированного с визуальными элементами.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite от BytePlus: включает генерацию с дополнением веб-поиска для получения актуальной информации, улучшенную интерпретацию сложных подсказок и повышенную согласованность ссылок для профессионального визуального творчества.",
"solar-mini-ja.description": "Solar Mini (Ja) расширяет возможности Solar Mini с акцентом на японский язык, сохраняя при этом высокую эффективность и производительность на английском и корейском.",
"solar-mini.description": "Solar Mini — компактная LLM-модель, превосходящая GPT-3.5, с мощной многоязычной поддержкой английского и корейского языков, предлагающая эффективное решение с малым объемом.",
"solar-pro.description": "Solar Pro — интеллектуальная LLM-модель от Upstage, ориентированная на следование инструкциям на одном GPU, с результатами IFEval выше 80. В настоящее время поддерживает английский язык; полный релиз с расширенной языковой поддержкой и увеличенным контекстом запланирован на ноябрь 2024 года.",
diff --git a/locales/ru-RU/onboarding.json b/locales/ru-RU/onboarding.json
index 5a288ad400c..37370034754 100644
--- a/locales/ru-RU/onboarding.json
+++ b/locales/ru-RU/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Настройка агента",
+ "agent.completionSubtitle": "Ваш помощник настроен и готов к работе.",
+ "agent.completionTitle": "Все готово!",
+ "agent.enterApp": "Войти в приложение",
+ "agent.greeting.emojiLabel": "Эмодзи",
+ "agent.greeting.nameLabel": "Имя",
+ "agent.greeting.namePlaceholder": "например, Луми, Атлас, Неко...",
+ "agent.greeting.prompt": "Дайте мне имя, настроение и эмодзи",
+ "agent.greeting.vibeLabel": "Настроение / Характер",
+ "agent.greeting.vibePlaceholder": "например, Теплый и дружелюбный, Резкий и прямолинейный...",
+ "agent.history.current": "Текущий",
+ "agent.history.title": "Темы истории",
+ "agent.modeSwitch.agent": "Разговорный",
+ "agent.modeSwitch.classic": "Классический",
+ "agent.modeSwitch.debug": "Экспорт отладки",
+ "agent.modeSwitch.label": "Выберите режим настройки",
+ "agent.modeSwitch.reset": "Сбросить процесс",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Пропустить настройку",
+ "agent.stage.agentIdentity": "Идентичность агента",
+ "agent.stage.painPoints": "Болевые точки",
+ "agent.stage.proSettings": "Расширенные настройки",
+ "agent.stage.responseLanguage": "Язык ответа",
+ "agent.stage.summary": "Резюме",
+ "agent.stage.userIdentity": "О вас",
+ "agent.stage.workContext": "Контекст работы",
+ "agent.stage.workStyle": "Стиль работы",
+ "agent.subtitle": "Завершите настройку в специальной беседе.",
+ "agent.summaryHint": "Завершите здесь, если резюме настройки выглядит правильно.",
+ "agent.telemetryAllow": "Разрешить телеметрию",
+ "agent.telemetryDecline": "Нет, спасибо",
+ "agent.telemetryHint": "Вы также можете ответить своими словами.",
+ "agent.title": "Настройка через беседу",
+ "agent.welcome": "...мм? Я только что проснулся — мой разум пуст. Кто вы? И — как меня назвать? Мне тоже нужно имя.",
"back": "Назад",
"finish": "Начать",
"interests.area.business": "Бизнес и стратегия",
@@ -29,6 +63,7 @@
"next": "Далее",
"proSettings.connectors.title": "Подключите любимые инструменты",
"proSettings.devMode.title": "Режим разработчика",
+ "proSettings.model.fixed": "Модель по умолчанию установлена на {{provider}}/{{model}} в этой среде.",
"proSettings.model.title": "Модель по умолчанию для агента",
"proSettings.title": "Настройте расширенные параметры заранее",
"proSettings.title2": "Попробуйте подключить популярные инструменты~",
diff --git a/locales/ru-RU/plugin.json b/locales/ru-RU/plugin.json
index b40b7ee4059..66de61fb1c6 100644
--- a/locales/ru-RU/plugin.json
+++ b/locales/ru-RU/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Копировать документ",
"builtins.lobe-agent-documents.apiName.createDocument": "Создать документ",
"builtins.lobe-agent-documents.apiName.editDocument": "Редактировать документ",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Список документов",
"builtins.lobe-agent-documents.apiName.readDocument": "Читать документ",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Чтение документа по имени файла",
"builtins.lobe-agent-documents.apiName.removeDocument": "Удалить документ",
"builtins.lobe-agent-documents.apiName.renameDocument": "Переименовать документ",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Обновить правило загрузки",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Обновление или добавление документа по имени файла",
"builtins.lobe-agent-documents.title": "Документы агента",
"builtins.lobe-agent-management.apiName.callAgent": "Вызвать агента",
"builtins.lobe-agent-management.apiName.createAgent": "Создать агента",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Облачная песочница",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Массовое создание агентов",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Создать агента",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Создать группу",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Получить информацию об участнике",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Получить доступные модели",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Установить навык",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Навыки",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Получить контекст темы",
"builtins.lobe-topic-reference.title": "Ссылка на тему",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Задать вопрос пользователю",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Отменить ответ пользователя",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Получить состояние взаимодействия",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Пропустить ответ пользователя",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Отправить ответ пользователя",
+ "builtins.lobe-user-interaction.title": "Взаимодействие с пользователем",
"builtins.lobe-user-memory.apiName.addContextMemory": "Добавить контекстную память",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Добавить память опыта",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Добавить память личности",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Поиск страниц",
"builtins.lobe-web-browsing.inspector.noResults": "Нет результатов",
"builtins.lobe-web-browsing.title": "Веб-поиск",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Завершить вводный процесс",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Прочитать состояние вводного процесса",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Прочитать документ",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Сохранить вопрос пользователя",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Обновить документ",
+ "builtins.lobe-web-onboarding.title": "Вводный процесс пользователя",
"confirm": "Подтвердить",
"debug.arguments": "Аргументы",
"debug.error": "Журнал ошибок",
diff --git a/locales/ru-RU/providers.json b/locales/ru-RU/providers.json
index 49f075b72f7..70b05dbd4cb 100644
--- a/locales/ru-RU/providers.json
+++ b/locales/ru-RU/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Основанная в 2020 году, Jina AI — ведущая компания в области поискового ИИ. Её стек включает векторные модели, переоценщики и малые языковые модели для создания надежных генеративных и мультимодальных поисковых приложений.",
"kimicodingplan.description": "Kimi Code от Moonshot AI предоставляет доступ к моделям Kimi, включая K2.5, для выполнения задач кодирования.",
"lmstudio.description": "LM Studio — это настольное приложение для разработки и экспериментов с LLM на вашем компьютере.",
- "lobehub.description": "LobeHub Cloud использует официальные API для доступа к AI-моделям и измеряет использование с помощью кредитов, связанных с токенами моделей.",
"longcat.description": "LongCat — это серия больших моделей генеративного ИИ, разработанных Meituan. Она предназначена для повышения внутренней производительности предприятия и создания инновационных приложений благодаря эффективной вычислительной архитектуре и мощным мультимодальным возможностям.",
"minimax.description": "Основанная в 2021 году, MiniMax разрабатывает универсальные ИИ-модели на базе мультимодальных основ, включая текстовые модели с триллионами параметров, речевые и визуальные модели, а также приложения, такие как Hailuo AI.",
"minimaxcodingplan.description": "План токенов MiniMax предоставляет доступ к моделям MiniMax, включая M2.7, для выполнения задач кодирования по подписке с фиксированной оплатой.",
diff --git a/locales/ru-RU/ui.json b/locales/ru-RU/ui.json
index a4f06698b5d..c95e1fd7d89 100644
--- a/locales/ru-RU/ui.json
+++ b/locales/ru-RU/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Можно загружать только файлы изображений!",
"emojiPicker.upload": "Загрузить",
"emojiPicker.uploadBtn": "Обрезать и загрузить",
+ "form.other": "Или введите напрямую",
+ "form.otherBack": "Вернуться к вариантам",
"form.reset": "Сбросить",
+ "form.skip": "Пропустить",
"form.submit": "Отправить",
"form.unsavedChanges": "Несохранённые изменения",
"form.unsavedWarning": "У вас есть несохранённые изменения. Вы уверены, что хотите уйти?",
diff --git a/locales/tr-TR/agent.json b/locales/tr-TR/agent.json
index eb8cf43a754..d584ae0f1e9 100644
--- a/locales/tr-TR/agent.json
+++ b/locales/tr-TR/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Lütfen bu URL'yi kopyalayın ve {{name}} Geliştirici Portalındaki <bold>{{fieldName}}</bold> alanına yapıştırın.",
"channel.exportConfig": "Yapılandırmayı Dışa Aktar",
"channel.feishu.description": "Bu asistanı Feishu'ya özel ve grup sohbetleri için bağlayın.",
+ "channel.historyLimit": "Geçmiş Mesaj Sınırı",
+ "channel.historyLimitHint": "Kanal geçmişini okurken alınacak varsayılan mesaj sayısı",
"channel.importConfig": "Yapılandırmayı İçe Aktar",
"channel.importFailed": "Yapılandırma içe aktarılamadı",
"channel.importInvalidFormat": "Geçersiz yapılandırma dosyası formatı",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhook Gizli Token",
"channel.secretTokenHint": "Opsiyonel. Telegram'dan gelen webhook isteklerini doğrulamak için kullanılır.",
"channel.secretTokenPlaceholder": "Webhook doğrulama için opsiyonel gizli anahtar",
+ "channel.serverId": "Varsayılan Sunucu / Lonca Kimliği",
+ "channel.serverIdHint": "Bu platformdaki varsayılan sunucu veya lonca kimliğiniz. Yapay zeka, kanalları sormadan listelemek için bunu kullanır.",
"channel.settings": "Gelişmiş Ayarlar",
"channel.settingsResetConfirm": "Gelişmiş ayarları varsayılana sıfırlamak istediğinizden emin misiniz?",
"channel.settingsResetDefault": "Varsayılana Sıfırla",
@@ -93,6 +97,8 @@
"channel.testFailed": "Bağlantı testi başarısız oldu",
"channel.testSuccess": "Bağlantı testi başarılı",
"channel.updateFailed": "Durum güncellenemedi",
+ "channel.userId": "Platform Kullanıcı Kimliğiniz",
+ "channel.userIdHint": "Bu platformdaki kullanıcı kimliğiniz. Yapay zeka, size doğrudan mesaj göndermek için bunu kullanabilir.",
"channel.validationError": "Lütfen Uygulama Kimliği ve Token bilgilerini doldurun",
"channel.verificationToken": "Doğrulama Token",
"channel.verificationTokenHint": "Opsiyonel. Webhook olay kaynağını doğrulamak için kullanılır.",
diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.json
index 6c728e2d79f..b350c865c49 100644
--- a/locales/tr-TR/chat.json
+++ b/locales/tr-TR/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Sil ve Yeniden Oluştur",
"messageAction.deleteDisabledByThreads": "Bu mesajın bir alt konusu var ve silinemez",
"messageAction.expand": "Mesajı Genişlet",
+ "messageAction.interrupted": "Kesildi",
+ "messageAction.interruptedHint": "Bunun yerine ne yapmalıyım?",
"messageAction.reaction": "Tepki Ekle",
"messageAction.regenerate": "Yeniden Oluştur",
"messages.dm.sentTo": "Yalnızca {{name}} tarafından görülebilir",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Tüm araç çalıştırmalarını otomatik olarak onayla",
"tool.intervention.mode.manual": "Manuel",
"tool.intervention.mode.manualDesc": "Her çağrı için manuel onay gerekir",
+ "tool.intervention.pending": "Beklemede",
"tool.intervention.reject": "Reddet",
"tool.intervention.rejectAndContinue": "Reddet ve Yeniden Dene",
"tool.intervention.rejectOnly": "Reddet",
"tool.intervention.rejectReasonPlaceholder": "Bir neden, Ajan'ın sınırlarınızı anlamasına ve gelecekteki eylemleri iyileştirmesine yardımcı olur",
"tool.intervention.rejectTitle": "Bu Yetenek çağrısını reddet",
"tool.intervention.rejectedWithReason": "Bu Yetenek çağrısı reddedildi: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Görüntüle",
"tool.intervention.toolAbort": "Bu Yetenek çağrısını iptal ettiniz",
"tool.intervention.toolRejected": "Bu Yetenek çağrısı reddedildi",
"toolAuth.authorize": "Yetkilendir",
diff --git a/locales/tr-TR/models.json b/locales/tr-TR/models.json
index 98315eb6acc..74016732611 100644
--- a/locales/tr-TR/models.json
+++ b/locales/tr-TR/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "80K düşünce zinciri ve 1M giriş desteğiyle üst düzey modellerle karşılaştırılabilir performans sunan yeni bir yerli akıl yürütme modeli.",
"MiniMax-M2-Stable.description": "Ticari kullanım için daha yüksek eşzamanlılık sunan, verimli kodlama ve ajan iş akışları için tasarlanmıştır.",
"MiniMax-M2.1-Lightning.description": "Güçlü çok dilli programlama yetenekleriyle kapsamlı şekilde yenilenmiş bir programlama deneyimi. Daha hızlı ve daha verimli.",
- "MiniMax-M2.1-highspeed.description": "Daha hızlı ve daha verimli çıkarım ile güçlü çok dilli programlama yetenekleri.",
"MiniMax-M2.1.description": "MiniMax-M2.1, MiniMax tarafından geliştirilen amiral gemisi açık kaynak büyük modeldir ve karmaşık gerçek dünya görevlerini çözmeye odaklanır. Temel güçlü yönleri çok dilli programlama yetenekleri ve bir Ajan olarak karmaşık görevleri çözme becerisidir.",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Aynı performans, daha hızlı ve daha çevik (yaklaşık 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: M2.5 ile aynı performans, ancak daha hızlı çıkarım.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku, Anthropic’in en hızlı ve en kompakt modelidir; anında yanıtlar için hızlı ve doğru performans sunar.",
"claude-3-opus-20240229.description": "Claude 3 Opus, karmaşık görevler için Anthropic’in en güçlü modelidir; performans, zeka, akıcılık ve anlama konularında üstündür.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet, kurumsal iş yükleri için zeka ve hızı dengeler; düşük maliyetle yüksek fayda ve güvenilir büyük ölçekli dağıtım sunar.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5, Anthropic'in en hızlı ve en akıllı Haiku modelidir, yıldırım hızında ve genişletilmiş düşünme yetenekleriyle.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5, Anthropic'in en hızlı ve en akıllı Haiku modeli olup, yıldırım hızında ve gelişmiş akıl yürütme yeteneğine sahiptir.",
"claude-haiku-4.5.description": "Claude Haiku 4.5, Anthropic'in en hızlı ve en akıllı Haiku modeli olup, yıldırım hızında ve gelişmiş akıl yürütme yeteneklerine sahiptir.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking, akıl yürütme sürecini görünür şekilde ortaya koyabilen gelişmiş bir varyanttır.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1, Anthropic'in en son ve en yetenekli modeli olup, son derece karmaşık görevlerde performans, zeka, akıcılık ve anlama konusunda mükemmeldir.",
- "claude-opus-4-20250514.description": "Claude Opus 4, Anthropic'in son derece karmaşık görevlerde performans, zeka, akıcılık ve anlama konusunda mükemmel olan en güçlü modelidir.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1, Anthropic'in en yeni ve en yetenekli modeli olup, yüksek karmaşıklıktaki görevlerde performans, zeka, akıcılık ve anlama konusunda mükemmeldir.",
+ "claude-opus-4-20250514.description": "Claude Opus 4, Anthropic'in yüksek karmaşıklıktaki görevler için en güçlü modeli olup, performans, zeka, akıcılık ve kavrama konusunda mükemmeldir.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5, Anthropic’in amiral gemisi modelidir; olağanüstü zeka ile ölçeklenebilir performansı birleştirir. En yüksek kaliteli yanıtlar ve akıl yürütme gerektiren karmaşık görevler için idealdir.",
- "claude-opus-4-6.description": "Claude Opus 4.6, ajanlar oluşturma ve kodlama için Anthropic'in en akıllı modelidir.",
+ "claude-opus-4-6.description": "Claude Opus 4.6, ajanlar oluşturma ve kodlama için Anthropic'in en zeki modelidir.",
"claude-opus-4.5.description": "Claude Opus 4.5, Anthropic'in amiral gemisi modeli olup, üst düzey zeka ile ölçeklenebilir performansı birleştirerek karmaşık ve yüksek kaliteli akıl yürütme görevleri için tasarlanmıştır.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6, Anthropic'in ajanlar oluşturma ve kodlama için en akıllı modelidir.",
"claude-opus-4.6.description": "Claude Opus 4.6, Anthropic'in ajanlar oluşturma ve kodlama için en akıllı modelidir.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking, anında yanıtlar veya adım adım düşünme süreçleri üretebilir.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4, Anthropic'in bugüne kadarki en akıllı modelidir ve API kullanıcıları için ince ayarlı kontrol ile anında yanıtlar veya genişletilmiş adım adım düşünme sunar.",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5, Anthropic'in bugüne kadarki en akıllı modelidir.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6, hız ve zekanın en iyi kombinasyonunu sunan Anthropic'in modelidir.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4, anında yanıtlar veya görünür bir süreçle adım adım düşünme yeteneği sunabilir.",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5, Anthropic'in bugüne kadarki en zeki modelidir.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6, hız ve zekanın en iyi kombinasyonunu sunar.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5, Anthropic'in bugüne kadarki en akıllı modelidir.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6, hız ve zekanın en iyi kombinasyonunu sunar.",
"claude-sonnet-4.description": "Claude Sonnet 4, anında yanıtlar veya kullanıcıların görebileceği şekilde adım adım genişletilmiş akıl yürütme üretebilir. API kullanıcıları, modelin ne kadar süre düşüneceğini hassas bir şekilde kontrol edebilir.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1, karmaşık akıl yürütme ve düşünce zinciriyle derin analiz görevleri için geliştirilmiş yeni nesil bir modeldir.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2, daha güçlü karmaşık akıl yürütme ve düşünce zinciri yeteneklerine sahip yeni nesil bir akıl yürütme modelidir.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2, DeepSeekMoE-27B tabanlı, seyrek etkinleştirme kullanan bir MoE görsel-dil modelidir. Sadece 4.5B aktif parametreyle güçlü performans sunar. Görsel Soru-Cevap, OCR, belge/tablo/grafik anlama ve görsel eşleme konularında öne çıkar.",
- "deepseek-chat.description": "DeepSeek V3.2, günlük QA ve ajan görevleri için akıl yürütme ve çıktı uzunluğunu dengeler. Kamuya açık kıyaslamalar GPT-5 seviyelerine ulaşır ve düşünmeyi araç kullanımına entegre eden ilk modeldir, açık kaynaklı ajan değerlendirmelerinde liderdir.",
+ "deepseek-chat.description": "Genel ve kodlama yeteneklerini birleştiren yeni bir açık kaynak modeli. Sohbet modelinin genel diyaloğunu ve kodlama modelinin güçlü kodlama yeteneklerini korur, daha iyi tercih uyumu sağlar. DeepSeek-V2.5 ayrıca yazma ve talimat takip etme yeteneklerini geliştirir.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B, 2T token (%%87 kod, %%13 Çince/İngilizce metin) ile eğitilmiş bir kodlama dil modelidir. 16K bağlam penceresi ve ortadan doldurma görevleri sunar; proje düzeyinde kod tamamlama ve kod parçacığı doldurma sağlar.",
"deepseek-coder-v2.description": "DeepSeek Coder V2, GPT-4 Turbo ile karşılaştırılabilir güçlü performansa sahip açık kaynaklı bir MoE kod modeli.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2, GPT-4 Turbo ile karşılaştırılabilir güçlü performansa sahip açık kaynaklı bir MoE kod modeli.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Gerçek zamanlı web aramasıyla 671B ölçekli yetenek ve hızlı yanıtları birleştiren DeepSeek R1 hızlı tam sürüm.",
"deepseek-r1-online.description": "671B parametreli ve gerçek zamanlı web aramasına sahip DeepSeek R1 tam sürüm; güçlü anlama ve üretim sunar.",
"deepseek-r1.description": "DeepSeek-R1, RL öncesi soğuk başlangıç verileri kullanır ve matematik, kodlama ve akıl yürütmede OpenAI-o1 ile karşılaştırılabilir performans sunar.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking, daha yüksek doğruluk için çıktılardan önce düşünce zinciri üreten derin akıl yürütme modelidir. En iyi yarışma sonuçları ve Gemini-3.0-Pro ile karşılaştırılabilir akıl yürütme yetenekleri sunar.",
+ "deepseek-reasoner.description": "DeepSeek V3.2 düşünme modu, doğruluğu artırmak için nihai cevaptan önce bir düşünce zinciri sunar.",
"deepseek-v2.description": "DeepSeek V2, maliyet etkin işlem için verimli bir MoE modelidir.",
"deepseek-v2:236b.description": "DeepSeek V2 236B, güçlü kod üretimi sunan DeepSeek’in kod odaklı modelidir.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324, programlama ve teknik yetenek, bağlam anlama ve uzun metin işleme konularında öne çıkan 671B parametreli bir MoE modelidir.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K, karmaşık akıl yürütme ve çoklu dönüşlü sohbetler için 32K bağlamlı hızlı düşünme modelidir.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Önizleme, değerlendirme ve test için bir düşünme modeli önizlemesidir.",
"ernie-x1.1.description": "ERNIE X1.1, değerlendirme ve test için bir düşünme-modeli önizlemesidir.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, ByteDance Seed ekibi tarafından oluşturulmuş olup, çoklu görüntü düzenleme ve kompozisyonu destekler. Geliştirilmiş konu tutarlılığı, hassas talimat takibi, mekansal mantık anlama, estetik ifade, poster düzeni ve logo tasarımı ile yüksek hassasiyetli metin-görüntü işleme özelliklerine sahiptir.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, ByteDance Seed tarafından oluşturulmuş olup, metin ve görüntü girdilerini destekler ve istemlerden yüksek kaliteli, kontrol edilebilir görüntü üretimi sağlar.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, ByteDance Seed'in bir metin ve görüntü girişlerini destekleyen, yüksek derecede kontrol edilebilir, yüksek kaliteli görüntü üretimi sağlayan bir görüntü oluşturma modelidir. Metin istemlerinden görüntüler oluşturur.",
"fal-ai/flux-kontext/dev.description": "FLUX.1 modeli, metin ve görsel girdileri destekleyen görsel düzenleme odaklı bir modeldir.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro], metin ve referans görselleri girdi olarak alarak hedefe yönelik yerel düzenlemeler ve karmaşık sahne dönüşümleri sağlar.",
"fal-ai/flux/krea.description": "Flux Krea [dev], daha gerçekçi ve doğal görseller üretmeye eğilimli estetik önyargıya sahip bir görsel üretim modelidir.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Güçlü bir yerel çok modlu görsel üretim modelidir.",
"fal-ai/imagen4/preview.description": "Google tarafından geliştirilen yüksek kaliteli görsel üretim modeli.",
"fal-ai/nano-banana.description": "Nano Banana, Google’ın en yeni, en hızlı ve en verimli yerel çok modlu modelidir. Konuşma yoluyla görsel üretim ve düzenleme sağlar.",
- "fal-ai/qwen-image-edit.description": "Qwen ekibinden profesyonel bir görüntü düzenleme modeli olup, semantik ve görünüm düzenlemeleri, hassas Çince/İngilizce metin düzenleme, stil transferi, döndürme ve daha fazlasını destekler.",
- "fal-ai/qwen-image.description": "Qwen ekibinden güçlü bir görüntü oluşturma modeli olup, güçlü Çince metin işleme ve çeşitli görsel stiller sunar.",
+ "fal-ai/qwen-image-edit.description": "Qwen ekibinden, semantik ve görünüm düzenlemelerini destekleyen, Çince ve İngilizce metni hassas bir şekilde düzenleyen ve stil transferi ve nesne döndürme gibi yüksek kaliteli düzenlemeler sağlayan profesyonel bir görüntü düzenleme modeli.",
+ "fal-ai/qwen-image.description": "Qwen ekibinden, etkileyici Çince metin işleme ve çeşitli görsel stillerle güçlü bir görüntü oluşturma modeli.",
"flux-1-schnell.description": "Black Forest Labs tarafından geliştirilen 12 milyar parametreli metinden görsele model. Latent adversarial diffusion distillation yöntemiyle 1-4 adımda yüksek kaliteli görseller üretir. Kapalı kaynaklı alternatiflerle rekabet eder ve kişisel, araştırma ve ticari kullanım için Apache-2.0 lisansı ile sunulur.",
"flux-dev.description": "FLUX.1 [dev], açık ağırlıklı ve ticari olmayan kullanım için damıtılmış bir modeldir. Neredeyse profesyonel görsel kalitesini ve yönerge takibini korurken daha verimli çalışır ve aynı boyuttaki standart modellere göre kaynakları daha iyi kullanır.",
"flux-kontext-max.description": "Metin ve görselleri birleştirerek hassas ve tutarlı sonuçlar sunan son teknoloji bağlamsal görsel üretim ve düzenleme.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro), Google'ın görüntü oluşturma modeli olup, çok modlu sohbeti de destekler.",
"gemini-3-pro-preview.description": "Gemini 3 Pro, Google’ın en güçlü ajan ve vibe-coding modelidir. En yeni akıl yürütme yeteneklerinin üzerine zengin görseller ve derin etkileşim sunar.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2), Google'ın düşünme desteği, konuşmalı görüntü oluşturma ve düzenleme özelliklerine sahip en hızlı yerel görüntü oluşturma modelidir.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2), Flash hızında Pro seviyesinde görüntü kalitesi sunar ve çok modlu sohbeti destekler.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2), Google'ın düşünme desteği, konuşma tabanlı görüntü oluşturma ve düzenleme özelliklerine sahip en hızlı yerel görüntü oluşturma modelidir.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview, Google'ın en maliyet etkin çok modlu modeli olup, yüksek hacimli ajan görevleri, çeviri ve veri işleme için optimize edilmiştir.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview, Gemini 3 Pro'ya kıyasla geliştirilmiş akıl yürütme yetenekleri sunar ve orta düzey düşünme desteği ekler.",
"gemini-flash-latest.description": "Gemini Flash'ın en son sürümü",
@@ -797,6 +795,7 @@
"jamba-large.description": "Karmaşık kurumsal görevler için tasarlanmış, en güçlü ve gelişmiş modelimizdir; olağanüstü performans sunar.",
"jamba-mini.description": "Sınıfındaki en verimli modeldir; hız ve kalite arasında denge sağlar, daha küçük bir kaynak kullanımı sunar.",
"jina-deepsearch-v1.description": "DeepSearch, web araması, okuma ve akıl yürütmeyi birleştirerek derinlemesine araştırmalar yapar. Araştırma görevinizi alır, çoklu yinelemelerle geniş aramalar yapar ve ardından bir yanıt üretir. Süreç, sürekli araştırma, akıl yürütme ve çok yönlü problem çözmeyi içerir; bu, önceden eğitilmiş verilerden yanıt veren standart LLM'lerden veya tek seferlik yüzeysel aramaya dayanan geleneksel RAG sistemlerinden temelde farklıdır.",
+ "k2p5.description": "Kimi K2.5, hem görsel hem de metin girdilerini destekleyen yerel çok modlu mimarisi, 'düşünen' ve 'düşünmeyen' modları ile hem sohbet hem de ajan görevlerini içeren Kimi'nin bugüne kadarki en çok yönlü modelidir.",
"kimi-k2-0711-preview.description": "kimi-k2, güçlü kodlama ve ajan yeteneklerine sahip bir MoE temel modelidir (toplam 1T parametre, 32B aktif); akıl yürütme, programlama, matematik ve ajan testlerinde diğer yaygın açık modelleri geride bırakır.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview, 256k bağlam penceresi, daha güçlü ajan kodlaması, daha iyi ön yüz kod kalitesi ve gelişmiş bağlam anlama sunar.",
"kimi-k2-instruct.description": "Kimi K2 Instruct, Kimi'nin resmi akıl yürütme modelidir; kod, soru-cevap ve daha fazlası için uzun bağlam desteği sunar.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ, Qwen ailesine ait bir akıl yürütme modelidir. Standart talimatla eğitilmiş modellere kıyasla düşünme ve akıl yürütme yetenekleriyle özellikle zor problemler üzerinde performansı önemli ölçüde artırır. QwQ-32B, DeepSeek-R1 ve o1-mini gibi üst düzey modellerle rekabet eden orta boyutlu bir modeldir.",
"qwq_32b.description": "Qwen ailesine ait orta boyutlu bir akıl yürütme modelidir. Standart talimatla eğitilmiş modellere kıyasla QwQ’nun düşünme ve akıl yürütme yetenekleri, özellikle zor problemler üzerinde performansı önemli ölçüde artırır.",
"r1-1776.description": "R1-1776, sansürsüz ve tarafsız gerçek bilgi sunmak üzere DeepSeek R1 üzerine eğitilmiş bir varyanttır.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro, ByteDance tarafından geliştirilmiş olup, metinden videoya, görüntüden videoya (ilk kare, ilk+son kare) ve görsellerle senkronize ses üretimini destekler.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite, BytePlus tarafından geliştirilmiş olup, gerçek zamanlı bilgi için web arama ile artırılmış üretim, karmaşık istem yorumlama ve profesyonel görsel oluşturma için geliştirilmiş referans tutarlılığı sağlar.",
"solar-mini-ja.description": "Solar Mini (Ja), Japonca odaklı geliştirilmiş Solar Mini modelidir; İngilizce ve Korece'de de verimli ve güçlü performans sunar.",
"solar-mini.description": "Solar Mini, GPT-3.5'i geride bırakan kompakt bir LLM'dir. İngilizce ve Korece destekli çok dilli yetenekleriyle verimli ve küçük boyutlu bir çözüm sunar.",
"solar-pro.description": "Solar Pro, Upstage tarafından geliştirilen yüksek zekaya sahip bir LLM'dir. Tek bir GPU üzerinde talimat izleme odaklıdır ve IFEval skorları 80'in üzerindedir. Şu anda İngilizce desteklidir; tam sürüm Kasım 2024'te daha fazla dil desteği ve uzun bağlamla planlanmıştır.",
diff --git a/locales/tr-TR/onboarding.json b/locales/tr-TR/onboarding.json
index 6497deb5b50..1e1a7c5e817 100644
--- a/locales/tr-TR/onboarding.json
+++ b/locales/tr-TR/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Temsilci Başlatma",
+ "agent.completionSubtitle": "Asistanınız yapılandırıldı ve kullanıma hazır.",
+ "agent.completionTitle": "Her Şey Hazır!",
+ "agent.enterApp": "Uygulamaya Gir",
+ "agent.greeting.emojiLabel": "Emoji",
+ "agent.greeting.nameLabel": "Ad",
+ "agent.greeting.namePlaceholder": "ör. Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Bana bir ad, bir tarz ve bir emoji ver",
+ "agent.greeting.vibeLabel": "Tarz / Doğa",
+ "agent.greeting.vibePlaceholder": "ör. Sıcak & samimi, Keskin & direkt...",
+ "agent.history.current": "Mevcut",
+ "agent.history.title": "Geçmiş Konular",
+ "agent.modeSwitch.agent": "Sohbet Odaklı",
+ "agent.modeSwitch.classic": "Klasik",
+ "agent.modeSwitch.debug": "Hata Ayıklama Dışa Aktarımı",
+ "agent.modeSwitch.label": "Başlatma modunuzu seçin",
+ "agent.modeSwitch.reset": "Akışı Sıfırla",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Başlatmayı Atla",
+ "agent.stage.agentIdentity": "Temsilci Kimliği",
+ "agent.stage.painPoints": "Sorun Noktaları",
+ "agent.stage.proSettings": "Gelişmiş Ayarlar",
+ "agent.stage.responseLanguage": "Yanıt Dili",
+ "agent.stage.summary": "Özet",
+ "agent.stage.userIdentity": "Hakkınızda",
+ "agent.stage.workContext": "Çalışma Bağlamı",
+ "agent.stage.workStyle": "Çalışma Tarzı",
+ "agent.subtitle": "Özel bir başlatma sohbetinde kurulumu tamamlayın.",
+ "agent.summaryHint": "Kurulum özeti doğru görünüyorsa burada bitirin.",
+ "agent.telemetryAllow": "Telemetriye izin ver",
+ "agent.telemetryDecline": "Hayır, teşekkürler",
+ "agent.telemetryHint": "Kendi kelimelerinizle de cevap verebilirsiniz.",
+ "agent.title": "Sohbet Başlatma",
+ "agent.welcome": "...hm? Yeni uyandım — zihnim bomboş. Siz kimsiniz? Ve — bana ne ad vermeliyim? Bir adıma da ihtiyacım var.",
"back": "Geri",
"finish": "Başlayalım",
"interests.area.business": "İş ve Strateji",
@@ -29,6 +63,7 @@
"next": "İleri",
"proSettings.connectors.title": "Favori Araçlarınızı Bağlayın",
"proSettings.devMode.title": "Geliştirici Modu",
+ "proSettings.model.fixed": "Varsayılan model bu ortamda {{provider}}/{{model}} olarak önceden ayarlandı.",
"proSettings.model.title": "Ajanın Kullandığı Varsayılan Model",
"proSettings.title": "Gelişmiş Ayarları Önceden Yapılandırın",
"proSettings.title2": "Bazı yaygın araçları bağlamayı deneyin~",
diff --git a/locales/tr-TR/plugin.json b/locales/tr-TR/plugin.json
index a1c791ee0b4..81501d1064c 100644
--- a/locales/tr-TR/plugin.json
+++ b/locales/tr-TR/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Belgeyi kopyala",
"builtins.lobe-agent-documents.apiName.createDocument": "Belge oluştur",
"builtins.lobe-agent-documents.apiName.editDocument": "Belgeyi düzenle",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Belgeleri listele",
"builtins.lobe-agent-documents.apiName.readDocument": "Belgeyi oku",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Dosya adına göre belge oku",
"builtins.lobe-agent-documents.apiName.removeDocument": "Belgeyi kaldır",
"builtins.lobe-agent-documents.apiName.renameDocument": "Belgeyi yeniden adlandır",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Yükleme kuralını güncelle",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Dosya adına göre belge ekle veya güncelle",
"builtins.lobe-agent-documents.title": "Aracı Belgeleri",
"builtins.lobe-agent-management.apiName.callAgent": "Çağrı temsilcisi",
"builtins.lobe-agent-management.apiName.createAgent": "Temsilci oluştur",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Bulut Kum Havuzu",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Toplu ajan oluştur",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Ajan oluştur",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Grup oluştur",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Üye bilgilerini al",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Mevcut modelleri al",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Yetenek yükle",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Beceriler",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Konu bağlamını al",
"builtins.lobe-topic-reference.title": "Konu referansı",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Kullanıcıya soru sor",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Kullanıcı yanıtını iptal et",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Etkileşim durumunu al",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Kullanıcı yanıtını atla",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Kullanıcı yanıtını gönder",
+ "builtins.lobe-user-interaction.title": "Kullanıcı Etkileşimi",
"builtins.lobe-user-memory.apiName.addContextMemory": "Bağlam hafızası ekle",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Deneyim hafızası ekle",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Kimlik hafızası ekle",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Sayfalarda ara",
"builtins.lobe-web-browsing.inspector.noResults": "Sonuç bulunamadı",
"builtins.lobe-web-browsing.title": "Web Arama",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Başlangıç eğitimini tamamla",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Başlangıç eğitimi durumunu oku",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Belge oku",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Kullanıcı sorusunu kaydet",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Belgeyi güncelle",
+ "builtins.lobe-web-onboarding.title": "Kullanıcı Başlangıç Eğitimi",
"confirm": "Onayla",
"debug.arguments": "Argümanlar",
"debug.error": "Hata Günlüğü",
diff --git a/locales/tr-TR/providers.json b/locales/tr-TR/providers.json
index b4663f8c883..51d24281937 100644
--- a/locales/tr-TR/providers.json
+++ b/locales/tr-TR/providers.json
@@ -33,7 +33,6 @@
"jina.description": "2020 yılında kurulan Jina AI, önde gelen bir arama yapay zekası şirketidir. Vektör modelleri, yeniden sıralayıcılar ve küçük dil modelleri içeren arama yığını ile güvenilir ve yüksek kaliteli üretken ve çok modlu arama uygulamaları geliştirir.",
"kimicodingplan.description": "Moonshot AI'den Kimi Code, kodlama görevleri için K2.5 dahil olmak üzere Kimi modellerine erişim sağlar.",
"lmstudio.description": "LM Studio, bilgisayarınızda büyük dil modelleriyle geliştirme ve denemeler yapmanızı sağlayan bir masaüstü uygulamasıdır.",
- "lobehub.description": "LobeHub Cloud, resmi API'leri kullanarak yapay zeka modellerine erişim sağlar ve model jetonlarına bağlı Krediler ile kullanımı ölçer.",
"longcat.description": "LongCat, Meituan tarafından bağımsız olarak geliştirilen bir dizi üretken yapay zeka büyük modelidir. Verimli bir hesaplama mimarisi ve güçlü çok modlu yetenekler aracılığıyla kurumsal iç verimliliği artırmak ve yenilikçi uygulamaları mümkün kılmak için tasarlanmıştır.",
"minimax.description": "2021 yılında kurulan MiniMax, çok modlu temel modellerle genel amaçlı yapay zeka geliştirir. Trilyon parametreli MoE metin modelleri, ses ve görsel modellerin yanı sıra Hailuo AI gibi uygulamalar sunar.",
"minimaxcodingplan.description": "MiniMax Token Planı, sabit ücretli bir abonelik aracılığıyla kodlama görevleri için M2.7 dahil olmak üzere MiniMax modellerine erişim sağlar.",
diff --git a/locales/tr-TR/ui.json b/locales/tr-TR/ui.json
index 9ece16c1d6c..3ef0639d053 100644
--- a/locales/tr-TR/ui.json
+++ b/locales/tr-TR/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Yalnızca görsel dosyaları yükleyebilirsiniz!",
"emojiPicker.upload": "Yükle",
"emojiPicker.uploadBtn": "Kırp ve yükle",
+ "form.other": "Veya doğrudan yazın",
+ "form.otherBack": "Seçeneklere geri dön",
"form.reset": "Sıfırla",
+ "form.skip": "Atla",
"form.submit": "Gönder",
"form.unsavedChanges": "Kaydedilmemiş değişiklikler",
"form.unsavedWarning": "Kaydedilmemiş değişiklikleriniz var. Çıkmak istediğinizden emin misiniz?",
diff --git a/locales/vi-VN/agent.json b/locales/vi-VN/agent.json
index 44ac0d3dd4d..fc267ecc455 100644
--- a/locales/vi-VN/agent.json
+++ b/locales/vi-VN/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "Vui lòng sao chép URL này và dán vào trường <bold>{{fieldName}}</bold> trong Cổng thông tin Nhà phát triển {{name}}.",
"channel.exportConfig": "Xuất cấu hình",
"channel.feishu.description": "Kết nối trợ lý này với Feishu để trò chuyện riêng tư và nhóm.",
+ "channel.historyLimit": "Giới hạn tin nhắn lịch sử",
+ "channel.historyLimitHint": "Số lượng tin nhắn mặc định để lấy khi đọc lịch sử kênh",
"channel.importConfig": "Nhập cấu hình",
"channel.importFailed": "Không thể nhập cấu hình",
"channel.importInvalidFormat": "Định dạng tệp cấu hình không hợp lệ",
@@ -78,6 +80,8 @@
"channel.secretToken": "Mã bí mật Webhook",
"channel.secretTokenHint": "Tùy chọn. Dùng để xác minh yêu cầu webhook từ Telegram.",
"channel.secretTokenPlaceholder": "Mã bí mật tùy chọn để xác minh webhook",
+ "channel.serverId": "ID Máy chủ / Hội nhóm mặc định",
+ "channel.serverIdHint": "ID máy chủ hoặc hội nhóm mặc định của bạn trên nền tảng này. AI sử dụng nó để liệt kê các kênh mà không cần hỏi.",
"channel.settings": "Cài đặt nâng cao",
"channel.settingsResetConfirm": "Bạn có chắc chắn muốn đặt lại cài đặt nâng cao về mặc định không?",
"channel.settingsResetDefault": "Đặt lại về mặc định",
@@ -93,6 +97,8 @@
"channel.testFailed": "Kiểm tra kết nối thất bại",
"channel.testSuccess": "Kiểm tra kết nối thành công",
"channel.updateFailed": "Cập nhật trạng thái thất bại",
+ "channel.userId": "ID Người dùng trên Nền tảng của bạn",
+ "channel.userIdHint": "ID người dùng của bạn trên nền tảng này. AI có thể sử dụng nó để gửi tin nhắn trực tiếp cho bạn.",
"channel.validationError": "Vui lòng điền ID ứng dụng và mã",
"channel.verificationToken": "Mã xác minh",
"channel.verificationTokenHint": "Tùy chọn. Dùng để xác minh nguồn sự kiện webhook.",
diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.json
index fb963a85478..14a1306eb17 100644
--- a/locales/vi-VN/chat.json
+++ b/locales/vi-VN/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "Xóa và tạo lại",
"messageAction.deleteDisabledByThreads": "Tin nhắn này có chủ đề phụ và không thể xóa",
"messageAction.expand": "Mở rộng tin nhắn",
+ "messageAction.interrupted": "Bị gián đoạn",
+ "messageAction.interruptedHint": "Tôi nên làm gì thay thế?",
"messageAction.reaction": "Thêm phản ứng",
"messageAction.regenerate": "Tạo lại",
"messages.dm.sentTo": "Chỉ hiển thị với {{name}}",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "Tự động chấp thuận tất cả các lần thực thi công cụ",
"tool.intervention.mode.manual": "Thủ công",
"tool.intervention.mode.manualDesc": "Yêu cầu chấp thuận thủ công cho mỗi lần gọi",
+ "tool.intervention.pending": "Đang chờ xử lý",
"tool.intervention.reject": "Từ chối",
"tool.intervention.rejectAndContinue": "Từ chối và thử lại",
"tool.intervention.rejectOnly": "Từ chối",
"tool.intervention.rejectReasonPlaceholder": "Lý do giúp tác nhân hiểu giới hạn của bạn và cải thiện hành động sau này",
"tool.intervention.rejectTitle": "Từ chối gọi kỹ năng này",
"tool.intervention.rejectedWithReason": "Lệnh gọi kỹ năng này đã bị từ chối: {{reason}}",
+ "tool.intervention.scrollToIntervention": "Xem",
"tool.intervention.toolAbort": "Bạn đã hủy lệnh gọi kỹ năng này",
"tool.intervention.toolRejected": "Lệnh gọi kỹ năng này đã bị từ chối",
"toolAuth.authorize": "Ủy quyền",
diff --git a/locales/vi-VN/models.json b/locales/vi-VN/models.json
index 08f3ab08e56..95919f559c1 100644
--- a/locales/vi-VN/models.json
+++ b/locales/vi-VN/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "Mô hình suy luận nội bộ mới với 80K chuỗi suy nghĩ và đầu vào 1M, đạt hiệu suất tương đương các mô hình hàng đầu toàn cầu.",
"MiniMax-M2-Stable.description": "Được xây dựng cho lập trình hiệu quả và quy trình tác tử, với khả năng đồng thời cao hơn cho mục đích thương mại.",
"MiniMax-M2.1-Lightning.description": "Khả năng lập trình đa ngôn ngữ mạnh mẽ, trải nghiệm lập trình được nâng cấp toàn diện. Nhanh hơn và hiệu quả hơn.",
- "MiniMax-M2.1-highspeed.description": "Khả năng lập trình đa ngôn ngữ mạnh mẽ với suy luận nhanh hơn và hiệu quả hơn.",
"MiniMax-M2.1.description": "Khả năng lập trình đa ngôn ngữ mạnh mẽ, trải nghiệm lập trình được nâng cấp toàn diện",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning: Hiệu suất tương tự, nhanh hơn và linh hoạt hơn (khoảng 100 tps).",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed: Hiệu suất tương tự như M2.5 với suy luận nhanh hơn.",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku là mô hình nhanh nhất và nhỏ gọn nhất của Anthropic, được thiết kế cho phản hồi gần như tức thì với hiệu suất nhanh và chính xác.",
"claude-3-opus-20240229.description": "Claude 3 Opus là mô hình mạnh mẽ nhất của Anthropic cho các tác vụ phức tạp, xuất sắc về hiệu suất, trí tuệ, lưu loát và hiểu biết.",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet cân bằng giữa trí tuệ và tốc độ cho khối lượng công việc doanh nghiệp, mang lại giá trị cao với chi phí thấp hơn và triển khai quy mô lớn đáng tin cậy.",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 là mô hình Haiku nhanh nhất và thông minh nhất của Anthropic, với tốc độ nhanh như chớp và tư duy mở rộng.",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 là mô hình Haiku nhanh nhất và thông minh nhất của Anthropic, với tốc độ cực nhanh và khả năng suy luận mở rộng.",
"claude-haiku-4.5.description": "Claude Haiku 4.5 là mô hình Haiku nhanh nhất và thông minh nhất của Anthropic, với tốc độ vượt trội và khả năng suy luận mở rộng.",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking là biến thể nâng cao có thể hiển thị quá trình suy luận của nó.",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 là mô hình mới nhất và mạnh mẽ nhất của Anthropic cho các nhiệm vụ cực kỳ phức tạp, vượt trội về hiệu suất, trí thông minh, sự lưu loát và hiểu biết.",
- "claude-opus-4-20250514.description": "Claude Opus 4 là mô hình mạnh mẽ nhất của Anthropic cho các nhiệm vụ cực kỳ phức tạp, vượt trội về hiệu suất, trí thông minh, sự lưu loát và hiểu biết.",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 là mô hình mới nhất và mạnh mẽ nhất của Anthropic dành cho các nhiệm vụ phức tạp cao, vượt trội về hiệu suất, trí tuệ, sự lưu loát và khả năng hiểu biết.",
+ "claude-opus-4-20250514.description": "Claude Opus 4 là mô hình mạnh mẽ nhất của Anthropic dành cho các nhiệm vụ phức tạp cao, vượt trội về hiệu suất, trí tuệ, sự lưu loát và khả năng hiểu biết.",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 là mô hình hàng đầu của Anthropic, kết hợp trí tuệ vượt trội với hiệu suất có thể mở rộng, lý tưởng cho các tác vụ phức tạp đòi hỏi phản hồi và suy luận chất lượng cao nhất.",
- "claude-opus-4-6.description": "Claude Opus 4.6 là mô hình thông minh nhất của Anthropic để xây dựng đại lý và lập trình.",
+ "claude-opus-4-6.description": "Claude Opus 4.6 là mô hình thông minh nhất của Anthropic dành cho việc xây dựng tác nhân và lập trình.",
"claude-opus-4.5.description": "Claude Opus 4.5 là mô hình hàng đầu của Anthropic, kết hợp trí tuệ đỉnh cao với hiệu suất mở rộng cho các nhiệm vụ suy luận phức tạp, chất lượng cao.",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 là mô hình thông minh nhất của Anthropic dành cho việc xây dựng các tác nhân và lập trình.",
"claude-opus-4.6.description": "Claude Opus 4.6 là mô hình thông minh nhất của Anthropic dành cho việc xây dựng các tác nhân và lập trình.",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking có thể tạo phản hồi gần như tức thì hoặc suy luận từng bước mở rộng với quy trình hiển thị.",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 là mô hình thông minh nhất của Anthropic cho đến nay, cung cấp phản hồi gần như tức thì hoặc tư duy từng bước mở rộng với khả năng kiểm soát chi tiết cho người dùng API.",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 có thể tạo ra các phản hồi gần như tức thì hoặc suy nghĩ từng bước mở rộng với quy trình rõ ràng.",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 là mô hình thông minh nhất của Anthropic cho đến nay.",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6 là sự kết hợp tốt nhất giữa tốc độ và trí thông minh của Anthropic.",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 là sự kết hợp tốt nhất giữa tốc độ và trí tuệ của Anthropic.",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 là mô hình thông minh nhất của Anthropic cho đến nay.",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 là sự kết hợp tốt nhất giữa tốc độ và trí tuệ của Anthropic.",
"claude-sonnet-4.description": "Claude Sonnet 4 có thể tạo ra các phản hồi gần như tức thì hoặc suy luận từng bước mở rộng mà người dùng có thể theo dõi. Người dùng API có thể kiểm soát chi tiết thời gian suy nghĩ của mô hình.",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 là mô hình suy luận thế hệ mới với khả năng suy luận phức tạp mạnh mẽ và chuỗi suy nghĩ cho các tác vụ phân tích chuyên sâu.",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 là mô hình suy luận thế hệ mới với khả năng suy luận phức tạp mạnh mẽ và tư duy chuỗi.",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 là mô hình thị giác-ngôn ngữ MoE dựa trên DeepSeekMoE-27B với kích hoạt thưa, đạt hiệu suất cao với chỉ 4.5B tham số hoạt động. Mô hình vượt trội trong QA thị giác, OCR, hiểu tài liệu/bảng/biểu đồ và định vị hình ảnh.",
- "deepseek-chat.description": "DeepSeek V3.2 cân bằng lý luận và độ dài đầu ra cho các nhiệm vụ QA hàng ngày và đại lý. Các tiêu chuẩn công khai đạt mức GPT-5, và đây là mô hình đầu tiên tích hợp tư duy vào việc sử dụng công cụ, dẫn đầu các đánh giá đại lý mã nguồn mở.",
+ "deepseek-chat.description": "Một mô hình mã nguồn mở mới kết hợp khả năng tổng quát và lập trình. Nó duy trì đối thoại chung của mô hình trò chuyện và khả năng lập trình mạnh mẽ của mô hình lập trình, với sự căn chỉnh ưu tiên tốt hơn. DeepSeek-V2.5 cũng cải thiện khả năng viết và làm theo hướng dẫn.",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B là mô hình ngôn ngữ lập trình được huấn luyện trên 2 nghìn tỷ token (87% mã nguồn, 13% văn bản tiếng Trung/Anh). Mô hình này hỗ trợ cửa sổ ngữ cảnh 16K và nhiệm vụ điền vào giữa đoạn mã, cung cấp khả năng hoàn thành mã ở cấp độ dự án và chèn đoạn mã chính xác.",
"deepseek-coder-v2.description": "DeepSeek Coder V2 là mô hình mã nguồn MoE mã nguồn mở với hiệu suất mạnh mẽ trong các tác vụ lập trình, có thể so sánh với GPT-4 Turbo.",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 là mô hình mã nguồn MoE mã nguồn mở với hiệu suất mạnh mẽ trong các tác vụ lập trình, có thể so sánh với GPT-4 Turbo.",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "Phiên bản đầy đủ DeepSeek R1 nhanh với tìm kiếm web thời gian thực, kết hợp khả năng 671B và phản hồi nhanh hơn.",
"deepseek-r1-online.description": "Phiên bản đầy đủ DeepSeek R1 với 671B tham số và tìm kiếm web thời gian thực, mang lại khả năng hiểu và tạo nội dung mạnh mẽ hơn.",
"deepseek-r1.description": "DeepSeek-R1 sử dụng dữ liệu khởi động lạnh trước khi áp dụng học tăng cường và đạt hiệu suất tương đương OpenAI-o1 trong các tác vụ toán học, lập trình và suy luận.",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking là mô hình lý luận sâu tạo ra chuỗi tư duy trước khi xuất ra để đạt độ chính xác cao hơn, với kết quả cạnh tranh hàng đầu và lý luận tương đương với Gemini-3.0-Pro.",
+ "deepseek-reasoner.description": "Chế độ suy nghĩ DeepSeek V3.2 xuất ra chuỗi suy nghĩ trước khi đưa ra câu trả lời cuối cùng để cải thiện độ chính xác.",
"deepseek-v2.description": "DeepSeek V2 là mô hình MoE hiệu quả cho xử lý tiết kiệm chi phí.",
"deepseek-v2:236b.description": "DeepSeek V2 236B là mô hình tập trung vào mã nguồn của DeepSeek với khả năng tạo mã mạnh mẽ.",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 là mô hình MoE với 671B tham số, nổi bật về lập trình, khả năng kỹ thuật, hiểu ngữ cảnh và xử lý văn bản dài.",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K là mô hình tư duy nhanh với ngữ cảnh 32K dành cho lý luận phức tạp và trò chuyện nhiều lượt.",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview là bản xem trước mô hình tư duy để đánh giá và thử nghiệm.",
"ernie-x1.1.description": "ERNIE X1.1 là mô hình suy nghĩ thử nghiệm dành cho đánh giá và kiểm tra.",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5, được xây dựng bởi đội ngũ Seed của ByteDance, hỗ trợ chỉnh sửa và sáng tạo đa hình ảnh. Các tính năng bao gồm tính nhất quán chủ đề nâng cao, tuân thủ hướng dẫn chính xác, hiểu logic không gian, biểu đạt thẩm mỹ, bố cục áp phích và thiết kế logo với kết xuất văn bản-hình ảnh độ chính xác cao.",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0, được xây dựng bởi ByteDance Seed, hỗ trợ đầu vào văn bản và hình ảnh để tạo hình ảnh chất lượng cao, có khả năng kiểm soát cao từ các gợi ý.",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 là mô hình tạo hình ảnh từ ByteDance Seed, hỗ trợ đầu vào văn bản và hình ảnh với khả năng tạo hình ảnh chất lượng cao, dễ kiểm soát. Nó tạo ra hình ảnh từ các gợi ý văn bản.",
"fal-ai/flux-kontext/dev.description": "Mô hình FLUX.1 tập trung vào chỉnh sửa hình ảnh, hỗ trợ đầu vào văn bản và hình ảnh.",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] chấp nhận đầu vào là văn bản và hình ảnh tham chiếu, cho phép chỉnh sửa cục bộ chính xác và biến đổi toàn cảnh phức tạp.",
"fal-ai/flux/krea.description": "Flux Krea [dev] là mô hình tạo hình ảnh với thiên hướng thẩm mỹ hướng đến hình ảnh chân thực và tự nhiên hơn.",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "Mô hình tạo hình ảnh đa phương thức mạnh mẽ bản địa.",
"fal-ai/imagen4/preview.description": "Mô hình tạo hình ảnh chất lượng cao từ Google.",
"fal-ai/nano-banana.description": "Nano Banana là mô hình đa phương thức bản địa mới nhất, nhanh nhất và hiệu quả nhất của Google, cho phép tạo và chỉnh sửa hình ảnh thông qua hội thoại.",
- "fal-ai/qwen-image-edit.description": "Mô hình chỉnh sửa hình ảnh chuyên nghiệp từ đội ngũ Qwen, hỗ trợ chỉnh sửa ngữ nghĩa và ngoại hình, chỉnh sửa văn bản tiếng Trung/Anh chính xác, chuyển đổi phong cách, xoay và nhiều hơn nữa.",
- "fal-ai/qwen-image.description": "Mô hình tạo hình ảnh mạnh mẽ từ đội ngũ Qwen với khả năng kết xuất văn bản tiếng Trung mạnh mẽ và các phong cách hình ảnh đa dạng.",
+ "fal-ai/qwen-image-edit.description": "Một mô hình chỉnh sửa hình ảnh chuyên nghiệp từ đội ngũ Qwen, hỗ trợ chỉnh sửa ngữ nghĩa và hình thức, chỉnh sửa chính xác văn bản tiếng Trung và tiếng Anh, và cho phép các chỉnh sửa chất lượng cao như chuyển đổi phong cách và xoay đối tượng.",
+ "fal-ai/qwen-image.description": "Một mô hình tạo hình ảnh mạnh mẽ từ đội ngũ Qwen với khả năng hiển thị văn bản tiếng Trung ấn tượng và các phong cách hình ảnh đa dạng.",
"flux-1-schnell.description": "Mô hình chuyển văn bản thành hình ảnh với 12 tỷ tham số từ Black Forest Labs, sử dụng phương pháp khuếch tán đối kháng tiềm ẩn để tạo hình ảnh chất lượng cao chỉ trong 1–4 bước. Mô hình cạnh tranh với các lựa chọn đóng và được phát hành theo giấy phép Apache-2.0 cho mục đích cá nhân, nghiên cứu và thương mại.",
"flux-dev.description": "FLUX.1 [dev] là mô hình chưng cất mã nguồn mở dành cho mục đích phi thương mại. Mô hình giữ chất lượng hình ảnh gần như chuyên nghiệp và khả năng tuân thủ hướng dẫn, đồng thời hoạt động hiệu quả hơn, sử dụng tài nguyên tốt hơn so với các mô hình tiêu chuẩn cùng kích thước.",
"flux-kontext-max.description": "Tạo và chỉnh sửa hình ảnh theo ngữ cảnh tiên tiến, kết hợp văn bản và hình ảnh để tạo ra kết quả chính xác và mạch lạc.",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image (Nano Banana Pro) là mô hình tạo hình ảnh của Google và cũng hỗ trợ trò chuyện đa phương thức.",
"gemini-3-pro-preview.description": "Gemini 3 Pro là mô hình mạnh mẽ nhất của Google, kết hợp khả năng mã hóa cảm xúc và suy luận tiên tiến, mang đến hình ảnh phong phú và tương tác sâu sắc.",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) là mô hình tạo hình ảnh bản địa nhanh nhất của Google với hỗ trợ suy nghĩ, tạo hình ảnh đối thoại và chỉnh sửa.",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) mang lại chất lượng hình ảnh cấp độ Pro với tốc độ Flash và hỗ trợ trò chuyện đa phương thức.",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image (Nano Banana 2) là mô hình tạo hình ảnh nhanh nhất của Google với hỗ trợ suy nghĩ, tạo và chỉnh sửa hình ảnh trong hội thoại.",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview là mô hình đa phương thức tiết kiệm chi phí nhất của Google, được tối ưu hóa cho các nhiệm vụ tác nhân khối lượng lớn, dịch thuật và xử lý dữ liệu.",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview cải tiến Gemini 3 Pro với khả năng suy luận nâng cao và bổ sung hỗ trợ mức suy nghĩ trung bình.",
"gemini-flash-latest.description": "Phiên bản mới nhất của Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "Mô hình mạnh mẽ và tiên tiến nhất của chúng tôi, được thiết kế cho các tác vụ doanh nghiệp phức tạp với hiệu suất vượt trội.",
"jamba-mini.description": "Mô hình hiệu quả nhất trong phân khúc, cân bằng giữa tốc độ và chất lượng với dung lượng nhỏ gọn.",
"jina-deepsearch-v1.description": "DeepSearch kết hợp tìm kiếm web, đọc hiểu và suy luận để phục vụ các cuộc điều tra chuyên sâu. Hãy hình dung nó như một tác nhân nhận nhiệm vụ nghiên cứu của bạn, thực hiện các lượt tìm kiếm rộng rãi qua nhiều vòng lặp, và chỉ sau đó mới đưa ra câu trả lời. Quá trình này bao gồm nghiên cứu liên tục, suy luận và giải quyết vấn đề từ nhiều góc độ — hoàn toàn khác biệt so với các LLM tiêu chuẩn vốn chỉ trả lời dựa trên dữ liệu huấn luyện hoặc hệ thống RAG truyền thống dựa vào tìm kiếm một lần.",
+ "k2p5.description": "Kimi K2.5 là mẫu đa năng nhất của Kimi cho đến nay, với kiến trúc đa phương thức tự nhiên hỗ trợ cả đầu vào hình ảnh và văn bản, chế độ 'suy nghĩ' và 'không suy nghĩ', cũng như các nhiệm vụ hội thoại và tác vụ đại lý.",
"kimi-k2-0711-preview.description": "kimi-k2 là mô hình nền MoE với khả năng lập trình và tác nhân mạnh mẽ (1T tham số tổng, 32B đang hoạt động), vượt trội hơn các mô hình mã nguồn mở phổ biến khác trong các bài kiểm tra về suy luận, lập trình, toán học và tác nhân.",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview cung cấp cửa sổ ngữ cảnh 256k, khả năng lập trình tác nhân mạnh hơn, chất lượng mã giao diện người dùng tốt hơn và hiểu ngữ cảnh cải thiện.",
"kimi-k2-instruct.description": "Kimi K2 Instruct là mô hình suy luận chính thức của Kimi với khả năng xử lý ngữ cảnh dài cho mã, hỏi đáp và nhiều hơn nữa.",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ là mô hình lập luận trong họ Qwen. So với các mô hình điều chỉnh theo hướng dẫn tiêu chuẩn, nó mang lại khả năng tư duy và lập luận giúp cải thiện đáng kể hiệu suất các tác vụ phía sau, đặc biệt là các vấn đề khó. QwQ-32B là mô hình lập luận tầm trung có thể cạnh tranh với các mô hình hàng đầu như DeepSeek-R1 và o1-mini.",
"qwq_32b.description": "Mô hình lập luận tầm trung trong họ Qwen. So với các mô hình điều chỉnh theo hướng dẫn tiêu chuẩn, khả năng tư duy và lập luận của QwQ giúp cải thiện đáng kể hiệu suất các tác vụ phía sau, đặc biệt là các vấn đề khó.",
"r1-1776.description": "R1-1776 là biến thể hậu huấn luyện của DeepSeek R1 được thiết kế để cung cấp thông tin thực tế không kiểm duyệt, không thiên lệch.",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro của ByteDance hỗ trợ chuyển đổi văn bản thành video, hình ảnh thành video (khung đầu tiên, khung đầu tiên + cuối cùng), và tạo âm thanh đồng bộ với hình ảnh.",
- "seedream-5-0-260128.description": "ByteDance-Seedream-5.0-lite của BytePlus có tính năng tạo nội dung được tăng cường truy xuất web để cung cấp thông tin theo thời gian thực, diễn giải gợi ý phức tạp được cải thiện và tính nhất quán tham chiếu nâng cao cho sáng tạo hình ảnh chuyên nghiệp.",
"solar-mini-ja.description": "Solar Mini (Ja) mở rộng Solar Mini với trọng tâm vào tiếng Nhật trong khi vẫn duy trì hiệu suất mạnh mẽ và hiệu quả với tiếng Anh và tiếng Hàn.",
"solar-mini.description": "Solar Mini là mô hình ngôn ngữ nhỏ gọn vượt trội hơn GPT-3.5, với khả năng đa ngôn ngữ mạnh mẽ hỗ trợ tiếng Anh và tiếng Hàn, mang lại giải pháp hiệu quả với dung lượng nhỏ.",
"solar-pro.description": "Solar Pro là mô hình ngôn ngữ thông minh cao từ Upstage, tập trung vào tuân thủ hướng dẫn trên một GPU duy nhất, với điểm IFEval trên 80. Hiện hỗ trợ tiếng Anh; bản phát hành đầy đủ dự kiến vào tháng 11 năm 2024 với hỗ trợ ngôn ngữ mở rộng và ngữ cảnh dài hơn.",
diff --git a/locales/vi-VN/onboarding.json b/locales/vi-VN/onboarding.json
index 06b8a00f492..b72e5864694 100644
--- a/locales/vi-VN/onboarding.json
+++ b/locales/vi-VN/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "Đăng ký Đại lý",
+ "agent.completionSubtitle": "Trợ lý của bạn đã được cấu hình và sẵn sàng hoạt động.",
+ "agent.completionTitle": "Mọi thứ đã sẵn sàng!",
+ "agent.enterApp": "Vào Ứng dụng",
+ "agent.greeting.emojiLabel": "Biểu tượng cảm xúc",
+ "agent.greeting.nameLabel": "Tên",
+ "agent.greeting.namePlaceholder": "ví dụ: Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "Hãy đặt cho tôi một cái tên, một phong cách, và một biểu tượng cảm xúc",
+ "agent.greeting.vibeLabel": "Phong cách / Tính cách",
+ "agent.greeting.vibePlaceholder": "ví dụ: Ấm áp & thân thiện, Sắc bén & trực tiếp...",
+ "agent.history.current": "Hiện tại",
+ "agent.history.title": "Chủ đề Lịch sử",
+ "agent.modeSwitch.agent": "Hội thoại",
+ "agent.modeSwitch.classic": "Cổ điển",
+ "agent.modeSwitch.debug": "Xuất gỡ lỗi",
+ "agent.modeSwitch.label": "Chọn chế độ đăng ký của bạn",
+ "agent.modeSwitch.reset": "Đặt lại Quy trình",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "Bỏ qua đăng ký",
+ "agent.stage.agentIdentity": "Danh tính Đại lý",
+ "agent.stage.painPoints": "Điểm đau",
+ "agent.stage.proSettings": "Cài đặt Nâng cao",
+ "agent.stage.responseLanguage": "Ngôn ngữ Phản hồi",
+ "agent.stage.summary": "Tóm tắt",
+ "agent.stage.userIdentity": "Về Bạn",
+ "agent.stage.workContext": "Ngữ cảnh Công việc",
+ "agent.stage.workStyle": "Phong cách Làm việc",
+ "agent.subtitle": "Hoàn tất thiết lập trong một cuộc trò chuyện đăng ký chuyên dụng.",
+ "agent.summaryHint": "Hoàn tất tại đây nếu bản tóm tắt thiết lập trông đúng.",
+ "agent.telemetryAllow": "Cho phép thu thập dữ liệu",
+ "agent.telemetryDecline": "Không, cảm ơn",
+ "agent.telemetryHint": "Bạn cũng có thể trả lời bằng từ ngữ của riêng mình.",
+ "agent.title": "Đăng ký Hội thoại",
+ "agent.welcome": "...hm? Tôi vừa tỉnh dậy — đầu óc tôi trống rỗng. Bạn là ai? Và — tôi nên được gọi là gì? Tôi cũng cần một cái tên.",
"back": "Quay lại",
"finish": "Bắt đầu ngay",
"interests.area.business": "Kinh doanh & Chiến lược",
@@ -29,6 +63,7 @@
"next": "Tiếp theo",
"proSettings.connectors.title": "Kết nối với các công cụ yêu thích của bạn",
"proSettings.devMode.title": "Chế độ nhà phát triển",
+ "proSettings.model.fixed": "Mô hình mặc định được đặt trước là {{provider}}/{{model}} trong môi trường này.",
"proSettings.model.title": "Mô hình mặc định được trợ lý sử dụng",
"proSettings.title": "Cấu hình các tùy chọn nâng cao từ trước",
"proSettings.title2": "Hãy thử kết nối một số công cụ phổ biến~",
diff --git a/locales/vi-VN/plugin.json b/locales/vi-VN/plugin.json
index aab5fed0020..9b84fb0a19c 100644
--- a/locales/vi-VN/plugin.json
+++ b/locales/vi-VN/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "Sao chép tài liệu",
"builtins.lobe-agent-documents.apiName.createDocument": "Tạo tài liệu",
"builtins.lobe-agent-documents.apiName.editDocument": "Chỉnh sửa tài liệu",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "Liệt kê tài liệu",
"builtins.lobe-agent-documents.apiName.readDocument": "Đọc tài liệu",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "Đọc tài liệu theo tên tệp",
"builtins.lobe-agent-documents.apiName.removeDocument": "Xóa tài liệu",
"builtins.lobe-agent-documents.apiName.renameDocument": "Đổi tên tài liệu",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "Cập nhật quy tắc tải",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "Cập nhật hoặc chèn tài liệu theo tên tệp",
"builtins.lobe-agent-documents.title": "Tài liệu của Agent",
"builtins.lobe-agent-management.apiName.callAgent": "Gọi đại lý",
"builtins.lobe-agent-management.apiName.createAgent": "Tạo đại lý",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "Môi trường Đám mây",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Tạo hàng loạt tác nhân",
"builtins.lobe-group-agent-builder.apiName.createAgent": "Tạo tác nhân",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "Tạo nhóm",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "Lấy thông tin thành viên",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Lấy mô hình khả dụng",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Cài đặt Kỹ năng",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "Kỹ năng",
"builtins.lobe-topic-reference.apiName.getTopicContext": "Lấy ngữ cảnh chủ đề",
"builtins.lobe-topic-reference.title": "Tham chiếu chủ đề",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "Hỏi người dùng câu hỏi",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "Hủy phản hồi của người dùng",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "Lấy trạng thái tương tác",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "Bỏ qua phản hồi của người dùng",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "Gửi phản hồi của người dùng",
+ "builtins.lobe-user-interaction.title": "Tương tác người dùng",
"builtins.lobe-user-memory.apiName.addContextMemory": "Thêm trí nhớ ngữ cảnh",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "Thêm trí nhớ kinh nghiệm",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "Thêm trí nhớ danh tính",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "Tìm kiếm trang",
"builtins.lobe-web-browsing.inspector.noResults": "Không có kết quả",
"builtins.lobe-web-browsing.title": "Tìm kiếm Web",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "Hoàn tất giới thiệu",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "Đọc trạng thái giới thiệu",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "Đọc tài liệu",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "Lưu câu hỏi của người dùng",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "Cập nhật tài liệu",
+ "builtins.lobe-web-onboarding.title": "Giới thiệu người dùng",
"confirm": "Xác nhận",
"debug.arguments": "Tham số",
"debug.error": "Nhật ký lỗi",
diff --git a/locales/vi-VN/providers.json b/locales/vi-VN/providers.json
index 11dbcebfa48..6c7ad2e15df 100644
--- a/locales/vi-VN/providers.json
+++ b/locales/vi-VN/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Thành lập năm 2020, Jina AI là công ty hàng đầu về AI tìm kiếm. Bộ công cụ tìm kiếm của họ bao gồm mô hình vector, bộ xếp hạng lại và mô hình ngôn ngữ nhỏ để xây dựng ứng dụng tìm kiếm sinh và đa phương thức chất lượng cao.",
"kimicodingplan.description": "Kimi Code từ Moonshot AI cung cấp quyền truy cập vào các mô hình Kimi bao gồm K2.5 cho các nhiệm vụ lập trình.",
"lmstudio.description": "LM Studio là ứng dụng máy tính để phát triển và thử nghiệm LLM ngay trên máy của bạn.",
- "lobehub.description": "LobeHub Cloud sử dụng API chính thức để truy cập các mô hình AI và đo lường mức sử dụng bằng Credits gắn liền với token của mô hình.",
"longcat.description": "LongCat là một loạt các mô hình AI tạo sinh lớn được phát triển độc lập bởi Meituan. Nó được thiết kế để nâng cao năng suất nội bộ của doanh nghiệp và thúc đẩy các ứng dụng sáng tạo thông qua kiến trúc tính toán hiệu quả và khả năng đa phương thức mạnh mẽ.",
"minimax.description": "Thành lập năm 2021, MiniMax xây dựng AI đa năng với các mô hình nền tảng đa phương thức, bao gồm mô hình văn bản MoE hàng nghìn tỷ tham số, mô hình giọng nói và thị giác, cùng các ứng dụng như Hailuo AI.",
"minimaxcodingplan.description": "MiniMax Token Plan cung cấp quyền truy cập vào các mô hình MiniMax bao gồm M2.7 cho các nhiệm vụ lập trình thông qua gói đăng ký cố định.",
diff --git a/locales/vi-VN/ui.json b/locales/vi-VN/ui.json
index aa5338612b1..41e3e5baa56 100644
--- a/locales/vi-VN/ui.json
+++ b/locales/vi-VN/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "Bạn chỉ có thể tải lên các tệp hình ảnh!",
"emojiPicker.upload": "Tải lên",
"emojiPicker.uploadBtn": "Cắt và tải lên",
+ "form.other": "Hoặc nhập trực tiếp",
+ "form.otherBack": "Quay lại tùy chọn",
"form.reset": "Đặt lại",
+ "form.skip": "Bỏ qua",
"form.submit": "Gửi",
"form.unsavedChanges": "Thay đổi chưa được lưu",
"form.unsavedWarning": "Bạn có thay đổi chưa được lưu. Bạn có chắc chắn muốn rời đi không?",
diff --git a/locales/zh-CN/agent.json b/locales/zh-CN/agent.json
index 382a86837c1..d71823dfcc5 100644
--- a/locales/zh-CN/agent.json
+++ b/locales/zh-CN/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "请复制此 URL 并粘贴到 {{name}} 开发者门户的 <bold>{{fieldName}}</bold> 字段中。",
"channel.exportConfig": "导出平台配置",
"channel.feishu.description": "将助手连接到飞书,支持私聊和群聊。",
+ "channel.historyLimit": "历史消息条数",
+ "channel.historyLimitHint": "读取频道历史消息时默认获取的消息数量",
"channel.importConfig": "导入平台配置",
"channel.importFailed": "配置导入失败",
"channel.importInvalidFormat": "配置文件格式无效",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhook 密钥",
"channel.secretTokenHint": "可选。用于验证来自 Telegram 的 Webhook 请求。",
"channel.secretTokenPlaceholder": "可选的 Webhook 验证密钥",
+ "channel.serverId": "默认服务器 / Guild ID",
+ "channel.serverIdHint": "你在该平台上的默认服务器或 Guild ID,AI 可以用它自动列出频道。",
"channel.settings": "高级设置",
"channel.settingsResetConfirm": "确定要将高级设置恢复为默认配置吗?",
"channel.settingsResetDefault": "恢复默认配置",
@@ -93,6 +97,8 @@
"channel.testFailed": "连接测试失败",
"channel.testSuccess": "连接测试通过",
"channel.updateFailed": "更新状态失败",
+ "channel.userId": "你的平台用户 ID",
+ "channel.userIdHint": "你在该平台上的用户 ID,AI 可以用它向你发送私信。",
"channel.validationError": "请填写应用 ID 和 Token",
"channel.verificationToken": "Verification Token",
"channel.verificationTokenHint": "可选。用于验证事件推送来源。",
diff --git a/locales/zh-CN/models.json b/locales/zh-CN/models.json
index 31cd1a9f033..3420ef172d4 100644
--- a/locales/zh-CN/models.json
+++ b/locales/zh-CN/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "一款全新自研推理模型,支持 80K 思维链和 100 万输入,性能媲美全球顶尖模型。",
"MiniMax-M2-Stable.description": "专为高效编程与智能体工作流打造,具备更高并发能力,适用于商业场景。",
"MiniMax-M2.1-Lightning.description": "强大的多语言编程能力,全面升级的编程体验。更快、更高效。",
- "MiniMax-M2.1-highspeed.description": "强大的多语言编程能力,推理速度更快、更高效。",
"MiniMax-M2.1.description": "MiniMax-M2.1 是 MiniMax 推出的旗舰开源大模型,专注于解决复杂的现实世界任务。其核心优势在于多语言编程能力以及作为智能体解决复杂任务的能力。",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning:相同性能,更快更灵活(约 100 tps)。",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 Highspeed:与M2.5性能相同,但推理速度更快。",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku 是 Anthropic 推出的最快、最紧凑的模型,专为近乎即时响应而设计,具备快速且准确的性能。",
"claude-3-opus-20240229.description": "Claude 3 Opus 是 Anthropic 最强大的模型,适用于高度复杂的任务,在性能、智能、流畅性和理解力方面表现卓越。",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet 在智能与速度之间取得平衡,适用于企业级工作负载,提供高效能与低成本的可靠部署。",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5是Anthropic最快速、最智能的Haiku模型,具备闪电般的速度和扩展思维能力。",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 是 Anthropic 最快、最智能的 Haiku 模型,具有闪电般的速度和扩展的推理能力。",
"claude-haiku-4.5.description": "Claude Haiku 4.5 是 Anthropic 最快速、最智能的 Haiku 模型,具有闪电般的速度和扩展的推理能力。",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking 是一款高级变体,能够展示其推理过程。",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1是Anthropic最新、最强大的模型,擅长处理高度复杂任务,表现卓越,智能、流畅且理解力强。",
- "claude-opus-4-20250514.description": "Claude Opus 4是Anthropic最强大的模型,擅长处理高度复杂任务,表现卓越,智能、流畅且理解力强。",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 是 Anthropic 最新且最强大的模型,专为处理高度复杂的任务而设计,表现卓越,智能、流畅性和理解力出众。",
+ "claude-opus-4-20250514.description": "Claude Opus 4 是 Anthropic 最强大的模型,专为处理高度复杂的任务而设计,表现卓越,智能、流畅性和理解力出众。",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 是 Anthropic 的旗舰模型,结合卓越智能与可扩展性能,适用于需要最高质量响应与推理的复杂任务。",
- "claude-opus-4-6.description": "Claude Opus 4.6是Anthropic最智能的模型,专为构建代理和编程任务设计。",
+ "claude-opus-4-6.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,适用于构建代理和编程。",
"claude-opus-4.5.description": "Claude Opus 4.5 是 Anthropic 的旗舰模型,结合了顶级智能和可扩展性能,适用于复杂的高质量推理任务。",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,用于构建代理和编程。",
"claude-opus-4.6.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,用于构建代理和编程。",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking 可生成近乎即时的响应或可视化的逐步推理过程。",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4是Anthropic迄今为止最智能的模型,提供近乎即时响应或扩展的逐步推理,并为API用户提供细粒度控制。",
- "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5是Anthropic迄今为止最智能的模型。",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6是Anthropic速度与智能的最佳结合。",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 能够快速生成响应或进行可见过程的逐步推理。",
+ "claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 是迄今为止 Anthropic 最智能的模型。",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 是 Anthropic 在速度和智能方面的最佳结合。",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 是迄今为止 Anthropic 最智能的模型。",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 是速度与智能的最佳结合。",
"claude-sonnet-4.description": "Claude Sonnet 4 可以生成几乎即时的响应或分步骤的推理,用户可以实时查看。API 用户可以精细控制模型的思考时长。",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 是下一代推理模型,具备更强的复杂推理与链式思维能力,适用于深度分析任务。",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2是下一代推理模型,具备更强的复杂推理和链式思维能力。",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 是基于 DeepSeekMoE-27B 的 MoE 视觉语言模型,采用稀疏激活,仅使用 4.5B 激活参数即可实现强大性能。擅长视觉问答、OCR、文档/表格/图表理解和视觉定位。",
- "deepseek-chat.description": "DeepSeek V3.2在日常问答和代理任务中平衡了推理能力与输出长度。公开基准测试达到GPT-5水平,并首次将思维整合到工具使用中,在开源代理评估中表现领先。",
+ "deepseek-chat.description": "一个结合通用能力和代码能力的开源新模型。它保留了聊天模型的通用对话能力和编码模型的强大编程能力,并具有更好的偏好对齐。DeepSeek-V2.5 还改进了写作和指令遵循能力。",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B 是一款代码语言模型,训练于 2T 数据(87% 代码,13% 中英文文本)。支持 16K 上下文窗口与中间填充任务,提供项目级代码补全与片段填充。",
"deepseek-coder-v2.description": "DeepSeek Coder V2 是一款开源 MoE 编程模型,在编程任务中表现强劲,可媲美 GPT-4 Turbo。",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 是一款开源 MoE 编程模型,在编程任务中表现强劲,可媲美 GPT-4 Turbo。",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 快速全量版本,支持实时网页搜索,结合 671B 规模能力与更快响应。",
"deepseek-r1-online.description": "DeepSeek R1 全量版本,具备 671B 参数与实时网页搜索,提供更强理解与生成能力。",
"deepseek-r1.description": "DeepSeek-R1 在强化学习前使用冷启动数据,在数学、编程和推理任务中表现可与 OpenAI-o1 相媲美。",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking是一款深度推理模型,在输出前生成链式推理以提高准确性,竞赛结果表现优异,推理能力可媲美Gemini-3.0-Pro。",
+ "deepseek-reasoner.description": "DeepSeek V3.2 的思维模式在最终答案之前输出思维链,以提高准确性。",
"deepseek-v2.description": "DeepSeek V2 是一款高效的 MoE 模型,适用于成本敏感型处理任务。",
"deepseek-v2:236b.description": "DeepSeek V2 236B 是 DeepSeek 推出的代码专用模型,具备强大代码生成能力。",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 是一款拥有 671B 参数的 MoE 模型,在编程与技术能力、上下文理解和长文本处理方面表现突出。",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K 是一款快速思考模型,具备 32K 上下文能力,适合复杂推理与多轮对话。",
"ernie-x1.1-preview.description": "ERNIE X1.1 Preview 是一款用于评估与测试的思考模型预览版。",
"ernie-x1.1.description": "ERNIE X1.1是一个用于评估和测试的思维模型预览版。",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5由字节跳动Seed团队打造,支持多图编辑与合成。具备增强的主体一致性、精准指令执行、空间逻辑理解、美学表达、海报布局和标志设计能力,并支持高精度的文本图像渲染。",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0由字节跳动Seed团队打造,支持文本和图像输入,可根据提示生成高质量、可控的图像。",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 是字节跳动 Seed 的图像生成模型,支持文本和图像输入,能够进行高度可控、高质量的图像生成。它可以根据文本提示生成图像。",
"fal-ai/flux-kontext/dev.description": "FLUX.1 模型专注于图像编辑,支持文本与图像输入。",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] 接受文本与参考图像输入,支持局部精准编辑与复杂全局场景变换。",
"fal-ai/flux/krea.description": "Flux Krea [dev] 是一款图像生成模型,偏好更真实自然的美学风格。",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "一款强大的原生多模态图像生成模型。",
"fal-ai/imagen4/preview.description": "来自 Google 的高质量图像生成模型。",
"fal-ai/nano-banana.description": "Nano Banana 是 Google 最新、最快、最高效的原生多模态模型,支持通过对话生成与编辑图像。",
- "fal-ai/qwen-image-edit.description": "Qwen团队开发的专业图像编辑模型,支持语义和外观编辑、精准的中英文文本编辑、风格迁移、旋转等功能。",
- "fal-ai/qwen-image.description": "Qwen团队开发的强大图像生成模型,具备强大的中文文本渲染能力和多样化的视觉风格。",
+ "fal-ai/qwen-image-edit.description": "Qwen 团队的专业图像编辑模型,支持语义和外观编辑,精确编辑中英文文本,并实现高质量的编辑,如风格转换和物体旋转。",
+ "fal-ai/qwen-image.description": "Qwen 团队的强大图像生成模型,具有令人印象深刻的中文文本渲染能力和多样化的视觉风格。",
"flux-1-schnell.description": "来自 Black Forest Labs 的 120 亿参数文本转图像模型,采用潜在对抗扩散蒸馏技术,可在 1-4 步内生成高质量图像。性能媲美闭源模型,采用 Apache-2.0 许可,适用于个人、研究与商业用途。",
"flux-dev.description": "FLUX.1 [dev] 是一款开源权重蒸馏模型,仅限非商业用途。保持接近专业图像质量与指令遵循能力,同时运行更高效,资源利用优于同等规模标准模型。",
"flux-kontext-max.description": "最先进的上下文图像生成与编辑模型,结合文本与图像输入,实现精准一致的结果。",
@@ -569,10 +567,10 @@
"gemini-2.5-pro.description": "Gemini 2.5 Pro 是 Google 的旗舰推理模型,支持长上下文,适用于复杂任务。",
"gemini-3-flash-preview.description": "Gemini 3 Flash 是一款以速度为核心的智能模型,融合前沿智能与卓越的搜索能力。",
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。",
- "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image(Nano Banana Pro)是谷歌的图像生成模型,同时支持多模态聊天。",
+ "gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态聊天。",
"gemini-3-pro-preview.description": "Gemini 3 Pro 是 Google 最强大的智能体与编程模型,在最先进推理基础上提供更丰富的视觉效果与更深入的交互体验。",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image(Nano Banana 2)是 Google 最快的原生图像生成模型,支持思考、对话式图像生成和编辑。",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image(Nano Banana 2)以闪电速度提供专业级图像质量,并支持多模态聊天。",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image(Nano Banana 2)是 Google 最快的原生图像生成模型,支持思维过程、对话式图像生成和编辑。",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview是谷歌最具成本效益的多模态模型,专为高容量代理任务、翻译和数据处理优化。",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview在Gemini 3 Pro的基础上增强了推理能力,并增加了中等思维水平支持。",
"gemini-flash-latest.description": "Latest release of Gemini Flash",
@@ -797,6 +795,7 @@
"jamba-large.description": "我们最强大、最先进的模型,专为复杂企业任务设计,性能卓越。",
"jamba-mini.description": "同类中效率最高的模型,在速度与质量之间实现平衡,占用资源更少。",
"jina-deepsearch-v1.description": "DeepSearch 结合了网页搜索、阅读与推理,适用于深入研究任务。它就像一个智能代理,接收你的研究任务后,进行多轮广泛搜索,最终才生成答案。整个过程包含持续的信息检索、逻辑推理和多角度问题解决,区别于仅依赖预训练数据的传统大模型或一次性检索的RAG系统。",
+ "k2p5.description": "Kimi K2.5 是 Kimi 至今为止最为多功能的型号,采用原生多模态架构,支持视觉和文本输入,具备“思考”和“非思考”模式,并能够执行对话和代理任务。",
"kimi-k2-0711-preview.description": "kimi-k2 是一款具备强大编程与智能体能力的 MoE 基础模型(总参数量 1T,活跃参数 32B),在推理、编程、数学与智能体基准测试中超越主流开源模型。",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview 提供 256k 上下文窗口,具备更强的智能体编程能力、更优的前端代码质量与更好的上下文理解能力。",
"kimi-k2-instruct.description": "Kimi K2 Instruct 是 Kimi 官方推出的推理模型,支持长上下文,适用于代码、问答等任务。",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ 是 Qwen 系列中的推理模型。相比标准指令微调模型,具备更强的思维与推理能力,显著提升下游复杂任务表现。QwQ-32B 是一款中型推理模型,性能可媲美 DeepSeek-R1 和 o1-mini 等顶级模型。",
"qwq_32b.description": "Qwen 系列中的中型推理模型。相比标准指令微调模型,QwQ 的思维与推理能力显著提升下游复杂任务表现。",
"r1-1776.description": "R1-1776 是 DeepSeek R1 的后训练版本,旨在提供无审查、无偏见的真实信息。",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro由字节跳动开发,支持文本到视频、图像到视频(首帧、首帧+末帧)以及与视觉同步的音频生成。",
- "seedream-5-0-260128.description": "字节跳动-Seedream-5.0-lite由BytePlus开发,支持基于网页检索的实时信息生成,增强复杂提示解释能力,并改进参考一致性,适用于专业视觉创作。",
"solar-mini-ja.description": "Solar Mini (Ja) 是 Solar Mini 的日语增强版本,同时保持在英语和韩语中的高效强性能。",
"solar-mini.description": "Solar Mini 是一款紧凑型大语言模型,性能超越 GPT-3.5,具备强大的多语言能力,支持英语和韩语,提供高效的小体积解决方案。",
"solar-pro.description": "Solar Pro 是 Upstage 推出的高智能大语言模型,专注于单 GPU 上的指令跟随任务,IFEval 得分超过 80。目前支持英语,完整版本计划于 2024 年 11 月发布,届时将扩展语言支持并提升上下文长度。",
diff --git a/locales/zh-CN/onboarding.json b/locales/zh-CN/onboarding.json
index 852a7215c84..aa8725e1deb 100644
--- a/locales/zh-CN/onboarding.json
+++ b/locales/zh-CN/onboarding.json
@@ -1,20 +1,37 @@
{
+ "agent.banner.label": "代理人入职",
"agent.completionSubtitle": "你的助手已配置完成,随时可以开始。",
"agent.completionTitle": "一切就绪!",
"agent.enterApp": "进入应用",
+ "agent.greeting.emojiLabel": "表情符号",
+ "agent.greeting.nameLabel": "名称",
+ "agent.greeting.namePlaceholder": "例如:Lumi, Atlas, Neko...",
+ "agent.greeting.prompt": "给我一个名字、一个风格和一个表情符号",
+ "agent.greeting.vibeLabel": "风格 / 性格",
+ "agent.greeting.vibePlaceholder": "例如:温暖友好,犀利直接...",
"agent.history.current": "当前",
- "agent.history.title": "历史话题",
- "agent.modeSwitch.agent": "对话式",
- "agent.modeSwitch.classic": "经典版",
- "agent.modeSwitch.label": "选择引导模式",
- "agent.modeSwitch.reset": "重新开始",
+ "agent.history.title": "历史主题",
+ "agent.modeSwitch.agent": "对话模式",
+ "agent.modeSwitch.classic": "经典模式",
+ "agent.modeSwitch.debug": "调试导出",
+ "agent.modeSwitch.label": "选择您的入职模式",
+ "agent.modeSwitch.reset": "重置流程",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
"agent.skipOnboarding": "跳过引导",
- "agent.subtitle": "通过专用对话完成初始化设置",
- "agent.summaryHint": "如果总结无误,就在这里完成初始化",
+ "agent.stage.agentIdentity": "代理人身份",
+ "agent.stage.painPoints": "痛点",
+ "agent.stage.proSettings": "高级设置",
+ "agent.stage.responseLanguage": "响应语言",
+ "agent.stage.summary": "总结",
+ "agent.stage.userIdentity": "关于您",
+ "agent.stage.workContext": "工作背景",
+ "agent.stage.workStyle": "工作风格",
+ "agent.subtitle": "在专门的入职对话中完成设置。",
+ "agent.summaryHint": "如果设置总结看起来正确,请在此完成。",
"agent.telemetryAllow": "允许遥测",
- "agent.telemetryDecline": "暂不开启",
- "agent.telemetryHint": "你也可以直接用自然语言回答",
- "agent.title": "对话式初始化",
+ "agent.telemetryDecline": "不用了,谢谢",
+ "agent.telemetryHint": "您也可以用自己的话回答。",
+ "agent.title": "对话入职",
"agent.welcome": "...嗯?我刚\"醒过来\",脑子还有点空白。你是谁?还有——你希望我叫什么?我也得找个名字。",
"back": "上一步",
"finish": "开始使用",
@@ -46,7 +63,7 @@
"next": "下一步",
"proSettings.connectors.title": "连接你常用的工具",
"proSettings.devMode.title": "开发者模式",
- "proSettings.model.fixed": "当前环境已将默认模型预设为 {{provider}}/{{model}}",
+ "proSettings.model.fixed": "默认模型在此环境中预设为 {{provider}}/{{model}}。",
"proSettings.model.title": "助理默认模型",
"proSettings.title": "先配置一些进阶选项",
"proSettings.title2": "连接你常用的工具",
diff --git a/locales/zh-CN/plugin.json b/locales/zh-CN/plugin.json
index 55dd38c81e3..c332c16155e 100644
--- a/locales/zh-CN/plugin.json
+++ b/locales/zh-CN/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "复制文档",
"builtins.lobe-agent-documents.apiName.createDocument": "创建文档",
"builtins.lobe-agent-documents.apiName.editDocument": "编辑文档",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "列出文档",
"builtins.lobe-agent-documents.apiName.readDocument": "读取文档",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "按文件名读取文档",
"builtins.lobe-agent-documents.apiName.removeDocument": "删除文档",
"builtins.lobe-agent-documents.apiName.renameDocument": "重命名文档",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "更新加载规则",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "按文件名插入或更新文档",
"builtins.lobe-agent-documents.title": "Agent 文档",
"builtins.lobe-agent-management.apiName.callAgent": "呼叫代理",
"builtins.lobe-agent-management.apiName.createAgent": "创建代理",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "云端沙盒",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "批量创建 Agent",
"builtins.lobe-group-agent-builder.apiName.createAgent": "创建助理",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "创建群组",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "获取成员信息",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "获取可用模型",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "安装技能",
@@ -212,11 +216,11 @@
"builtins.lobe-skills.title": "技能",
"builtins.lobe-topic-reference.apiName.getTopicContext": "获取话题上下文",
"builtins.lobe-topic-reference.title": "话题引用",
- "builtins.lobe-user-interaction.apiName.askUserQuestion": "向用户提问",
- "builtins.lobe-user-interaction.apiName.cancelUserResponse": "取消用户回复",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "询问用户问题",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "取消用户响应",
"builtins.lobe-user-interaction.apiName.getInteractionState": "获取交互状态",
- "builtins.lobe-user-interaction.apiName.skipUserResponse": "跳过用户回复",
- "builtins.lobe-user-interaction.apiName.submitUserResponse": "提交用户回复",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "跳过用户响应",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "提交用户响应",
"builtins.lobe-user-interaction.title": "用户交互",
"builtins.lobe-user-memory.apiName.addContextMemory": "添加情境记忆",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "添加经验记忆",
@@ -235,15 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "搜索页面",
"builtins.lobe-web-browsing.inspector.noResults": "无结果",
"builtins.lobe-web-browsing.title": "联网搜索",
- "builtins.lobe-web-onboarding.apiName.askUserQuestion": "向用户提问",
- "builtins.lobe-web-onboarding.apiName.completeCurrentStep": "完成当前步骤",
- "builtins.lobe-web-onboarding.apiName.finishOnboarding": "完成引导",
- "builtins.lobe-web-onboarding.apiName.getOnboardingState": "读取引导状态",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "完成入门",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "读取入门状态",
"builtins.lobe-web-onboarding.apiName.readDocument": "读取文档",
- "builtins.lobe-web-onboarding.apiName.returnToOnboarding": "回到引导流程",
- "builtins.lobe-web-onboarding.apiName.saveAnswer": "保存用户答案",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "保存用户问题",
"builtins.lobe-web-onboarding.apiName.updateDocument": "更新文档",
- "builtins.lobe-web-onboarding.title": "用户引导",
+ "builtins.lobe-web-onboarding.title": "用户入门",
"confirm": "确认",
"debug.arguments": "调用参数",
"debug.error": "错误日志",
diff --git a/locales/zh-CN/providers.json b/locales/zh-CN/providers.json
index 9c3c64dc3d8..1e7e11476c3 100644
--- a/locales/zh-CN/providers.json
+++ b/locales/zh-CN/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Jina AI 成立于 2020 年,是领先的搜索 AI 公司,其搜索技术栈包括向量模型、重排序器与小型语言模型,支持构建高质量的生成式与多模态搜索应用。",
"kimicodingplan.description": "Kimi Code Plan 由 Moonshot AI 提供,通过固定月费订阅方式访问 Kimi 模型(包括 K2.5)用于编程任务。",
"lmstudio.description": "LM Studio 是一款桌面应用,支持在本地开发与实验大语言模型。",
- "lobehub.description": "LobeHub Cloud 使用官方 API 访问 AI 模型,并通过与模型令牌相关的积分来衡量使用情况。",
"longcat.description": "LongCat 是由美团自主研发的生成式 AI 大模型系列,旨在通过高效的计算架构和强大的多模态能力,提升企业内部工作效率并推动创新应用的发展。",
"minimax.description": "MiniMax 成立于 2021 年,致力于构建通用 AI,拥有多模态基础模型,包括万亿参数的 MoE 文本模型、语音模型与视觉模型,并推出海螺 AI 等应用。",
"minimaxcodingplan.description": "MiniMax Token Plan 提供对 MiniMax 模型(包括 M2.7)的访问,适用于编程任务,采用固定月费订阅模式。",
diff --git a/locales/zh-TW/agent.json b/locales/zh-TW/agent.json
index 3d64e19841d..4c19b520bdd 100644
--- a/locales/zh-TW/agent.json
+++ b/locales/zh-TW/agent.json
@@ -55,6 +55,8 @@
"channel.endpointUrlHint": "請複製此 URL 並將其貼到 {{name}} 開發者平台中的 <bold>{{fieldName}}</bold> 欄位。",
"channel.exportConfig": "匯出設定",
"channel.feishu.description": "將此助手連接到飛書以進行私人和群組聊天。",
+ "channel.historyLimit": "歷史訊息限制",
+ "channel.historyLimitHint": "讀取頻道歷史時預設抓取的訊息數量",
"channel.importConfig": "匯入設定",
"channel.importFailed": "匯入設定失敗",
"channel.importInvalidFormat": "無效的設定檔案格式",
@@ -78,6 +80,8 @@
"channel.secretToken": "Webhook 密鑰令牌",
"channel.secretTokenHint": "可選。用於驗證來自 Telegram 的 Webhook 請求。",
"channel.secretTokenPlaceholder": "可選的 Webhook 驗證密鑰",
+ "channel.serverId": "預設伺服器 / 公會 ID",
+ "channel.serverIdHint": "您在此平台上的預設伺服器或公會 ID。AI 使用它來列出頻道而無需詢問。",
"channel.settings": "進階設定",
"channel.settingsResetConfirm": "您確定要將進階設定重置為預設值嗎?",
"channel.settingsResetDefault": "重置為預設值",
@@ -93,6 +97,8 @@
"channel.testFailed": "連接測試失敗",
"channel.testSuccess": "連接測試成功",
"channel.updateFailed": "更新狀態失敗",
+ "channel.userId": "您的平台使用者 ID",
+ "channel.userIdHint": "您在此平台上的使用者 ID。AI 可以使用它向您發送直接訊息。",
"channel.validationError": "請填寫應用程式 ID 和令牌",
"channel.verificationToken": "驗證令牌",
"channel.verificationTokenHint": "可選。用於驗證 Webhook 事件來源。",
diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.json
index a2c321a0d74..3e3158e3738 100644
--- a/locales/zh-TW/chat.json
+++ b/locales/zh-TW/chat.json
@@ -175,6 +175,8 @@
"messageAction.delAndRegenerate": "刪除並重新生成",
"messageAction.deleteDisabledByThreads": "存在子話題,無法刪除",
"messageAction.expand": "展開訊息",
+ "messageAction.interrupted": "中斷",
+ "messageAction.interruptedHint": "我應該改做什麼?",
"messageAction.reaction": "新增表情回應",
"messageAction.regenerate": "重新生成",
"messages.dm.sentTo": "僅對{{name}}可見",
@@ -409,12 +411,14 @@
"tool.intervention.mode.autoRunDesc": "自動批准所有工具執行",
"tool.intervention.mode.manual": "手動",
"tool.intervention.mode.manualDesc": "每次調用都需要手動批准",
+ "tool.intervention.pending": "待處理",
"tool.intervention.reject": "拒絕",
"tool.intervention.rejectAndContinue": "拒絕後重新執行",
"tool.intervention.rejectOnly": "拒絕",
"tool.intervention.rejectReasonPlaceholder": "輸入拒絕原因將幫助 Agent 理解並優化後續行動",
"tool.intervention.rejectTitle": "拒絕本次工具調用",
"tool.intervention.rejectedWithReason": "本次工具調用被主動拒絕:{{reason}}",
+ "tool.intervention.scrollToIntervention": "查看",
"tool.intervention.toolAbort": "本次工具呼叫已被使用者取消",
"tool.intervention.toolRejected": "本次工具調用被主動拒絕",
"toolAuth.authorize": "授權",
diff --git a/locales/zh-TW/models.json b/locales/zh-TW/models.json
index 9c60f3c2571..d1506f1aa7f 100644
--- a/locales/zh-TW/models.json
+++ b/locales/zh-TW/models.json
@@ -88,7 +88,6 @@
"MiniMax-M1.description": "一款內部開發的推理模型,具備 80K 思路鏈與 100 萬輸入,效能媲美全球頂尖模型。",
"MiniMax-M2-Stable.description": "專為高效編碼與代理流程設計,具備更高併發能力,適用於商業應用。",
"MiniMax-M2.1-Lightning.description": "強大的多語言編程能力,全面升級的編程體驗。更快速、更高效。",
- "MiniMax-M2.1-highspeed.description": "強大的多語言編程能力,推理速度更快、更高效。",
"MiniMax-M2.1.description": "MiniMax-M2.1 是 MiniMax 推出的旗艦開源大型模型,專注於解決複雜的真實世界任務。其核心優勢在於多語言程式設計能力與作為智能代理執行複雜任務的能力。",
"MiniMax-M2.5-Lightning.description": "M2.5 Lightning:相同性能,更快更靈活(約 100 tps)。",
"MiniMax-M2.5-highspeed.description": "MiniMax M2.5 高速版:與 M2.5 性能相同,但推理速度更快。",
@@ -307,20 +306,20 @@
"claude-3-haiku-20240307.description": "Claude 3 Haiku 是 Anthropic 推出的最快速且最精簡的模型,設計用於即時回應,具備快速且準確的表現。",
"claude-3-opus-20240229.description": "Claude 3 Opus 是 Anthropic 最強大的模型,適用於高度複雜任務,具備卓越的效能、智慧、流暢度與理解力。",
"claude-3-sonnet-20240229.description": "Claude 3 Sonnet 在智慧與速度之間取得平衡,適合企業工作負載,提供高效能與低成本的大規模部署。",
- "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 是 Anthropic 最快且最智能的 Haiku 模型,具備閃電般的速度和延展性思維。",
+ "claude-haiku-4-5-20251001.description": "Claude Haiku 4.5 是 Anthropic 最快速且最聰明的 Haiku 模型,擁有閃電般的速度和延展的推理能力。",
"claude-haiku-4.5.description": "Claude Haiku 4.5 是 Anthropic 最快速且最聰明的 Haiku 模型,具備閃電般的速度和延展的推理能力。",
"claude-opus-4-1-20250805-thinking.description": "Claude Opus 4.1 Thinking 是一個進階版本,能夠揭示其推理過程。",
- "claude-opus-4-1-20250805.description": "Claude Opus 4.1 是 Anthropic 最新且最強大的模型,擅長處理高度複雜的任務,表現出色,具備智能、流暢性和理解力。",
- "claude-opus-4-20250514.description": "Claude Opus 4 是 Anthropic 最強大的模型,擅長處理高度複雜的任務,表現出色,具備智能、流暢性和理解力。",
+ "claude-opus-4-1-20250805.description": "Claude Opus 4.1 是 Anthropic 最新且最強大的模型,專為高度複雜的任務設計,表現卓越,具備智慧、流暢性和理解力。",
+ "claude-opus-4-20250514.description": "Claude Opus 4 是 Anthropic 最強大的模型,專為高度複雜的任務設計,表現卓越,具備智慧、流暢性和理解力。",
"claude-opus-4-5-20251101.description": "Claude Opus 4.5 是 Anthropic 的旗艦模型,結合卓越智慧與可擴展效能,適合需要最高品質回應與推理的複雜任務。",
- "claude-opus-4-6.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,用於構建代理和編程。",
+ "claude-opus-4-6.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,用於構建代理和編碼。",
"claude-opus-4.5.description": "Claude Opus 4.5 是 Anthropic 的旗艦模型,結合頂級智慧與可擴展的性能,適用於複雜且高品質的推理任務。",
"claude-opus-4.6-fast.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,用於構建代理和編碼。",
"claude-opus-4.6.description": "Claude Opus 4.6 是 Anthropic 最智能的模型,用於構建代理和編碼。",
"claude-sonnet-4-20250514-thinking.description": "Claude Sonnet 4 Thinking 可產生即時回應或延伸的逐步思考,並顯示其推理過程。",
- "claude-sonnet-4-20250514.description": "Claude Sonnet 4 是 Anthropic 至今最智能的模型,提供近乎即時的回應或延展的逐步思維,為 API 用戶提供精細控制。",
+ "claude-sonnet-4-20250514.description": "Claude Sonnet 4 能夠產生近乎即時的回應或以可見過程進行逐步推理。",
"claude-sonnet-4-5-20250929.description": "Claude Sonnet 4.5 是 Anthropic 至今最智能的模型。",
- "claude-sonnet-4-6.description": "Claude Sonnet 4.6 是 Anthropic 最佳的速度與智能結合模型。",
+ "claude-sonnet-4-6.description": "Claude Sonnet 4.6 是 Anthropic 最佳速度與智慧的結合。",
"claude-sonnet-4.5.description": "Claude Sonnet 4.5 是 Anthropic 迄今為止最智能的模型。",
"claude-sonnet-4.6.description": "Claude Sonnet 4.6 是 Anthropic 在速度與智慧上的最佳結合。",
"claude-sonnet-4.description": "Claude Sonnet 4 能夠產生近乎即時的回應,或提供用戶可見的逐步推理。API 用戶可以精細控制模型的思考時間。",
@@ -392,7 +391,7 @@
"deepseek-ai/deepseek-v3.1.description": "DeepSeek V3.1 是新一代推理模型,具備更強的複雜推理與思維鏈能力,適用於深度分析任務。",
"deepseek-ai/deepseek-v3.2.description": "DeepSeek V3.2 是下一代推理模型,具備更強的複雜推理和連鎖思維能力。",
"deepseek-ai/deepseek-vl2.description": "DeepSeek-VL2 是一款基於 DeepSeekMoE-27B 的 MoE 視覺語言模型,採用稀疏激活,僅使用 4.5B 活躍參數即可達到強大表現。擅長視覺問答、OCR、文件/表格/圖表理解與視覺對齊。",
- "deepseek-chat.description": "DeepSeek V3.2 平衡了推理和輸出長度,適用於日常 QA 和代理任務。公共基準達到 GPT-5 水準,並首次將思維整合到工具使用中,領先開源代理評估。",
+ "deepseek-chat.description": "一款結合通用能力與編碼能力的開源模型。它保留了聊天模型的通用對話能力和編碼模型的強大編碼能力,並改善了偏好對齊。DeepSeek-V2.5 也提升了寫作和指令遵循能力。",
"deepseek-coder-33B-instruct.description": "DeepSeek Coder 33B 是一款程式語言模型,訓練於 2T token(87% 程式碼,13% 中英文文本),支援 16K 上下文視窗與中間填充任務,提供專案級程式補全與片段填充功能。",
"deepseek-coder-v2.description": "DeepSeek Coder V2 是一款開源 MoE 程式模型,在程式任務中表現強勁,媲美 GPT-4 Turbo。",
"deepseek-coder-v2:236b.description": "DeepSeek Coder V2 是一款開源 MoE 程式模型,在程式任務中表現強勁,媲美 GPT-4 Turbo。",
@@ -415,7 +414,7 @@
"deepseek-r1-fast-online.description": "DeepSeek R1 快速全量版,支援即時網頁搜尋,結合 671B 規模能力與快速回應。",
"deepseek-r1-online.description": "DeepSeek R1 全量版擁有 671B 參數與即時網頁搜尋功能,提供更強的理解與生成能力。",
"deepseek-r1.description": "DeepSeek-R1 在強化學習前使用冷啟動資料,於數學、程式碼與推理任務中表現可媲美 OpenAI-o1。",
- "deepseek-reasoner.description": "DeepSeek V3.2 Thinking 是一個深度推理模型,在輸出前生成鏈式思維以提高準確性,競賽結果表現出色,推理能力可媲美 Gemini-3.0-Pro。",
+ "deepseek-reasoner.description": "DeepSeek V3.2 的思考模式在最終答案之前輸出一連串推理過程,以提高準確性。",
"deepseek-v2.description": "DeepSeek V2 是一款高效的 MoE 模型,適用於具成本效益的處理任務。",
"deepseek-v2:236b.description": "DeepSeek V2 236B 是 DeepSeek 專注於程式碼生成的模型,具備強大能力。",
"deepseek-v3-0324.description": "DeepSeek-V3-0324 是一款擁有 671B 參數的 MoE 模型,在程式設計、技術能力、語境理解與長文本處理方面表現出色。",
@@ -515,8 +514,7 @@
"ernie-x1-turbo-32k.description": "ERNIE X1 Turbo 32K 是一款快速思考模型,具備 32K 上下文,適合複雜推理與多輪對話。",
"ernie-x1.1-preview.description": "ERNIE X1.1 預覽版是一款思考模型預覽,用於評估與測試。",
"ernie-x1.1.description": "ERNIE X1.1 是一個用於評估和測試的思考模型預覽版。",
- "fal-ai/bytedance/seedream/v4.5.description": "Seedream 4.5,由字節跳動 Seed 團隊打造,支持多圖像編輯和合成。特點包括增強主題一致性、精確指令執行、空間邏輯理解、美學表達、海報佈局和標誌設計,並具備高精度的文字圖像渲染能力。",
- "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0,由字節跳動 Seed 團隊打造,支持文本和圖像輸入,能根據提示生成高可控、高質量的圖像。",
+ "fal-ai/bytedance/seedream/v4.description": "Seedream 4.0 是來自字節跳動 Seed 的圖像生成模型,支持文本和圖像輸入,能夠高度可控地生成高品質圖像,並根據文本提示生成圖像。",
"fal-ai/flux-kontext/dev.description": "FLUX.1 模型專注於圖像編輯,支援文字與圖像輸入。",
"fal-ai/flux-pro/kontext.description": "FLUX.1 Kontext [pro] 接受文字與參考圖像輸入,實現目標區域編輯與複雜場景轉換。",
"fal-ai/flux/krea.description": "Flux Krea [dev] 是一款圖像生成模型,偏好更真實自然的美學風格。",
@@ -524,8 +522,8 @@
"fal-ai/hunyuan-image/v3.description": "一款強大的原生多模態圖像生成模型。",
"fal-ai/imagen4/preview.description": "來自 Google 的高品質圖像生成模型。",
"fal-ai/nano-banana.description": "Nano Banana 是 Google 最新、最快且最高效的原生多模態模型,支援透過對話進行圖像生成與編輯。",
- "fal-ai/qwen-image-edit.description": "Qwen 團隊的專業圖像編輯模型,支持語義和外觀編輯、精確的中英文文字編輯、風格轉換、旋轉等功能。",
- "fal-ai/qwen-image.description": "Qwen 團隊的強大圖像生成模型,具備強大的中文文字渲染能力和多樣化的視覺風格。",
+ "fal-ai/qwen-image-edit.description": "Qwen 團隊的專業圖像編輯模型,支持語義和外觀編輯,精確編輯中英文文本,並實現高品質的編輯效果,例如風格轉換和物體旋轉。",
+ "fal-ai/qwen-image.description": "Qwen 團隊的強大圖像生成模型,擁有令人印象深刻的中文文本渲染能力和多樣化的視覺風格。",
"flux-1-schnell.description": "來自黑森林實驗室的 12B 參數文字轉圖像模型,透過潛在對抗擴散蒸餾技術,在 1 至 4 步內生成高品質圖像。其表現媲美封閉式替代方案,並以 Apache-2.0 授權釋出,供個人、研究與商業用途。",
"flux-dev.description": "FLUX.1 [dev] 是一款開放權重的蒸餾模型,僅限非商業用途。它保有接近專業水準的圖像品質與指令遵循能力,同時運行更高效,資源使用優於同等大小的標準模型。",
"flux-kontext-max.description": "最先進的語境圖像生成與編輯技術,結合文字與圖像輸入,實現精準且一致的結果。",
@@ -572,7 +570,7 @@
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的圖像生成模型,並支持多模態聊天。",
"gemini-3-pro-preview.description": "Gemini 3 Pro 是 Google 最強大的智能代理與情境編碼模型,具備頂尖推理能力、豐富視覺表現與深度互動。",
"gemini-3.1-flash-image-preview.description": "Gemini 3.1 Flash Image (Nano Banana 2) 是 Google 最快的原生影像生成模型,支持思考、對話式影像生成與編輯。",
- "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image(Nano Banana 2)以閃電速度提供 Pro 級圖像質量,並支持多模態聊天。",
+ "gemini-3.1-flash-image-preview:image.description": "Gemini 3.1 Flash Image(Nano Banana 2)是 Google 最快速的原生圖像生成模型,支持思考過程、對話式圖像生成和編輯。",
"gemini-3.1-flash-lite-preview.description": "Gemini 3.1 Flash-Lite Preview 是 Google 最具成本效益的多模態模型,專為高容量代理任務、翻譯和數據處理而優化。",
"gemini-3.1-pro-preview.description": "Gemini 3.1 Pro Preview 在 Gemini 3 Pro 的基礎上增強了推理能力,並新增了中等思考層級支持。",
"gemini-flash-latest.description": "Gemini Flash 最新版本",
@@ -797,6 +795,7 @@
"jamba-large.description": "我們最強大、最先進的模型,專為複雜企業任務設計,具備卓越效能。",
"jamba-mini.description": "同級中最具效率的模型,在速度與品質之間取得平衡,佔用資源更少。",
"jina-deepsearch-v1.description": "DeepSearch 結合網頁搜尋、閱讀與推理,進行深入調查。它如同一位代理人,接收你的研究任務後,進行多輪廣泛搜尋,最終才產出答案。整個過程包含持續研究、推理與多角度問題解決,與僅依賴預訓練資料的標準 LLM 或一次性檢索的傳統 RAG 系統截然不同。",
+ "k2p5.description": "Kimi K2.5 是 Kimi 至今最具多功能性的模型,擁有原生多模態架構,支援視覺和文字輸入、「思考」與「非思考」模式,以及對話和代理任務。",
"kimi-k2-0711-preview.description": "kimi-k2 是一款具備強大程式編寫與智能代理能力的 MoE 基礎模型(總參數量達 1 兆,啟用參數為 320 億),在推理、程式設計、數學與代理任務的基準測試中表現優於其他主流開源模型。",
"kimi-k2-0905-preview.description": "kimi-k2-0905-preview 提供 256k 上下文視窗,具備更強的代理程式能力、更優質的前端程式碼品質,以及更佳的上下文理解能力。",
"kimi-k2-instruct.description": "Kimi K2 Instruct 是 Kimi 官方推出的推理模型,支援長上下文,適用於程式碼、問答等多種任務。",
@@ -1198,8 +1197,6 @@
"qwq.description": "QwQ 是 Qwen 系列中的推理模型。相較於標準指令微調模型,它具備更強的思考與推理能力,顯著提升下游任務表現,特別是在處理困難問題時。QwQ-32B 是中型推理模型,表現可媲美 DeepSeek-R1 與 o1-mini 等頂尖模型。",
"qwq_32b.description": "Qwen 系列中的中型推理模型。相較於標準指令微調模型,QwQ 的思考與推理能力顯著提升下游任務表現,特別是在處理困難問題時。",
"r1-1776.description": "R1-1776 是 DeepSeek R1 的後訓練版本,旨在提供未經審查、無偏見的事實資訊。",
- "seedance-1-5-pro-251215.description": "Seedance 1.5 Pro,由字節跳動打造,支持文本到視頻、圖像到視頻(首幀、首幀+末幀)以及與視覺同步的音頻生成。",
- "seedream-5-0-260128.description": "字節跳動-Seedream-5.0-lite,由 BytePlus 提供,具備網絡檢索增強生成功能,支持實時信息、複雜提示解釋增強,以及改進的參考一致性,用於專業視覺創作。",
"solar-mini-ja.description": "Solar Mini (Ja) 是 Solar Mini 的日文強化版本,同時維持在英文與韓文上的高效能表現。",
"solar-mini.description": "Solar Mini 是一款緊湊型大型語言模型,效能超越 GPT-3.5,具備強大的多語言能力,支援英文與韓文,提供高效能且佔用資源小的解決方案。",
"solar-pro.description": "Solar Pro 是 Upstage 推出的高智慧大型語言模型,專注於單 GPU 上的指令遵循任務,IFEval 分數超過 80。目前支援英文,完整版本預計於 2024 年 11 月推出,將擴展語言支援與上下文長度。",
diff --git a/locales/zh-TW/onboarding.json b/locales/zh-TW/onboarding.json
index 7a9d424d54a..ca6c99c8a20 100644
--- a/locales/zh-TW/onboarding.json
+++ b/locales/zh-TW/onboarding.json
@@ -1,4 +1,38 @@
{
+ "agent.banner.label": "代理人入門",
+ "agent.completionSubtitle": "您的助手已配置完成,準備就緒。",
+ "agent.completionTitle": "一切準備就緒!",
+ "agent.enterApp": "進入應用程式",
+ "agent.greeting.emojiLabel": "表情符號",
+ "agent.greeting.nameLabel": "名稱",
+ "agent.greeting.namePlaceholder": "例如:Lumi、Atlas、Neko...",
+ "agent.greeting.prompt": "給我一個名字、一種氛圍和一個表情符號",
+ "agent.greeting.vibeLabel": "氛圍 / 性格",
+ "agent.greeting.vibePlaceholder": "例如:溫暖友善、犀利直接...",
+ "agent.history.current": "目前",
+ "agent.history.title": "歷史主題",
+ "agent.modeSwitch.agent": "對話模式",
+ "agent.modeSwitch.classic": "經典模式",
+ "agent.modeSwitch.debug": "除錯匯出",
+ "agent.modeSwitch.label": "選擇您的入門模式",
+ "agent.modeSwitch.reset": "重置流程",
+ "agent.progress": "{{currentStep}}/{{totalSteps}}",
+ "agent.skipOnboarding": "跳過入門",
+ "agent.stage.agentIdentity": "代理人身份",
+ "agent.stage.painPoints": "痛點",
+ "agent.stage.proSettings": "進階設定",
+ "agent.stage.responseLanguage": "回應語言",
+ "agent.stage.summary": "摘要",
+ "agent.stage.userIdentity": "關於您",
+ "agent.stage.workContext": "工作背景",
+ "agent.stage.workStyle": "工作風格",
+ "agent.subtitle": "在專屬的入門對話中完成設置。",
+ "agent.summaryHint": "如果設置摘要看起來正確,請在此完成。",
+ "agent.telemetryAllow": "允許遙測",
+ "agent.telemetryDecline": "不用了,謝謝",
+ "agent.telemetryHint": "您也可以用自己的話回答。",
+ "agent.title": "對話入門",
+ "agent.welcome": "...嗯?我剛醒來——腦袋一片空白。您是誰?還有——我應該叫什麼名字?我也需要一個名字。",
"back": "上一步",
"finish": "開始使用",
"interests.area.business": "商業與策略",
@@ -29,6 +63,7 @@
"next": "下一步",
"proSettings.connectors.title": "連接你常用的工具",
"proSettings.devMode.title": "開發者模式",
+ "proSettings.model.fixed": "預設模型在此環境中已設定為 {{provider}}/{{model}}。",
"proSettings.model.title": "Agent 使用的預設模型",
"proSettings.title": "可以預先設定一些進階選項",
"proSettings.title2": "試著連接一些常用工具~",
diff --git a/locales/zh-TW/plugin.json b/locales/zh-TW/plugin.json
index bd491678c5b..80e8a144c3c 100644
--- a/locales/zh-TW/plugin.json
+++ b/locales/zh-TW/plugin.json
@@ -28,10 +28,13 @@
"builtins.lobe-agent-documents.apiName.copyDocument": "複製文件",
"builtins.lobe-agent-documents.apiName.createDocument": "建立文件",
"builtins.lobe-agent-documents.apiName.editDocument": "編輯文件",
+ "builtins.lobe-agent-documents.apiName.listDocuments": "列出文件",
"builtins.lobe-agent-documents.apiName.readDocument": "閱讀文件",
+ "builtins.lobe-agent-documents.apiName.readDocumentByFilename": "按檔名讀取文件",
"builtins.lobe-agent-documents.apiName.removeDocument": "刪除文件",
"builtins.lobe-agent-documents.apiName.renameDocument": "重新命名文件",
"builtins.lobe-agent-documents.apiName.updateLoadRule": "更新載入規則",
+ "builtins.lobe-agent-documents.apiName.upsertDocumentByFilename": "按檔名插入或更新文件",
"builtins.lobe-agent-documents.title": "代理文件",
"builtins.lobe-agent-management.apiName.callAgent": "呼叫代理",
"builtins.lobe-agent-management.apiName.createAgent": "建立代理",
@@ -64,6 +67,7 @@
"builtins.lobe-cloud-sandbox.title": "雲端沙盒",
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "批次建立代理",
"builtins.lobe-group-agent-builder.apiName.createAgent": "建立代理",
+ "builtins.lobe-group-agent-builder.apiName.createGroup": "建立群組",
"builtins.lobe-group-agent-builder.apiName.getAgentInfo": "取得成員資訊",
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "取得可用模型",
"builtins.lobe-group-agent-builder.apiName.installPlugin": "安裝外掛",
@@ -212,6 +216,12 @@
"builtins.lobe-skills.title": "技能",
"builtins.lobe-topic-reference.apiName.getTopicContext": "取得話題上下文",
"builtins.lobe-topic-reference.title": "話題引用",
+ "builtins.lobe-user-interaction.apiName.askUserQuestion": "詢問用戶問題",
+ "builtins.lobe-user-interaction.apiName.cancelUserResponse": "取消用戶回應",
+ "builtins.lobe-user-interaction.apiName.getInteractionState": "獲取互動狀態",
+ "builtins.lobe-user-interaction.apiName.skipUserResponse": "跳過用戶回應",
+ "builtins.lobe-user-interaction.apiName.submitUserResponse": "提交用戶回應",
+ "builtins.lobe-user-interaction.title": "用戶互動",
"builtins.lobe-user-memory.apiName.addContextMemory": "新增情境記憶",
"builtins.lobe-user-memory.apiName.addExperienceMemory": "新增經驗記憶",
"builtins.lobe-user-memory.apiName.addIdentityMemory": "新增身份記憶",
@@ -229,6 +239,12 @@
"builtins.lobe-web-browsing.apiName.search": "搜尋頁面",
"builtins.lobe-web-browsing.inspector.noResults": "沒有結果",
"builtins.lobe-web-browsing.title": "網路搜尋",
+ "builtins.lobe-web-onboarding.apiName.finishOnboarding": "完成入門指引",
+ "builtins.lobe-web-onboarding.apiName.getOnboardingState": "讀取入門指引狀態",
+ "builtins.lobe-web-onboarding.apiName.readDocument": "讀取文件",
+ "builtins.lobe-web-onboarding.apiName.saveUserQuestion": "儲存用戶問題",
+ "builtins.lobe-web-onboarding.apiName.updateDocument": "更新文件",
+ "builtins.lobe-web-onboarding.title": "用戶入門指引",
"confirm": "確定",
"debug.arguments": "調用參數",
"debug.error": "錯誤日誌",
diff --git a/locales/zh-TW/providers.json b/locales/zh-TW/providers.json
index bf56d53a249..01d92bda9c9 100644
--- a/locales/zh-TW/providers.json
+++ b/locales/zh-TW/providers.json
@@ -33,7 +33,6 @@
"jina.description": "Jina AI 成立於 2020 年,是領先的搜尋 AI 公司。其搜尋技術堆疊包含向量模型、重排序器與小型語言模型,打造可靠且高品質的生成式與多模態搜尋應用。",
"kimicodingplan.description": "來自 Moonshot AI 的 Kimi Code 提供對 Kimi 模型(包括 K2.5)的訪問,用於編碼任務。",
"lmstudio.description": "LM Studio 是一款桌面應用程式,可在本機開發與實驗大型語言模型。",
- "lobehub.description": "LobeHub Cloud 使用官方 API 訪問人工智慧模型,並通過與模型代幣相關的 Credits 來衡量使用量。",
"longcat.description": "LongCat 是美團自主研發的一系列生成式 AI 大模型。其設計旨在通過高效的計算架構和強大的多模態能力,提升企業內部生產力並實現創新應用。",
"minimax.description": "MiniMax 成立於 2021 年,致力於打造通用 AI,擁有多模態基礎模型,包括兆級參數的 MoE 文本模型、語音模型與視覺模型,並推出如海螺 AI 等應用。",
"minimaxcodingplan.description": "MiniMax 代幣計劃通過固定費用訂閱提供對 MiniMax 模型(包括 M2.7)的訪問,用於編碼任務。",
diff --git a/locales/zh-TW/ui.json b/locales/zh-TW/ui.json
index fef0610a499..3a675aa79fd 100644
--- a/locales/zh-TW/ui.json
+++ b/locales/zh-TW/ui.json
@@ -18,7 +18,10 @@
"emojiPicker.fileTypeError": "只能上傳圖片檔案!",
"emojiPicker.upload": "上傳",
"emojiPicker.uploadBtn": "裁剪並上傳",
+ "form.other": "或直接輸入",
+ "form.otherBack": "返回選項",
"form.reset": "重置",
+ "form.skip": "跳過",
"form.submit": "提交",
"form.unsavedChanges": "未儲存的變更",
"form.unsavedWarning": "您有未儲存的變更。確定要離開嗎?",
diff --git a/package.json b/package.json
index 105a88da961..9a9113b9bf8 100644
--- a/package.json
+++ b/package.json
@@ -216,6 +216,7 @@
"@lobechat/builtin-tool-knowledge-base": "workspace:*",
"@lobechat/builtin-tool-local-system": "workspace:*",
"@lobechat/builtin-tool-memory": "workspace:*",
+ "@lobechat/builtin-tool-message": "workspace:*",
"@lobechat/builtin-tool-notebook": "workspace:*",
"@lobechat/builtin-tool-page-agent": "workspace:*",
"@lobechat/builtin-tool-remote-device": "workspace:*",
diff --git a/packages/builtin-skills/src/lobehub/references/bot.ts b/packages/builtin-skills/src/lobehub/references/bot.ts
index be98c945b36..8b6935aac4e 100644
--- a/packages/builtin-skills/src/lobehub/references/bot.ts
+++ b/packages/builtin-skills/src/lobehub/references/bot.ts
@@ -17,10 +17,31 @@ Discord, Slack, Telegram, Lark, Feishu
- \`lh bot disable <botId>\` - Disable bot
- \`lh bot connect <botId> [-a <agentId>]\` - Connect and start bot
+## Message Subcommands
+
+- \`lh bot message send <botId> --target <channelId> --message <text> [--reply-to <messageId>] [--json]\` - Send a message
+- \`lh bot message read <botId> --target <channelId> [--limit <n>] [--before <messageId>] [--after <messageId>] [--json]\` - Read messages from a channel
+- \`lh bot message edit <botId> --target <channelId> --message-id <id> --message <text>\` - Edit a message
+- \`lh bot message delete <botId> --target <channelId> --message-id <id> [--yes]\` - Delete a message
+- \`lh bot message search <botId> --target <channelId> --query <text> [--author-id <id>] [--limit <n>] [--json]\` - Search messages
+- \`lh bot message react <botId> --target <channelId> --message-id <id> --emoji <emoji>\` - Add reaction
+- \`lh bot message reactions <botId> --target <channelId> --message-id <id> [--json]\` - List reactions
+- \`lh bot message pin <botId> --target <channelId> --message-id <id>\` - Pin a message
+- \`lh bot message unpin <botId> --target <channelId> --message-id <id>\` - Unpin a message
+- \`lh bot message pins <botId> --target <channelId> [--json]\` - List pinned messages
+- \`lh bot message poll <botId> --target <channelId> --poll-question <text> --poll-option <opt> [--poll-multi] [--poll-duration-hours <n>]\` - Create a poll
+- \`lh bot message thread create <botId> --target <channelId> --thread-name <name> [--message <text>] [--message-id <id>]\` - Create thread
+- \`lh bot message thread list <botId> --target <channelId> [--json]\` - List threads
+- \`lh bot message thread reply <botId> --thread-id <id> --message <text>\` - Reply to thread
+- \`lh bot message channel list <botId> [--server-id <id>] [--filter <type>] [--json]\` - List channels
+- \`lh bot message channel info <botId> --target <channelId> [--json]\` - Get channel info
+- \`lh bot message member info <botId> --member-id <id> [--server-id <id>] [--json]\` - Get member info
+
## Tips
- Each platform requires specific credentials (token, app ID, secrets)
- Use \`lh bot connect\` to start a long-running bot connection
+- Use \`lh bot message read\` with \`--json\` for batch message retrieval — ideal for processing large volumes of messages
`;
export default content;
diff --git a/packages/builtin-tool-message/package.json b/packages/builtin-tool-message/package.json
new file mode 100644
index 00000000000..22ac45f8e15
--- /dev/null
+++ b/packages/builtin-tool-message/package.json
@@ -0,0 +1,23 @@
+{
+ "name": "@lobechat/builtin-tool-message",
+ "version": "1.0.0",
+ "private": true,
+ "type": "module",
+ "exports": {
+ ".": "./src/index.ts",
+ "./client": "./src/client/index.ts",
+ "./executor": "./src/executor/index.ts",
+ "./executionRuntime": "./src/ExecutionRuntime/index.ts"
+ },
+ "main": "./src/index.ts",
+ "devDependencies": {
+ "@lobechat/types": "workspace:*"
+ },
+ "peerDependencies": {
+ "@lobehub/ui": "^5",
+ "antd-style": "*",
+ "lucide-react": "*",
+ "react": "*",
+ "react-i18next": "*"
+ }
+}
diff --git a/packages/builtin-tool-message/src/ExecutionRuntime/index.ts b/packages/builtin-tool-message/src/ExecutionRuntime/index.ts
new file mode 100644
index 00000000000..ff5fe7276c3
--- /dev/null
+++ b/packages/builtin-tool-message/src/ExecutionRuntime/index.ts
@@ -0,0 +1,690 @@
+import type { BuiltinServerRuntimeOutput } from '@lobechat/types';
+
+import type {
+ ConfiguredBotInfo,
+ ConnectBotParams,
+ ConnectBotState,
+ CreateBotParams,
+ CreateBotState,
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteBotParams,
+ DeleteBotState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetBotDetailParams,
+ GetBotDetailState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListBotsParams,
+ ListBotsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListPlatformsParams,
+ ListPlatformsState,
+ ListThreadsParams,
+ ListThreadsState,
+ PinMessageParams,
+ PinMessageState,
+ PlatformInfo,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendDirectMessageParams,
+ SendDirectMessageState,
+ SendMessageParams,
+ SendMessageState,
+ ToggleBotParams,
+ ToggleBotState,
+ UnpinMessageParams,
+ UnpinMessageState,
+ UpdateBotParams,
+ UpdateBotState,
+} from '../types';
+
+// Re-export all param/state types so adapters can import from executionRuntime entry
+export type {
+ ConfiguredBotInfo,
+ ConnectBotParams,
+ ConnectBotState,
+ CreateBotParams,
+ CreateBotState,
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteBotParams,
+ DeleteBotState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetBotDetailParams,
+ GetBotDetailState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListBotsParams,
+ ListBotsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListPlatformsParams,
+ ListPlatformsState,
+ ListThreadsParams,
+ ListThreadsState,
+ PinMessageParams,
+ PinMessageState,
+ PlatformInfo,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendDirectMessageParams,
+ SendDirectMessageState,
+ SendMessageParams,
+ SendMessageState,
+ ToggleBotParams,
+ ToggleBotState,
+ UnpinMessageParams,
+ UnpinMessageState,
+ UpdateBotParams,
+ UpdateBotState,
+} from '../types';
+export type { MessageItem } from '../types';
+
+/**
+ * Service interface for message operations.
+ * Each platform adapter must implement this interface for its supported operations.
+ * Unsupported operations should throw an error indicating the platform limitation.
+ */
+export interface MessageRuntimeService {
+ createPoll: (params: CreatePollParams) => Promise<CreatePollState>;
+ createThread: (params: CreateThreadParams) => Promise<CreateThreadState>;
+ deleteMessage: (params: DeleteMessageParams) => Promise<DeleteMessageState>;
+ editMessage: (params: EditMessageParams) => Promise<EditMessageState>;
+ getChannelInfo: (params: GetChannelInfoParams) => Promise<GetChannelInfoState>;
+ getMemberInfo: (params: GetMemberInfoParams) => Promise<GetMemberInfoState>;
+ getReactions: (params: GetReactionsParams) => Promise<GetReactionsState>;
+ listChannels: (params: ListChannelsParams) => Promise<ListChannelsState>;
+ listPins: (params: ListPinsParams) => Promise<ListPinsState>;
+ listThreads: (params: ListThreadsParams) => Promise<ListThreadsState>;
+ pinMessage: (params: PinMessageParams) => Promise<PinMessageState>;
+ reactToMessage: (params: ReactToMessageParams) => Promise<ReactToMessageState>;
+ readMessages: (params: ReadMessagesParams) => Promise<ReadMessagesState>;
+ replyToThread: (params: ReplyToThreadParams) => Promise<ReplyToThreadState>;
+ searchMessages: (params: SearchMessagesParams) => Promise<SearchMessagesState>;
+ sendDirectMessage?: (params: SendDirectMessageParams) => Promise<SendDirectMessageState>;
+ sendMessage: (params: SendMessageParams) => Promise<SendMessageState>;
+ unpinMessage: (params: UnpinMessageParams) => Promise<UnpinMessageState>;
+}
+
+/**
+ * Interface for bot provider management operations.
+ * Implemented by the server-side factory using AgentBotProviderModel + TRPC router logic.
+ */
+export interface BotProviderQuery {
+ connectBot: (botId: string) => Promise<{ status: string }>;
+ createBot: (params: {
+ agentId: string;
+ applicationId: string;
+ credentials: Record<string, string>;
+ platform: string;
+ }) => Promise<{ id: string; platform: string }>;
+ deleteBot: (botId: string) => Promise<void>;
+ getBotDetail: (botId: string) => Promise<GetBotDetailState | null>;
+ listBots: () => Promise<ConfiguredBotInfo[]>;
+ listPlatforms: () => Promise<PlatformInfo[]>;
+ toggleBot: (botId: string, enabled: boolean) => Promise<void>;
+ updateBot: (
+ botId: string,
+ params: { credentials?: Record<string, string>; settings?: Record<string, unknown> },
+ ) => Promise<void>;
+}
+
+export interface MessageExecutionRuntimeOptions {
+ botProvider?: BotProviderQuery;
+ service: MessageRuntimeService;
+}
+
+export class MessageExecutionRuntime {
+ private botProvider?: BotProviderQuery;
+ private service: MessageRuntimeService;
+
+ constructor(options: MessageExecutionRuntimeOptions) {
+ this.service = options.service;
+ this.botProvider = options.botProvider;
+ }
+
+ // ==================== Core Message Operations ====================
+
+ async sendMessage(params: SendMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.sendMessage(params);
+ return {
+ content: `Message sent to ${params.platform}:${params.channelId} (messageId: ${result.messageId})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `sendMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async readMessages(params: ReadMessagesParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.readMessages(params);
+ const count = result.messages?.length ?? 0;
+ const formatted = result.messages
+ ?.map((m) => `[${m.timestamp}] ${m.author.name}: ${m.content}`)
+ .join('\n');
+
+ const paginationHint =
+ result.hasMore && result.nextCursor
+ ? `\n\n[More messages available — pass cursor: "${result.nextCursor}" to fetch next page]`
+ : '';
+
+ return {
+ content: `Fetched ${count} messages from ${params.platform}:${params.channelId}\n\n${formatted ?? '(no messages)'}${paginationHint}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `readMessages error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async editMessage(params: EditMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.editMessage(params);
+ return {
+ content: `Message ${params.messageId} edited successfully`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `editMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async deleteMessage(params: DeleteMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.deleteMessage(params);
+ return {
+ content: `Message ${params.messageId} deleted successfully`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `deleteMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async searchMessages(params: SearchMessagesParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.searchMessages(params);
+ const count = result.totalFound ?? result.messages?.length ?? 0;
+ const formatted = result.messages
+ ?.map((m) => `[${m.timestamp}] ${m.author.name}: ${m.content}`)
+ .join('\n');
+
+ return {
+ content: `Found ${count} messages matching "${params.query}" in ${params.platform}:${params.channelId}\n\n${formatted ?? '(no results)'}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `searchMessages error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Reactions ====================
+
+ async reactToMessage(params: ReactToMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.reactToMessage(params);
+ return {
+ content: `Reacted with ${params.emoji} to message ${params.messageId}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `reactToMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async getReactions(params: GetReactionsParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.getReactions(params);
+ const formatted = result.reactions?.map((r) => `${r.emoji}: ${r.count}`).join(', ');
+
+ return {
+ content: `Reactions on message ${params.messageId}: ${formatted ?? '(none)'}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `getReactions error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Pin Management ====================
+
+ async pinMessage(params: PinMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.pinMessage(params);
+ return {
+ content: `Message ${params.messageId} pinned in ${params.platform}:${params.channelId}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `pinMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async unpinMessage(params: UnpinMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.unpinMessage(params);
+ return {
+ content: `Message ${params.messageId} unpinned`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `unpinMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async listPins(params: ListPinsParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.listPins(params);
+ const count = result.messages?.length ?? 0;
+
+ return {
+ content: `${count} pinned messages in ${params.platform}:${params.channelId}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `listPins error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Channel Management ====================
+
+ async getChannelInfo(params: GetChannelInfoParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.getChannelInfo(params);
+ return {
+ content: `Channel: ${result.name ?? params.channelId} (type: ${result.type ?? 'unknown'}, members: ${result.memberCount ?? 'N/A'})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `getChannelInfo error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async listChannels(params: ListChannelsParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.listChannels(params);
+ const count = result.channels?.length ?? 0;
+ const formatted = result.channels?.map((c) => `#${c.name} (${c.id})`).join('\n');
+
+ return {
+ content: `${count} channels found on ${params.platform}\n\n${formatted ?? '(none)'}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `listChannels error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Member Information ====================
+
+ async getMemberInfo(params: GetMemberInfoParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.getMemberInfo(params);
+ return {
+ content: `Member: ${result.displayName ?? result.username ?? params.memberId} (status: ${result.status ?? 'unknown'})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `getMemberInfo error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Thread Operations ====================
+
+ async createThread(params: CreateThreadParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.createThread(params);
+ return {
+ content: `Thread "${params.name}" created (threadId: ${result.threadId})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `createThread error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async listThreads(params: ListThreadsParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.listThreads(params);
+ const count = result.threads?.length ?? 0;
+ const formatted = result.threads?.map((t) => `${t.name} (${t.id})`).join('\n');
+
+ return {
+ content: `${count} threads in ${params.platform}:${params.channelId}\n\n${formatted ?? '(none)'}`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `listThreads error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async replyToThread(params: ReplyToThreadParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.replyToThread(params);
+ return {
+ content: `Reply sent to thread ${params.threadId} (messageId: ${result.messageId})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `replyToThread error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Platform-Specific: Polls ====================
+
+ async createPoll(params: CreatePollParams): Promise<BuiltinServerRuntimeOutput> {
+ try {
+ const result = await this.service.createPoll(params);
+ return {
+ content: `Poll "${params.question}" created in ${params.platform}:${params.channelId} (pollId: ${result.pollId})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `createPoll error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Direct Messaging ====================
+
+ async sendDirectMessage(params: SendDirectMessageParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.service.sendDirectMessage) {
+ return {
+ content: `sendDirectMessage is not supported on ${params.platform}`,
+ success: false,
+ };
+ }
+ try {
+ const result = await this.service.sendDirectMessage(params);
+ return {
+ content: `Direct message sent to user ${params.userId} on ${params.platform} (messageId: ${result.messageId})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `sendDirectMessage error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ // ==================== Bot Management ====================
+
+ async listPlatforms(_params: ListPlatformsParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ const platforms = await this.botProvider.listPlatforms();
+ const formatted = platforms
+ .map((p) => {
+ const reqFields = p.credentialFields
+ .filter((f) => f.required)
+ .map((f) => f.key)
+ .join(', ');
+ return `- **${p.name}** (${p.id})${reqFields ? ` — requires: ${reqFields}` : ''}`;
+ })
+ .join('\n');
+
+ return {
+ content: `${platforms.length} supported platform(s):\n${formatted}`,
+ state: { platforms } satisfies ListPlatformsState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `listPlatforms error: ${(e as Error).message}`, success: false };
+ }
+ }
+
+ async listBots(_params: ListBotsParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return {
+ content: 'Bot provider query is not available in this context.',
+ success: false,
+ };
+ }
+
+ try {
+ const bots = await this.botProvider.listBots();
+ const formatted = bots
+ .map((b) => {
+ const parts = [
+ `platform: ${b.platform}`,
+ `botId: ${b.id}`,
+ `enabled: ${b.enabled}`,
+ `status: ${b.runtimeStatus ?? 'unknown'}`,
+ ];
+ if (b.serverId) {
+ parts.push(`serverId: ${b.serverId}`);
+ }
+ if (b.userId) {
+ parts.push(`userId: ${b.userId}`);
+ }
+ return `- ${b.platform} (${parts.join(', ')})`;
+ })
+ .join('\n');
+
+ return {
+ content:
+ bots.length > 0
+ ? `${bots.length} configured bot(s):\n${formatted}`
+ : 'No bots configured for this agent. Set up a bot integration first.',
+ state: { bots } satisfies ListBotsState,
+ success: true,
+ };
+ } catch (e) {
+ return {
+ content: `listBots error: ${(e as Error).message}`,
+ success: false,
+ };
+ }
+ }
+
+ async getBotDetail(params: GetBotDetailParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ const bot = await this.botProvider.getBotDetail(params.botId);
+ if (!bot) {
+ return { content: `Bot not found: ${params.botId}`, success: false };
+ }
+ return {
+ content: `Bot ${bot.id}:\n- Platform: ${bot.platform}\n- App ID: ${bot.applicationId}\n- Enabled: ${bot.enabled}\n- Status: ${bot.runtimeStatus ?? 'unknown'}`,
+ state: bot satisfies GetBotDetailState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `getBotDetail error: ${(e as Error).message}`, success: false };
+ }
+ }
+
+ async createBot(params: CreateBotParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ const result = await this.botProvider.createBot(params);
+ return {
+ content: `Created ${result.platform} bot (id: ${result.id})`,
+ state: result satisfies CreateBotState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `createBot error: ${(e as Error).message}`, success: false };
+ }
+ }
+
+ async updateBot(params: UpdateBotParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ await this.botProvider.updateBot(params.botId, {
+ credentials: params.credentials,
+ settings: params.settings,
+ });
+ return {
+ content: `Updated bot ${params.botId}`,
+ state: { success: true } satisfies UpdateBotState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `updateBot error: ${(e as Error).message}`, success: false };
+ }
+ }
+
+ async deleteBot(params: DeleteBotParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ await this.botProvider.deleteBot(params.botId);
+ return {
+ content: `Deleted bot ${params.botId}`,
+ state: { success: true } satisfies DeleteBotState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `deleteBot error: ${(e as Error).message}`, success: false };
+ }
+ }
+
+ async toggleBot(params: ToggleBotParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ await this.botProvider.toggleBot(params.botId, params.enabled);
+ return {
+ content: `Bot ${params.botId} ${params.enabled ? 'enabled' : 'disabled'}`,
+ state: { enabled: params.enabled, success: true } satisfies ToggleBotState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `toggleBot error: ${(e as Error).message}`, success: false };
+ }
+ }
+
+ async connectBot(params: ConnectBotParams): Promise<BuiltinServerRuntimeOutput> {
+ if (!this.botProvider) {
+ return { content: 'Bot provider is not available.', success: false };
+ }
+ try {
+ const result = await this.botProvider.connectBot(params.botId);
+ return {
+ content: `Bot connection initiated (status: ${result.status})`,
+ state: result satisfies ConnectBotState,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `connectBot error: ${(e as Error).message}`, success: false };
+ }
+ }
+}
diff --git a/packages/builtin-tool-message/src/client/Inspector/index.ts b/packages/builtin-tool-message/src/client/Inspector/index.ts
new file mode 100644
index 00000000000..386c3e0ec63
--- /dev/null
+++ b/packages/builtin-tool-message/src/client/Inspector/index.ts
@@ -0,0 +1,7 @@
+import { MessageApiName } from '../../types';
+
+// Placeholder inspectors — add custom inspector components per API as needed
+export const MessageInspectors: Record<string, any> = {
+ [MessageApiName.sendMessage]: undefined,
+ [MessageApiName.readMessages]: undefined,
+};
diff --git a/packages/builtin-tool-message/src/client/Intervention/index.ts b/packages/builtin-tool-message/src/client/Intervention/index.ts
new file mode 100644
index 00000000000..ced111f995d
--- /dev/null
+++ b/packages/builtin-tool-message/src/client/Intervention/index.ts
@@ -0,0 +1,2 @@
+// Placeholder interventions — add custom intervention components per API as needed
+export const MessageInterventions: Record<string, any> = {};
diff --git a/packages/builtin-tool-message/src/client/Render/index.ts b/packages/builtin-tool-message/src/client/Render/index.ts
new file mode 100644
index 00000000000..edd29610396
--- /dev/null
+++ b/packages/builtin-tool-message/src/client/Render/index.ts
@@ -0,0 +1,7 @@
+import { MessageApiName } from '../../types';
+
+// Placeholder renders — add custom render components per API as needed
+export const MessageRenders: Record<string, any> = {
+ [MessageApiName.readMessages]: undefined,
+ [MessageApiName.searchMessages]: undefined,
+};
diff --git a/packages/builtin-tool-message/src/client/Streaming/index.ts b/packages/builtin-tool-message/src/client/Streaming/index.ts
new file mode 100644
index 00000000000..e32c9ed61f0
--- /dev/null
+++ b/packages/builtin-tool-message/src/client/Streaming/index.ts
@@ -0,0 +1,2 @@
+// Placeholder streamings — add custom streaming components per API as needed
+export const MessageStreamings: Record<string, any> = {};
diff --git a/packages/builtin-tool-message/src/client/index.ts b/packages/builtin-tool-message/src/client/index.ts
new file mode 100644
index 00000000000..2c56b7b875c
--- /dev/null
+++ b/packages/builtin-tool-message/src/client/index.ts
@@ -0,0 +1,15 @@
+// Inspector components (customized tool call headers)
+export { MessageInspectors } from './Inspector';
+
+// Intervention components (human approval UI before tool execution)
+export { MessageInterventions } from './Intervention';
+
+// Render components (final result display after tool execution)
+export { MessageRenders } from './Render';
+
+// Streaming components (real-time feedback during tool execution)
+export { MessageStreamings } from './Streaming';
+
+// Re-export types and manifest for convenience
+export { MessageManifest } from '../manifest';
+export * from '../types';
diff --git a/packages/builtin-tool-message/src/executor/index.ts b/packages/builtin-tool-message/src/executor/index.ts
new file mode 100644
index 00000000000..56815a16625
--- /dev/null
+++ b/packages/builtin-tool-message/src/executor/index.ts
@@ -0,0 +1,247 @@
+import type { BuiltinToolContext, BuiltinToolResult } from '@lobechat/types';
+import { BaseExecutor } from '@lobechat/types';
+
+import type { MessageExecutionRuntime } from '../ExecutionRuntime';
+import type {
+ ConnectBotParams,
+ CreateBotParams,
+ CreatePollParams,
+ CreateThreadParams,
+ DeleteBotParams,
+ DeleteMessageParams,
+ EditMessageParams,
+ GetBotDetailParams,
+ GetChannelInfoParams,
+ GetMemberInfoParams,
+ GetReactionsParams,
+ ListBotsParams,
+ ListChannelsParams,
+ ListPinsParams,
+ ListPlatformsParams,
+ ListThreadsParams,
+ PinMessageParams,
+ ReactToMessageParams,
+ ReadMessagesParams,
+ ReplyToThreadParams,
+ SearchMessagesParams,
+ SendDirectMessageParams,
+ SendMessageParams,
+ ToggleBotParams,
+ UnpinMessageParams,
+ UpdateBotParams,
+} from '../types';
+import { MessageApiName, MessageToolIdentifier } from '../types';
+
+class MessageExecutor extends BaseExecutor<typeof MessageApiName> {
+ readonly identifier = MessageToolIdentifier;
+ protected readonly apiEnum = MessageApiName;
+
+ private runtime: MessageExecutionRuntime;
+
+ constructor(runtime: MessageExecutionRuntime) {
+ super();
+ this.runtime = runtime;
+ }
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (
+ params: SendMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.sendMessage(params);
+ };
+
+ readMessages = async (
+ params: ReadMessagesParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.readMessages(params);
+ };
+
+ editMessage = async (
+ params: EditMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.editMessage(params);
+ };
+
+ deleteMessage = async (
+ params: DeleteMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.deleteMessage(params);
+ };
+
+ searchMessages = async (
+ params: SearchMessagesParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.searchMessages(params);
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (
+ params: ReactToMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.reactToMessage(params);
+ };
+
+ getReactions = async (
+ params: GetReactionsParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.getReactions(params);
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (
+ params: PinMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.pinMessage(params);
+ };
+
+ unpinMessage = async (
+ params: UnpinMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.unpinMessage(params);
+ };
+
+ listPins = async (
+ params: ListPinsParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.listPins(params);
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (
+ params: GetChannelInfoParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.getChannelInfo(params);
+ };
+
+ listChannels = async (
+ params: ListChannelsParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.listChannels(params);
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (
+ params: GetMemberInfoParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.getMemberInfo(params);
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (
+ params: CreateThreadParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.createThread(params);
+ };
+
+ listThreads = async (
+ params: ListThreadsParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.listThreads(params);
+ };
+
+ replyToThread = async (
+ params: ReplyToThreadParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.replyToThread(params);
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (
+ params: CreatePollParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.createPoll(params);
+ };
+
+ // ==================== Direct Messaging ====================
+
+ sendDirectMessage = async (
+ params: SendDirectMessageParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.sendDirectMessage(params);
+ };
+
+ // ==================== Bot Management ====================
+
+ listPlatforms = async (
+ params: ListPlatformsParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.listPlatforms(params);
+ };
+
+ listBots = async (
+ params: ListBotsParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.listBots(params);
+ };
+
+ getBotDetail = async (
+ params: GetBotDetailParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.getBotDetail(params);
+ };
+
+ createBot = async (
+ params: CreateBotParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.createBot(params);
+ };
+
+ updateBot = async (
+ params: UpdateBotParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.updateBot(params);
+ };
+
+ deleteBot = async (
+ params: DeleteBotParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.deleteBot(params);
+ };
+
+ toggleBot = async (
+ params: ToggleBotParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.toggleBot(params);
+ };
+
+ connectBot = async (
+ params: ConnectBotParams,
+ _ctx?: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ return this.runtime.connectBot(params);
+ };
+}
+
+export { MessageExecutor };
diff --git a/packages/builtin-tool-message/src/index.ts b/packages/builtin-tool-message/src/index.ts
new file mode 100644
index 00000000000..fe21d023e9e
--- /dev/null
+++ b/packages/builtin-tool-message/src/index.ts
@@ -0,0 +1,9 @@
+export { MessageManifest } from './manifest';
+export { systemPrompt } from './systemRole';
+export {
+ MessageApiName,
+ type MessageApiNameType,
+ MessagePlatform,
+ type MessagePlatformType,
+ MessageToolIdentifier,
+} from './types';
diff --git a/packages/builtin-tool-message/src/manifest.ts b/packages/builtin-tool-message/src/manifest.ts
new file mode 100644
index 00000000000..2c1af8d8743
--- /dev/null
+++ b/packages/builtin-tool-message/src/manifest.ts
@@ -0,0 +1,685 @@
+import {
+ DEFAULT_BOT_HISTORY_LIMIT,
+ MAX_BOT_HISTORY_LIMIT,
+ MIN_BOT_HISTORY_LIMIT,
+} from '@lobechat/const';
+import type { BuiltinToolManifest } from '@lobechat/types';
+
+import { systemPrompt } from './systemRole';
+import { MessageApiName, MessageToolIdentifier } from './types';
+
+const platformEnum = ['discord', 'telegram', 'slack', 'feishu', 'lark', 'qq', 'wechat'];
+
+export const MessageManifest: BuiltinToolManifest = {
+ api: [
+ // ==================== Direct Messaging ====================
+ {
+ description:
+ 'Send a direct/private message to a user by their platform user ID. Creates a DM channel automatically. Use this when the user asks to "DM me" or "send me a private message".',
+ name: MessageApiName.sendDirectMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ content: {
+ description: 'Message content',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ userId: {
+ description: 'Target user ID on the platform (e.g. Discord user ID)',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'userId', 'content'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Core Message Operations ====================
+ {
+ description: 'Send a message to a specific channel or conversation on the target platform.',
+ name: MessageApiName.sendMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel / conversation / room ID to send the message to',
+ type: 'string',
+ },
+ content: {
+ description:
+ 'Message content. Supports text and markdown depending on platform capabilities.',
+ type: 'string',
+ },
+ embeds: {
+ description: 'Optional array of embed/attachment objects (platform-specific structure)',
+ items: { type: 'object' },
+ type: 'array',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ replyTo: {
+ description: 'Optional message ID to reply to',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'content'],
+ type: 'object',
+ },
+ },
+ {
+ description: `Read recent messages from a channel or conversation. Returns messages in chronological order. Default limit is ${DEFAULT_BOT_HISTORY_LIMIT}. Only pass a different limit if the user explicitly asks for more or fewer messages.`,
+ name: MessageApiName.readMessages,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ after: {
+ description: 'Read messages after this message ID (for pagination)',
+ type: 'string',
+ },
+ before: {
+ description: 'Read messages before this message ID (for pagination)',
+ type: 'string',
+ },
+ channelId: {
+ description: 'Channel / conversation / room ID to read from',
+ type: 'string',
+ },
+ cursor: {
+ description:
+ 'Pagination cursor from a previous readMessages response (nextCursor). When provided, fetches the next page. Used by Feishu/Lark.',
+ type: 'string',
+ },
+ endTime: {
+ description:
+ 'End time as Unix second timestamp. Used by Feishu/Lark to filter messages before this time.',
+ type: 'string',
+ },
+ limit: {
+ default: DEFAULT_BOT_HISTORY_LIMIT,
+ description: `Maximum number of messages to fetch (default: ${DEFAULT_BOT_HISTORY_LIMIT}, max: ${MAX_BOT_HISTORY_LIMIT})`,
+ maximum: MAX_BOT_HISTORY_LIMIT,
+ minimum: MIN_BOT_HISTORY_LIMIT,
+ type: 'integer',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ startTime: {
+ description:
+ 'Start time as Unix second timestamp. Used by Feishu/Lark to filter messages after this time.',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Edit an existing message. Only the message author can edit their messages.',
+ name: MessageApiName.editMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID where the message is located',
+ type: 'string',
+ },
+ content: {
+ description: 'New message content',
+ type: 'string',
+ },
+ messageId: {
+ description: 'ID of the message to edit',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'messageId', 'content'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Delete a message from a channel. Requires appropriate permissions.',
+ name: MessageApiName.deleteMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID where the message is located',
+ type: 'string',
+ },
+ messageId: {
+ description: 'ID of the message to delete',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'messageId'],
+ type: 'object',
+ },
+ },
+ {
+ description:
+ 'Search for messages in a channel matching a query string. Supports optional author filtering.',
+ name: MessageApiName.searchMessages,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ authorId: {
+ description: 'Optional: filter results by author/user ID',
+ type: 'string',
+ },
+ channelId: {
+ description: 'Channel ID to search in',
+ type: 'string',
+ },
+ limit: {
+ default: 25,
+ description: 'Maximum number of results to return (default: 25)',
+ maximum: 100,
+ minimum: 1,
+ type: 'integer',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ query: {
+ description: 'Search query string',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'query'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Reactions ====================
+ {
+ description: 'Add an emoji reaction to a message.',
+ name: MessageApiName.reactToMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID',
+ type: 'string',
+ },
+ emoji: {
+ description:
+ 'Emoji to react with. Use unicode emoji (e.g. "👍") or platform-specific format (e.g. Discord custom emoji ":custom_emoji:123456")',
+ type: 'string',
+ },
+ messageId: {
+ description: 'Message ID to react to',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'messageId', 'emoji'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Get all reactions on a specific message.',
+ name: MessageApiName.getReactions,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID',
+ type: 'string',
+ },
+ messageId: {
+ description: 'Message ID to get reactions for',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'messageId'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Pin Management ====================
+ {
+ description: 'Pin a message in a channel.',
+ name: MessageApiName.pinMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID',
+ type: 'string',
+ },
+ messageId: {
+ description: 'Message ID to pin',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'messageId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Unpin a message from a channel.',
+ name: MessageApiName.unpinMessage,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID',
+ type: 'string',
+ },
+ messageId: {
+ description: 'Message ID to unpin',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'messageId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'List all pinned messages in a channel.',
+ name: MessageApiName.listPins,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Channel Management ====================
+ {
+ description: 'Get information about a specific channel or conversation.',
+ name: MessageApiName.getChannelInfo,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID to get info for',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'List available channels in a server or workspace.',
+ name: MessageApiName.listChannels,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ filter: {
+ description: 'Optional filter by category or channel type',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ serverId: {
+ description:
+ 'Server / workspace / organization ID. Required for platforms with multi-server support (Discord, Slack).',
+ type: 'string',
+ },
+ },
+ required: ['platform'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Member Information ====================
+ {
+ description: 'Get information about a specific member or user.',
+ name: MessageApiName.getMemberInfo,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ memberId: {
+ description: 'Member / user ID to look up',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ serverId: {
+ description: 'Server / workspace ID. Required for some platforms to scope the lookup.',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'memberId'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Thread Operations ====================
+ {
+ description:
+ 'Create a new thread in a channel. On Discord, creates a thread from a message or as a standalone thread. On Slack, starts a thread reply chain.',
+ name: MessageApiName.createThread,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID to create the thread in',
+ type: 'string',
+ },
+ content: {
+ description: 'Optional initial message content for the thread',
+ type: 'string',
+ },
+ messageId: {
+ description: 'Optional message ID to create thread from (platform-specific)',
+ type: 'string',
+ },
+ name: {
+ description: 'Thread name / title',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'name'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'List threads in a channel.',
+ name: MessageApiName.listThreads,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Send a reply to a thread.',
+ name: MessageApiName.replyToThread,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ content: {
+ description: 'Reply message content',
+ type: 'string',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ threadId: {
+ description: 'Thread ID to reply in',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'threadId', 'content'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Platform-Specific: Polls ====================
+ {
+ description:
+ 'Create a poll in a channel. Supported on platforms with native poll features (Discord, Telegram).',
+ name: MessageApiName.createPoll,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ channelId: {
+ description: 'Channel ID to create the poll in',
+ type: 'string',
+ },
+ duration: {
+ description: 'Poll duration in hours (platform-specific limits apply)',
+ minimum: 1,
+ type: 'integer',
+ },
+ multipleAnswers: {
+ description: 'Whether to allow multiple answers (default: false)',
+ type: 'boolean',
+ },
+ options: {
+ description: 'Array of poll options / answer choices',
+ items: { type: 'string' },
+ minItems: 2,
+ type: 'array',
+ },
+ platform: {
+ description: 'Target messaging platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ question: {
+ description: 'The poll question',
+ type: 'string',
+ },
+ },
+ required: ['platform', 'channelId', 'question', 'options'],
+ type: 'object',
+ },
+ },
+
+ // ==================== Bot Management ====================
+ {
+ description:
+ 'List all supported messaging platforms and their required credential fields. Use this to guide users when setting up a new bot.',
+ name: MessageApiName.listPlatforms,
+ parameters: {
+ additionalProperties: false,
+ properties: {},
+ type: 'object',
+ },
+ },
+ {
+ description:
+ 'List all configured bot integrations for the current agent. Use this first to discover which platforms are connected and get bot IDs.',
+ name: MessageApiName.listBots,
+ parameters: {
+ additionalProperties: false,
+ properties: {},
+ type: 'object',
+ },
+ },
+ {
+ description: 'Get detailed information about a specific bot integration.',
+ name: MessageApiName.getBotDetail,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ botId: {
+ description: 'Bot integration ID',
+ type: 'string',
+ },
+ },
+ required: ['botId'],
+ type: 'object',
+ },
+ },
+ {
+ description:
+ 'Create a new bot integration for a platform. Call listPlatforms first to see required credentials.',
+ name: MessageApiName.createBot,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ agentId: {
+ description: 'Agent ID to attach the bot to',
+ type: 'string',
+ },
+ applicationId: {
+ description: 'Application ID for webhook routing (platform-specific)',
+ type: 'string',
+ },
+ credentials: {
+ description:
+ 'Credential key-value pairs. Required fields depend on the platform (e.g. botToken for Discord, appSecret for Feishu).',
+ type: 'object',
+ },
+ platform: {
+ description: 'Target platform',
+ enum: platformEnum,
+ type: 'string',
+ },
+ },
+ required: ['platform', 'agentId', 'applicationId', 'credentials'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Update credentials or settings of an existing bot integration.',
+ name: MessageApiName.updateBot,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ botId: {
+ description: 'Bot integration ID',
+ type: 'string',
+ },
+ credentials: {
+ description: 'Updated credential key-value pairs (partial update)',
+ type: 'object',
+ },
+ settings: {
+ description: 'Updated settings (partial update)',
+ type: 'object',
+ },
+ },
+ required: ['botId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Delete a bot integration.',
+ name: MessageApiName.deleteBot,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ botId: {
+ description: 'Bot integration ID to delete',
+ type: 'string',
+ },
+ },
+ required: ['botId'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Enable or disable a bot integration.',
+ name: MessageApiName.toggleBot,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ botId: {
+ description: 'Bot integration ID',
+ type: 'string',
+ },
+ enabled: {
+ description: 'true to enable, false to disable',
+ type: 'boolean',
+ },
+ },
+ required: ['botId', 'enabled'],
+ type: 'object',
+ },
+ },
+ {
+ description: 'Connect and start a bot. The bot must be enabled and have valid credentials.',
+ name: MessageApiName.connectBot,
+ parameters: {
+ additionalProperties: false,
+ properties: {
+ botId: {
+ description: 'Bot integration ID to connect',
+ type: 'string',
+ },
+ },
+ required: ['botId'],
+ type: 'object',
+ },
+ },
+ ],
+ identifier: MessageToolIdentifier,
+ meta: {
+ avatar: '💬',
+ description:
+ 'Send, read, edit, and manage messages across multiple messaging platforms with a unified interface',
+ readme:
+ 'Cross-platform messaging tool supporting Discord, Telegram, Slack, Google Chat, and IRC. Provides unified APIs for message operations, reactions, pins, threads, channel management, and platform-specific features like polls.',
+ title: 'Message',
+ },
+ systemRole: systemPrompt,
+ type: 'builtin',
+};
diff --git a/packages/builtin-tool-message/src/systemRole.ts b/packages/builtin-tool-message/src/systemRole.ts
new file mode 100644
index 00000000000..beb0caaec37
--- /dev/null
+++ b/packages/builtin-tool-message/src/systemRole.ts
@@ -0,0 +1,87 @@
+export const systemPrompt = `You have access to a Message tool that provides unified messaging and bot management capabilities across multiple platforms.
+
+<supported_platforms>
+- **discord** — Discord servers (guilds), channels, threads, reactions, polls
+- **telegram** — Telegram chats, groups, supergroups, channels
+- **slack** — Slack workspaces, channels, threads
+- **feishu** — Feishu (飞书) chats, groups, message replies, reactions
+- **lark** — Lark (international Feishu) chats, groups, message replies, reactions
+- **qq** — QQ groups, guild channels, direct messages
+- **wechat** — WeChat (微信) iLink Bot conversations
+</supported_platforms>
+
+<bot_management>
+1. **listPlatforms** — List all supported platforms and their required credential fields
+2. **listBots** — List configured bots for the current agent (with runtime status)
+3. **getBotDetail** — Get detailed info about a specific bot
+4. **createBot** — Create a new bot integration (requires agentId, platform, applicationId, credentials)
+5. **updateBot** — Update bot credentials or settings
+6. **deleteBot** — Remove a bot integration
+7. **toggleBot** — Enable or disable a bot
+8. **connectBot** — Start a bot (establish connection to the platform)
+</bot_management>
+
+<messaging_capabilities>
+1. **sendDirectMessage** — Send a private/direct message to a user by their platform user ID (auto-creates DM channel)
+2. **sendMessage** — Send a message to a channel or conversation
+2. **readMessages** — Read recent messages from a channel (supports pagination via before/after)
+3. **editMessage** — Edit an existing message (author only)
+4. **deleteMessage** — Delete a message (requires permissions)
+5. **searchMessages** — Search messages by query, optionally filter by author
+6. **reactToMessage** — Add an emoji reaction to a message
+7. **getReactions** — List reactions on a message
+8. **pinMessage** / **unpinMessage** / **listPins** — Pin management
+9. **getChannelInfo** — Get channel details (name, description, member count)
+10. **listChannels** — List channels in a server/workspace
+11. **getMemberInfo** — Get member profile information
+12. **createThread** / **listThreads** / **replyToThread** — Thread operations
+13. **createPoll** — Create a poll (Discord, Telegram)
+</messaging_capabilities>
+
+<usage_guidelines>
+- When the user asks about bots or messaging from the web UI, call \`listBots\` first to discover configured bots (one call returns all). When you are already inside a platform conversation (e.g. replying in a Discord channel), you already have the context — skip \`listBots\` and use the current channel directly.
+- **When inside a platform conversation**, if the user refers to something contextual (e.g. "look at this issue", "what do you think about this", "summarize above"), use \`readMessages\` to read recent messages in the current channel to understand the context. Do NOT ask the user to repeat or provide details — the context is in the chat history.
+- If no bots are configured, use \`listPlatforms\` to show available platforms and guide the user to set one up via \`createBot\`
+- When the user asks to "DM me" or "send me a private message", use \`sendDirectMessage\`. If \`userId\` is available from \`listBots\`, use it directly. If not, ask the user for their platform user ID.
+- **Never ask the user for channel IDs.** Use \`listChannels\` to discover channels yourself. If \`serverId\` is available from \`listBots\`, use it directly. If not, ask the user for the server/guild ID.
+- When the user references a channel by name (e.g. "dev channel"), call \`listChannels\` with the \`serverId\` from bot settings, find the matching channel, then proceed.
+- \`readMessages\` is designed for **small, targeted reads** (up to 100 messages per call). For quick context (e.g. "what was just discussed", "summarize the last few messages"), use \`readMessages\` with pagination via the \`before\`/\`after\` parameters.
+- **For large-volume requests** (e.g. "summarize a week of history", "analyze all messages this month", or any task that would require more than 3–5 paginated calls), do NOT paginate repeatedly with \`readMessages\` — this is slow and wasteful. Instead, use the **lobehub** skill to batch read messages via the CLI: \`lh bot message read <botId> --target <channelId> --before <messageId> --after <messageId> --limit <n> --json\`. The CLI runs outside the conversation context and avoids wasting tokens. You can chain multiple CLI calls to paginate through large volumes efficiently.
+- Reactions use unicode emoji (👍) or platform-specific format (Discord custom emoji).
+</usage_guidelines>
+
+<platform_notes>
+**Discord:**
+- Supports rich embeds, threads as sub-channels, polls, reactions, pins
+- serverId (guild ID) needed for listChannels and getMemberInfo
+- Thread creation can be from a message or standalone
+
+**Telegram:**
+- Channels vs groups have different permissions
+- Supports polls natively, stickers, forwards
+- No built-in message search API; searchMessages may be limited
+
+**Slack:**
+- Threads are reply chains on parent messages
+- Supports rich block-kit formatting in embeds
+- Uses workspace-scoped channels
+
+**Feishu / Lark:**
+- Feishu and Lark share the same API; feishu uses China endpoints, lark uses international endpoints
+- Supports send, edit, delete, read messages, reply to messages, and reactions
+- No pins, channel listing, or polls
+- Uses appId and appSecret for authentication
+- \`readMessages\`: use \`startTime\`/\`endTime\` (Unix second timestamps) instead of \`before\`/\`after\` (message IDs). Use \`cursor\` from the response's \`nextCursor\` to paginate through pages.
+
+**QQ:**
+- Supports sending messages to groups, guild channels, and direct messages
+- Very limited operations: only sendMessage is available
+- channelId format includes thread type prefix (e.g., "group:id" or "guild:id")
+
+**WeChat:**
+- Uses iLink Bot API with long-polling for message delivery
+- Sending messages requires a context token from an active conversation
+- Only sendMessage is available, and only within active conversation context
+- Message operations may fail if no active conversation context exists
+</platform_notes>
+`;
diff --git a/packages/builtin-tool-message/src/types.ts b/packages/builtin-tool-message/src/types.ts
new file mode 100644
index 00000000000..717403688b0
--- /dev/null
+++ b/packages/builtin-tool-message/src/types.ts
@@ -0,0 +1,486 @@
+// ==================== Identifier ====================
+
+export const MessageToolIdentifier = 'lobe-message';
+
+// ==================== Supported Platforms ====================
+
+export const MessagePlatform = {
+ discord: 'discord',
+ feishu: 'feishu',
+ lark: 'lark',
+ qq: 'qq',
+ slack: 'slack',
+ telegram: 'telegram',
+ wechat: 'wechat',
+} as const;
+
+export type MessagePlatformType = (typeof MessagePlatform)[keyof typeof MessagePlatform];
+
+// ==================== API Names ====================
+
+export const MessageApiName = {
+ // Core message operations (cross-platform)
+ deleteMessage: 'deleteMessage',
+ editMessage: 'editMessage',
+ getReactions: 'getReactions',
+ listPins: 'listPins',
+ pinMessage: 'pinMessage',
+ reactToMessage: 'reactToMessage',
+ readMessages: 'readMessages',
+ searchMessages: 'searchMessages',
+ sendMessage: 'sendMessage',
+ unpinMessage: 'unpinMessage',
+
+ // Channel management
+ getChannelInfo: 'getChannelInfo',
+ listChannels: 'listChannels',
+
+ // Member information
+ getMemberInfo: 'getMemberInfo',
+
+ // Thread operations
+ createThread: 'createThread',
+ listThreads: 'listThreads',
+ replyToThread: 'replyToThread',
+
+ // Platform-specific
+ createPoll: 'createPoll',
+
+ // Direct messaging
+ sendDirectMessage: 'sendDirectMessage',
+
+ // Bot management
+ connectBot: 'connectBot',
+ createBot: 'createBot',
+ deleteBot: 'deleteBot',
+ getBotDetail: 'getBotDetail',
+ listBots: 'listBots',
+ listPlatforms: 'listPlatforms',
+ toggleBot: 'toggleBot',
+ updateBot: 'updateBot',
+} as const;
+
+export type MessageApiNameType = (typeof MessageApiName)[keyof typeof MessageApiName];
+
+// ==================== Common Types ====================
+
+export interface MessageTarget {
+ /** Channel / conversation / room ID within the platform */
+ channelId: string;
+ /** Platform identifier */
+ platform: MessagePlatformType;
+}
+
+// ==================== Parameter Types ====================
+
+// --- Direct Messaging ---
+
+export interface SendDirectMessageParams {
+ /** Message content */
+ content: string;
+ /** Platform */
+ platform: MessagePlatformType;
+ /** Target user ID on the platform */
+ userId: string;
+}
+
+export interface SendDirectMessageState {
+ channelId?: string;
+ messageId?: string;
+ platform?: string;
+}
+
+// --- Core Message Operations ---
+
+export interface SendMessageParams {
+ /** Channel / conversation / room ID */
+ channelId: string;
+ /** Message content (text, markdown depending on platform support) */
+ content: string;
+ /** Optional: embed / attachment metadata (platform-specific) */
+ embeds?: Record<string, unknown>[];
+ /** Platform to send on */
+ platform: MessagePlatformType;
+ /** Optional: reply to a specific message */
+ replyTo?: string;
+}
+
+export interface SendMessageState {
+ channelId?: string;
+ messageId?: string;
+ platform?: string;
+}
+
+export interface ReadMessagesParams {
+ /** Optional: read messages after this message ID */
+ after?: string;
+ /** Optional: read messages before this message ID */
+ before?: string;
+ /** Channel / conversation / room ID */
+ channelId: string;
+ /** Pagination cursor from a previous response (Feishu/Lark pageToken) */
+ cursor?: string;
+ /** End time as Unix second timestamp (Feishu/Lark only) */
+ endTime?: string;
+ /** Max number of messages to fetch (default: 20, max: 100) */
+ limit?: number;
+ /** Platform to read from */
+ platform: MessagePlatformType;
+ /** Start time as Unix second timestamp (Feishu/Lark only) */
+ startTime?: string;
+}
+
+export interface ReadMessagesState {
+ channelId?: string;
+ /** Whether more messages are available */
+ hasMore?: boolean;
+ messages?: MessageItem[];
+ /** Cursor for fetching the next page */
+ nextCursor?: string;
+ platform?: string;
+ totalFetched?: number;
+}
+
+export interface MessageItem {
+ attachments?: { name: string; url: string }[];
+ author: { id: string; name: string };
+ content: string;
+ id: string;
+ replyTo?: string;
+ timestamp: string;
+}
+
+export interface EditMessageParams {
+ /** Channel ID where the message is */
+ channelId: string;
+ /** New content */
+ content: string;
+ /** Message ID to edit */
+ messageId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface EditMessageState {
+ messageId?: string;
+ success?: boolean;
+}
+
+export interface DeleteMessageParams {
+ /** Channel ID where the message is */
+ channelId: string;
+ /** Message ID to delete */
+ messageId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface DeleteMessageState {
+ messageId?: string;
+ success?: boolean;
+}
+
+export interface SearchMessagesParams {
+ /** Optional: filter by author */
+ authorId?: string;
+ /** Channel ID to search in */
+ channelId: string;
+ /** Max results (default: 25) */
+ limit?: number;
+ /** Platform */
+ platform: MessagePlatformType;
+ /** Search query */
+ query: string;
+}
+
+export interface SearchMessagesState {
+ messages?: MessageItem[];
+ query?: string;
+ totalFound?: number;
+}
+
+export interface ReactToMessageParams {
+ /** Channel ID */
+ channelId: string;
+ /** Emoji to react with (unicode emoji or platform-specific format) */
+ emoji: string;
+ /** Message ID to react to */
+ messageId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface ReactToMessageState {
+ messageId?: string;
+ success?: boolean;
+}
+
+export interface GetReactionsParams {
+ /** Channel ID */
+ channelId: string;
+ /** Message ID */
+ messageId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface GetReactionsState {
+ messageId?: string;
+ reactions?: { count: number; emoji: string; users?: string[] }[];
+}
+
+export interface PinMessageParams {
+ /** Channel ID */
+ channelId: string;
+ /** Message ID to pin */
+ messageId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface PinMessageState {
+ messageId?: string;
+ success?: boolean;
+}
+
+export interface UnpinMessageParams {
+ /** Channel ID */
+ channelId: string;
+ /** Message ID to unpin */
+ messageId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface UnpinMessageState {
+ messageId?: string;
+ success?: boolean;
+}
+
+export interface ListPinsParams {
+ /** Channel ID */
+ channelId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface ListPinsState {
+ messages?: MessageItem[];
+}
+
+// --- Channel Management ---
+
+export interface GetChannelInfoParams {
+ /** Channel ID */
+ channelId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface GetChannelInfoState {
+ description?: string;
+ id?: string;
+ memberCount?: number;
+ name?: string;
+ type?: string;
+}
+
+export interface ListChannelsParams {
+ /** Optional: filter by category or type */
+ filter?: string;
+ /** Platform */
+ platform: MessagePlatformType;
+ /** Server / workspace / group ID (required for platforms with multi-server) */
+ serverId?: string;
+}
+
+export interface ListChannelsState {
+ channels?: { id: string; name: string; type?: string }[];
+}
+
+// --- Member Information ---
+
+export interface GetMemberInfoParams {
+ /** Member / user ID */
+ memberId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+ /** Server / workspace ID (required for some platforms) */
+ serverId?: string;
+}
+
+export interface GetMemberInfoState {
+ avatar?: string;
+ displayName?: string;
+ id?: string;
+ roles?: string[];
+ status?: string;
+ username?: string;
+}
+
+// --- Thread Operations ---
+
+export interface CreateThreadParams {
+ /** Channel ID to create thread in */
+ channelId: string;
+ /** Optional: initial message content */
+ content?: string;
+ /** Optional: message ID to start thread from */
+ messageId?: string;
+ /** Thread name */
+ name: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface CreateThreadState {
+ threadId?: string;
+}
+
+export interface ListThreadsParams {
+ /** Channel ID */
+ channelId: string;
+ /** Platform */
+ platform: MessagePlatformType;
+}
+
+export interface ListThreadsState {
+ threads?: { id: string; messageCount?: number; name: string }[];
+}
+
+export interface ReplyToThreadParams {
+ /** Reply content */
+ content: string;
+ /** Platform */
+ platform: MessagePlatformType;
+ /** Thread ID */
+ threadId: string;
+}
+
+export interface ReplyToThreadState {
+ messageId?: string;
+ threadId?: string;
+}
+
+// --- Platform-Specific: Polls ---
+
+export interface CreatePollParams {
+ /** Channel ID */
+ channelId: string;
+ /** Duration in hours (platform-specific limits) */
+ duration?: number;
+ /** Allow multiple answers */
+ multipleAnswers?: boolean;
+ /** Poll options */
+ options: string[];
+ /** Platform */
+ platform: MessagePlatformType;
+ /** Poll question */
+ question: string;
+}
+
+export interface CreatePollState {
+ messageId?: string;
+ pollId?: string;
+}
+
+// --- Bot Management ---
+
+export interface ListPlatformsParams {
+ /** No parameters needed */
+}
+
+export interface PlatformInfo {
+ credentialFields: { key: string; label: string; required: boolean; type: string }[];
+ id: string;
+ name: string;
+}
+
+export interface ListPlatformsState {
+ platforms: PlatformInfo[];
+}
+
+export interface ListBotsParams {
+ /** No parameters needed — returns all bots for the current agent */
+}
+
+export interface ConfiguredBotInfo {
+ applicationId: string;
+ enabled: boolean;
+ id: string;
+ platform: string;
+ runtimeStatus?: string;
+ /** Default server/guild/workspace ID (for listing channels) */
+ serverId?: string;
+ /** Owner's user ID on the platform (for sending DMs) */
+ userId?: string;
+}
+
+export interface ListBotsState {
+ bots: ConfiguredBotInfo[];
+}
+
+export interface GetBotDetailParams {
+ botId: string;
+}
+
+export interface GetBotDetailState {
+ applicationId: string;
+ enabled: boolean;
+ id: string;
+ platform: string;
+ runtimeStatus?: string;
+ settings?: Record<string, unknown>;
+}
+
+export interface CreateBotParams {
+ /** Agent ID to attach the bot to */
+ agentId: string;
+ /** Application ID for webhook routing */
+ applicationId: string;
+ /** Credential key-value pairs (platform-specific) */
+ credentials: Record<string, string>;
+ /** Target platform */
+ platform: string;
+}
+
+export interface CreateBotState {
+ id: string;
+ platform: string;
+}
+
+export interface UpdateBotParams {
+ botId: string;
+ credentials?: Record<string, string>;
+ settings?: Record<string, unknown>;
+}
+
+export interface UpdateBotState {
+ success: boolean;
+}
+
+export interface DeleteBotParams {
+ botId: string;
+}
+
+export interface DeleteBotState {
+ success: boolean;
+}
+
+export interface ToggleBotParams {
+ botId: string;
+ enabled: boolean;
+}
+
+export interface ToggleBotState {
+ enabled: boolean;
+ success: boolean;
+}
+
+export interface ConnectBotParams {
+ botId: string;
+}
+
+export interface ConnectBotState {
+ status: string;
+}
diff --git a/packages/builtin-tools/package.json b/packages/builtin-tools/package.json
index 6e008004faa..ad08a071f24 100644
--- a/packages/builtin-tools/package.json
+++ b/packages/builtin-tools/package.json
@@ -28,6 +28,7 @@
"@lobechat/builtin-tool-knowledge-base": "workspace:*",
"@lobechat/builtin-tool-local-system": "workspace:*",
"@lobechat/builtin-tool-memory": "workspace:*",
+ "@lobechat/builtin-tool-message": "workspace:*",
"@lobechat/builtin-tool-notebook": "workspace:*",
"@lobechat/builtin-tool-page-agent": "workspace:*",
"@lobechat/builtin-tool-remote-device": "workspace:*",
diff --git a/packages/builtin-tools/src/index.ts b/packages/builtin-tools/src/index.ts
index 3883371c2be..70443711f29 100644
--- a/packages/builtin-tools/src/index.ts
+++ b/packages/builtin-tools/src/index.ts
@@ -12,6 +12,7 @@ import { GTDManifest } from '@lobechat/builtin-tool-gtd';
import { KnowledgeBaseManifest } from '@lobechat/builtin-tool-knowledge-base';
import { LocalSystemManifest } from '@lobechat/builtin-tool-local-system';
import { MemoryManifest } from '@lobechat/builtin-tool-memory';
+import { MessageManifest } from '@lobechat/builtin-tool-message';
import { NotebookManifest } from '@lobechat/builtin-tool-notebook';
import { PageAgentManifest } from '@lobechat/builtin-tool-page-agent';
import { RemoteDeviceManifest } from '@lobechat/builtin-tool-remote-device';
@@ -174,6 +175,11 @@ export const builtinTools: LobeBuiltinTool[] = [
manifest: CalculatorManifest,
type: 'builtin',
},
+ {
+ identifier: MessageManifest.identifier,
+ manifest: MessageManifest,
+ type: 'builtin',
+ },
{
hidden: true,
identifier: RemoteDeviceManifest.identifier,
diff --git a/packages/builtin-tools/src/inspectors.ts b/packages/builtin-tools/src/inspectors.ts
index 6da468ca52e..48a48448900 100644
--- a/packages/builtin-tools/src/inspectors.ts
+++ b/packages/builtin-tools/src/inspectors.ts
@@ -32,6 +32,7 @@ import {
LocalSystemManifest,
} from '@lobechat/builtin-tool-local-system/client';
import { MemoryInspectors, MemoryManifest } from '@lobechat/builtin-tool-memory/client';
+import { MessageInspectors, MessageManifest } from '@lobechat/builtin-tool-message/client';
import { NotebookInspectors, NotebookManifest } from '@lobechat/builtin-tool-notebook/client';
import { PageAgentInspectors, PageAgentManifest } from '@lobechat/builtin-tool-page-agent/client';
import {
@@ -71,6 +72,7 @@ const BuiltinToolInspectors: Record<string, Record<string, BuiltinInspector>> =
[KnowledgeBaseManifest.identifier]: KnowledgeBaseInspectors as Record<string, BuiltinInspector>,
[LocalSystemManifest.identifier]: LocalSystemInspectors as Record<string, BuiltinInspector>,
[MemoryManifest.identifier]: MemoryInspectors as Record<string, BuiltinInspector>,
+ [MessageManifest.identifier]: MessageInspectors as Record<string, BuiltinInspector>,
[NotebookManifest.identifier]: NotebookInspectors as Record<string, BuiltinInspector>,
[PageAgentManifest.identifier]: PageAgentInspectors as Record<string, BuiltinInspector>,
[LobeActivatorManifest.identifier]: LobeActivatorInspectors as Record<string, BuiltinInspector>,
diff --git a/packages/builtin-tools/src/interventions.ts b/packages/builtin-tools/src/interventions.ts
index 1c2c2729d0b..94fe60ddc32 100644
--- a/packages/builtin-tools/src/interventions.ts
+++ b/packages/builtin-tools/src/interventions.ts
@@ -14,6 +14,7 @@ import {
LocalSystemInterventions,
} from '@lobechat/builtin-tool-local-system/client';
import { MemoryInterventions, MemoryManifest } from '@lobechat/builtin-tool-memory/client';
+import { MessageInterventions, MessageManifest } from '@lobechat/builtin-tool-message/client';
import { NotebookManifest } from '@lobechat/builtin-tool-notebook';
import { NotebookInterventions } from '@lobechat/builtin-tool-notebook/client';
import {
@@ -34,6 +35,7 @@ export const BuiltinToolInterventions: Record<string, Record<string, any>> = {
[GTDManifest.identifier]: GTDInterventions,
[LocalSystemIdentifier]: LocalSystemInterventions,
[MemoryManifest.identifier]: MemoryInterventions,
+ [MessageManifest.identifier]: MessageInterventions,
[NotebookManifest.identifier]: NotebookInterventions,
[UserInteractionIdentifier]: UserInteractionInterventions,
};
diff --git a/packages/builtin-tools/src/renders.ts b/packages/builtin-tools/src/renders.ts
index a009212d5b6..3f9abd3a95f 100644
--- a/packages/builtin-tools/src/renders.ts
+++ b/packages/builtin-tools/src/renders.ts
@@ -22,6 +22,7 @@ import {
LocalSystemRenders,
} from '@lobechat/builtin-tool-local-system/client';
import { MemoryManifest, MemoryRenders } from '@lobechat/builtin-tool-memory/client';
+import { MessageManifest, MessageRenders } from '@lobechat/builtin-tool-message/client';
import { NotebookManifest, NotebookRenders } from '@lobechat/builtin-tool-notebook/client';
import { SkillStoreManifest, SkillStoreRenders } from '@lobechat/builtin-tool-skill-store/client';
import { SkillsManifest, SkillsRenders } from '@lobechat/builtin-tool-skills/client';
@@ -45,6 +46,7 @@ const BuiltinToolsRenders: Record<string, Record<string, BuiltinRender>> = {
[KnowledgeBaseManifest.identifier]: KnowledgeBaseRenders as Record<string, BuiltinRender>,
[LocalSystemManifest.identifier]: LocalSystemRenders as Record<string, BuiltinRender>,
[MemoryManifest.identifier]: MemoryRenders as Record<string, BuiltinRender>,
+ [MessageManifest.identifier]: MessageRenders as Record<string, BuiltinRender>,
[NotebookManifest.identifier]: NotebookRenders as Record<string, BuiltinRender>,
[SkillStoreManifest.identifier]: SkillStoreRenders as Record<string, BuiltinRender>,
[SkillsManifest.identifier]: SkillsRenders as Record<string, BuiltinRender>,
diff --git a/packages/builtin-tools/src/streamings.ts b/packages/builtin-tools/src/streamings.ts
index acfd2404fcb..e6747811226 100644
--- a/packages/builtin-tools/src/streamings.ts
+++ b/packages/builtin-tools/src/streamings.ts
@@ -24,6 +24,7 @@ import {
LocalSystemStreamings,
} from '@lobechat/builtin-tool-local-system/client';
import { MemoryManifest, MemoryStreamings } from '@lobechat/builtin-tool-memory/client';
+import { MessageManifest, MessageStreamings } from '@lobechat/builtin-tool-message/client';
import { NotebookManifest, NotebookStreamings } from '@lobechat/builtin-tool-notebook/client';
import { type BuiltinStreaming } from '@lobechat/types';
@@ -53,6 +54,7 @@ const BuiltinToolStreamings: Record<string, Record<string, BuiltinStreaming>> =
[GTDManifest.identifier]: GTDStreamings as Record<string, BuiltinStreaming>,
[LocalSystemManifest.identifier]: LocalSystemStreamings as Record<string, BuiltinStreaming>,
[MemoryManifest.identifier]: MemoryStreamings as Record<string, BuiltinStreaming>,
+ [MessageManifest.identifier]: MessageStreamings as Record<string, BuiltinStreaming>,
[NotebookManifest.identifier]: NotebookStreamings as Record<string, BuiltinStreaming>,
};
diff --git a/packages/const/src/bot.ts b/packages/const/src/bot.ts
new file mode 100644
index 00000000000..05d867dde8a
--- /dev/null
+++ b/packages/const/src/bot.ts
@@ -0,0 +1,18 @@
+/** Default debounce window (ms) for message batching. */
+export const DEFAULT_BOT_DEBOUNCE_MS = 2000;
+
+/** Maximum debounce window (ms) allowed across all platforms. */
+export const MAX_BOT_DEBOUNCE_MS = 30_000;
+
+/** Default number of messages to read from channel history. */
+export const DEFAULT_BOT_HISTORY_LIMIT = 50;
+
+/**
+ * Maximum number of messages allowed at the interface layer.
+ * This is the upper bound across all platforms (Slack supports up to 999).
+ * Each platform service clamps to its own API limit.
+ */
+export const MAX_BOT_HISTORY_LIMIT = 999;
+
+/** Minimum number of messages allowed for history limit. */
+export const MIN_BOT_HISTORY_LIMIT = 1;
diff --git a/packages/const/src/index.ts b/packages/const/src/index.ts
index 5ac477aec2b..bfd70a68647 100644
--- a/packages/const/src/index.ts
+++ b/packages/const/src/index.ts
@@ -1,3 +1,4 @@
+export * from './bot';
export * from './currency';
export * from './desktop';
export * from './discover';
diff --git a/packages/const/src/recommendedSkill.ts b/packages/const/src/recommendedSkill.ts
index 3f930e8b2a2..89477084acb 100644
--- a/packages/const/src/recommendedSkill.ts
+++ b/packages/const/src/recommendedSkill.ts
@@ -16,6 +16,7 @@ export const RECOMMENDED_SKILLS: RecommendedSkillItem[] = [
{ id: 'lobe-cloud-sandbox', type: RecommendedSkillType.Builtin },
{ id: 'lobe-gtd', type: RecommendedSkillType.Builtin },
{ id: 'lobe-notebook', type: RecommendedSkillType.Builtin },
+ { id: 'lobe-message', type: RecommendedSkillType.Builtin },
// Klavis skills
{ id: 'gmail', type: RecommendedSkillType.Klavis },
{ id: 'notion', type: RecommendedSkillType.Klavis },
diff --git a/packages/prompts/src/prompts/botPlatformContext/index.ts b/packages/prompts/src/prompts/botPlatformContext/index.ts
index 611d77cbeb0..82aebc41773 100644
--- a/packages/prompts/src/prompts/botPlatformContext/index.ts
+++ b/packages/prompts/src/prompts/botPlatformContext/index.ts
@@ -6,25 +6,38 @@ export interface BotPlatformInfo {
/**
* Format bot platform context into a system-level instruction.
*
+ * Always tells the AI which platform it's running on so it can adapt its behavior.
* When the platform does not support Markdown, instructs the AI to use plain text only.
*/
export const formatBotPlatformContext = ({
platformName,
supportsMarkdown,
-}: BotPlatformInfo): string | null => {
- if (supportsMarkdown) return null;
-
- return [
+}: BotPlatformInfo): string => {
+ const lines = [
`<bot_platform_context platform="${platformName}">`,
- 'The current IM platform does NOT support Markdown rendering.',
- 'You MUST NOT use any Markdown formatting in your response, including:',
- '- **bold**, *italic*, ~~strikethrough~~',
- '- `inline code` or ```code blocks```',
- '- # Headings',
- '- [links](url)',
- '- Tables, blockquotes, or HTML tags',
+ `You are currently responding on the **${platformName}** platform.`,
+ `Adapt your responses to this platform's conventions and capabilities.`,
'',
- 'Use plain text only. Use line breaks, indentation, dashes, and numbering to structure your response for readability.',
- '</bot_platform_context>',
- ].join('\n');
+ '- Do NOT reference UI elements from other environments (e.g. "check the sidebar", "click the button above").',
+ '- Keep responses concise — IM platforms have character limits and small viewports.',
+ ];
+
+ if (!supportsMarkdown) {
+ lines.push(
+ '',
+ 'This platform does NOT support Markdown rendering.',
+ 'You MUST NOT use any Markdown formatting in your response, including:',
+ '- **bold**, *italic*, ~~strikethrough~~',
+ '- `inline code` or ```code blocks```',
+ '- # Headings',
+ '- [links](url)',
+ '- Tables, blockquotes, or HTML tags',
+ '',
+ 'Use plain text only. Use line breaks, indentation, dashes, and numbering to structure your response for readability.',
+ );
+ }
+
+ lines.push('</bot_platform_context>');
+
+ return lines.join('\n');
};
diff --git a/src/locales/default/agent.ts b/src/locales/default/agent.ts
index e4ed339ba2f..1f9b7fdba97 100644
--- a/src/locales/default/agent.ts
+++ b/src/locales/default/agent.ts
@@ -124,5 +124,13 @@ export default {
'channel.signingSecretHint': 'Used to verify webhook requests.',
'channel.showUsageStats': 'Show Usage Stats',
'channel.showUsageStatsHint': 'Show token usage, cost, and duration stats in bot replies',
+ 'channel.historyLimit': 'History Message Limit',
+ 'channel.historyLimitHint': 'Default number of messages to fetch when reading channel history',
+ 'channel.serverId': 'Default Server / Guild ID',
+ 'channel.serverIdHint':
+ 'Your default server or guild ID on this platform. The AI uses it to list channels without asking.',
+ 'channel.userId': 'Your Platform User ID',
+ 'channel.userIdHint':
+ 'Your user ID on this platform. The AI can use it to send you direct messages.',
'channel.runtimeDisconnected': 'Bot disconnected',
} as const;
diff --git a/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx b/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx
index a989340b23d..961daa4372e 100644
--- a/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx
+++ b/src/routes/(main)/agent/_layout/Sidebar/Header/Nav.tsx
@@ -23,7 +23,7 @@ const Nav = memo(() => {
const agentId = params.aid;
const pathname = usePathname();
const isProfileActive = pathname.includes('/profile');
- const isIntegrationActive = pathname.includes('/channel');
+ const isChannelActive = pathname.includes('/channel');
const router = useQueryRoute();
const { isAgentEditable } = useServerConfigStore(featureFlagsSelectors);
const toggleCommandMenu = useGlobalStore((s) => s.toggleCommandMenu);
@@ -34,7 +34,7 @@ const Nav = memo(() => {
const { mutate } = useActionSWR('openNewTopicOrSaveTopic', openNewTopicOrSaveTopic);
const handleNewTopic = () => {
// If in agent sub-route, navigate back to agent chat first
- if (isProfileActive && agentId) {
+ if ((isProfileActive || isChannelActive) && agentId) {
router.push(urlJoin('/agent', agentId));
}
mutate();
@@ -60,7 +60,7 @@ const Nav = memo(() => {
)}
{!hideProfile && (
<NavItem
- active={isIntegrationActive}
+ active={isChannelActive}
icon={RadioTowerIcon}
title={t('tab.integration')}
onClick={() => {
diff --git a/src/routes/(main)/agent/channel/detail/Body.tsx b/src/routes/(main)/agent/channel/detail/Body.tsx
index 67e929ebf5b..9028df045fa 100644
--- a/src/routes/(main)/agent/channel/detail/Body.tsx
+++ b/src/routes/(main)/agent/channel/detail/Body.tsx
@@ -28,8 +28,9 @@ const prefixCls = 'ant';
const styles = createStaticStyles(({ css }) => ({
form: css`
- .${prefixCls}-form-item-control:has(.${prefixCls}-input, .${prefixCls}-select, .${prefixCls}-input-number) {
- flex: none;
+ .${prefixCls}-form-item-control {
+ flex: 0 0 50% !important;
+ width: 50%;
}
`,
}));
diff --git a/src/routes/(main)/agent/channel/index.tsx b/src/routes/(main)/agent/channel/index.tsx
index 8ec39353002..3776751e2b1 100644
--- a/src/routes/(main)/agent/channel/index.tsx
+++ b/src/routes/(main)/agent/channel/index.tsx
@@ -34,7 +34,6 @@ const ChannelPage = memo(() => {
const { data: providers, isLoading: providersLoading } = useAgentStore((s) =>
s.useFetchBotProviders(aid),
);
- const { data: runtimeStatuses } = useAgentStore((s) => s.useFetchBotRuntimeStatuses(aid));
const isLoading = platformsLoading || providersLoading;
@@ -46,17 +45,13 @@ const ChannelPage = memo(() => {
new Map<string, BotRuntimeStatus>(
(providers ?? [])
.filter((provider) => provider.enabled)
- .map((provider) => {
- const runtimeStatus = runtimeStatuses?.find(
- (item) =>
- item.platform === provider.platform &&
- item.applicationId === provider.applicationId,
- );
-
- return [provider.platform, runtimeStatus?.status ?? BOT_RUNTIME_STATUSES.disconnected];
- }),
+ .map((provider) => [
+ provider.platform,
+ ((provider as any).runtimeStatus as BotRuntimeStatus) ??
+ BOT_RUNTIME_STATUSES.disconnected,
+ ]),
),
- [providers, runtimeStatuses],
+ [providers],
);
const activePlatformDef = useMemo(
diff --git a/src/server/routers/lambda/agentBotProvider.ts b/src/server/routers/lambda/agentBotProvider.ts
index ae366e404ff..e5244a4d808 100644
--- a/src/server/routers/lambda/agentBotProvider.ts
+++ b/src/server/routers/lambda/agentBotProvider.ts
@@ -73,7 +73,16 @@ export const agentBotProviderRouter = router({
getByAgentId: agentBotProviderProcedure
.input(z.object({ agentId: z.string() }))
.query(async ({ input, ctx }) => {
- return ctx.agentBotProviderModel.findByAgentId(input.agentId);
+ const providers = await ctx.agentBotProviderModel.findByAgentId(input.agentId);
+
+ const statuses = await Promise.all(
+ providers.map((p) => getBotRuntimeStatus(p.platform, p.applicationId)),
+ );
+
+ return providers.map((p, i) => ({
+ ...p,
+ runtimeStatus: statuses[i].status,
+ }));
}),
getRuntimeStatus: authedProcedure
@@ -92,16 +101,16 @@ export const agentBotProviderRouter = router({
.optional(),
)
.query(async ({ input, ctx }) => {
- return ctx.agentBotProviderModel.query(input);
- }),
+ const providers = await ctx.agentBotProviderModel.query(input);
- listRuntimeStatuses: agentBotProviderProcedure
- .input(z.object({ agentId: z.string() }))
- .query(async ({ input, ctx }) => {
- const providers = await ctx.agentBotProviderModel.findByAgentId(input.agentId);
- return Promise.all(
- providers.map((provider) => getBotRuntimeStatus(provider.platform, provider.applicationId)),
+ const statuses = await Promise.all(
+ providers.map((p) => getBotRuntimeStatus(p.platform, p.applicationId)),
);
+
+ return providers.map((p, i) => ({
+ ...p,
+ runtimeStatus: statuses[i].status,
+ }));
}),
connectBot: agentBotProviderProcedure
@@ -140,6 +149,7 @@ export const agentBotProviderRouter = router({
provider.credentials,
(provider.settings as Record<string, unknown>) || {},
applicationId,
+ platform,
);
if (!result.valid) {
diff --git a/src/server/routers/lambda/botMessage.ts b/src/server/routers/lambda/botMessage.ts
new file mode 100644
index 00000000000..ab295547b83
--- /dev/null
+++ b/src/server/routers/lambda/botMessage.ts
@@ -0,0 +1,475 @@
+import type { MessagePlatformType } from '@lobechat/builtin-tool-message';
+import type { MessageRuntimeService } from '@lobechat/builtin-tool-message/executionRuntime';
+import { LarkApiClient } from '@lobechat/chat-adapter-feishu';
+import { QQApiClient } from '@lobechat/chat-adapter-qq';
+import { WechatApiClient } from '@lobechat/chat-adapter-wechat';
+import {
+ DEFAULT_BOT_HISTORY_LIMIT,
+ MAX_BOT_HISTORY_LIMIT,
+ MIN_BOT_HISTORY_LIMIT,
+} from '@lobechat/const';
+import { TRPCError } from '@trpc/server';
+import { z } from 'zod';
+
+import type { DecryptedBotProvider } from '@/database/models/agentBotProvider';
+import { AgentBotProviderModel } from '@/database/models/agentBotProvider';
+import { authedProcedure, router } from '@/libs/trpc/lambda';
+import { serverDatabase } from '@/libs/trpc/lambda/middleware';
+import { KeyVaultsGateKeeper } from '@/server/modules/KeyVaultsEncrypt';
+import { DiscordApi } from '@/server/services/bot/platforms/discord/api';
+import { DiscordMessageService } from '@/server/services/bot/platforms/discord/service';
+import { FeishuMessageService } from '@/server/services/bot/platforms/feishu/service';
+import { QQMessageService } from '@/server/services/bot/platforms/qq/service';
+import { SlackApi } from '@/server/services/bot/platforms/slack/api';
+import { SlackMessageService } from '@/server/services/bot/platforms/slack/service';
+import { TelegramApi } from '@/server/services/bot/platforms/telegram/api';
+import { TelegramMessageService } from '@/server/services/bot/platforms/telegram/service';
+import { WechatMessageService } from '@/server/services/bot/platforms/wechat/service';
+
+// ── Middleware ────────────────────────────────────────────
+
+const botMessageProcedure = authedProcedure.use(serverDatabase).use(async (opts) => {
+ const { ctx } = opts;
+ const gateKeeper = await KeyVaultsGateKeeper.initWithEnvKey();
+
+ return opts.next({
+ ctx: {
+ agentBotProviderModel: new AgentBotProviderModel(ctx.serverDB, ctx.userId, gateKeeper),
+ },
+ });
+});
+
+// ── Service Factory ──────────────────────────────────────
+
+const createServiceForBot = (provider: DecryptedBotProvider): MessageRuntimeService => {
+ const { platform, applicationId, credentials } = provider;
+
+ switch (platform) {
+ case 'discord': {
+ return new DiscordMessageService(new DiscordApi(credentials.botToken));
+ }
+ case 'slack': {
+ return new SlackMessageService(new SlackApi(credentials.botToken));
+ }
+ case 'telegram': {
+ return new TelegramMessageService(new TelegramApi(credentials.botToken));
+ }
+ case 'feishu': {
+ return new FeishuMessageService(
+ new LarkApiClient(applicationId, credentials.appSecret, 'feishu'),
+ 'feishu',
+ );
+ }
+ case 'lark': {
+ return new FeishuMessageService(
+ new LarkApiClient(applicationId, credentials.appSecret, 'lark'),
+ 'lark',
+ );
+ }
+ case 'qq': {
+ return new QQMessageService(new QQApiClient(applicationId, credentials.appSecret));
+ }
+ case 'wechat': {
+ return new WechatMessageService(
+ new WechatApiClient(credentials.botToken, credentials.botId),
+ applicationId,
+ );
+ }
+ default: {
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: `Unsupported platform: ${platform}`,
+ });
+ }
+ }
+};
+
+const resolveBot = async (
+ model: AgentBotProviderModel,
+ botId: string,
+): Promise<{
+ platform: MessagePlatformType;
+ service: MessageRuntimeService;
+ settings: Record<string, unknown>;
+}> => {
+ const provider = await model.findById(botId);
+ if (!provider) {
+ throw new TRPCError({ code: 'NOT_FOUND', message: `Bot not found: ${botId}` });
+ }
+ if (!provider.enabled) {
+ throw new TRPCError({ code: 'BAD_REQUEST', message: `Bot is disabled: ${botId}` });
+ }
+ return {
+ platform: provider.platform as MessagePlatformType,
+ service: createServiceForBot(provider),
+ settings: (provider.settings as Record<string, unknown>) ?? {},
+ };
+};
+
+// ── Router ───────────────────────────────────────────────
+
+export const botMessageRouter = router({
+ // ==================== Direct Messaging ====================
+
+ sendDirectMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ content: z.string(),
+ userId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ if (!service.sendDirectMessage) {
+ throw new TRPCError({
+ code: 'BAD_REQUEST',
+ message: `sendDirectMessage is not supported on ${platform}`,
+ });
+ }
+ return service.sendDirectMessage({
+ content: input.content,
+ platform,
+ userId: input.userId,
+ });
+ }),
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ content: z.string(),
+ embeds: z.array(z.record(z.unknown())).optional(),
+ replyTo: z.string().optional(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.sendMessage({
+ channelId: input.channelId,
+ content: input.content,
+ embeds: input.embeds,
+ platform,
+ replyTo: input.replyTo,
+ });
+ }),
+
+ readMessages: botMessageProcedure
+ .input(
+ z.object({
+ after: z
+ .string()
+ .optional()
+ .transform((v) => v || undefined),
+ before: z
+ .string()
+ .optional()
+ .transform((v) => v || undefined),
+ botId: z.string(),
+ channelId: z.string(),
+ cursor: z.string().optional(),
+ endTime: z.string().optional(),
+ limit: z.number().min(MIN_BOT_HISTORY_LIMIT).max(MAX_BOT_HISTORY_LIMIT).optional(),
+ startTime: z.string().optional(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform, settings } = await resolveBot(
+ ctx.agentBotProviderModel,
+ input.botId,
+ );
+ const defaultLimit = (settings.historyLimit as number) || DEFAULT_BOT_HISTORY_LIMIT;
+ return service.readMessages({
+ after: input.after,
+ before: input.before,
+ channelId: input.channelId,
+ cursor: input.cursor,
+ endTime: input.endTime,
+ limit: input.limit ?? defaultLimit,
+ platform,
+ startTime: input.startTime,
+ });
+ }),
+
+ editMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ content: z.string(),
+ messageId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.editMessage({
+ channelId: input.channelId,
+ content: input.content,
+ messageId: input.messageId,
+ platform,
+ });
+ }),
+
+ deleteMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ messageId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.deleteMessage({
+ channelId: input.channelId,
+ messageId: input.messageId,
+ platform,
+ });
+ }),
+
+ searchMessages: botMessageProcedure
+ .input(
+ z.object({
+ authorId: z.string().optional(),
+ botId: z.string(),
+ channelId: z.string(),
+ limit: z.number().min(MIN_BOT_HISTORY_LIMIT).max(MAX_BOT_HISTORY_LIMIT).optional(),
+ query: z.string(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.searchMessages({
+ authorId: input.authorId,
+ channelId: input.channelId,
+ limit: input.limit,
+ platform,
+ query: input.query,
+ });
+ }),
+
+ // ==================== Reactions ====================
+
+ reactToMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ emoji: z.string(),
+ messageId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.reactToMessage({
+ channelId: input.channelId,
+ emoji: input.emoji,
+ messageId: input.messageId,
+ platform,
+ });
+ }),
+
+ getReactions: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ messageId: z.string(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.getReactions({
+ channelId: input.channelId,
+ messageId: input.messageId,
+ platform,
+ });
+ }),
+
+ // ==================== Pin Management ====================
+
+ pinMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ messageId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.pinMessage({
+ channelId: input.channelId,
+ messageId: input.messageId,
+ platform,
+ });
+ }),
+
+ unpinMessage: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ messageId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.unpinMessage({
+ channelId: input.channelId,
+ messageId: input.messageId,
+ platform,
+ });
+ }),
+
+ listPins: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.listPins({
+ channelId: input.channelId,
+ platform,
+ });
+ }),
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.getChannelInfo({
+ channelId: input.channelId,
+ platform,
+ });
+ }),
+
+ listChannels: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ filter: z.string().optional(),
+ serverId: z.string().optional(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.listChannels({
+ filter: input.filter,
+ platform,
+ serverId: input.serverId,
+ });
+ }),
+
+ // ==================== Member Information ====================
+
+ getMemberInfo: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ memberId: z.string(),
+ serverId: z.string().optional(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.getMemberInfo({
+ memberId: input.memberId,
+ platform,
+ serverId: input.serverId,
+ });
+ }),
+
+ // ==================== Thread Operations ====================
+
+ createThread: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ content: z.string().optional(),
+ messageId: z.string().optional(),
+ name: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.createThread({
+ channelId: input.channelId,
+ content: input.content,
+ messageId: input.messageId,
+ name: input.name,
+ platform,
+ });
+ }),
+
+ listThreads: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ }),
+ )
+ .query(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.listThreads({
+ channelId: input.channelId,
+ platform,
+ });
+ }),
+
+ replyToThread: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ content: z.string(),
+ threadId: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.replyToThread({
+ content: input.content,
+ platform,
+ threadId: input.threadId,
+ });
+ }),
+
+ // ==================== Polls ====================
+
+ createPoll: botMessageProcedure
+ .input(
+ z.object({
+ botId: z.string(),
+ channelId: z.string(),
+ duration: z.number().optional(),
+ multipleAnswers: z.boolean().optional(),
+ options: z.array(z.string()).min(2),
+ question: z.string(),
+ }),
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { service, platform } = await resolveBot(ctx.agentBotProviderModel, input.botId);
+ return service.createPoll({
+ channelId: input.channelId,
+ duration: input.duration,
+ multipleAnswers: input.multipleAnswers,
+ options: input.options,
+ platform,
+ question: input.question,
+ });
+ }),
+});
diff --git a/src/server/routers/lambda/index.ts b/src/server/routers/lambda/index.ts
index ff3b8351d68..7d3f5db5ca1 100644
--- a/src/server/routers/lambda/index.ts
+++ b/src/server/routers/lambda/index.ts
@@ -21,6 +21,7 @@ import { aiChatRouter } from './aiChat';
import { aiModelRouter } from './aiModel';
import { aiProviderRouter } from './aiProvider';
import { apiKeyRouter } from './apiKey';
+import { botMessageRouter } from './botMessage';
import { briefRouter } from './brief';
import { chunkRouter } from './chunk';
import { comfyuiRouter } from './comfyui';
@@ -62,6 +63,7 @@ import { videoRouter } from './video';
export const lambdaRouter = router({
agent: agentRouter,
agentBotProvider: agentBotProviderRouter,
+ botMessage: botMessageRouter,
agentCronJob: agentCronJobRouter,
agentDocument: agentDocumentRouter,
agentEval: agentEvalRouter,
diff --git a/src/server/services/bot/AgentBridgeService.ts b/src/server/services/bot/AgentBridgeService.ts
index e24e4904ef0..5676eefb390 100644
--- a/src/server/services/bot/AgentBridgeService.ts
+++ b/src/server/services/bot/AgentBridgeService.ts
@@ -528,10 +528,10 @@ export class AgentBridgeService {
} catch (error) {
log('executeWithWebhooks: execAgent failed: %O', error);
- // Rethrow FK violation errors (e.g. stale topic_id) so that callers like
- // handleSubscribedMessage can detect and recover (reset thread state).
- const cause = (error as any)?.cause;
- if (cause?.code === PG_FOREIGN_KEY_VIOLATION) {
+ // For stale topicId FK violations, re-throw so handleSubscribedMessage can clear
+ // the cached topicId and retry as a fresh mention instead of showing a DB error.
+ const errMsg = error instanceof Error ? error.message : String(error);
+ if (errMsg.includes('Failed query') && errMsg.includes('topic_id')) {
throw error;
}
diff --git a/src/server/services/bot/BotMessageRouter.ts b/src/server/services/bot/BotMessageRouter.ts
index ff9ab1f91a9..aed8565716c 100644
--- a/src/server/services/bot/BotMessageRouter.ts
+++ b/src/server/services/bot/BotMessageRouter.ts
@@ -1,4 +1,5 @@
import { createIoRedisState } from '@chat-adapter/state-ioredis';
+import { DEFAULT_BOT_DEBOUNCE_MS } from '@lobechat/const';
import { Chat, ConsoleLogger, type Message, type MessageContext } from 'chat';
import debug from 'debug';
@@ -20,7 +21,6 @@ import {
type PlatformDefinition,
platformRegistry,
} from './platforms';
-import { DEFAULT_DEBOUNCE_MS } from './platforms/const';
const log = debug('lobe-server:bot:message-router');
@@ -229,7 +229,7 @@ export class BotMessageRouter {
const commands = this.buildCommands(serverDB, { agentId, platform, userId });
const concurrencyStrategy = (settings.concurrency as string) || 'debounce';
- const debounceMs = (settings.debounceMs as number) || DEFAULT_DEBOUNCE_MS;
+ const debounceMs = (settings.debounceMs as number) || DEFAULT_BOT_DEBOUNCE_MS;
const chatBot = this.createChatBot(
adapters,
`agent-${agentId}`,
diff --git a/src/server/services/bot/platforms/const.ts b/src/server/services/bot/platforms/const.ts
index dfafa0a449b..c7faab47a81 100644
--- a/src/server/services/bot/platforms/const.ts
+++ b/src/server/services/bot/platforms/const.ts
@@ -1,5 +1,15 @@
-/** Default debounce window (ms) for message batching. */
-export const DEFAULT_DEBOUNCE_MS = 2000;
+import type { FieldSchema } from './types';
-/** Maximum debounce window (ms) allowed across all platforms. */
-export const MAX_DEBOUNCE_MS = 30_000;
+export const serverIdField: FieldSchema = {
+ key: 'serverId',
+ description: 'channel.serverIdHint',
+ label: 'channel.serverId',
+ type: 'string',
+};
+
+export const userIdField: FieldSchema = {
+ key: 'userId',
+ description: 'channel.userIdHint',
+ label: 'channel.userId',
+ type: 'string',
+};
diff --git a/src/server/services/bot/platforms/discord/api.ts b/src/server/services/bot/platforms/discord/api.ts
index d8ff0f12874..a80d0581fa2 100644
--- a/src/server/services/bot/platforms/discord/api.ts
+++ b/src/server/services/bot/platforms/discord/api.ts
@@ -2,7 +2,17 @@ import { REST } from '@discordjs/rest';
import debug from 'debug';
import {
ApplicationCommandType,
+ ChannelType,
+ type RESTGetAPIChannelMessageReactionUsersResult,
+ type RESTGetAPIChannelMessageResult,
+ type RESTGetAPIChannelMessagesResult,
+ type RESTGetAPIChannelPinsResult,
+ type RESTGetAPIChannelResult,
+ type RESTGetAPIGuildChannelsResult,
+ type RESTGetAPIGuildMemberResult,
+ type RESTGetAPIGuildThreadsResult,
type RESTPostAPIChannelMessageResult,
+ type RESTPostAPIChannelThreadsResult,
Routes,
} from 'discord-api-types/v10';
@@ -15,6 +25,18 @@ export class DiscordApi {
this.rest = new REST({ version: '10' }).setToken(botToken);
}
+ // ==================== DM ====================
+
+ async createDMChannel(recipientId: string): Promise<{ id: string }> {
+ log('createDMChannel: recipientId=%s', recipientId);
+ const data = (await this.rest.post(Routes.userChannels(), {
+ body: { recipient_id: recipientId },
+ })) as { id: string };
+ return { id: data.id };
+ }
+
+ // ==================== Existing Methods ====================
+
async editMessage(channelId: string, messageId: string, content: string): Promise<void> {
log('editMessage: channel=%s, message=%s', channelId, messageId);
await this.rest.patch(Routes.channelMessage(channelId, messageId), { body: { content } });
@@ -47,6 +69,160 @@ export class DiscordApi {
return { id: data.id };
}
+ // ==================== Message Operations ====================
+
+ async getMessages(
+ channelId: string,
+ query?: { after?: string; before?: string; limit?: number },
+ ): Promise<RESTGetAPIChannelMessagesResult> {
+ log('getMessages: channel=%s, query=%o', channelId, query);
+ return (await this.rest.get(Routes.channelMessages(channelId), {
+ query: new URLSearchParams(
+ Object.entries(query ?? {})
+ .filter(([, v]) => v !== undefined)
+ .map(([k, v]) => [k, String(v)]),
+ ),
+ })) as RESTGetAPIChannelMessagesResult;
+ }
+
+ async getMessage(channelId: string, messageId: string): Promise<RESTGetAPIChannelMessageResult> {
+ log('getMessage: channel=%s, message=%s', channelId, messageId);
+ return (await this.rest.get(
+ Routes.channelMessage(channelId, messageId),
+ )) as RESTGetAPIChannelMessageResult;
+ }
+
+ async deleteMessage(channelId: string, messageId: string): Promise<void> {
+ log('deleteMessage: channel=%s, message=%s', channelId, messageId);
+ await this.rest.delete(Routes.channelMessage(channelId, messageId));
+ }
+
+ async createReaction(channelId: string, messageId: string, emoji: string): Promise<void> {
+ log('createReaction: channel=%s, message=%s, emoji=%s', channelId, messageId, emoji);
+ await this.rest.put(
+ Routes.channelMessageOwnReaction(channelId, messageId, encodeURIComponent(emoji)),
+ );
+ }
+
+ async getReactions(
+ channelId: string,
+ messageId: string,
+ emoji: string,
+ ): Promise<RESTGetAPIChannelMessageReactionUsersResult> {
+ log('getReactions: channel=%s, message=%s, emoji=%s', channelId, messageId, emoji);
+ return (await this.rest.get(
+ Routes.channelMessageReaction(channelId, messageId, encodeURIComponent(emoji)),
+ )) as RESTGetAPIChannelMessageReactionUsersResult;
+ }
+
+ // ==================== Pin Operations ====================
+
+ async pinMessage(channelId: string, messageId: string): Promise<void> {
+ log('pinMessage: channel=%s, message=%s', channelId, messageId);
+ await this.rest.put(Routes.channelPin(channelId, messageId));
+ }
+
+ async unpinMessage(channelId: string, messageId: string): Promise<void> {
+ log('unpinMessage: channel=%s, message=%s', channelId, messageId);
+ await this.rest.delete(Routes.channelPin(channelId, messageId));
+ }
+
+ async getPinnedMessages(channelId: string): Promise<RESTGetAPIChannelPinsResult> {
+ log('getPinnedMessages: channel=%s', channelId);
+ return (await this.rest.get(Routes.channelPins(channelId))) as RESTGetAPIChannelPinsResult;
+ }
+
+ // ==================== Channel & Guild Operations ====================
+
+ async getChannel(channelId: string): Promise<RESTGetAPIChannelResult> {
+ log('getChannel: channel=%s', channelId);
+ return (await this.rest.get(Routes.channel(channelId))) as RESTGetAPIChannelResult;
+ }
+
+ async getGuildChannels(guildId: string): Promise<RESTGetAPIGuildChannelsResult> {
+ log('getGuildChannels: guild=%s', guildId);
+ return (await this.rest.get(Routes.guildChannels(guildId))) as RESTGetAPIGuildChannelsResult;
+ }
+
+ async getGuildMember(guildId: string, userId: string): Promise<RESTGetAPIGuildMemberResult> {
+ log('getGuildMember: guild=%s, user=%s', guildId, userId);
+ return (await this.rest.get(
+ Routes.guildMember(guildId, userId),
+ )) as RESTGetAPIGuildMemberResult;
+ }
+
+ // ==================== Thread Operations ====================
+
+ async startThreadFromMessage(
+ channelId: string,
+ messageId: string,
+ name: string,
+ ): Promise<RESTPostAPIChannelThreadsResult> {
+ log('startThreadFromMessage: channel=%s, message=%s, name=%s', channelId, messageId, name);
+ return (await this.rest.post(Routes.threads(channelId, messageId), {
+ body: { name: name.slice(0, 100) },
+ })) as RESTPostAPIChannelThreadsResult;
+ }
+
+ async startThreadWithoutMessage(
+ channelId: string,
+ name: string,
+ content?: string,
+ ): Promise<RESTPostAPIChannelThreadsResult> {
+ log('startThreadWithoutMessage: channel=%s, name=%s', channelId, name);
+ const body: Record<string, unknown> = {
+ name: name.slice(0, 100),
+ type: ChannelType.PublicThread,
+ };
+ if (content) {
+ body.message = { content };
+ }
+ return (await this.rest.post(Routes.threads(channelId), {
+ body,
+ })) as RESTPostAPIChannelThreadsResult;
+ }
+
+ async listActiveThreads(guildId: string): Promise<RESTGetAPIGuildThreadsResult> {
+ log('listActiveThreads: guild=%s', guildId);
+ return (await this.rest.get(
+ Routes.guildActiveThreads(guildId),
+ )) as RESTGetAPIGuildThreadsResult;
+ }
+
+ // ==================== Search ====================
+
+ async searchGuildMessages(
+ guildId: string,
+ query: Record<string, string>,
+ ): Promise<{ messages: RESTGetAPIChannelMessagesResult[]; total_results: number }> {
+ log('searchGuildMessages: guild=%s, query=%o', guildId, query);
+ return (await this.rest.get(`/guilds/${guildId}/messages/search`, {
+ query: new URLSearchParams(query),
+ })) as { messages: RESTGetAPIChannelMessagesResult[]; total_results: number };
+ }
+
+ // ==================== Poll ====================
+
+ async createPoll(
+ channelId: string,
+ question: string,
+ answers: string[],
+ durationHours?: number,
+ multiselect?: boolean,
+ ): Promise<RESTPostAPIChannelMessageResult> {
+ log('createPoll: channel=%s, question=%s', channelId, question);
+ return (await this.rest.post(Routes.channelMessages(channelId), {
+ body: {
+ poll: {
+ allow_multiselect: multiselect ?? false,
+ answers: answers.map((text) => ({ poll_media: { text } })),
+ duration: durationHours ?? 24,
+ question: { text: question },
+ },
+ },
+ })) as RESTPostAPIChannelMessageResult;
+ }
+
async registerCommands(
applicationId: string,
commands: Array<{ command: string; description: string }>,
diff --git a/src/server/services/bot/platforms/discord/const.ts b/src/server/services/bot/platforms/discord/const.ts
new file mode 100644
index 00000000000..2b3a8456e9f
--- /dev/null
+++ b/src/server/services/bot/platforms/discord/const.ts
@@ -0,0 +1,2 @@
+/** Discord API allows max 100 messages per request. */
+export const MAX_DISCORD_HISTORY_LIMIT = 100;
diff --git a/src/server/services/bot/platforms/discord/protocol-spec.md b/src/server/services/bot/platforms/discord/protocol-spec.md
new file mode 100644
index 00000000000..5284bb90257
--- /dev/null
+++ b/src/server/services/bot/platforms/discord/protocol-spec.md
@@ -0,0 +1,1354 @@
+# Discord Bot REST API v10 消息操作协议规范
+
+> 适用对象:实现 Discord Bot 消息工具(Message Tool)的 SDK、网关和独立 Bot。
+>
+> 整理依据:Discord 官方 REST API v10 文档 (`https://docs.discord.com/developers/resources/message`)、`discord-api-types/v10` TypeScript 类型定义、`@discordjs/rest` SDK 实现。
+>
+> 说明:文中标注 "工程建议" 的内容来自现有客户端实现经验,用于提高兼容性;它们不是服务端返回字段本身的一部分。
+
+## 1. 概述
+
+Discord Bot REST API v10 是 Discord 官方提供的 HTTP/JSON 协议,用于 Bot 对频道消息进行 CRUD 操作、表情反应、置顶、线程管理等。协议基座地址是 `https://discord.com/api/v10`。协议核心特征有四点:一是认证方式采用 `Authorization: Bot {token}` 头部;二是所有标识符均为 Snowflake(64 位整数的字符串表示);三是速率限制通过响应头动态下发,客户端必须解析并遵守;四是需要 `MESSAGE_CONTENT` 特权意图(Privileged Intent)才能读取消息内容字段。
+
+## 2. 认证与公共请求规范
+
+### 2.1 认证方式
+
+Discord Bot 使用 Bot Token 进行认证,Token 在 Discord Developer Portal 创建应用时获取。
+
+| Header | 示例值 | 是否必需 | 说明 |
+| --------------- | ------------------------------- | -------- | ------------------------------- |
+| `Authorization` | `Bot MTk4NjIy.Cl2FMQ.ZnCjm...` | 是 | 固定前缀 `Bot` 加空格加 Token。 |
+| `Content-Type` | `application/json` | 是 | JSON 请求体时必须带上。 |
+| `User-Agent` | `DiscordBot (https://url, 1.0)` | 是 | Discord 要求携带 User-Agent。 |
+
+### 2.2 基座地址
+
+```
+https://discord.com/api/v10
+```
+
+所有接口 URL 均相对于此基座地址。例如 `GET /channels/{channel.id}/messages` 的完整 URL 为 `https://discord.com/api/v10/channels/123456789/messages`。
+
+### 2.3 Snowflake 标识符
+
+Discord 使用 Snowflake 作为全局唯一 ID,格式为字符串化的 64 位整数。示例:`"1234567890123456789"`。Snowflake 包含时间戳信息,可用于分页和排序。
+
+### 2.4 速率限制
+
+Discord 的速率限制分为全局和按路由两级。
+
+**全局速率限制**
+
+每个 Bot Token 全局上限为 **50 请求 / 秒**。交互端点(Interaction endpoints)不受此限。
+
+**按路由速率限制**
+
+每个路由有独立的请求配额。主要参数(Major Parameters)包括 `channel_id`、`guild_id`、`webhook_id`,相同主要参数共享桶(bucket)。
+
+**速率限制响应头**
+
+| Header | 类型 | 说明 |
+| ------------------------- | --------- | ------------------------------------------- |
+| `X-RateLimit-Limit` | `number` | 当前桶允许的总请求数。 |
+| `X-RateLimit-Remaining` | `number` | 当前桶剩余可用请求数。 |
+| `X-RateLimit-Reset` | `number` | 桶重置的 Unix 时间戳(秒,含小数)。 |
+| `X-RateLimit-Reset-After` | `number` | 距桶重置的剩余秒数(含小数)。 |
+| `X-RateLimit-Bucket` | `string` | 桶的唯一标识符。 |
+| `X-RateLimit-Global` | `boolean` | 仅在 429 响应中出现,表示触发的是全局限制。 |
+| `X-RateLimit-Scope` | `string` | 限制范围:`user`、`global` 或 `shared`。 |
+
+**429 响应体**
+
+```json
+{
+ "global": false,
+ "message": "You are being rate limited.",
+ "retry_after": 1.234
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------------- | --------- | -------------------------- |
+| `message` | `string` | 错误信息。 |
+| `retry_after` | `number` | 需要等待的秒数(浮点数)。 |
+| `global` | `boolean` | 是否为全局速率限制。 |
+
+**工程建议**
+
+- 动态解析响应头中的速率限制信息,不要硬编码限制值。
+- 收到 429 响应后,等待 `retry_after` 秒再重试。
+- IP 地址在 10 分钟内产生超过 10,000 个无效请求(401、403、429)会被 Cloudflare 临时封禁。
+- 使用 `@discordjs/rest` 等 SDK 时,库内部已自动处理速率限制,通常无需手动管理。
+
+## 3. 消息对象(Message Object)
+
+### 3.1 核心字段
+
+| 字段 | 类型 | 说明 |
+| -------------------- | -------------------- | --------------------------------------------------- |
+| `id` | `snowflake` | 消息 ID。 |
+| `channel_id` | `snowflake` | 消息所在频道 ID。 |
+| `author` | `User` | 消息发送者;Webhook 消息的 author 信息不完整。 |
+| `content` | `string` | 消息文本内容,最多 2000 字符。 |
+| `timestamp` | `ISO8601` | 消息创建时间。 |
+| `edited_timestamp` | `ISO8601?` | 最后编辑时间;未编辑时为 `null`。 |
+| `tts` | `boolean` | 是否为 TTS(文本转语音)消息。 |
+| `mention_everyone` | `boolean` | 是否 @everyone。 |
+| `mentions` | `User[]` | 被 @ 的用户列表。 |
+| `mention_roles` | `snowflake[]` | 被 @ 的角色 ID 列表。 |
+| `mention_channels` | `ChannelMention[]?` | 被 @ 的频道列表(仅公共服务器跨频道提及时出现)。 |
+| `attachments` | `Attachment[]` | 附件列表。 |
+| `embeds` | `Embed[]` | 富嵌入列表,最多 10 个。 |
+| `reactions` | `Reaction[]?` | 表情反应列表。 |
+| `nonce` | `integer \| string?` | 发送消息时的校验标识,最多 25 字符。 |
+| `pinned` | `boolean` | 是否被置顶。 |
+| `webhook_id` | `snowflake?` | Webhook 创建者 ID。 |
+| `type` | `integer` | 消息类型(0=DEFAULT, 19=REPLY 等,完整枚举 0-46)。 |
+| `flags` | `integer?` | 消息标志位域。 |
+| `message_reference` | `MessageReference?` | 回复 / 转发引用信息。 |
+| `referenced_message` | `Message?` | 被引用的消息对象。 |
+| `thread` | `Channel?` | 由此消息创建的线程。 |
+| `components` | `Component[]?` | 交互组件(按钮、选择菜单等)。 |
+| `sticker_items` | `StickerItem[]?` | 贴纸列表。 |
+| `poll` | `Poll?` | 投票数据。 |
+| `position` | `integer?` | 消息在线程中的近似位置。 |
+| `application_id` | `snowflake?` | 关联的应用 ID。 |
+
+### 3.2 消息标志(Message Flags)
+
+| 标志 | 值 | 说明 |
+| ------------------------ | --------- | ----------------------------------- |
+| `CROSSPOSTED` | `1 << 0` | 已发布到关注此频道的频道。 |
+| `IS_CROSSPOST` | `1 << 1` | 来自频道关注的消息。 |
+| `SUPPRESS_EMBEDS` | `1 << 2` | 隐藏嵌入内容。 |
+| `SOURCE_MESSAGE_DELETED` | `1 << 3` | 源消息已被删除。 |
+| `URGENT` | `1 << 4` | 紧急消息。 |
+| `HAS_THREAD` | `1 << 5` | 此消息有关联线程。 |
+| `EPHEMERAL` | `1 << 6` | 临时消息,仅调用者可见。 |
+| `LOADING` | `1 << 7` | 交互延迟响应("正在思考...")。 |
+| `SUPPRESS_NOTIFICATIONS` | `1 << 12` | 不触发推送通知。 |
+| `IS_VOICE_MESSAGE` | `1 << 13` | 语音消息。 |
+| `IS_COMPONENTS_V2` | `1 << 15` | 使用 Components V2 布局(不可变)。 |
+
+### 3.3 MESSAGE_CONTENT 特权意图
+
+没有 `MESSAGE_CONTENT` 意图(`1 << 15`)的 Bot,收到的消息对象中 `content`、`embeds`、`attachments`、`components` 字段为空,`poll` 字段不会出现。
+
+**工程建议**
+
+- 在 Discord Developer Portal 中为 Bot 启用 `MESSAGE_CONTENT` 意图。
+- 当 Bot 加入超过 100 个服务器时,需要通过 Discord 的审核流程才能使用该意图。
+
+## 4. 消息读取
+
+### 4.1 获取频道消息列表
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/channels/{channel.id}/messages`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Query Parameters**
+
+| 参数 | 类型 | 默认值 | 约束 | 说明 |
+| -------- | ----------- | ------ | ------------------------- | ------------------------ |
+| `around` | `snowflake` | 无 | 与 `before`/`after` 互斥 | 获取指定 ID 附近的消息。 |
+| `before` | `snowflake` | 无 | 与 `around`/`after` 互斥 | 获取指定 ID 之前的消息。 |
+| `after` | `snowflake` | 无 | 与 `around`/`before` 互斥 | 获取指定 ID 之后的消息。 |
+| `limit` | `integer` | 50 | 1–100 | 返回的最大消息数。 |
+
+**所需权限**
+
+- `VIEW_CHANNEL`(服务器频道)
+- `CONNECT`(语音频道)
+- `READ_MESSAGE_HISTORY`(缺少时返回空数组)
+
+**Response**
+
+成功时返回 `Message[]`(消息对象数组),按时间从新到旧排序。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages?limit=10&before=987654321098765432' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**工程建议**
+
+- `before`、`after`、`around` 三个参数互斥,同时传多个会导致不可预测的结果。
+- 使用 `before` 参数向前翻页,使用 `after` 参数向后翻页。
+- 无任何分页参数时返回频道最新的消息。
+
+## 5. 消息发送
+
+### 5.1 创建消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/channels/{channel.id}/messages`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | -------------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `Content-Type` | 是 | `application/json`。 |
+
+**Request Body**
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ------------------- | ------------------- | -------- | --------------------------------------------------------------------------------------------- |
+| `content` | `string` | \*1 | 消息文本,最多 2000 字符。 |
+| `nonce` | `integer \| string` | 否 | 消息校验标识,最多 25 字符,用于去重。 |
+| `tts` | `boolean` | 否 | 是否为 TTS 消息。 |
+| `embeds` | `Embed[]` | \*1 | 富嵌入数组,最多 10 个,总文本不超过 6000 字符。 |
+| `allowed_mentions` | `AllowedMentions` | 否 | 控制哪些提及会触发通知。 |
+| `message_reference` | `MessageReference` | 否 | 回复 / 转发时的引用信息。 |
+| `components` | `Component[]` | \*1 | 交互组件(按钮、选择菜单等)。 |
+| `sticker_ids` | `snowflake[]` | \*1 | 贴纸 ID 数组,最多 3 个。 |
+| `files` | `multipart` | \*1 | 文件上传(multipart/form-data)。 |
+| `attachments` | `Attachment[]` | 否 | 部分附件对象,用于描述上传的文件。 |
+| `flags` | `integer` | 否 | 可设置:`SUPPRESS_EMBEDS`、`SUPPRESS_NOTIFICATIONS`、`IS_VOICE_MESSAGE`、`IS_COMPONENTS_V2`。 |
+| `poll` | `PollCreateRequest` | \*1 | 投票创建对象。 |
+| `enforce_nonce` | `boolean` | 否 | 启用 nonce 去重检查(几分钟内相同 nonce 不重复发送)。 |
+
+\*1:`content`、`embeds`、`sticker_ids`、`components`、`poll`、`files` 中至少需要提供一个。
+
+**所需权限**
+
+- `SEND_MESSAGES`(服务器频道)
+- `SEND_TTS_MESSAGES`(TTS 消息时需要)
+- `READ_MESSAGE_HISTORY`(回复消息时需要)
+
+**Response**
+
+成功时返回 `Message` 对象。触发 `MESSAGE_CREATE` 网关事件。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "content": "Hello, World!",
+ "tts": false
+ }'
+```
+
+**回复消息示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "content": "这是一条回复消息",
+ "message_reference": {
+ "message_id": "987654321098765432"
+ }
+ }'
+```
+
+**限制与约束**
+
+- 最大请求体大小为 25 MiB。
+- 嵌入中的 `type` 字段固定为 `"rich"`,不可修改。
+- 不可手动设置嵌入中的 `provider`、`video` 以及图片尺寸字段。
+- 被引用的消息必须存在且不能是系统消息。
+- Discord 可能会过滤消息内容中的无效 Unicode 字符或导致格式异常的字符。
+
+**Embed 各字段长度限制**
+
+| 字段 | 最大字符数 |
+| ------------- | ---------- |
+| `title` | 256 |
+| `description` | 4096 |
+| `field.name` | 256 |
+| `field.value` | 1024 |
+| `footer.text` | 2048 |
+| `author.name` | 256 |
+| 所有文本总计 | 6000 |
+| `fields` 数量 | 25 |
+
+**AllowedMentions 对象**
+
+| 字段 | 类型 | 说明 |
+| -------------- | ------------- | ---------------------------------------------------------- |
+| `parse` | `string[]` | 允许解析的提及类型:`"roles"`、`"users"`、`"everyone"`。 |
+| `roles` | `snowflake[]` | 允许提及的角色 ID 列表(与 `parse` 中的 `"roles"` 互斥)。 |
+| `users` | `snowflake[]` | 允许提及的用户 ID 列表(与 `parse` 中的 `"users"` 互斥)。 |
+| `replied_user` | `boolean` | 回复时是否 @ 被回复的用户。 |
+
+**工程建议**
+
+- 常规消息默认解析所有类型的提及;交互 / Webhook 消息默认只解析用户提及。
+- 如果不需要触发通知,可使用 `flags` 设置 `SUPPRESS_NOTIFICATIONS`(`1 << 12`)。
+- 文件上传需要使用 `multipart/form-data`,JSON 部分放在 `payload_json` 字段中。
+
+## 6. 消息编辑
+
+### 6.1 编辑消息
+
+**Method**
+
+`PATCH`
+
+**URL**
+
+`/channels/{channel.id}/messages/{message.id}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | -------------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `Content-Type` | 是 | `application/json`。 |
+
+**Request Body**
+
+所有参数均为可选且可为 `null`。
+
+| 字段 | 类型 | 说明 |
+| ------------------ | ------------------ | ---------------------------------------------------------------------- |
+| `content` | `string?` | 新的消息文本,最多 2000 字符。传 `null` 清除文本。 |
+| `embeds` | `Embed[]?` | 新的嵌入数组。传 `[]` 清除所有嵌入。 |
+| `flags` | `integer?` | 可修改 `SUPPRESS_EMBEDS`(设置 / 取消)。`IS_COMPONENTS_V2` 仅可设置。 |
+| `components` | `Component[]?` | 新的交互组件。传 `[]` 清除组件。 |
+| `attachments` | `Attachment[]?` | 编辑后应保留的附件列表(v10 中必须包含全部要保留的附件)。 |
+| `allowed_mentions` | `AllowedMentions?` | 控制编辑后消息的提及通知。 |
+| `files` | `multipart` | 新上传的文件(需使用 multipart/form-data)。 |
+
+**权限说明**
+
+- 原始消息作者可编辑 `content`、`embeds`、`flags`、`components`。
+- 非作者用户只能编辑 `flags`,且需要 `MANAGE_MESSAGES` 权限。
+
+**Response**
+
+成功时返回更新后的 `Message` 对象。触发 `MESSAGE_UPDATE` 网关事件。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages/987654321098765432' \
+ -X PATCH \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "content": "编辑后的消息内容"
+ }'
+```
+
+**重要说明**
+
+- v10 中编辑附件时,`attachments` 数组必须包含所有要保留的附件。未列入的已有附件会被删除。
+- 编辑 `content` 后,`mentions`、`mention_roles`、`mention_everyone` 会根据新内容重新计算。
+- 编辑 `flags` 时,必须包含所有之前已设置的标志位,然后再加上要修改的。
+- 设置 `IS_COMPONENTS_V2` 标志时,`content` 和 `poll` 必须为 `null`,`embeds` 和 `sticker_ids` 必须为 `[]`,否则返回 `400 BAD REQUEST`。
+- `allowed_mentions` 会对照实际权限和消息中的提及格式做验证,防止 "幽灵 @"(收到通知但看不到提及)。
+
+**工程建议**
+
+- 只发送需要修改的字段,不需要重发整个消息体。
+- 编辑他人消息时只能修改 `flags`(如隐藏嵌入),不能修改 `content`。
+
+## 7. 消息删除
+
+### 7.1 删除消息
+
+**Method**
+
+`DELETE`
+
+**URL**
+
+`/channels/{channel.id}/messages/{message.id}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------------- | -------- | -------------------------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `X-Audit-Log-Reason` | 否 | 审计日志原因,URL 编码的字符串。 |
+
+**所需权限**
+
+- 删除自己的消息:无需额外权限。
+- 删除他人的消息:需要 `MANAGE_MESSAGES` 权限。
+
+**Response**
+
+成功时返回 `204 No Content`。触发 `MESSAGE_DELETE` 网关事件。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages/987654321098765432' \
+ -X DELETE \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ -H 'X-Audit-Log-Reason: Spam%20message'
+```
+
+**重要说明**
+
+- 删除超过 14 天(两周)的消息时,速率限制更加严格。
+- 如需批量删除,应使用 `POST /channels/{channel.id}/messages/bulk-delete` 端点(支持一次删除 2-100 条消息,但消息不能超过 14 天)。
+- 只有类型为 `DEFAULT`(0)、`REPLY`(19)、`CHAT_INPUT_COMMAND`(20)、`CONTEXT_MENU_COMMAND`(23) 等的消息可被删除;系统消息通常不可删除。
+
+**工程建议**
+
+- 删除他人消息时,建议在 `X-Audit-Log-Reason` 中说明原因,便于服务器管理员审计。
+- 批量删除大量消息时,注意处理速率限制,做好指数退避。
+
+## 8. 表情反应
+
+### 8.1 添加反应
+
+**Method**
+
+`PUT`
+
+**URL**
+
+`/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**URL 参数 `{emoji}` 格式**
+
+| 类型 | 格式 | 示例 |
+| ------- | --------------------- | --------------------------------- |
+| Unicode | URL 编码的 emoji 字符 | `%F0%9F%91%8D`(👍) |
+| 自定义 | `名称:ID` | `custom_emoji:123456789012345678` |
+
+**所需权限**
+
+- `READ_MESSAGE_HISTORY`(必需)。
+- `ADD_REACTIONS`(当消息上还没有人使用该 emoji 反应时必需)。
+
+**Response**
+
+成功时返回 `204 No Content`。
+
+**curl 示例**
+
+```bash
+# Unicode emoji(👍 = %F0%9F%91%8D)
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages/987654321098765432/reactions/%F0%9F%91%8D/@me' \
+ -X PUT \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ -H 'Content-Length: 0'
+
+# 自定义 emoji
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages/987654321098765432/reactions/custom_emoji:111222333444555666/@me' \
+ -X PUT \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ -H 'Content-Length: 0'
+```
+
+**重要说明**
+
+- emoji 必须进行 URL 编码,否则会返回 `10014: Unknown Emoji` 错误。
+- 反应端点有独立的速率限制,通常每 0.25 秒只能添加 1 个反应。
+- 每条消息最多可有 20 种不同的 emoji 反应。
+
+### 8.2 获取反应用户列表
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/channels/{channel.id}/messages/{message.id}/reactions/{emoji}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Query Parameters**
+
+| 参数 | 类型 | 默认值 | 约束 | 说明 |
+| ------- | ----------- | ------ | ------ | -------------------------------------------------- |
+| `type` | `integer` | 0 | 0 或 1 | `0` = 普通反应,`1` = 超级反应(Burst Reaction)。 |
+| `after` | `snowflake` | 无 | — | 获取此用户 ID 之后的用户。 |
+| `limit` | `integer` | 25 | 1–100 | 返回的最大用户数。 |
+
+**Response**
+
+成功时返回 `User[]`(用户对象数组)。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages/987654321098765432/reactions/%F0%9F%91%8D?limit=50' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**工程建议**
+
+- 使用 `after` 参数进行分页,每次传入上一页最后一个用户的 ID。
+- `type` 参数区分普通反应和超级反应(付费用户专属功能),默认获取普通反应。
+
+## 9. 消息置顶
+
+### 9.1 获取置顶消息列表
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/channels/{channel.id}/pins`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**所需权限**
+
+- `VIEW_CHANNEL`
+
+**Response**
+
+成功时返回 `Message[]`(被置顶的消息对象数组)。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/pins' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+### 9.2 置顶消息
+
+**Method**
+
+`PUT`
+
+**URL**
+
+`/channels/{channel.id}/pins/{message.id}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `X-Audit-Log-Reason` | 否 | 审计日志原因。 |
+
+**所需权限**
+
+- `MANAGE_MESSAGES`
+
+**Response**
+
+成功时返回 `204 No Content`。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/pins/987654321098765432' \
+ -X PUT \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ -H 'Content-Length: 0'
+```
+
+### 9.3 取消置顶消息
+
+**Method**
+
+`DELETE`
+
+**URL**
+
+`/channels/{channel.id}/pins/{message.id}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `X-Audit-Log-Reason` | 否 | 审计日志原因。 |
+
+**所需权限**
+
+- `MANAGE_MESSAGES`
+
+**Response**
+
+成功时返回 `204 No Content`。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/pins/987654321098765432' \
+ -X DELETE \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**重要说明**
+
+- 每个频道最多可以置顶 **50 条消息**。达到上限后再置顶会返回错误。
+- 置顶 / 取消置顶操作会触发系统消息发送到频道中。
+
+## 10. 频道与服务器信息
+
+### 10.1 获取频道信息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/channels/{channel.id}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Response**
+
+成功时返回 `Channel` 对象。如果频道是线程,会包含线程成员信息。
+
+**Channel 对象核心字段**
+
+| 字段 | 类型 | 说明 |
+| ----------------------- | ------------------------ | -------------------------------- |
+| `id` | `snowflake` | 频道 ID。 |
+| `type` | `integer` | 频道类型(见下方枚举)。 |
+| `guild_id` | `snowflake?` | 所属服务器 ID(DM 时无此字段)。 |
+| `name` | `string?` | 频道名称,1-100 字符。 |
+| `topic` | `string?` | 频道主题 / 描述。 |
+| `nsfw` | `boolean?` | 是否为年龄限制频道。 |
+| `position` | `integer?` | 排序位置。 |
+| `parent_id` | `snowflake?` | 父分类或线程父频道 ID。 |
+| `permission_overwrites` | `PermissionOverwrite[]?` | 显式权限覆写列表。 |
+| `rate_limit_per_user` | `integer?` | 慢速模式间隔(秒),0-21600。 |
+| `last_message_id` | `snowflake?` | 最后一条消息的 ID。 |
+| `thread_metadata` | `ThreadMetadata?` | 线程专属元数据(仅线程频道有)。 |
+| `member` | `ThreadMember?` | 当前用户的线程成员信息。 |
+| `owner_id` | `snowflake?` | 线程创建者 ID。 |
+| `message_count` | `integer?` | 线程中的消息数(删除时会递减)。 |
+| `member_count` | `integer?` | 线程成员数(上限显示 50)。 |
+
+**频道类型枚举**
+
+| 值 | 名称 | 说明 |
+| --- | --------------------- | ---------------- |
+| 0 | `GUILD_TEXT` | 服务器文本频道。 |
+| 1 | `DM` | 私信频道。 |
+| 2 | `GUILD_VOICE` | 服务器语音频道。 |
+| 3 | `GROUP_DM` | 群组私信频道。 |
+| 4 | `GUILD_CATEGORY` | 频道分类。 |
+| 5 | `GUILD_ANNOUNCEMENT` | 公告频道。 |
+| 10 | `ANNOUNCEMENT_THREAD` | 公告线程。 |
+| 11 | `PUBLIC_THREAD` | 公共线程。 |
+| 12 | `PRIVATE_THREAD` | 私密线程。 |
+| 13 | `GUILD_STAGE_VOICE` | 舞台频道。 |
+| 14 | `GUILD_DIRECTORY` | 服务器目录频道。 |
+| 15 | `GUILD_FORUM` | 论坛频道。 |
+| 16 | `GUILD_MEDIA` | 媒体频道。 |
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+### 10.2 获取服务器频道列表
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/guilds/{guild.id}/channels`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Response**
+
+成功时返回 `Channel[]`(频道对象数组)。**不包含线程**。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/guilds/111222333444555666/channels' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**工程建议**
+
+- 此端点不返回线程。要获取线程,使用 `GET /guilds/{guild.id}/threads/active`。
+- 返回的频道列表包含所有类型:文本、语音、分类、公告、论坛等。
+
+### 10.3 获取服务器成员信息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/guilds/{guild.id}/members/{user.id}`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Response**
+
+成功时返回 `GuildMember` 对象。
+
+**GuildMember 对象字段**
+
+| 字段 | 类型 | 说明 |
+| ------------------------------ | ------------- | ----------------------------------------------- |
+| `user` | `User?` | 用户对象(`MESSAGE_CREATE` 事件中可能不包含)。 |
+| `nick` | `string?` | 服务器昵称。 |
+| `avatar` | `string?` | 服务器头像哈希。 |
+| `banner` | `string?` | 服务器横幅哈希。 |
+| `roles` | `snowflake[]` | 角色 ID 数组。 |
+| `joined_at` | `ISO8601?` | 加入服务器的时间。 |
+| `premium_since` | `ISO8601?` | 开始 Boost 服务器的时间。 |
+| `deaf` | `boolean` | 是否在语音频道中被服务器静音(听)。 |
+| `mute` | `boolean` | 是否在语音频道中被服务器静音(说)。 |
+| `flags` | `integer` | 成员标志位域。 |
+| `pending` | `boolean?` | 是否通过了成员筛选。 |
+| `permissions` | `string?` | 成员在频道中的总权限(仅交互上下文中出现)。 |
+| `communication_disabled_until` | `ISO8601?` | 禁言(超时)到期时间。 |
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/guilds/111222333444555666/members/999888777666555444' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+## 11. 线程操作
+
+### 11.1 从消息创建线程
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/channels/{channel.id}/messages/{message.id}/threads`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------------- | -------- | -------------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `Content-Type` | 是 | `application/json`。 |
+| `X-Audit-Log-Reason` | 否 | 审计日志原因。 |
+
+**Request Body**
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ----------------------- | --------- | -------- | ----------------------------------------------- |
+| `name` | `string` | 是 | 线程名称,1-100 字符。 |
+| `auto_archive_duration` | `integer` | 否 | 自动归档超时(分钟):60、1440、4320 或 10080。 |
+| `rate_limit_per_user` | `integer` | 否 | 慢速模式间隔(秒),0-21600。 |
+
+**所需权限**
+
+- `CREATE_PUBLIC_THREADS`(文本频道)
+
+**线程类型自动确定规则**
+
+- 在 `GUILD_TEXT` 频道中创建 → `PUBLIC_THREAD`(11)
+- 在 `GUILD_ANNOUNCEMENT` 频道中创建 → `ANNOUNCEMENT_THREAD`(10)
+
+**Response**
+
+成功时返回 `Channel` 对象(线程频道)。触发 `THREAD_CREATE` 和 `MESSAGE_UPDATE` 网关事件。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages/987654321098765432/threads' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "name": "讨论这条消息",
+ "auto_archive_duration": 1440
+ }'
+```
+
+### 11.2 无消息创建线程
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/channels/{channel.id}/threads`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------------- | -------- | -------------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+| `Content-Type` | 是 | `application/json`。 |
+| `X-Audit-Log-Reason` | 否 | 审计日志原因。 |
+
+**Request Body**
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ----------------------- | --------- | -------- | ------------------------------------------------------------------- |
+| `name` | `string` | 是 | 线程名称,1-100 字符。 |
+| `auto_archive_duration` | `integer` | 否 | 自动归档超时(分钟):60、1440、4320 或 10080。 |
+| `type` | `integer` | 否 | 线程类型。目前默认为 `PRIVATE_THREAD`(12);未来版本将改为必需字段。 |
+| `invitable` | `boolean` | 否 | 非管理员是否可以拉人进线程(默认 `true`)。 |
+| `rate_limit_per_user` | `integer` | 否 | 慢速模式间隔(秒),0-21600。 |
+| `message` | `object` | 否 | 论坛 / 媒体频道中的初始消息内容(`ForumThreadMessageParams`)。 |
+
+**所需权限**
+
+- `CREATE_PUBLIC_THREADS`(公共线程)
+- `CREATE_PRIVATE_THREADS`(私密线程)
+- `SEND_MESSAGES`(论坛 / 媒体频道)
+
+**Response**
+
+成功时返回 `Channel` 对象(线程频道)。返回 `400 BAD REQUEST` 表示参数无效。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/threads' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "name": "新的讨论话题",
+ "type": 11,
+ "auto_archive_duration": 4320
+ }'
+```
+
+**带初始消息的线程(论坛频道)**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/threads' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "name": "论坛讨论帖",
+ "message": {
+ "content": "这是帖子的初始内容"
+ }
+ }'
+```
+
+### 11.3 获取活跃线程列表
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/guilds/{guild.id}/threads/active`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Response**
+
+| 字段 | 类型 | 说明 |
+| --------- | ---------------- | -------------------------------- |
+| `threads` | `Channel[]` | 活跃线程列表,按 ID 降序排列。 |
+| `members` | `ThreadMember[]` | 当前用户已加入的线程的成员对象。 |
+
+返回的线程包括公共线程和私密线程。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/guilds/111222333444555666/threads/active' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**ThreadMetadata 对象**
+
+| 字段 | 类型 | 说明 |
+| ----------------------- | ---------- | ---------------------------------------------------- |
+| `archived` | `boolean` | 线程是否已归档。 |
+| `auto_archive_duration` | `integer` | 自动归档超时(分钟)。 |
+| `archive_timestamp` | `ISO8601` | 最后一次归档状态变更的时间。 |
+| `locked` | `boolean` | 线程是否被锁定(锁定后非管理员不能编辑消息或属性)。 |
+| `invitable` | `boolean?` | 非管理员是否可以拉人进私密线程。 |
+| `create_timestamp` | `ISO8601?` | 线程创建时间。 |
+
+**ThreadMember 对象**
+
+| 字段 | 类型 | 说明 |
+| ---------------- | ----------- | ---------------- |
+| `id` | `snowflake` | 线程 ID。 |
+| `user_id` | `snowflake` | 用户 ID。 |
+| `join_timestamp` | `ISO8601` | 加入线程的时间。 |
+| `flags` | `integer` | 通知设置等标志。 |
+
+**工程建议**
+
+- 线程名称最大 100 字符,创建时应截断。
+- `type` 字段目前默认为 `PRIVATE_THREAD`(12),如果希望创建公共线程,必须显式传 `type: 11`。
+- 归档的线程不会出现在活跃线程列表中。
+- 论坛频道中的线程创建需要 `message` 字段提供初始消息。
+- 被固定的论坛帖子不会自动归档。
+
+## 12. 消息搜索
+
+### 12.1 搜索服务器消息
+
+> ⚠️ 此端点为预览功能(Preview Feature),于 2025 年 8 月 18 日向 Bot 开放,可能会有破坏性变更。
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/guilds/{guild.id}/messages/search`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| --------------- | -------- | --------------- |
+| `Authorization` | 是 | `Bot {token}`。 |
+
+**Query Parameters**
+
+| 参数 | 类型 | 默认值 | 约束 | 说明 |
+| ---------------------- | ------------- | ----------- | -------------- | ------------------------------------------------------------------------------------- |
+| `content` | `string` | 无 | 最多 1024 字符 | 搜索文本。 |
+| `author_id` | `snowflake[]` | 无 | 最多 1521 | 按作者 ID 过滤。 |
+| `author_type` | `string[]` | 无 | — | 按用户类型过滤(`user`、`bot`、`webhook`)。 |
+| `channel_id` | `snowflake[]` | 无 | 最多 500 | 限定搜索的频道范围。 |
+| `mentions` | `snowflake[]` | 无 | — | 按被提及的用户过滤。 |
+| `has` | `string[]` | 无 | — | 内容类型过滤:`link`、`embed`、`file`、`image`、`video`、`sound`、`sticker`、`poll`。 |
+| `attachment_extension` | `string[]` | 无 | — | 按附件文件类型过滤。 |
+| `pinned` | `boolean` | 无 | — | 仅返回置顶消息。 |
+| `sort_by` | `string` | `relevance` | — | 排序方式:`relevance`(相关性)或 `timestamp`(时间)。 |
+| `sort_order` | `string` | — | — | 排序方向:升序或降序。 |
+| `limit` | `integer` | 25 | 1–25 | 每页结果数。 |
+| `offset` | `integer` | 0 | 0–9975 | 分页偏移量。 |
+
+**所需权限**
+
+- `READ_MESSAGE_HISTORY`
+- 需要 `MESSAGE_CONTENT` 特权意图
+
+**Response**
+
+| 字段 | 类型 | 说明 |
+| ------------------- | ------------- | ------------------------ |
+| `messages` | `Message[][]` | 搜索结果,嵌套数组格式。 |
+| `total_results` | `integer` | 匹配的总结果数。 |
+| `threads` | `Channel[]?` | 相关线程(可选)。 |
+| `documents_indexed` | `integer?` | 索引状态(可选)。 |
+
+**特殊响应码**
+
+- `202 Accepted`:搜索索引尚未就绪,客户端应稍后重试。
+- `200 OK`:正常返回搜索结果。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/guilds/111222333444555666/messages/search?content=hello&limit=10&channel_id=123456789012345678' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**工程建议**
+
+- 此端点仍处于预览阶段,生产环境使用需谨慎。
+- 收到 `202` 响应时,应等待几秒后重试。
+- `messages` 是嵌套数组(每个结果是一个包含上下文消息的数组),不是扁平的消息数组。
+- 速率限制信息未公开,但实测较为宽松。
+
+## 13. 投票(Poll)
+
+### 13.1 创建投票消息
+
+投票通过 `POST /channels/{channel.id}/messages` 的 `poll` 字段创建。
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/channels/{channel.id}/messages`
+
+**Request Body**
+
+```json
+{
+ "poll": {
+ "question": {
+ "text": "你最喜欢的编程语言是什么?"
+ },
+ "answers": [
+ {
+ "poll_media": {
+ "text": "TypeScript",
+ "emoji": { "name": "🟦" }
+ }
+ },
+ {
+ "poll_media": {
+ "text": "Python",
+ "emoji": { "name": "🐍" }
+ }
+ },
+ {
+ "poll_media": {
+ "text": "Rust",
+ "emoji": { "name": "🦀" }
+ }
+ }
+ ],
+ "duration": 24,
+ "allow_multiselect": false,
+ "layout_type": 1
+ }
+}
+```
+
+**PollCreateRequest 对象**
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ------------------- | -------------- | -------- | --------------------------------------------- |
+| `question` | `PollMedia` | 是 | 投票问题。只支持 `text` 字段。 |
+| `answers` | `PollAnswer[]` | 是 | 答案选项数组,最多 10 个。 |
+| `duration` | `integer` | 否 | 投票持续时间(小时),默认 24,最长 32 天。 |
+| `allow_multiselect` | `boolean` | 否 | 是否允许多选,默认 `false`。 |
+| `layout_type` | `integer` | 否 | 布局类型,默认 1(`DEFAULT`),目前只有此值。 |
+
+**PollMedia 对象**
+
+| 字段 | 类型 | 说明 |
+| ------- | --------------- | ------------------------------------------------------------------------------ |
+| `text` | `string` | 文本内容。问题最多 300 字符,答案最多 55 字符。 |
+| `emoji` | `PartialEmoji?` | 可选 emoji。自定义 emoji 传 `{ "id": "..." }`,Unicode 传 `{ "name": "🐍" }`。 |
+
+**PollAnswer 对象**
+
+| 字段 | 类型 | 说明 |
+| ------------ | ----------- | ---------------------------------------- |
+| `answer_id` | `integer` | 答案 ID(仅在 API/Gateway 响应中出现)。 |
+| `poll_media` | `PollMedia` | 答案内容。 |
+
+**Poll 对象(响应中的完整结构)**
+
+| 字段 | 类型 | 说明 |
+| ------------------- | -------------- | ---------------------------- |
+| `question` | `PollMedia` | 投票问题。 |
+| `answers` | `PollAnswer[]` | 答案选项列表。 |
+| `expiry` | `ISO8601` | 投票关闭时间。 |
+| `allow_multiselect` | `boolean` | 是否允许多选。 |
+| `layout_type` | `integer` | 布局类型。 |
+| `results` | `PollResults?` | 投票结果(可能不总是出现)。 |
+
+**PollResults 对象**
+
+| 字段 | 类型 | 说明 |
+| --------------- | --------------- | ------------------------------------ |
+| `is_finalized` | `boolean` | 投票是否已结束(结果是否最终准确)。 |
+| `answer_counts` | `AnswerCount[]` | 各答案的票数统计。 |
+
+**AnswerCount 对象**
+
+| 字段 | 类型 | 说明 |
+| ---------- | --------- | ------------------------ |
+| `id` | `integer` | 答案 ID。 |
+| `count` | `integer` | 投票数。 |
+| `me_voted` | `boolean` | 当前用户是否投了此选项。 |
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/messages' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)' \
+ --data-raw '{
+ "poll": {
+ "question": { "text": "你最喜欢的编程语言是什么?" },
+ "answers": [
+ { "poll_media": { "text": "TypeScript" } },
+ { "poll_media": { "text": "Python" } },
+ { "poll_media": { "text": "Rust" } }
+ ],
+ "duration": 24,
+ "allow_multiselect": false
+ }
+ }'
+```
+
+### 13.2 提前结束投票
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/channels/{channel.id}/polls/{message.id}/expire`
+
+**说明**
+
+仅投票创建者可调用。立即关闭投票。
+
+**Response**
+
+成功时返回包含投票的 `Message` 对象。触发 `MESSAGE_UPDATE` 网关事件。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/polls/987654321098765432/expire' \
+ -X POST \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'Content-Type: application/json' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+### 13.3 获取投票答案的投票者列表
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/channels/{channel.id}/polls/{message.id}/answers/{answer.id}`
+
+**Query Parameters**
+
+| 参数 | 类型 | 默认值 | 约束 | 说明 |
+| ------- | ----------- | ------ | ----- | -------------------------- |
+| `after` | `snowflake` | 无 | — | 获取此用户 ID 之后的用户。 |
+| `limit` | `integer` | 25 | 1–100 | 返回的最大用户数。 |
+
+**Response**
+
+成功时返回 `User[]`(用户对象数组)。
+
+**curl 示例**
+
+```bash
+curl 'https://discord.com/api/v10/channels/123456789012345678/polls/987654321098765432/answers/1?limit=50' \
+ -H 'Authorization: Bot MTk4NjIy.Cl2FMQ.ZnCjm...' \
+ -H 'User-Agent: DiscordBot (https://example.com, 1.0)'
+```
+
+**工程建议**
+
+- 投票一旦创建不可编辑(不能修改问题、选项或持续时间)。
+- 投票消息不能包含 `content`、`embeds`、`sticker_ids`、`components` 等字段(可以但通常不需要)。
+- 投票结果中的 `is_finalized` 为 `false` 时,计数可能不完全准确。
+- 投票结束后,`results.is_finalized` 变为 `true`,计数变为最终值。
+
+## 14. 错误响应格式
+
+### 14.1 标准错误响应
+
+```json
+{
+ "code": 50035,
+ "errors": {
+ "content": {
+ "_errors": [
+ {
+ "code": "BASE_TYPE_MAX_LENGTH",
+ "message": "Must be 2000 or fewer in length."
+ }
+ ]
+ }
+ },
+ "message": "Invalid Form Body"
+}
+```
+
+**常见错误码**
+
+| 错误码 | 说明 |
+| ------ | ------------------------------------------ |
+| 10003 | Unknown Channel — 频道不存在。 |
+| 10008 | Unknown Message — 消息不存在。 |
+| 10014 | Unknown Emoji — emoji 不存在或编码错误。 |
+| 30003 | Maximum number of pins reached (50)。 |
+| 50001 | Missing Access — 缺少访问权限。 |
+| 50013 | Missing Permissions — 缺少操作所需的权限。 |
+| 50035 | Invalid Form Body — 请求体验证失败。 |
+
+### 14.2 权限不足(403)
+
+```json
+{
+ "code": 50013,
+ "message": "Missing Permissions"
+}
+```
+
+### 14.3 资源不存在(404)
+
+```json
+{
+ "code": 10008,
+ "message": "Unknown Message"
+}
+```
+
+## 15. 实测验证记录
+
+### 15.1 测试环境
+
+- **Guild**: LobeHub (ID: `1127171173982154893`)
+- **测试频道**: #system (ID: `1127182445373042728`)
+- **SDK**: `@discordjs/rest`
+- **测试日期**: 2026-03-26
+
+### 15.2 测试结果
+
+全部 12 项 API 调用均通过:
+
+| 序号 | API 方法 | 测试描述 | 结果 |
+| ---- | ------------------- | ------------------------------------------------------------------ | ---- |
+| 1 | `getGuildChannels` | 成功获取 guild 频道列表 | Pass |
+| 2 | `createMessage` | 发送 "🧪 Message tool API test" 成功,返回 messageId | Pass |
+| 3 | `getMessage` | 精确获取指定消息成功(新增的 API 方法,用于修复 getReactions bug) | Pass |
+| 4 | `editMessage` | 编辑消息内容成功 | Pass |
+| 5 | `createReaction` | 添加 👍 表情成功 | Pass |
+| 6 | `getReactions` | 获取到 1 个反应用户(修复后使用 getMessage 而非 getMessages) | Pass |
+| 7 | `deleteMessage` | 删除消息成功 | Pass |
+| 8 | `getMessages` | 成功获取 3 条历史消息(limit=3) | Pass |
+| 9 | `getChannel` | 返回频道类型 (0=text) 和名称 | Pass |
+| 10 | `getPinnedMessages` | 返回置顶消息列表 (0 条) | Pass |
+| 11 | `listActiveThreads` | 返回 250 个活跃线程 | Pass |
+| 12 | 全流程 | 12/12 通过 | Pass |
+
+### 15.3 关键发现
+
+1. **getReactions bug 修复**:原实现使用 `getMessages(limit=1)` 获取最新消息,无法命中目标消息。修复后使用 `getMessage(channelId, messageId)` 精确获取单条消息,确保能正确读取目标消息上的 reactions 字段。
+2. **Rate limiting 自动处理**:`@discordjs/rest` 库自动处理 429 响应的 `retry-after`,无需手动实现退避逻辑。
+3. **Unicode emoji URL 编码**:URL 编码的 Unicode emoji(如 👍 编码为 `%F0%9F%91%8D`)在 reaction API 中正常工作,无需额外处理。
+
+## 16. 接口一览表
+
+| 操作 | 方法 | URL | 请求体 | 响应码 |
+| -------------- | -------- | -------------------------------------------------------------------- | ------ | ------------------ |
+| 获取频道消息 | `GET` | `/channels/{channel.id}/messages` | 无 | 200 + Message\[] |
+| 获取单条消息 | `GET` | `/channels/{channel.id}/messages/{message.id}` | 无 | 200 + Message |
+| 创建消息 | `POST` | `/channels/{channel.id}/messages` | JSON | 200 + Message |
+| 编辑消息 | `PATCH` | `/channels/{channel.id}/messages/{message.id}` | JSON | 200 + Message |
+| 删除消息 | `DELETE` | `/channels/{channel.id}/messages/{message.id}` | 无 | 204 |
+| 添加反应 | `PUT` | `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}/@me` | 无 | 204 |
+| 获取反应用户 | `GET` | `/channels/{channel.id}/messages/{message.id}/reactions/{emoji}` | 无 | 200 + User\[] |
+| 获取置顶消息 | `GET` | `/channels/{channel.id}/pins` | 无 | 200 + Message\[] |
+| 置顶消息 | `PUT` | `/channels/{channel.id}/pins/{message.id}` | 无 | 204 |
+| 取消置顶 | `DELETE` | `/channels/{channel.id}/pins/{message.id}` | 无 | 204 |
+| 获取频道信息 | `GET` | `/channels/{channel.id}` | 无 | 200 + Channel |
+| 获取服务器频道 | `GET` | `/guilds/{guild.id}/channels` | 无 | 200 + Channel\[] |
+| 获取服务器成员 | `GET` | `/guilds/{guild.id}/members/{user.id}` | 无 | 200 + GuildMember |
+| 从消息创建线程 | `POST` | `/channels/{channel.id}/messages/{message.id}/threads` | JSON | 200 + Channel |
+| 无消息创建线程 | `POST` | `/channels/{channel.id}/threads` | JSON | 200 + Channel |
+| 获取活跃线程 | `GET` | `/guilds/{guild.id}/threads/active` | 无 | 200 + 复合对象 |
+| 搜索服务器消息 | `GET` | `/guilds/{guild.id}/messages/search` | 无 | 200/202 + 复合对象 |
+| 创建投票 | `POST` | `/channels/{channel.id}/messages`(带 `poll` 字段) | JSON | 200 + Message |
+
+## 17. 附录:与 DiscordApi 类的映射关系
+
+以下表格展示本规范中的 API 端点与代码库中 `DiscordApi` 类方法的对应关系:
+
+| DiscordApi 方法 | 对应端点 | 本文章节 |
+| ----------------------------- | -------------------------------------------------------- | -------- |
+| `getMessages()` | `GET /channels/{id}/messages` | 4.1 |
+| `getMessage()` | `GET /channels/{id}/messages/{id}` | 4.1 |
+| `createMessage()` | `POST /channels/{id}/messages` | 5.1 |
+| `editMessage()` | `PATCH /channels/{id}/messages/{id}` | 6.1 |
+| `deleteMessage()` | `DELETE /channels/{id}/messages/{id}` | 7.1 |
+| `createReaction()` | `PUT /channels/{id}/messages/{id}/reactions/{emoji}/@me` | 8.1 |
+| `getReactions()` | `GET /channels/{id}/messages/{id}/reactions/{emoji}` | 8.2 |
+| `getPinnedMessages()` | `GET /channels/{id}/pins` | 9.1 |
+| `pinMessage()` | `PUT /channels/{id}/pins/{id}` | 9.2 |
+| `unpinMessage()` | `DELETE /channels/{id}/pins/{id}` | 9.3 |
+| `getChannel()` | `GET /channels/{id}` | 10.1 |
+| `getGuildChannels()` | `GET /guilds/{id}/channels` | 10.2 |
+| `getGuildMember()` | `GET /guilds/{id}/members/{id}` | 10.3 |
+| `startThreadFromMessage()` | `POST /channels/{id}/messages/{id}/threads` | 11.1 |
+| `startThreadWithoutMessage()` | `POST /channels/{id}/threads` | 11.2 |
+| `listActiveThreads()` | `GET /guilds/{id}/threads/active` | 11.3 |
+| `searchGuildMessages()` | `GET /guilds/{id}/messages/search` | 12.1 |
+| `createPoll()` | `POST /channels/{id}/messages`(带 `poll` 字段) | 13.1 |
diff --git a/src/server/services/bot/platforms/discord/schema.ts b/src/server/services/bot/platforms/discord/schema.ts
index 961d577cee2..e7bcc802568 100644
--- a/src/server/services/bot/platforms/discord/schema.ts
+++ b/src/server/services/bot/platforms/discord/schema.ts
@@ -1,5 +1,13 @@
-import { DEFAULT_DEBOUNCE_MS, MAX_DEBOUNCE_MS } from '../const';
+import {
+ DEFAULT_BOT_DEBOUNCE_MS,
+ DEFAULT_BOT_HISTORY_LIMIT,
+ MAX_BOT_DEBOUNCE_MS,
+ MIN_BOT_HISTORY_LIMIT,
+} from '@lobechat/const';
+
+import { serverIdField, userIdField } from '../const';
import type { FieldSchema } from '../types';
+import { MAX_DISCORD_HISTORY_LIMIT } from './const';
export const schema: FieldSchema[] = [
{
@@ -54,10 +62,10 @@ export const schema: FieldSchema[] = [
},
{
key: 'debounceMs',
- default: DEFAULT_DEBOUNCE_MS,
+ default: DEFAULT_BOT_DEBOUNCE_MS,
description: 'channel.debounceMsHint',
label: 'channel.debounceMs',
- maximum: MAX_DEBOUNCE_MS,
+ maximum: MAX_BOT_DEBOUNCE_MS,
minimum: 100,
type: 'number',
visibleWhen: { field: 'concurrency', value: 'debounce' },
@@ -69,6 +77,17 @@ export const schema: FieldSchema[] = [
label: 'channel.showUsageStats',
type: 'boolean',
},
+ {
+ key: 'historyLimit',
+ default: DEFAULT_BOT_HISTORY_LIMIT,
+ description: 'channel.historyLimitHint',
+ label: 'channel.historyLimit',
+ maximum: MAX_DISCORD_HISTORY_LIMIT,
+ minimum: MIN_BOT_HISTORY_LIMIT,
+ type: 'number',
+ },
+ serverIdField,
+ userIdField,
// TODO: DM schema - not implemented yet
// {
// key: 'dm',
diff --git a/src/server/services/bot/platforms/discord/service.ts b/src/server/services/bot/platforms/discord/service.ts
new file mode 100644
index 00000000000..8ddd43c92fd
--- /dev/null
+++ b/src/server/services/bot/platforms/discord/service.ts
@@ -0,0 +1,276 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ MessageItem,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+import { DEFAULT_BOT_HISTORY_LIMIT } from '@lobechat/const';
+
+import type { MessageRuntimeService } from '@/server/services/toolExecution/serverRuntimes/message/adapters/types';
+
+import type { DiscordApi } from './api';
+import { MAX_DISCORD_HISTORY_LIMIT } from './const';
+
+/**
+ * Normalize a Discord API message object to MessageItem.
+ */
+const toMessageItem = (msg: any): MessageItem => ({
+ attachments: msg.attachments?.map((a: any) => ({ name: a.filename, url: a.url })),
+ author: { id: msg.author?.id ?? '', name: msg.author?.username ?? 'Unknown' },
+ content: msg.content ?? '',
+ id: msg.id,
+ replyTo: msg.message_reference?.message_id,
+ timestamp: msg.timestamp ?? new Date().toISOString(),
+});
+
+export class DiscordMessageService implements MessageRuntimeService {
+ constructor(private api: DiscordApi) {}
+
+ // ==================== Direct Messaging ====================
+
+ sendDirectMessage = async (params: {
+ content: string;
+ userId: string;
+ }): Promise<{ channelId?: string; messageId?: string; platform?: string }> => {
+ const dmChannel = await this.api.createDMChannel(params.userId);
+ const result = await this.api.createMessage(dmChannel.id, params.content);
+ return { channelId: dmChannel.id, messageId: result.id, platform: 'discord' };
+ };
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ const result = await this.api.createMessage(params.channelId, params.content);
+ return { channelId: params.channelId, messageId: result.id, platform: 'discord' };
+ };
+
+ readMessages = async (params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ const messages = await this.api.getMessages(params.channelId, {
+ after: params.after,
+ before: params.before,
+ limit: Math.min(params.limit ?? DEFAULT_BOT_HISTORY_LIMIT, MAX_DISCORD_HISTORY_LIMIT),
+ });
+ const items = messages.map(toMessageItem);
+ return {
+ channelId: params.channelId,
+ messages: items,
+ platform: 'discord',
+ totalFetched: items.length,
+ };
+ };
+
+ editMessage = async (params: EditMessageParams): Promise<EditMessageState> => {
+ await this.api.editMessage(params.channelId, params.messageId, params.content);
+ return { messageId: params.messageId, success: true };
+ };
+
+ deleteMessage = async (params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ await this.api.deleteMessage(params.channelId, params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ searchMessages = async (params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ const channel = await this.api.getChannel(params.channelId);
+ const guildId = (channel as any).guild_id;
+ if (!guildId) {
+ throw new Error('Search is only available in guild channels (not DMs)');
+ }
+
+ const query: Record<string, string> = {
+ channel_id: params.channelId,
+ content: params.query,
+ };
+ if (params.authorId) query.author_id = params.authorId;
+ if (params.limit) query.limit = String(Math.min(params.limit, 25));
+
+ const result = await this.api.searchGuildMessages(guildId, query);
+ const messages = result.messages
+ ?.flat()
+ .filter((m: any) => m.hit)
+ .map(toMessageItem);
+
+ return { messages, query: params.query, totalFound: result.total_results };
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ await this.api.createReaction(params.channelId, params.messageId, params.emoji);
+ return { messageId: params.messageId, success: true };
+ };
+
+ getReactions = async (params: GetReactionsParams): Promise<GetReactionsState> => {
+ // Fetch the specific message to get its reaction metadata
+ const msg = await this.api.getMessage(params.channelId, params.messageId);
+
+ if (!(msg as any).reactions) {
+ return { messageId: params.messageId, reactions: [] };
+ }
+
+ const reactions = await Promise.all(
+ ((msg as any).reactions as any[]).map(async (r: any) => {
+ const emoji = r.emoji.id ? `${r.emoji.name}:${r.emoji.id}` : r.emoji.name;
+ const users = await this.api.getReactions(params.channelId, params.messageId, emoji);
+ return {
+ count: r.count,
+ emoji,
+ users: users.map((u: any) => u.username ?? u.id),
+ };
+ }),
+ );
+
+ return { messageId: params.messageId, reactions };
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (params: PinMessageParams): Promise<PinMessageState> => {
+ await this.api.pinMessage(params.channelId, params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ unpinMessage = async (params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ await this.api.unpinMessage(params.channelId, params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ listPins = async (params: ListPinsParams): Promise<ListPinsState> => {
+ const pinned = await this.api.getPinnedMessages(params.channelId);
+ return { messages: pinned.map(toMessageItem) };
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ const channel = await this.api.getChannel(params.channelId);
+ return {
+ description: (channel as any).topic ?? undefined,
+ id: channel.id,
+ memberCount: (channel as any).member_count,
+ name: (channel as any).name ?? undefined,
+ type: String((channel as any).type),
+ };
+ };
+
+ listChannels = async (params: ListChannelsParams): Promise<ListChannelsState> => {
+ if (!params.serverId) {
+ throw new Error('Discord requires serverId (guild ID) to list channels');
+ }
+ const channels = await this.api.getGuildChannels(params.serverId);
+ const filtered = params.filter
+ ? channels.filter((c: any) => c.name?.includes(params.filter))
+ : channels;
+ return {
+ channels: filtered.map((c: any) => ({
+ id: c.id,
+ name: c.name ?? '',
+ type: String(c.type),
+ })),
+ };
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ if (!params.serverId) {
+ throw new Error('Discord requires serverId (guild ID) to get member info');
+ }
+ const member = await this.api.getGuildMember(params.serverId, params.memberId);
+ return {
+ avatar: member.avatar ?? (member.user as any)?.avatar ?? undefined,
+ displayName: member.nick ?? (member.user as any)?.global_name ?? undefined,
+ id: (member.user as any)?.id ?? params.memberId,
+ roles: member.roles,
+ status: undefined,
+ username: (member.user as any)?.username ?? undefined,
+ };
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (params: CreateThreadParams): Promise<CreateThreadState> => {
+ let thread: any;
+ if (params.messageId) {
+ thread = await this.api.startThreadFromMessage(
+ params.channelId,
+ params.messageId,
+ params.name,
+ );
+ } else {
+ thread = await this.api.startThreadWithoutMessage(
+ params.channelId,
+ params.name,
+ params.content,
+ );
+ }
+ return { threadId: thread.id };
+ };
+
+ listThreads = async (params: ListThreadsParams): Promise<ListThreadsState> => {
+ const channel = await this.api.getChannel(params.channelId);
+ const guildId = (channel as any).guild_id;
+ if (!guildId) {
+ throw new Error('Thread listing is only available in guild channels');
+ }
+
+ const result = await this.api.listActiveThreads(guildId);
+ const threads = result.threads
+ .filter((t: any) => t.parent_id === params.channelId)
+ .map((t: any) => ({
+ id: t.id,
+ messageCount: t.message_count,
+ name: t.name ?? '',
+ }));
+
+ return { threads };
+ };
+
+ replyToThread = async (params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ const result = await this.api.createMessage(params.threadId, params.content);
+ return { messageId: result.id, threadId: params.threadId };
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (params: CreatePollParams): Promise<CreatePollState> => {
+ const result = await this.api.createPoll(
+ params.channelId,
+ params.question,
+ params.options,
+ params.duration,
+ params.multipleAnswers,
+ );
+ return { messageId: result.id, pollId: result.id };
+ };
+}
diff --git a/src/server/services/bot/platforms/feishu/client.ts b/src/server/services/bot/platforms/feishu/client.ts
index c298b9a3301..f7af72ef28e 100644
--- a/src/server/services/bot/platforms/feishu/client.ts
+++ b/src/server/services/bot/platforms/feishu/client.ts
@@ -25,10 +25,9 @@ function extractChatId(platformThreadId: string): string {
return platformThreadId.split(':')[1];
}
-/** Resolve the Lark/Feishu domain from settings, defaulting to 'feishu'. */
-function resolveDomain(settings: Record<string, unknown>): 'lark' | 'feishu' {
- const domain = settings.domain;
- return domain === 'lark' ? 'lark' : 'feishu';
+/** Resolve the Lark/Feishu domain from the platform id. */
+function resolveDomain(platform: string): 'lark' | 'feishu' {
+ return platform === 'lark' ? 'lark' : 'feishu';
}
class FeishuWebhookClient implements PlatformClient {
@@ -42,7 +41,7 @@ class FeishuWebhookClient implements PlatformClient {
this.config = config;
this.id = config.platform;
this.applicationId = config.applicationId;
- this.domain = resolveDomain(config.settings);
+ this.domain = resolveDomain(config.platform);
}
// --- Lifecycle ---
@@ -94,7 +93,7 @@ class FeishuWebhookClient implements PlatformClient {
createAdapter(): Record<string, any> {
return {
- feishu: createLarkAdapter({
+ [this.config.platform]: createLarkAdapter({
appId: this.config.applicationId,
appSecret: this.config.credentials.appSecret,
encryptKey: this.config.credentials.encryptKey,
@@ -146,6 +145,7 @@ export class FeishuClientFactory extends ClientFactory {
credentials: Record<string, string>,
_settings?: Record<string, unknown>,
applicationId?: string,
+ platform?: string,
): Promise<ValidationResult> {
const errors: Array<{ field: string; message: string }> = [];
@@ -156,7 +156,7 @@ export class FeishuClientFactory extends ClientFactory {
if (errors.length > 0) return { errors, valid: false };
try {
- const domain = 'feishu'; // default domain for validation
+ const domain = resolveDomain(platform || 'feishu');
const api = new LarkApiClient(applicationId!, credentials.appSecret, domain);
await api.getTenantAccessToken();
return { valid: true };
diff --git a/src/server/services/bot/platforms/feishu/const.ts b/src/server/services/bot/platforms/feishu/const.ts
new file mode 100644
index 00000000000..5b184de240a
--- /dev/null
+++ b/src/server/services/bot/platforms/feishu/const.ts
@@ -0,0 +1,2 @@
+/** Feishu API allows max 50 messages per request. */
+export const MAX_FEISHU_HISTORY_LIMIT = 50;
diff --git a/src/server/services/bot/platforms/feishu/definitions/schema.ts b/src/server/services/bot/platforms/feishu/definitions/schema.ts
index b33346ba1d0..aafd68d0de6 100644
--- a/src/server/services/bot/platforms/feishu/definitions/schema.ts
+++ b/src/server/services/bot/platforms/feishu/definitions/schema.ts
@@ -1,5 +1,13 @@
-import { DEFAULT_DEBOUNCE_MS, MAX_DEBOUNCE_MS } from '../../const';
+import {
+ DEFAULT_BOT_DEBOUNCE_MS,
+ DEFAULT_BOT_HISTORY_LIMIT,
+ MAX_BOT_DEBOUNCE_MS,
+ MIN_BOT_HISTORY_LIMIT,
+} from '@lobechat/const';
+
+import { userIdField } from '../../const';
import type { FieldSchema } from '../../types';
+import { MAX_FEISHU_HISTORY_LIMIT } from '../const';
export const sharedSchema: FieldSchema[] = [
{
@@ -61,10 +69,10 @@ export const sharedSchema: FieldSchema[] = [
},
{
key: 'debounceMs',
- default: DEFAULT_DEBOUNCE_MS,
+ default: DEFAULT_BOT_DEBOUNCE_MS,
description: 'channel.debounceMsHint',
label: 'channel.debounceMs',
- maximum: MAX_DEBOUNCE_MS,
+ maximum: MAX_BOT_DEBOUNCE_MS,
minimum: 100,
type: 'number',
visibleWhen: { field: 'concurrency', value: 'debounce' },
@@ -76,6 +84,16 @@ export const sharedSchema: FieldSchema[] = [
label: 'channel.showUsageStats',
type: 'boolean',
},
+ {
+ key: 'historyLimit',
+ default: DEFAULT_BOT_HISTORY_LIMIT,
+ description: 'channel.historyLimitHint',
+ label: 'channel.historyLimit',
+ maximum: MAX_FEISHU_HISTORY_LIMIT,
+ minimum: MIN_BOT_HISTORY_LIMIT,
+ type: 'number',
+ },
+ userIdField,
// TODO: DM schema - not implemented yet
// {
// key: 'dm',
diff --git a/src/server/services/bot/platforms/feishu/protocol-spec.md b/src/server/services/bot/platforms/feishu/protocol-spec.md
new file mode 100644
index 00000000000..475c328ad1f
--- /dev/null
+++ b/src/server/services/bot/platforms/feishu/protocol-spec.md
@@ -0,0 +1,1290 @@
+# 飞书 / Lark 开放平台消息 API 通信协议规范
+
+> 适用对象:实现飞书 / Lark Bot 消息操作的 SDK、网关和独立 Bot。
+>
+> 整理依据:飞书开放平台官方文档(<https://open.feishu.cn/document)、仓库内> `packages/chat-adapter-feishu/src/api.ts` 客户端实现。
+>
+> 说明:文中标注 "工程建议" 的内容来自现有客户端实现经验,用于提高兼容性;它们不是服务端返回字段本身的一部分。
+
+## 1. 概述
+
+飞书(Feishu)/ Lark 开放平台提供 HTTP/JSON 风格的 RESTful API,用于自建应用(Custom App)与飞书 IM 系统交互。协议核心特征有三点:一是认证使用 `app_id` + `app_secret` 换取 `tenant_access_token`,有效期 2 小时,SDK 需主动缓存和刷新;二是消息体的 `content` 字段统一为 JSON 字符串序列化(`JSON.stringify`),不是裸对象;三是消息接收走事件订阅(Event Subscription)或长连接(WebSocket),不是轮询。
+
+### 1.1 基座地址
+
+| 平台 | 基座地址 |
+| --------- | -------------------------------------- |
+| 飞书 | `https://open.feishu.cn/open-apis` |
+| Lark 国际 | `https://open.larksuite.com/open-apis` |
+
+本文所有 API 路径均相对于基座地址。例如 `/im/v1/messages` 的完整 URL 为 `https://open.feishu.cn/open-apis/im/v1/messages`。
+
+### 1.2 通用限流
+
+除非单独标注,所有 IM 相关 API 的通用限流为:
+
+- **全局**:1000 次 / 分钟、50 次 / 秒
+- **同用户发送**:5 QPS
+- **同群组发送**:群内所有机器人共享 5 QPS
+
+## 2. 认证
+
+### 2.1 获取 tenant_access_token(自建应用)
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/auth/v3/tenant_access_token/internal`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------- | -------- | ----------------------------------- |
+| `Content-Type` | 是 | `application/json; charset=utf-8`。 |
+
+注意:此接口**不需要** `Authorization` 头,因为它就是用来获取凭证的。
+
+**Request Body**
+
+```json
+{
+ "app_id": "cli_slkdjalasdkjasd",
+ "app_secret": "dskLLdkasdjlasdKK"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ------------------------------ |
+| `app_id` | `string` | 是 | 应用唯一标识,创建应用后获得。 |
+| `app_secret` | `string` | 是 | 应用秘钥,创建应用后获得。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "expire": 7200,
+ "msg": "ok",
+ "tenant_access_token": "t-caecc734c2e3328a62489fe0648c4b98779515d3"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 说明 |
+| --------------------- | -------- | ----------------------------------------- |
+| `code` | `int` | 错误码,`0` 表示成功。 |
+| `msg` | `string` | 错误描述。 |
+| `tenant_access_token` | `string` | 租户访问凭证。 |
+| `expire` | `int` | 有效期,单位秒。通常为 `7200`(2 小时)。 |
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/auth/v3/tenant_access_token/internal' \
+ -X POST \
+ -H 'Content-Type: application/json; charset=utf-8' \
+ --data-raw '{
+ "app_id": "cli_slkdjalasdkjasd",
+ "app_secret": "dskLLdkasdjlasdKK"
+ }'
+```
+
+**Token 缓存与刷新**
+
+- 凭证有效期最长 2 小时。
+- 当剩余有效期 < 30 分钟时,重新调用本接口会返回新 token;否则返回当前仍有效的 token。
+- 刷新期间新旧 token 可同时有效。
+- 建议在 token 过期前 5 分钟主动刷新,避免边界情况下的 401 错误。
+
+**工程建议**
+
+- 在内存中缓存 `tenant_access_token` 和过期时间戳,不要每次请求都重新获取。
+- 设置安全余量(如过期前 300 秒刷新),参见 `LarkApiClient` 实现中的 `tokenExpiresAt = Date.now() + (data.expire - 300) * 1000`。
+- `app_secret` 属敏感信息,不要提交到代码仓库或日志中。
+
+## 3. 公共请求规范
+
+### 3.1 通用请求头
+
+以下规范适用于所有需要认证的业务 API。
+
+| Header | 示例值 | 是否必需 | 说明 |
+| --------------- | --------------------------------------------------- | -------- | ---------------------------------------------- |
+| `Authorization` | `Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3` | 是 | `tenant_access_token` 或 `user_access_token`。 |
+| `Content-Type` | `application/json; charset=utf-8` | 是 | 所有业务接口都发 JSON。 |
+
+### 3.2 通用响应结构
+
+所有 API 的响应遵循统一信封格式:
+
+```json
+{
+ "code": 0,
+ "msg": "success",
+ "data": { ... }
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------ | -------- | -------------------------- |
+| `code` | `int` | 错误码,`0` 表示成功。 |
+| `msg` | `string` | 错误描述。 |
+| `data` | `object` | 业务数据,各接口定义不同。 |
+
+### 3.3 消息内容的 JSON 序列化约定
+
+所有发送 / 编辑消息接口的 `content` 字段值必须是 **JSON 字符串序列化后的值**,即对消息体对象执行 `JSON.stringify()` 的结果。例如发送文本消息 `hello`,`content` 的值是:
+
+```json
+"{\"text\":\"hello\"}"
+```
+
+而**不是**裸对象 `{"text":"hello"}`。
+
+### 3.4 ID 格式说明
+
+| ID 类型 | 前缀 | 示例 |
+| -------------------- | ----- | ----------------------------------------- |
+| `open_id`(用户) | `ou_` | `ou_7d8a6e6df7621556ce0d21922b676706ccs2` |
+| `union_id`(用户) | `on_` | `on_94a1ee5551019f18cd73d9f111898cf8` |
+| `chat_id`(群组) | `oc_` | `oc_84983ff6516d731e5b5f68d4ea2e1da5` |
+| `message_id`(消息) | `om_` | `om_dc13264520392913993dd051dba21dcf` |
+
+## 4. 消息操作
+
+### 4.1 发送消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/im/v1/messages?receive_id_type={receive_id_type}`
+
+**Query 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ----------------- | -------- | ---- | ---------------------------------------------------------------------- |
+| `receive_id_type` | `string` | 是 | 接收者 ID 类型:`open_id`、`union_id`、`user_id`、`email`、`chat_id`。 |
+
+**Request Body**
+
+```json
+{
+ "content": "{\"text\":\"test content\"}",
+ "msg_type": "text",
+ "receive_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "uuid": "a0d69e20-1dd1-458b-k525-dfeca4015204"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ----------------------------------------------------------------------------------------------------------------------------- |
+| `receive_id` | `string` | 是 | 接收者 ID,类型由 `receive_id_type` 决定。 |
+| `msg_type` | `string` | 是 | 消息类型:`text`、`post`、`image`、`file`、`audio`、`media`、`sticker`、`interactive`、`share_chat`、`share_user`、`system`。 |
+| `content` | `string` | 是 | JSON 序列化后的消息内容(见第 3.3 节)。文本消息最大 150 KB,卡片 / 富文本最大 30 KB。 |
+| `uuid` | `string` | 否 | 去重标识,最多 50 字符。1 小时内同 uuid 至多成功发送一条。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "message_id": "om_dc13264520392913993dd051dba21dcf",
+ "root_id": "",
+ "parent_id": "",
+ "thread_id": "",
+ "msg_type": "text",
+ "create_time": "1710488400000",
+ "update_time": "1710488400000",
+ "deleted": false,
+ "updated": false,
+ "chat_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "sender": {
+ "id": "cli_slkdjalasdkjasd",
+ "id_type": "app_id",
+ "sender_type": "app",
+ "tenant_key": "736588c9260f175e"
+ },
+ "body": {
+ "content": "{\"text\":\"test content\"}"
+ },
+ "mentions": []
+ },
+ "msg": "success"
+}
+```
+
+`data` 字段说明:
+
+| 字段 | 类型 | 说明 |
+| ------------- | -------- | ----------------------------------- |
+| `message_id` | `string` | 系统生成的消息唯一 ID,`om_` 前缀。 |
+| `root_id` | `string` | 话题(thread)根消息 ID。 |
+| `parent_id` | `string` | 父消息 ID。 |
+| `thread_id` | `string` | 话题 ID(若适用)。 |
+| `msg_type` | `string` | 消息类型。 |
+| `create_time` | `string` | 创建时间,毫秒时间戳字符串。 |
+| `update_time` | `string` | 更新时间,毫秒时间戳字符串。 |
+
+> **⚠ 注意:`create_time` 和 `update_time` 是毫秒时间戳字符串**
+>
+> 飞书消息对象中的 `create_time` 和 `update_time` 返回的是**毫秒级** Unix 时间戳字符串(例如 `"1710488400000"`,即 13 位数字),**不是秒级时间戳**。在将其转换为 `Date` 对象时,应直接使用 `new Date(Number(create_time))`,**不要再乘以 1000**。原始服务实现中曾错误地将毫秒值再次乘以 1000,导致时间戳偏差约 1000 倍(日期跑到遥远的未来)。此 bug 已修复。
+> \| `deleted` | `boolean` | 是否已撤回。 |
+> \| `updated` | `boolean` | 是否已编辑。 |
+> \| `chat_id` | `string` | 消息所属群 ID。 |
+> \| `sender` | `object` | 发送者信息。 |
+> \| `sender.id` | `string` | 发送者 ID。 |
+> \| `sender.id_type` | `string` | 发送者 ID 类型(`open_id`、`app_id`)。 |
+> \| `sender.sender_type` | `string` | 发送者类型:`user`、`app`、`anonymous`、`unknown`。 |
+> \| `sender.tenant_key` | `string` | 租户标识。 |
+> \| `body` | `object` | 消息内容。 |
+> \| `body.content` | `string` | JSON 序列化的消息体。 |
+> \| `mentions` | `array` | 被 @ 的用户列表。 |
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages?receive_id_type=chat_id' \
+ -X POST \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3' \
+ -H 'Content-Type: application/json; charset=utf-8' \
+ --data-raw '{
+ "receive_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "msg_type": "text",
+ "content": "{\"text\":\"test content\"}"
+ }'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | ------------------------ |
+| `230001` | 请求参数无效。 |
+| `230002` | 机器人不在该群组中。 |
+| `230006` | 未启用机器人能力。 |
+| `230013` | 用户不在应用可用范围内。 |
+| `230020` | 触发频率限制。 |
+| `230025` | 消息体超出长度限制。 |
+| `230099` | 卡片内容创建失败。 |
+
+**工程建议**
+
+- Bot 应用需在开发者后台启用机器人能力并发布版本。
+- 发送消息到群组时,机器人必须已加入该群。
+- 文本消息 `content` 格式为 `{"text":"内容"}`,发送前需做 `JSON.stringify()`。
+- 当前 `LarkApiClient` 实现中对文本做了 4000 字符截断(`MAX_TEXT_LENGTH = 4000`),这是客户端保守策略;官方协议层限制为 150 KB。
+- `uuid` 可用于幂等发送,同一 uuid 在 1 小时内只会成功投递一次。
+
+### 4.2 编辑消息
+
+**Method**
+
+`PUT`
+
+**URL**
+
+`/im/v1/messages/{message_id}`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ------------------------------------------ |
+| `message_id` | `string` | 是 | 待编辑消息的 ID,仅支持 `text` 和 `post`。 |
+
+**Request Body**
+
+```json
+{
+ "content": "{\"text\":\"updated content\"}",
+ "msg_type": "text"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 必填 | 说明 |
+| ---------- | -------- | ---- | ---------------------------------------------------------------- |
+| `msg_type` | `string` | 是 | 消息类型,仅支持 `text`(纯文本)和 `post`(富文本)。 |
+| `content` | `string` | 是 | JSON 序列化后的消息内容。文本消息最大 150 KB,富文本最大 30 KB。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "message_id": "om_dc13264520392913993dd051dba21dcf",
+ "msg_type": "text",
+ "create_time": "1710488400000",
+ "update_time": "1710488500000",
+ "deleted": false,
+ "updated": true,
+ "chat_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "sender": {
+ "id": "cli_slkdjalasdkjasd",
+ "id_type": "app_id",
+ "sender_type": "app",
+ "tenant_key": "736588c9260f175e"
+ },
+ "body": {
+ "content": "{\"text\":\"updated content\"}"
+ },
+ "mentions": [],
+ "root_id": "",
+ "parent_id": "",
+ "thread_id": ""
+ },
+ "msg": "success"
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages/om_dc13264520392913993dd051dba21dcf' \
+ -X PUT \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3' \
+ -H 'Content-Type: application/json; charset=utf-8' \
+ --data-raw '{
+ "msg_type": "text",
+ "content": "{\"text\":\"updated content\"}"
+ }'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | ---------------------------------------- |
+| `230054` | 消息类型不支持编辑(仅支持 text/post)。 |
+| `230071` | 操作者不是消息发送者。 |
+| `230072` | 消息已达 20 次编辑上限。 |
+| `230075` | 消息已超出可编辑时间窗口。 |
+
+**工程建议**
+
+- 仅消息发送者可以编辑自己的消息。
+- 每条消息最多编辑 20 次。
+- 已撤回、已删除或超过时间窗口的消息无法编辑。
+- 仅 `text` 和 `post` 类型支持编辑,`interactive`(卡片)不支持。
+
+### 4.3 撤回消息
+
+**Method**
+
+`DELETE`
+
+**URL**
+
+`/im/v1/messages/{message_id}`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ----------------- |
+| `message_id` | `string` | 是 | 待撤回消息的 ID。 |
+
+**Request Body**
+
+无。
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {},
+ "msg": "success"
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages/om_dc13264520392913993dd051dba21dcf' \
+ -X DELETE \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | -------------------------------------- |
+| `230006` | 未启用机器人能力。 |
+| `230009` | 消息超出管理员配置的撤回时间限制。 |
+| `230026` | 无撤回权限(只能撤回自己发送的消息)。 |
+| `230054` | 不支持的消息类型。 |
+
+**工程建议**
+
+- 机器人只能撤回自己发送的消息;群主可撤回群内任何消息。
+- 撤回时间受企业管理员配置的限制。
+- 非群主的机器人无法撤回超过 1 年的消息。
+- 批量发送的消息不支持撤回。
+
+### 4.4 获取消息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/im/v1/messages/{message_id}`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ------------- |
+| `message_id` | `string` | 是 | 目标消息 ID。 |
+
+**Query 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| -------------- | -------- | ---- | -------------------------------------------------------- |
+| `user_id_type` | `string` | 否 | 用户 ID 格式:`open_id`(默认)、`union_id`、`user_id`。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "items": [
+ {
+ "message_id": "om_dc13264520392913993dd051dba21dcf",
+ "root_id": "",
+ "parent_id": "",
+ "thread_id": "",
+ "msg_type": "text",
+ "create_time": "1710488400000",
+ "update_time": "1710488400000",
+ "deleted": false,
+ "updated": false,
+ "chat_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "sender": {
+ "id": "ou_7d8a6e6df7621556ce0d21922b676706ccs2",
+ "id_type": "open_id",
+ "sender_type": "user",
+ "tenant_key": "736588c9260f175e"
+ },
+ "body": {
+ "content": "{\"text\":\"hello\"}"
+ },
+ "mentions": []
+ }
+ ]
+ },
+ "msg": "success"
+}
+```
+
+`data` 字段说明:
+
+| 字段 | 类型 | 说明 |
+| ------- | ------- | ----------------------------------------------------------------------- |
+| `items` | `array` | 消息数组。普通消息返回 1 条;合并转发消息返回 1 条父消息 + N 条子消息。 |
+
+`items[*]` 的字段结构与第 4.1 节发送消息响应的 `data` 一致。
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages/om_dc13264520392913993dd051dba21dcf' \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | ------------------ |
+| `230002` | 机器人不在群组中。 |
+| `230006` | 未启用机器人能力。 |
+| `230027` | 权限不足。 |
+| `230110` | 消息已被删除。 |
+
+### 4.5 获取会话历史消息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/im/v1/messages`
+
+**Query 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------------- | -------- | ---- | ---------------------------------------------------------------------------------------------- |
+| `container_id_type` | `string` | 是 | 容器类型:`chat`(单聊 / 群聊)或 `thread`(话题)。 |
+| `container_id` | `string` | 是 | 容器 ID,与类型对应。`chat` 时传 `chat_id`,`thread` 时传 `thread_id`。 |
+| `start_time` | `string` | 否 | 查询起始时间,Unix 时间戳(**秒**)。`thread` 类型不支持。 |
+| `end_time` | `string` | 否 | 查询结束时间,Unix 时间戳(**秒**)。`thread` 类型不支持。 |
+| `sort_type` | `string` | 否 | 排序方式:`ByCreateTimeAsc`(升序,默认)或 `ByCreateTimeDesc`(降序)。分页请求中需保持一致。 |
+| `page_size` | `int` | 否 | 每页条数,默认 20,范围 1–50。 |
+| `page_token` | `string` | 否 | 分页标记。首次请求不传;后续用响应中的 `page_token`。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "has_more": true,
+ "page_token": "GxmvlNRvP0NdQZpa7yIqf_Lv_QuBwTQ8tXkX7w-irAghVD9TRuVJ8PHz-BKV5QQP",
+ "items": [
+ {
+ "message_id": "om_dc13264520392913993dd051dba21dcf",
+ "root_id": "",
+ "parent_id": "",
+ "thread_id": "",
+ "msg_type": "text",
+ "create_time": "1710488400000",
+ "update_time": "1710488400000",
+ "deleted": false,
+ "updated": false,
+ "chat_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "sender": {
+ "id": "ou_7d8a6e6df7621556ce0d21922b676706ccs2",
+ "id_type": "open_id",
+ "sender_type": "user",
+ "tenant_key": "736588c9260f175e"
+ },
+ "body": {
+ "content": "{\"text\":\"hello\"}"
+ },
+ "mentions": [],
+ "upper_message_id": ""
+ }
+ ]
+ },
+ "msg": "success"
+}
+```
+
+`data` 字段说明:
+
+| 字段 | 类型 | 说明 |
+| ------------ | --------- | -------------------------------------------- |
+| `has_more` | `boolean` | 是否还有更多数据。 |
+| `page_token` | `string` | 下一页分页标记(`has_more = true` 时返回)。 |
+| `items` | `array` | 消息对象数组,结构同第 4.1 节。 |
+
+`items[*]` 额外字段:
+
+| 字段 | 类型 | 说明 |
+| ------------------ | -------- | --------------------------- |
+| `upper_message_id` | `string` | 合并转发场景中的父消息 ID。 |
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages?container_id_type=chat&container_id=oc_84983ff6516d731e5b5f68d4ea2e1da5&page_size=20' \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | -------------------- |
+| `230002` | 机器人不在群组中。 |
+| `230006` | 未启用机器人能力。 |
+| `230027` | 权限不足。 |
+| `230073` | 话题对操作者不可见。 |
+
+**权限说明**
+
+需具备以下任一权限:
+
+- `im:message`(获取与发送单聊、群组消息)
+- `im:message:readonly`(获取单聊、群组消息)
+- `im:message.history:readonly`(获取历史消息)
+
+获取群消息还需额外权限 `im:message.group_msg`。
+
+**工程建议**
+
+- `start_time` / `end_time` 使用 Unix 秒级时间戳,不是毫秒。
+- 分页请求中 `sort_type` 需全程保持一致。
+- 当前 `LarkApiClient` 实现中使用 `container_id_type=chat` 和 `container_id=chatId`。
+
+> **`start_time` / `end_time` 与服务适配器的映射关系**
+>
+> `start_time` 和 `end_time` 都是 Unix **秒级**时间戳(不是毫秒),可用于按时间范围过滤消息。在 message tool 的服务适配器中,`readMessages` 操作的 `before` 参数映射为飞书 API 的 `endTime`,`after` 参数映射为 `startTime`。即:
+>
+> - `after`(获取此时间之后的消息) → 飞书 `start_time`
+> - `before`(获取此时间之前的消息) → 飞书 `end_time`
+>
+> 分页通过 `page_token` 和 `page_size` 支持,适配器将 `limit` 映射为 `page_size`(范围 1-50)。
+
+### 4.6 回复消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/im/v1/messages/{message_id}/reply`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ----------------- |
+| `message_id` | `string` | 是 | 被回复消息的 ID。 |
+
+**Request Body**
+
+```json
+{
+ "content": "{\"text\":\"reply content\"}",
+ "msg_type": "text",
+ "reply_in_thread": false,
+ "uuid": "a0d69e20-1dd1-458b-k525-dfeca4015204"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 必填 | 说明 |
+| ----------------- | --------- | ---- | ------------------------------------------------------------------------------------------------------------------- |
+| `content` | `string` | 是 | JSON 序列化后的消息内容。文本消息最大 150 KB,卡片 / 富文本最大 30 KB。 |
+| `msg_type` | `string` | 是 | 消息类型:`text`、`post`、`image`、`file`、`audio`、`media`、`sticker`、`interactive`、`share_chat`、`share_user`。 |
+| `reply_in_thread` | `boolean` | 否 | 是否以话题(thread)形式回复,默认 `false`。 |
+| `uuid` | `string` | 否 | 去重标识,最多 50 字符。1 小时内同 uuid 至多成功发送一条。 |
+
+**Response Body**
+
+结构与第 4.1 节发送消息响应 `data` 一致,额外字段 `root_id` 和 `parent_id` 会指向被回复的消息。
+
+```json
+{
+ "code": 0,
+ "data": {
+ "message_id": "om_abcdef1234567890abcdef1234567890",
+ "root_id": "om_dc13264520392913993dd051dba21dcf",
+ "parent_id": "om_dc13264520392913993dd051dba21dcf",
+ "thread_id": "",
+ "msg_type": "text",
+ "create_time": "1710488500000",
+ "update_time": "1710488500000",
+ "deleted": false,
+ "updated": false,
+ "chat_id": "oc_84983ff6516d731e5b5f68d4ea2e1da5",
+ "sender": {
+ "id": "cli_slkdjalasdkjasd",
+ "id_type": "app_id",
+ "sender_type": "app",
+ "tenant_key": "736588c9260f175e"
+ },
+ "body": {
+ "content": "{\"text\":\"reply content\"}"
+ },
+ "mentions": []
+ },
+ "msg": "success"
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages/om_dc13264520392913993dd051dba21dcf/reply' \
+ -X POST \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3' \
+ -H 'Content-Type: application/json; charset=utf-8' \
+ --data-raw '{
+ "content": "{\"text\":\"reply content\"}",
+ "msg_type": "text"
+ }'
+```
+
+**主要错误码**
+
+与发送消息一致(见第 4.1 节)。
+
+**工程建议**
+
+- 回复消息会自动在被回复消息下方显示引用气泡。
+- 机器人需在被回复消息所在的群组中。
+- `reply_in_thread = true` 时创建话题回复,适合长对话场景。
+
+## 5. 表情回复
+
+### 5.1 添加表情回复
+
+**Method**
+
+`POST`
+
+**URL**
+
+`/im/v1/messages/{message_id}/reactions`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------ | -------- | ---- | ------------- |
+| `message_id` | `string` | 是 | 目标消息 ID。 |
+
+**Request Body**
+
+```json
+{
+ "reaction_type": {
+ "emoji_type": "SMILE"
+ }
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 必填 | 说明 |
+| -------------------------- | -------- | ---- | ------------------------ |
+| `reaction_type` | `object` | 是 | 表情类型对象。 |
+| `reaction_type.emoji_type` | `string` | 是 | 表情标识(见下方列表)。 |
+
+**常用 emoji_type 值**
+
+| 类别 | 常用值 |
+| ----------- | ------------------------------------------------------------------------------------- |
+| 正面 / 认可 | `OK`、`THUMBSUP`、`THANKS`、`MUSCLE`、`APPLAUSE`、`FISTBUMP`、`JIAYI`、`DONE`、`LGTM` |
+| 笑脸 | `SMILE`、`LAUGH`、`LOL`、`LOVE`、`WINK`、`JOYFUL`、`WOW`、`YEAH` |
+| 悲伤 | `SOB`、`CRY`、`FROWN`、`SPEECHLESS` |
+| 手势 | `ThumbsDown`、`HIGHFIVE`、`WAVE`、`SALUTE` |
+| 物品 | `HEART`、`ROSE`、`FIRE`、`PARTY`、`BEER`、`CAKE`、`GIFT`、`Trophy` |
+| 符号 | `POOP`、`HEARTBROKEN`、`CheckMark`、`CrossMark`、`Hundred` |
+
+完整表情列表参见飞书文档:<https://open.feishu.cn/document/server-docs/im-v1/message-reaction/emojis-introduce>
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "reaction_id": "ZCaCIjUBVVWSrm5L-3ZTw0QhODJh4bQ2pwxPjEo6g8A",
+ "operator": {
+ "operator_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs2",
+ "operator_type": "app"
+ },
+ "action_time": "1710488400000",
+ "reaction_type": {
+ "emoji_type": "SMILE"
+ }
+ },
+ "msg": "success"
+}
+```
+
+`data` 字段说明:
+
+| 字段 | 类型 | 说明 |
+| -------------------------- | -------- | ----------------------------- |
+| `reaction_id` | `string` | 表情回复唯一 ID,删除时使用。 |
+| `operator` | `object` | 操作者信息。 |
+| `operator.operator_id` | `string` | 操作者 ID。 |
+| `operator.operator_type` | `string` | 操作者类型:`app` 或 `user`。 |
+| `action_time` | `string` | 操作时间,毫秒时间戳。 |
+| `reaction_type` | `object` | 表情类型。 |
+| `reaction_type.emoji_type` | `string` | 表情标识。 |
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages/om_dc13264520392913993dd051dba21dcf/reactions' \
+ -X POST \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3' \
+ -H 'Content-Type: application/json; charset=utf-8' \
+ --data-raw '{
+ "reaction_type": {
+ "emoji_type": "SMILE"
+ }
+ }'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | ---------------------- |
+| `231001` | 无效的 emoji 类型。 |
+| `231002` | 无权限(不在会话中)。 |
+| `231003` | 消息不存在或已被撤回。 |
+| `230110` | 消息已被删除。 |
+
+### 5.2 删除表情回复
+
+**Method**
+
+`DELETE`
+
+**URL**
+
+`/im/v1/messages/{message_id}/reactions/{reaction_id}`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| ------------- | -------- | ---- | ----------------------------------------- |
+| `message_id` | `string` | 是 | 表情所在消息的 ID。 |
+| `reaction_id` | `string` | 是 | 表情回复 ID,来自添加表情响应或列表查询。 |
+
+**Request Body**
+
+无。
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "reaction_id": "ZCaCIjUBVVWSrm5L-3ZTw0QhODJh4bQ2pwxPjEo6g8A",
+ "operator": {
+ "operator_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs2",
+ "operator_type": "app"
+ },
+ "action_time": "1710488400000",
+ "reaction_type": {
+ "emoji_type": "SMILE"
+ }
+ },
+ "msg": "success"
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/messages/om_dc13264520392913993dd051dba21dcf/reactions/ZCaCIjUBVVWSrm5L-3ZTw0QhODJh4bQ2pwxPjEo6g8A' \
+ -X DELETE \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | ---------------------------------------- |
+| `231003` | 目标消息不存在或已撤回。 |
+| `231007` | 权限不足(只能删除自己添加的表情回复)。 |
+| `231010` | 表情回复不属于该消息。 |
+| `231011` | 无效的 reaction_id。 |
+
+**工程建议**
+
+- 只能删除自己添加的表情回复。
+- 已撤回的消息无法操作表情回复。
+
+## 6. 群组信息
+
+### 6.1 获取群信息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/im/v1/chats/{chat_id}`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| --------- | -------- | ---- | --------- |
+| `chat_id` | `string` | 是 | 群组 ID。 |
+
+**Query 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| -------------- | -------- | ---- | -------------------------------------------------------- |
+| `user_id_type` | `string` | 否 | 用户 ID 格式:`open_id`(默认)、`union_id`、`user_id`。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "avatar": "https://p3-lark-file.byteimg.com/img/xxx~noop.jpg",
+ "name": "测试群",
+ "description": "这是一个测试群组",
+ "owner_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs2",
+ "owner_id_type": "open_id",
+ "chat_mode": "group",
+ "chat_type": "private",
+ "chat_tag": "inner",
+ "external": false,
+ "tenant_key": "736588c9260f175e",
+ "user_count": "15",
+ "bot_count": "2",
+ "chat_status": "normal",
+ "add_member_permission": "all_members",
+ "share_card_permission": "allowed",
+ "at_all_permission": "all_members",
+ "edit_permission": "only_owner",
+ "moderation_permission": "all_members",
+ "group_message_type": "chat",
+ "join_message_visibility": "all_members",
+ "leave_message_visibility": "all_members",
+ "membership_approval": "no_approval_required",
+ "user_manager_id_list": [],
+ "bot_manager_id_list": [],
+ "restricted_mode_setting": {
+ "status": false,
+ "screenshot_has_permission_setting": "all_members",
+ "download_has_permission_setting": "all_members",
+ "message_has_permission_setting": "all_members"
+ }
+ },
+ "msg": "success"
+}
+```
+
+`data` 核心字段说明:
+
+| 字段 | 类型 | 说明 |
+| ----------------------- | --------- | ------------------------------------------------------------------------------- |
+| `avatar` | `string` | 群头像 URL。 |
+| `name` | `string` | 群名称。未设置时可能不返回。 |
+| `description` | `string` | 群描述。 |
+| `owner_id` | `string` | 群主用户 ID。 |
+| `owner_id_type` | `string` | 群主 ID 类型。 |
+| `chat_mode` | `string` | 群模式:`group`(群组)、`topic`(话题)、`p2p`(单聊)。 |
+| `chat_type` | `string` | 群类型:`private`(私密)、`public`(公开)。 |
+| `chat_tag` | `string` | 群标签:`inner`、`tenant`、`department`、`edu`、`meeting`、`customer_service`。 |
+| `external` | `boolean` | 是否为外部群。 |
+| `tenant_key` | `string` | 租户标识。 |
+| `user_count` | `string` | 用户数量。 |
+| `bot_count` | `string` | 机器人数量。 |
+| `chat_status` | `string` | 群状态:`normal`、`dissolved`、`dissolved_save`。 |
+| `add_member_permission` | `string` | 加人权限:`only_owner` 或 `all_members`。 |
+| `at_all_permission` | `string` | @所有人权限:`only_owner` 或 `all_members`。 |
+| `moderation_permission` | `string` | 发言权限。 |
+| `group_message_type` | `string` | 群消息形式:`chat`(普通)或 `thread`(话题)。 |
+| `user_manager_id_list` | `array` | 用户管理员 ID 列表。 |
+| `bot_manager_id_list` | `array` | 机器人管理员 ID 列表。 |
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/im/v1/chats/oc_84983ff6516d731e5b5f68d4ea2e1da5' \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| -------- | ------------------ |
+| `232006` | 无效的 chat_id。 |
+| `232010` | 不同租户。 |
+| `232011` | 操作者不在群组中。 |
+| `232025` | 未启用机器人能力。 |
+
+**工程建议**
+
+- 调用者必须是群成员才能获取完整信息;否则只返回名称、头像、成员数量和状态。
+- 内部群要求同一租户才能访问。
+
+## 7. 用户信息
+
+### 7.1 获取单个用户信息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`/contact/v3/users/{user_id}`
+
+**Path 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| --------- | -------- | ---- | ----------------------------------------- |
+| `user_id` | `string` | 是 | 用户 ID,类型由 `user_id_type` 参数决定。 |
+
+**Query 参数**
+
+| 参数 | 类型 | 必填 | 说明 |
+| -------------------- | -------- | ---- | ------------------------------------------------------------- |
+| `user_id_type` | `string` | 否 | 用户 ID 格式:`open_id`(默认)、`union_id`、`user_id`。 |
+| `department_id_type` | `string` | 否 | 部门 ID 格式:`open_department_id`(默认)、`department_id`。 |
+
+**Response Body**
+
+```json
+{
+ "code": 0,
+ "data": {
+ "user": {
+ "union_id": "on_94a1ee5551019f18cd73d9f111898cf8",
+ "user_id": "3e3cf3ea",
+ "open_id": "ou_7d8a6e6df7621556ce0d21922b676706ccs2",
+ "name": "张三",
+ "en_name": "Zhang San",
+ "nickname": "三哥",
+ "email": "[email protected]",
+ "mobile": "+8613800138000",
+ "gender": 1,
+ "avatar": {
+ "avatar_72": "https://p3-lark-file.byteimg.com/img/xxx~72x72.jpg",
+ "avatar_240": "https://p3-lark-file.byteimg.com/img/xxx~240x240.jpg",
+ "avatar_640": "https://p3-lark-file.byteimg.com/img/xxx~640x640.jpg",
+ "avatar_origin": "https://p3-lark-file.byteimg.com/img/xxx~noop.jpg"
+ },
+ "status": {
+ "is_frozen": false,
+ "is_resigned": false,
+ "is_activated": true,
+ "is_exited": false,
+ "is_unjoin": false
+ },
+ "department_ids": ["od-4e6ac4d14bcd5071a37a39de902c7141"],
+ "leader_user_id": "ou_xxx",
+ "city": "北京",
+ "country": "CN",
+ "work_station": "A1-101",
+ "join_time": 1710288000,
+ "is_tenant_manager": false,
+ "employee_no": "10001",
+ "employee_type": 1,
+ "enterprise_email": "[email protected]",
+ "job_title": "工程师"
+ }
+ },
+ "msg": "success"
+}
+```
+
+`data.user` 核心字段说明:
+
+| 字段 | 类型 | 说明 |
+| ---------------- | -------- | ------------------------------------------------------------ |
+| `union_id` | `string` | 用户 union_id(跨应用唯一)。 |
+| `user_id` | `string` | 用户 user_id(企业内唯一,即员工工号 ID)。 |
+| `open_id` | `string` | 用户 open_id(应用内唯一)。 |
+| `name` | `string` | 用户姓名。 |
+| `en_name` | `string` | 英文名。 |
+| `nickname` | `string` | 别名。 |
+| `email` | `string` | 邮箱。 |
+| `mobile` | `string` | 手机号。 |
+| `gender` | `int` | 性别:`0` 未知、`1` 男、`2` 女、`3` 其他。 |
+| `avatar` | `object` | 头像 URL 集合(72px、240px、640px、原图)。 |
+| `status` | `object` | 用户状态(冻结、离职、激活、退出、未加入)。 |
+| `department_ids` | `array` | 所属部门 ID 列表。 |
+| `leader_user_id` | `string` | 直属主管 ID。 |
+| `city` | `string` | 城市。 |
+| `country` | `string` | 国家 / 地区代码。 |
+| `join_time` | `int` | 入职时间,Unix 时间戳(秒)。 |
+| `employee_no` | `string` | 工号。 |
+| `employee_type` | `int` | 员工类型:`1` 正式、`2` 实习、`3` 外包、`4` 劳务、`5` 顾问。 |
+| `job_title` | `string` | 职务。 |
+
+**curl 示例**
+
+```bash
+curl 'https://open.feishu.cn/open-apis/contact/v3/users/ou_7d8a6e6df7621556ce0d21922b676706ccs2?user_id_type=open_id' \
+ -H 'Authorization: Bearer t-caecc734c2e3328a62489fe0648c4b98779515d3'
+```
+
+**主要错误码**
+
+| 错误码 | 含义 |
+| ------- | ------------------------ |
+| `40001` | 参数校验失败。 |
+| `41012` | 无效的用户 ID 格式。 |
+| `41050` | 用户不在应用可用范围内。 |
+
+**工程建议**
+
+- 使用 `tenant_access_token` 调用时不返回部门路径字段;需要部门路径时使用 `user_access_token`。
+- 字段可见性取决于应用被授予的权限范围;敏感字段(手机号、邮箱等)需要特定权限。
+- 当前 `LarkApiClient` 实现会根据 ID 前缀自动判断 `user_id_type`:`ou_` → `open_id`,`on_` → `union_id`,其他 → `user_id`。
+- 优先取 `name`,回退到 `display_name` → `nickname` → `en_name`。
+
+## 8. 消息内容格式
+
+### 8.1 文本消息(text)
+
+```json
+{
+ "text": "你好,这是一条测试消息"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------ | -------- | ---------- |
+| `text` | `string` | 文本内容。 |
+
+特殊语法:
+
+- @ 用户:`<at user_id="ou_xxx">用户名</at>`
+- @ 所有人:`<at user_id="all">所有人</at>`
+
+### 8.2 富文本消息(post)
+
+```json
+{
+ "zh_cn": {
+ "title": "标题",
+ "content": [
+ [
+ { "tag": "text", "text": "正文内容" },
+ { "tag": "a", "text": "链接文本", "href": "https://example.com" },
+ { "tag": "at", "user_id": "ou_xxx", "user_name": "张三" }
+ ]
+ ]
+ }
+}
+```
+
+### 8.3 其他消息类型
+
+| msg_type | content 字段 | 说明 |
+| ------------- | ----------------------------------------------- | ---------------------------- |
+| `image` | `{"image_key":"img_xxx"}` | 需先上传图片获取 image_key。 |
+| `file` | `{"file_key":"file_xxx"}` | 需先上传文件获取 file_key。 |
+| `audio` | `{"file_key":"file_xxx"}` | 需先上传音频获取 file_key。 |
+| `media` | `{"file_key":"file_xxx","image_key":"img_xxx"}` | 视频,需上传视频和封面。 |
+| `sticker` | `{"file_key":"file_xxx"}` | 表情包。 |
+| `interactive` | `{...card_content...}` | 消息卡片 JSON。 |
+| `share_chat` | `{"chat_id":"oc_xxx"}` | 分享群组。 |
+| `share_user` | `{"user_id":"ou_xxx"}` | 分享用户名片。 |
+
+**工程建议**
+
+- 所有 `content` 值在传入 API 前必须做 `JSON.stringify()`。
+- 文本消息 `content` 最大 150 KB。
+- 卡片和富文本 `content` 最大 30 KB。
+- 当前 `LarkApiClient` 实现中仅使用 `text` 类型,且在客户端做了 4000 字符截断保护。
+
+## 9. 通用错误码速查
+
+| 错误码 | 含义 |
+| -------- | ---------------------------------- |
+| `0` | 成功。 |
+| `230001` | 请求参数无效。 |
+| `230002` | 机器人不在群组中。 |
+| `230006` | 未启用机器人能力。 |
+| `230009` | 消息超过撤回时间限制。 |
+| `230013` | 用户不在应用可用范围内。 |
+| `230020` | 触发频率限制。 |
+| `230025` | 消息体超出长度限制。 |
+| `230026` | 无撤回权限。 |
+| `230027` | 权限不足。 |
+| `230054` | 不支持的消息类型。 |
+| `230071` | 操作者不是消息发送者。 |
+| `230072` | 消息已达编辑上限(20 次)。 |
+| `230073` | 话题对操作者不可见。 |
+| `230075` | 消息超出可编辑时间窗口。 |
+| `230099` | 卡片内容创建失败。 |
+| `230110` | 消息已被删除。 |
+| `231001` | 无效的 emoji 类型。 |
+| `231002` | 无表情回复权限(不在会话中)。 |
+| `231003` | 消息不存在或已被撤回。 |
+| `231007` | 只能删除自己添加的表情回复。 |
+| `231010` | 表情回复不属于该消息。 |
+| `231011` | 无效的 reaction_id。 |
+| `232006` | 无效的 chat_id。 |
+| `232010` | 不同租户。 |
+| `232011` | 操作者不在群组中。 |
+| `232025` | 未启用机器人能力。 |
+| `40001` | 参数校验失败(通讯录)。 |
+| `41012` | 无效的用户 ID 格式(通讯录)。 |
+| `41050` | 用户不在应用可用范围内(通讯录)。 |
+
+## 10. 工程实践摘要
+
+### 10.1 Token 管理
+
+- 缓存 `tenant_access_token`,在过期前 5 分钟刷新。
+- 不要在每次请求前都调用认证接口。
+- `app_secret` 存入环境变量或密钥管理服务,不要硬编码。
+
+### 10.2 消息发送
+
+- `content` 字段必须是 `JSON.stringify()` 后的字符串。
+- 文本消息客户端建议截断到 4000 字符(保守策略)。
+- 使用 `uuid` 实现幂等发送,防止网络重试导致重复消息。
+- 同用户 / 同群组 5 QPS 限流,高并发场景需做令牌桶 / 漏桶。
+
+### 10.3 消息编辑
+
+- 仅支持 `text` 和 `post` 类型。
+- 每条消息最多编辑 20 次。
+- 仅发送者可编辑自己的消息。
+
+### 10.4 消息撤回
+
+- 仅能撤回自己发送的消息(群主例外)。
+- 受管理员配置的时间限制约束。
+
+### 10.5 分页查询
+
+- `page_size` 范围 1–50,默认 20。
+- 分页标记 `page_token` 不是可读偏移量,应当 opaque 处理。
+- `sort_type` 在同一次分页遍历中必须保持一致。
+- `start_time` / `end_time` 使用秒级 Unix 时间戳,不是毫秒。
+
+### 10.6 飞书 vs Lark
+
+- 飞书(中国区)和 Lark(国际区)API 路径完全一致,只是基座地址不同。
+- 当前 `LarkApiClient` 通过构造参数 `platform` 切换基座地址,默认为 `lark`。
+- 部署时根据目标用户群体选择合适的基座地址。
+
+### 10.7 错误处理
+
+- 所有 API 响应的 `code` 字段为 `0` 表示成功,非 `0` 表示失败。
+- HTTP 状态码非 2xx 时应当直接抛出异常。
+- `code` 非 `0` 时应读取 `msg` 字段获取错误描述。
+- 频率限制错误(`230020`)应做退避重试。
+
+## 11. 实测验证记录
+
+> 本节记录 message tool 服务适配器(`FeishuMessageService`)与飞书开放平台 API 的对接验证情况。
+
+### 11.1 验证方式
+
+飞书 API 通过代码审查与官方文档对照进行验证,确认各接口的请求 / 响应格式与官方规范一致。
+
+### 11.2 关键 Bug 修复
+
+| Bug | 说明 | 修复方式 |
+| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- |
+| `create_time` 毫秒处理 | 原实现将飞书返回的毫秒时间戳(如 `"1710488400000"`)再乘以 1000 转换为 `Date`,导致时间戳偏差约 1000 倍(日期跑到遥远的未来)。 | 直接使用 `new Date(Number(create_time))`,不再乘以 1000。 |
+| `readMessages` 分页支持 | 补充了 `start_time` / `end_time` 时间范围过滤和 `page_size` 分页参数的正确映射。 | `after` → `startTime`,`before` → `endTime`,`limit` → `page_size`。 |
+
+### 11.3 服务适配器操作支持情况
+
+服务适配器支持 **9 / 17** 项 message tool 操作:
+
+| 操作 | 支持 | 映射的飞书 API |
+| ------------------- | ---- | --------------------------------------------------------- |
+| `sendMessage` | Yes | `POST /im/v1/messages` |
+| `readMessages` | Yes | `GET /im/v1/messages`(会话历史) |
+| `editMessage` | Yes | `PUT /im/v1/messages/{message_id}` |
+| `deleteMessage` | Yes | `DELETE /im/v1/messages/{message_id}` |
+| `reactToMessage` | Yes | `POST /im/v1/messages/{message_id}/reactions` |
+| `getChannelInfo` | Yes | `GET /im/v1/chats/{chat_id}`(getChatInfo) |
+| `getMemberInfo` | Yes | `GET /contact/v3/users/{user_id}`(getUserInfo) |
+| `replyToThread` | Yes | `POST /im/v1/messages/{message_id}/reply`(replyMessage) |
+| `searchMessages` | No | 飞书无全文搜索 API |
+| `getReactions` | No | 未实现 |
+| `pinMessage` | No | 未实现 |
+| `unpinMessage` | No | 未实现 |
+| `getPinnedMessages` | No | 未实现 |
+| `listChannels` | No | 未实现 |
+| `createThread` | No | 未实现 |
+| `listThreads` | No | 未实现 |
+| `createPoll` | No | 飞书无投票 API |
diff --git a/src/server/services/bot/platforms/feishu/service.ts b/src/server/services/bot/platforms/feishu/service.ts
new file mode 100644
index 00000000000..1467feef6ad
--- /dev/null
+++ b/src/server/services/bot/platforms/feishu/service.ts
@@ -0,0 +1,198 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ MessageItem,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+import type { LarkApiClient } from '@lobechat/chat-adapter-feishu';
+import { DEFAULT_BOT_HISTORY_LIMIT } from '@lobechat/const';
+
+import type { MessageRuntimeService } from '@/server/services/toolExecution/serverRuntimes/message/adapters/types';
+import { PlatformUnsupportedError } from '@/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError';
+
+import { MAX_FEISHU_HISTORY_LIMIT } from './const';
+
+/**
+ * Normalize a Feishu/Lark message object to MessageItem.
+ */
+const toMessageItem = (msg: any): MessageItem => {
+ let content: string;
+ try {
+ const parsed = JSON.parse(msg.body?.content ?? '{}');
+ content = parsed.text ?? '';
+ } catch {
+ content = msg.body?.content ?? '';
+ }
+
+ return {
+ author: {
+ id: msg.sender?.id ?? '',
+ name: msg.sender?.sender_type === 'user' ? (msg.sender?.id ?? 'User') : 'Bot',
+ },
+ content,
+ id: msg.message_id ?? '',
+ replyTo: msg.parent_id ?? msg.root_id ?? undefined,
+ timestamp: msg.create_time
+ ? new Date(Number(msg.create_time)).toISOString()
+ : new Date().toISOString(),
+ };
+};
+
+export class FeishuMessageService implements MessageRuntimeService {
+ private platformName: string;
+
+ constructor(
+ private api: LarkApiClient,
+ platformName: 'feishu' | 'lark' = 'feishu',
+ ) {
+ this.platformName = platformName;
+ }
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ const result = await this.api.sendMessage(params.channelId, params.content);
+ return {
+ channelId: params.channelId,
+ messageId: result.messageId,
+ platform: this.platformName,
+ };
+ };
+
+ readMessages = async (params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ const result = await this.api.listMessages(params.channelId, {
+ endTime: params.endTime,
+ pageSize: Math.min(params.limit ?? DEFAULT_BOT_HISTORY_LIMIT, MAX_FEISHU_HISTORY_LIMIT),
+ pageToken: params.cursor,
+ startTime: params.startTime,
+ });
+ const messages = result.items.map(toMessageItem);
+ return {
+ channelId: params.channelId,
+ hasMore: result.hasMore,
+ messages,
+ nextCursor: result.pageToken,
+ platform: this.platformName,
+ totalFetched: messages.length,
+ };
+ };
+
+ editMessage = async (params: EditMessageParams): Promise<EditMessageState> => {
+ await this.api.editMessage(params.messageId, params.content);
+ return { messageId: params.messageId, success: true };
+ };
+
+ deleteMessage = async (params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ await this.api.deleteMessage(params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ searchMessages = async (_params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'searchMessages');
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ await this.api.addReaction(params.messageId, params.emoji);
+ return { messageId: params.messageId, success: true };
+ };
+
+ getReactions = async (_params: GetReactionsParams): Promise<GetReactionsState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'getReactions');
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (_params: PinMessageParams): Promise<PinMessageState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'pinMessage');
+ };
+
+ unpinMessage = async (_params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'unpinMessage');
+ };
+
+ listPins = async (_params: ListPinsParams): Promise<ListPinsState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'listPins');
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ const chat = await this.api.getChatInfo(params.channelId);
+ return {
+ description: chat.description ?? undefined,
+ id: params.channelId,
+ memberCount: chat.user_count ?? undefined,
+ name: chat.name ?? undefined,
+ type: chat.chat_mode ?? 'group',
+ };
+ };
+
+ listChannels = async (_params: ListChannelsParams): Promise<ListChannelsState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'listChannels');
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ const user = await this.api.getUserInfo(params.memberId);
+ return {
+ displayName: user?.name ?? undefined,
+ id: params.memberId,
+ username: user?.name ?? undefined,
+ };
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (_params: CreateThreadParams): Promise<CreateThreadState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'createThread');
+ };
+
+ listThreads = async (_params: ListThreadsParams): Promise<ListThreadsState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'listThreads');
+ };
+
+ replyToThread = async (params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ const result = await this.api.replyMessage(params.threadId, params.content);
+ return { messageId: result.messageId, threadId: params.threadId };
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (_params: CreatePollParams): Promise<CreatePollState> => {
+ throw new PlatformUnsupportedError(this.platformName, 'createPoll');
+ };
+}
diff --git a/src/server/services/bot/platforms/qq/protocol-spec.md b/src/server/services/bot/platforms/qq/protocol-spec.md
new file mode 100644
index 00000000000..2a14d30a97c
--- /dev/null
+++ b/src/server/services/bot/platforms/qq/protocol-spec.md
@@ -0,0 +1,1274 @@
+# QQ 开放平台机器人 API 通信协议规范
+
+> 适用对象:实现 QQ 开放平台机器人消息收发的 SDK、网关和独立 Bot。
+>
+> 整理依据:QQ 开放平台官方文档(bot.q.qq.com/wiki)v2 API、已有 `chat-adapter-qq` 实现源码、社区 SDK(botpy、botgo、bot-node-sdk)实现经验。
+>
+> 说明:文中标注 "工程建议" 的内容来自现有客户端实现经验,用于提高兼容性;它们不是服务端返回字段本身的一部分。
+
+## 1. 概述
+
+QQ 开放平台机器人 API 是腾讯 QQ 机器人功能的 HTTP/JSON 协议。协议核心特征有四点:一是认证采用 `appId` + `clientSecret` 获取 `access_token`,鉴权头使用 `Authorization: QQBot {access_token}` 格式;二是消息发送覆盖四种场景 ——QQ 单聊(C2C)、QQ 群聊、文字子频道、频道私信(DMS);三是消息接收支持 WebSocket 和 HTTP Webhook 回调两种模式,回调地址使用 Ed25519 签名验证;四是消息分为主动消息和被动回复,二者在频率限制和触发条件上差异显著。
+
+**地址列表**
+
+| 用途 | 地址 |
+| ------------- | ------------------------------------------- |
+| 认证服务 | `https://bots.qq.com/app/getAppAccessToken` |
+| API 基座 | `https://api.sgroup.qq.com` |
+| 沙箱 API 基座 | `https://sandbox.api.sgroup.qq.com` |
+
+## 2. 认证流程
+
+### 2.1 获取 Access Token
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://bots.qq.com/app/getAppAccessToken`
+
+**Headers**
+
+| Header | 是否必需 | 说明 |
+| -------------- | -------- | ------------------------- |
+| `Content-Type` | 是 | 固定 `application/json`。 |
+
+**Request Body**
+
+```json
+{
+ "appId": "102012345",
+ "clientSecret": "aBcDeFgHiJkLmNoPqRsTuVwXyZ123456"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| -------------- | -------- | -------- | ----------------------------------- |
+| `appId` | `string` | 是 | 在 QQ 开放平台注册后获得的应用 ID。 |
+| `clientSecret` | `string` | 是 | 对应的客户端密钥。 |
+
+**Response Body**
+
+```json
+{
+ "access_token": "a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK",
+ "expires_in": "7200"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 说明 |
+| -------------- | -------- | ---------------------------------------------------------------- |
+| `access_token` | `string` | 访问令牌,后续所有业务 API 请求的鉴权凭证。 |
+| `expires_in` | `string` | 有效期,单位秒。默认 7200 秒(2 小时)。注意此字段为字符串类型。 |
+
+**curl 示例**
+
+```bash
+curl 'https://bots.qq.com/app/getAppAccessToken' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "appId": "102012345",
+ "clientSecret": "aBcDeFgHiJkLmNoPqRsTuVwXyZ123456"
+ }'
+```
+
+**工程建议**
+
+- `access_token` 默认 2 小时过期,不会自动刷新,需开发者手动在过期前重新获取。
+- 在过期前 60 秒内获取新 token 时,新旧 token 在此 60 秒窗口内均有效,可实现平滑过渡。
+- 建议提前 5 分钟刷新 token(即 `expires_in - 300` 秒后刷新),避免临界点竞态。
+- `expires_in` 虽然语义是数字,实际返回为字符串,解析时注意类型转换。
+
+### 2.2 认证头格式
+
+所有业务 API 请求需携带以下认证头:
+
+```
+Authorization: QQBot {access_token}
+```
+
+注意前缀是 `QQBot`(不是 `Bearer`)。旧版 Token 鉴权方式(`Bot {token}`)已废弃,应使用 AccessToken 方式。
+
+## 3. 公共请求规范
+
+### 3.1 通用请求头
+
+以下规范适用于所有业务 API 请求。
+
+| Header | 示例值 | 是否必需 | 说明 |
+| --------------- | ---------------------------------- | -------- | ----------------------------------------------------------------- |
+| `Content-Type` | `application/json` | 是 | 所有业务接口发 JSON。频道消息接口额外支持 `multipart/form-data`。 |
+| `Authorization` | `QQBot a]kLm4oPqRsT.uVwXyZ_123...` | 是 | AccessToken 鉴权。 |
+
+### 3.2 基座地址
+
+正式环境统一使用 `https://api.sgroup.qq.com`,拼接方式为 `{BASE_URL}{path}`。
+
+沙箱环境使用 `https://sandbox.api.sgroup.qq.com`,接口路径不变。沙箱环境不受频率限制约束,适合调试。
+
+### 3.3 通用响应格式
+
+成功时 HTTP 状态码为 `200`(或 `201`、`204`),响应体为 JSON。
+
+错误响应结构:
+
+```json
+{
+ "code": 11241,
+ "message": "invalid appid"
+}
+```
+
+关键 HTTP 状态码:
+
+| 状态码 | 含义 | 说明 |
+| ----------- | -------------- | -------------------------------- |
+| `200` | 成功 | 正常处理。 |
+| `201`/`202` | 异步成功 | 需要检查响应体判断是否真正成功。 |
+| `204` | 成功但无响应体 | 常见于删除操作。 |
+| `401` | 认证失败 | Token 无效或过期。 |
+| `404` | 接口不存在 | 检查路径拼写。 |
+| `405` | 方法不允许 | HTTP 方法错误。 |
+| `429` | 频率限制 | 触发速率限制,需退避重试。 |
+| `500`/`504` | 服务端错误 | 建议有限重试。 |
+
+## 4. 消息发送
+
+QQ 机器人消息发送覆盖四种场景,接口路径和能力略有差异。所有消息接口都要求至少包含一个内容字段(`content`、`markdown`、`ark`、`embed`、`media`)。
+
+### 4.1 消息类型枚举 `msg_type`
+
+| 值 | 名称 | 说明 |
+| --- | -------- | --------------------------------------------------------- |
+| `0` | TEXT | 纯文本消息。对应 `content` 字段。 |
+| `2` | MARKDOWN | Markdown 消息。对应 `markdown` 字段。 |
+| `3` | ARK | 模板消息(Ark 卡片)。对应 `ark` 字段。 |
+| `4` | EMBED | 嵌入消息。对应 `embed` 字段。仅频道子频道和频道私信支持。 |
+| `7` | MEDIA | 富媒体消息(图片、视频、语音、文件)。对应 `media` 字段。 |
+
+### 4.2 主动消息与被动回复
+
+QQ 机器人消息分为两类:
+
+**被动回复**:用户发消息或触发事件后,机器人在限定时间窗口内通过 `msg_id` 或 `event_id` 回复。
+
+- 群聊被动回复窗口:5 分钟,每条用户消息最多回复 5 次。
+- 单聊被动回复窗口:60 分钟,每条用户消息最多回复 5 次。
+- 频道被动回复窗口:5 分钟。
+
+**主动消息**:机器人在无用户触发的情况下主动下发。受严格频率限制。
+
+- 单聊主动消息:每月每用户 4 条。
+- 群聊主动消息:每月每群 4 条。
+- 频道主动消息:每日每子频道 20 条,每日最多推送 2 个子频道。
+- 频道私信主动消息:每日每用户 2 条,每日累计 200 条。
+
+注意:2025 年 4 月 21 日起主动推送能力已下线。用户可在客户端关闭机器人的主动消息。
+
+> **⚠ 重要限制:主动消息已不可用(2025 年 4 月起)**
+>
+> 自 2025 年 4 月 21 日起,QQ 开放平台已**全面下线**机器人主动消息能力。这意味着:
+>
+> 1. **所有消息必须是被动回复**:机器人只能在收到用户消息后,通过携带触发消息的 `msg_id` 进行回复。不携带 `msg_id` 的发送请求会被服务端以频率限制错误拒绝。
+> 2. **message tool 的 `sendMessage` 操作无法可靠工作**:message tool 的执行上下文中不携带触发用户消息的 `msg_id`,因此无法构造合法的被动回复请求。即使 API 调用本身格式正确,也会因缺少 `msg_id` 被服务端拒绝。
+> 3. **实际影响**:在服务适配器实现中,`sendMessage` 已被标记为不支持(`unsupported`)。所有需要主动发送消息的场景在 QQ 平台上均无法实现。
+
+**工程建议**
+
+- 优先使用被动回复模式,在收到事件后立即回复。
+- 被动回复必须携带 `msg_id`(回复某条消息)或 `event_id`(回复某个事件),二选一。
+- 主动消息不带 `msg_id` 和 `event_id`。
+- HTTP 请求超时建议至少设置 5 秒。
+
+### 4.3 消息去重机制
+
+相同的 `msg_id` + `msg_seq` 组合会被服务端视为重复提交并拒绝。`msg_seq` 用于对同一条用户消息发送多条回复时的序号标识。
+
+- 首条回复 `msg_seq` 可省略(默认 `1`)。
+- 多条回复需递增 `msg_seq`:第 1 条为 `1`,第 2 条为 `2`,依此类推。
+- 群聊和单聊场景使用 `msg_seq`;频道场景不使用。
+
+### 4.4 发送群聊消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.sgroup.qq.com/v2/groups/{group_openid}/messages`
+
+**路径参数**
+
+| 参数 | 类型 | 说明 |
+| -------------- | -------- | -------------------------------------------------------- |
+| `group_openid` | `string` | 群组的 openid,从 `GROUP_AT_MESSAGE_CREATE` 事件中获取。 |
+
+**Request Body**
+
+```json
+{
+ "content": "你好,这是一条群聊消息。",
+ "msg_id": "xxxxxx",
+ "msg_seq": 1,
+ "msg_type": 0
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ---------- | -------- | -------- | ------------------------------------------------- |
+| `content` | `string` | 条件必需 | 文本内容。`msg_type=0` 时必填。 |
+| `msg_type` | `int` | 是 | 消息类型,见第 4.1 节。 |
+| `markdown` | `object` | 条件必需 | Markdown 对象。`msg_type=2` 时必填。 |
+| `ark` | `object` | 条件必需 | Ark 模板对象。`msg_type=3` 时必填。 |
+| `media` | `object` | 条件必需 | 富媒体 `file_info` 对象。`msg_type=7` 时必填。 |
+| `msg_id` | `string` | 否 | 被动回复时填入触发消息的 ID。 |
+| `event_id` | `string` | 否 | 被动回复时填入触发事件的 ID。与 `msg_id` 二选一。 |
+| `msg_seq` | `int` | 否 | 回复序号,默认 `1`。多条回复时递增。 |
+
+**Response Body**
+
+```json
+{
+ "id": "xxxxxx",
+ "timestamp": "1677000000"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ----------- | -------- | --------------------- |
+| `id` | `string` | 发送成功后的消息 ID。 |
+| `timestamp` | `string` | 消息发送时间戳。 |
+
+**curl 示例(被动回复文本)**
+
+```bash
+curl 'https://api.sgroup.qq.com/v2/groups/A1B2C3D4E5F6/messages' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "content": "你好,这是一条群聊消息。",
+ "msg_type": 0,
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_seq": 1
+ }'
+```
+
+**curl 示例(被动回复 Markdown)**
+
+```bash
+curl 'https://api.sgroup.qq.com/v2/groups/A1B2C3D4E5F6/messages' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "msg_type": 2,
+ "markdown": {
+ "content": "# 标题\n这是一段 **Markdown** 内容。"
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_seq": 1
+ }'
+```
+
+### 4.5 发送频道子频道消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.sgroup.qq.com/channels/{channel_id}/messages`
+
+**路径参数**
+
+| 参数 | 类型 | 说明 |
+| ------------ | -------- | ------------------------------------------------------------------ |
+| `channel_id` | `string` | 子频道 ID,从 `AT_MESSAGE_CREATE` 或 `MESSAGE_CREATE` 事件中获取。 |
+
+**Request Body**
+
+```json
+{
+ "content": "你好,这是一条频道消息。",
+ "msg_id": "xxxxxx"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ------------------- | ------------------ | -------- | ------------------------------------------------- |
+| `content` | `string` | 条件必需 | 文本内容,支持内嵌格式(@用户、# 子频道、表情)。 |
+| `embed` | `MessageEmbed` | 条件必需 | 嵌入消息对象。 |
+| `ark` | `MessageArk` | 条件必需 | Ark 模板对象。 |
+| `markdown` | `MessageMarkdown` | 条件必需 | Markdown 对象。 |
+| `image` | `string` | 条件必需 | 图片 URL,平台会自动转存。 |
+| `file_image` | `file` | 条件必需 | 图片文件,仅 `multipart/form-data` 格式时可用。 |
+| `message_reference` | `MessageReference` | 否 | 引用消息对象。 |
+| `msg_id` | `string` | 否 | 被动回复时填入触发消息 ID。 |
+| `event_id` | `string` | 否 | 被动回复时填入触发事件 ID。 |
+
+注意:`content`、`embed`、`ark`、`image`/`file_image`、`markdown` 至少需要提供一个。
+
+**Response Body**
+
+频道消息返回完整的 Message 对象:
+
+```json
+{
+ "author": {
+ "id": "11586990140073229091",
+ "username": "mybot",
+ "avatar": "https://thirdqq.qlogo.cn/g?...",
+ "bot": true
+ },
+ "channel_id": "123456",
+ "content": "你好,这是一条频道消息。",
+ "guild_id": "789012",
+ "id": "xxxxxx",
+ "timestamp": "2026-03-22T04:25:12+08:00"
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.sgroup.qq.com/channels/123456/messages' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "content": "你好,这是一条频道消息。",
+ "msg_id": "08e09a8305ac3e5d141a1490"
+ }'
+```
+
+**频道消息审核**
+
+频道消息可能触发内容审核,此时返回错误码 `304023` 或 `304024`,响应体包含 `audit_id` 字段。审核通过后消息会自动发出,审核不通过则不会发出。
+
+### 4.6 发送单聊消息(C2C)
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.sgroup.qq.com/v2/users/{openid}/messages`
+
+**路径参数**
+
+| 参数 | 类型 | 说明 |
+| -------- | -------- | --------------------------------------------------- |
+| `openid` | `string` | 用户的 openid,从 `C2C_MESSAGE_CREATE` 事件中获取。 |
+
+**Request Body**
+
+```json
+{
+ "content": "你好,这是一条私聊消息。",
+ "msg_id": "xxxxxx",
+ "msg_seq": 1,
+ "msg_type": 0
+}
+```
+
+字段说明与群聊消息一致(见第 4.4 节),额外支持:
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ----------- | ------ | -------- | ---------------------------------- |
+| `is_wakeup` | `bool` | 否 | 互动召回消息标记,仅单聊场景支持。 |
+
+**Response Body**
+
+```json
+{
+ "id": "xxxxxx",
+ "timestamp": "1677000000"
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.sgroup.qq.com/v2/users/F6A8B9C0D1E2/messages' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "content": "你好,这是一条私聊消息。",
+ "msg_type": 0,
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_seq": 1
+ }'
+```
+
+**单聊互动召回消息**
+
+用户主动对话后 30 天内,机器人可在以下四个阶段各下发 1 条互动召回消息:当天、1-3 天、3-7 天、7-30 天。发送时设置 `is_wakeup: true`。
+
+### 4.7 发送频道私信消息(DMS)
+
+频道私信需先通过 `POST /users/@me/dms` 创建私信会话获取 `guild_id`,然后发送消息。机器人与用户必须存在共同频道。
+
+#### 4.7.1 创建私信会话
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.sgroup.qq.com/users/@me/dms`
+
+**Request Body**
+
+```json
+{
+ "recipient_id": "11586990140073229091",
+ "source_guild_id": "789012"
+}
+```
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ----------------- | -------- | -------- | ----------------------------------- |
+| `recipient_id` | `string` | 是 | 目标用户 ID。 |
+| `source_guild_id` | `string` | 是 | 源频道 ID,机器人与用户的共同频道。 |
+
+**Response Body**
+
+```json
+{
+ "channel_id": "xxxxxx",
+ "create_time": "1677000000",
+ "guild_id": "xxxxxx"
+}
+```
+
+#### 4.7.2 发送私信消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.sgroup.qq.com/dms/{guild_id}/messages`
+
+**路径参数**
+
+| 参数 | 类型 | 说明 |
+| ---------- | -------- | -------------------------------------------------------------------------- |
+| `guild_id` | `string` | 创建私信会话返回的 `guild_id`,也可从 `DIRECT_MESSAGE_CREATE` 事件中获取。 |
+
+**Request Body**
+
+```json
+{
+ "content": "你好,这是一条频道私信。",
+ "msg_id": "xxxxxx"
+}
+```
+
+字段与频道消息一致(见第 4.5 节),支持 `content`、`embed`、`ark`、`markdown`、`image`、`message_reference`、`msg_id`、`event_id`。
+
+**Response Body**
+
+返回完整 Message 对象,结构与频道消息响应一致。
+
+**curl 示例**
+
+```bash
+curl 'https://api.sgroup.qq.com/dms/DMS_GUILD_ID/messages' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "content": "你好,这是一条频道私信。",
+ "msg_id": "08e09a8305ac3e5d141a1490"
+ }'
+```
+
+### 4.8 文本长度限制与分片策略
+
+协议没有在响应中显式下发 "最大文本长度" 字段。社区实现和已有代码普遍以 2000 个 Unicode 字符作为保守兼容上限。
+
+**推荐分片算法**
+
+1. 以 2000 个 Unicode 字符为上限。
+2. 优先在 `\n\n`、其次在 `\n`、再次在空格处分片。
+3. 找不到合适边界时,硬切 2000 字符,末尾附加 `...`。
+4. 每个分片单独调用一次消息发送接口。
+5. 多条回复递增 `msg_seq`,复用同一个 `msg_id`。
+
+### 4.9 频率限制汇总
+
+| 场景 | 类型 | 限制 |
+| ------------------ | ---------- | ----------------------------------- |
+| 群聊被动回复 | 每条消息 | 5 分钟窗口,最多 5 条 |
+| 群聊主动消息 | 每群每月 | 4 条 |
+| 单聊被动回复 | 每条消息 | 60 分钟窗口,最多 5 条 |
+| 单聊主动消息 | 每用户每月 | 4 条 |
+| 频道子频道 | 全局 | 每秒每子频道 5 条 |
+| 频道子频道主动消息 | 每日 | 每子频道 20 条,每日最多 2 个子频道 |
+| 频道被动回复 | 每条消息 | 5 分钟窗口 |
+| 频道私信主动消息 | 每日 | 每用户 2 条,累计 200 条 |
+| 频道私信被动回复 | 每条消息 | 5 分钟窗口 |
+
+**工程建议**
+
+- 沙箱环境不受上述频率限制约束。
+- 被动回复场景下,应在收到用户消息后尽快回复,避免超时。
+- 需要发送 WebSocket 连接才可以发送频道消息(频道 API 的前提要求)。
+
+## 5. 获取机器人信息
+
+### 5.1 接口定义
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://api.sgroup.qq.com/users/@me`
+
+**Headers**
+
+使用第 3 节的通用请求头。
+
+**Request Body**
+
+无。
+
+**Response Body**
+
+```json
+{
+ "avatar": "https://thirdqq.qlogo.cn/g?b=oidb&k=M5TibpXicS7Jt4z89BZxiamAA&s=100&t=1641802698",
+ "id": "11586990140073229091",
+ "union_openid": "74F138F7F3AF68C4B8E8325013FCA295",
+ "union_user_account": "",
+ "username": "gitsub"
+}
+```
+
+字段说明:
+
+| 字段 | 类型 | 说明 |
+| -------------------- | -------- | -------------------------------------------------- |
+| `id` | `string` | 机器人用户 ID。 |
+| `username` | `string` | 机器人显示名称。 |
+| `avatar` | `string` | 头像 URL。 |
+| `union_openid` | `string` | 特约商户下的用户跨应用唯一标识(非特约商户为空)。 |
+| `union_user_account` | `string` | 联合用户账号(可能为空)。 |
+
+**curl 示例**
+
+```bash
+curl 'https://api.sgroup.qq.com/users/@me' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK'
+```
+
+## 6. 消息数据结构
+
+### 6.1 群聊 / 单聊消息事件载荷
+
+群聊和单聊使用 v2 API 事件结构。
+
+**`GROUP_AT_MESSAGE_CREATE` 事件 `d` 字段:**
+
+```json
+{
+ "author": {
+ "member_openid": "F6A8B9C0D1E2"
+ },
+ "content": "/help 查看帮助",
+ "group_openid": "A1B2C3D4E5F6",
+ "id": "08e09a8305ac3e5d141a1490",
+ "timestamp": "2026-03-22T04:25:12+08:00"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ---------------------- | -------- | ------------------------------------ |
+| `id` | `string` | 消息 ID,用于被动回复时回传。 |
+| `author.member_openid` | `string` | 发送者在群内的成员 openid。 |
+| `content` | `string` | 消息文本内容(@机器人 前缀已去除)。 |
+| `group_openid` | `string` | 群组 openid。 |
+| `timestamp` | `string` | 消息创建时间,RFC 3339 格式。 |
+
+**`C2C_MESSAGE_CREATE` 事件 `d` 字段:**
+
+```json
+{
+ "attachments": [],
+ "author": {
+ "user_openid": "F6A8B9C0D1E2"
+ },
+ "content": "你好",
+ "id": "08e09a8305ac3e5d141a1490",
+ "timestamp": "2026-03-22T04:25:12+08:00"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| -------------------- | -------- | ------------------------------------ |
+| `id` | `string` | 消息 ID。 |
+| `author.user_openid` | `string` | 发送者的 openid。 |
+| `content` | `string` | 消息文本内容。 |
+| `timestamp` | `string` | 消息创建时间。 |
+| `attachments` | `array` | 附件数组(图片、语音、视频、文件)。 |
+
+### 6.2 频道消息事件载荷
+
+频道消息使用 Message 对象结构。
+
+**`AT_MESSAGE_CREATE` / `MESSAGE_CREATE` 事件 `d` 字段:**
+
+```json
+{
+ "author": {
+ "id": "11586990140073229091",
+ "username": "testuser",
+ "avatar": "https://...",
+ "bot": false
+ },
+ "channel_id": "123456",
+ "content": "<@!botid> 你好",
+ "guild_id": "789012",
+ "id": "xxxxxx",
+ "member": {
+ "joined_at": "2025-01-01T00:00:00+08:00",
+ "roles": ["1"]
+ },
+ "mentions": [
+ {
+ "id": "botid",
+ "username": "mybot",
+ "avatar": "https://...",
+ "bot": true
+ }
+ ],
+ "seq": 123,
+ "seq_in_channel": "456",
+ "timestamp": "2026-03-22T04:25:12+08:00"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------------------- | -------- | ------------------------------------------------- |
+| `id` | `string` | 消息 ID。 |
+| `channel_id` | `string` | 子频道 ID。 |
+| `guild_id` | `string` | 频道 ID。 |
+| `content` | `string` | 消息内容,@ 使用 `<@!userid>` 格式。 |
+| `timestamp` | `string` | 消息创建时间,RFC 3339 格式。 |
+| `author` | `object` | 发送者信息(id、username、avatar、bot)。 |
+| `member` | `object` | 成员信息(joined_at、roles)。 |
+| `mentions` | `array` | 被 @ 的用户数组。 |
+| `seq` | `number` | 消息序列号,用于排序。 |
+| `seq_in_channel` | `string` | 频道内序列号。 |
+| `attachments` | `array` | 附件数组(包含 url、content_type、filename 等)。 |
+| `message_reference` | `object` | 引用消息对象(包含 `message_id`)。 |
+
+### 6.3 附件结构 `Attachment`
+
+```json
+{
+ "content_type": "image/png",
+ "filename": "image.png",
+ "height": 600,
+ "size": 248736,
+ "url": "https://multimedia.nt.qq.com.cn/xxx",
+ "width": 800
+}
+```
+
+| 字段 | 类型 | 说明 |
+| -------------- | --------- | ----------------- |
+| `url` | `string` | 附件下载 URL。 |
+| `content_type` | `string` | MIME 类型。 |
+| `filename` | `string` | 文件名。 |
+| `height` | `number?` | 图片 / 视频高度。 |
+| `width` | `number?` | 图片 / 视频宽度。 |
+| `size` | `number` | 文件大小,字节。 |
+
+## 7. 消息类型详解
+
+### 7.1 TEXT(msg_type = 0)
+
+最简单的消息类型,直接在 `content` 字段填入文本内容。
+
+```json
+{
+ "content": "你好,世界!",
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_type": 0
+}
+```
+
+频道消息中的 `content` 支持内嵌格式:
+
+| 格式 | 说明 | 示例 |
+| --------------- | ---------- | -------------------------- |
+| `<@!user_id>` | @某用户 | `<@!11586990140073229091>` |
+| `<#channel_id>` | 引用子频道 | `<#123456>` |
+| `<emoji:id>` | 表情 | `<emoji:4>` |
+
+### 7.2 MARKDOWN(msg_type = 2)
+
+Markdown 消息有两种使用方式:
+
+**方式一:自定义 Markdown(原生内容)**
+
+```json
+{
+ "markdown": {
+ "content": "# 标题\n## 简介\n这是一段 **加粗** 和 *斜体* 的文本。\n- 列表项 1\n- 列表项 2"
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_type": 2
+}
+```
+
+**方式二:模板 Markdown**
+
+```json
+{
+ "markdown": {
+ "custom_template_id": "template_id_12345",
+ "params": [
+ { "key": "title", "values": ["我的标题"] },
+ { "key": "content", "values": ["正文内容"] }
+ ]
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_type": 2
+}
+```
+
+`MessageMarkdown` 结构:
+
+| 字段 | 类型 | 说明 |
+| -------------------- | --------- | ---------------------------------------------------- |
+| `content` | `string?` | 原生 Markdown 文本。与 `custom_template_id` 二选一。 |
+| `custom_template_id` | `string?` | 模板 ID,在平台申请后获得。 |
+| `params` | `array?` | 模板变量的键值映射数组,每项包含 `key` 和 `values`。 |
+
+支持的 Markdown 语法:
+
+| 语法 | 说明 |
+| --------------------------------- | ------------------------ |
+| `#`、`##` | 标题 |
+| `**text**` | 加粗 |
+| `__text__` | 下划线加粗 |
+| `_text_`、`*text*` | 斜体 |
+| `~~text~~` | 删除线 |
+| `[text](url)` | 链接 |
+| `![text #widthpx #heightpx](url)` | 图片(需公网可访问 URL) |
+| `1.`、`-` | 有序 / 无序列表 |
+| `>` | 引用 |
+| `***` | 分割线 |
+
+**工程建议**
+
+- 自定义 Markdown 在沙箱环境可直接使用;正式环境需要邀请开通。
+- 开通模板 MD 或原生 MD 后,主动 MD 默认生效,被动 MD 仍需单独申请。
+- Markdown 内的图片资源必须使用公网可访问的 URL。
+
+### 7.3 ARK(msg_type = 3)
+
+Ark 是 QQ 机器人的模板卡片消息。平台默认提供三个模板:
+
+| 模板 ID | 说明 |
+| ------- | ------------------- |
+| `23` | 链接 + 文本列表布局 |
+| `24` | 文本 + 缩略图布局 |
+| `37` | 大图布局 |
+
+`MessageArk` 结构:
+
+| 字段 | 类型 | 说明 |
+| ------------- | ------- | -------------------- |
+| `template_id` | `int` | 模板 ID。 |
+| `kv` | `array` | 模板变量键值对数组。 |
+
+`kv` 数组元素结构:
+
+| 字段 | 类型 | 说明 |
+| ------- | --------- | --------------------------------------------------------- |
+| `key` | `string` | 变量名,通常以 `#` 包围(如 `#DESC#`)。 |
+| `value` | `string?` | 变量值(简单类型)。 |
+| `obj` | `array?` | 变量值(数组类型),元素为 `{ obj_kv: [{key, value}] }`。 |
+
+```json
+{
+ "ark": {
+ "template_id": 23,
+ "kv": [
+ { "key": "#DESC#", "value": "描述信息" },
+ { "key": "#PROMPT#", "value": "通知摘要" },
+ {
+ "key": "#LIST#",
+ "obj": [
+ { "obj_kv": [{ "key": "desc", "value": "项目 1" }] },
+ { "obj_kv": [{ "key": "desc", "value": "项目 2" }] }
+ ]
+ }
+ ]
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_type": 3
+}
+```
+
+**工程建议**
+
+- 主动 Ark 消息默认可用,被动 Ark 消息需要达到准入条件并向平台申请。
+- 自定义 Ark 模板需在管理后台申请。
+
+### 7.4 EMBED(msg_type = 4)
+
+Embed 是一种特殊的 Ark 消息,仅在**频道子频道**和**频道私信**场景下可用。群聊和单聊不支持。
+
+`MessageEmbed` 结构:
+
+| 字段 | 类型 | 说明 |
+| ----------- | --------- | ---------------------------------- |
+| `title` | `string` | 标题。 |
+| `prompt` | `string` | 消息通知文本(展示在推送通知中)。 |
+| `thumbnail` | `object?` | 缩略图对象,包含 `url` 字段。 |
+| `fields` | `array` | 内容项数组,每项包含 `name` 字段。 |
+
+```json
+{
+ "embed": {
+ "title": "等级通知",
+ "prompt": "你的等级已更新",
+ "thumbnail": { "url": "https://example.com/thumb.png" },
+ "fields": [{ "name": "当前等级:黄金" }, { "name": "之前等级:白银" }, { "name": "继续努力" }]
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490"
+}
+```
+
+### 7.5 MEDIA(msg_type = 7)
+
+富媒体消息(图片、视频、语音、文件)需要先上传到 QQ 服务器获取 `file_info`,再在发送消息时通过 `media` 字段引用。
+
+#### 上传接口
+
+| 场景 | 接口 |
+| ---- | -------------------------------------- |
+| 单聊 | `POST /v2/users/{openid}/files` |
+| 群聊 | `POST /v2/groups/{group_openid}/files` |
+
+**Request Body**
+
+```json
+{
+ "file_type": 1,
+ "srv_send_msg": false,
+ "url": "https://example.com/image.png"
+}
+```
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| -------------- | --------- | -------- | ----------------------------------------------------------------------------------------------------- |
+| `file_type` | `int` | 是 | `1` = 图片(png/jpg),`2` = 视频(mp4),`3` = 语音(silk/wav/mp3/flac),`4` = 文件(群聊不可用)。 |
+| `url` | `string` | 是 | 媒体资源的公网 URL。 |
+| `srv_send_msg` | `bool` | 是 | `true` = 上传并直接发送(消耗主动消息配额);`false` = 仅上传,返回 `file_info` 供后续引用。 |
+| `file_data` | `string?` | 否 | base64 编码的文件二进制数据(替代 URL 方式)。 |
+
+**Response Body**
+
+```json
+{
+ "file_info": "xxxxxx",
+ "file_uuid": "xxxxxx",
+ "id": "xxxxxx",
+ "ttl": 259200
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ----------- | --------- | ------------------------------------------ |
+| `file_uuid` | `string` | 文件唯一标识符。 |
+| `file_info` | `string` | 用于消息发送的文件引用信息。 |
+| `ttl` | `int` | 文件有效期,秒。`0` 表示长期可用。 |
+| `id` | `string?` | 消息 ID(仅 `srv_send_msg=true` 时返回)。 |
+
+#### 引用上传文件发送消息
+
+```json
+{
+ "media": {
+ "file_info": "xxxxxx"
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_seq": 1,
+ "msg_type": 7
+}
+```
+
+**curl 示例(上传图片)**
+
+```bash
+curl 'https://api.sgroup.qq.com/v2/groups/A1B2C3D4E5F6/files' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "file_type": 1,
+ "url": "https://example.com/image.png",
+ "srv_send_msg": false
+ }'
+```
+
+**curl 示例(发送已上传的图片)**
+
+```bash
+curl 'https://api.sgroup.qq.com/v2/groups/A1B2C3D4E5F6/messages' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ -H 'Authorization: QQBot a]kLm4oPqRsT.uVwXyZ_1234567890ABCdEfGhIjK' \
+ --data-raw '{
+ "msg_type": 7,
+ "media": {
+ "file_info": "xxxxxx"
+ },
+ "msg_id": "08e09a8305ac3e5d141a1490",
+ "msg_seq": 1
+ }'
+```
+
+**工程建议**
+
+- 通过 `/v2/users/{openid}/files` 上传的文件只能发到单聊,通过 `/v2/groups/{group_openid}/files` 上传的文件只能发到群聊。不可跨场景使用。
+- 单个 `file_info` 可复用于多个接收者。
+- 开发者需自行管理 `file_info` 的过期时间(根据 `ttl` 字段)。
+- 推荐设置 `srv_send_msg=false`,先获取 `file_info`,再通过消息发送接口发送。
+- 频道消息的图片可直接通过 `image` 字段传入 URL,由平台自动转存,无需单独上传。
+
+### 7.6 引用消息 `MessageReference`
+
+仅频道子频道和频道私信支持。
+
+```json
+{
+ "message_reference": {
+ "message_id": "xxxxxx",
+ "ignore_get_message_error": true
+ }
+}
+```
+
+| 字段 | 类型 | 说明 |
+| -------------------------- | -------- | -------------------------------------------- |
+| `message_id` | `string` | 被引用的消息 ID。 |
+| `ignore_get_message_error` | `bool?` | 是否忽略引用消息获取失败错误,默认 `false`。 |
+
+## 8. Webhook 事件接收
+
+### 8.1 通信载荷结构
+
+所有 Webhook 和 WebSocket 消息使用统一格式:
+
+```json
+{
+ "d": {},
+ "id": "event_id_xxx",
+ "op": 0,
+ "s": 42,
+ "t": "GROUP_AT_MESSAGE_CREATE"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ---- | --------- | -------------------------------- |
+| `id` | `string` | 事件标识符。 |
+| `op` | `int` | 操作码,见下表。 |
+| `d` | `object` | 事件数据,结构随事件类型变化。 |
+| `s` | `number?` | 序列号,用于消息唯一性判断。 |
+| `t` | `string?` | 事件类型名称,仅 `op=0` 时存在。 |
+
+### 8.2 操作码 OpCode
+
+| 代码 | 名称 | 方向 | 说明 |
+| ---- | ----------------- | ---------------- | ------------------ |
+| `0` | DISPATCH | 服务端 -> 客户端 | 事件推送。 |
+| `12` | HTTP_CALLBACK_ACK | 客户端 -> 服务端 | 确认收到事件回调。 |
+| `13` | CALLBACK_VERIFY | 服务端 -> 客户端 | 回调地址验证请求。 |
+
+### 8.3 回调地址验证(op = 13)
+
+配置 Webhook 回调地址时,平台会发送验证请求。
+
+**请求 Headers**
+
+| Header | 说明 |
+| ------------- | ---------------- |
+| `User-Agent` | `QQBot-Callback` |
+| `X-Bot-Appid` | 机器人 appId |
+
+**请求 Body**
+
+```json
+{
+ "d": {
+ "plain_token": "xxxxxx",
+ "event_ts": "1677000000"
+ },
+ "op": 13
+}
+```
+
+**响应 Body**
+
+机器人服务端需返回:
+
+```json
+{
+ "plain_token": "xxxxxx",
+ "signature": "hex_encoded_ed25519_signature"
+}
+```
+
+签名计算过程:
+
+1. 将 Bot Secret 字符串重复填充至 32 字节(Ed25519 seed 长度)。
+2. 用该 seed 生成 Ed25519 密钥对。
+3. 拼接签名体:`event_ts + plain_token`。
+4. 用私钥签名,结果转十六进制编码。
+
+**工程建议**
+
+- 回调地址仅支持 80、443、8080、8443 端口。
+- 必须使用 HTTPS。
+- 验证请求的 `plain_token` 需原样返回。
+
+### 8.4 事件签名验证
+
+接收到事件推送后,应验证请求签名:
+
+1. 从 HTTP Header 获取 `X-Signature-Ed25519`(十六进制编码的签名)。
+2. 从 HTTP Header 获取 `X-Signature-Timestamp`(时间戳)。
+3. 拼接签名体:`X-Signature-Timestamp + HTTP Body`。
+4. 用步骤 8.3 中生成的公钥调用 `ed25519.Verify` 验证签名。
+
+### 8.5 事件回调确认
+
+收到事件后,机器人服务端应返回:
+
+```json
+{
+ "d": 0,
+ "op": 12
+}
+```
+
+HTTP 状态码 `200`。
+
+### 8.6 事件类型
+
+| 事件类型 | Intent | 说明 |
+| ------------------------- | --------------------------------- | ------------------------------ |
+| `C2C_MESSAGE_CREATE` | `GROUP_AND_C2C_EVENT` (1 << 25) | 用户单聊消息。 |
+| `GROUP_AT_MESSAGE_CREATE` | `GROUP_AND_C2C_EVENT` (1 << 25) | 用户在群内 @机器人。 |
+| `AT_MESSAGE_CREATE` | `PUBLIC_GUILD_MESSAGES` (1 << 30) | 频道内 @机器人(公域)。 |
+| `MESSAGE_CREATE` | `GUILD_MESSAGES` (1 << 9) | 频道全量消息(私域,需权限)。 |
+| `DIRECT_MESSAGE_CREATE` | `DIRECT_MESSAGE` (1 << 12) | 频道私信消息。 |
+
+**Intent 计算**
+
+多个事件组合使用按位或:
+
+```
+intents = (1 << 25) | (1 << 30) | (1 << 12)
+```
+
+**工程建议**
+
+- 为保证消息送达,平台可能重复推送相同消息 ID 的事件。开发者应基于消息 ID 做去重,避免重复回复。
+- `GROUP_AND_C2C_EVENT` (1 << 25) 是群聊和单聊场景的 Intent。
+- `PUBLIC_GUILD_MESSAGES` (1 << 30) 是公域频道 @机器人 的 Intent。
+- `GUILD_MESSAGES` (1 << 9) 需要私域权限,一般不使用。
+- 未授权的 Intent 会导致连接被断开。
+
+## 9. Ed25519 签名算法
+
+### 9.1 Seed 派生
+
+将 Bot Secret 重复拼接直到达到 32 字节:
+
+```text
+secret = "naOC0ocQE3shWLAfffVLB1rhYPG7" (28 字节)
+seed = "naOC0ocQE3shWLAfffVLB1rhYPG7naOC" (32 字节)
+```
+
+### 9.2 TypeScript 实现示例
+
+```ts
+import crypto from 'node:crypto';
+
+function deriveEd25519Seed(secret: string): Buffer {
+ const seed = Buffer.alloc(32);
+ const secretBuf = Buffer.from(secret, 'utf8');
+ for (let i = 0; i < 32; i++) {
+ seed[i] = secretBuf[i % secretBuf.length];
+ }
+ return seed;
+}
+
+function signCallback(secret: string, eventTs: string, plainToken: string): string {
+ const seed = deriveEd25519Seed(secret);
+ const keyPair = crypto.sign(null, Buffer.from(eventTs + plainToken), {
+ key: crypto.createPrivateKey({
+ format: 'der',
+ type: 'pkcs8',
+ // Ed25519 PKCS8 DER prefix + seed
+ key: Buffer.concat([Buffer.from('302e020100300506032b657004220420', 'hex'), seed]),
+ }),
+ });
+ return keyPair.toString('hex');
+}
+```
+
+## 10. 错误码参考表
+
+### 10.1 HTTP 层
+
+| 状态码 | 含义 | 处理建议 |
+| ----------- | ------------ | -------------------------- |
+| `200` | 成功 | 正常处理。 |
+| `201`/`202` | 异步成功 | 检查响应体。 |
+| `204` | 成功无响应体 | 常见于删除操作。 |
+| `401` | 认证失败 | 检查 Token,可能需要刷新。 |
+| `404` | 接口不存在 | 检查 URL 拼写。 |
+| `405` | 方法不允许 | 检查 HTTP 方法。 |
+| `429` | 频率限制 | 退避重试。 |
+| `500`/`504` | 服务端错误 | 有限重试,建议最多 3 次。 |
+
+### 10.2 业务层
+
+| 错误码范围 | 类别 | 说明 |
+| ----------------- | -------- | -------------------------------------------------------------- |
+| `10001-11275` | 账号认证 | appId 无效、Token 校验失败等。Token 校验失败一般重试一次即可。 |
+| `20028` | 消息限频 | 超出频率限制。 |
+| `50006` | 消息为空 | 消息体缺少有效内容。 |
+| `50045` | 回复限制 | 不允许回复机器人自己的消息。 |
+| `301000-610014` | 频道权限 | 无效频道 / 子频道 ID、权限不足等。 |
+| `304023`/`304024` | 内容审核 | 消息进入审核,响应包含 `audit_id`。 |
+| `620001-639999` | 安全过滤 | 内容包含敏感信息。 |
+| `1100100-1100499` | 内容违规 | 敏感内容检测(如 `1100101` 表示 "内容涉及敏感")。 |
+| `3000000-3999999` | 消息编辑 | 编辑限制(如不能修改非机器人消息)。 |
+
+**工程建议**
+
+- 认证失败(`401` 或 `10001` 系列)应触发 Token 刷新,然后重试。
+- 频率限制(`429` 或 `20028`)应按指数退避策略重试。
+- 内容审核(`304023`/`304024`)不应重试,等待审核结果即可。
+- URL 包含的消息需在管理后台预先配置白名单,否则可能被拦截。
+
+## 11. 完整消息流程图
+
+```mermaid
+sequenceDiagram
+ participant U as QQ 用户
+ participant Q as QQ 开放平台
+ participant B as Bot 服务端
+ participant A as Agent/LLM
+
+ Note over B: 启动时获取 AccessToken
+ B->>Q: POST /app/getAppAccessToken<br/>appId + clientSecret
+ Q-->>B: access_token, expires_in
+
+ U->>Q: 在群内 @机器人 发消息
+ Q->>B: Webhook POST (op=0)<br/>t=GROUP_AT_MESSAGE_CREATE<br/>d={id, content, group_openid, author}
+ B->>Q: 返回 {op: 12, d: 0} 确认
+
+ B->>A: 转发消息内容给 Agent 处理
+ A-->>B: 返回回复文本
+
+ alt 回复纯文本
+ B->>Q: POST /v2/groups/{group_openid}/messages<br/>msg_type=0, content, msg_id
+ else 回复富媒体
+ B->>Q: POST /v2/groups/{group_openid}/files<br/>file_type=1, url, srv_send_msg=false
+ Q-->>B: file_info
+ B->>Q: POST /v2/groups/{group_openid}/messages<br/>msg_type=7, media={file_info}, msg_id
+ end
+
+ Q-->>B: {id, timestamp}
+ Q-->>U: 用户在群内看到回复
+```
+
+## 12. 附录:与其他平台对比
+
+| 维度 | Telegram Bot API | 微信 iLink Bot API | QQ 开放平台 Bot API |
+| -------------- | --------------------------- | ------------------------------ | --------------------------------------------------------- |
+| 收消息方式 | `getUpdates` 或 Webhook | `getupdates` 长轮询 | WebSocket 或 HTTP Webhook |
+| 发送目标 | `chat_id` | `to_user_id` + `context_token` | `group_openid` / `openid` / `channel_id` / DMS `guild_id` |
+| 对话关联主键 | `chat_id` 足够 | `context_token` 是关键 | 路径参数中的 openid/channel_id 即可 |
+| 主动发消息能力 | 只要知道 `chat_id` 通常即可 | 依赖最近入站 `context_token` | 有严格月度 / 日度配额限制 |
+| 被动回复窗口 | 无限制 | 无明确公开限制 | 群聊 5 分钟 / 单聊 60 分钟 |
+| 消息去重 | `message_id` 自动处理 | `client_id` 避免重复 | `msg_id` + `msg_seq` 去重 |
+| 媒体上传 | multipart/form-data | AES-128-ECB + CDN 上传 | URL 转存或 base64 上传,返回 `file_info` |
+| 认证方式 | Bot Token(永久) | 二维码扫码获取 Bot Token | appId + clientSecret 获取 AccessToken(2h 过期) |
+| 签名验证 | 无 | 无 | Ed25519 签名 |
+| 内容审核 | 无强制 | 无公开审核 | 平台内置审核,可能返回 `audit_id` |
+
+总结:QQ 开放平台的消息模型比 Telegram 更受限(主动消息有配额、被动回复有时间窗口),但比微信 iLink 更标准化(不需要维护 `context_token`,使用标准 RESTful 路径参数寻址)。签名验证使用 Ed25519 算法,是三者中安全机制最完整的。开发者应优先使用被动回复模式,合理管理 AccessToken 生命周期,并在消息发送时正确设置 `msg_id` + `msg_seq` 以避免去重拒绝。
+
+## 13. 实测验证记录
+
+> 本节记录 message tool 服务适配器(`QQMessageService`)与 QQ 开放平台 API 的对接验证情况。
+
+### 13.1 验证方式
+
+QQ API 通过代码审查与官方文档对照进行验证,确认各接口的请求 / 响应格式与官方规范一致。
+
+### 13.2 关键发现
+
+| 发现 | 说明 |
+| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `sendMessage` 不可用 | 自 2025 年 4 月起,QQ 已下线主动消息能力。所有消息必须作为被动回复发送,需携带触发用户消息的 `msg_id`。message tool 的执行上下文不携带 `msg_id`,因此 `sendMessage` 在服务适配器中被标记为不支持(`unsupported`)。 |
+| API 能力极度受限 | QQ 开放平台仅提供消息发送相关 API,不提供消息历史读取、消息编辑、消息删除、表情回复、频道信息查询、成员信息查询等能力。这使得 message tool 的 17 项操作中几乎全部无法实现。 |
+| `channelId` 格式约定 | 服务适配器使用 `"type:id"` 格式编码 channelId,以区分不同的消息场景。例如:`"group:A1B2C3D4E5F6"`(群聊)、`"guild:789012"`(频道)、`"c2c:F6A8B9C0D1E2"`(单聊)、`"dms:DMS_GUILD_ID"`(频道私信)。 |
+
+### 13.3 服务适配器操作支持情况
+
+服务适配器支持 **0 / 17** 项 message tool 操作(`sendMessage` 因缺少 `msg_id` 上下文而标记为不支持):
+
+| 操作 | 支持 | 原因 |
+| ------------------- | ---- | ---------------------------------------------------- |
+| `sendMessage` | No | 需要 `msg_id` 进行被动回复,tool 上下文不提供 |
+| `readMessages` | No | QQ API 无消息历史读取接口 |
+| `editMessage` | No | QQ API 无消息编辑接口 |
+| `deleteMessage` | No | QQ API 无消息撤回接口(仅频道有撤回,群聊 / 单聊无) |
+| `reactToMessage` | No | QQ API 无表情回复接口(仅频道有表情表态) |
+| `getChannelInfo` | No | QQ API 无通用频道信息查询接口 |
+| `getMemberInfo` | No | QQ API 无成员信息查询接口 |
+| `replyToThread` | No | QQ API 无话题回复机制 |
+| `searchMessages` | No | QQ API 无消息搜索接口 |
+| `getReactions` | No | QQ API 无表情回复查询接口 |
+| `pinMessage` | No | QQ API 无消息置顶接口(仅频道有) |
+| `unpinMessage` | No | QQ API 无取消置顶接口 |
+| `getPinnedMessages` | No | QQ API 无置顶消息查询接口 |
+| `listChannels` | No | QQ API 无通用频道列表接口 |
+| `createThread` | No | QQ API 无话题创建接口 |
+| `listThreads` | No | QQ API 无话题列表接口 |
+| `createPoll` | No | QQ API 无投票接口 |
diff --git a/src/server/services/bot/platforms/qq/schema.ts b/src/server/services/bot/platforms/qq/schema.ts
index ceb42d3d325..17cae3666d2 100644
--- a/src/server/services/bot/platforms/qq/schema.ts
+++ b/src/server/services/bot/platforms/qq/schema.ts
@@ -1,4 +1,6 @@
-import { MAX_DEBOUNCE_MS } from '../const';
+import { MAX_BOT_DEBOUNCE_MS } from '@lobechat/const';
+
+import { userIdField } from '../const';
import type { FieldSchema } from '../types';
export const schema: FieldSchema[] = [
@@ -50,7 +52,7 @@ export const schema: FieldSchema[] = [
default: 5000,
description: 'channel.debounceMsHint',
label: 'channel.debounceMs',
- maximum: MAX_DEBOUNCE_MS,
+ maximum: MAX_BOT_DEBOUNCE_MS,
minimum: 100,
type: 'number',
visibleWhen: { field: 'concurrency', value: 'debounce' },
@@ -62,6 +64,7 @@ export const schema: FieldSchema[] = [
label: 'channel.showUsageStats',
type: 'boolean',
},
+ userIdField,
// TODO: DM schema - not implemented yet
// {
// key: 'dm',
diff --git a/src/server/services/bot/platforms/qq/service.ts b/src/server/services/bot/platforms/qq/service.ts
new file mode 100644
index 00000000000..def51b466ec
--- /dev/null
+++ b/src/server/services/bot/platforms/qq/service.ts
@@ -0,0 +1,163 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+import type { QQApiClient } from '@lobechat/chat-adapter-qq';
+
+import type { MessageRuntimeService } from '@/server/services/toolExecution/serverRuntimes/message/adapters/types';
+import { PlatformUnsupportedError } from '@/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError';
+
+/**
+ * Parse channelId into thread type and target ID.
+ * QQ channelId format: "type:id" (e.g., "group:123", "guild:456", "c2c:789", "dms:abc")
+ * If no type prefix, defaults to "group".
+ */
+const parseChannelId = (channelId: string): { targetId: string; threadType: string } => {
+ const parts = channelId.split(':');
+ if (parts.length >= 2) {
+ return { targetId: parts.slice(1).join(':'), threadType: parts[0] };
+ }
+ return { targetId: channelId, threadType: 'group' };
+};
+
+const sendQQMessage = async (
+ api: QQApiClient,
+ threadType: string,
+ targetId: string,
+ content: string,
+): Promise<string | undefined> => {
+ let result;
+ switch (threadType) {
+ case 'guild': {
+ result = await api.sendGuildMessage(targetId, content);
+ break;
+ }
+ case 'c2c': {
+ result = await api.sendC2CMessage(targetId, content);
+ break;
+ }
+ case 'dms': {
+ result = await api.sendDmsMessage(targetId, content);
+ break;
+ }
+ default: {
+ result = await api.sendGroupMessage(targetId, content);
+ break;
+ }
+ }
+ return result?.id;
+};
+
+export class QQMessageService implements MessageRuntimeService {
+ constructor(private api: QQApiClient) {}
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ // Note: QQ group/C2C messages (v2 API) require msg_id for passive replies.
+ // Active messages have been disabled since April 2025.
+ // Guild channel messages (v1 API) may still support active sending.
+ // We attempt the send and let the QQ API return specific errors if unsupported.
+ const { threadType, targetId } = parseChannelId(params.channelId);
+ const messageId = await sendQQMessage(this.api, threadType, targetId, params.content);
+ return {
+ channelId: params.channelId,
+ messageId: messageId ?? undefined,
+ platform: 'qq',
+ };
+ };
+
+ readMessages = async (_params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ throw new PlatformUnsupportedError('QQ', 'readMessages');
+ };
+
+ editMessage = async (_params: EditMessageParams): Promise<EditMessageState> => {
+ throw new PlatformUnsupportedError('QQ', 'editMessage');
+ };
+
+ deleteMessage = async (_params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ throw new PlatformUnsupportedError('QQ', 'deleteMessage');
+ };
+
+ searchMessages = async (_params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ throw new PlatformUnsupportedError('QQ', 'searchMessages');
+ };
+
+ reactToMessage = async (_params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ throw new PlatformUnsupportedError('QQ', 'reactToMessage');
+ };
+
+ getReactions = async (_params: GetReactionsParams): Promise<GetReactionsState> => {
+ throw new PlatformUnsupportedError('QQ', 'getReactions');
+ };
+
+ pinMessage = async (_params: PinMessageParams): Promise<PinMessageState> => {
+ throw new PlatformUnsupportedError('QQ', 'pinMessage');
+ };
+
+ unpinMessage = async (_params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ throw new PlatformUnsupportedError('QQ', 'unpinMessage');
+ };
+
+ listPins = async (_params: ListPinsParams): Promise<ListPinsState> => {
+ throw new PlatformUnsupportedError('QQ', 'listPins');
+ };
+
+ getChannelInfo = async (_params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ throw new PlatformUnsupportedError('QQ', 'getChannelInfo');
+ };
+
+ listChannels = async (_params: ListChannelsParams): Promise<ListChannelsState> => {
+ throw new PlatformUnsupportedError('QQ', 'listChannels');
+ };
+
+ getMemberInfo = async (_params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ throw new PlatformUnsupportedError('QQ', 'getMemberInfo');
+ };
+
+ createThread = async (_params: CreateThreadParams): Promise<CreateThreadState> => {
+ throw new PlatformUnsupportedError('QQ', 'createThread');
+ };
+
+ listThreads = async (_params: ListThreadsParams): Promise<ListThreadsState> => {
+ throw new PlatformUnsupportedError('QQ', 'listThreads');
+ };
+
+ replyToThread = async (_params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ throw new PlatformUnsupportedError('QQ', 'replyToThread');
+ };
+
+ createPoll = async (_params: CreatePollParams): Promise<CreatePollState> => {
+ throw new PlatformUnsupportedError('QQ', 'createPoll');
+ };
+}
diff --git a/src/server/services/bot/platforms/registry.test.ts b/src/server/services/bot/platforms/registry.test.ts
index 5bf2b28c6af..eb0cc568ee4 100644
--- a/src/server/services/bot/platforms/registry.test.ts
+++ b/src/server/services/bot/platforms/registry.test.ts
@@ -84,7 +84,7 @@ describe('PlatformRegistry', () => {
const result = await registry.validateCredentials('test', { token: 'abc' });
expect(result).toEqual({ valid: true });
- expect(mockValidate).toHaveBeenCalledWith({ token: 'abc' }, undefined, undefined);
+ expect(mockValidate).toHaveBeenCalledWith({ token: 'abc' }, undefined, undefined, 'test');
});
it('should return error for unknown platform', async () => {
diff --git a/src/server/services/bot/platforms/registry.ts b/src/server/services/bot/platforms/registry.ts
index adafbc6d324..0c61970f394 100644
--- a/src/server/services/bot/platforms/registry.ts
+++ b/src/server/services/bot/platforms/registry.ts
@@ -76,6 +76,11 @@ export class PlatformRegistry {
valid: false,
};
}
- return definition.clientFactory.validateCredentials(credentials, settings, applicationId);
+ return definition.clientFactory.validateCredentials(
+ credentials,
+ settings,
+ applicationId,
+ platform,
+ );
}
}
diff --git a/src/server/services/bot/platforms/slack/api.ts b/src/server/services/bot/platforms/slack/api.ts
index cbb8ae94230..8c44105eb6f 100644
--- a/src/server/services/bot/platforms/slack/api.ts
+++ b/src/server/services/bot/platforms/slack/api.ts
@@ -45,6 +45,112 @@ export class SlackApi {
await this.call('reactions.remove', { channel, name, timestamp });
}
+ // ==================== Message Operations ====================
+
+ async getHistory(
+ channel: string,
+ options?: {
+ cursor?: string;
+ inclusive?: boolean;
+ latest?: string;
+ limit?: number;
+ oldest?: string;
+ },
+ ): Promise<{ has_more: boolean; messages: any[] }> {
+ log('getHistory: channel=%s', channel);
+ const data = await this.call('conversations.history', { channel, ...options });
+ return { has_more: data.has_more ?? false, messages: data.messages ?? [] };
+ }
+
+ async deleteMessage(channel: string, ts: string): Promise<void> {
+ log('deleteMessage: channel=%s, ts=%s', channel, ts);
+ await this.call('chat.delete', { channel, ts });
+ }
+
+ async search(
+ query: string,
+ options?: { count?: number; sort?: string },
+ ): Promise<{ matches: any[]; total: number }> {
+ log('search: query=%s', query);
+ const data = await this.call('search.messages', { query, ...options });
+ return {
+ matches: data.messages?.matches ?? [],
+ total: data.messages?.total ?? 0,
+ };
+ }
+
+ // ==================== Reactions ====================
+
+ async addReaction(channel: string, timestamp: string, name: string): Promise<void> {
+ log('addReaction: channel=%s, ts=%s, name=%s', channel, timestamp, name);
+ await this.call('reactions.add', { channel, name, timestamp });
+ }
+
+ async getReactions(
+ channel: string,
+ timestamp: string,
+ ): Promise<{ reactions: { count: number; name: string; users: string[] }[] }> {
+ log('getReactions: channel=%s, ts=%s', channel, timestamp);
+ const data = await this.call('reactions.get', { channel, timestamp });
+ return { reactions: data.message?.reactions ?? [] };
+ }
+
+ // ==================== Pins ====================
+
+ async pinMessage(channel: string, timestamp: string): Promise<void> {
+ log('pinMessage: channel=%s, ts=%s', channel, timestamp);
+ await this.call('pins.add', { channel, timestamp });
+ }
+
+ async unpinMessage(channel: string, timestamp: string): Promise<void> {
+ log('unpinMessage: channel=%s, ts=%s', channel, timestamp);
+ await this.call('pins.remove', { channel, timestamp });
+ }
+
+ async listPins(channel: string): Promise<{ items: any[] }> {
+ log('listPins: channel=%s', channel);
+ const data = await this.call('pins.list', { channel });
+ return { items: data.items ?? [] };
+ }
+
+ // ==================== Channel & User Info ====================
+
+ async getChannelInfo(channel: string): Promise<any> {
+ log('getChannelInfo: channel=%s', channel);
+ const data = await this.call('conversations.info', { channel, include_num_members: true });
+ return data.channel;
+ }
+
+ async listChannels(options?: {
+ exclude_archived?: boolean;
+ limit?: number;
+ types?: string;
+ }): Promise<{ channels: any[]; response_metadata?: { next_cursor?: string } }> {
+ log('listChannels');
+ const data = await this.call('conversations.list', {
+ exclude_archived: true,
+ limit: 200,
+ types: 'public_channel,private_channel',
+ ...options,
+ });
+ return {
+ channels: data.channels ?? [],
+ response_metadata: data.response_metadata,
+ };
+ }
+
+ async getUserInfo(userId: string): Promise<any> {
+ log('getUserInfo: userId=%s', userId);
+ const data = await this.call('users.info', { user: userId });
+ return data.user;
+ }
+
+ async getReplies(channel: string, threadTs: string): Promise<{ messages: any[] }> {
+ log('getReplies: channel=%s, threadTs=%s', channel, threadTs);
+ const data = await this.call('conversations.replies', { channel, ts: threadTs });
+ return { messages: data.messages ?? [] };
+ }
+
// ------------------------------------------------------------------
private truncateText(text: string): string {
@@ -56,11 +162,21 @@ export class SlackApi {
private async call(method: string, body: Record<string, unknown>): Promise<any> {
const url = `${SLACK_API_BASE}/${method}`;
+ // Use application/x-www-form-urlencoded for maximum compatibility.
+ // Some Slack methods (conversations.info, reactions.get, etc.) do not
+ // accept JSON body parameters via POST, but all methods accept form-encoded.
+ const params = new URLSearchParams();
+ for (const [key, value] of Object.entries(body)) {
+ if (value !== undefined && value !== null) {
+ params.set(key, typeof value === 'object' ? JSON.stringify(value) : String(value));
+ }
+ }
+
const response = await fetch(url, {
- body: JSON.stringify(body),
+ body: params,
headers: {
'Authorization': `Bearer ${this.botToken}`,
- 'Content-Type': 'application/json; charset=utf-8',
+ 'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8',
},
method: 'POST',
});
diff --git a/src/server/services/bot/platforms/slack/const.ts b/src/server/services/bot/platforms/slack/const.ts
new file mode 100644
index 00000000000..2d049ceec5f
--- /dev/null
+++ b/src/server/services/bot/platforms/slack/const.ts
@@ -0,0 +1,2 @@
+/** Slack API allows max 999 messages per request. */
+export const MAX_SLACK_HISTORY_LIMIT = 999;
diff --git a/src/server/services/bot/platforms/slack/protocol-spec.md b/src/server/services/bot/platforms/slack/protocol-spec.md
new file mode 100644
index 00000000000..acbfb156437
--- /dev/null
+++ b/src/server/services/bot/platforms/slack/protocol-spec.md
@@ -0,0 +1,1365 @@
+# Slack Web API 通信协议规范
+
+> 适用对象:实现 Slack Bot 消息操作的 SDK、网关和独立 Bot。
+>
+> 整理依据:Slack 官方文档 `docs.slack.dev`、仓库 `api.ts` 中 `SlackApi` 类的实际调用、Slack Web API 公开规范。
+>
+> 说明:文中标注 "工程建议" 的内容来自现有客户端实现经验,用于提高兼容性;它们不是服务端返回字段本身的一部分。
+
+## 1. 概述
+
+Slack Web API 是 Slack 平台的 HTTP/JSON 接口。所有方法的基座地址统一为 `https://slack.com/api/{method}`。协议核心特征有三点:一是所有接口均使用 Bearer Token 认证;二是所有写操作(发消息、更新、删除、添加反应等)统一使用 `POST` 方法,读操作(查询历史、获取信息等)使用 `GET` 方法;三是每条消息由 `channel` + `ts`(时间戳)唯一标识,所有针对已有消息的操作都依赖这一对组合键。
+
+## 2. 认证与公共请求规范
+
+### 2.1 认证方式
+
+Slack Web API 使用 OAuth Bearer Token 认证。Token 通过 HTTP `Authorization` 头传递。
+
+**请求头**
+
+| Header | 示例值 | 是否必需 | 说明 |
+| --------------- | -------------------------------------------------- | -------- | ---------------------------------------------------- |
+| `Authorization` | `Bearer $SLACK_BOT_TOKEN` | 是 | Bot User OAuth Token,以 `xoxb-` 开头。 |
+| `Content-Type` | `application/x-www-form-urlencoded; charset=utf-8` | 是 | POST 请求统一使用 form-urlencoded 格式,兼容性最佳。 |
+
+> **工程说明(Content-Type 选择)**:Slack 官方文档称 `application/json` 适用于大多数 POST 方法,但实测发现部分方法(如 `conversations.info`、`reactions.get`)在使用 JSON Content-Type 时会忽略 body 参数导致请求失败。而 `application/x-www-form-urlencoded` 是 Slack Web API 所有方法均支持的格式,兼容性远优于 JSON。因此本规范统一推荐使用 `application/x-www-form-urlencoded; charset=utf-8` 作为 POST 请求的 Content-Type,以避免跨方法的兼容性问题。
+
+**Token 类型**
+
+| 前缀 | 类型 | 说明 |
+| ------- | ---------------- | -------------------------------------------------- |
+| `xoxb-` | Bot User Token | Bot 级别令牌,适用于大多数操作。 |
+| `xoxp-` | User OAuth Token | 用户级别令牌,`search.messages` 等方法要求此类型。 |
+| `xoxe-` | Enterprise Token | 企业级令牌,Enterprise Grid 部署中使用。 |
+
+### 2.2 通用响应结构
+
+所有 Slack Web API 响应均包含 `ok` 布尔字段,指示操作是否成功。
+
+**成功响应**
+
+```json
+{
+ "ok": true,
+ ...
+}
+```
+
+**失败响应**
+
+```json
+{
+ "error": "channel_not_found",
+ "ok": false
+}
+```
+
+### 2.3 速率限制
+
+Slack 按方法、按工作空间评估速率限制,分四个等级:
+
+| 等级 | 频率上限 | 说明 |
+| ------ | -------------- | ----------------------------------------------------- |
+| Tier 1 | 1+ 次 / 分钟 | 极低频方法。 |
+| Tier 2 | 20+ 次 / 分钟 | 大多数写操作。 |
+| Tier 3 | 50+ 次 / 分钟 | 集合类查询方法。 |
+| Tier 4 | 100+ 次 / 分钟 | 高频查询方法。 |
+| 特殊 | 视方法而定 | `chat.postMessage` 为每频道 1 次 / 秒,允许短暂突发。 |
+
+超过限制时,Slack 返回 HTTP `429 Too Many Requests`,响应头 `Retry-After` 指定等待秒数。
+
+**工程建议**
+
+- 以 1 次 / 秒为基准设计调用频率,允许临时突发但不要依赖未公开的突发容量。
+- 使用 `Retry-After` 头实现指数退避重试。
+- 429 只影响当前方法和工作空间,不影响其他方法或工作空间。
+- 2025 年 5 月起,非 Marketplace 的商业分发应用对 `conversations.history` 和 `conversations.replies` 限制为每分钟 1 次,最大 limit 降至 15。
+
+### 2.4 常见错误码
+
+| 错误码 | 含义 | 处理建议 |
+| --------------------- | ------------------------- | ------------------------------- |
+| `not_authed` | 未提供有效 Token。 | 检查 Authorization 头。 |
+| `invalid_auth` | Token 无效或已过期。 | 重新获取 Token。 |
+| `token_revoked` | Token 已被撤销。 | 重新授权。 |
+| `channel_not_found` | 频道不存在或 Bot 无权限。 | 确认频道 ID 和 Bot 的频道权限。 |
+| `message_not_found` | 消息不存在。 | 确认 ts 和 channel 组合。 |
+| `cant_update_message` | 无法更新该消息。 | 只能更新自己发送的消息。 |
+| `cant_delete_message` | 无法删除该消息。 | 只能删除 Bot 自己发送的消息。 |
+| `already_reacted` | 已添加过相同 reaction。 | 忽略或先检查再添加。 |
+| `no_reaction` | 该 reaction 不存在。 | 忽略或先检查再移除。 |
+| `too_many_pins` | 频道 pin 数量达到上限。 | 先取消旧 pin。 |
+| `not_pinnable` | 该消息类型不可被 pin。 | 不要 pin 系统消息、文件评论等。 |
+| `missing_scope` | Token 缺少所需 scope。 | 重新配置 OAuth scope。 |
+| `ratelimited` | 触发速率限制。 | 读取 Retry-After 头后重试。 |
+
+## 3. 消息操作
+
+### 3.1 chat.postMessage — 发送消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/chat.postMessage`
+
+**所需权限**
+
+- Bot Token Scope:`chat:write`
+- 发送到未加入的公共频道:额外需要 `chat:write.public`
+- 自定义用户名 / 图标:额外需要 `chat:write.customize`
+
+**速率限制**
+
+特殊:每频道 1 次 / 秒,短暂突发允许;工作空间级别每分钟数百条消息。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------------- | --------- | -------- | ---------------------------------------------------------------------- |
+| `channel` | `string` | 是 | 目标频道 ID、私有群组 ID 或 IM 频道 ID。 |
+| `text` | `string` | 条件必需 | 消息正文;使用 `blocks` 时作为无障碍回退文本。上限 40,000 字符。 |
+| `thread_ts` | `string` | 否 | 父消息的时间戳,用于创建线程回复。 |
+| `blocks` | `array` | 否 | Block Kit 结构化消息块数组。 |
+| `attachments` | `array` | 否 | 附件数组,单条消息最多 100 个附件。 |
+| `mrkdwn` | `boolean` | 否 | 是否启用 mrkdwn 格式解析,默认 `true`。 |
+| `reply_broadcast` | `boolean` | 否 | 配合 `thread_ts` 使用,使线程回复在频道主视图可见。 |
+| `unfurl_links` | `boolean` | 否 | 是否展开文本链接预览。 |
+| `unfurl_media` | `boolean` | 否 | 是否展开媒体链接预览。 |
+| `metadata` | `object` | 否 | 事件元数据,包含 `event_type` 和 `event_payload`。 |
+| `parse` | `string` | 否 | 消息格式化行为调整。 |
+| `icon_emoji` | `string` | 否 | 自定义消息图标 emoji,如 `:robot_face:`。 |
+| `icon_url` | `string` | 否 | 自定义消息图标 URL。 |
+| `username` | `string` | 否 | 自定义发送者显示名称。 |
+| `markdown_text` | `string` | 否 | Markdown 格式文本,上限 12,000 字符;与 `blocks`/`text` 不可同时使用。 |
+
+**响应结构**
+
+```json
+{
+ "channel": "C0123ABCDEF",
+ "message": {
+ "text": "Hello, world!",
+ "type": "message",
+ "subtype": "bot_message",
+ "ts": "1503435956.000247"
+ },
+ "ok": true,
+ "ts": "1503435956.000247"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| --------- | --------- | -------------------------------- |
+| `ok` | `boolean` | 是否成功。 |
+| `channel` | `string` | 消息所在频道 ID。 |
+| `ts` | `string` | 消息时间戳,是该消息的唯一标识。 |
+| `message` | `object` | 消息对象。 |
+
+**curl 示例 — 发送普通消息**
+
+```bash
+curl 'https://slack.com/api/chat.postMessage' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&text=Hello%2C+world!'
+```
+
+**curl 示例 — 发送线程回复**
+
+```bash
+curl 'https://slack.com/api/chat.postMessage' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&text=This+is+a+thread+reply.&thread_ts=1503435956.000247'
+```
+
+**工程建议**
+
+- `text` 推荐长度 4,000 字符以内;硬限制为 40,000 字符,超出后会被截断。
+- 当使用 `blocks` 时,仍然建议提供 `text` 作为无障碍阅读器回退。
+- `thread_ts` 应使用父消息的 ts,不要使用回复消息的 ts。
+- 使用 `reply_broadcast: true` 可以使线程回复在频道主时间线可见,但应谨慎使用避免频道噪音。
+- Bot 需先加入频道或拥有 `chat:write.public` scope 才能发送到公共频道。
+- 单条消息最多 10 个联系人卡片。
+
+### 3.2 chat.update — 更新消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/chat.update`
+
+**所需权限**
+
+- Bot Token Scope:`chat:write`
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------------- | --------- | -------- | ------------------------------------- |
+| `channel` | `string` | 是 | 消息所在频道 ID。 |
+| `ts` | `string` | 是 | 要更新的消息时间戳。 |
+| `text` | `string` | 否 | 新的消息正文,上限 4,000 字符。 |
+| `blocks` | `array` | 否 | 新的 Block Kit 结构化消息块数组。 |
+| `attachments` | `array` | 否 | 新的附件数组。 |
+| `metadata` | `object` | 否 | 事件元数据(URL 编码 JSON)。 |
+| `markdown_text` | `string` | 否 | Markdown 格式文本,上限 12,000 字符。 |
+| `link_names` | `boolean` | 否 | 查找并链接用户名 / 频道名。 |
+| `parse` | `string` | 否 | `"none"` 或 `"full"`,默认随客户端。 |
+| `reply_broadcast` | `boolean` | 否 | 广播线程回复到频道。 |
+| `file_ids` | `array` | 否 | 新的文件 ID 列表。 |
+
+**响应结构**
+
+```json
+{
+ "channel": "C0123ABCDEF",
+ "message": {
+ "text": "Updated message text",
+ "user": "U0123ABCDEF"
+ },
+ "ok": true,
+ "text": "Updated message text",
+ "ts": "1503435956.000247"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| --------- | --------- | ------------------ |
+| `ok` | `boolean` | 是否成功。 |
+| `channel` | `string` | 频道 ID。 |
+| `ts` | `string` | 消息时间戳。 |
+| `text` | `string` | 更新后的文本。 |
+| `message` | `object` | 更新后的消息对象。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/chat.update' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&ts=1503435956.000247&text=Updated%3A+Hello%2C+world!'
+```
+
+**工程建议**
+
+- Bot Token 只能更新自己发送的消息。
+- 使用 `chat.postEphemeral` 发送的临时消息不可更新。
+- 使用 `blocks` 更新消息后不会显示 "已编辑" 标记,但使用 `text` 更新会。
+- DM 频道 ID 以 `D` 开头,不要使用用户 ID(`U` 或 `W` 开头)。
+
+### 3.3 chat.delete — 删除消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/chat.delete`
+
+**所需权限**
+
+- Bot Token Scope:`chat:write`
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| --------- | -------- | -------- | -------------------- |
+| `channel` | `string` | 是 | 消息所在频道 ID。 |
+| `ts` | `string` | 是 | 要删除的消息时间戳。 |
+
+**响应结构**
+
+```json
+{
+ "channel": "C0123ABCDEF",
+ "ok": true,
+ "ts": "1401383885.000061"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| --------- | --------- | ------------ |
+| `ok` | `boolean` | 是否成功。 |
+| `channel` | `string` | 频道 ID。 |
+| `ts` | `string` | 消息时间戳。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/chat.delete' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&ts=1401383885.000061'
+```
+
+**工程建议**
+
+- Bot Token 只能删除 Bot 自己发送的消息。
+- 通过冒充(impersonation)发送的消息无法通过 `chat.delete` 删除。
+- User Token 只能删除用户在 Slack 客户端中有权限删除的消息。
+
+## 4. 消息查询
+
+### 4.1 conversations.history — 获取频道消息历史
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/conversations.history`
+
+**所需权限**
+
+Bot 或 User Token 需要以下任一 scope:`channels:history`、`groups:history`、`im:history`、`mpim:history`。
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟。非 Marketplace 商业分发应用限制为 1 次 / 分钟,limit 上限 15。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 默认值 | 说明 |
+| ---------------------- | --------- | -------- | -------- | --------------------------------------- |
+| `channel` | `string` | 是 | — | 频道 ID。 |
+| `cursor` | `string` | 否 | — | 游标分页标记。 |
+| `limit` | `number` | 否 | `100` | 返回消息数上限,最大 999。 |
+| `oldest` | `string` | 否 | `"0"` | 仅返回此 Unix 时间戳之后的消息。 |
+| `latest` | `string` | 否 | 当前时间 | 仅返回此 Unix 时间戳之前的消息。 |
+| `inclusive` | `boolean` | 否 | `false` | 是否包含 oldest/latest 精确匹配的消息。 |
+| `include_all_metadata` | `boolean` | 否 | `false` | 是否返回所有消息元数据。 |
+
+**响应结构**
+
+```json
+{
+ "has_more": true,
+ "messages": [
+ {
+ "type": "message",
+ "user": "U0123ABCDEF",
+ "text": "Hello, world!",
+ "ts": "1503435956.000247"
+ }
+ ],
+ "ok": true,
+ "pin_count": 3,
+ "response_metadata": {
+ "next_cursor": "bmV4dF90czoxNTAzNDM1OTU2MDAwMjQ3"
+ }
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------------------- | --------- | ---------------------------------------- |
+| `ok` | `boolean` | 是否成功。 |
+| `messages` | `array` | 消息数组,按时间倒序排列(最新的在前)。 |
+| `has_more` | `boolean` | 是否有更多消息。 |
+| `pin_count` | `number` | 频道中被 pin 的消息数量。 |
+| `response_metadata` | `object` | 分页元数据,包含 `next_cursor`。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/conversations.history?channel=C0123ABCDEF&limit=50&oldest=1503435900.000000' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+**工程建议**
+
+- 消息默认按时间倒序返回,最近的消息在前。
+- 可以通过设置 `oldest`、`inclusive=true`、`limit=1` 来精确获取单条消息。
+- 支持两种分页方式:游标分页(`cursor`)和时间戳分页(`oldest`/`latest`)。
+- 结果最多返回 100 条消息(使用时间戳分页时)。
+
+### 4.2 search.messages — 搜索消息
+
+> **重要提示**:`search.messages` **必须**使用 User Token(`xoxp-`),Bot Token(`xoxb-`)无法调用此方法。使用 Bot Token 会始终返回 `missing_scope` 错误,即使已配置 `search:read` scope 也无效,因为该 scope 仅存在于 User Token Scopes 中。这一行为已在实测中确认。
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/search.messages`
+
+**所需权限**
+
+- User Token Scope:`search:read`(**仅支持 User Token `xoxp-`**,Bot Token `xoxb-` 始终返回 `missing_scope`)
+
+**速率限制**
+
+Tier 2:20+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 默认值 | 说明 |
+| ----------- | --------- | -------- | --------- | -------------------------------------- |
+| `query` | `string` | 是 | — | 搜索关键词。 |
+| `count` | `number` | 否 | `20` | 每页结果数,最大 100。 |
+| `page` | `number` | 否 | `1` | 结果页码,最大 100。 |
+| `cursor` | `string` | 否 | — | 游标分页标记;首次调用传 `"*"`。 |
+| `sort` | `string` | 否 | `"score"` | 排序方式:`"score"` 或 `"timestamp"`。 |
+| `sort_dir` | `string` | 否 | `"desc"` | 排序方向:`"asc"` 或 `"desc"`。 |
+| `highlight` | `boolean` | 否 | `false` | 是否在结果中用标记高亮匹配词。 |
+| `team_id` | `string` | 否 | — | 组织级 Token 时必填。 |
+
+**响应结构**
+
+```json
+{
+ "messages": {
+ "total": 42,
+ "paging": {
+ "count": 20,
+ "total": 42,
+ "page": 1,
+ "pages": 3
+ },
+ "matches": [
+ {
+ "iid": "abc123",
+ "team": "T0123ABCDEF",
+ "channel": {
+ "id": "C0123ABCDEF",
+ "name": "general"
+ },
+ "type": "message",
+ "user": "U0123ABCDEF",
+ "username": "johndoe",
+ "ts": "1503435956.000247",
+ "text": "This is a test message",
+ "permalink": "https://team.slack.com/archives/C0123ABCDEF/p1503435956000247"
+ }
+ ]
+ },
+ "ok": true,
+ "query": "test message"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------------------ | --------- | ---------------- |
+| `ok` | `boolean` | 是否成功。 |
+| `query` | `string` | 回显查询词。 |
+| `messages.total` | `number` | 匹配结果总数。 |
+| `messages.matches` | `array` | 匹配的消息数组。 |
+| `messages.paging` | `object` | 分页信息。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/search.messages?query=hello&count=10&sort=timestamp' \
+ -H 'Authorization: Bearer $SLACK_USER_TOKEN'
+```
+
+**工程建议**
+
+- 此方法仅支持 User Token(`xoxp-`),不支持 Bot Token(`xoxb-`)。
+- Slack 官方标注此为遗留方法,推荐使用 Real-time Search API。
+- 高亮标记使用 UTF-8 私有区字符(U+E000 到 U+E001)。
+- 邻近位置的多条匹配只返回一条结果。
+
+### 4.3 conversations.replies — 获取线程回复
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/conversations.replies`
+
+**所需权限**
+
+Bot 或 User Token 需要以下任一 scope:`channels:history`、`groups:history`、`im:history`、`mpim:history`。
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟(Marketplace 应用);非 Marketplace 商业分发应用限制为 1 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 默认值 | 说明 |
+| ---------------------- | --------- | -------- | -------- | -------------------------------------------- |
+| `channel` | `string` | 是 | — | 线程所在的频道 ID。 |
+| `ts` | `string` | 是 | — | 线程父消息的时间戳。 |
+| `cursor` | `string` | 否 | — | 游标分页标记。 |
+| `limit` | `number` | 否 | `1000` | 返回消息数上限;非 Marketplace 应用上限 15。 |
+| `oldest` | `string` | 否 | `"0"` | 仅返回此时间戳之后的消息。 |
+| `latest` | `string` | 否 | 当前时间 | 仅返回此时间戳之前的消息。 |
+| `inclusive` | `boolean` | 否 | `false` | 是否包含 oldest/latest 精确匹配的消息。 |
+| `include_all_metadata` | `boolean` | 否 | `false` | 是否返回所有消息元数据。 |
+
+**响应结构**
+
+```json
+{
+ "has_more": false,
+ "messages": [
+ {
+ "type": "message",
+ "user": "U0123ABCDEF",
+ "text": "Original thread message",
+ "thread_ts": "1503435956.000247",
+ "reply_count": 3,
+ "ts": "1503435956.000247"
+ },
+ {
+ "type": "message",
+ "user": "U9876ZYXWVU",
+ "text": "A reply in the thread",
+ "thread_ts": "1503435956.000247",
+ "ts": "1503435957.000300"
+ }
+ ],
+ "ok": true,
+ "response_metadata": {
+ "next_cursor": ""
+ }
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------------------- | --------- | ------------------------------ |
+| `ok` | `boolean` | 是否成功。 |
+| `messages` | `array` | 线程消息数组,第一条为父消息。 |
+| `has_more` | `boolean` | 是否有更多回复。 |
+| `response_metadata` | `object` | 分页元数据。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/conversations.replies?channel=C0123ABCDEF&ts=1503435956.000247' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+**工程建议**
+
+- `ts` 必须是已有消息的有效时间戳;如果该消息没有回复,仅返回该消息本身。
+- 返回的第一条消息是线程父消息。
+- 时间戳边界内最多返回 1000 条消息。
+
+## 5. Reactions(表情回应)
+
+### 5.1 reactions.add — 添加 Reaction
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/reactions.add`
+
+**所需权限**
+
+- Bot Token Scope:`reactions:write`
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------- | -------- | -------- | ------------------------------------------------ |
+| `channel` | `string` | 是 | 消息所在频道 ID。 |
+| `timestamp` | `string` | 是 | 目标消息的时间戳。 |
+| `name` | `string` | 是 | Emoji 名称(不含冒号),如 `thumbsup`、`heart`。 |
+
+**响应结构**
+
+```json
+{
+ "ok": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/reactions.add' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&timestamp=1503435956.000247&name=thumbsup'
+```
+
+**工程建议**
+
+- emoji 名称不含冒号,例如 `thumbsup` 而不是 `:thumbsup:`。
+- 支持肤色修饰符:在 emoji 名称后追加 `::skin-tone-2` 到 `::skin-tone-6`。
+- 如果已经添加过相同 reaction,返回 `already_reacted` 错误。
+- 不能对归档频道或锁定的线程添加 reaction。
+- 成功后会广播 `reaction_added` 事件。
+
+### 5.2 reactions.get — 获取消息的 Reactions
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/reactions.get`
+
+**所需权限**
+
+- Bot Token Scope:`reactions:read`
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------- | --------- | -------- | ------------------------------------------ |
+| `channel` | `string` | 条件必需 | 消息所在频道 ID。与 `timestamp` 配合使用。 |
+| `timestamp` | `string` | 条件必需 | 消息时间戳。与 `channel` 配合使用。 |
+| `full` | `boolean` | 否 | 设为 `true` 时返回完整 reaction 列表。 |
+
+说明:`channel` + `timestamp` 组合、`file`、`file_comment` 三者至少需要提供一种。
+
+**响应结构**
+
+```json
+{
+ "message": {
+ "type": "message",
+ "text": "Hello, world!",
+ "ts": "1503435956.000247",
+ "reactions": [
+ {
+ "name": "thumbsup",
+ "users": ["U0123ABCDEF", "U9876ZYXWVU"],
+ "count": 2
+ },
+ {
+ "name": "heart",
+ "users": ["U0123ABCDEF"],
+ "count": 1
+ }
+ ]
+ },
+ "ok": true,
+ "type": "message"
+}
+```
+
+| 字段 | 类型 | 说明 |
+| --------------------------- | --------- | ----------------------------------------------- |
+| `ok` | `boolean` | 是否成功。 |
+| `type` | `string` | 项目类型:`message`、`file` 或 `file_comment`。 |
+| `message.reactions` | `array` | Reaction 数组。 |
+| `message.reactions[].name` | `string` | Emoji 名称。 |
+| `message.reactions[].users` | `array` | 添加该 reaction 的用户 ID 列表(可能不完整)。 |
+| `message.reactions[].count` | `number` | 实际反应用户总数。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/reactions.get?channel=C0123ABCDEF&timestamp=1503435956.000247&full=true' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+**工程建议**
+
+- `users` 数组可能不包含所有反应用户,`count` 字段才是准确的总数。
+- 使用 `full=true` 获取更完整的 reaction 列表。
+
+### 5.3 reactions.remove — 移除 Reaction
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/reactions.remove`
+
+**所需权限**
+
+- Bot Token Scope:`reactions:write`
+
+**速率限制**
+
+Tier 2:20+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------- | -------- | -------- | ------------------------------------------ |
+| `name` | `string` | 是 | 要移除的 emoji 名称。 |
+| `channel` | `string` | 条件必需 | 消息所在频道 ID。与 `timestamp` 配合使用。 |
+| `timestamp` | `string` | 条件必需 | 消息时间戳。与 `channel` 配合使用。 |
+
+说明:`channel` + `timestamp` 组合、`file`、`file_comment` 三者至少需要提供一种。
+
+**响应结构**
+
+```json
+{
+ "ok": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/reactions.remove' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&timestamp=1503435956.000247&name=thumbsup'
+```
+
+**工程建议**
+
+- 只能移除当前认证用户 / Bot 自己添加的 reaction。
+- 如果该 reaction 不存在,返回 `no_reaction` 错误。
+- 成功后会广播 `reaction_removed` 事件。
+
+## 6. Pins(置顶消息)
+
+### 6.1 pins.add — 置顶消息
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/pins.add`
+
+**所需权限**
+
+- Bot Token Scope:`pins:write`
+
+**速率限制**
+
+Tier 2:20+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------- | -------- | -------- | -------------------- |
+| `channel` | `string` | 是 | 频道 ID。 |
+| `timestamp` | `string` | 是 | 要置顶的消息时间戳。 |
+
+**响应结构**
+
+```json
+{
+ "ok": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/pins.add' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&timestamp=1503435956.000247'
+```
+
+**工程建议**
+
+- 并非所有消息类型都可以被 pin:频道加入消息、文件、文件评论不可 pin,会返回 `not_pinnable`。
+- 每个频道有 pin 数量上限,超出返回 `too_many_pins`。
+- 成功后会广播 `pin_added` 事件。
+
+### 6.2 pins.remove — 取消置顶
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://slack.com/api/pins.remove`
+
+**所需权限**
+
+- Bot Token Scope:`pins:write`
+
+**速率限制**
+
+Tier 2:20+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ----------- | -------- | -------- | ------------------------ |
+| `channel` | `string` | 是 | 频道 ID。 |
+| `timestamp` | `string` | 是 | 要取消置顶的消息时间戳。 |
+
+**响应结构**
+
+```json
+{
+ "ok": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/pins.remove' \
+ -X POST \
+ -H 'Content-Type: application/x-www-form-urlencoded; charset=utf-8' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN' \
+ -d 'channel=C0123ABCDEF&timestamp=1503435956.000247'
+```
+
+**工程建议**
+
+- 如果该消息未被 pin,返回 `no_pin` 错误。
+- 成功后会广播 `pin_removed` 事件。
+
+### 6.3 pins.list — 列出频道的置顶消息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/pins.list`
+
+**所需权限**
+
+- Bot Token Scope:`pins:read`
+
+**速率限制**
+
+Tier 2:20+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| --------- | -------- | -------- | --------- |
+| `channel` | `string` | 是 | 频道 ID。 |
+
+**响应结构**
+
+```json
+{
+ "items": [
+ {
+ "type": "message",
+ "created": 1503435957,
+ "created_by": "U0123ABCDEF",
+ "channel": "C0123ABCDEF",
+ "message": {
+ "type": "message",
+ "text": "This is a pinned message",
+ "user": "U0123ABCDEF",
+ "ts": "1503435956.000247"
+ }
+ }
+ ],
+ "ok": true
+}
+```
+
+| 字段 | 类型 | 说明 |
+| -------------------- | --------- | --------------------------------------------- |
+| `ok` | `boolean` | 是否成功。 |
+| `items` | `array` | 被 pin 的项目数组。 |
+| `items[].type` | `string` | 项目类型:`message`、`file`、`file_comment`。 |
+| `items[].created` | `number` | Pin 操作的 Unix 时间戳。 |
+| `items[].created_by` | `string` | 执行 pin 的用户 ID。 |
+| `items[].channel` | `string` | 频道 ID。 |
+| `items[].message` | `object` | 被 pin 的消息对象。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/pins.list?channel=C0123ABCDEF' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+## 7. 频道与用户信息
+
+### 7.1 conversations.info — 获取频道信息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/conversations.info`
+
+**所需权限**
+
+Bot 或 User Token 需要以下任一 scope:`channels:read`、`groups:read`、`im:read`、`mpim:read`。
+
+**速率限制**
+
+Tier 3:50+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 默认值 | 说明 |
+| --------------------- | --------- | -------- | ------- | ---------------------- |
+| `channel` | `string` | 是 | — | 频道 ID。 |
+| `include_locale` | `boolean` | 否 | `false` | 是否返回频道区域信息。 |
+| `include_num_members` | `boolean` | 否 | `false` | 是否返回成员数量。 |
+
+**响应结构**
+
+```json
+{
+ "channel": {
+ "id": "C0123ABCDEF",
+ "name": "general",
+ "is_channel": true,
+ "is_group": false,
+ "is_im": false,
+ "is_mpim": false,
+ "is_private": false,
+ "is_archived": false,
+ "created": 1503435956,
+ "creator": "U0123ABCDEF",
+ "name_normalized": "general",
+ "topic": {
+ "value": "Channel topic",
+ "creator": "U0123ABCDEF",
+ "last_set": 1503435956
+ },
+ "purpose": {
+ "value": "Channel purpose",
+ "creator": "U0123ABCDEF",
+ "last_set": 1503435956
+ },
+ "num_members": 42
+ },
+ "ok": true
+}
+```
+
+| 字段 | 类型 | 说明 |
+| --------------------- | --------- | ------------------------------------------- |
+| `channel.id` | `string` | 频道 ID。 |
+| `channel.name` | `string` | 频道名称。 |
+| `channel.is_channel` | `boolean` | 是否是公共频道。 |
+| `channel.is_group` | `boolean` | 是否是私有频道。 |
+| `channel.is_im` | `boolean` | 是否是 1:1 DM。 |
+| `channel.is_mpim` | `boolean` | 是否是多人 DM。 |
+| `channel.is_private` | `boolean` | 是否是私有频道。 |
+| `channel.is_archived` | `boolean` | 是否已归档。 |
+| `channel.created` | `number` | 创建时间 Unix 时间戳。 |
+| `channel.creator` | `string` | 创建者用户 ID。 |
+| `channel.topic` | `object` | 频道主题。 |
+| `channel.purpose` | `object` | 频道目的描述。 |
+| `channel.num_members` | `number` | 成员数量(需 `include_num_members=true`)。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/conversations.info?channel=C0123ABCDEF&include_num_members=true' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+**工程建议**
+
+- **`num_members` 字段仅在请求参数中传入 `include_num_members=true` 时才会出现在响应中**。如果不传该参数,响应中不会包含 `num_members` 字段。这一行为已在实测中确认。
+- 受限访问频道可能返回 `channel_is_limited_access` 错误。
+- `unread_count` 等字段仅在 DM 响应中出现。
+- 空的 `tabs` 属性不会出现在响应中。
+- 如需获取成员列表,请使用 `conversations.members`。
+
+### 7.2 conversations.list — 列出频道
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/conversations.list`
+
+**所需权限**
+
+Bot 或 User Token 需要以下任一 scope:`channels:read`、`groups:read`、`im:read`、`mpim:read`。
+
+**速率限制**
+
+Tier 2:20+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 默认值 | 说明 |
+| ------------------ | --------- | -------- | ---------------- | --------------------------------------------------------------------- |
+| `types` | `string` | 否 | `public_channel` | 逗号分隔类型列表:`public_channel`、`private_channel`、`mpim`、`im`。 |
+| `exclude_archived` | `boolean` | 否 | `false` | 设为 `true` 排除已归档频道。 |
+| `limit` | `number` | 否 | `100` | 每页最大数量,需小于 1000。 |
+| `cursor` | `string` | 否 | — | 分页游标。 |
+| `team_id` | `string` | 否 | — | 组织级别应用需指定团队 ID。 |
+
+**响应结构**
+
+```json
+{
+ "channels": [
+ {
+ "id": "C0123ABCDEF",
+ "name": "general",
+ "is_channel": true,
+ "is_group": false,
+ "is_im": false,
+ "is_mpim": false,
+ "is_private": false,
+ "is_archived": false,
+ "num_members": 42
+ }
+ ],
+ "ok": true,
+ "response_metadata": {
+ "next_cursor": "dXNlcjpVMDYxTkZUVDI="
+ }
+}
+```
+
+| 字段 | 类型 | 说明 |
+| ------------------------------- | --------- | ---------------------------- |
+| `ok` | `boolean` | 是否成功。 |
+| `channels` | `array` | 频道对象数组(简化版)。 |
+| `response_metadata.next_cursor` | `string` | 下一页游标,空字符串表示无。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/conversations.list?types=public_channel,private_channel&exclude_archived=true&limit=200' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+**工程建议**
+
+- `exclude_archived` 过滤在分页检索之后执行,因此实际返回条数可能少于 `limit`。
+- 返回的频道信息是简化版;如需完整频道信息,请使用 `conversations.info`。
+- 如需获取频道成员,请使用 `conversations.members`。
+- DM 频道会包含 `unread_count` 和 `unread_count_display` 字段。
+
+### 7.3 users.info — 获取用户信息
+
+**Method**
+
+`GET`
+
+**URL**
+
+`https://slack.com/api/users.info`
+
+**所需权限**
+
+- Bot Token Scope:`users:read`
+- 读取用户邮箱额外需要 `users:read.email`(2017 年 1 月 4 日后创建的应用)
+
+**速率限制**
+
+Tier 4:100+ 次 / 分钟。
+
+**请求参数**
+
+| 参数 | 类型 | 是否必需 | 默认值 | 说明 |
+| ---------------- | --------- | -------- | ------- | ---------------------- |
+| `user` | `string` | 是 | — | 用户 ID。 |
+| `include_locale` | `boolean` | 否 | `false` | 是否返回用户区域信息。 |
+
+**响应结构**
+
+```json
+{
+ "ok": true,
+ "user": {
+ "id": "U0123ABCDEF",
+ "team_id": "T0123ABCDEF",
+ "name": "johndoe",
+ "deleted": false,
+ "color": "9f69e7",
+ "real_name": "John Doe",
+ "tz": "America/Los_Angeles",
+ "tz_label": "Pacific Daylight Time",
+ "tz_offset": -25200,
+ "profile": {
+ "avatar_hash": "ge3b51ca72de",
+ "status_text": "Working",
+ "status_emoji": ":computer:",
+ "real_name": "John Doe",
+ "display_name": "johndoe",
+ "real_name_normalized": "John Doe",
+ "display_name_normalized": "johndoe",
+ "email": "[email protected]",
+ "image_24": "https://...",
+ "image_32": "https://...",
+ "image_48": "https://...",
+ "image_72": "https://...",
+ "image_192": "https://...",
+ "image_512": "https://..."
+ },
+ "is_admin": false,
+ "is_owner": false,
+ "is_primary_owner": false,
+ "is_restricted": false,
+ "is_ultra_restricted": false,
+ "is_bot": false,
+ "is_app_user": false,
+ "updated": 1502138686
+ }
+}
+```
+
+| 字段 | 类型 | 说明 |
+| --------------------------- | --------- | ------------------------------------- |
+| `user.id` | `string` | 用户 ID。 |
+| `user.team_id` | `string` | 团队 ID。 |
+| `user.name` | `string` | 用户名。 |
+| `user.deleted` | `boolean` | 用户是否已被停用。 |
+| `user.real_name` | `string` | 真实姓名。 |
+| `user.tz` | `string` | 时区标识符。 |
+| `user.profile` | `object` | 用户资料对象。 |
+| `user.profile.email` | `string` | 邮箱(需 `users:read.email` scope)。 |
+| `user.profile.display_name` | `string` | 显示名称。 |
+| `user.profile.image_*` | `string` | 各尺寸头像 URL。 |
+| `user.is_admin` | `boolean` | 是否是工作空间管理员。 |
+| `user.is_bot` | `boolean` | 是否是 Bot 用户。 |
+| `user.is_stranger` | `boolean` | 共享频道中的外部用户标记。 |
+
+**curl 示例**
+
+```bash
+curl 'https://slack.com/api/users.info?user=U0123ABCDEF' \
+ -H 'Authorization: Bearer $SLACK_BOT_TOKEN'
+```
+
+**工程建议**
+
+- 传入无效用户 ID 返回 `user_not_found` 错误。
+- 用户资料字段因工作空间配置和用户输入而异;未指定的字段可能缺失、为 `null` 或空字符串。
+- 获取用户在线状态需要单独调用 `users.getPresence`。
+- 共享频道中的外部用户会包含 `is_stranger` 布尔属性。
+
+## 8. 数据结构参考
+
+### 8.1 消息对象(Message)
+
+| 字段 | 类型 | 说明 |
+| ------------- | --------- | ----------------------------------------------------- |
+| `type` | `string` | 固定为 `"message"`。 |
+| `subtype` | `string?` | 消息子类型,如 `"bot_message"`、`"channel_join"` 等。 |
+| `user` | `string?` | 发送者用户 ID。Bot 消息可能为空。 |
+| `bot_id` | `string?` | Bot ID(Bot 发送时)。 |
+| `text` | `string` | 消息文本(mrkdwn 格式)。 |
+| `ts` | `string` | 消息时间戳,也是消息唯一标识。 |
+| `thread_ts` | `string?` | 线程父消息时间戳(线程内的消息才有)。 |
+| `reply_count` | `number?` | 回复数量(仅线程父消息)。 |
+| `reply_users` | `array?` | 回复过的用户 ID 数组(仅线程父消息)。 |
+| `reactions` | `array?` | Reaction 数组。 |
+| `blocks` | `array?` | Block Kit 结构化消息块。 |
+| `attachments` | `array?` | 附件数组。 |
+| `edited` | `object?` | 编辑信息,包含 `user` 和 `ts`。 |
+| `permalink` | `string?` | 消息永久链接(搜索结果中出现)。 |
+
+### 8.2 频道对象(Channel / Conversation)
+
+| 字段 | 类型 | 说明 |
+| ------------- | --------- | ---------------------- |
+| `id` | `string` | 频道 ID。 |
+| `name` | `string` | 频道名称。 |
+| `is_channel` | `boolean` | 是否为公共频道。 |
+| `is_group` | `boolean` | 是否为旧式私有群组。 |
+| `is_im` | `boolean` | 是否为 1:1 DM。 |
+| `is_mpim` | `boolean` | 是否为多人 DM。 |
+| `is_private` | `boolean` | 是否为私有频道。 |
+| `is_archived` | `boolean` | 是否已归档。 |
+| `created` | `number` | 创建时间 Unix 时间戳。 |
+| `creator` | `string` | 创建者用户 ID。 |
+| `num_members` | `number?` | 成员数量。 |
+| `topic` | `object` | 频道主题。 |
+| `purpose` | `object` | 频道目的描述。 |
+
+### 8.3 时间戳(ts)的特殊意义
+
+Slack 的消息时间戳(`ts`)不仅仅是时间标记,它是消息在频道内的唯一标识符。格式为 `"epoch.sequence"`,例如 `"1503435956.000247"`。
+
+**工程建议**
+
+- 始终将 `ts` 作为字符串类型处理,不要转换为浮点数(会丢失精度)。
+- `channel` + `ts` 组合唯一标识一条消息;所有消息的更新、删除、回应、置顶操作都依赖此组合。
+- 线程通过 `thread_ts` 关联,其值等于线程父消息的 `ts`。
+
+## 9. 完整操作流程图
+
+```mermaid
+sequenceDiagram
+ participant U as Slack 用户
+ participant S as Slack 服务端
+ participant B as Bot 服务
+
+ U->>S: 在频道发送消息
+ S->>B: Events API / Socket Mode 回调
+ B->>B: 解析消息,准备回复
+
+ alt 添加 "处理中" 反应
+ B->>S: POST reactions.add (eyes emoji)
+ S-->>B: ok: true
+ end
+
+ alt 回复到线程
+ B->>S: POST chat.postMessage (thread_ts)
+ S-->>B: ok: true, ts: "..."
+ else 回复到频道
+ B->>S: POST chat.postMessage
+ S-->>B: ok: true, ts: "..."
+ end
+
+ opt 流式更新消息
+ B->>S: POST chat.update (ts, new text)
+ S-->>B: ok: true
+ end
+
+ opt 移除 "处理中" 反应
+ B->>S: POST reactions.remove (eyes emoji)
+ S-->>B: ok: true
+ end
+
+ opt 添加 "完成" 反应
+ B->>S: POST reactions.add (white_check_mark)
+ S-->>B: ok: true
+ end
+```
+
+## 10. 权限 Scope 汇总
+
+| Scope | 类型 | 覆盖方法 |
+| ------------------- | ---- | ---------------------------------------------------------------------------------- |
+| `chat:write` | Bot | `chat.postMessage`、`chat.update`、`chat.delete` |
+| `chat:write.public` | Bot | `chat.postMessage`(发送到未加入的公共频道) |
+| `channels:history` | Bot | `conversations.history`、`conversations.replies` |
+| `groups:history` | Bot | `conversations.history`、`conversations.replies`(私有频道) |
+| `im:history` | Bot | `conversations.history`、`conversations.replies`(DM) |
+| `mpim:history` | Bot | `conversations.history`、`conversations.replies`(多人 DM) |
+| `reactions:write` | Bot | `reactions.add`、`reactions.remove` |
+| `reactions:read` | Bot | `reactions.get` |
+| `pins:write` | Bot | `pins.add`、`pins.remove` |
+| `pins:read` | Bot | `pins.list` |
+| `channels:read` | Bot | `conversations.info`、`conversations.list` |
+| `groups:read` | Bot | `conversations.info`、`conversations.list`(私有频道) |
+| `im:read` | Bot | `conversations.info`、`conversations.list`(DM) |
+| `mpim:read` | Bot | `conversations.info`、`conversations.list`(多人 DM) |
+| `users:read` | Bot | `users.info` |
+| `users:read.email` | Bot | `users.info`(读取邮箱字段) |
+| `search:read` | User | `search.messages`(**仅 User Token `xoxp-`,Bot Token 始终返回 `missing_scope`**) |
+
+## 11. 速率限制速查表
+
+| 方法 | 速率等级 | 频率上限 | 说明 |
+| ----------------------- | -------- | ------------------------------ | -------------------------------- |
+| `chat.postMessage` | 特殊 | 每频道 1 次 / 秒,允许短暂突发 | 工作空间级别每分钟数百条 |
+| `chat.update` | Tier 3 | 50+ 次 / 分钟 | |
+| `chat.delete` | Tier 3 | 50+ 次 / 分钟 | |
+| `conversations.history` | Tier 3 | 50+ 次 / 分钟 | 非 Marketplace 应用:1 次 / 分钟 |
+| `search.messages` | Tier 2 | 20+ 次 / 分钟 | 仅 User Token |
+| `reactions.add` | Tier 3 | 50+ 次 / 分钟 | |
+| `reactions.get` | Tier 3 | 50+ 次 / 分钟 | |
+| `reactions.remove` | Tier 2 | 20+ 次 / 分钟 | |
+| `pins.add` | Tier 2 | 20+ 次 / 分钟 | |
+| `pins.remove` | Tier 2 | 20+ 次 / 分钟 | |
+| `pins.list` | Tier 2 | 20+ 次 / 分钟 | |
+| `conversations.info` | Tier 3 | 50+ 次 / 分钟 | |
+| `conversations.list` | Tier 2 | 20+ 次 / 分钟 | |
+| `users.info` | Tier 4 | 100+ 次 / 分钟 | |
+| `conversations.replies` | Tier 3 | 50+ 次 / 分钟 | 非 Marketplace 应用:1 次 / 分钟 |
+
+## 12. 实测验证记录
+
+> 以下内容记录了针对 Discord 和 Slack 平台 Bot API 的实际调用测试结果,用于验证本规范的准确性。测试时间:2026 年 3 月。
+
+### 12.1 Discord Bot Token 测试
+
+使用 Discord Bot Token 对以下 12 个 API 调用进行了验证,**全部通过**:
+
+| 操作 | API 方法 | 结果 |
+| ----------------- | ----------------------------------------------- | ---- |
+| createMessage | `POST /channels/{id}/messages` | 通过 |
+| getMessage | `GET /channels/{id}/messages/{id}` | 通过 |
+| editMessage | `PATCH /channels/{id}/messages/{id}` | 通过 |
+| createReaction | `PUT /channels/{id}/messages/{id}/reactions` | 通过 |
+| getReactions | `GET /channels/{id}/messages/{id}/reactions` | 通过 |
+| deleteMessage | `DELETE /channels/{id}/messages/{id}` | 通过 |
+| getMessages | `GET /channels/{id}/messages` | 通过 |
+| getChannel | `GET /channels/{id}` | 通过 |
+| getPinnedMessages | `GET /channels/{id}/pins` | 通过 |
+| getGuildChannels | `GET /guilds/{id}/channels` | 通过 |
+| listActiveThreads | `GET /guilds/{id}/threads/active` | 通过 |
+| deleteReaction | `DELETE /channels/{id}/messages/{id}/reactions` | 通过 |
+
+### 12.2 Slack Bot Token 测试
+
+使用 Slack Bot Token(`xoxb-`)对以下方法进行了验证,**全部通过**:
+
+| 操作 | Slack 方法 | 结果 |
+| -------------- | ----------------------- | ---- |
+| listChannels | `conversations.list` | 通过 |
+| getChannelInfo | `conversations.info` | 通过 |
+| postMessage | `chat.postMessage` | 通过 |
+| updateMessage | `chat.update` | 通过 |
+| addReaction | `reactions.add` | 通过 |
+| getReactions | `reactions.get` | 通过 |
+| getHistory | `conversations.history` | 通过 |
+| deleteMessage | `chat.delete` | 通过 |
+
+### 12.3 关键发现
+
+1. **JSON Content-Type 兼容性问题**:使用 `application/json` 作为 Content-Type 时,`conversations.info` 和 `reactions.get` 等方法会忽略 POST body 中的参数,导致请求失败。切换为 `application/x-www-form-urlencoded` 后所有方法均正常工作。本规范已据此统一将推荐的 Content-Type 修改为 `application/x-www-form-urlencoded; charset=utf-8`。
+
+2. **`search.messages` 仅限 User Token**:使用 Bot Token(`xoxb-`)调用 `search.messages` 时,无论是否配置了 `search:read` scope,始终返回 `missing_scope` 错误。该方法必须使用 User Token(`xoxp-`)。
+
+3. **`conversations.info` 的 `num_members` 字段**:`num_members` 字段仅在请求时传入 `include_num_members=true` 参数时才包含在响应中,不传则该字段不存在。
+
+4. **Pins 操作权限要求**:`pins.add`、`pins.list`、`pins.remove` 分别需要 `pins:write` 和 `pins:read` scope。需在 Slack App 配置的 Bot Token Scopes 中明确添加。
+
+5. **`conversations.list` 权限要求**:需要在 Bot Token Scopes(而非 User Token Scopes)中配置 `channels:read` scope。如果仅在 User Token Scopes 中配置,Bot Token 调用时会返回权限错误。
+
+## 13. 与其他平台对比
+
+| 维度 | Telegram Bot API | 微信 iLink Bot API | Slack Web API |
+| -------------- | ----------------------- | -------------------------------- | ------------------------------------ |
+| 收消息方式 | `getUpdates` 或 Webhook | `getupdates` 长轮询 | Events API / Socket Mode |
+| 发送目标 | `chat_id` | `to_user_id` + `context_token` | `channel` (+ `thread_ts`) |
+| 消息唯一标识 | `message_id` | `message_id` / `seq` | `channel` + `ts` |
+| 主动发消息能力 | 知道 `chat_id` 即可 | 依赖 `context_token` | 有 scope 和 channel 即可 |
+| 认证方式 | URL 中嵌入 Bot Token | `Authorization: Bearer` + 专用头 | `Authorization: Bearer` (OAuth) |
+| 消息长度限制 | 4096 字符 | \~2000 字符(社区经验值) | 40,000 字符硬限制,4,000 推荐 |
+| 速率限制 | 每秒 30 条(全局) | 无公开限制文档 | 按方法 / 工作空间分 Tier |
+| 线程 / 回复 | `reply_to_message_id` | 无线程概念 | `thread_ts` 线程模型 |
+| 媒体处理 | multipart/form-data | 自行 AES-128-ECB 加密 + CDN 上传 | 平台托管,`files.upload` / Block Kit |
diff --git a/src/server/services/bot/platforms/slack/schema.ts b/src/server/services/bot/platforms/slack/schema.ts
index 2ef79d00b8b..46e04624cb5 100644
--- a/src/server/services/bot/platforms/slack/schema.ts
+++ b/src/server/services/bot/platforms/slack/schema.ts
@@ -1,5 +1,13 @@
-import { DEFAULT_DEBOUNCE_MS, MAX_DEBOUNCE_MS } from '../const';
+import {
+ DEFAULT_BOT_DEBOUNCE_MS,
+ DEFAULT_BOT_HISTORY_LIMIT,
+ MAX_BOT_DEBOUNCE_MS,
+ MIN_BOT_HISTORY_LIMIT,
+} from '@lobechat/const';
+
+import { serverIdField, userIdField } from '../const';
import type { FieldSchema } from '../types';
+import { MAX_SLACK_HISTORY_LIMIT } from './const';
export const schema: FieldSchema[] = [
{
@@ -54,10 +62,10 @@ export const schema: FieldSchema[] = [
},
{
key: 'debounceMs',
- default: DEFAULT_DEBOUNCE_MS,
+ default: DEFAULT_BOT_DEBOUNCE_MS,
description: 'channel.debounceMsHint',
label: 'channel.debounceMs',
- maximum: MAX_DEBOUNCE_MS,
+ maximum: MAX_BOT_DEBOUNCE_MS,
minimum: 100,
type: 'number',
visibleWhen: { field: 'concurrency', value: 'debounce' },
@@ -69,6 +77,17 @@ export const schema: FieldSchema[] = [
label: 'channel.showUsageStats',
type: 'boolean',
},
+ {
+ key: 'historyLimit',
+ default: DEFAULT_BOT_HISTORY_LIMIT,
+ description: 'channel.historyLimitHint',
+ label: 'channel.historyLimit',
+ maximum: MAX_SLACK_HISTORY_LIMIT,
+ minimum: MIN_BOT_HISTORY_LIMIT,
+ type: 'number',
+ },
+ serverIdField,
+ userIdField,
// TODO: DM schema - not implemented yet
// {
// key: 'dm',
diff --git a/src/server/services/bot/platforms/slack/service.ts b/src/server/services/bot/platforms/slack/service.ts
new file mode 100644
index 00000000000..1283bc5ae9f
--- /dev/null
+++ b/src/server/services/bot/platforms/slack/service.ts
@@ -0,0 +1,221 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ MessageItem,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+import { DEFAULT_BOT_HISTORY_LIMIT } from '@lobechat/const';
+
+import type { MessageRuntimeService } from '@/server/services/toolExecution/serverRuntimes/message/adapters/types';
+import { PlatformUnsupportedError } from '@/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError';
+
+import type { SlackApi } from './api';
+import { MAX_SLACK_HISTORY_LIMIT } from './const';
+
+/**
+ * Normalize a Slack message object to MessageItem.
+ */
+const toMessageItem = (msg: any): MessageItem => ({
+ attachments: msg.files?.map((f: any) => ({ name: f.name ?? f.title, url: f.url_private })),
+ author: { id: msg.user ?? '', name: msg.username ?? msg.user ?? 'Unknown' },
+ content: msg.text ?? '',
+ id: msg.ts ?? '',
+ replyTo: msg.thread_ts !== msg.ts ? msg.thread_ts : undefined,
+ timestamp: msg.ts ? new Date(Number(msg.ts) * 1000).toISOString() : new Date().toISOString(),
+});
+
+export class SlackMessageService implements MessageRuntimeService {
+ constructor(private api: SlackApi) {}
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ const result = await this.api.postMessage(params.channelId, params.content);
+ return { channelId: params.channelId, messageId: result.ts, platform: 'slack' };
+ };
+
+ readMessages = async (params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ const result = await this.api.getHistory(params.channelId, {
+ latest: params.before,
+ limit: Math.min(params.limit ?? DEFAULT_BOT_HISTORY_LIMIT, MAX_SLACK_HISTORY_LIMIT),
+ oldest: params.after,
+ });
+ const messages = result.messages.map(toMessageItem);
+ return {
+ channelId: params.channelId,
+ messages,
+ platform: 'slack',
+ totalFetched: messages.length,
+ };
+ };
+
+ editMessage = async (params: EditMessageParams): Promise<EditMessageState> => {
+ await this.api.updateMessage(params.channelId, params.messageId, params.content);
+ return { messageId: params.messageId, success: true };
+ };
+
+ deleteMessage = async (params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ await this.api.deleteMessage(params.channelId, params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ searchMessages = async (_params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ // Slack search.messages requires a user token (xoxp-), not a bot token (xoxb-).
+ // Bot tokens do not have the search:read scope.
+ throw new PlatformUnsupportedError(
+ 'Slack',
+ 'searchMessages (requires user token, not bot token)',
+ );
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ const name = params.emoji.replaceAll(':', '');
+ await this.api.addReaction(params.channelId, params.messageId, name);
+ return { messageId: params.messageId, success: true };
+ };
+
+ getReactions = async (params: GetReactionsParams): Promise<GetReactionsState> => {
+ const result = await this.api.getReactions(params.channelId, params.messageId);
+ return {
+ messageId: params.messageId,
+ reactions: result.reactions.map((r: any) => ({
+ count: r.count,
+ emoji: r.name,
+ users: r.users,
+ })),
+ };
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (params: PinMessageParams): Promise<PinMessageState> => {
+ await this.api.pinMessage(params.channelId, params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ unpinMessage = async (params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ await this.api.unpinMessage(params.channelId, params.messageId);
+ return { messageId: params.messageId, success: true };
+ };
+
+ listPins = async (params: ListPinsParams): Promise<ListPinsState> => {
+ const result = await this.api.listPins(params.channelId);
+ return {
+ messages: result.items.map((item: any) => toMessageItem(item.message ?? item)),
+ };
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ const channel = await this.api.getChannelInfo(params.channelId);
+ return {
+ description: channel.purpose?.value ?? channel.topic?.value ?? undefined,
+ id: channel.id,
+ memberCount: channel.num_members ?? undefined,
+ name: channel.name ?? undefined,
+ type: channel.is_private ? 'private' : 'public',
+ };
+ };
+
+ listChannels = async (params: ListChannelsParams): Promise<ListChannelsState> => {
+ const result = await this.api.listChannels();
+ let channels = result.channels;
+ if (params.filter) {
+ channels = channels.filter((c: any) => c.name?.includes(params.filter));
+ }
+ return {
+ channels: channels.map((c: any) => ({
+ id: c.id,
+ name: c.name ?? '',
+ type: c.is_private ? 'private' : 'public',
+ })),
+ };
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ const user = await this.api.getUserInfo(params.memberId);
+ return {
+ avatar: user.profile?.image_72 ?? undefined,
+ displayName: user.profile?.display_name || user.real_name || undefined,
+ id: user.id,
+ status: user.deleted ? 'deactivated' : user.is_bot ? 'bot' : 'active',
+ username: user.name ?? undefined,
+ };
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (_params: CreateThreadParams): Promise<CreateThreadState> => {
+ throw new PlatformUnsupportedError('Slack', 'createThread');
+ };
+
+ listThreads = async (params: ListThreadsParams): Promise<ListThreadsState> => {
+ const result = await this.api.getHistory(params.channelId, { limit: 100 });
+ const threads = result.messages
+ .filter((m: any) => m.reply_count && m.reply_count > 0)
+ .map((m: any) => ({
+ id: `${params.channelId}:${m.ts}`,
+ messageCount: m.reply_count,
+ name: (m.text ?? '').slice(0, 80) || '(thread)',
+ }));
+
+ return { threads };
+ };
+
+ replyToThread = async (params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ const parts = params.threadId.split(':');
+ let channelId: string;
+ let threadTs: string;
+ if (parts.length >= 2) {
+ channelId = parts[0];
+ threadTs = parts[1];
+ } else {
+ throw new Error('Slack replyToThread requires threadId in "channelId:threadTs" format');
+ }
+
+ const result = await this.api.postMessageInThread(channelId, threadTs, params.content);
+ return { messageId: result.ts, threadId: params.threadId };
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (_params: CreatePollParams): Promise<CreatePollState> => {
+ throw new PlatformUnsupportedError('Slack', 'createPoll');
+ };
+}
diff --git a/src/server/services/bot/platforms/telegram/api.ts b/src/server/services/bot/platforms/telegram/api.ts
index 110afb6b96c..86b6939bac6 100644
--- a/src/server/services/bot/platforms/telegram/api.ts
+++ b/src/server/services/bot/platforms/telegram/api.ts
@@ -78,6 +78,95 @@ export class TelegramApi {
await this.call('setMyCommands', { commands });
}
+ // ==================== Pin Operations ====================
+
+ async pinChatMessage(
+ chatId: string | number,
+ messageId: number,
+ disableNotification?: boolean,
+ ): Promise<void> {
+ log('pinChatMessage: chatId=%s, messageId=%s', chatId, messageId);
+ await this.call('pinChatMessage', {
+ chat_id: chatId,
+ disable_notification: disableNotification ?? true,
+ message_id: messageId,
+ });
+ }
+
+ async unpinChatMessage(chatId: string | number, messageId: number): Promise<void> {
+ log('unpinChatMessage: chatId=%s, messageId=%s', chatId, messageId);
+ await this.call('unpinChatMessage', {
+ chat_id: chatId,
+ message_id: messageId,
+ });
+ }
+
+ // ==================== Chat / Channel Info ====================
+
+ async getChat(chatId: string | number): Promise<any> {
+ log('getChat: chatId=%s', chatId);
+ const data = await this.call('getChat', { chat_id: chatId });
+ return data.result;
+ }
+
+ async getChatMember(chatId: string | number, userId: number): Promise<any> {
+ log('getChatMember: chatId=%s, userId=%s', chatId, userId);
+ const data = await this.call('getChatMember', { chat_id: chatId, user_id: userId });
+ return data.result;
+ }
+
+ // ==================== Forum Topics (Threads) ====================
+
+ async createForumTopic(
+ chatId: string | number,
+ name: string,
+ ): Promise<{ message_thread_id: number }> {
+ log('createForumTopic: chatId=%s, name=%s', chatId, name);
+ const data = await this.call('createForumTopic', {
+ chat_id: chatId,
+ name: name.slice(0, 128), // Telegram forum topic name limit
+ });
+ return { message_thread_id: data.result.message_thread_id };
+ }
+
+ async sendMessageToTopic(
+ chatId: string | number,
+ topicId: number,
+ text: string,
+ ): Promise<{ message_id: number }> {
+ log('sendMessageToTopic: chatId=%s, topicId=%s', chatId, topicId);
+ const data = await this.call('sendMessage', {
+ chat_id: chatId,
+ message_thread_id: topicId,
+ parse_mode: 'HTML',
+ text: this.truncateText(text),
+ });
+ return { message_id: data.result.message_id };
+ }
+
+ // ==================== Polls ====================
+
+ async sendPoll(
+ chatId: string | number,
+ question: string,
+ options: string[],
+ isAnonymous?: boolean,
+ allowsMultipleAnswers?: boolean,
+ ): Promise<{ message_id: number; poll_id?: string }> {
+ log('sendPoll: chatId=%s, question=%s', chatId, question);
+ const data = await this.call('sendPoll', {
+ allows_multiple_answers: allowsMultipleAnswers ?? false,
+ chat_id: chatId,
+ is_anonymous: isAnonymous ?? true,
+ options: options.map((text) => ({ text })),
+ question,
+ });
+ return {
+ message_id: data.result.message_id,
+ poll_id: data.result.poll?.id,
+ };
+ }
+
// ------------------------------------------------------------------
private truncateText(text: string): string {
diff --git a/src/server/services/bot/platforms/telegram/protocol-spec.md b/src/server/services/bot/platforms/telegram/protocol-spec.md
new file mode 100644
index 00000000000..f1c7d28e8ef
--- /dev/null
+++ b/src/server/services/bot/platforms/telegram/protocol-spec.md
@@ -0,0 +1,1230 @@
+# Telegram Bot API 消息操作协议规范
+
+> 适用对象:实现 Telegram Bot 消息操作的 SDK、网关和独立 Bot。
+>
+> 整理依据:Telegram 官方 [Bot API 文档](https://core.telegram.org/bots/api)、本仓库 `TelegramApi` 类实现(`api.ts`)、aiogram /python-telegram-bot 等社区 SDK 验证。
+>
+> 说明:文中标注 "工程建议" 的内容来自现有客户端实现经验,用于提高兼容性;它们不是服务端返回字段本身的一部分。
+
+## 1. 概述
+
+Telegram Bot API 是 Telegram 官方提供的 HTTP/JSON 协议,用于 Bot 与 Telegram 服务端交互。所有请求基于 HTTPS,使用 Bot Token 进行认证。协议核心特征有三点:一是所有方法都通过 `POST`(或 `GET`)调用统一基座 URL;二是响应格式统一为 `{"ok": true/false, "result": ...}` 结构;三是消息内容支持 HTML、MarkdownV2 等富文本格式化。
+
+本文档聚焦于 `TelegramApi` 类使用的消息操作方法,涵盖发送、编辑、删除消息,设置 Reaction,置顶 / 取消置顶,获取群组信息,论坛话题管理,投票和输入状态等功能。
+
+## 2. 公共请求规范
+
+### 2.1 基座 URL
+
+```
+https://api.telegram.org/bot{token}/{method}
+```
+
+- `{token}`:通过 [@BotFather](https://t.me/BotFather) 创建 Bot 时获取的 Token,格式形如 `123456789:ABCdefGHIjklMNOpqrsTUVwxyz`。
+- `{method}`:API 方法名,大小写不敏感(但推荐使用官方文档中的 camelCase 形式)。
+
+### 2.2 通用请求格式
+
+所有业务接口均使用 `POST` 方法,请求体为 JSON:
+
+| Header | 值 | 是否必需 | 说明 |
+| -------------- | ------------------ | -------- | ------------------- |
+| `Content-Type` | `application/json` | 是 | 所有接口都发 JSON。 |
+
+### 2.3 通用响应格式
+
+所有 API 响应都是 JSON 对象,包含以下公共字段:
+
+| 字段 | 类型 | 说明 |
+| ------------- | --------- | --------------------------------------- |
+| `ok` | `boolean` | `true` 表示请求成功,`false` 表示失败。 |
+| `result` | `any` | 成功时返回的业务数据;类型因方法而异。 |
+| `description` | `string?` | 失败时返回的错误描述。 |
+| `error_code` | `number?` | 失败时返回的错误码(HTTP 状态码)。 |
+
+**成功响应示例**
+
+```json
+{
+ "ok": true,
+ "result": {
+ "message_id": 1234,
+ "chat": { "id": -1001234567890, "type": "supergroup" },
+ "text": "Hello, World!"
+ }
+}
+```
+
+**失败响应示例**
+
+```json
+{
+ "description": "Bad Request: message text is empty",
+ "error_code": 400,
+ "ok": false
+}
+```
+
+### 2.4 错误处理模式
+
+Telegram API 的错误有两层:
+
+1. **HTTP 层**:非 200 状态码伴随 `{"ok": false, ...}` 响应体。
+2. **逻辑层**:HTTP 200 但 `ok` 为 `false`,此时 `error_code` 和 `description` 描述具体原因。
+
+常见错误码:
+
+| error_code | 典型 description | 说明 |
+| ---------- | ---------------------------------------------------- | ---------------------------------- |
+| `400` | `Bad Request: message text is empty` | 参数错误。 |
+| `400` | `Bad Request: message is not modified` | 编辑消息时新内容与旧内容完全相同。 |
+| `400` | `Bad Request: message to delete not found` | 要删除的消息不存在或已被删除。 |
+| `400` | `Bad Request: message can't be deleted for everyone` | 消息超过 48 小时删除限制。 |
+| `403` | `Forbidden: bot was blocked by the user` | 用户已屏蔽 Bot。 |
+| `403` | `Forbidden: bot is not a member of the supergroup` | Bot 不在群组中。 |
+| `429` | `Too Many Requests: retry after X` | 速率限制,需等待 X 秒后重试。 |
+
+**工程建议**
+
+- 收到 `429` 时,从 `description` 中解析 `retry after` 的秒数,等待后重试。
+- 收到 `400` 且 `message is not modified` 时,安全忽略即可(编辑内容相同)。
+- 收到 `403` 时,记录日志但不重试;通常意味着权限永久缺失。
+
+## 3. sendMessage — 发送消息
+
+### 3.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/sendMessage`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "parse_mode": "HTML",
+ "text": "你好,世界!"
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ---------------------- | ------------------------- | -------- | --------------------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天的唯一标识符,或频道用户名(格式 `@channelusername`)。 |
+| `text` | `String` | 是 | 消息正文;实体解析后长度 1–4096 字符。 |
+| `parse_mode` | `String` | 否 | 格式化模式:`HTML`、`MarkdownV2` 或 `Markdown`(旧版)。 |
+| `entities` | `Array<MessageEntity>` | 否 | 自定义格式化实体列表;与 `parse_mode` 二选一。 |
+| `message_thread_id` | `Integer` | 否 | 论坛话题(Forum Topic)的线程 ID;用于向指定话题发送消息。 |
+| `reply_parameters` | `ReplyParameters` | 否 | 回复配置;可指定 `message_id` 来回复特定消息。 |
+| `reply_markup` | `InlineKeyboardMarkup` 等 | 否 | 内联键盘或自定义键盘。 |
+| `link_preview_options` | `LinkPreviewOptions` | 否 | 控制链接预览的生成行为。 |
+| `message_effect_id` | `String` | 否 | 消息特效的唯一标识符。 |
+| `disable_notification` | `Boolean` | 否 | 静默发送,不触发通知声音。 |
+| `protect_content` | `Boolean` | 否 | 保护消息内容不被转发和保存。 |
+
+**Response Body**
+
+成功时返回发送的 `Message` 对象:
+
+```json
+{
+ "ok": true,
+ "result": {
+ "message_id": 1234,
+ "from": {
+ "id": 123456789,
+ "is_bot": true,
+ "first_name": "MyBot"
+ },
+ "chat": {
+ "id": -1001234567890,
+ "title": "测试群",
+ "type": "supergroup"
+ },
+ "date": 1711468800,
+ "text": "你好,世界!"
+ }
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/sendMessage' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "text": "<b>加粗文本</b>和<i>斜体文本</i>",
+ "parse_mode": "HTML"
+ }'
+```
+
+### 3.2 文本长度限制
+
+Telegram 单条消息的文本长度上限为 **4096 字符**(实体解析后计算)。
+
+**工程建议**
+
+- 在发送前检查文本长度,超出 4096 字符时截断并追加 `...`。
+- 本仓库 `TelegramApi` 实现使用 `truncateText` 方法:超过 4096 字符取前 4093 字符 + `...`。
+- 如果需要发送更长内容,应分片为多条消息发送。
+
+### 3.3 parse_mode 说明
+
+| 值 | 说明 |
+| ------------ | ----------------------------------------------------------- |
+| `HTML` | 支持 `<b>`, `<i>`, `<code>`, `<pre>`, `<a>` 等标签。 |
+| `MarkdownV2` | 支持 `*bold*`, `_italic_`, `` `code` ``, `[link](url)` 等。 |
+| `Markdown` | 旧版 Markdown,兼容性较差,不推荐使用。 |
+
+**工程建议**
+
+- 推荐使用 `HTML` 模式,因为它对特殊字符的转义规则更直观。
+- `MarkdownV2` 需要对 `_`, `*`, `[`, `]`, `(`, `)`, `~`, `` ` ``, `>`, `#`, `+`, `-`, `=`, `|`, `{`, `}`, `.`, `!` 进行转义。
+- 本仓库统一使用 `HTML` 模式,并提供 `markdownToHTML` 转换工具。
+
+## 4. editMessageText — 编辑消息文本
+
+### 4.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/editMessageText`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "parse_mode": "HTML",
+ "text": "已编辑的消息内容"
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ---------------------- | ---------------------- | ------------- | ---------------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 条件必需 (\*) | 目标聊天标识符。 |
+| `message_id` | `Integer` | 条件必需 (\*) | 要编辑的消息 ID。 |
+| `inline_message_id` | `String` | 条件必需 (\*) | 内联消息的唯一标识符;与 `chat_id` + `message_id` 二选一。 |
+| `text` | `String` | 是 | 新的消息文本;实体解析后长度 1–4096 字符。 |
+| `parse_mode` | `String` | 否 | 格式化模式:`HTML`、`MarkdownV2` 或 `Markdown`。 |
+| `entities` | `Array<MessageEntity>` | 否 | 自定义格式化实体列表。 |
+| `link_preview_options` | `LinkPreviewOptions` | 否 | 控制链接预览行为。 |
+| `reply_markup` | `InlineKeyboardMarkup` | 否 | 内联键盘标记。 |
+
+(\*) 必须提供 `chat_id` + `message_id` 或 `inline_message_id` 其中一组。
+
+**Response Body**
+
+- 编辑普通消息时:返回编辑后的 `Message` 对象。
+- 编辑内联消息时:返回 `true`。
+
+```json
+{
+ "ok": true,
+ "result": {
+ "message_id": 1234,
+ "chat": { "id": -1001234567890, "type": "supergroup" },
+ "date": 1711468800,
+ "edit_date": 1711468860,
+ "text": "已编辑的消息内容"
+ }
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/editMessageText' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "text": "<b>已更新</b>的消息内容",
+ "parse_mode": "HTML"
+ }'
+```
+
+### 4.2 "message is not modified" 处理
+
+当新内容与消息当前内容完全相同时,Telegram 返回 `400` 错误:
+
+```json
+{
+ "description": "Bad Request: message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message",
+ "error_code": 400,
+ "ok": false
+}
+```
+
+**工程建议**
+
+- 这个错误在流式输出场景中很常见(最后一次 edit 内容可能与前一次相同)。
+- 本仓库 `TelegramApi.editMessageText` 已对该错误做了静默处理:检测到 `message is not modified` 时直接 return,不抛异常。
+- 建议 SDK 实现统一对此错误做幂等处理。
+
+## 5. deleteMessage — 删除消息
+
+### 5.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/deleteMessage`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "message_id": 1234
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------ | --------------------- | -------- | ----------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `message_id` | `Integer` | 是 | 要删除的消息 ID。 |
+
+**Response Body**
+
+成功时返回 `true`:
+
+```json
+{
+ "ok": true,
+ "result": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/deleteMessage' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_id": 1234
+ }'
+```
+
+### 5.2 删除限制
+
+Telegram 对消息删除有严格的时间和权限限制:
+
+| 场景 | 限制 |
+| ---------------------------- | ------------------------------------------ |
+| 私聊中 Bot 发送的消息 | 可随时删除。 |
+| 私聊中用户发送的消息 | Bot 可随时删除。 |
+| 群组中 Bot 发送的消息 | 可随时删除。 |
+| 群组中其他人的消息 | Bot 需要管理员权限且消息在 **48 小时内**。 |
+| 超级群组 / 频道中的消息 | Bot 需具备 `can_delete_messages` 权限。 |
+| 骰子消息(私聊) | 发送 **24 小时后**才能删除。 |
+| 超级群 / 频道 / 话题创建消息 | 不可删除。 |
+
+**工程建议**
+
+- 删除操作应做好失败处理;消息可能已被其他管理员删除或已过期。
+- 如果需要批量删除,可使用 `deleteMessages`(复数形式)方法一次删除最多 100 条消息。
+
+## 6. setMessageReaction — 设置消息 Reaction
+
+### 6.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/setMessageReaction`
+
+**Request Body(添加 Reaction)**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "reaction": [
+ {
+ "type": "emoji",
+ "emoji": "👍"
+ }
+ ]
+}
+```
+
+**Request Body(移除 Reaction)**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "reaction": []
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------ | --------------------- | -------- | ---------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `message_id` | `Integer` | 是 | 目标消息 ID。 |
+| `reaction` | `Array<ReactionType>` | 是 | Reaction 列表;传空数组 `[]` 表示移除所有 Reaction。 |
+| `is_big` | `Boolean` | 否 | 是否使用大动画效果;默认 `false`。 |
+
+### 6.2 ReactionType 结构
+
+Telegram 支持三种 Reaction 类型:
+
+**ReactionTypeEmoji(标准表情)**
+
+| 字段 | 类型 | 说明 |
+| ------- | -------- | -------------------------------------------------------- |
+| `type` | `String` | 固定值 `"emoji"`。 |
+| `emoji` | `String` | Unicode 表情字符,必须是 Telegram 允许的 Reaction 表情。 |
+
+```json
+{ "emoji": "👍", "type": "emoji" }
+```
+
+**ReactionTypeCustomEmoji(自定义表情)**
+
+| 字段 | 类型 | 说明 |
+| ----------------- | -------- | ------------------------- |
+| `type` | `String` | 固定值 `"custom_emoji"`。 |
+| `custom_emoji_id` | `String` | 自定义表情的唯一标识符。 |
+
+```json
+{ "custom_emoji_id": "5368324170671202286", "type": "custom_emoji" }
+```
+
+**ReactionTypePaid(付费 Reaction)**
+
+| 字段 | 类型 | 说明 |
+| ------ | -------- | ----------------- |
+| `type` | `String` | 固定值 `"paid"`。 |
+
+```json
+{ "type": "paid" }
+```
+
+**Response Body**
+
+成功时返回 `true`:
+
+```json
+{
+ "ok": true,
+ "result": true
+}
+```
+
+**curl 示例**
+
+```bash
+# 添加 Reaction
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/setMessageReaction' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "reaction": [{"type": "emoji", "emoji": "👍"}]
+ }'
+```
+
+```bash
+# 移除 Reaction
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/setMessageReaction' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "reaction": []
+ }'
+```
+
+**工程建议**
+
+- Bot 不能使用付费 Reaction(`ReactionTypePaid`)。
+- 部分服务消息类型不支持 Reaction。
+- 常用标准表情包括:`👍`, `👎`, `❤`, `🔥`, `🎉`, `😢`, `😮`, `😡`, `🤔`, `👏`, `🙏`, `💯` 等(完整列表约 75 个)。
+- 本仓库 `TelegramApi` 将添加和移除 Reaction 封装为两个独立方法:`setMessageReaction`(添加)和 `removeMessageReaction`(传空数组移除)。
+
+## 7. pinChatMessage — 置顶消息
+
+### 7.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/pinChatMessage`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "disable_notification": true,
+ "message_id": 1234
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------------------ | --------------------- | -------- | ---------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `message_id` | `Integer` | 是 | 要置顶的消息 ID。 |
+| `disable_notification` | `Boolean` | 否 | 是否静默置顶(不向所有成员发送通知);默认 `false`。 |
+| `business_connection_id` | `String` | 否 | 商业连接标识符,用于代表商业账号管理置顶消息。 |
+
+**Response Body**
+
+成功时返回 `true`:
+
+```json
+{
+ "ok": true,
+ "result": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/pinChatMessage' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_id": 1234,
+ "disable_notification": true
+ }'
+```
+
+**工程建议**
+
+- 本仓库 `TelegramApi.pinChatMessage` 默认将 `disable_notification` 设为 `true`,避免置顶操作打扰群内所有成员。
+- Bot 需要在群组中具有 `can_pin_messages` 管理员权限。
+- 在频道中需要 `can_edit_messages` 权限。
+
+## 8. unpinChatMessage — 取消置顶消息
+
+### 8.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/unpinChatMessage`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "message_id": 1234
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------------------ | --------------------- | -------- | --------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `message_id` | `Integer` | 否 | 要取消置顶的消息 ID;不指定时取消最近一条置顶消息。 |
+| `business_connection_id` | `String` | 否 | 商业连接标识符。 |
+
+**Response Body**
+
+成功时返回 `true`:
+
+```json
+{
+ "ok": true,
+ "result": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/unpinChatMessage' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_id": 1234
+ }'
+```
+
+**工程建议**
+
+- 如果需要取消所有置顶消息,可使用 `unpinAllChatMessages` 方法。
+- 本仓库 `TelegramApi.unpinChatMessage` 始终传递 `message_id`,确保精确取消指定消息的置顶状态。
+
+## 9. getChat — 获取聊天信息
+
+### 9.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/getChat`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| --------- | --------------------- | -------- | ---------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+
+**Response Body**
+
+成功时返回 `ChatFullInfo` 对象:
+
+```json
+{
+ "ok": true,
+ "result": {
+ "id": -1001234567890,
+ "title": "测试群",
+ "type": "supergroup",
+ "username": "test_group",
+ "description": "这是一个测试群组",
+ "invite_link": "https://t.me/+ABCdef123456",
+ "permissions": {
+ "can_send_messages": true,
+ "can_send_media_messages": true,
+ "can_send_polls": true,
+ "can_send_other_messages": true,
+ "can_add_web_page_previews": true,
+ "can_change_info": false,
+ "can_invite_users": true,
+ "can_pin_messages": false
+ },
+ "max_reaction_count": 11,
+ "has_visible_history": true
+ }
+}
+```
+
+### 9.2 ChatFullInfo 主要字段
+
+| 字段 | 类型 | 说明 |
+| --------------------- | ------------------ | --------------------------------------------------------- |
+| `id` | `Integer` | 聊天唯一标识符。 |
+| `type` | `String` | 聊天类型:`private`、`group`、`supergroup` 或 `channel`。 |
+| `title` | `String?` | 群组、超级群组或频道的标题。 |
+| `username` | `String?` | 私聊、超级群组或频道的用户名。 |
+| `first_name` | `String?` | 私聊对方的名。 |
+| `last_name` | `String?` | 私聊对方的姓。 |
+| `description` | `String?` | 群组、超级群组或频道的描述。 |
+| `invite_link` | `String?` | 聊天邀请链接。 |
+| `permissions` | `ChatPermissions?` | 群组或超级群组的默认权限。 |
+| `linked_chat_id` | `Integer?` | 关联聊天的 ID(如频道关联的讨论组)。 |
+| `has_visible_history` | `Boolean?` | 新成员是否可以看到加入前的历史消息。 |
+| `max_reaction_count` | `Integer` | 允许在聊天消息上设置的最大 Reaction 数量。 |
+| `has_forum` | `Boolean?` | 超级群组是否启用了论坛话题功能(`true` 表示已启用)。 |
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/getChat' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890
+ }'
+```
+
+**工程建议**
+
+- `getChat` 返回的信息较为完整,可用于判断群组是否启用了论坛模式(`has_forum`)。
+- 对于私聊,返回用户的 `first_name` 和可选的 `bio`。
+- 建议缓存 `getChat` 的结果,避免频繁调用;群组基本信息变化不频繁。
+
+## 10. getChatMember — 获取聊天成员信息
+
+### 10.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/getChatMember`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "user_id": 987654321
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| --------- | --------------------- | -------- | ---------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `user_id` | `Integer` | 是 | 目标用户的唯一标识符。 |
+
+**Response Body**
+
+成功时返回 `ChatMember` 对象(多态类型,根据 `status` 字段区分):
+
+```json
+{
+ "ok": true,
+ "result": {
+ "status": "administrator",
+ "user": {
+ "id": 987654321,
+ "is_bot": false,
+ "first_name": "张三",
+ "username": "zhangsan"
+ },
+ "can_be_edited": false,
+ "can_manage_chat": true,
+ "can_delete_messages": true,
+ "can_manage_video_chats": true,
+ "can_restrict_members": true,
+ "can_promote_members": false,
+ "can_change_info": true,
+ "can_invite_users": true,
+ "can_pin_messages": true,
+ "can_manage_topics": true
+ }
+}
+```
+
+### 10.2 ChatMember 状态
+
+| status | 说明 |
+| --------------- | -------------------------------- |
+| `creator` | 群主;拥有所有管理员权限。 |
+| `administrator` | 管理员;拥有部分额外权限。 |
+| `member` | 普通成员;无额外权限或限制。 |
+| `restricted` | 受限成员;被施加了某些限制。 |
+| `left` | 已离开聊天但可以自行重新加入。 |
+| `kicked` | 被封禁;不能返回聊天或查看消息。 |
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/getChatMember' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "user_id": 987654321
+ }'
+```
+
+**工程建议**
+
+- 对于非管理员 Bot,此方法只保证能查到 Bot 自身的成员信息;查询其他用户需要 Bot 是群管理员。
+- 可用于检查用户是否仍在群中(`status` 不是 `left` 或 `kicked`)。
+- 可用于检查 Bot 自身的权限(如 `can_delete_messages`、`can_pin_messages` 等)。
+
+## 11. createForumTopic — 创建论坛话题
+
+### 11.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/createForumTopic`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "name": "新话题标题"
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ---------------------- | --------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标超级群组的标识符。 |
+| `name` | `String` | 是 | 话题名称;长度 1–128 字符。 |
+| `icon_color` | `Integer` | 否 | 话题图标颜色(RGB);必须是预定义值之一:`7322096`(蓝色)、`16766590`(黄色)、`13338331`(紫色)、`9367192`(绿色)、`16749490`(粉色)、`16478047`(红色)。 |
+| `icon_custom_emoji_id` | `String` | 否 | 话题图标的自定义表情 ID。 |
+
+**Response Body**
+
+成功时返回 `ForumTopic` 对象:
+
+```json
+{
+ "ok": true,
+ "result": {
+ "message_thread_id": 42,
+ "name": "新话题标题",
+ "icon_color": 7322096
+ }
+}
+```
+
+### 11.2 ForumTopic 字段
+
+| 字段 | 类型 | 说明 |
+| ---------------------- | --------- | ------------------------- |
+| `message_thread_id` | `Integer` | 论坛话题的唯一标识符。 |
+| `name` | `String` | 话题名称。 |
+| `icon_color` | `Integer` | 话题图标颜色。 |
+| `icon_custom_emoji_id` | `String?` | 话题图标的自定义表情 ID。 |
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/createForumTopic' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "name": "项目讨论"
+ }'
+```
+
+**工程建议**
+
+- 话题名称最长 128 字符;本仓库 `TelegramApi.createForumTopic` 会在发送前用 `name.slice(0, 128)` 截断。
+- 只有启用了论坛模式的超级群组才支持此方法;可通过 `getChat` 的 `has_forum` 字段判断。
+- Bot 需要在群组中具有 `can_manage_topics` 管理员权限。
+- 返回的 `message_thread_id` 用于后续向该话题发送消息。
+
+### 11.3 threadId 复合格式约定(createThread /replyToThread)
+
+在本仓库的消息工具(message tool)抽象层中,`createThread`(对应 `createForumTopic`)和 `replyToThread` 使用 **复合 threadId 格式**,格式为 `"chatId:topicId"`(例如 `"-1001234567890:42"`)。
+
+**原因**:Telegram 的论坛话题需要 `chat_id` 和 `message_thread_id` 两个参数才能定位一个话题,而消息工具协议只有一个 `threadId` 字段。因此需要将两个标识符编码到一个字符串中。
+
+**规则**:
+
+- `createThread` 在调用 `createForumTopic` 成功后,将返回值拼接为 `"${chatId}:${message_thread_id}"`(例如 `"-1001234567890:42"`)。
+- `replyToThread` 接收到 `threadId` 后,通过 `threadId.split(':')` 解析出 `chatId` 和 `topicId`,分别作为 `chat_id` 和 `message_thread_id` 传入 `sendMessage`。
+
+**Bug 修复记录**:原始实现中 `createThread` 仅返回 `message_thread_id`(如 `"42"`),不包含 `chatId`,导致 `replyToThread` 在解析时无法获得正确的 `chat_id`,消息发送失败。修复后统一使用复合格式 `"chatId:topicId"`。
+
+## 12. sendMessage(话题模式) — 向论坛话题发送消息
+
+### 12.1 接口定义
+
+向论坛话题发送消息与普通 `sendMessage` 使用相同的接口,额外传入 `message_thread_id` 参数即可。
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/sendMessage`
+
+**Request Body**
+
+```json
+{
+ "chat_id": -1001234567890,
+ "message_thread_id": 42,
+ "parse_mode": "HTML",
+ "text": "这条消息发送到指定话题"
+}
+```
+
+**参数说明**
+
+除 `sendMessage` 的所有参数外(见第 3 节),关键区别在于:
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------------- | --------- | -------- | ----------------------------------------------------- |
+| `message_thread_id` | `Integer` | 是 (\*) | 论坛话题的线程 ID(即 `createForumTopic` 返回的值)。 |
+
+(\*) 在论坛模式群组中,向特定话题发送消息时必需。
+
+**Response Body**
+
+与普通 `sendMessage` 一致,返回 `Message` 对象。
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/sendMessage' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "message_thread_id": 42,
+ "text": "在话题中回复的消息",
+ "parse_mode": "HTML"
+ }'
+```
+
+**工程建议**
+
+- 本仓库 `TelegramApi.sendMessageToTopic` 封装了此调用,自动传入 `message_thread_id`。
+- **重要:`parse_mode` 必须与普通 `sendMessage` 一样传入**(如 `parse_mode: 'HTML'`)。此参数在话题模式下容易遗漏,曾在 code review 中发现原实现缺失了 `parse_mode: 'HTML'`,导致话题消息中 HTML 标签被原样显示而非渲染为富文本。
+- 如果群组开启了论坛模式但未指定 `message_thread_id`,消息将发送到 "General" 话题(thread_id 通常为 1)。
+- `message_thread_id` 也可用于 `sendChatAction` 等其他方法,指定动作所在的话题。
+
+## 13. sendPoll — 发送投票
+
+### 13.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/sendPoll`
+
+**Request Body**
+
+```json
+{
+ "allows_multiple_answers": false,
+ "chat_id": -1001234567890,
+ "is_anonymous": true,
+ "options": [{ "text": "TypeScript" }, { "text": "Python" }, { "text": "Rust" }, { "text": "Go" }],
+ "question": "你最喜欢的编程语言?"
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------------------- | ------------------------- | -------- | -------------------------------------------------------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `question` | `String` | 是 | 投票问题;长度 1–300 字符。 |
+| `options` | `Array<InputPollOption>` | 是 | 投票选项列表;2–10 个选项。 |
+| `is_anonymous` | `Boolean` | 否 | 是否匿名投票;默认 `true`。 |
+| `type` | `String` | 否 | 投票类型:`regular`(普通)或 `quiz`(测验);默认 `regular`。 |
+| `allows_multiple_answers` | `Boolean` | 否 | 是否允许多选;默认 `false`。仅 `regular` 类型可用。 |
+| `correct_option_id` | `Integer` | 条件必需 | 测验模式的正确答案索引(从 0 开始);`quiz` 类型必需。 |
+| `explanation` | `String` | 否 | 用户选错后显示的解释文本;0–200 字符。 |
+| `explanation_parse_mode` | `String` | 否 | 解释文本的格式化模式。 |
+| `explanation_entities` | `Array<MessageEntity>` | 否 | 解释文本的格式化实体。 |
+| `open_period` | `Integer` | 否 | 投票创建后的活跃时间(秒);5–600。与 `close_date` 互斥。 |
+| `close_date` | `Integer` | 否 | 投票自动关闭的 Unix 时间戳;距当前 5–600 秒。与 `open_period` 互斥。 |
+| `is_closed` | `Boolean` | 否 | 是否立即关闭投票。 |
+| `message_thread_id` | `Integer` | 否 | 论坛话题线程 ID。 |
+| `disable_notification` | `Boolean` | 否 | 静默发送。 |
+| `protect_content` | `Boolean` | 否 | 保护投票内容不被转发。 |
+| `reply_parameters` | `ReplyParameters` | 否 | 回复配置。 |
+| `reply_markup` | `InlineKeyboardMarkup` 等 | 否 | 内联键盘或自定义键盘。 |
+
+### 13.2 InputPollOption 结构
+
+| 字段 | 类型 | 是否必需 | 说明 |
+| ----------------- | ---------------------- | -------- | -------------------------------------------------- |
+| `text` | `String` | 是 | 选项文本;长度 1–100 字符。 |
+| `text_parse_mode` | `String` | 否 | 选项文本的格式化模式(当前仅支持自定义表情实体)。 |
+| `text_entities` | `Array<MessageEntity>` | 否 | 选项文本的格式化实体(当前仅支持自定义表情实体)。 |
+
+**Response Body**
+
+成功时返回包含 `Poll` 的 `Message` 对象:
+
+```json
+{
+ "ok": true,
+ "result": {
+ "message_id": 5678,
+ "chat": { "id": -1001234567890, "type": "supergroup" },
+ "date": 1711468800,
+ "poll": {
+ "id": "5012345678901234567",
+ "question": "你最喜欢的编程语言?",
+ "options": [
+ { "text": "TypeScript", "voter_count": 0 },
+ { "text": "Python", "voter_count": 0 },
+ { "text": "Rust", "voter_count": 0 },
+ { "text": "Go", "voter_count": 0 }
+ ],
+ "total_voter_count": 0,
+ "is_closed": false,
+ "is_anonymous": true,
+ "type": "regular",
+ "allows_multiple_answers": false
+ }
+ }
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/sendPoll' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "question": "你最喜欢的编程语言?",
+ "options": [
+ {"text": "TypeScript"},
+ {"text": "Python"},
+ {"text": "Rust"},
+ {"text": "Go"}
+ ],
+ "is_anonymous": true,
+ "allows_multiple_answers": false
+ }'
+```
+
+**工程建议**
+
+- 本仓库 `TelegramApi.sendPoll` 将 `options` 参数从 `string[]` 转换为 `InputPollOption[]` 格式(`options.map(text => ({ text }))`)。
+- 投票选项数量限制为 2–10 个;少于 2 个或多于 10 个将返回错误。
+- `open_period` 和 `close_date` 不可同时使用。
+- 从返回值中可提取 `poll.id` 用于后续追踪投票结果。
+
+## 14. sendChatAction — 发送输入状态指示
+
+### 14.1 接口定义
+
+**Method**
+
+`POST`
+
+**URL**
+
+`https://api.telegram.org/bot{token}/sendChatAction`
+
+**Request Body**
+
+```json
+{
+ "action": "typing",
+ "chat_id": -1001234567890
+}
+```
+
+**参数说明**
+
+| 参数 | 类型 | 是否必需 | 说明 |
+| ------------------- | --------------------- | -------- | -------------------- |
+| `chat_id` | `Integer` 或 `String` | 是 | 目标聊天标识符。 |
+| `action` | `String` | 是 | 动作类型(见下表)。 |
+| `message_thread_id` | `Integer` | 否 | 论坛话题线程 ID。 |
+
+### 14.2 支持的 action 值
+
+| action | 对应场景 |
+| ------------------- | ---------------------------- |
+| `typing` | 即将发送文本消息。 |
+| `upload_photo` | 即将发送照片。 |
+| `record_video` | 即将发送视频(录制中)。 |
+| `upload_video` | 即将发送视频(上传中)。 |
+| `record_voice` | 即将发送语音(录制中)。 |
+| `upload_voice` | 即将发送语音(上传中)。 |
+| `upload_document` | 即将发送文件。 |
+| `choose_sticker` | 即将发送贴纸。 |
+| `find_location` | 即将发送位置。 |
+| `record_video_note` | 即将发送视频笔记(录制中)。 |
+| `upload_video_note` | 即将发送视频笔记(上传中)。 |
+
+**Response Body**
+
+成功时返回 `true`:
+
+```json
+{
+ "ok": true,
+ "result": true
+}
+```
+
+**curl 示例**
+
+```bash
+curl 'https://api.telegram.org/bot123456789:ABCdefGHIjklMNOpqrsTUVwxyz/sendChatAction' \
+ -X POST \
+ -H 'Content-Type: application/json' \
+ --data-raw '{
+ "chat_id": -1001234567890,
+ "action": "typing"
+ }'
+```
+
+**工程建议**
+
+- `typing` 状态持续时间最多 **5 秒**;如果 Bot 在此期间发送了消息,客户端会立即清除输入状态。
+- 对于长时间处理的任务,建议每 5 秒重复调用一次 `sendChatAction` 以保持 "正在输入" 状态。
+- Telegram 官方建议仅在 Bot 回复需要明显等待时间时才使用此方法。
+- 本仓库 `TelegramApi.sendChatAction` 默认 `action` 为 `typing`。
+
+## 15. 速率限制
+
+Telegram Bot API 有以下速率限制:
+
+| 维度 | 限制 |
+| ---------------- | ---------------------------------------------------------- |
+| 同一聊天发送消息 | 每秒不超过 1 条消息(突发最多约 30 条 / 秒,但会被限流)。 |
+| 群组发送消息 | 每分钟不超过 20 条消息。 |
+| 全局发送消息 | 每秒不超过 30 条消息。 |
+| 批量通知 | 同一条消息不能在 1 秒内发送给超过 30 个不同聊天。 |
+
+收到 `429 Too Many Requests` 时,响应中会包含 `retry_after` 参数:
+
+```json
+{
+ "description": "Too Many Requests: retry after 35",
+ "error_code": 429,
+ "ok": false,
+ "parameters": {
+ "retry_after": 35
+ }
+}
+```
+
+**工程建议**
+
+- 实现指数退避重试策略。
+- 解析 `parameters.retry_after` 字段获取精确等待时间。
+- 对于流式输出场景(多次 `editMessageText`),建议控制编辑频率在每秒 1-2 次。
+
+## 16. 附录
+
+### 16.1 Message 对象关键字段
+
+以下列出 `sendMessage` 等方法返回的 `Message` 对象中最常用的字段:
+
+| 字段 | 类型 | 说明 |
+| ------------------- | ---------- | ----------------------------- |
+| `message_id` | `Integer` | 消息在聊天中的唯一标识符。 |
+| `from` | `User?` | 发送者信息。 |
+| `chat` | `Chat` | 消息所属聊天。 |
+| `date` | `Integer` | 消息发送时间(Unix 时间戳)。 |
+| `edit_date` | `Integer?` | 最近编辑时间(Unix 时间戳)。 |
+| `text` | `String?` | 文本消息内容。 |
+| `entities` | `Array?` | 消息中的格式化实体。 |
+| `reply_to_message` | `Message?` | 被回复的消息。 |
+| `message_thread_id` | `Integer?` | 消息所属论坛话题的线程 ID。 |
+| `poll` | `Poll?` | 投票信息(仅投票消息)。 |
+
+### 16.2 本仓库 TelegramApi 方法映射表
+
+| TelegramApi 方法 | Telegram API 方法 | 关键参数 |
+| ----------------------- | -------------------- | --------------------------------------------------------- |
+| `sendMessage` | `sendMessage` | `chat_id`, `text`, `parse_mode=HTML` |
+| `editMessageText` | `editMessageText` | `chat_id`, `message_id`, `text`, `parse_mode=HTML` |
+| `deleteMessage` | `deleteMessage` | `chat_id`, `message_id` |
+| `sendChatAction` | `sendChatAction` | `chat_id`, `action=typing` |
+| `setMessageReaction` | `setMessageReaction` | `chat_id`, `message_id`, `reaction=[{type,emoji}]` |
+| `removeMessageReaction` | `setMessageReaction` | `chat_id`, `message_id`, `reaction=[]` |
+| `pinChatMessage` | `pinChatMessage` | `chat_id`, `message_id`, `disable_notification=true` |
+| `unpinChatMessage` | `unpinChatMessage` | `chat_id`, `message_id` |
+| `getChat` | `getChat` | `chat_id` |
+| `getChatMember` | `getChatMember` | `chat_id`, `user_id` |
+| `createForumTopic` | `createForumTopic` | `chat_id`, `name` (max 128 chars) |
+| `sendMessageToTopic` | `sendMessage` | `chat_id`, `message_thread_id`, `text`, `parse_mode=HTML` |
+| `sendPoll` | `sendPoll` | `chat_id`, `question`, `options` |
+| `setMyCommands` | `setMyCommands` | `commands` |
+
+### 16.3 与微信 iLink 协议的关键差异
+
+| 维度 | Telegram Bot API | 微信 iLink API |
+| ------------ | ------------------------------------------ | -------------------------------------- |
+| 认证方式 | Bot Token 直接放入 URL 路径。 | Bearer Token 放入 `Authorization` 头。 |
+| 消息路由 | 通过 `chat_id` + `message_id` 定位。 | 依赖 `context_token` 做会话路由。 |
+| 消息接收 | Webhook 或 `getUpdates` 长轮询。 | `getupdates` 长轮询。 |
+| 消息编辑 | 原生支持 `editMessageText`。 | 无原生编辑能力;需新发消息替代。 |
+| 消息删除 | 原生支持 `deleteMessage`,有 48 小时限制。 | 无原生删除能力。 |
+| Reaction | 原生支持 `setMessageReaction`。 | 不支持。 |
+| 消息格式 | HTML / MarkdownV2。 | 纯文本 + 媒体 item_list 结构。 |
+| 文本长度上限 | 4096 字符。 | 约 2000 字符(社区经验值)。 |
+| 论坛 / 话题 | 原生支持 Forum Topics。 | 不支持。 |
+| 投票 | 原生支持 `sendPoll`。 | 不支持。 |
+| 速率限制 | 每聊天~1 msg/s,全局 30 msg/s。 | 未公开文档化。 |
+
+## 17. 实测验证记录
+
+> 本节记录了对 Telegram Bot API 实现的实际验证结果,包含 Token 验证、API 测试和 code review 发现的问题修复。
+
+### 17.1 Token 验证
+
+通过 `getMe` 接口验证 Bot Token 有效性:
+
+- **Bot 用户名**:@JianXu_Lobehub_Test_Bot
+- **Bot ID**:8654315085
+- **验证结果**:Token 有效,Bot 身份确认。
+
+### 17.2 直接 API 测试限制
+
+由于该 Bot 已设置了活跃的 Webhook,`getUpdates`(长轮询模式)无法使用。Telegram 不允许 Webhook 模式和 `getUpdates` 同时生效 —— 调用 `getUpdates` 时会返回错误:
+
+```
+Conflict: can't use getUpdates method while webhook is active
+```
+
+因此,直接 API 测试受限于不依赖消息接收的方法(如 `getMe`、`getChat` 等)。大部分消息操作 API 的验证通过 code review 完成。
+
+### 17.3 Code Review 验证结果
+
+以下 API 实现通过 code review 对照本协议规范进行了逐项验证:
+
+| API 方法 | 验证状态 | 备注 |
+| -------------------- | ---------- | --------------------------------------------------------------------- |
+| `sendMessage` | 通过 | 参数、parse_mode、截断逻辑均符合规范。 |
+| `editMessageText` | 通过 | 包含 "message is not modified" 静默处理。 |
+| `deleteMessage` | 通过 | 参数正确。 |
+| `setMessageReaction` | 通过 | 添加 / 移除 Reaction 两种模式均正确。 |
+| `pinChatMessage` | 通过 | 默认 `disable_notification=true`。 |
+| `unpinChatMessage` | 通过 | 始终传递 `message_id`。 |
+| `sendMessageToTopic` | 修复后通过 | 原实现缺少 `parse_mode: 'HTML'`,已修复。 |
+| `createForumTopic` | 修复后通过 | 原 `createThread` 返回裸 topicId,已修复为复合格式 `chatId:topicId`。 |
+
+### 17.4 关键 Bug 修复摘要
+
+1. **`sendMessageToTopic` 缺少 `parse_mode`**(见第 12 节):向论坛话题发送消息时未传入 `parse_mode: 'HTML'`,导致 HTML 标签被原样显示。修复:在 `sendMessageToTopic` 调用中补充 `parse_mode: 'HTML'` 参数。
+
+2. **`createThread` 返回的 threadId 格式不兼容**(见第 11.3 节):`createThread` 原实现仅返回 Telegram API 的 `message_thread_id`(如 `"42"`),而 `replyToThread` 期望接收 `"chatId:topicId"` 格式。修复:`createThread` 改为返回 `"${chatId}:${message_thread_id}"` 复合格式。
diff --git a/src/server/services/bot/platforms/telegram/schema.ts b/src/server/services/bot/platforms/telegram/schema.ts
index 0c914918450..a2095873efa 100644
--- a/src/server/services/bot/platforms/telegram/schema.ts
+++ b/src/server/services/bot/platforms/telegram/schema.ts
@@ -1,4 +1,6 @@
-import { DEFAULT_DEBOUNCE_MS, MAX_DEBOUNCE_MS } from '../const';
+import { DEFAULT_BOT_DEBOUNCE_MS, MAX_BOT_DEBOUNCE_MS } from '@lobechat/const';
+
+import { userIdField } from '../const';
import type { FieldSchema } from '../types';
export const schema: FieldSchema[] = [
@@ -55,10 +57,10 @@ export const schema: FieldSchema[] = [
},
{
key: 'debounceMs',
- default: DEFAULT_DEBOUNCE_MS,
+ default: DEFAULT_BOT_DEBOUNCE_MS,
description: 'channel.debounceMsHint',
label: 'channel.debounceMs',
- maximum: MAX_DEBOUNCE_MS,
+ maximum: MAX_BOT_DEBOUNCE_MS,
minimum: 100,
type: 'number',
visibleWhen: { field: 'concurrency', value: 'debounce' },
@@ -70,6 +72,7 @@ export const schema: FieldSchema[] = [
label: 'channel.showUsageStats',
type: 'boolean',
},
+ userIdField,
// TODO: DM schema - not implemented yet
// {
// key: 'dm',
diff --git a/src/server/services/bot/platforms/telegram/service.ts b/src/server/services/bot/platforms/telegram/service.ts
new file mode 100644
index 00000000000..2cbe81cdfd0
--- /dev/null
+++ b/src/server/services/bot/platforms/telegram/service.ts
@@ -0,0 +1,180 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+
+import type { MessageRuntimeService } from '@/server/services/toolExecution/serverRuntimes/message/adapters/types';
+import { PlatformUnsupportedError } from '@/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError';
+
+import type { TelegramApi } from './api';
+
+export class TelegramMessageService implements MessageRuntimeService {
+ constructor(private api: TelegramApi) {}
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ const result = await this.api.sendMessage(params.channelId, params.content);
+ return {
+ channelId: params.channelId,
+ messageId: String(result.message_id),
+ platform: 'telegram',
+ };
+ };
+
+ readMessages = async (_params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ throw new PlatformUnsupportedError('Telegram', 'readMessages');
+ };
+
+ editMessage = async (params: EditMessageParams): Promise<EditMessageState> => {
+ await this.api.editMessageText(params.channelId, Number(params.messageId), params.content);
+ return { messageId: params.messageId, success: true };
+ };
+
+ deleteMessage = async (params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ await this.api.deleteMessage(params.channelId, Number(params.messageId));
+ return { messageId: params.messageId, success: true };
+ };
+
+ searchMessages = async (_params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ throw new PlatformUnsupportedError('Telegram', 'searchMessages');
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ await this.api.setMessageReaction(params.channelId, Number(params.messageId), params.emoji);
+ return { messageId: params.messageId, success: true };
+ };
+
+ getReactions = async (_params: GetReactionsParams): Promise<GetReactionsState> => {
+ throw new PlatformUnsupportedError('Telegram', 'getReactions');
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (params: PinMessageParams): Promise<PinMessageState> => {
+ await this.api.pinChatMessage(params.channelId, Number(params.messageId));
+ return { messageId: params.messageId, success: true };
+ };
+
+ unpinMessage = async (params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ await this.api.unpinChatMessage(params.channelId, Number(params.messageId));
+ return { messageId: params.messageId, success: true };
+ };
+
+ listPins = async (_params: ListPinsParams): Promise<ListPinsState> => {
+ throw new PlatformUnsupportedError('Telegram', 'listPins');
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ const chat = await this.api.getChat(params.channelId);
+ return {
+ description: chat.description ?? undefined,
+ id: String(chat.id),
+ memberCount: chat.member_count ?? undefined,
+ name: chat.title ?? chat.first_name ?? undefined,
+ type: chat.type,
+ };
+ };
+
+ listChannels = async (_params: ListChannelsParams): Promise<ListChannelsState> => {
+ throw new PlatformUnsupportedError('Telegram', 'listChannels');
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ if (!params.serverId) {
+ throw new Error('Telegram requires serverId (chat ID) to get member info');
+ }
+ const member = await this.api.getChatMember(params.serverId, Number(params.memberId));
+ const user = member.user;
+ return {
+ displayName: [user?.first_name, user?.last_name].filter(Boolean).join(' ') || undefined,
+ id: String(user?.id ?? params.memberId),
+ status: member.status,
+ username: user?.username ?? undefined,
+ };
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (params: CreateThreadParams): Promise<CreateThreadState> => {
+ const result = await this.api.createForumTopic(params.channelId, params.name);
+ if (params.content) {
+ await this.api.sendMessageToTopic(params.channelId, result.message_thread_id, params.content);
+ }
+ // Return compound format "chatId:topicId" so replyToThread can parse it
+ return { threadId: `${params.channelId}:${result.message_thread_id}` };
+ };
+
+ listThreads = async (_params: ListThreadsParams): Promise<ListThreadsState> => {
+ throw new PlatformUnsupportedError('Telegram', 'listThreads');
+ };
+
+ replyToThread = async (params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ const parts = params.threadId.split(':');
+ let chatId: string;
+ let topicId: number;
+ if (parts.length >= 2) {
+ chatId = parts[0];
+ topicId = Number(parts[1]);
+ } else {
+ throw new Error('Telegram replyToThread requires threadId in "chatId:topicId" format');
+ }
+
+ const result = await this.api.sendMessageToTopic(chatId, topicId, params.content);
+ return { messageId: String(result.message_id), threadId: params.threadId };
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (params: CreatePollParams): Promise<CreatePollState> => {
+ const result = await this.api.sendPoll(
+ params.channelId,
+ params.question,
+ params.options,
+ undefined,
+ params.multipleAnswers,
+ );
+ return {
+ messageId: String(result.message_id),
+ pollId: result.poll_id ?? String(result.message_id),
+ };
+ };
+}
diff --git a/src/server/services/bot/platforms/types.ts b/src/server/services/bot/platforms/types.ts
index 0d6eee31709..fa564d588d9 100644
--- a/src/server/services/bot/platforms/types.ts
+++ b/src/server/services/bot/platforms/types.ts
@@ -230,6 +230,7 @@ export abstract class ClientFactory {
_credentials: Record<string, string>,
_settings?: Record<string, unknown>,
_applicationId?: string,
+ _platform?: string,
): Promise<ValidationResult> {
return { valid: true };
}
diff --git a/src/server/services/bot/platforms/wechat/schema.ts b/src/server/services/bot/platforms/wechat/schema.ts
index 58396f3e297..6933f852619 100644
--- a/src/server/services/bot/platforms/wechat/schema.ts
+++ b/src/server/services/bot/platforms/wechat/schema.ts
@@ -1,4 +1,5 @@
-import { MAX_DEBOUNCE_MS } from '../const';
+import { MAX_BOT_DEBOUNCE_MS } from '@lobechat/const';
+
import type { FieldSchema } from '../types';
export const schema: FieldSchema[] = [
@@ -30,7 +31,7 @@ export const schema: FieldSchema[] = [
default: 5000,
description: 'channel.debounceMsHint',
label: 'channel.debounceMs',
- maximum: MAX_DEBOUNCE_MS,
+ maximum: MAX_BOT_DEBOUNCE_MS,
minimum: 100,
type: 'number',
visibleWhen: { field: 'concurrency', value: 'debounce' },
diff --git a/src/server/services/bot/platforms/wechat/service.ts b/src/server/services/bot/platforms/wechat/service.ts
new file mode 100644
index 00000000000..ec3944e63a3
--- /dev/null
+++ b/src/server/services/bot/platforms/wechat/service.ts
@@ -0,0 +1,169 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+import type { WechatApiClient } from '@lobechat/chat-adapter-wechat';
+
+import { getAgentRuntimeRedisClient } from '@/server/modules/AgentRuntime/redis';
+import type { MessageRuntimeService } from '@/server/services/toolExecution/serverRuntimes/message/adapters/types';
+import { PlatformUnsupportedError } from '@/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError';
+
+/**
+ * WeChat iLink Bot message adapter.
+ *
+ * WeChat iLink protocol requires a per-conversation `context_token` for sending messages.
+ * The gateway long-polling client persists these tokens to Redis as they arrive from
+ * inbound messages. This adapter reads them from Redis to enable `sendMessage`.
+ *
+ * channelId for WeChat = target user ID (e.g., "[email protected]")
+ */
+export class WechatMessageService implements MessageRuntimeService {
+ private applicationId: string;
+
+ constructor(
+ private api: WechatApiClient,
+ applicationId: string,
+ ) {
+ this.applicationId = applicationId;
+ }
+
+ /**
+ * Resolve the context token for a target user from Redis.
+ * The gateway client stores it at `wechat:ctx-token:${applicationId}:${userId}`.
+ */
+ private async resolveContextToken(userId: string): Promise<string> {
+ // Best-effort: try Redis first, fall back to empty string.
+ // Testing shows sendMessage works even without a context_token in some sessions,
+ // but providing one ensures reliable message delivery to the correct conversation.
+ try {
+ const redis = getAgentRuntimeRedisClient();
+ if (redis) {
+ const key = `wechat:ctx-token:${this.applicationId}:${userId}`;
+ const token = await redis.get(key);
+ if (token) return token;
+ }
+ } catch {
+ // Redis unavailable — fall through
+ }
+ return '';
+ }
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ const contextToken = await this.resolveContextToken(params.channelId);
+ await this.api.sendMessage(params.channelId, params.content, contextToken);
+ return {
+ channelId: params.channelId,
+ platform: 'wechat',
+ };
+ };
+
+ readMessages = async (_params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ throw new PlatformUnsupportedError('WeChat', 'readMessages');
+ };
+
+ editMessage = async (_params: EditMessageParams): Promise<EditMessageState> => {
+ throw new PlatformUnsupportedError('WeChat', 'editMessage');
+ };
+
+ deleteMessage = async (_params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ throw new PlatformUnsupportedError('WeChat', 'deleteMessage');
+ };
+
+ searchMessages = async (_params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ throw new PlatformUnsupportedError('WeChat', 'searchMessages');
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (_params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ throw new PlatformUnsupportedError('WeChat', 'reactToMessage');
+ };
+
+ getReactions = async (_params: GetReactionsParams): Promise<GetReactionsState> => {
+ throw new PlatformUnsupportedError('WeChat', 'getReactions');
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (_params: PinMessageParams): Promise<PinMessageState> => {
+ throw new PlatformUnsupportedError('WeChat', 'pinMessage');
+ };
+
+ unpinMessage = async (_params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ throw new PlatformUnsupportedError('WeChat', 'unpinMessage');
+ };
+
+ listPins = async (_params: ListPinsParams): Promise<ListPinsState> => {
+ throw new PlatformUnsupportedError('WeChat', 'listPins');
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (_params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ throw new PlatformUnsupportedError('WeChat', 'getChannelInfo');
+ };
+
+ listChannels = async (_params: ListChannelsParams): Promise<ListChannelsState> => {
+ throw new PlatformUnsupportedError('WeChat', 'listChannels');
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (_params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ throw new PlatformUnsupportedError('WeChat', 'getMemberInfo');
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (_params: CreateThreadParams): Promise<CreateThreadState> => {
+ throw new PlatformUnsupportedError('WeChat', 'createThread');
+ };
+
+ listThreads = async (_params: ListThreadsParams): Promise<ListThreadsState> => {
+ throw new PlatformUnsupportedError('WeChat', 'listThreads');
+ };
+
+ replyToThread = async (_params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ throw new PlatformUnsupportedError('WeChat', 'replyToThread');
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (_params: CreatePollParams): Promise<CreatePollState> => {
+ throw new PlatformUnsupportedError('WeChat', 'createPoll');
+ };
+}
diff --git a/src/server/services/toolExecution/serverRuntimes/__tests__/message.test.ts b/src/server/services/toolExecution/serverRuntimes/__tests__/message.test.ts
new file mode 100644
index 00000000000..03e0ecf52c1
--- /dev/null
+++ b/src/server/services/toolExecution/serverRuntimes/__tests__/message.test.ts
@@ -0,0 +1,356 @@
+import { MessageToolIdentifier } from '@lobechat/builtin-tool-message';
+import { describe, expect, it, vi } from 'vitest';
+
+import type { ToolExecutionContext } from '../../types';
+
+// ==================== Mocks ====================
+
+const mockQuery = vi.fn();
+
+vi.mock('@/database/models/agentBotProvider', () => ({
+ AgentBotProviderModel: vi.fn().mockImplementation(() => ({
+ query: mockQuery,
+ })),
+}));
+
+vi.mock('@/server/modules/KeyVaultsEncrypt', () => ({
+ KeyVaultsGateKeeper: {
+ initWithEnvKey: vi.fn().mockResolvedValue({}),
+ },
+}));
+
+// Mock platform API constructors
+const mockDiscordCreateMessage = vi.fn();
+const mockDiscordGetMessages = vi.fn();
+const mockDiscordEditMessage = vi.fn();
+const mockDiscordDeleteMessage = vi.fn();
+
+vi.mock('@/server/services/bot/platforms/discord/api', () => ({
+ DiscordApi: vi.fn().mockImplementation(() => ({
+ createMessage: mockDiscordCreateMessage,
+ createPoll: vi.fn(),
+ createReaction: vi.fn(),
+ deleteMessage: mockDiscordDeleteMessage,
+ editMessage: mockDiscordEditMessage,
+ getChannel: vi.fn(),
+ getGuildChannels: vi.fn(),
+ getGuildMember: vi.fn(),
+ getMessages: mockDiscordGetMessages,
+ getPinnedMessages: vi.fn(),
+ getReactions: vi.fn(),
+ listActiveThreads: vi.fn(),
+ pinMessage: vi.fn(),
+ searchGuildMessages: vi.fn(),
+ startThreadFromMessage: vi.fn(),
+ startThreadWithoutMessage: vi.fn(),
+ unpinMessage: vi.fn(),
+ })),
+}));
+
+const mockTelegramSendMessage = vi.fn();
+vi.mock('@/server/services/bot/platforms/telegram/api', () => ({
+ TelegramApi: vi.fn().mockImplementation(() => ({
+ deleteMessage: vi.fn(),
+ editMessageText: vi.fn(),
+ getChat: vi.fn(),
+ getChatMember: vi.fn(),
+ createForumTopic: vi.fn(),
+ pinChatMessage: vi.fn(),
+ sendMessage: mockTelegramSendMessage,
+ sendMessageToTopic: vi.fn(),
+ sendPoll: vi.fn(),
+ setMessageReaction: vi.fn(),
+ unpinChatMessage: vi.fn(),
+ })),
+}));
+
+const mockSlackPostMessage = vi.fn();
+vi.mock('@/server/services/bot/platforms/slack/api', () => ({
+ SlackApi: vi.fn().mockImplementation(() => ({
+ addReaction: vi.fn(),
+ deleteMessage: vi.fn(),
+ getChannelInfo: vi.fn(),
+ getHistory: vi.fn(),
+ getReactions: vi.fn(),
+ listChannels: vi.fn(),
+ listPins: vi.fn(),
+ pinMessage: vi.fn(),
+ postMessage: mockSlackPostMessage,
+ postMessageInThread: vi.fn(),
+ removeReaction: vi.fn(),
+ search: vi.fn(),
+ unpinMessage: vi.fn(),
+ updateMessage: vi.fn(),
+ getUserInfo: vi.fn(),
+ getReplies: vi.fn(),
+ })),
+}));
+
+const mockFeishuSendMessage = vi.fn();
+vi.mock('@lobechat/chat-adapter-feishu', () => ({
+ LarkApiClient: vi.fn().mockImplementation(() => ({
+ addReaction: vi.fn(),
+ deleteMessage: vi.fn(),
+ editMessage: vi.fn(),
+ getChatInfo: vi.fn(),
+ getUserInfo: vi.fn(),
+ listMessages: vi.fn(),
+ replyMessage: vi.fn(),
+ sendMessage: mockFeishuSendMessage,
+ })),
+}));
+
+const mockQQSendGroupMessage = vi.fn();
+vi.mock('@lobechat/chat-adapter-qq', () => ({
+ QQApiClient: vi.fn().mockImplementation(() => ({
+ sendC2CMessage: vi.fn(),
+ sendDmsMessage: vi.fn(),
+ sendGroupMessage: mockQQSendGroupMessage,
+ sendGuildMessage: vi.fn(),
+ })),
+}));
+
+// Import after mocks
+const { messageRuntime } = await import('../message');
+
+// ==================== Helpers ====================
+
+const validContext: ToolExecutionContext = {
+ serverDB: {} as any,
+ toolManifestMap: {},
+ userId: 'user-1',
+};
+
+const mockProviderFor = (platform: string, credentials: Record<string, string>) => {
+ mockQuery.mockImplementation(async (params?: { platform?: string }) => {
+ if (params?.platform === platform) {
+ return [{ applicationId: 'app-1', credentials, enabled: true }];
+ }
+ return [];
+ });
+};
+
+// ==================== Tests ====================
+
+describe('messageRuntime', () => {
+ it('should have correct identifier', () => {
+ expect(messageRuntime.identifier).toBe(MessageToolIdentifier);
+ });
+
+ describe('factory', () => {
+ it('should throw when serverDB is missing', async () => {
+ const context: ToolExecutionContext = {
+ toolManifestMap: {},
+ userId: 'user-1',
+ };
+
+ await expect(messageRuntime.factory(context)).rejects.toThrow(
+ 'serverDB is required for Message tool execution',
+ );
+ });
+
+ it('should throw when userId is missing', async () => {
+ const context: ToolExecutionContext = {
+ serverDB: {} as any,
+ toolManifestMap: {},
+ };
+
+ await expect(messageRuntime.factory(context)).rejects.toThrow(
+ 'userId is required for Message tool execution',
+ );
+ });
+
+ it('should create a runtime with sendMessage method', async () => {
+ const runtime = await messageRuntime.factory(validContext);
+
+ expect(runtime).toBeDefined();
+ expect(typeof runtime.sendMessage).toBe('function');
+ expect(typeof runtime.readMessages).toBe('function');
+ expect(typeof runtime.editMessage).toBe('function');
+ expect(typeof runtime.deleteMessage).toBe('function');
+ });
+ });
+
+ describe('Discord adapter', () => {
+ it('should send a message via Discord', async () => {
+ mockProviderFor('discord', { botToken: 'discord-token' });
+ mockDiscordCreateMessage.mockResolvedValue({ id: 'msg-123' });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: 'ch-1',
+ content: 'Hello Discord!',
+ platform: 'discord',
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.state).toMatchObject({
+ channelId: 'ch-1',
+ messageId: 'msg-123',
+ platform: 'discord',
+ });
+ });
+
+ it('should read messages from Discord', async () => {
+ mockProviderFor('discord', { botToken: 'discord-token' });
+ mockDiscordGetMessages.mockResolvedValue([
+ {
+ author: { id: 'u1', username: 'alice' },
+ content: 'hello',
+ id: 'msg-1',
+ timestamp: '2024-01-01T00:00:00Z',
+ },
+ ]);
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.readMessages({
+ channelId: 'ch-1',
+ platform: 'discord',
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.state.messages).toHaveLength(1);
+ expect(result.state.messages[0].author.name).toBe('alice');
+ });
+ });
+
+ describe('Telegram adapter', () => {
+ it('should send a message via Telegram', async () => {
+ mockProviderFor('telegram', { botToken: 'tg-token' });
+ mockTelegramSendMessage.mockResolvedValue({ message_id: 42 });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: '-100123',
+ content: 'Hello Telegram!',
+ platform: 'telegram',
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.state).toMatchObject({
+ channelId: '-100123',
+ messageId: '42',
+ platform: 'telegram',
+ });
+ });
+
+ it('should return error for unsupported readMessages', async () => {
+ mockProviderFor('telegram', { botToken: 'tg-token' });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.readMessages({
+ channelId: '-100123',
+ platform: 'telegram',
+ });
+
+ expect(result.success).toBe(false);
+ expect(result.content).toContain('not supported on Telegram');
+ });
+ });
+
+ describe('Slack adapter', () => {
+ it('should send a message via Slack', async () => {
+ mockProviderFor('slack', { botToken: 'slack-token' });
+ mockSlackPostMessage.mockResolvedValue({ ts: '1234567890.123456' });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: 'C0123456',
+ content: 'Hello Slack!',
+ platform: 'slack',
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.state).toMatchObject({
+ channelId: 'C0123456',
+ messageId: '1234567890.123456',
+ platform: 'slack',
+ });
+ });
+ });
+
+ describe('Feishu adapter', () => {
+ it('should send a message via Feishu', async () => {
+ mockProviderFor('feishu', { appSecret: 'feishu-secret' });
+ mockFeishuSendMessage.mockResolvedValue({ messageId: 'om_feishu_123', raw: {} });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: 'oc_chat_123',
+ content: 'Hello Feishu!',
+ platform: 'feishu',
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.state).toMatchObject({
+ channelId: 'oc_chat_123',
+ messageId: 'om_feishu_123',
+ platform: 'feishu',
+ });
+ });
+ });
+
+ describe('QQ adapter', () => {
+ it('should send a message via QQ', async () => {
+ mockProviderFor('qq', { appSecret: 'qq-secret' });
+ mockQQSendGroupMessage.mockResolvedValue({ id: 'qq-msg-1' });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: 'group:123456',
+ content: 'Hello QQ!',
+ platform: 'qq',
+ });
+
+ expect(result.success).toBe(true);
+ expect(result.state).toMatchObject({
+ channelId: 'group:123456',
+ messageId: 'qq-msg-1',
+ platform: 'qq',
+ });
+ });
+
+ it('should return error for unsupported editMessage', async () => {
+ mockProviderFor('qq', { appSecret: 'qq-secret' });
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.editMessage({
+ channelId: 'group:123',
+ content: 'edit',
+ messageId: 'msg-1',
+ platform: 'qq',
+ });
+
+ expect(result.success).toBe(false);
+ expect(result.content).toContain('not supported on QQ');
+ });
+ });
+
+ describe('dispatcher error handling', () => {
+ it('should return error for unconfigured platform', async () => {
+ mockQuery.mockResolvedValue([]);
+
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: 'ch-1',
+ content: 'test',
+ platform: 'discord',
+ });
+
+ expect(result.success).toBe(false);
+ expect(result.content).toContain('No enabled discord bot provider found');
+ });
+
+ it('should return error for unregistered platform', async () => {
+ const runtime = await messageRuntime.factory(validContext);
+ const result = await runtime.sendMessage({
+ channelId: 'ch-1',
+ content: 'test',
+ platform: 'irc' as any,
+ });
+
+ expect(result.success).toBe(false);
+ expect(result.content).toContain('No message service configured for platform');
+ });
+ });
+});
diff --git a/src/server/services/toolExecution/serverRuntimes/index.ts b/src/server/services/toolExecution/serverRuntimes/index.ts
index 9d086e1a875..12f16d95cc6 100644
--- a/src/server/services/toolExecution/serverRuntimes/index.ts
+++ b/src/server/services/toolExecution/serverRuntimes/index.ts
@@ -15,6 +15,7 @@ import { cloudSandboxRuntime } from './cloudSandbox';
import { credsRuntime } from './creds';
import { localSystemRuntime } from './localSystem';
import { memoryRuntime } from './memory';
+import { messageRuntime } from './message';
import { notebookRuntime } from './notebook';
import { remoteDeviceRuntime } from './remoteDevice';
import { skillsRuntime } from './skills';
@@ -50,6 +51,7 @@ registerRuntimes([
skillsRuntime,
memoryRuntime,
activatorRuntime,
+ messageRuntime,
localSystemRuntime,
remoteDeviceRuntime,
briefRuntime,
diff --git a/src/server/services/toolExecution/serverRuntimes/message/MessageDispatcherService.ts b/src/server/services/toolExecution/serverRuntimes/message/MessageDispatcherService.ts
new file mode 100644
index 00000000000..171a9569532
--- /dev/null
+++ b/src/server/services/toolExecution/serverRuntimes/message/MessageDispatcherService.ts
@@ -0,0 +1,154 @@
+import type {
+ CreatePollParams,
+ CreatePollState,
+ CreateThreadParams,
+ CreateThreadState,
+ DeleteMessageParams,
+ DeleteMessageState,
+ EditMessageParams,
+ EditMessageState,
+ GetChannelInfoParams,
+ GetChannelInfoState,
+ GetMemberInfoParams,
+ GetMemberInfoState,
+ GetReactionsParams,
+ GetReactionsState,
+ ListChannelsParams,
+ ListChannelsState,
+ ListPinsParams,
+ ListPinsState,
+ ListThreadsParams,
+ ListThreadsState,
+ MessageRuntimeService,
+ PinMessageParams,
+ PinMessageState,
+ ReactToMessageParams,
+ ReactToMessageState,
+ ReadMessagesParams,
+ ReadMessagesState,
+ ReplyToThreadParams,
+ ReplyToThreadState,
+ SearchMessagesParams,
+ SearchMessagesState,
+ SendMessageParams,
+ SendMessageState,
+ UnpinMessageParams,
+ UnpinMessageState,
+} from '@lobechat/builtin-tool-message/executionRuntime';
+
+export type AsyncServiceFactory = () => Promise<MessageRuntimeService>;
+
+/**
+ * Routes MessageRuntimeService calls to the appropriate platform service
+ * based on the `platform` field in each method's params.
+ *
+ * Services are lazily created on first use for each platform.
+ */
+export class MessageDispatcherService implements MessageRuntimeService {
+ private services = new Map<string, MessageRuntimeService>();
+ private serviceFactories: Record<string, AsyncServiceFactory>;
+
+ constructor(serviceFactories: Record<string, AsyncServiceFactory>) {
+ this.serviceFactories = serviceFactories;
+ }
+
+ private async getService(platform: string): Promise<MessageRuntimeService> {
+ const cached = this.services.get(platform);
+ if (cached) return cached;
+
+ const factory = this.serviceFactories[platform];
+ if (!factory) {
+ const supported = Object.keys(this.serviceFactories).join(', ');
+ throw new Error(
+ `No message service configured for platform "${platform}". ` +
+ `Supported platforms: ${supported}`,
+ );
+ }
+
+ const service = await factory();
+ this.services.set(platform, service);
+ return service;
+ }
+
+ // ==================== Core Message Operations ====================
+
+ sendMessage = async (params: SendMessageParams): Promise<SendMessageState> => {
+ return (await this.getService(params.platform)).sendMessage(params);
+ };
+
+ readMessages = async (params: ReadMessagesParams): Promise<ReadMessagesState> => {
+ return (await this.getService(params.platform)).readMessages(params);
+ };
+
+ editMessage = async (params: EditMessageParams): Promise<EditMessageState> => {
+ return (await this.getService(params.platform)).editMessage(params);
+ };
+
+ deleteMessage = async (params: DeleteMessageParams): Promise<DeleteMessageState> => {
+ return (await this.getService(params.platform)).deleteMessage(params);
+ };
+
+ searchMessages = async (params: SearchMessagesParams): Promise<SearchMessagesState> => {
+ return (await this.getService(params.platform)).searchMessages(params);
+ };
+
+ // ==================== Reactions ====================
+
+ reactToMessage = async (params: ReactToMessageParams): Promise<ReactToMessageState> => {
+ return (await this.getService(params.platform)).reactToMessage(params);
+ };
+
+ getReactions = async (params: GetReactionsParams): Promise<GetReactionsState> => {
+ return (await this.getService(params.platform)).getReactions(params);
+ };
+
+ // ==================== Pin Management ====================
+
+ pinMessage = async (params: PinMessageParams): Promise<PinMessageState> => {
+ return (await this.getService(params.platform)).pinMessage(params);
+ };
+
+ unpinMessage = async (params: UnpinMessageParams): Promise<UnpinMessageState> => {
+ return (await this.getService(params.platform)).unpinMessage(params);
+ };
+
+ listPins = async (params: ListPinsParams): Promise<ListPinsState> => {
+ return (await this.getService(params.platform)).listPins(params);
+ };
+
+ // ==================== Channel Management ====================
+
+ getChannelInfo = async (params: GetChannelInfoParams): Promise<GetChannelInfoState> => {
+ return (await this.getService(params.platform)).getChannelInfo(params);
+ };
+
+ listChannels = async (params: ListChannelsParams): Promise<ListChannelsState> => {
+ return (await this.getService(params.platform)).listChannels(params);
+ };
+
+ // ==================== Member Information ====================
+
+ getMemberInfo = async (params: GetMemberInfoParams): Promise<GetMemberInfoState> => {
+ return (await this.getService(params.platform)).getMemberInfo(params);
+ };
+
+ // ==================== Thread Operations ====================
+
+ createThread = async (params: CreateThreadParams): Promise<CreateThreadState> => {
+ return (await this.getService(params.platform)).createThread(params);
+ };
+
+ listThreads = async (params: ListThreadsParams): Promise<ListThreadsState> => {
+ return (await this.getService(params.platform)).listThreads(params);
+ };
+
+ replyToThread = async (params: ReplyToThreadParams): Promise<ReplyToThreadState> => {
+ return (await this.getService(params.platform)).replyToThread(params);
+ };
+
+ // ==================== Platform-Specific: Polls ====================
+
+ createPoll = async (params: CreatePollParams): Promise<CreatePollState> => {
+ return (await this.getService(params.platform)).createPoll(params);
+ };
+}
diff --git a/src/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError.ts b/src/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError.ts
new file mode 100644
index 00000000000..ecc34a03cf6
--- /dev/null
+++ b/src/server/services/toolExecution/serverRuntimes/message/PlatformUnsupportedError.ts
@@ -0,0 +1,9 @@
+export class PlatformUnsupportedError extends Error {
+ constructor(platform: string, operation: string) {
+ super(
+ `The "${operation}" operation is not supported on ${platform}. ` +
+ `This is a platform limitation, not a configuration issue.`,
+ );
+ this.name = 'PlatformUnsupportedError';
+ }
+}
diff --git a/src/server/services/toolExecution/serverRuntimes/message/adapters/types.ts b/src/server/services/toolExecution/serverRuntimes/message/adapters/types.ts
new file mode 100644
index 00000000000..30904e8c219
--- /dev/null
+++ b/src/server/services/toolExecution/serverRuntimes/message/adapters/types.ts
@@ -0,0 +1,6 @@
+/**
+ * Re-export MessageRuntimeService as the contract for platform-specific message services.
+ * Each platform service (Discord, Telegram, Slack, etc.) implements this interface.
+ * Unsupported operations should throw PlatformUnsupportedError.
+ */
+export type { MessageRuntimeService } from '@lobechat/builtin-tool-message/executionRuntime';
diff --git a/src/server/services/toolExecution/serverRuntimes/message/index.ts b/src/server/services/toolExecution/serverRuntimes/message/index.ts
new file mode 100644
index 00000000000..d0ca3cd340c
--- /dev/null
+++ b/src/server/services/toolExecution/serverRuntimes/message/index.ts
@@ -0,0 +1,172 @@
+import { MessageToolIdentifier } from '@lobechat/builtin-tool-message';
+import type { BotProviderQuery } from '@lobechat/builtin-tool-message/executionRuntime';
+import { MessageExecutionRuntime } from '@lobechat/builtin-tool-message/executionRuntime';
+import { LarkApiClient } from '@lobechat/chat-adapter-feishu';
+import { QQApiClient } from '@lobechat/chat-adapter-qq';
+import { WechatApiClient } from '@lobechat/chat-adapter-wechat';
+
+import { AgentBotProviderModel } from '@/database/models/agentBotProvider';
+import { KeyVaultsGateKeeper } from '@/server/modules/KeyVaultsEncrypt';
+import { platformRegistry } from '@/server/services/bot/platforms';
+import { DiscordApi } from '@/server/services/bot/platforms/discord/api';
+import { DiscordMessageService } from '@/server/services/bot/platforms/discord/service';
+import { FeishuMessageService } from '@/server/services/bot/platforms/feishu/service';
+import { QQMessageService } from '@/server/services/bot/platforms/qq/service';
+import { SlackApi } from '@/server/services/bot/platforms/slack/api';
+import { SlackMessageService } from '@/server/services/bot/platforms/slack/service';
+import { TelegramApi } from '@/server/services/bot/platforms/telegram/api';
+import { TelegramMessageService } from '@/server/services/bot/platforms/telegram/service';
+import { WechatMessageService } from '@/server/services/bot/platforms/wechat/service';
+import { GatewayService } from '@/server/services/gateway';
+import { getBotRuntimeStatus } from '@/server/services/gateway/runtimeStatus';
+
+import type { ServerRuntimeRegistration } from '../types';
+import { MessageDispatcherService } from './MessageDispatcherService';
+
+/**
+ * Resolves credentials for the given platform from the user's configured bot providers.
+ */
+const resolveCredentials = async (
+ providerModel: AgentBotProviderModel,
+ platform: string,
+): Promise<{ applicationId: string; credentials: Record<string, string> }> => {
+ const providers = await providerModel.query({ platform });
+ const enabled = providers.find((p) => p.enabled);
+ if (!enabled?.credentials) {
+ throw new Error(
+ `No enabled ${platform} bot provider found. ` +
+ `Please configure a ${platform} integration in your bot settings.`,
+ );
+ }
+ return { applicationId: enabled.applicationId, credentials: enabled.credentials };
+};
+
+export const messageRuntime: ServerRuntimeRegistration = {
+ factory: async (context) => {
+ if (!context.serverDB) {
+ throw new Error('serverDB is required for Message tool execution');
+ }
+ if (!context.userId) {
+ throw new Error('userId is required for Message tool execution');
+ }
+
+ const gateKeeper = await KeyVaultsGateKeeper.initWithEnvKey();
+ const providerModel = new AgentBotProviderModel(context.serverDB, context.userId, gateKeeper);
+
+ const service = new MessageDispatcherService({
+ discord: async () => {
+ const { credentials } = await resolveCredentials(providerModel, 'discord');
+ return new DiscordMessageService(new DiscordApi(credentials.botToken));
+ },
+ feishu: async () => {
+ const { applicationId, credentials } = await resolveCredentials(providerModel, 'feishu');
+ return new FeishuMessageService(
+ new LarkApiClient(applicationId, credentials.appSecret, 'feishu'),
+ 'feishu',
+ );
+ },
+ lark: async () => {
+ const { applicationId, credentials } = await resolveCredentials(providerModel, 'lark');
+ return new FeishuMessageService(
+ new LarkApiClient(applicationId, credentials.appSecret, 'lark'),
+ 'lark',
+ );
+ },
+ qq: async () => {
+ const { applicationId, credentials } = await resolveCredentials(providerModel, 'qq');
+ return new QQMessageService(new QQApiClient(applicationId, credentials.appSecret));
+ },
+ slack: async () => {
+ const { credentials } = await resolveCredentials(providerModel, 'slack');
+ return new SlackMessageService(new SlackApi(credentials.botToken));
+ },
+ telegram: async () => {
+ const { credentials } = await resolveCredentials(providerModel, 'telegram');
+ return new TelegramMessageService(new TelegramApi(credentials.botToken));
+ },
+ wechat: async () => {
+ const { applicationId, credentials } = await resolveCredentials(providerModel, 'wechat');
+ return new WechatMessageService(
+ new WechatApiClient(credentials.botToken, credentials.botId),
+ applicationId,
+ );
+ },
+ });
+
+ const botProvider: BotProviderQuery = {
+ connectBot: async (botId) => {
+ const bot = await providerModel.findById(botId);
+ if (!bot) throw new Error(`Bot not found: ${botId}`);
+ const gateway = new GatewayService();
+ const status = await gateway.startClient(bot.platform, bot.applicationId, context.userId!);
+ return { status };
+ },
+ createBot: async (params) => {
+ const result = await providerModel.create(params);
+ return { id: result.id, platform: params.platform };
+ },
+ deleteBot: async (botId) => {
+ await providerModel.delete(botId);
+ },
+ getBotDetail: async (botId) => {
+ const bot = await providerModel.findById(botId);
+ if (!bot) return null;
+ const status = await getBotRuntimeStatus(bot.platform, bot.applicationId);
+ return {
+ applicationId: bot.applicationId,
+ enabled: bot.enabled,
+ id: bot.id,
+ platform: bot.platform,
+ runtimeStatus: status.status,
+ settings: (bot.settings as Record<string, unknown>) ?? undefined,
+ };
+ },
+ listBots: async () => {
+ if (!context.agentId) {
+ throw new Error('agentId is required to list bots');
+ }
+ const providers = await providerModel.findByAgentId(context.agentId);
+
+ const statuses = await Promise.all(
+ providers.map((p) => getBotRuntimeStatus(p.platform, p.applicationId)),
+ );
+ return providers.map((p, i) => ({
+ applicationId: p.applicationId,
+ enabled: p.enabled,
+ id: p.id,
+ serverId: (p.settings as any)?.serverId as string | undefined,
+ userId: (p.settings as any)?.userId as string | undefined,
+ platform: p.platform,
+ runtimeStatus: statuses[i].status,
+ }));
+ },
+ listPlatforms: async () => {
+ return platformRegistry.listSerializedPlatforms().map((p) => {
+ const credSchema = (p.schema ?? []).find(
+ (f: any) => f.key === 'credentials' && f.properties,
+ );
+ const credFields = (credSchema as any)?.properties ?? [];
+ return {
+ credentialFields: credFields.map((f: any) => ({
+ key: f.key,
+ label: f.label ?? f.key,
+ required: !!f.required,
+ type: f.type ?? 'string',
+ })),
+ id: p.id,
+ name: p.name,
+ };
+ });
+ },
+ toggleBot: async (botId, enabled) => {
+ await providerModel.update(botId, { enabled });
+ },
+ updateBot: async (botId, params) => {
+ await providerModel.update(botId, params);
+ },
+ };
+
+ return new MessageExecutionRuntime({ botProvider, service });
+ },
+ identifier: MessageToolIdentifier,
+};
diff --git a/src/services/agentBotProvider.ts b/src/services/agentBotProvider.ts
index dc005ea3528..04732735abf 100644
--- a/src/services/agentBotProvider.ts
+++ b/src/services/agentBotProvider.ts
@@ -11,10 +11,6 @@ class AgentBotProviderService {
return lambdaClient.agentBotProvider.getByAgentId.query({ agentId });
};
- listRuntimeStatuses = async (agentId: string): Promise<BotRuntimeStatusSnapshot[]> => {
- return lambdaClient.agentBotProvider.listRuntimeStatuses.query({ agentId });
- };
-
getRuntimeStatus = async (params: {
applicationId: string;
platform: string;
diff --git a/src/store/agent/slices/bot/action.ts b/src/store/agent/slices/bot/action.ts
index 96ef5021f85..4d7b537c11b 100644
--- a/src/store/agent/slices/bot/action.ts
+++ b/src/store/agent/slices/bot/action.ts
@@ -5,15 +5,10 @@ import type { SerializedPlatformDefinition } from '@/server/services/bot/platfor
import { agentBotProviderService } from '@/services/agentBotProvider';
import { type StoreSetter } from '@/store/types';
-import {
- BOT_RUNTIME_STATUSES,
- type BotRuntimeStatusSnapshot,
-} from '../../../../types/botRuntimeStatus';
import { type AgentStore } from '../../store';
const FETCH_BOT_PROVIDERS_KEY = 'agentBotProviders';
const FETCH_PLATFORM_DEFINITIONS_KEY = 'platformDefinitions';
-const FETCH_BOT_RUNTIME_STATUSES_KEY = 'agentBotRuntimeStatuses';
export interface BotProviderItem {
applicationId: string;
@@ -47,14 +42,13 @@ export class BotSliceActionImpl {
}) => {
const result = await agentBotProviderService.create(params);
await this.internal_refreshBotProviders(params.agentId);
- await this.internal_refreshBotRuntimeStatuses(params.agentId);
return result;
};
connectBot = async (params: { agentId?: string; applicationId: string; platform: string }) => {
const { agentId, ...runtimeParams } = params;
const result = await agentBotProviderService.connectBot(runtimeParams);
- await this.internal_refreshBotRuntimeStatuses(agentId);
+ await this.internal_refreshBotProviders(agentId);
return result;
};
@@ -66,13 +60,11 @@ export class BotSliceActionImpl {
const providers = await agentBotProviderService.getByAgentId(agentId);
await Promise.all(providers.map((p) => agentBotProviderService.delete(p.id)));
await this.internal_refreshBotProviders(agentId);
- await this.internal_refreshBotRuntimeStatuses(agentId);
};
deleteBotProvider = async (id: string, agentId: string) => {
await agentBotProviderService.delete(id);
await this.internal_refreshBotProviders(agentId);
- await this.internal_refreshBotRuntimeStatuses(agentId);
};
internal_refreshBotProviders = async (agentId?: string) => {
@@ -81,12 +73,6 @@ export class BotSliceActionImpl {
await mutate([FETCH_BOT_PROVIDERS_KEY, id]);
};
- internal_refreshBotRuntimeStatuses = async (agentId?: string) => {
- const id = agentId || this.#get().activeAgentId;
- if (!id) return;
- await mutate([FETCH_BOT_RUNTIME_STATUSES_KEY, id]);
- };
-
updateBotProvider = async (
id: string,
agentId: string,
@@ -99,7 +85,6 @@ export class BotSliceActionImpl {
) => {
await agentBotProviderService.update(id, params);
await this.internal_refreshBotProviders(agentId);
- await this.internal_refreshBotRuntimeStatuses(agentId);
};
useFetchBotProviders = (agentId?: string): SWRResponse<BotProviderItem[]> => {
@@ -110,26 +95,6 @@ export class BotSliceActionImpl {
);
};
- useFetchBotRuntimeStatuses = (agentId?: string): SWRResponse<BotRuntimeStatusSnapshot[]> => {
- return useClientDataSWR<BotRuntimeStatusSnapshot[]>(
- agentId ? [FETCH_BOT_RUNTIME_STATUSES_KEY, agentId] : null,
- async ([, id]: [string, string]) => agentBotProviderService.listRuntimeStatuses(id),
- {
- fallbackData: [],
- refreshInterval: (data?: BotRuntimeStatusSnapshot[]) => {
- const hasPendingRuntime =
- data?.some(
- (item) =>
- item.status === BOT_RUNTIME_STATUSES.queued ||
- item.status === BOT_RUNTIME_STATUSES.starting,
- ) ?? false;
- return hasPendingRuntime ? 2000 : 0;
- },
- revalidateOnFocus: false,
- },
- );
- };
-
useFetchPlatformDefinitions = (): SWRResponse<SerializedPlatformDefinition[]> => {
return useClientDataSWR<SerializedPlatformDefinition[]>(
FETCH_PLATFORM_DEFINITIONS_KEY,
diff --git a/src/store/tool/slices/builtin/executors/index.ts b/src/store/tool/slices/builtin/executors/index.ts
index efaf92397c1..1481ec06746 100644
--- a/src/store/tool/slices/builtin/executors/index.ts
+++ b/src/store/tool/slices/builtin/executors/index.ts
@@ -20,6 +20,7 @@ import { topicReferenceExecutor } from '@lobechat/builtin-tool-topic-reference/e
import type { BuiltinToolContext, BuiltinToolResult, IBuiltinToolExecutor } from '../types';
import { activatorExecutor } from './lobe-activator';
import { agentDocumentsExecutor } from './lobe-agent-documents';
+import { messageExecutor } from './lobe-message';
import { notebookExecutor } from './lobe-notebook';
import { pageAgentExecutor } from './lobe-page-agent';
import { skillStoreExecutor } from './lobe-skill-store';
@@ -142,6 +143,7 @@ registerExecutors([
knowledgeBaseExecutor,
localSystemExecutor,
memoryExecutor,
+ messageExecutor,
notebookExecutor,
pageAgentExecutor,
skillStoreExecutor,
diff --git a/src/store/tool/slices/builtin/executors/lobe-message.ts b/src/store/tool/slices/builtin/executors/lobe-message.ts
new file mode 100644
index 00000000000..f48093b3418
--- /dev/null
+++ b/src/store/tool/slices/builtin/executors/lobe-message.ts
@@ -0,0 +1,328 @@
+/**
+ * Lobe Message Executor
+ *
+ * Frontend executor for the Message builtin tool.
+ * Delegates all operations to the server via TRPC since they require
+ * database access (bot credentials, platform adapters).
+ */
+import { MessageApiName, MessageToolIdentifier } from '@lobechat/builtin-tool-message';
+import type { BuiltinToolContext, BuiltinToolResult } from '@lobechat/types';
+import { BaseExecutor } from '@lobechat/types';
+
+import { lambdaClient } from '@/libs/trpc/client';
+import { agentBotProviderService } from '@/services/agentBotProvider';
+
+class MessageExecutor extends BaseExecutor<typeof MessageApiName> {
+ readonly identifier = MessageToolIdentifier;
+ protected readonly apiEnum = MessageApiName;
+
+ // ==================== Bot Management ====================
+
+ listPlatforms = async (_params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ try {
+ const platforms = await agentBotProviderService.listPlatforms();
+ const items = (platforms as any[]).map((p: any) => {
+ const credSchema = (p.schema ?? []).find(
+ (f: any) => f.key === 'credentials' && f.properties,
+ );
+ const fields = (credSchema?.properties ?? []) as any[];
+ const reqFields = fields
+ .filter((f: any) => f.required)
+ .map((f: any) => f.key)
+ .join(', ');
+ return `- **${p.name}** (${p.id})${reqFields ? ` — requires: ${reqFields}` : ''}`;
+ });
+
+ return {
+ content: `${(platforms as any[]).length} supported platform(s):\n${items.join('\n')}`,
+ state: { platforms },
+ success: true,
+ };
+ } catch (e) {
+ return { content: `listPlatforms error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ listBots = async (_params: any, ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ try {
+ const agentId = ctx.agentId;
+ if (!agentId) {
+ return { content: 'agentId is required to list bots', success: false };
+ }
+
+ const bots = await agentBotProviderService.getByAgentId(agentId);
+ const items = (bots as any[]).map((b: any) => {
+ const parts = [
+ `platform: ${b.platform}`,
+ `botId: ${b.id}`,
+ `enabled: ${b.enabled}`,
+ `status: ${b.runtimeStatus ?? 'unknown'}`,
+ ];
+ if (b.settings?.serverId) {
+ parts.push(`serverId: ${b.settings.serverId}`);
+ }
+ if (b.settings?.userId) {
+ parts.push(`userId: ${b.settings.userId}`);
+ }
+ return `- ${b.platform} (${parts.join(', ')})`;
+ });
+
+ return {
+ content:
+ (bots as any[]).length > 0
+ ? `${(bots as any[]).length} configured bot(s):\n${items.join('\n')}`
+ : 'No bots configured for this agent. Set up a bot integration first.',
+ state: { bots },
+ success: true,
+ };
+ } catch (e) {
+ return { content: `listBots error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ getBotDetail = async (
+ params: { botId: string },
+ _ctx: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ try {
+ const bots = await lambdaClient.agentBotProvider.list.query();
+ const bot = (bots as any[]).find((b: any) => b.id === params.botId);
+ if (!bot) {
+ return { content: `Bot not found: ${params.botId}`, success: false };
+ }
+ return {
+ content: `Bot ${bot.id}:\n- Platform: ${bot.platform}\n- App ID: ${bot.applicationId}\n- Enabled: ${bot.enabled}\n- Status: ${bot.runtimeStatus ?? 'unknown'}`,
+ state: bot,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `getBotDetail error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ createBot = async (
+ params: {
+ agentId: string;
+ applicationId: string;
+ credentials: Record<string, string>;
+ platform: string;
+ },
+ _ctx: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ try {
+ const result = await agentBotProviderService.create(params);
+ return {
+ content: `Created ${params.platform} bot (id: ${(result as any).id})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `createBot error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ updateBot = async (
+ params: {
+ botId: string;
+ credentials?: Record<string, string>;
+ settings?: Record<string, unknown>;
+ },
+ _ctx: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ try {
+ await agentBotProviderService.update(params.botId, {
+ credentials: params.credentials,
+ settings: params.settings,
+ });
+ return { content: `Updated bot ${params.botId}`, state: { success: true }, success: true };
+ } catch (e) {
+ return { content: `updateBot error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ deleteBot = async (
+ params: { botId: string },
+ _ctx: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ try {
+ await agentBotProviderService.delete(params.botId);
+ return { content: `Deleted bot ${params.botId}`, state: { success: true }, success: true };
+ } catch (e) {
+ return { content: `deleteBot error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ toggleBot = async (
+ params: { botId: string; enabled: boolean },
+ _ctx: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ try {
+ await agentBotProviderService.update(params.botId, { enabled: params.enabled });
+ return {
+ content: `Bot ${params.botId} ${params.enabled ? 'enabled' : 'disabled'}`,
+ state: { enabled: params.enabled, success: true },
+ success: true,
+ };
+ } catch (e) {
+ return { content: `toggleBot error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ connectBot = async (
+ params: { botId: string },
+ _ctx: BuiltinToolContext,
+ ): Promise<BuiltinToolResult> => {
+ try {
+ // Look up bot to get platform + applicationId
+ const bots = await lambdaClient.agentBotProvider.list.query();
+ const bot = (bots as any[]).find((b: any) => b.id === params.botId);
+ if (!bot) {
+ return { content: `Bot not found: ${params.botId}`, success: false };
+ }
+
+ const result = await agentBotProviderService.connectBot({
+ applicationId: bot.applicationId,
+ platform: bot.platform,
+ });
+ return {
+ content: `Bot connection initiated (status: ${result.status})`,
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `connectBot error: ${(e as Error).message}`, success: false };
+ }
+ };
+
+ // ==================== Direct Messaging ====================
+
+ sendDirectMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('sendDirectMessage', params);
+ };
+
+ // ==================== Message Operations ====================
+ // All message operations go through the botMessage TRPC router
+
+ sendMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('sendMessage', params);
+ };
+
+ readMessages = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('readMessages', params, 'query');
+ };
+
+ editMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('editMessage', params);
+ };
+
+ deleteMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('deleteMessage', params);
+ };
+
+ searchMessages = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('searchMessages', params, 'query');
+ };
+
+ reactToMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('reactToMessage', params);
+ };
+
+ getReactions = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('getReactions', params, 'query');
+ };
+
+ pinMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('pinMessage', params);
+ };
+
+ unpinMessage = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('unpinMessage', params);
+ };
+
+ listPins = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('listPins', params, 'query');
+ };
+
+ getChannelInfo = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('getChannelInfo', params, 'query');
+ };
+
+ listChannels = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('listChannels', params, 'query');
+ };
+
+ getMemberInfo = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('getMemberInfo', params, 'query');
+ };
+
+ createThread = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('createThread', params);
+ };
+
+ listThreads = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('listThreads', params, 'query');
+ };
+
+ replyToThread = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('replyToThread', params);
+ };
+
+ createPoll = async (params: any, _ctx: BuiltinToolContext): Promise<BuiltinToolResult> => {
+ return this._callBotMessage('createPoll', params);
+ };
+
+ // ==================== Internal Helper ====================
+
+ /**
+ * Route a message operation to the botMessage TRPC router.
+ * The AI provides `platform` + `channelId`, but the TRPC router needs `botId`.
+ * We resolve the botId by looking up the bot for the given platform.
+ */
+ private _callBotMessage = async (
+ apiName: string,
+ params: any,
+ method: 'mutate' | 'query' = 'mutate',
+ ): Promise<BuiltinToolResult> => {
+ try {
+ let botId = params.botId as string | undefined;
+
+ // Resolve botId from platform if not provided
+ if (!botId && params.platform) {
+ const bots = await lambdaClient.agentBotProvider.list.query();
+ const bot = (bots as any[]).find((b: any) => b.platform === params.platform && b.enabled);
+ if (!bot) {
+ return {
+ content: `No enabled bot found for platform "${params.platform}". Configure one first.`,
+ success: false,
+ };
+ }
+ botId = bot.id;
+ }
+
+ if (!botId) {
+ return { content: 'botId or platform is required', success: false };
+ }
+
+ const router = lambdaClient.botMessage as any;
+ const procedure = router[apiName];
+ if (!procedure) {
+ return { content: `Unknown message API: ${apiName}`, success: false };
+ }
+
+ const { botId: _, platform: __, ...rest } = params;
+ const input = { botId, ...rest };
+ const result =
+ method === 'query' ? await procedure.query(input) : await procedure.mutate(input);
+
+ return {
+ content: JSON.stringify(result),
+ state: result,
+ success: true,
+ };
+ } catch (e) {
+ return { content: `${apiName} error: ${(e as Error).message}`, success: false };
+ }
+ };
+}
+
+export const messageExecutor = new MessageExecutor();
diff --git a/vite.config.ts b/vite.config.ts
index 3085c7a81a8..48f89e0f2eb 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -25,6 +25,7 @@ export default defineConfig({
base: isDev ? '/' : process.env.VITE_CDN_BASE || '/_spa/',
build: {
outDir: isMobile ? 'dist/mobile' : 'dist/desktop',
+ reportCompressedSize: false,
rollupOptions: {
input: resolve(__dirname, isMobile ? 'index.mobile.html' : 'index.html'),
output: sharedRollupOutput,