🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
✨ feat: workspace device visibility, device sharing and per-user agent device preference (#17037)
Rdmclin22a5d3babc933
diff --git a/apps/cli/src/commands/connect.test.ts b/apps/cli/src/commands/connect.test.tsindex ecf0145eeeb..2142c25e02d 100644--- a/apps/cli/src/commands/connect.test.ts+++ b/apps/cli/src/commands/connect.test.ts@@ -15,9 +15,13 @@ vi.mock('../auth/resolveToken', () => ({}),}));vi.mock('../settings', () => ({+ addWorkspaceEnrollment: vi.fn(),loadOrCreateConnectionId: vi.fn().mockReturnValue('test-connection-id'),loadSettings: vi.fn().mockReturnValue(null),+ // Default: no persisted workspace shares, so runConnect skips the restore path.+ loadWorkspaceEnrollments: vi.fn().mockReturnValue([]),normalizeUrl: vi.fn((url?: string) => (url ? url.replace(/\/$/, '') : undefined)),+ removeWorkspaceEnrollment: vi.fn(),saveSettings: vi.fn(),}));diff --git a/apps/cli/src/commands/connect.ts b/apps/cli/src/commands/connect.tsindex ef9b527fc3e..b3b3f1a9189 100644--- a/apps/cli/src/commands/connect.ts+++ b/apps/cli/src/commands/connect.ts@@ -19,6 +19,7 @@ import type {import { GatewayClient } from '@lobechat/device-gateway-client';import type { Command } from 'commander';+import { createLambdaClient } from '../api/client';import { resolveToken } from '../auth/resolveToken';import { CLI_API_KEY_ENV } from '../constants/auth';import { OFFICIAL_GATEWAY_URL } from '../constants/urls';@@ -49,7 +50,15 @@ import {stopConnectService,uninstallConnectService,} from '../service/connect';-import { loadOrCreateConnectionId, loadSettings, normalizeUrl, saveSettings } from '../settings';+import {+ addWorkspaceEnrollment,+ loadOrCreateConnectionId,+ loadSettings,+ loadWorkspaceEnrollments,+ normalizeUrl,+ removeWorkspaceEnrollment,+ saveSettings,+} from '../settings';import { executeToolCall } from '../tools';import { cleanupAllProcesses } from '../tools/shell';import { log, setVerbose } from '../utils/logger';@@ -61,6 +70,8 @@ interface ConnectOptions {daemonChild?: boolean;deviceId?: string;gateway?: string;+ /** With --workspace: enroll into the shared pool visible to every member (default: private). */+ public?: boolean;serviceChild?: boolean;token?: string;verbose?: boolean;@@ -76,6 +87,10 @@ export function registerConnectCommand(program: Command) {.option('--gateway <url>', 'Device gateway URL').option('--device-id <id>', 'Device ID (auto-generated if not provided)').option('--workspace <id>', 'Enroll as a device of this workspace (admin only)')+ .option(+ '--public',+ 'With --workspace: enroll into the shared pool visible to every member (default: private, visible only to you)',+ ).option('-v, --verbose', 'Enable verbose logging').option('-d, --daemon', 'Run as a background daemon process').option('--daemon-child', 'Internal: runs as the daemon child process')@@ -183,23 +198,32 @@ export function registerConnectCommand(program: Command) {else log.warn('No connect service is installed.');});- serviceCmd.command('start').description('Start the installed connect service').action(() => {- const started = startConnectService();- if (started) log.info(`Started ${CONNECT_SERVICE_NAME}.`);- else log.warn('No connect service is installed.');- });+ serviceCmd+ .command('start')+ .description('Start the installed connect service')+ .action(() => {+ const started = startConnectService();+ if (started) log.info(`Started ${CONNECT_SERVICE_NAME}.`);+ else log.warn('No connect service is installed.');+ });- serviceCmd.command('stop').description('Stop the installed connect service').action(() => {- const stopped = stopConnectService();- if (stopped) log.info(`Stopped ${CONNECT_SERVICE_NAME}.`);- else log.warn('No connect service is installed.');- });+ serviceCmd+ .command('stop')+ .description('Stop the installed connect service')+ .action(() => {+ const stopped = stopConnectService();+ if (stopped) log.info(`Stopped ${CONNECT_SERVICE_NAME}.`);+ else log.warn('No connect service is installed.');+ });- serviceCmd.command('restart').description('Restart the installed connect service').action(() => {- const restarted = restartConnectService();- if (restarted) log.info(`Restarted ${CONNECT_SERVICE_NAME}.`);- else log.warn('No connect service is installed.');- });+ serviceCmd+ .command('restart')+ .description('Restart the installed connect service')+ .action(() => {+ const restarted = restartConnectService();+ if (restarted) log.info(`Restarted ${CONNECT_SERVICE_NAME}.`);+ else log.warn('No connect service is installed.');+ });serviceCmd.command('status')@@ -277,6 +301,7 @@ function buildDaemonArgs(options: ConnectOptions): string[] {if (options.gateway) args.push('--gateway', options.gateway);if (options.deviceId) args.push('--device-id', options.deviceId);if (options.workspace) args.push('--workspace', options.workspace);+ if (options.public) args.push('--public');if (options.verbose) args.push('--verbose');return args;@@ -312,7 +337,7 @@ async function runConnect(options: ConnectOptions, isDaemonChild: boolean) {// user pin a VM to a fixed identity); otherwise derive from the machine id so// the same machine maps to one device across reconnects.const identity = workspaceId- ? resolveWorkspaceDeviceIdentity(workspaceId, options.deviceId)+ ? resolveWorkspaceDeviceIdentity(workspaceId, options.deviceId, loadOrCreateConnectionId()): resolveDeviceIdentity(auth.userId, options.deviceId);// The token the gateway socket authenticates with. Re-minted on refresh for@@ -390,107 +415,30 @@ async function runConnect(options: ConnectOptions, isDaemonChild: boolean) {const startedAt = new Date();updateStatus('connecting');- // Handle system info requests- client.on('system_info_request', (request: SystemInfoRequestMessage) => {- info(`Received system_info_request: requestId=${request.requestId}`);- const systemInfo = collectSystemInfo();- client.sendSystemInfoResponse({- requestId: request.requestId,- result: { success: true, systemInfo },- });- });-- // Handle tool call requests- client.on('tool_call_request', async (request: ToolCallRequestMessage) => {- const { operationId, requestId, timeout, toolCall } = request;- if (isDaemonChild) {- appendLog(- `[TOOL] ${toolCall.apiName}${operationId ? ` op=${operationId}` : ''} (${requestId})`,- );- } else {- log.toolCall(toolCall.apiName, requestId, toolCall.arguments, operationId);- }-- const result = await executeToolCall(toolCall.apiName, toolCall.arguments, timeout);-- if (isDaemonChild) {- appendLog(- `[RESULT] ${result.success ? 'OK' : 'FAIL'}${operationId ? ` op=${operationId}` : ''} (${requestId})`,- );- } else {- log.toolResult(requestId, result.success, result.content, operationId);- }-- client.sendToolCallResponse({- requestId,- result: {- content: result.content,- error: result.error,- state: result.state,- success: result.success,- },- });- });-- // Handle generic server-internal device RPCs (git / workspace / file ops).- // Shares the `@lobechat/device-control` dispatcher with the desktop app so the- // CLI exposes the same remote-device control surface. File preview / index use- // the package's portable defaults (no preview-protocol approval on the CLI).+ // Platform handlers for the shared `@lobechat/device-control` dispatcher.+ // File preview / index use the package's portable defaults (no+ // preview-protocol approval on the CLI). Deliberately mutable: the+ // mode-specific `enrollWorkspace` / `unenrollWorkspace` handlers are attached+ // further below once the workspace-share machinery is in scope — every bound+ // connection reads this object by reference, so late attachment is safe.const deviceControlDeps: DeviceControlDeps = {getLocalFilePreview: defaultGetLocalFilePreview,getProjectFileIndex: defaultGetProjectFileIndex,searchProjectFiles: defaultSearchProjectFiles,};- client.on('rpc_request', async (request: RpcRequestMessage) => {- const { method, params, requestId } = request;- if (isDaemonChild) appendLog(`[RPC] ${method} (${requestId})`);- else info(`Received rpc_request: method=${method} (${requestId})`);+ const handlerContext: GatewayHandlerContext = {+ deps: deviceControlDeps,+ error,+ // Read at dispatch time — `auth` may be refreshed mid-session.+ getServerUrl: () => auth.serverUrl,+ info,+ isDaemonChild,+ };- try {- const data = await executeDeviceRpc(method, params, deviceControlDeps);- client.sendRpcResponse({ requestId, result: { data, success: true } });- } catch (err) {- const message = err instanceof Error ? err.message : String(err);- if (isDaemonChild) appendLog(`[RPC ERROR] ${method}: ${message} (${requestId})`);- else error(`rpc_request method=${method} failed: ${message}`);- client.sendRpcResponse({ requestId, result: { error: message, success: false } });- }- });-- // Handle gateway-dispatched agent runs (heterogeneous agents, e.g. Claude- // Code). Mirrors the desktop app: spawn `lh hetero exec`, which owns the full- // execution + server-ingest pipeline. Ack with the spawn outcome — `accepted`- // once the child starts, `rejected` if it fails to spawn (e.g. bad cwd) — so- // a failed dispatch surfaces as an error instead of a stuck assistant message.- client.on('agent_run_request', async (request: AgentRunRequestMessage) => {- info(- `Received agent_run_request: operationId=${request.operationId} type=${request.agentType}`,- );- try {- const ack = await spawnHeteroAgentRun(- {- agentType: request.agentType,- args: request.args,- cwd: request.cwd,- imageList: request.imageList,- jwt: request.jwt,- operationId: request.operationId,- prompt: request.prompt,- resumeSessionId: request.resumeSessionId,- serverUrl: auth.serverUrl,- systemContext: request.systemContext,- topicId: request.topicId,- },- { error, info },- );- client.sendAgentRunAck({ operationId: request.operationId, ...ack });- } catch (err) {- const reason = err instanceof Error ? err.message : String(err);- error(`agent_run_request failed: ${reason}`);- client.sendAgentRunAck({ operationId: request.operationId, reason, status: 'rejected' });- }- });+ // Request handlers (system info / tool calls / device RPCs / agent runs) —+ // shared with the workspace-share connections opened via `enrollWorkspace`.+ bindGatewayClientHandlers(client, handlerContext);client.on('connected', () => {updateStatus('connected');@@ -504,6 +452,194 @@ async function runConnect(options: ConnectOptions, isDaemonChild: boolean) {updateStatus('reconnecting');});+ // ─── Workspace share connections (personal mode) ───+ //+ // The server shares this personal device into a workspace by sending an+ // `enrollWorkspace` RPC over the PERSONAL connection. The process then keeps a+ // second gateway connection per shared workspace, authenticated with a minted+ // workspace-device connect token and identified by the workspace-derived+ // deviceId — so the machine is simultaneously reachable as a personal device+ // and as a device of each shared workspace.++ interface WorkspaceShareConnection {+ cancelRefresh: (() => void) | null;+ client: GatewayClient;+ }++ const workspaceConnections = new Map<string, WorkspaceShareConnection>();++ const closeWorkspaceConnection = (wsId: string) => {+ const entry = workspaceConnections.get(wsId);+ if (!entry) return;+ workspaceConnections.delete(wsId);+ entry.cancelRefresh?.();+ entry.client.disconnect();+ };++ const openWorkspaceConnection = async (wsId: string, initialToken: string) => {+ // Re-enroll replaces the previous share connection instead of stacking one.+ closeWorkspaceConnection(wsId);++ // Same derivation as `lh connect --workspace` so the enroll RPC and a manual+ // workspace enrollment on this machine resolve to one workspace device.+ const wsIdentity = resolveWorkspaceDeviceIdentity(wsId, undefined, loadOrCreateConnectionId());++ const wsClient = new GatewayClient({+ channel,+ connectionId: loadOrCreateConnectionId(),+ deviceId: wsIdentity.deviceId,+ gatewayUrl: resolvedGatewayUrl,+ logger: isDaemonChild ? createDaemonLogger() : log,+ serverUrl: auth.serverUrl,+ token: initialToken,+ tokenType: 'jwt',+ userId: undefined,+ workspaceId: wsId,+ });++ bindGatewayClientHandlers(wsClient, handlerContext);++ const entry: WorkspaceShareConnection = { cancelRefresh: null, client: wsClient };++ // The connect token is short-lived; the current user is the enroller, so+ // they hold the permission to re-mint it for as long as the share exists.+ let liveToken = initialToken;+ const remintToken = async (): Promise<string> => {+ const minted = await mintWorkspaceConnectToken(auth, wsId);+ liveToken = minted.token;+ return minted.token;+ };++ const startRefresh = (): (() => void) | null =>+ scheduleProactiveRefresh(+ liveToken,+ 'jwt',+ async () => {+ const newToken = await remintToken();+ wsClient.updateToken(newToken);+ entry.cancelRefresh = startRefresh();+ return newToken;+ },+ info,+ error,+ );+ entry.cancelRefresh = startRefresh();++ wsClient.on('auth_expired', async () => {+ info(`Workspace ${wsId} connect token expired. Re-minting...`);+ try {+ const newToken = await remintToken();+ wsClient.updateToken(newToken);+ entry.cancelRefresh?.();+ entry.cancelRefresh = startRefresh();+ await wsClient.reconnect();+ return;+ } catch {+ // fall through — likely the share (or membership) was revoked+ }+ error(`Could not refresh workspace ${wsId} connect token. Closing share connection.`);+ closeWorkspaceConnection(wsId);+ });++ wsClient.on('auth_failed', (reason) => {+ // Only this share connection is affected — never exit the personal process.+ error(`Workspace ${wsId} authentication failed: ${reason}. Closing share connection.`);+ closeWorkspaceConnection(wsId);+ });++ wsClient.on('error', (err) => {+ error(`Workspace ${wsId} connection error: ${err.message}`);+ });++ workspaceConnections.set(wsId, entry);+ await wsClient.connect();+ return wsIdentity;+ };++ if (workspaceId) {+ // Workspace-mode process (`lh connect --workspace <id>`): an unenroll for+ // our own workspace means the server revoked this enrollment — ack, then+ // exit gracefully so a daemon stops reconnecting as a ghost device.+ deviceControlDeps.unenrollWorkspace = async (params) => {+ if (params.workspaceId !== workspaceId) {+ throw new Error(+ `This connection is enrolled to workspace ${workspaceId}, not ${params.workspaceId}`,+ );+ }+ info('Workspace enrollment was revoked by the server. Shutting down...');+ // Delay the teardown so the RPC response flushes before the socket closes.+ setTimeout(() => {+ cleanup();+ process.exit(0);+ }, 500);+ return { success: true };+ };+ } else {+ deviceControlDeps.enrollWorkspace = async ({+ identityOnly,+ token: wsToken,+ workspaceId: wsId,+ }) => {+ // Dry-run probe: hand the server our derived identity so it can detect+ // an existing enrollment (and ask for overwrite confirmation) without+ // this machine opening or persisting anything.+ if (identityOnly)+ return resolveWorkspaceDeviceIdentity(wsId, undefined, loadOrCreateConnectionId());+ const wsIdentity = await openWorkspaceConnection(wsId, wsToken);+ // Persist so a restart re-opens the share connection without the server+ // having to re-share. The server registers the device row itself from+ // the identity we return.+ addWorkspaceEnrollment(wsId);+ info(`Enrolled into workspace ${wsId} as device ${wsIdentity.deviceId}`);+ return wsIdentity;+ };++ // The revoke instruction may arrive on the workspace connection (preferred)+ // or on the personal one — both bind the same deps, so either path lands here.+ deviceControlDeps.unenrollWorkspace = async ({ workspaceId: wsId }) => {+ closeWorkspaceConnection(wsId);+ removeWorkspaceEnrollment(wsId);+ info(`Unenrolled from workspace ${wsId}`);+ return { success: true };+ };+ }++ /**+ * Re-open share connections persisted by a previous run. Before reconnecting,+ * confirm our derived workspace deviceId still has a registered row — the+ * share may have been revoked while this device was offline (the server can't+ * deliver `unenrollWorkspace` to a dead socket), and reconnecting anyway would+ * resurrect the device as a ghost in the workspace pool.+ */+ const restoreWorkspaceEnrollments = async () => {+ for (const wsId of loadWorkspaceEnrollments()) {+ try {+ const wsIdentity = resolveWorkspaceDeviceIdentity(+ wsId,+ undefined,+ loadOrCreateConnectionId(),+ );+ const trpc = createLambdaClient(auth, wsId);+ const devices = await trpc.device.listDevices.query();+ const stillEnrolled = devices.some(+ (d) => d.deviceId === wsIdentity.deviceId && d.registered,+ );+ if (!stillEnrolled) {+ info(`Workspace share ${wsId} was revoked while offline. Clearing local enrollment.`);+ removeWorkspaceEnrollment(wsId);+ continue;+ }+ const minted = await mintWorkspaceConnectToken(auth, wsId);+ await openWorkspaceConnection(wsId, minted.token);+ info(`Restored workspace share connection: ${wsId}`);+ } catch (err) {+ // Non-fatal (e.g. transient network error): keep the record and retry on+ // the next startup rather than silently dropping the share.+ error(`Failed to restore workspace share ${wsId}: ${(err as Error).message}`);+ }+ }+ };+// Proactive token refresh — schedule before the connect token expires. For a// workspace device `refreshConnectToken` re-mints the workspace token; for a// personal device it refreshes the user token. Scheduling watches the actual@@ -593,6 +729,9 @@ async function runConnect(options: ConnectOptions, isDaemonChild: boolean) {info('Shutting down...');cancelRefreshTimer?.();cleanupAllProcesses();+ // Close share connections but keep the persisted enrollments — the next+ // startup restores them (or clears them if revoked meanwhile).+ for (const wsId of workspaceConnections.keys()) closeWorkspaceConnection(wsId);client.disconnect();removeStatus();if (isDaemonChild) {@@ -619,15 +758,152 @@ async function runConnect(options: ConnectOptions, isDaemonChild: boolean) {try {// Reuse the already-resolved auth (respects `--token` mode) so we don't// re-discover creds and exit when none are found.- if (workspaceId) await registerWorkspaceDevice(auth, identity, workspaceId);+ if (workspaceId)+ await registerWorkspaceDevice(+ auth,+ identity,+ workspaceId,+ options.public ? 'public' : undefined,+ );else await registerDevice(auth, identity);} catch (err) {+ // Workspace-mode registration is AUTHORITATIVE, not best-effort: the+ // `devices` row is what carries the (default-private) visibility marker+ // that hides this machine from other members. Connecting without it —+ // whether the server refused the id (another member's PRIVATE+ // enrollment → CONFLICT) or the write simply failed transiently — would+ // join the workspace pool as an unregistered transient that everyone+ // can see, so abort before connecting.+ if (workspaceId) {+ error(`Workspace device registration failed: ${(err as Error).message}`);+ cleanup();+ process.exit(1);+ }error(`Device registration failed (non-fatal): ${(err as Error).message}`);}}// Connectawait client.connect();++ // Personal mode: re-open any workspace share connections from a previous run.+ // Best-effort after the main connection — a failed restore never blocks it.+ if (!workspaceId) void restoreWorkspaceEnrollments();+}++/** Everything a gateway connection's request handlers need from the host process. */+interface GatewayHandlerContext {+ deps: DeviceControlDeps;+ error: (msg: string) => void;+ /** Read at dispatch time — the underlying auth may be refreshed mid-session. */+ getServerUrl: () => string;+ info: (msg: string) => void;+ isDaemonChild: boolean;+}++/**+ * Bind the request handlers shared by every gateway connection this process+ * owns — the personal connection and any workspace-share connections opened via+ * the `enrollWorkspace` RPC — so a workspace principal exposes exactly the same+ * tool / RPC / agent-run surface as the personal one.+ */+function bindGatewayClientHandlers(client: GatewayClient, ctx: GatewayHandlerContext) {+ const { deps, error, getServerUrl, info, isDaemonChild } = ctx;++ // Handle system info requests+ client.on('system_info_request', (request: SystemInfoRequestMessage) => {+ info(`Received system_info_request: requestId=${request.requestId}`);+ const systemInfo = collectSystemInfo();+ client.sendSystemInfoResponse({+ requestId: request.requestId,+ result: { success: true, systemInfo },+ });+ });++ // Handle tool call requests+ client.on('tool_call_request', async (request: ToolCallRequestMessage) => {+ const { operationId, requestId, timeout, toolCall } = request;+ if (isDaemonChild) {+ appendLog(+ `[TOOL] ${toolCall.apiName}${operationId ? ` op=${operationId}` : ''} (${requestId})`,+ );+ } else {+ log.toolCall(toolCall.apiName, requestId, toolCall.arguments, operationId);+ }++ const result = await executeToolCall(toolCall.apiName, toolCall.arguments, timeout);++ if (isDaemonChild) {+ appendLog(+ `[RESULT] ${result.success ? 'OK' : 'FAIL'}${operationId ? ` op=${operationId}` : ''} (${requestId})`,+ );+ } else {+ log.toolResult(requestId, result.success, result.content, operationId);+ }++ client.sendToolCallResponse({+ requestId,+ result: {+ content: result.content,+ error: result.error,+ state: result.state,+ success: result.success,+ },+ });+ });++ // Handle generic server-internal device RPCs (git / workspace / file ops).+ // Shares the `@lobechat/device-control` dispatcher with the desktop app so the+ // CLI exposes the same remote-device control surface.+ client.on('rpc_request', async (request: RpcRequestMessage) => {+ const { method, params, requestId } = request;+ if (isDaemonChild) appendLog(`[RPC] ${method} (${requestId})`);+ else info(`Received rpc_request: method=${method} (${requestId})`);++ try {+ const data = await executeDeviceRpc(method, params, deps);+ client.sendRpcResponse({ requestId, result: { data, success: true } });+ } catch (err) {+ const message = err instanceof Error ? err.message : String(err);+ if (isDaemonChild) appendLog(`[RPC ERROR] ${method}: ${message} (${requestId})`);+ else error(`rpc_request method=${method} failed: ${message}`);+ client.sendRpcResponse({ requestId, result: { error: message, success: false } });+ }+ });++ // Handle gateway-dispatched agent runs (heterogeneous agents, e.g. Claude+ // Code). Mirrors the desktop app: spawn `lh hetero exec`, which owns the full+ // execution + server-ingest pipeline. Ack with the spawn outcome — `accepted`+ // once the child starts, `rejected` if it fails to spawn (e.g. bad cwd) — so+ // a failed dispatch surfaces as an error instead of a stuck assistant message.+ client.on('agent_run_request', async (request: AgentRunRequestMessage) => {+ info(+ `Received agent_run_request: operationId=${request.operationId} type=${request.agentType}`,+ );+ try {+ const ack = await spawnHeteroAgentRun(+ {+ agentType: request.agentType,+ args: request.args,+ cwd: request.cwd,+ imageList: request.imageList,+ jwt: request.jwt,+ operationId: request.operationId,+ prompt: request.prompt,+ resumeSessionId: request.resumeSessionId,+ serverUrl: getServerUrl(),+ systemContext: request.systemContext,+ topicId: request.topicId,+ },+ { error, info },+ );+ client.sendAgentRunAck({ operationId: request.operationId, ...ack });+ } catch (err) {+ const reason = err instanceof Error ? err.message : String(err);+ error(`agent_run_request failed: ${reason}`);+ client.sendAgentRunAck({ operationId: request.operationId, reason, status: 'rejected' });+ }+ });}function createDaemonLogger() {diff --git a/apps/cli/src/commands/device.test.ts b/apps/cli/src/commands/device.test.tsindex 239d4d9795e..fe97b17910c 100644--- a/apps/cli/src/commands/device.test.ts+++ b/apps/cli/src/commands/device.test.ts@@ -70,6 +70,53 @@ describe('device command', () => {return program;}+ describe('list', () => {+ it('should list under the personal context without --workspace', async () => {+ const program = createProgram();+ await program.parseAsync(['node', 'test', 'device', 'list', '--json']);++ expect(mockGetTrpcClient).toHaveBeenCalledWith(undefined);+ const printed = JSON.parse(consoleSpy.mock.calls.at(-1)![0]);+ expect(printed.map((d: any) => d.deviceId)).toEqual(['d1', 'd2', '8040798a77ae']);+ });++ it('should filter to workspace-scope devices when --workspace is set', async () => {+ mockTrpcClient.device.listDevices.query.mockResolvedValue([+ { deviceId: 'p1', scope: 'personal' },+ { deviceId: 'ws1', scope: 'workspace' },+ { deviceId: 'ws2', scope: 'workspace' },+ ]);++ const program = createProgram();+ await program.parseAsync([+ 'node',+ 'test',+ 'device',+ 'list',+ '--json',+ '--workspace',+ 'ws-abc',+ ]);++ expect(mockGetTrpcClient).toHaveBeenCalledWith('ws-abc');+ const printed = JSON.parse(consoleSpy.mock.calls.at(-1)![0]);+ expect(printed.map((d: any) => d.deviceId)).toEqual(['ws1', 'ws2']);+ });++ it('should keep the personal+workspace union when the context is ambient (no flag)', async () => {+ mockTrpcClient.device.listDevices.query.mockResolvedValue([+ { deviceId: 'p1', scope: 'personal' },+ { deviceId: 'ws1', scope: 'workspace' },+ ]);++ const program = createProgram();+ await program.parseAsync(['node', 'test', 'device', 'list', '--json']);++ const printed = JSON.parse(consoleSpy.mock.calls.at(-1)![0]);+ expect(printed.map((d: any) => d.deviceId)).toEqual(['p1', 'ws1']);+ });+ });+describe('delete', () => {it('should remove a device with --yes (no prompt)', async () => {mockTrpcClient.device.removeDevice.mutate.mockResolvedValue({ success: true });@@ -150,6 +197,30 @@ describe('device command', () => {expect(mockTrpcClient.device.removeDevice.mutate).not.toHaveBeenCalled();});+ it('should resolve the client under the workspace context when --workspace is set', async () => {+ mockTrpcClient.device.listDevices.query.mockResolvedValue([+ { deviceId: 'ws1', scope: 'workspace' },+ ]);+ mockTrpcClient.device.removeWorkspaceDevice.mutate.mockResolvedValue({ success: true });++ const program = createProgram();+ await program.parseAsync([+ 'node',+ 'test',+ 'device',+ 'delete',+ 'ws1',+ '--yes',+ '--workspace',+ 'ws-abc',+ ]);++ expect(mockGetTrpcClient).toHaveBeenCalledWith('ws-abc');+ expect(mockTrpcClient.device.removeWorkspaceDevice.mutate).toHaveBeenCalledWith({+ deviceId: 'ws1',+ });+ });+it('should error + exit(1) without deleting when the device is not in the list', async () => {mockTrpcClient.device.listDevices.query.mockResolvedValue([{ deviceId: 'other', scope: 'personal' },diff --git a/apps/cli/src/commands/device.ts b/apps/cli/src/commands/device.tsindex 88364408d3e..7da70eb15b6 100644--- a/apps/cli/src/commands/device.ts+++ b/apps/cli/src/commands/device.ts@@ -14,9 +14,16 @@ export function registerDeviceCommand(program: Command) {.command('list').description('List all online devices').option('--json [fields]', 'Output JSON, optionally specify fields (comma-separated)')- .action(async (options: { json?: string | boolean }) => {- const client = await getTrpcClient();- const devices = await client.device.listDevices.query();+ .option('--workspace <id>', "List the workspace's shared devices instead of personal ones")+ .action(async (options: { json?: string | boolean; workspace?: string }) => {+ const client = await getTrpcClient(options.workspace);+ const all = await client.device.listDevices.query();++ // With a workspace context the server returns BOTH pools (personal ++ // workspace), each row tagged with `scope`. An explicit --workspace is a+ // filter request, so narrow to that workspace's pool; an ambient context+ // (LOBEHUB_WORKSPACE_ID env) keeps the union.+ const devices = options.workspace ? all.filter((d: any) => d.scope === 'workspace') : all;if (options.json !== undefined) {const fields = typeof options.json === 'string' ? options.json : undefined;@@ -30,15 +37,24 @@ export function registerDeviceCommand(program: Command) {return;}+ const hasWorkspaceRows = devices.some((d: any) => d.scope === 'workspace');const rows = devices.map((d: any) => [d.deviceId || '',d.hostname || '',d.platform || '',+ ...(hasWorkspaceRows ? [d.scope === 'workspace' ? 'workspace' : 'personal'] : []),d.online ? pc.green('online') : pc.dim('offline'),d.lastSeen ? timeAgo(d.lastSeen) : '',]);- printTable(rows, ['DEVICE ID', 'HOSTNAME', 'PLATFORM', 'STATUS', 'CONNECTED']);+ printTable(rows, [+ 'DEVICE ID',+ 'HOSTNAME',+ 'PLATFORM',+ ...(hasWorkspaceRows ? ['SCOPE'] : []),+ 'STATUS',+ 'CONNECTED',+ ]);});// ── info ──────────────────────────────────────────────@@ -47,8 +63,9 @@ export function registerDeviceCommand(program: Command) {.command('info <deviceId>').description('Show system info of a specific device').option('--json [fields]', 'Output JSON, optionally specify fields (comma-separated)')- .action(async (deviceId: string, options: { json?: string | boolean }) => {- const client = await getTrpcClient();+ .option('--workspace <id>', 'Reach the device through this workspace context')+ .action(async (deviceId: string, options: { json?: string | boolean; workspace?: string }) => {+ const client = await getTrpcClient(options.workspace);const info = await client.device.getDeviceSystemInfo.query({ deviceId });if (!info) {@@ -82,7 +99,8 @@ export function registerDeviceCommand(program: Command) {.alias('remove').description('Remove one or more devices from your account').option('--yes', 'Skip confirmation prompt')- .action(async (deviceIds: string[], options: { yes?: boolean }) => {+ .option('--workspace <id>', 'Remove devices from this workspace pool (owner/enroller only)')+ .action(async (deviceIds: string[], options: { workspace?: string; yes?: boolean }) => {if (!options.yes) {const label =deviceIds.length === 1 ? `device "${deviceIds[0]}"` : `${deviceIds.length} devices`;@@ -93,7 +111,7 @@ export function registerDeviceCommand(program: Command) {}}- const client = await getTrpcClient();+ const client = await getTrpcClient(options.workspace);// Resolve each device's scope first: workspace devices are owner-gated and// live in a separate pool, so they need `removeWorkspaceDevice`, not the@@ -101,7 +119,14 @@ export function registerDeviceCommand(program: Command) {// no-op on a workspace device yet still print success. `listDevices`// already returns both pools (only when a workspace context is set).const devices = await client.device.listDevices.query();- const byId = new Map(devices.map((d: any) => [d.deviceId, d]));+ // With --workspace the caller asked to act on the WORKSPACE pool only.+ // `listDevices` returns the personal+workspace union, so without this+ // filter an id that names a personal device would silently delete the+ // personal registration instead. Mirrors the `list` command's filter.+ const candidates = options.workspace+ ? devices.filter((d: any) => d.scope === 'workspace')+ : devices;+ const byId = new Map<string, any>(candidates.map((d: any) => [d.deviceId, d]));let failed = 0;for (const deviceId of deviceIds) {@@ -135,8 +160,9 @@ export function registerDeviceCommand(program: Command) {.command('status').description('Show device connection overview').option('--json', 'Output JSON')- .action(async (options: { json?: boolean }) => {- const client = await getTrpcClient();+ .option('--workspace <id>', 'Report against this workspace context')+ .action(async (options: { json?: boolean; workspace?: string }) => {+ const client = await getTrpcClient(options.workspace);const status = await client.device.status.query();if (options.json) {diff --git a/apps/cli/src/device/register.ts b/apps/cli/src/device/register.tsindex cae30a4c510..e925731f87a 100644--- a/apps/cli/src/device/register.ts+++ b/apps/cli/src/device/register.ts@@ -1,7 +1,7 @@import os from 'node:os';import type { DeviceIdentity } from '@lobechat/device-identity';-import { deriveDeviceId } from '@lobechat/device-identity';+import { deriveDeviceId, deriveScopedFallbackId } from '@lobechat/device-identity';import { createLambdaClient } from '../api/client';@@ -45,13 +45,23 @@ type Auth = { serverUrl: string; token: string; tokenType: 'apiKey' | 'jwt' | 's* Identity for a WORKSPACE device: derived from the workspaceId (namespaced) so* the same physical machine enrolled into a workspace is a distinct device from* its personal identity, and stable across reconnects.+ *+ * `fallbackSeed` (a stable per-install id, e.g. `loadOrCreateConnectionId()`)+ * keeps the derivation stable on machines where the OS machine id is+ * unreadable — enroll and restore re-derive this identity and must agree. The+ * seed is namespaced per workspace principal, never used raw.*/export function resolveWorkspaceDeviceIdentity(workspaceId: string,explicitDeviceId?: string,+ fallbackSeed?: string,): DeviceIdentity {if (explicitDeviceId) return { deviceId: explicitDeviceId, identitySource: 'fallback' };- return deriveDeviceId(`workspace:${workspaceId}`);+ return deriveDeviceId(`workspace:${workspaceId}`, {+ fallbackId: fallbackSeed+ ? deriveScopedFallbackId(fallbackSeed, `workspace:${workspaceId}`)+ : undefined,+ });}/**@@ -66,11 +76,17 @@ export async function mintWorkspaceConnectToken(return trpc.device.mintWorkspaceConnectToken.mutate();}-/** Register this machine as a device of the given workspace (owner-only). */+/**+ * Register this machine as a device of the given workspace (member+).+ * `visibility: 'public'` enrolls it into the shared pool visible to every+ * member (`lh connect --workspace <id> --public`); omitted → the server+ * default (private, visible only to the enroller).+ */export async function registerWorkspaceDevice(auth: Auth,identity: DeviceIdentity,workspaceId: string,+ visibility?: 'private' | 'public',): Promise<void> {const trpc = createLambdaClient(auth, workspaceId);await trpc.device.registerWorkspaceDevice.mutate({@@ -78,5 +94,6 @@ export async function registerWorkspaceDevice(hostname: os.hostname(),identitySource: identity.identitySource,platform: process.platform,+ visibility,});}diff --git a/apps/cli/src/settings/index.ts b/apps/cli/src/settings/index.tsindex aa4e730d221..7c3e1d1e096 100644--- a/apps/cli/src/settings/index.ts+++ b/apps/cli/src/settings/index.ts@@ -18,6 +18,10 @@ const SETTINGS_FILE = path.join(SETTINGS_DIR, 'settings.json');// Kept in its own file rather than settings.json, which is unlinked whenever// all server/gateway URLs are default — the connectionId must persist regardless.const CONNECTION_ID_FILE = path.join(SETTINGS_DIR, 'connection-id');+// Workspaces this machine's PERSONAL connection has been shared into via the+// `enrollWorkspace` RPC. Persisted so a daemon/process restart can re-open the+// workspace share connections without the user re-sharing from the web UI.+const WORKSPACE_ENROLLMENTS_FILE = path.join(SETTINGS_DIR, 'workspace-enrollments.json');export function normalizeUrl(url: string | undefined): string | undefined {return url ? url.replace(/\/$/, '') : undefined;@@ -50,7 +54,9 @@ export function saveSettings(settings: StoredSettings): void {if (!normalized.serverUrl && !normalized.gatewayUrl && !normalized.agentGatewayUrl) {try {fs.unlinkSync(SETTINGS_FILE);- } catch {}+ } catch (error) {+ log.debug('Skipping settings file removal for default settings', error);+ }return;}@@ -83,6 +89,49 @@ export function loadOrCreateConnectionId(): string {return id;}+/**+ * Load the workspaceIds this machine is enrolled into as a shared device.+ * Missing / corrupt file degrades to "no enrollments" — the server remains the+ * source of truth, this list is only the reconnect hint.+ */+export function loadWorkspaceEnrollments(): string[] {+ try {+ const data = fs.readFileSync(WORKSPACE_ENROLLMENTS_FILE, 'utf8');+ const parsed: unknown = JSON.parse(data);+ if (Array.isArray(parsed)) return parsed.filter((v): v is string => typeof v === 'string');+ } catch {+ // not yet created or unreadable — treat as no enrollments+ }+ return [];+}++function saveWorkspaceEnrollments(workspaceIds: string[]): void {+ try {+ if (workspaceIds.length === 0) {+ fs.unlinkSync(WORKSPACE_ENROLLMENTS_FILE);+ return;+ }+ fs.mkdirSync(SETTINGS_DIR, { mode: 0o700, recursive: true });+ fs.writeFileSync(WORKSPACE_ENROLLMENTS_FILE, JSON.stringify(workspaceIds, null, 2), {+ mode: 0o600,+ });+ } catch {+ // best-effort: a failed write only loses auto-reconnect after a restart+ }+}++export function addWorkspaceEnrollment(workspaceId: string): void {+ const current = loadWorkspaceEnrollments();+ if (current.includes(workspaceId)) return;+ saveWorkspaceEnrollments([...current, workspaceId]);+}++export function removeWorkspaceEnrollment(workspaceId: string): void {+ const current = loadWorkspaceEnrollments();+ if (!current.includes(workspaceId)) return;+ saveWorkspaceEnrollments(current.filter((id) => id !== workspaceId));+}+export function loadSettings(): StoredSettings | null {if (!fs.existsSync(SETTINGS_FILE)) return null;diff --git a/apps/desktop/src/main/const/store.ts b/apps/desktop/src/main/const/store.tsindex ec9c13877ad..4c5a61c7d66 100644--- a/apps/desktop/src/main/const/store.ts+++ b/apps/desktop/src/main/const/store.ts@@ -34,6 +34,7 @@ export const STORE_DEFAULTS: ElectronMainStore = {gatewayDeviceName: '',gatewayEnabled: true,gatewayUrl: 'https://device-gateway.lobehub.com',+ gatewayWorkspaceEnrollments: [],heteroTracingEnabled: false,imessageBridgeConfigs: [],locale: 'auto',diff --git a/apps/desktop/src/main/controllers/GatewayConnectionCtr.ts b/apps/desktop/src/main/controllers/GatewayConnectionCtr.tsindex 16084c15dc7..d616d357516 100644--- a/apps/desktop/src/main/controllers/GatewayConnectionCtr.ts+++ b/apps/desktop/src/main/controllers/GatewayConnectionCtr.ts@@ -221,6 +221,14 @@ export default class GatewayConnectionCtr extends ControllerModule {// Wire up device registrar (persists this device to the server registry)srv.setDeviceRegistrar((info) => this.registerDevice(info));+ // Wire up the workspace-share hooks: connect-token minting (startup restore+ // + token expiry) and the "row still registered?" probe that keeps a share+ // revoked while offline from resurrecting as a ghost device.+ srv.setWorkspaceTokenProvider((workspaceId) => this.mintWorkspaceConnectToken(workspaceId));+ srv.setWorkspaceDeviceChecker((workspaceId, deviceId) =>+ this.checkWorkspaceDeviceRegistered(workspaceId, deviceId),+ );+// Auto-connect if already logged inthis.tryAutoConnect();}@@ -381,9 +389,13 @@ export default class GatewayConnectionCtr extends ControllerModule {logger.error(`Failed to approve project preview root ${root}:`, error);}},+ // Workspace share (server-driven enroll/unenroll RPCs): the service owns+ // the gateway connections, so both handlers route straight to it.+ enrollWorkspace: (params) => this.service.enrollWorkspace(params),getLocalFilePreview: (params) => this.localFileCtr.getLocalFilePreview(params),getProjectFileIndex: (params) => this.localFileCtr.getProjectFileIndex(params),searchProjectFiles: (params) => this.localFileCtr.searchProjectFiles(params),+ unenrollWorkspace: (params) => this.service.unenrollWorkspace(params),// Skill-archive cache (`prepareSkillDirectory` RPC): reuse LocalFileCtr's// deps so gateway-prepared skills share one cache with the renderer-IPC path....this.localFileCtr.getSkillDirectoryDeps(),@@ -1114,6 +1126,85 @@ export default class GatewayConnectionCtr extends ControllerModule {});}+ /**+ * Build the auth headers for a workspace-scoped server call. The+ * `X-Workspace-Id` header is what routes the request through the workspace+ * (member+) procedures — same convention as `sendNotify` above.+ */+ private async buildWorkspaceHeaders(+ workspaceId: string,+ ): Promise<{ headers: Record<string, string>; serverUrl: string } | null> {+ const [serverUrl, token] = await Promise.all([+ this.remoteServerConfigCtr.getRemoteServerUrl(),+ this.remoteServerConfigCtr.getAccessToken(),+ ]);+ if (!serverUrl || !token) return null;++ const headers: Record<string, string> = {+ 'Content-Type': 'application/json',+ 'Oidc-Auth': token,+ 'X-Workspace-Id': workspaceId,+ };+ setDesktopUserAgentHeader(headers);+ return { headers, serverUrl };+ }++ /**+ * Mint a workspace-device connect token via `device.mintWorkspaceConnectToken`.+ * Used by the gateway service when restoring persisted share connections and+ * when a workspace connection's token expires. Returns null when the desktop+ * has no usable auth (logged out) — the service treats that as "skip".+ */+ private async mintWorkspaceConnectToken(workspaceId: string): Promise<string | null> {+ const auth = await this.buildWorkspaceHeaders(workspaceId);+ if (!auth) return null;++ const res = await fetch(`${auth.serverUrl}/trpc/lambda/device.mintWorkspaceConnectToken`, {+ // The mutation takes no input; `{json: null}` is the superjson-encoded+ // empty payload the tRPC HTTP handler expects.+ body: JSON.stringify({ json: null }),+ headers: auth.headers,+ method: 'POST',+ });+ if (!res.ok) throw new Error(`mintWorkspaceConnectToken failed: HTTP ${res.status}`);++ const payload = (await res.json()) as { result?: { data?: { json?: { token?: unknown } } } };+ const minted = payload?.result?.data?.json?.token;+ return typeof minted === 'string' ? minted : null;+ }++ /**+ * Probe whether the workspace-scoped deviceId still has a registered row via+ * `device.listDevices`. Returns `false` only on a definitive "row gone"+ * answer; `undefined` on any failure — the service must not clear persisted+ * enrollments off an inconclusive check.+ */+ private async checkWorkspaceDeviceRegistered(+ workspaceId: string,+ deviceId: string,+ ): Promise<boolean | undefined> {+ try {+ const auth = await this.buildWorkspaceHeaders(workspaceId);+ if (!auth) return undefined;++ const res = await fetch(`${auth.serverUrl}/trpc/lambda/device.listDevices`, {+ headers: auth.headers,+ });+ if (!res.ok) return undefined;++ const payload = (await res.json()) as { result?: { data?: { json?: unknown } } };+ const devices = payload?.result?.data?.json;+ if (!Array.isArray(devices)) return undefined;++ return devices.some(+ (d: { deviceId?: unknown; registered?: unknown }) =>+ d?.deviceId === deviceId && d?.registered === true,+ );+ } catch {+ return undefined;+ }+ }+// ─── Platform Agent Helpers ───private resolveLhPath(): string {diff --git a/apps/desktop/src/main/services/gatewayConnectionSrv.ts b/apps/desktop/src/main/services/gatewayConnectionSrv.tsindex 88517ad69bc..7346a387d6f 100644--- a/apps/desktop/src/main/services/gatewayConnectionSrv.ts+++ b/apps/desktop/src/main/services/gatewayConnectionSrv.ts@@ -1,6 +1,11 @@import { randomUUID } from 'node:crypto';import os from 'node:os';+import type {+ EnrollWorkspaceParams,+ EnrollWorkspaceResult,+ UnenrollWorkspaceParams,+} from '@lobechat/device-control';import type {AgentRunRequestMessage,GatewayMcpStdioParams,@@ -12,7 +17,7 @@ import type {} from '@lobechat/device-gateway-client';import { GatewayClient } from '@lobechat/device-gateway-client';import type { IdentitySource } from '@lobechat/device-identity';-import { deriveDeviceId } from '@lobechat/device-identity';+import { deriveDeviceId, deriveScopedFallbackId } from '@lobechat/device-identity';import type { GatewayConnectionStatus } from '@lobechat/electron-client-ipc';import { app, powerSaveBlocker } from 'electron';@@ -104,6 +109,27 @@ interface DeviceRegistrar {}): Promise<void>;}+/**+ * Mint a fresh workspace-device connect token for a share connection. Injected+ * by the controller (which owns the authed server URL + user token) — used when+ * restoring persisted enrollments on startup and when a workspace connection's+ * token expires. Returns null when the desktop is not in a state to mint (e.g.+ * logged out).+ */+interface WorkspaceTokenProvider {+ (workspaceId: string): Promise<string | null>;+}++/**+ * Check whether the workspace-scoped deviceId still has a registered row on the+ * server. Returns `false` only on a definitive "row gone" answer (share revoked+ * while offline); `undefined` when the check could not be performed — callers+ * must NOT clear local state on `undefined`.+ */+interface WorkspaceDeviceChecker {+ (workspaceId: string, deviceId: string): Promise<boolean | undefined>;+}+/*** GatewayConnectionService*@@ -126,6 +152,13 @@ export default class GatewayConnectionService extends ServiceModule {private agentRunHandler: AgentRunHandler | null = null;private rpcHandler: RpcHandler | null = null;private deviceRegistrar: DeviceRegistrar | null = null;+ private workspaceTokenProvider: WorkspaceTokenProvider | null = null;+ private workspaceDeviceChecker: WorkspaceDeviceChecker | null = null;++ /** Live workspace-share connections, keyed by workspaceId. */+ private workspaceClients = new Map<string, GatewayClient>();+ /** Serializes enrollment restores so reconnect churn can't double-open sockets. */+ private workspaceRestoreInFlight = false;// ─── Configuration ───@@ -184,6 +217,24 @@ export default class GatewayConnectionService extends ServiceModule {this.deviceRegistrar = registrar;}+ /**+ * Set the workspace connect-token minter used by share connections (startup+ * restore + token expiry). Injected by the controller, which owns the authed+ * server calls.+ */+ setWorkspaceTokenProvider(provider: WorkspaceTokenProvider) {+ this.workspaceTokenProvider = provider;+ }++ /**+ * Set the "is this workspace device row still registered?" probe used before+ * restoring a persisted enrollment, so a share revoked while the app was+ * offline doesn't come back as a ghost device.+ */+ setWorkspaceDeviceChecker(checker: WorkspaceDeviceChecker) {+ this.workspaceDeviceChecker = checker;+ }+// ─── Device ID ───/**@@ -284,6 +335,12 @@ export default class GatewayConnectionService extends ServiceModule {await this.client.disconnect();this.client = null;}+ // Take the workspace share connections down with the personal one (the+ // device goes fully offline), but keep the persisted enrollments — the next+ // connect restores them.+ for (const workspaceId of this.workspaceClients.keys()) {+ await this.closeWorkspaceClient(workspaceId);+ }this.setStatus('disconnected');return { success: true };}@@ -340,13 +397,34 @@ export default class GatewayConnectionService extends ServiceModule {this.client = client;await client.connect();++ // Re-open persisted workspace share connections once the personal+ // connection is up. Fire-and-forget: restore failures must never block or+ // fail the personal connect.+ void this.restoreWorkspaceEnrollments().catch((err) => {+ logger.warn('Workspace enrollment restore failed (non-fatal):', err);+ });+return { success: true };}- private setupClientEvents(client: GatewayClient) {- client.on('status_changed', (status) => {- this.setStatus(status);- });+ /**+ * Bind the shared request handlers. All request routing (tool calls / RPCs /+ * agent runs / system info) is identical for the personal connection and a+ * workspace share connection; only connection lifecycle differs — a workspace+ * scope skips global status broadcasting and refreshes its token by+ * re-minting a workspace connect token instead of refreshing the user token.+ */+ private setupClientEvents(client: GatewayClient, scope?: { workspaceId: string }) {+ if (scope) {+ client.on('status_changed', (status) => {+ logger.info(`Workspace ${scope.workspaceId} connection status: ${status}`);+ });+ } else {+ client.on('status_changed', (status) => {+ this.setStatus(status);+ });+ }client.on('tool_call_request', (request) => {this.handleToolCallRequest(request, client);@@ -369,8 +447,13 @@ export default class GatewayConnectionService extends ServiceModule {});client.on('auth_expired', () => {- logger.warn('Received auth_expired, will reconnect with refreshed token');- this.handleAuthExpired();+ if (scope) {+ logger.warn(`Workspace ${scope.workspaceId} connect token expired, re-minting`);+ void this.handleWorkspaceAuthExpired(scope.workspaceId);+ } else {+ logger.warn('Received auth_expired, will reconnect with refreshed token');+ this.handleAuthExpired();+ }});client.on('error', (error) => {@@ -378,6 +461,194 @@ export default class GatewayConnectionService extends ServiceModule {});}+ // ─── Workspace Share Connections ───+ //+ // The server shares this personal device into a workspace by sending an+ // `enrollWorkspace` RPC over the personal connection. The app then keeps a+ // second gateway connection per shared workspace — authenticated with a+ // short-lived workspace-device connect token and identified by the+ // workspace-derived deviceId — so the machine is simultaneously reachable as+ // a personal device and as a device of each shared workspace.++ /**+ * Handle the `enrollWorkspace` device RPC: open the share connection and+ * persist the enrollment, returning the derived identity so the SERVER can+ * register the workspace device row (the desktop never calls+ * `registerWorkspaceDevice` itself on this path).+ */+ async enrollWorkspace(params: EnrollWorkspaceParams): Promise<EnrollWorkspaceResult> {+ // Dry-run probe: return the derived identity so the server can detect an+ // existing enrollment (and ask for overwrite confirmation) without this+ // machine opening or persisting anything.+ if (params.identityOnly) return this.resolveWorkspaceDeviceIdentity(params.workspaceId);+ const identity = await this.openWorkspaceClient(params.workspaceId, params.token);+ this.persistWorkspaceEnrollment(params.workspaceId);+ logger.info(`Enrolled into workspace ${params.workspaceId} as device ${identity.deviceId}`);+ return identity;+ }++ /**+ * Handle the `unenrollWorkspace` device RPC (share revoked): close the share+ * connection and drop the persisted auto-reconnect state. The instruction may+ * arrive on the workspace connection or the personal one — both route here.+ */+ async unenrollWorkspace(params: UnenrollWorkspaceParams): Promise<{ success: boolean }> {+ await this.closeWorkspaceClient(params.workspaceId);+ this.removePersistedWorkspaceEnrollment(params.workspaceId);+ logger.info(`Unenrolled from workspace ${params.workspaceId}`);+ return { success: true };+ }++ /**+ * Identity for a WORKSPACE share connection. MUST stay byte-compatible with+ * the CLI's `resolveWorkspaceDeviceIdentity` (apps/cli/src/device/register.ts):+ * both hash the `workspace:<id>` principal, so the same physical machine+ * enrolled into a workspace — via desktop share or `lh connect --workspace` —+ * resolves to one workspace device.+ */+ private resolveWorkspaceDeviceIdentity(workspaceId: string): EnrollWorkspaceResult {+ // Fallback machines (no readable machine id) must still derive a STABLE+ // workspace id — the identity-only probe, the real enroll, and restore+ // checks each re-derive it. Namespace the persisted install UUID rather+ // than passing it raw: the raw UUID IS the personal deviceId on fallback+ // machines, and reusing it here would collide the two pools.+ const storedFallback = this.app.storeManager.get('gatewayDeviceId') as string | undefined;+ return deriveDeviceId(`workspace:${workspaceId}`, {+ fallbackId: storedFallback+ ? deriveScopedFallbackId(storedFallback, `workspace:${workspaceId}`)+ : undefined,+ });+ }++ private async openWorkspaceClient(+ workspaceId: string,+ token: string,+ ): Promise<EnrollWorkspaceResult> {+ // Re-enroll replaces the previous share connection instead of stacking one.+ await this.closeWorkspaceClient(workspaceId);++ const identity = this.resolveWorkspaceDeviceIdentity(workspaceId);++ const client = new GatewayClient({+ channel: isDev ? 'desktop-dev' : 'desktop',+ // Reuse the install's connectionId: the gateway dedupes stale sockets per+ // principal, so the workspace connection only ever replaces its own+ // predecessor, never the personal socket.+ connectionId: this.getConnectionId(),+ deviceId: identity.deviceId,+ gatewayUrl: this.getGatewayUrl(),+ logger,+ token,+ userAgent: getDesktopUserAgent(),+ userId: undefined,+ workspaceId,+ });++ this.setupClientEvents(client, { workspaceId });+ this.workspaceClients.set(workspaceId, client);++ await client.connect();+ return identity;+ }++ private async closeWorkspaceClient(workspaceId: string) {+ const client = this.workspaceClients.get(workspaceId);+ if (!client) return;+ this.workspaceClients.delete(workspaceId);+ await client.disconnect();+ }++ /**+ * Workspace share connections authenticate with a short-lived minted token,+ * not the user token — on expiry, re-mint via the injected provider and+ * reconnect in place. A failed re-mint (share/membership likely revoked)+ * closes the socket but keeps the persisted enrollment: the next startup's+ * restore path settles it against the server row.+ */+ private async handleWorkspaceAuthExpired(workspaceId: string) {+ const client = this.workspaceClients.get(workspaceId);+ if (!client) return;++ try {+ const token = await this.workspaceTokenProvider?.(workspaceId);+ if (!token) throw new Error('no workspace connect token available');+ client.updateToken(token);+ await client.reconnect();+ } catch (error) {+ logger.warn(`Workspace ${workspaceId} token re-mint failed, closing share:`, error);+ await this.closeWorkspaceClient(workspaceId);+ }+ }++ /**+ * Re-open share connections persisted by a previous run. Before reconnecting,+ * confirm the derived workspace deviceId still has a registered row — the+ * share may have been revoked while the app was offline (the server can't+ * deliver `unenrollWorkspace` to a dead socket), and reconnecting anyway+ * would resurrect the device as a ghost in the workspace pool.+ */+ private async restoreWorkspaceEnrollments() {+ if (this.workspaceRestoreInFlight) return;+ this.workspaceRestoreInFlight = true;++ try {+ for (const workspaceId of this.getPersistedWorkspaceEnrollments()) {+ // Already live (e.g. personal reconnect after auth refresh) — leave it.+ if (this.workspaceClients.has(workspaceId)) continue;++ try {+ const identity = this.resolveWorkspaceDeviceIdentity(workspaceId);++ const registered = await this.workspaceDeviceChecker?.(workspaceId, identity.deviceId);+ if (registered === false) {+ logger.info(+ `Workspace share ${workspaceId} was revoked while offline, clearing local enrollment`,+ );+ this.removePersistedWorkspaceEnrollment(workspaceId);+ continue;+ }++ const token = await this.workspaceTokenProvider?.(workspaceId);+ if (!token) {+ logger.warn(`No connect token for workspace ${workspaceId}, skipping restore`);+ continue;+ }++ await this.openWorkspaceClient(workspaceId, token);+ logger.info(`Restored workspace share connection: ${workspaceId}`);+ } catch (error) {+ // Degraded by design: keep the record and retry on the next connect+ // rather than silently dropping the share on a transient failure.+ logger.warn(`Failed to restore workspace share ${workspaceId} (non-fatal):`, error);+ }+ }+ } finally {+ this.workspaceRestoreInFlight = false;+ }+ }++ // ─── Workspace Enrollment Persistence ───++ private getPersistedWorkspaceEnrollments(): string[] {+ const stored = this.app.storeManager.get('gatewayWorkspaceEnrollments') as string[] | undefined;+ return Array.isArray(stored) ? stored.filter((id) => typeof id === 'string') : [];+ }++ private persistWorkspaceEnrollment(workspaceId: string) {+ const current = this.getPersistedWorkspaceEnrollments();+ if (current.includes(workspaceId)) return;+ this.app.storeManager.set('gatewayWorkspaceEnrollments', [...current, workspaceId]);+ }++ private removePersistedWorkspaceEnrollment(workspaceId: string) {+ const current = this.getPersistedWorkspaceEnrollments();+ if (!current.includes(workspaceId)) return;+ this.app.storeManager.set(+ 'gatewayWorkspaceEnrollments',+ current.filter((id) => id !== workspaceId),+ );+ }+// ─── Auth Expired Handling ───private async handleAuthExpired() {diff --git a/apps/desktop/src/main/types/store.ts b/apps/desktop/src/main/types/store.tsindex 1beb3ac1099..510f1a79817 100644--- a/apps/desktop/src/main/types/store.ts+++ b/apps/desktop/src/main/types/store.ts@@ -19,6 +19,12 @@ export interface ElectronMainStore {gatewayDeviceName: string;gatewayEnabled: boolean;gatewayUrl: string;+ /**+ * Workspaces this machine's personal gateway connection has been shared into+ * (via the `enrollWorkspace` device RPC). Persisted so an app restart can+ * re-open the workspace share connections without re-sharing from the web UI.+ */+ gatewayWorkspaceEnrollments: string[];/*** Developer toggle: when true, hetero-agent (CC / Codex) CLI raw streams are* traced to disk even in packaged production builds. Dev builds always tracediff --git a/apps/server/src/modules/AgentRuntime/adapters/ServerToolTransport.ts b/apps/server/src/modules/AgentRuntime/adapters/ServerToolTransport.tsindex 5e5602000e7..df329d1b395 100644--- a/apps/server/src/modules/AgentRuntime/adapters/ServerToolTransport.ts+++ b/apps/server/src/modules/AgentRuntime/adapters/ServerToolTransport.ts@@ -153,6 +153,7 @@ export class ServerToolTransport implements ToolTransport {toolExecutionService.executeTool(chatToolPayload, {activatedSkills: context.activatedSkills as any,activeDeviceId: resolveRunActiveDeviceId(context.state.metadata),+ activeDeviceScope: context.state.metadata?.activeDeviceScope,agentId: context.state.metadata?.agentId,agentMember: buildServerAgentMemberRunner(this.ctx,diff --git a/apps/server/src/routers/lambda/__tests__/deviceWorkspaceGuard.test.ts b/apps/server/src/routers/lambda/__tests__/deviceWorkspaceGuard.test.tsindex 4a75b9afbd2..8a80fa10dc6 100644--- a/apps/server/src/routers/lambda/__tests__/deviceWorkspaceGuard.test.ts+++ b/apps/server/src/routers/lambda/__tests__/deviceWorkspaceGuard.test.ts@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest';import type { DeviceModel } from '@/database/models/device';-import { assertWorkspaceRootApproved } from '../deviceWorkspaceGuard';+import { assertWorkspaceDeviceVisible, assertWorkspaceRootApproved } from '../deviceWorkspaceGuard';const mockModel = (row: { defaultCwd?: string | null; workingDirs?: { path: string }[] } | null) =>({@@ -68,3 +68,27 @@ describe('assertWorkspaceRootApproved', () => {expect(model.findByDeviceId).not.toHaveBeenCalled();});});++describe('assertWorkspaceDeviceVisible', () => {+ const mockHiddenModel = (hiddenIds: string[]) =>+ ({+ queryWorkspaceHiddenDeviceIds: vi.fn().mockResolvedValue(hiddenIds),+ }) as unknown as DeviceModel;++ it('allows a device the caller can see', async () => {+ const model = mockHiddenModel(['someone-elses-private']);+ await expect(assertWorkspaceDeviceVisible(model, 'public-dev')).resolves.toBeUndefined();+ });++ it('allows a transient device with no DB row (empty hidden set)', async () => {+ const model = mockHiddenModel([]);+ await expect(assertWorkspaceDeviceVisible(model, 'transient-dev')).resolves.toBeUndefined();+ });++ it("rejects another member's private device with NOT_FOUND", async () => {+ const model = mockHiddenModel(['someone-elses-private']);+ await expect(+ assertWorkspaceDeviceVisible(model, 'someone-elses-private'),+ ).rejects.toMatchObject({ code: 'NOT_FOUND' });+ });+});diff --git a/apps/server/src/routers/lambda/device.ts b/apps/server/src/routers/lambda/device.tsindex 9c0c8aedd89..1d12a1659dc 100644--- a/apps/server/src/routers/lambda/device.ts+++ b/apps/server/src/routers/lambda/device.ts@@ -1,5 +1,11 @@import { REMOTE_HETEROGENEOUS_AGENT_CONFIGS } from '@lobechat/heterogeneous-agents';-import type { DeviceChannel, DeviceListItem, DeviceScope, WorkingDirEntry } from '@lobechat/types';+import type {+ DeviceChannel,+ DeviceListItem,+ DeviceScope,+ DeviceWorkspaceShare,+ WorkingDirEntry,+} from '@lobechat/types';import { deriveWorktreePath } from '@lobechat/types';import { TRPCError } from '@trpc/server';import { z } from 'zod';@@ -10,7 +16,7 @@ import {wsCompatProcedure,wsProcedure,} from '@/business/server/trpc-middlewares/workspaceAuth';-import { DeviceModel } from '@/database/models/device';+import { DeviceModel, WorkspaceDevicePrivateConflictError } from '@/database/models/device';import { UserModel } from '@/database/models/user';import { router } from '@/libs/trpc/lambda';import { serverDatabase } from '@/libs/trpc/lambda/middleware';@@ -18,7 +24,7 @@ import { signWorkspaceDeviceToken } from '@/libs/trpc/utils/internalJwt';import { type DeviceAttachment, deviceGateway } from '@/server/services/deviceGateway';import { preserveWorkspaceCache } from './deviceWorkingDirs';-import { assertWorkspaceRootApproved } from './deviceWorkspaceGuard';+import { assertWorkspaceDeviceVisible, assertWorkspaceRootApproved } from './deviceWorkspaceGuard';import { workingDirConfigSchema } from './workingDirSchema';// Derive the zod enum from the canonical config so new platforms are@@ -60,13 +66,25 @@ const wsWritableProcedure = wsProcedure.use(requireWorkspaceRole('member'));// Workspace-aware (compat): with an `X-Workspace-Id` header the device list also// surfaces the workspace's shared devices; without it, the personal path is// unchanged (`ctx.workspaceId === undefined`).+//+// Every route below that takes a `deviceId` input also passes the workspace+// visibility gate — see `assertWorkspaceDeviceVisible` for why filtering the+// list paths alone is not enough.const deviceProcedure = wsCompatProcedure.use(serverDatabase).use(async (opts) => {const { ctx } = opts;const wsId = ctx.workspaceId ?? undefined;+ const deviceModel = new DeviceModel(ctx.serverDB, ctx.userId, wsId);++ if (wsId) {+ const raw = (await opts.getRawInput()) as { deviceId?: unknown } | undefined;+ if (typeof raw?.deviceId === 'string') {+ await assertWorkspaceDeviceVisible(deviceModel, raw.deviceId);+ }+ }return opts.next({ctx: {- deviceModel: new DeviceModel(ctx.serverDB, ctx.userId, wsId),+ deviceModel,userId: ctx.userId,workspaceId: wsId,},@@ -686,13 +704,41 @@ export const deviceRouter = router({// Personal devices resolve under the user principal; workspace devices under// the `workspace:<id>` principal (a separate gateway pool). Fetch both.- const [personalRows, workspaceRows, personalOnline, workspaceOnline] = await Promise.all([+ // `hiddenWorkspaceIds` (other members' private enrollments) is needed because+ // the gateway pool is visibility-blind: without it a private device would+ // resurface below as an online "ghost".+ const [+ personalRows,+ workspaceRows,+ hiddenWorkspaceIds,+ sharedRows,+ personalOnline,+ workspaceOnline,+ ] = await Promise.all([ctx.deviceModel.queryPersonal(),wsId ? ctx.deviceModel.queryWorkspaceDevices() : Promise.resolve([]),+ wsId ? ctx.deviceModel.queryWorkspaceHiddenDeviceIds() : Promise.resolve([]),+ ctx.deviceModel.querySharedWorkspaceDevices(),deviceGateway.queryDeviceList(ctx.userId),wsId ? deviceGateway.queryDeviceList(ctx.userId, wsId) : Promise.resolve([]),]);+ // Shares the caller created from their personal device list, grouped by the+ // source personal deviceId — attached to personal rows below so the list can+ // render "shared to N workspaces" and revoke individual shares.+ const sharesByPersonalId = new Map<string, DeviceWorkspaceShare[]>();+ for (const s of sharedRows) {+ if (!s.sharedFromDeviceId || !s.workspaceId) continue;+ const list = sharesByPersonalId.get(s.sharedFromDeviceId) ?? [];+ list.push({+ deviceId: s.deviceId,+ visibility: s.visibility,+ workspaceId: s.workspaceId,+ workspaceName: s.workspaceName ?? null,+ });+ sharesByPersonalId.set(s.sharedFromDeviceId, list);+ }+// Resolve display info for every enroller in a single roundtrip, so each// row can ship a self-contained `enroller` for the picker / settings UI.// Personal rows always belong to the caller, but the same lookup keeps the@@ -740,9 +786,16 @@ export const deviceRouter = router({rows: Awaited<ReturnType<typeof ctx.deviceModel.queryPersonal>>,onlineList: DeviceAttachment[],scope: DeviceScope,+ hiddenIds: string[] = [],): DeviceListItem[] => {+ const hidden = new Set(hiddenIds);const channelsByDevice = new Map<string, DeviceChannel[]>();- for (const conn of onlineList) channelsByDevice.set(conn.deviceId, toChannels(conn));+ for (const conn of onlineList) {+ // Another member's private device: online in the workspace gateway pool+ // but not visible to the caller — must not leak as a ghost row.+ if (hidden.has(conn.deviceId)) continue;+ channelsByDevice.set(conn.deviceId, toChannels(conn));+ }const seen = new Set<string>();const fromDb = rows.map((d): DeviceListItem => {@@ -773,6 +826,16 @@ export const deviceRouter = router({platform: d.platform ?? live?.platform ?? null,registered: true,scope,+ // Workspace rows only: member-shared (via the personal share flow)+ // vs directly enrolled — drives the "Shared by {name}" tag.+ sharedFromPersonal: scope === 'workspace' ? !!d.sharedFromDeviceId : undefined,+ // Personal rows only: the workspaces this machine was shared into+ // from the personal list (undefined for workspace rows and machines+ // never shared).+ sharedWorkspaces: scope === 'personal' ? sharesByPersonalId.get(d.deviceId) : undefined,+ // Personal rows have no workspace-visibility dimension; the column's+ // default is meaningless there, so normalise to null.+ visibility: scope === 'workspace' ? d.visibility : null,// Strip the heavy `workspace` scan (AGENTS.md + project skills, up to// ~30KB per dir) from the list payload. It's a server-owned cache for// the agent runtime (restored from the DB row on run start, never from@@ -800,6 +863,7 @@ export const deviceRouter = router({platform: channels[0]?.platform ?? null,registered: false,scope,+ visibility: null,workingDirs: [] as WorkingDirEntry[],}));@@ -808,7 +872,7 @@ export const deviceRouter = router({return [...buildItems(personalRows, personalOnline, 'personal'),- ...buildItems(workspaceRows, workspaceOnline, 'workspace'),+ ...buildItems(workspaceRows, workspaceOnline, 'workspace', hiddenWorkspaceIds),];}),@@ -845,11 +909,222 @@ export const deviceRouter = router({hostname: z.string().nullish(),identitySource: z.enum(['machine-id', 'fallback']),platform: z.string().max(20).nullish(),+ // 'private' enrolls the device for the calling member only (settings+ // page "Private" tab / `lh connect --workspace <id> --private`);+ // defaults to the shared pool. Preserved on re-enroll — see+ // `DeviceModel.registerWorkspaceDevice`.+ visibility: z.enum(['private', 'public']).optional(),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const model = new DeviceModel(ctx.serverDB, ctx.userId, ctx.workspaceId);+ try {+ return await model.registerWorkspaceDevice({ ...input, workspaceId: ctx.workspaceId });+ } catch (error) {+ if (error instanceof WorkspaceDevicePrivateConflictError) {+ throw new TRPCError({ code: 'CONFLICT', message: error.message });+ }+ throw error;+ }+ }),++ /**+ * Share one of the caller's PERSONAL devices into the current workspace+ * without touching the machine: dispatch an `enrollWorkspace` RPC over the+ * device's live personal connection (it derives its workspace-scoped+ * deviceId and opens a second gateway connection with the minted token),+ * then register the workspace row here — linked back to the personal device+ * via `sharedFromDeviceId` so the personal list can render and revoke the+ * share. Requires the device to be ONLINE; an offline device fails with+ * PRECONDITION_FAILED and the UI keeps its share action disabled.+ *+ * Same write gate as enrolling on the machine (`wsWritableProcedure`:+ * member+, viewers blocked). Visibility defaults to 'private' — see+ * `DeviceModel.registerWorkspaceDevice`.+ *+ * The machine may ALREADY be enrolled in this workspace (e.g. via+ * `lh connect --workspace`, which the personal share map can't link to).+ * Silently upserting would discard the caller's explicit visibility choice+ * (the conflict branch preserves the existing value), so instead the first+ * call reports `alreadyEnrolled` without writing; a `confirmOverwrite`+ * retry applies the requested visibility and links the row back to the+ * personal device.+ */+ shareDeviceToWorkspace: wsWritableProcedure+ .use(serverDatabase)+ .input(+ z.object({+ confirmOverwrite: z.boolean().optional(),+ deviceId: z.string().min(1).max(64),+ visibility: z.enum(['private', 'public']).optional(),+ }),+ )+ .mutation(async ({ ctx, input }) => {+ const model = new DeviceModel(ctx.serverDB, ctx.userId, ctx.workspaceId);+ const personal = await model.findByDeviceId(input.deviceId);+ // findByDeviceId is (userId, deviceId)-scoped; exclude workspace rows the+ // caller enrolled so only true personal devices are shareable.+ if (!personal || personal.workspaceId) {+ throw new TRPCError({ code: 'NOT_FOUND', message: 'Personal device not found.' });+ }++ const token = await signWorkspaceDeviceToken(ctx.workspaceId);+ // Identity-only probe: learn the machine's workspace deviceId WITHOUT the+ // device opening or persisting a share connection, so backing out of the+ // overwrite confirmation leaves the device untouched. Older clients+ // ignore the flag and enroll here — that degrades to the pre-flag+ // behaviour, never worse.+ const probe = await deviceGateway.enrollWorkspace({+ deviceId: personal.deviceId,+ identityOnly: true,+ token,+ userId: ctx.userId,+ workspaceId: ctx.workspaceId,+ });+ if (!probe.success || !probe.identity) {+ throw new TRPCError({+ code: 'PRECONDITION_FAILED',+ message: probe.error ?? 'Device is offline or does not support workspace sharing.',+ });+ }++ // Fail a cross-user PRIVATE collision NOW, before the machine opens and+ // persists a workspace share connection — rejecting only at the later+ // row write would leave the device connected (and auto-reconnecting)+ // under the very id the rejection protects.+ try {+ await model.assertNoCrossUserPrivateConflict(probe.identity.deviceId);+ } catch (error) {+ if (error instanceof WorkspaceDevicePrivateConflictError) {+ throw new TRPCError({ code: 'CONFLICT', message: error.message });+ }+ throw error;+ }++ // Caller-invisible rows (another member's private enrollment) were+ // rejected above, so an undefined here really means "no row yet".+ const existing = await model.findWorkspaceDeviceById(probe.identity.deviceId);+ if (existing) {+ if (!input.confirmOverwrite) {+ return {+ alreadyEnrolled: true as const,+ deviceId: existing.deviceId,+ success: false as const,+ visibility: existing.visibility,+ };+ }+ const role = (ctx as { workspaceRole?: WorkspaceRole }).workspaceRole;+ if (!canEditWorkspaceDevice(role, ctx.userId, existing.userId)) {+ throw new TRPCError({+ code: 'FORBIDDEN',+ message: 'Only the enrolling member or a workspace owner can overwrite this device.',+ });+ }+ }++ // Real enrollment — only after the caller is committed (no pending+ // confirmation and permission checks passed).+ const result = await deviceGateway.enrollWorkspace({+ deviceId: personal.deviceId,+ token,+ userId: ctx.userId,+ workspaceId: ctx.workspaceId,+ });+ if (!result.success || !result.identity) {+ throw new TRPCError({+ code: 'PRECONDITION_FAILED',+ message: result.error ?? 'Device is offline or does not support workspace sharing.',+ });+ }++ if (existing) {+ const row = await model.overwriteSharedWorkspaceDevice(existing.deviceId, {+ sharedFromDeviceId: personal.deviceId,+ visibility: input.visibility ?? 'private',+ });+ if (personal.friendlyName && !row?.friendlyName) {+ await model.updateWorkspaceDevice(existing.deviceId, {+ friendlyName: personal.friendlyName,+ });+ }+ return {+ deviceId: existing.deviceId,+ success: true as const,+ visibility: row?.visibility ?? input.visibility ?? 'private',+ };+ }++ let row;+ try {+ row = await model.registerWorkspaceDevice({+ deviceId: result.identity.deviceId,+ hostname: personal.hostname,+ identitySource: result.identity.identitySource,+ platform: personal.platform,+ sharedFromDeviceId: personal.deviceId,+ visibility: input.visibility,+ workspaceId: ctx.workspaceId,+ });+ } catch (error) {+ // The machine has already opened and persisted a share connection+ // above, and this (private-by-default) row is what hides it from other+ // members — on ANY write failure (conflict race, transient DB error),+ // best-effort roll the connection back so it doesn't linger as an+ // unregistered workspace ghost, then surface the original error.+ await deviceGateway.unenrollWorkspace({+ deviceId: result.identity.deviceId,+ userId: ctx.userId,+ workspaceId: ctx.workspaceId,+ });+ if (error instanceof WorkspaceDevicePrivateConflictError) {+ throw new TRPCError({ code: 'CONFLICT', message: error.message });+ }+ throw error;+ }+ // Carry the personal alias over on first share so the workspace list shows+ // the machine under the name its owner gave it; never clobber a name a+ // re-share conflict-preserved.+ if (personal.friendlyName && !row.friendlyName) {+ await model.updateWorkspaceDevice(row.deviceId, { friendlyName: personal.friendlyName });+ }++ return { deviceId: row.deviceId, success: true as const, visibility: row.visibility };+ }),++ /**+ * Publish a private workspace device to the shared pool, or pull a public one+ * back to private. Mirrors the agent/file `setVisibility` contract:+ * - the enrolling member may toggle their own device both ways;+ * - a workspace owner may demote any *visible* (public) device — other+ * members' private devices are invisible to owners by design (the lookup+ * below already fails closed with NOT_FOUND), so publishing someone+ * else's private device is impossible.+ */+ setWorkspaceDeviceVisibility: wsWritableProcedure+ .use(serverDatabase)+ .input(+ z.object({+ deviceId: z.string(),+ visibility: z.enum(['private', 'public']),}),).mutation(async ({ ctx, input }) => {const model = new DeviceModel(ctx.serverDB, ctx.userId, ctx.workspaceId);- return model.registerWorkspaceDevice({ ...input, workspaceId: ctx.workspaceId });+ const row = await model.findWorkspaceDeviceById(input.deviceId);+ if (!row) {+ throw new TRPCError({ code: 'NOT_FOUND', message: 'Workspace device not found.' });+ }+ if (row.visibility === input.visibility) return { success: true };+ const role = (ctx as { workspaceRole?: WorkspaceRole }).workspaceRole;+ if (!canEditWorkspaceDevice(role, ctx.userId, row.userId)) {+ throw new TRPCError({+ code: 'FORBIDDEN',+ message:+ 'Only the enrolling member or a workspace owner can change this device visibility.',+ });+ }+ await model.setWorkspaceDeviceVisibility(input.deviceId, input.visibility);+ return { success: true };}),/**@@ -910,6 +1185,32 @@ export const deviceRouter = router({message: 'Only the enrolling member or a workspace owner can remove this device.',});}+ // Tell a live device to drop its workspace connection and stop+ // auto-reconnecting, so removal doesn't leave an online ghost. For most+ // rows this stays best-effort — an offline device simply stops resolving.+ const unenrolled = await deviceGateway.unenrollWorkspace({+ deviceId: input.deviceId,+ userId: ctx.userId,+ workspaceId: ctx.workspaceId,+ });+ // But never delete the row under a still-live socket that did not+ // acknowledge the unenroll (old client without the handler, RPC error):+ // for a PRIVATE row that would resurface the machine to other members+ // (the row is the only thing `queryWorkspaceHiddenDeviceIds` hides it+ // by), and for ANY row it leaves an unregistered ghost that members can+ // still dispatch to yet can no longer remove — there is no row left to+ // delete. Fail the removal while the socket is demonstrably alive; a+ // dead socket can't ghost, so an offline device still deletes fine.+ if (!unenrolled.success) {+ const online = await deviceGateway.queryDeviceList(ctx.userId, ctx.workspaceId);+ if (online.some((d) => d.deviceId === input.deviceId)) {+ throw new TRPCError({+ code: 'PRECONDITION_FAILED',+ message:+ 'The device is still connected but did not acknowledge the unenroll — retry once it has disconnected or updated its client.',+ });+ }+ }await model.deleteWorkspaceDevice(input.deviceId);return { success: true };}),diff --git a/apps/server/src/routers/lambda/deviceWorkspaceGuard.ts b/apps/server/src/routers/lambda/deviceWorkspaceGuard.tsindex 7cac680ddbe..f99d99a4f0f 100644--- a/apps/server/src/routers/lambda/deviceWorkspaceGuard.ts+++ b/apps/server/src/routers/lambda/deviceWorkspaceGuard.ts@@ -50,3 +50,27 @@ export const assertWorkspaceRootApproved = async (});}};++/**+ * Enforce the workspace device-visibility boundary for RPC routes.+ *+ * The gateway pool is addressed by workspace principal + deviceId and knows+ * nothing about visibility, so filtering the LIST paths is not enough — a+ * member holding another member's private deviceId (cached response,+ * pre-demotion state) could still drive tool/git/file RPCs against that+ * machine. Called once from `deviceProcedure` for every route that takes a+ * `deviceId` input: a workspace-scoped call against a device hidden from the+ * caller fails closed with the same NOT_FOUND an unknown device produces.+ *+ * Personal deviceIds are never in the hidden set (different hash domain), and+ * transient gateway-only devices (no DB row) are public by definition.+ */+export const assertWorkspaceDeviceVisible = async (+ deviceModel: DeviceModel,+ deviceId: string,+): Promise<void> => {+ const hiddenIds = await deviceModel.queryWorkspaceHiddenDeviceIds();+ if (hiddenIds.includes(deviceId)) {+ throw new TRPCError({ code: 'NOT_FOUND', message: 'Workspace device not found.' });+ }+};diff --git a/apps/server/src/routers/lambda/index.ts b/apps/server/src/routers/lambda/index.tsindex 73ba1596f11..f316039f4fe 100644--- a/apps/server/src/routers/lambda/index.ts+++ b/apps/server/src/routers/lambda/index.ts@@ -81,6 +81,7 @@ import { userMemoryRouter } from './userMemory';import { verifyRouter } from './verify';import { videoRouter } from './video';import { webBrowsingRouter } from './webBrowsing';+import { workspaceUserSettingsRouter } from './workspaceUserSettings';export const lambdaRouter = router({agent: agentRouter,@@ -155,6 +156,7 @@ export const lambdaRouter = router({workspaceData: workspaceDataRouter,workspaceMember: workspaceMemberRouter,workspaceUsage: workspaceUsageRouter,+ workspaceUserSettings: workspaceUserSettingsRouter,accountDeletion: accountDeletionRouter,pageShare: pageShareRouter,referral: referralRouter,diff --git a/apps/server/src/routers/lambda/workspaceUserSettings.ts b/apps/server/src/routers/lambda/workspaceUserSettings.tsnew file mode 100644index 00000000000..d03ac5529dc--- /dev/null+++ b/apps/server/src/routers/lambda/workspaceUserSettings.ts@@ -0,0 +1,82 @@+import type { WorkspaceUserPreference } from '@lobechat/types';+import { TRPCError } from '@trpc/server';+import { z } from 'zod';++import { wsCompatProcedure } from '@/business/server/trpc-middlewares/workspaceAuth';+import { WorkspaceUserSettingsModel } from '@/database/models/workspaceUserSettings';+import { router } from '@/libs/trpc/lambda';+import { serverDatabase } from '@/libs/trpc/lambda/middleware';++/**+ * Per-user preferences scoped to the current workspace. Every procedure is+ * scoped to `(ctx.workspaceId, ctx.userId)` — the caller can only ever read+ * or write their own row. Personal mode (`ctx.workspaceId` is null) rejects+ * every call: this is workspace-mode data by construction.+ */+const workspaceUserSettingsProcedure = wsCompatProcedure.use(serverDatabase).use(async (opts) => {+ const { ctx } = opts;+ if (!ctx.workspaceId) {+ throw new TRPCError({+ code: 'BAD_REQUEST',+ message: 'workspace_user_settings is workspace-scoped; no workspace on this request',+ });+ }+ return opts.next({+ ctx: {+ workspaceUserSettingsModel: new WorkspaceUserSettingsModel(+ ctx.serverDB,+ ctx.userId,+ ctx.workspaceId,+ ),+ },+ });+});++// Kept loose (`.passthrough().partial()`) so a future field addition to+// `WorkspaceUserPreference` doesn't need a coupled zod-schema bump — the+// type layer already constrains the write paths.+const preferencePatchSchema = z.object({}).passthrough().partial();++export const workspaceUserSettingsRouter = router({+ /**+ * Fetch the caller's preference for the current workspace. Returns an+ * empty object when no row has been written yet — consumers should treat+ * that as "use defaults".+ */+ getPreference: workspaceUserSettingsProcedure.query(+ async ({ ctx }): Promise<WorkspaceUserPreference> => {+ try {+ return await ctx.workspaceUserSettingsModel.getPreference();+ } catch (error) {+ console.error('[workspaceUserSettings:getPreference]', error);+ throw new TRPCError({+ cause: error,+ code: 'INTERNAL_SERVER_ERROR',+ message: 'Failed to load workspace user settings',+ });+ }+ },+ ),++ /**+ * Merge `input` on top of the caller's current preference and persist via+ * UPSERT. First call for a `(workspace, user)` pair creates the row.+ */+ updatePreference: workspaceUserSettingsProcedure+ .input(preferencePatchSchema)+ .mutation(async ({ ctx, input }) => {+ try {+ const row = await ctx.workspaceUserSettingsModel.updatePreference(+ input as Partial<WorkspaceUserPreference>,+ );+ return { data: row?.preference ?? {}, message: 'Updated', success: true };+ } catch (error) {+ console.error('[workspaceUserSettings:updatePreference]', error);+ throw new TRPCError({+ cause: error,+ code: 'INTERNAL_SERVER_ERROR',+ message: 'Failed to update workspace user settings',+ });+ }+ }),+});diff --git a/apps/server/src/services/agentRuntime/AgentRuntimeService.ts b/apps/server/src/services/agentRuntime/AgentRuntimeService.tsindex c31a9294f28..177edce03c9 100644--- a/apps/server/src/services/agentRuntime/AgentRuntimeService.ts+++ b/apps/server/src/services/agentRuntime/AgentRuntimeService.ts@@ -429,6 +429,7 @@ export class AgentRuntimeService {async createOperation(params: OperationCreationParams): Promise<OperationCreationResult> {const {activeDeviceId,+ activeDeviceScope,operationId,initialContext,agentConfig,@@ -523,6 +524,7 @@ export class AgentRuntimeService {messages: initialMessages,metadata: {activeDeviceId,+ activeDeviceScope,agentConfig,agentGroup,botContext,diff --git a/apps/server/src/services/agentRuntime/types.ts b/apps/server/src/services/agentRuntime/types.tsindex c4141dce98b..69df2a8832f 100644--- a/apps/server/src/services/agentRuntime/types.ts+++ b/apps/server/src/services/agentRuntime/types.ts@@ -317,6 +317,13 @@ export interface ExecGroupMemberResult {export interface OperationCreationParams {activeDeviceId?: string;+ /**+ * Principal pool the routed `activeDeviceId` lives in. `personal` when a+ * workspace run was routed to the caller's own device via a per-user+ * `local` override — device runtimes must then address it through the+ * personal `(userId, deviceId)` pool instead of the `workspace:<id>` pool.+ */+ activeDeviceScope?: 'personal' | 'workspace';agentConfig?: any;/*** Multi-agent group (or bot-conversation fallback) context, resolved once atdiff --git a/apps/server/src/services/aiAgent/index.ts b/apps/server/src/services/aiAgent/index.tsindex 55c5a25a043..021863ba923 100644--- a/apps/server/src/services/aiAgent/index.ts+++ b/apps/server/src/services/aiAgent/index.ts@@ -59,6 +59,7 @@ import {getWorkingDirEffectivePath,ReasoningGraphSchema,RequestTrigger,+ resolveAgencyConfig,ThreadStatus,ThreadType,} from '@lobechat/types';@@ -83,6 +84,7 @@ import { ThreadModel } from '@/database/models/thread';import { TopicModel } from '@/database/models/topic';import { UserModel } from '@/database/models/user';import { UserPersonaModel } from '@/database/models/userMemory/persona';+import { WorkspaceUserSettingsModel } from '@/database/models/workspaceUserSettings';import { toolsEnv } from '@/envs/tools';import {type ExecutionPlan,@@ -1085,6 +1087,33 @@ export class AiAgentService {// Use actual agent ID from config for subsequent operationsconst resolvedAgentId = agentConfig.id;+ // Layer this caller's per-user device override (LOBE-11689) over the shared+ // agencyConfig so THIS user's Cloud Sandbox / workspace-device / local pick+ // drives dispatch instead of whichever choice landed on the shared row.+ // Only applied for workspace agents — personal agents already have a single+ // owner whose choice IS the shared config. The override lives in the+ // dedicated `workspace_user_settings` table (per-(workspace, user)) so it+ // stays orthogonal to member-list queries and cascades on either identity+ // delete. `resolveAgencyConfig` is a no-op when no override exists, so a+ // first-open (or a member who hasn't touched the switcher) transparently+ // sees the shared default.+ if (this.workspaceId) {+ try {+ const workspaceUserSettings = new WorkspaceUserSettingsModel(+ this.db,+ this.userId,+ this.workspaceId,+ );+ const preference = await workspaceUserSettings.getPreference();+ const override = preference.agentDeviceOverrides?.[resolvedAgentId];+ agentConfig.agencyConfig = resolveAgencyConfig(agentConfig.agencyConfig, override);+ } catch (error) {+ // Losing the override is non-fatal: dispatch falls back to the shared+ // agencyConfig, which is exactly the pre-LOBE-11689 behaviour.+ log('execAgent: failed to load caller workspace_user_settings override: %O', error);+ }+ }+// Persistence-attribution agent id. Background Agent Signal runs (memory /// skill / self-reflection) execute under a builtin slug, so `resolvedAgentId`// is the builtin agent — but the run's persisted messages, like its operation@@ -2214,6 +2243,7 @@ export class AiAgentService {const toolExecutorMap: Record<string, ToolExecutor> = {};let onlineDevices: DeviceAttachment[] = [];let activeDeviceId: string | undefined;+ let activeDeviceScope: 'personal' | 'workspace' | undefined;let executionPlan: ExecutionPlan | undefined;let hasAgentDocuments = false;let hasEnabledKnowledgeBases = false;@@ -2510,6 +2540,33 @@ export class AiAgentService {onlineDevices = (await getScopedOnlineDevices(this.db, this.userId, this.workspaceId)).filter((d) => d.online);+ // A workspace agent whose caller pinned this desktop's personal+ // deviceId via `users.preference.agentDeviceOverrides` (LOBE-11689,+ // the `local` code path in `useSelectExecutionTarget`) needs its+ // personal device to be visible in this run's device pool — otherwise+ // `resolveExecutionPlan` treats the bound device as offline and the+ // run stays unrouted. The workspace pool never includes personal+ // devices by design (`getScopedOnlineDevices` enforces the strict+ // scope), so union the specific personal device in here. The device+ // is dispatchable because the gateway routes it by+ // `(userId, deviceId)` — the caller owns it.+ if (this.workspaceId && agentConfig.agencyConfig?.boundDeviceId) {+ const boundId = agentConfig.agencyConfig.boundDeviceId;+ const alreadyIncluded = onlineDevices.some((d) => d.deviceId === boundId);+ if (!alreadyIncluded) {+ const personalPool = await getScopedOnlineDevices(this.db, this.userId).catch(+ () => [] as DeviceAttachment[],+ );+ const personalMatch = personalPool.find((d) => d.deviceId === boundId && d.online);+ if (personalMatch) {+ onlineDevices = [...onlineDevices, personalMatch];+ log(+ 'execAgent: augmented device pool with caller personal device %s (per-user override)',+ boundId,+ );+ }+ }+ }log('execAgent: found %d online device(s)', onlineDevices.length);} catch (error) {log('execAgent: failed to query device list: %O', error);@@ -2601,10 +2658,21 @@ export class AiAgentService {// follow the user's choice, never re-list or switch machines mid-run.const deviceLocked = isDeviceLockedPlan(executionPlan);activeDeviceId = executionPlan.kind === 'device' ? executionPlan.deviceId : undefined;+ // Which principal pool the routed device lives in. A workspace run with a+ // per-user `local` override (LOBE-11689) routes to the caller's PERSONAL+ // device — the union above added it from the personal pool — and the+ // device runtimes must address it via `(userId, deviceId)`, not the+ // `workspace:<id>` pool where it has no connection. Carried through+ // operation metadata into `ToolExecutionContext` and read by+ // `resolveRunWorkspaceId`.+ activeDeviceScope = activeDeviceId+ ? onlineDevices.find((d) => d.deviceId === activeDeviceId)?.scope+ : undefined;log(- 'execAgent: execution plan → kind=%s deviceId=%s',+ 'execAgent: execution plan → kind=%s deviceId=%s scope=%s',executionPlan.kind,activeDeviceId ?? 'none',+ activeDeviceScope ?? 'none',);// A device-targeted run that could not be routed silently degrades exec// (lobe-skills runCommand/execScript) to the cloud sandbox. Surface it as@@ -3565,6 +3633,7 @@ export class AiAgentService {try {const result = await this.agentRuntimeService.createOperation({activeDeviceId,+ activeDeviceScope,agentConfig,agentGroup: operationAgentGroup,deviceSystemInfo: Object.keys(deviceSystemInfo).length > 0 ? deviceSystemInfo : undefined,diff --git a/apps/server/src/services/deviceGateway/index.ts b/apps/server/src/services/deviceGateway/index.tsindex d0af7300073..f0102342287 100644--- a/apps/server/src/services/deviceGateway/index.ts+++ b/apps/server/src/services/deviceGateway/index.ts@@ -247,6 +247,97 @@ export class DeviceGateway {}}+ /**+ * Instruct an ONLINE personal device to enroll itself into a workspace: the+ * device derives its workspace-scoped deviceId and opens a second gateway+ * connection under the `workspace:<id>` principal using the short-lived+ * `token` (a signed workspace-device connect token), then returns the derived+ * identity so the caller can register the workspace row server-side. Rides+ * the generic device RPC relay over the PERSONAL pool (no `workspaceId` in+ * the address — the workspace connection doesn't exist yet). Failures are+ * RETURNED with their reason — the share flow must tell the user why the+ * device couldn't enroll (offline, outdated client) instead of silently+ * doing nothing.+ */+ async enrollWorkspace(params: {+ deviceId: string;+ /**+ * Dry-run: the device only derives and returns its workspace identity,+ * without opening a share connection or persisting enrollment state.+ * Older clients ignore the flag and enroll on the probe (pre-flag+ * behaviour), so callers must treat the probe as possibly-enrolling.+ */+ identityOnly?: boolean;+ timeout?: number;+ token: string;+ userId: string;+ workspaceId: string;+ }): Promise<{+ error?: string;+ identity?: { deviceId: string; identitySource: 'fallback' | 'machine-id' };+ success: boolean;+ }> {+ const { deviceId, identityOnly, timeout = 30_000, token, userId, workspaceId } = params;+ const client = this.getClient();+ if (!client) return { error: 'Device Gateway is not configured', success: false };++ try {+ const result = await client.invokeRpc<{+ deviceId: string;+ identitySource: 'fallback' | 'machine-id';+ }>(+ { deviceId, timeout, userId },+ {+ method: 'enrollWorkspace',+ params: { ...(identityOnly ? { identityOnly } : {}), token, workspaceId },+ },+ );++ if (!result.success || !result.data) {+ return { error: result.error || 'enrollWorkspace failed', success: false };+ }++ return { identity: result.data, success: true };+ } catch (error) {+ const message = error instanceof Error ? error.message : String(error);+ log('enrollWorkspace: error for deviceId=%s — %s', deviceId, message);+ return { error: message, success: false };+ }+ }++ /**+ * Instruct an ONLINE workspace device to drop its enrollment: close the+ * workspace-principal connection and clear any persisted auto-reconnect state+ * on the machine. Addressed over the WORKSPACE pool (the connection being+ * killed), so it works regardless of who enrolled the device or whether a+ * personal connection exists. Best-effort — callers delete the DB row either+ * way, so an offline device simply loses its row and stops resolving.+ */+ async unenrollWorkspace(params: {+ deviceId: string;+ timeout?: number;+ userId: string;+ workspaceId: string;+ }): Promise<{ error?: string; success: boolean }> {+ const { deviceId, timeout = 10_000, userId, workspaceId } = params;+ const client = this.getClient();+ if (!client) return { error: 'Device Gateway is not configured', success: false };++ try {+ const result = await client.invokeRpc<{ success: boolean }>(+ { deviceId, timeout, userId, workspaceId },+ { method: 'unenrollWorkspace', params: { workspaceId } },+ );+ if (!result.success)+ return { error: result.error || 'unenrollWorkspace failed', success: false };+ return { success: true };+ } catch (error) {+ const message = error instanceof Error ? error.message : String(error);+ log('unenrollWorkspace: error for deviceId=%s — %s', deviceId, message);+ return { error: message, success: false };+ }+ }+/*** Generic helper for the granular git read RPCs (branch / PR / working-tree /* ahead-behind). Returns `undefined` when the gateway is unconfigured, thediff --git a/apps/server/src/services/deviceGateway/scopedDevices.ts b/apps/server/src/services/deviceGateway/scopedDevices.tsindex 352f51346f0..a3539cbbd21 100644--- a/apps/server/src/services/deviceGateway/scopedDevices.ts+++ b/apps/server/src/services/deviceGateway/scopedDevices.ts@@ -41,13 +41,26 @@ export const getScopedOnlineDevices = async (const deviceModel = new DeviceModel(serverDB, userId, workspaceId);const scope: 'personal' | 'workspace' = workspaceId ? 'workspace' : 'personal';- const [rows, online] = await Promise.all([+ const [rows, hiddenIds, online] = await Promise.all([(workspaceId ? deviceModel.queryWorkspaceDevices() : deviceModel.queryPersonal()).catch((error) => {log('DB device lookup failed (scope=%s); using gateway only: %O', scope, error);return [] as Awaited<ReturnType<typeof deviceModel.queryPersonal>>;},),+ // Other members' PRIVATE workspace enrollments. The gateway pool is+ // visibility-blind (every enrolled device connects under the same+ // `workspace:<id>` principal), so these must be dropped from the transient+ // "online but unregistered" fallback below or they'd leak into every+ // member's agent runs. `null` (lookup failed) fails CLOSED: without the+ // hidden set we can't tell a genuine ghost from someone's private device,+ // so workspace-scope transients are suppressed entirely for that request.+ workspaceId+ ? deviceModel.queryWorkspaceHiddenDeviceIds().catch((error) => {+ log('DB hidden-device lookup failed; suppressing transient devices: %O', error);+ return null;+ })+ : Promise.resolve([] as string[]),deviceGateway.queryDeviceList(userId, workspaceId),]);@@ -68,9 +81,15 @@ export const getScopedOnlineDevices = async (};});// Online in the gateway but not yet auto-registered in the DB (no alias yet).- const transient = online- .filter((d) => !seen.has(d.deviceId))- .map((d): DeviceAttachment => ({ ...d, friendlyName: null, scope }));+ // Excludes other members' private enrollments (`hiddenIds`); when the hidden+ // lookup itself failed (`null`) no workspace transient is safe to show.+ const hidden = new Set(hiddenIds ?? []);+ const transient =+ hiddenIds === null+ ? []+ : online+ .filter((d) => !seen.has(d.deviceId) && !hidden.has(d.deviceId))+ .map((d): DeviceAttachment => ({ ...d, friendlyName: null, scope }));return [...fromDb, ...transient];};diff --git a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.ts b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.tsindex 4716a68beab..d9d3ba882a4 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/localSystem.test.ts@@ -143,6 +143,35 @@ describe('localSystemRuntime', () => {);});+ it('addresses a personal-scope active device via the personal pool even in a workspace run', async () => {+ // Workspace agent + per-user `local` override (LOBE-11689): the routed+ // device only has a connection under the personal principal, so the+ // workspace id must NOT be forwarded to the gateway call.+ const context: ToolExecutionContext = {+ activeDeviceId: 'device-personal',+ activeDeviceScope: 'personal',+ toolManifestMap: {},+ userId: 'user-1',+ workspaceId: 'ws-42',+ };++ mockExecuteToolCall.mockResolvedValue({ content: '', success: true });++ const proxy = localSystemRuntime.factory(context);+ const apiName = LocalSystemManifest.api[0].name;++ await proxy[apiName]({ path: '/tmp' });++ expect(mockExecuteToolCall).toHaveBeenCalledWith(+ { deviceId: 'device-personal', userId: 'user-1', workspaceId: undefined },+ expect.objectContaining({+ apiName,+ identifier: LocalSystemIdentifier,+ }),+ undefined,+ );+ });+it('recovers the workspace scope from the running agent when context.workspaceId is missing', async () => {// Minimal drizzle-like chain resolving the agent's workspace_id.const serverDB = {diff --git a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/remoteDevice.test.ts b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/remoteDevice.test.tsindex 1508c9f06b4..206ef1806c3 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/__tests__/remoteDevice.test.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/__tests__/remoteDevice.test.ts@@ -17,10 +17,12 @@ vi.mock('@/server/services/deviceGateway', () => ({// Mock the DeviceModel so the runtime's DB-backed lookups are observable.const mockQueryPersonal = vi.fn();const mockQueryWorkspaceDevices = vi.fn();+const mockQueryWorkspaceHiddenDeviceIds = vi.fn();vi.mock('@/database/models/device', () => ({DeviceModel: vi.fn().mockImplementation(() => ({queryPersonal: mockQueryPersonal,queryWorkspaceDevices: mockQueryWorkspaceDevices,+ queryWorkspaceHiddenDeviceIds: mockQueryWorkspaceHiddenDeviceIds,})),}));@@ -45,6 +47,8 @@ beforeEach(() => {mockQueryPersonal.mockResolvedValue([]);mockQueryWorkspaceDevices.mockReset();mockQueryWorkspaceDevices.mockResolvedValue([]);+ mockQueryWorkspaceHiddenDeviceIds.mockReset();+ mockQueryWorkspaceHiddenDeviceIds.mockResolvedValue([]);});describe('remoteDeviceRuntime', () => {diff --git a/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.ts b/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.tsindex 436786e7515..1350cc2b8c8 100644--- a/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.ts+++ b/apps/server/src/services/toolExecution/serverRuntimes/resolveWorkspaceScope.ts@@ -7,7 +7,10 @@ import { type ToolExecutionContext } from '../types';const log = debug('lobe-server:device-scope');-type DeviceScopeContext = Pick<ToolExecutionContext, 'agentId' | 'serverDB' | 'workspaceId'>;+type DeviceScopeContext = Pick<+ ToolExecutionContext,+ 'activeDeviceScope' | 'agentId' | 'serverDB' | 'workspaceId'+>;/*** The workspace scope a device tool call should run under: the run-scoped@@ -21,10 +24,17 @@ type DeviceScopeContext = Pick<ToolExecutionContext, 'agentId' | 'serverDB' | 'w* `workspace:<id>` gateway pool instead of silently falling back to the personal* pool. Unscoped lookup by id on purpose: the run already authorized this agent,* we only read which workspace it belongs to.+ *+ * EXCEPTION: a run whose active device is PERSONAL-scope (a workspace agent+ * routed to the caller's own machine via the per-user `local` override,+ * LOBE-11689) must be addressed through the personal `(userId, deviceId)`+ * pool — that device has no connection under the `workspace:<id>` principal,+ * so a workspace-addressed call would simply miss it.*/export const resolveRunWorkspaceId = async (context: DeviceScopeContext,): Promise<string | undefined> => {+ if (context.activeDeviceScope === 'personal') return undefined;if (context.workspaceId) return context.workspaceId;const { agentId, serverDB } = context;diff --git a/apps/server/src/services/toolExecution/types.ts b/apps/server/src/services/toolExecution/types.tsindex 45e6a86d17e..09becd1c84f 100644--- a/apps/server/src/services/toolExecution/types.ts+++ b/apps/server/src/services/toolExecution/types.ts@@ -127,6 +127,15 @@ export interface ToolExecutionContext {activatedSkills?: StepActivatedSkill[];/** Target device ID for device proxy tool calls */activeDeviceId?: string;+ /**+ * Principal pool `activeDeviceId` lives in. `personal` when a workspace run+ * was routed to the caller's own device via a per-user `local` override —+ * `resolveRunWorkspaceId` then addresses gateway calls through the personal+ * `(userId, deviceId)` pool instead of the `workspace:<id>` pool, where that+ * device has no connection. Absent on runs without a run-start device (a+ * mid-run activation always picks from the workspace pool).+ */+ activeDeviceScope?: 'personal' | 'workspace';/** Agent ID executing the tool call */agentId?: string;/**diff --git a/eslint-suppressions.json b/eslint-suppressions.jsonindex e8f54b2165e..0a46943417f 100644--- a/eslint-suppressions.json+++ b/eslint-suppressions.json@@ -884,11 +884,6 @@"count": 1}},- "src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx": {- "no-restricted-imports": {- "count": 1- }- },"src/routes/(main)/agent/features/Conversation/AgentWelcome/ToolAuthAlert.tsx": {"no-restricted-imports": {"count": 2@@ -1269,11 +1264,6 @@"count": 1}},- "src/routes/(main)/settings/devices/index.tsx": {- "no-restricted-imports": {- "count": 1- }- },"src/routes/(main)/settings/features/UpgradeAlert.tsx": {"no-restricted-imports": {"count": 1diff --git a/locales/ar/chat.json b/locales/ar/chat.jsonindex ac1b7a9ea0b..f6bc0b1021e 100644--- a/locales/ar/chat.json+++ b/locales/ar/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "المساعد المدمج","chatList.expandMessage": "توسيع الرسالة","chatList.longMessageDetail": "عرض التفاصيل",- "chatList.refreshing": "جلب أحدث الرسائل...",+ "chatList.refreshError": "تعذر تحديث الرسائل","chatMode.agent": "وكيل","chatMode.agentCap.env": "بيئة التشغيل","chatMode.agentCap.files": "الوصول إلى الملفات",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} ساعات","cliRateLimitGuide.relative.minute_one": "{{count}} دقيقة","cliRateLimitGuide.relative.minute_other": "{{count}} دقائق",+ "cliRateLimitGuide.relative.resetComplete": "تمت إعادة التعيين بنجاح","cliRateLimitGuide.relative.soon": "يعاد التعيين قريبًا","cliRateLimitGuide.resetAt": "يعاد التعيين في",+ "cliRateLimitGuide.resetIn": "الوقت المتبقي","cliRateLimitGuide.resetInApprox": "يعاد التعيين تقريبًا خلال {{duration}}",+ "cliRateLimitGuide.resetUnknown": "إعادة تعيين الحصة","cliRateLimitGuide.title": "تم الوصول إلى حد استخدام {{name}}","codexInstallGuide.actions.openDocs": "افتح دليل التثبيت","codexInstallGuide.actions.openSystemTools": "افتح أدوات النظام",@@ -404,6 +407,10 @@"inputQueue.edit": "تحرير","inputQueue.sendNow": "أرسل الآن (يُوقف التشغيل الحالي)","intentUnderstanding.title": "جارٍ فهم نيتك...",+ "internalLink.agent.open": "فتح الوكيل",+ "internalLink.preview.agent": "وكيل",+ "internalLink.preview.document": "صفحة",+ "internalLink.preview.task": "مهمة","inviteMembers": "دعوة الأعضاء","knowledgeBase.all": "كل المحتوى","knowledgeBase.allFiles": "كل الملفات",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "جاري التشغيل… يمكنك تبديل المهام أو إغلاق الصفحة — ستستمر المهمة بالعمل.","operation.heterogeneousAgentFallback": "وكيل خارجي","operation.sendMessage": "جارٍ إرسال الرسالة",+ "operation.streamRetry": "{{name}} المصدر مشغول ({{status}})، إعادة المحاولة",+ "operation.streamRetry.unknownStatus": "حالة غير معروفة",+ "operation.streamRetry.withAttempt": "{{name}} المصدر مشغول ({{status}})، إعادة المحاولة {{attempt}}/{{maxAttempts}}","owner": "مالك المجموعة","pageCopilot.title": "وكيل الصفحة","pageCopilot.welcome": "**كتابة أوضح وأكثر دقة**\n\nاكتب مسودة أو أعد الصياغة أو حسّن—أخبرني بنيتك وسأتولى الباقي.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "تمت كتابة ملف","workflow.working": "جارٍ العمل...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "رجوع",+ "workingPanel.browser.actions.capture": "نسخ لقطة الشاشة",+ "workingPanel.browser.actions.captured": "تم نسخ لقطة الشاشة إلى الحافظة",+ "workingPanel.browser.actions.failed": "فشل إجراء المتصفح",+ "workingPanel.browser.actions.forward": "تقدم",+ "workingPanel.browser.actions.openExternal": "فتح في متصفح النظام",+ "workingPanel.browser.actions.reload": "إعادة تحميل",+ "workingPanel.browser.actions.stop": "إيقاف التحميل",+ "workingPanel.browser.addressPlaceholder": "ابحث أو أدخل العنوان",+ "workingPanel.browser.desktopOnly": "المتصفح داخل التطبيق متاح فقط في تطبيق سطح المكتب",+ "workingPanel.browser.empty.desc": "أدخل عنوانًا أو ابحث أعلاه لفتح صفحة",+ "workingPanel.browser.empty.title": "ابدأ التصفح",+ "workingPanel.browser.title": "المتصفح","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/ar/labs.json b/locales/ar/labs.jsonindex 6e1a03993c7..851e5ef197e 100644--- a/locales/ar/labs.json+++ b/locales/ar/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "التكرار الذاتي للوكيل","features.assistantMessageGroup.desc": "تجميع رسائل الوكيل ونتائج استدعاء الأدوات معًا للعرض","features.assistantMessageGroup.title": "تجميع رسائل الوكيل",+ "features.claudeCodeSdk.desc": "قم بتشغيل جلسات Claude Code من خلال Claude Agent SDK بدلاً من تشغيل واجهة سطر الأوامر (CLI). يتيح ذلك بثًا أكثر ثراءً وتحكمًا أفضل في الجلسات.",+ "features.claudeCodeSdk.title": "وقت تشغيل Claude Code SDK","features.fleet.desc": "عرض إدخال الأسطول في شريط العنوان — لوحة معلومات جنبًا إلى جنب لجميع المهام الجارية عبر وكلائك.","features.fleet.title": "عرض الأسطول","features.foldFinishedTurn.desc": "طي العملية (الاستدلال واستدعاءات الأدوات) للأدوار المكتملة وغير الأحدث تحت عنوان \"تمت المعالجة\". يبقى الجواب النهائي مرئيًا؛ انقر لتوسيع العملية.",diff --git a/locales/ar/providers.json b/locales/ar/providers.jsonindex 1d34808d382..b042d52f588 100644--- a/locales/ar/providers.json+++ b/locales/ar/providers.json@@ -64,6 +64,7 @@"stepfun.description": "تقدم نماذج Stepfun قدرات رائدة في التعدد الوسائطي والتفكير المعقد، مع فهم طويل للسياق وتنظيم بحث مستقل قوي.","straico.description": "يُبسط Straico دمج الذكاء الاصطناعي من خلال توفير مساحة عمل موحدة تجمع بين أفضل نماذج الذكاء الاصطناعي التوليدية للنصوص والصور والصوت، مما يمكّن المسوقين ورواد الأعمال والهواة من الوصول السلس إلى أدوات الذكاء الاصطناعي المتنوعة.","streamlake.description": "تعد StreamLake منصة سحابية للموديلات الذكية وحوسبة الذكاء الاصطناعي على مستوى المؤسسات، تجمع بين استدلال الموديلات عالي الأداء، وتخصيص الموديلات منخفض التكلفة، وخدمات مُدارة بالكامل، لتمكين المؤسسات من التركيز على ابتكار تطبيقات الذكاء الاصطناعي دون القلق بشأن تعقيد موارد الحوسبة الأساسية أو تكلفتها.",+ "supergrok.description": "قم بالوصول إلى نماذج Grok باستخدام اشتراك SuperGrok أو X Premium الخاص بك، دون الحاجة إلى مفتاح API.","taichu.description": "Taichu هو نموذج متعدد الوسائط من الجيل التالي من CASIA ومعهد ووهان للذكاء الاصطناعي، يدعم الأسئلة والأجوبة متعددة الجولات، والكتابة، وتوليد الصور، وفهم الأبعاد الثلاثية، وتحليل الإشارات بقدرات إدراكية وإبداعية متقدمة.","tencentcloud.description": "توفر Tencent Cloud محرك معرفة قائم على النماذج اللغوية الكبيرة يقدم إجابات معرفية شاملة للمؤسسات والمطورين، مع خدمات معيارية مثل تحليل المستندات، والتقسيم، والتضمين، وإعادة الصياغة متعددة الجولات لبناء حلول ذكاء اصطناعي مخصصة.","togetherai.description": "توفر Together AI أداءً رائدًا من خلال نماذج مبتكرة، وتخصيص واسع، وتوسع سريع، ونشر بسيط لتلبية احتياجات المؤسسات.",diff --git a/locales/ar/setting.json b/locales/ar/setting.jsonindex ca3b0335901..c5c2ce0bf98 100644--- a/locales/ar/setting.json+++ b/locales/ar/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "النموذج","defaultAgent.title": "إعدادات الوكيل الافتراضي","devices.actions.edit": "تعديل",+ "devices.actions.refresh": "تحديث","devices.actions.remove": "إزالة","devices.actions.removeSelected": "إزالة ({{count}})","devices.capabilities.commands.desc": "قم بتنفيذ أوامر الطرفية بأمان في بيئتك.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "يتضمن ذلك الجهاز الذي تستخدمه الآن — إزالته ستؤدي إلى قطع الاتصال بجلسة العمل الحالية.","devices.selection.selected": "{{count}} محدد","devices.selection.total": "{{count}} أجهزة",+ "devices.share.alreadyShared": "مشترك",+ "devices.share.badge": "مشترك في {{count}} مساحات عمل",+ "devices.share.confirm": "مشاركة",+ "devices.share.detailLabel": "مشترك في مساحات العمل",+ "devices.share.done": "تم",+ "devices.share.empty": "لم تنضم إلى أي مساحة عمل بعد.",+ "devices.share.goToTarget": "اذهب إلى {{name}}",+ "devices.share.menu": "شارك في مساحة العمل...",+ "devices.share.modalDesc": "اختر مساحة عمل لمشاركة هذا الجهاز فيها. يمكن للأعضاء تشغيل المهام عليه أثناء بقائه متصلاً.",+ "devices.share.modalTitle": "مشاركة الجهاز في مساحة العمل",+ "devices.share.offlineDesc": "يجب أن يكون الجهاز متصلاً لمشاركته",+ "devices.share.overwriteConfirmDesc": "هذه الآلة مسجلة بالفعل في مساحة العمل هذه بوصول {{current}}. هل تريد المتابعة لتغييرها إلى {{next}} وربطها بهذا الجهاز؟",+ "devices.share.overwriteConfirmOk": "استبدال",+ "devices.share.overwriteConfirmTitle": "مسجل بالفعل في {{name}} — هل تريد الاستبدال؟",+ "devices.share.revoke": "إلغاء المشاركة",+ "devices.share.revokeConfirmDesc": "سيتم إزالة الجهاز من مساحة العمل هذه. لن يتمكن الأعضاء من تشغيل المهام عليه بعد الآن؛ يمكنك مشاركته مرة أخرى في أي وقت.",+ "devices.share.revokeConfirmTitle": "إلغاء المشاركة من {{name}}؟",+ "devices.share.selectPlaceholder": "اختر مساحة عمل",+ "devices.share.sharedByTag": "مشترك بواسطة {{name}}",+ "devices.share.success": "تمت مشاركة الجهاز في {{name}}",+ "devices.share.targetLabel": "شارك في",+ "devices.share.viewerHint": "المشاهدون لا يمكنهم مشاركة الأجهزة",+ "devices.share.visibilityTag.private": "خاص",+ "devices.share.visibilityTag.public": "مساحة العمل","devices.status.offline": "غير متصل","devices.status.online": "متصل","devices.title": "أجهزتي",+ "devices.visibility.publish": "نشر في مساحة العمل",+ "devices.visibility.publishConfirmTitle": "هل تريد نشر هذا الجهاز في مساحة العمل؟",+ "devices.visibilityTabs.private": "خاص",+ "devices.visibilityTabs.workspace": "مساحة العمل","devices.workingDirectory": "دليل العمل: {{path}}","downloads.desktop.cta": "قم بتنزيل تطبيق سطح المكتب","downloads.desktop.desc": "استخدم تطبيق سطح المكتب الأصلي للملفات المحلية، وأدوات النظام، والعمل المركّز على جهاز الكمبيوتر الخاص بك.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "تم تسجيله بواسطة {{name}}","workspaceSetting.devices.enrolledByLabel": "تم تسجيله بواسطة","workspaceSetting.devices.heroDesc": "قم بتسجيل جهاز مشترك — مثل خادم بناء أو جهاز Mac لفريق العمل — وسيتمكن كل عضو من تشغيل الوكلاء عليه: قراءة/كتابة الملفات، تشغيل الأوامر، واستخدام أدوات النظام.",+ "workspaceSetting.devices.heroDescPrivate": "سجل جهازًا للاستخدام الشخصي في هذه مساحة العمل — لا يمكن للأعضاء الآخرين رؤيته أو استخدامه. قم بتشغيل الوكلاء عليه: قراءة/كتابة الملفات، تشغيل الأوامر، واستخدام أدوات النظام.","workspaceSetting.devices.heroTitle": "قم بتوصيل أول جهاز لمساحة العمل",+ "workspaceSetting.devices.heroTitlePrivate": "قم بتوصيل أول جهاز خاص بك","workspaceSetting.devices.offline": "غير متصل","workspaceSetting.devices.online": "متصل","workspaceSetting.devices.readonlyHint": "يمكن فقط للعضو الذي سجل هذا الجهاز أو مالك مساحة العمل إعادة تسميته أو إزالته.",diff --git a/locales/ar/spend.json b/locales/ar/spend.jsonindex d7fbd59c490..597f383eba2 100644--- a/locales/ar/spend.json+++ b/locales/ar/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "الرمز","usageStats.cards.tokenDesc": "الإدخال {{input}} · الإخراج {{output}}","usageStats.chart.cacheWrite": "كتابة التخزين المؤقت",+ "usageStats.chart.cachedInput": "الإدخال المخزن مؤقتًا","usageStats.chart.input": "الإدخال","usageStats.chart.output": "الإخراج","usageStats.chart.spend": "التكلفة",diff --git a/locales/bg-BG/chat.json b/locales/bg-BG/chat.jsonindex 4e83041a5ae..1534ca056fc 100644--- a/locales/bg-BG/chat.json+++ b/locales/bg-BG/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Вграден Копилот","chatList.expandMessage": "Разгъни съобщението","chatList.longMessageDetail": "Прегледай подробности",- "chatList.refreshing": "Извличане на най-новите съобщения...",+ "chatList.refreshError": "Неуспешно опресняване на съобщенията","chatMode.agent": "Агент","chatMode.agentCap.env": "Работна среда","chatMode.agentCap.files": "Достъп до файлове",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} часа","cliRateLimitGuide.relative.minute_one": "{{count}} минута","cliRateLimitGuide.relative.minute_other": "{{count}} минути",+ "cliRateLimitGuide.relative.resetComplete": "Нулирането е завършено","cliRateLimitGuide.relative.soon": "Нулира се скоро","cliRateLimitGuide.resetAt": "Нулира се на",+ "cliRateLimitGuide.resetIn": "Оставащо време","cliRateLimitGuide.resetInApprox": "Нулира се след около {{duration}}",+ "cliRateLimitGuide.resetUnknown": "квотата се нулира","cliRateLimitGuide.title": "Достигнат е лимитът за употреба на {{name}}","codexInstallGuide.actions.openDocs": "Отвори ръководството за инсталиране","codexInstallGuide.actions.openSystemTools": "Отвори системните инструменти",@@ -404,6 +407,10 @@"inputQueue.edit": "Редактирай","inputQueue.sendNow": "Изпрати сега (прекъсва текущото изпълнение)","intentUnderstanding.title": "Разбиране на вашето намерение...",+ "internalLink.agent.open": "Отвори агент",+ "internalLink.preview.agent": "Агент",+ "internalLink.preview.document": "Страница",+ "internalLink.preview.task": "Задача","inviteMembers": "Покани членове","knowledgeBase.all": "Цялото съдържание","knowledgeBase.allFiles": "Всички файлове",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Изпълнява се… Можете да превключите задачи или да затворите страницата — задачата ще продължи.","operation.heterogeneousAgentFallback": "Външен агент","operation.sendMessage": "Изпращане на съобщение",+ "operation.streamRetry": "{{name}} е претоварен ({{status}}), опит за повторение",+ "operation.streamRetry.unknownStatus": "неизвестен статус",+ "operation.streamRetry.withAttempt": "{{name}} е претоварен ({{status}}), опит за повторение {{attempt}}/{{maxAttempts}}","owner": "Собственик на групата","pageCopilot.title": "Агент на страницата","pageCopilot.welcome": "**По-ясно и прецизно писане**\n\nЧернова, пренаписване или редакция — кажете ми какво искате и аз ще се погрижа за останалото.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Записа файл","workflow.working": "В процес на работа...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Назад",+ "workingPanel.browser.actions.capture": "Копирай екранна снимка",+ "workingPanel.browser.actions.captured": "Екранната снимка е копирана в клипборда",+ "workingPanel.browser.actions.failed": "Действието на браузъра не бе успешно",+ "workingPanel.browser.actions.forward": "Напред",+ "workingPanel.browser.actions.openExternal": "Отвори в системния браузър",+ "workingPanel.browser.actions.reload": "Презареди",+ "workingPanel.browser.actions.stop": "Спри зареждането",+ "workingPanel.browser.addressPlaceholder": "Търсене или въведете адрес",+ "workingPanel.browser.desktopOnly": "Вграденият браузър е наличен само в десктоп приложението",+ "workingPanel.browser.empty.desc": "Въведете адрес или търсете по-горе, за да отворите страница",+ "workingPanel.browser.empty.title": "Започнете да сърфирате",+ "workingPanel.browser.title": "Браузър","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/bg-BG/labs.json b/locales/bg-BG/labs.jsonindex 01aa03687d5..a9ed2775bd6 100644--- a/locales/bg-BG/labs.json+++ b/locales/bg-BG/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Само-итерация на агента","features.assistantMessageGroup.desc": "Групиране на съобщенията от агента и резултатите от извикванията на инструменти заедно за показване","features.assistantMessageGroup.title": "Групиране на съобщения от агент",+ "features.claudeCodeSdk.desc": "Изпълнявайте сесии на Claude Code чрез Claude Agent SDK вместо да стартирате CLI. Осигурява по-богато стрийминг изживяване и контрол на сесиите.",+ "features.claudeCodeSdk.title": "Claude Code SDK Runtime","features.fleet.desc": "Показване на записа Fleet в заглавната лента — табло за управление, което показва всички текущи задачи на вашите агенти едновременно.","features.fleet.title": "Изглед Fleet","features.foldFinishedTurn.desc": "Свийте процеса (разсъждения и обаждания към инструменти) на завършени, не най-нови ходове на агента под заглавие \"Обработено\". Окончателният отговор остава видим; кликнете, за да разгънете процеса.",diff --git a/locales/bg-BG/providers.json b/locales/bg-BG/providers.jsonindex f1f9c5b4409..495f80c1368 100644--- a/locales/bg-BG/providers.json+++ b/locales/bg-BG/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Моделите на Stepfun предлагат водещи мултимодални и сложни разсъждателни възможности, с разбиране на дълъг контекст и мощна автономна координация на търсене.","straico.description": "Straico опростява интеграцията на изкуствения интелект, като предоставя унифицирано работно пространство, което обединява водещи модели за генериране на текст, изображения и аудио, давайки възможност на маркетолози, предприемачи и ентусиасти за лесен достъп до разнообразни AI инструменти.","streamlake.description": "StreamLake е корпоративна платформа за модели и AI изчислителен облак, която обединява високопроизводителна инференция на модели, нискобюджетна персонализация на модели и напълно управлявани услуги, за да помогне на предприятията да се съсредоточат върху иновациите в AI приложенията, без да се притесняват за сложността и разходите на базовите изчислителни ресурси.",+ "supergrok.description": "Достъп до Grok модели с вашия абонамент за SuperGrok или X Premium, без необходимост от API ключ.","taichu.description": "Модел от ново поколение от CASIA и Института по AI в Ухан, поддържащ многократни въпроси и отговори, писане, генериране на изображения, 3D разбиране и анализ на сигнали с по-силна когниция и креативност.","tencentcloud.description": "LLM Knowledge Engine Atomic Power предоставя цялостни решения за въпроси и отговори за предприятия и разработчици, с модулни услуги като анализ на документи, сегментиране, вграждания и многократна пренаписка за изграждане на персонализирани AI решения.","togetherai.description": "Together AI предлага водеща производителност с иновативни модели, широка персонализация, бързо мащабиране и лесно внедряване за нуждите на предприятията.",diff --git a/locales/bg-BG/setting.json b/locales/bg-BG/setting.jsonindex 05e5ee21270..816ba1f3db3 100644--- a/locales/bg-BG/setting.json+++ b/locales/bg-BG/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Модел","defaultAgent.title": "Настройки на агента по подразбиране","devices.actions.edit": "Редактиране",+ "devices.actions.refresh": "Обнови","devices.actions.remove": "Премахване","devices.actions.removeSelected": "Премахване ({{count}})","devices.capabilities.commands.desc": "Сигурно изпълнявайте терминални команди във вашата среда.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Това включва устройството, което използвате в момента — премахването му ще прекъсне текущата ви сесия.","devices.selection.selected": "{{count}} избрани","devices.selection.total": "{{count}} устройства",+ "devices.share.alreadyShared": "Споделено",+ "devices.share.badge": "Споделено с {{count}} работни пространства",+ "devices.share.confirm": "Сподели",+ "devices.share.detailLabel": "Споделено с работни пространства",+ "devices.share.done": "Готово",+ "devices.share.empty": "Все още не сте се присъединили към работно пространство.",+ "devices.share.goToTarget": "Отиди на {{name}}",+ "devices.share.menu": "Сподели с работно пространство…",+ "devices.share.modalDesc": "Изберете работно пространство, в което да споделите това устройство. Членовете могат да изпълняват задачи на агента, докато устройството е онлайн.",+ "devices.share.modalTitle": "Сподели устройство с работно пространство",+ "devices.share.offlineDesc": "Устройството трябва да е онлайн, за да бъде споделено",+ "devices.share.overwriteConfirmDesc": "Тази машина вече е регистрирана в това работно пространство с достъп {{current}}. Продължете, за да го промените на {{next}} и да го свържете с това устройство.",+ "devices.share.overwriteConfirmOk": "Презапиши",+ "devices.share.overwriteConfirmTitle": "Вече е в {{name}} — да презапишем?",+ "devices.share.revoke": "Премахни споделянето",+ "devices.share.revokeConfirmDesc": "Това ще премахне устройството от това работно пространство. Членовете вече няма да могат да изпълняват задачи на него; можете да го споделите отново по всяко време.",+ "devices.share.revokeConfirmTitle": "Премахване на споделянето от {{name}}?",+ "devices.share.selectPlaceholder": "Изберете работно пространство",+ "devices.share.sharedByTag": "Споделено от {{name}}",+ "devices.share.success": "Устройството е споделено с {{name}}",+ "devices.share.targetLabel": "Сподели с",+ "devices.share.viewerHint": "Наблюдателите не могат да споделят устройства",+ "devices.share.visibilityTag.private": "Лично",+ "devices.share.visibilityTag.public": "Работно пространство","devices.status.offline": "Офлайн","devices.status.online": "Онлайн","devices.title": "Моите устройства",+ "devices.visibility.publish": "Публикувай в работно пространство",+ "devices.visibility.publishConfirmTitle": "Да публикуваме това устройство в работното пространство?",+ "devices.visibilityTabs.private": "Лично",+ "devices.visibilityTabs.workspace": "Работно пространство","devices.workingDirectory": "Работна директория: {{path}}","downloads.desktop.cta": "Изтеглете настолното приложение","downloads.desktop.desc": "Използвайте родното настолно приложение за локални файлове, системни инструменти и фокусирана работа на вашия компютър.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Регистрирано от {{name}}","workspaceSetting.devices.enrolledByLabel": "Регистрирано от","workspaceSetting.devices.heroDesc": "Запишете споделена машина — сървър за изграждане или екипен Mac — и всеки член може да изпълнява агенти на нея: четене/запис на файлове, изпълнение на команди и използване на системни инструменти.",+ "workspaceSetting.devices.heroDescPrivate": "Регистрирайте машина за лично ползване в това работно пространство — другите членове няма да могат да я виждат или използват. Изпълнявайте агенти на нея: четете/записвайте файлове, изпълнявайте команди и използвайте системни инструменти.","workspaceSetting.devices.heroTitle": "Свържете първото устройство към работното пространство",+ "workspaceSetting.devices.heroTitlePrivate": "Свържете първото си лично устройство","workspaceSetting.devices.offline": "Офлайн","workspaceSetting.devices.online": "Онлайн","workspaceSetting.devices.readonlyHint": "Само членът, който е регистрирал това устройство, или собственик на работното пространство може да го преименува или премахне.",diff --git a/locales/bg-BG/spend.json b/locales/bg-BG/spend.jsonindex 72c18d6ad33..4c144f0cf1b 100644--- a/locales/bg-BG/spend.json+++ b/locales/bg-BG/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Токен","usageStats.cards.tokenDesc": "Вход {{input}} · Изход {{output}}","usageStats.chart.cacheWrite": "Запис в кеш",+ "usageStats.chart.cachedInput": "Кеширан вход","usageStats.chart.input": "Вход","usageStats.chart.output": "Изход","usageStats.chart.spend": "Разход",diff --git a/locales/de-DE/chat.json b/locales/de-DE/chat.jsonindex 4a0016a844f..fd171e9da96 100644--- a/locales/de-DE/chat.json+++ b/locales/de-DE/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Integrierter Copilot","chatList.expandMessage": "Nachricht erweitern","chatList.longMessageDetail": "Details anzeigen",- "chatList.refreshing": "Neueste Nachrichten werden abgerufen...",+ "chatList.refreshError": "Nachrichten konnten nicht aktualisiert werden","chatMode.agent": "Agent","chatMode.agentCap.env": "Laufzeitumgebung","chatMode.agentCap.files": "Dateizugriff",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} Stunden","cliRateLimitGuide.relative.minute_one": "{{count}} Minute","cliRateLimitGuide.relative.minute_other": "{{count}} Minuten",+ "cliRateLimitGuide.relative.resetComplete": "Zurücksetzen abgeschlossen","cliRateLimitGuide.relative.soon": "Wird bald zurückgesetzt","cliRateLimitGuide.resetAt": "Setzt zurück am",+ "cliRateLimitGuide.resetIn": "Verbleibende Zeit","cliRateLimitGuide.resetInApprox": "Setzt zurück in etwa {{duration}}",+ "cliRateLimitGuide.resetUnknown": "das Kontingent wird zurückgesetzt","cliRateLimitGuide.title": "{{name}} Nutzungslimit erreicht","codexInstallGuide.actions.openDocs": "Installationsanleitung öffnen","codexInstallGuide.actions.openSystemTools": "Systemwerkzeuge öffnen",@@ -404,6 +407,10 @@"inputQueue.edit": "Bearbeiten","inputQueue.sendNow": "Jetzt senden (unterbricht aktuellen Vorgang)","intentUnderstanding.title": "Verstehe Ihre Absicht...",+ "internalLink.agent.open": "Agent öffnen",+ "internalLink.preview.agent": "Agent",+ "internalLink.preview.document": "Seite",+ "internalLink.preview.task": "Aufgabe","inviteMembers": "Mitglieder einladen","knowledgeBase.all": "Alle Inhalte","knowledgeBase.allFiles": "Alle Dateien",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Wird ausgeführt… Sie können die Aufgabe wechseln oder die Seite schließen — die Aufgabe läuft weiter.","operation.heterogeneousAgentFallback": "Externer Agent","operation.sendMessage": "Nachricht wird gesendet",+ "operation.streamRetry": "{{name}} Upstream ist ausgelastet ({{status}}), erneuter Versuch",+ "operation.streamRetry.unknownStatus": "unbekannter Status",+ "operation.streamRetry.withAttempt": "{{name}} Upstream ist ausgelastet ({{status}}), erneuter Versuch {{attempt}}/{{maxAttempts}}","owner": "Gruppeninhaber","pageCopilot.title": "Seitenagent","pageCopilot.welcome": "**Klarer, präziser schreiben**\n\nEntwerfen, umschreiben oder verfeinern – sag mir, was du willst, und ich erledige den Rest.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Datei wurde geschrieben","workflow.working": "Wird ausgeführt...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Zurück",+ "workingPanel.browser.actions.capture": "Screenshot kopieren",+ "workingPanel.browser.actions.captured": "Screenshot in die Zwischenablage kopiert",+ "workingPanel.browser.actions.failed": "Browseraktion fehlgeschlagen",+ "workingPanel.browser.actions.forward": "Weiter",+ "workingPanel.browser.actions.openExternal": "Im Systembrowser öffnen",+ "workingPanel.browser.actions.reload": "Neu laden",+ "workingPanel.browser.actions.stop": "Laden stoppen",+ "workingPanel.browser.addressPlaceholder": "Suchen oder Adresse eingeben",+ "workingPanel.browser.desktopOnly": "Der In-App-Browser ist nur in der Desktop-App verfügbar",+ "workingPanel.browser.empty.desc": "Geben Sie oben eine Adresse oder einen Suchbegriff ein, um eine Seite zu öffnen",+ "workingPanel.browser.empty.title": "Beginnen Sie mit dem Surfen",+ "workingPanel.browser.title": "Browser","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/de-DE/labs.json b/locales/de-DE/labs.jsonindex cb809a8ac1b..8bd58064c98 100644--- a/locales/de-DE/labs.json+++ b/locales/de-DE/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Agenten-Selbstiteration","features.assistantMessageGroup.desc": "Agenten-Nachrichten und deren Tool-Ergebnisse gemeinsam anzeigen","features.assistantMessageGroup.title": "Agenten-Nachrichten gruppieren",+ "features.claudeCodeSdk.desc": "Führen Sie Claude Code-Sitzungen über das Claude Agent SDK aus, anstatt die CLI zu starten. Ermöglicht reichhaltigeres Streaming und Sitzungssteuerung.",+ "features.claudeCodeSdk.title": "Claude Code SDK-Laufzeit","features.fleet.desc": "Zeigt den Fleet-Eintrag in der Titelleiste an – ein nebeneinander angeordnetes Dashboard aller laufenden Aufgaben über Ihre Agenten hinweg.","features.fleet.title": "Flottenansicht","features.foldFinishedTurn.desc": "Klappen Sie den Prozess (Argumentation und Werkzeugaufrufe) abgeschlossener, nicht letzter Agenten-Züge unter einer \"Verarbeitet\"-Überschrift zusammen. Die endgültige Antwort bleibt sichtbar; klicken Sie, um den Prozess zu erweitern.",diff --git a/locales/de-DE/providers.json b/locales/de-DE/providers.jsonindex c3651d789f4..704f04013b5 100644--- a/locales/de-DE/providers.json+++ b/locales/de-DE/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun-Modelle bieten führende multimodale und komplexe Denkfähigkeiten – mit Langkontextverständnis und leistungsstarker autonomer Suchorchestrierung.","straico.description": "Straico vereinfacht die Integration von KI, indem es einen einheitlichen Arbeitsbereich bietet, der führende text-, bild- und audiogenerative KI-Modelle zusammenführt. So erhalten Marketer, Unternehmer und Enthusiasten nahtlosen Zugang zu vielfältigen KI-Tools.","streamlake.description": "StreamLake ist eine Unternehmensplattform für Modellservices und Cloud-Computing im Bereich KI. Sie vereint leistungsstarke Modellinferenz, kostengünstige Modellanpassung und vollständig verwaltete Services, sodass Unternehmen sich auf die Entwicklung innovativer KI-Anwendungen konzentrieren können, ohne sich um die Komplexität und die Kosten der zugrunde liegenden Computing‑Ressourcen sorgen zu müssen.",+ "supergrok.description": "Greifen Sie mit Ihrem SuperGrok- oder X-Premium-Abonnement auf Grok-Modelle zu, kein API-Schlüssel erforderlich.","taichu.description": "Ein multimodales Next-Gen-Modell von CASIA und dem Wuhan Institute of AI – unterstützt mehrstufige Q&A, Schreiben, Bildgenerierung, 3D-Verständnis und Signalanalyse mit starker Kognition und Kreativität.","tencentcloud.description": "LLM Knowledge Engine Atomic Power bietet End-to-End-Wissens-Q&A für Unternehmen und Entwickler – mit modularen Diensten wie Dokumentenparsing, Chunking, Embeddings und mehrstufigem Rewriting für individuelle KI-Lösungen.","togetherai.description": "Together AI liefert führende Leistung mit innovativen Modellen, breiter Anpassbarkeit, schneller Skalierung und einfacher Bereitstellung für Unternehmensanforderungen.",diff --git a/locales/de-DE/setting.json b/locales/de-DE/setting.jsonindex 76970891737..8d944d7cbb4 100644--- a/locales/de-DE/setting.json+++ b/locales/de-DE/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Modell","defaultAgent.title": "Standard-Agenteneinstellungen","devices.actions.edit": "Bearbeiten",+ "devices.actions.refresh": "Aktualisieren","devices.actions.remove": "Entfernen","devices.actions.removeSelected": "Entfernen ({{count}})","devices.capabilities.commands.desc": "Führen Sie Terminalbefehle sicher in Ihrer Umgebung aus.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Dies schließt das Gerät ein, das Sie gerade verwenden – wenn Sie es entfernen, wird Ihre aktuelle Sitzung getrennt.","devices.selection.selected": "{{count}} ausgewählt","devices.selection.total": "{{count}} Geräte",+ "devices.share.alreadyShared": "Geteilt",+ "devices.share.badge": "Geteilt mit {{count}} Arbeitsbereichen",+ "devices.share.confirm": "Teilen",+ "devices.share.detailLabel": "Geteilt mit Arbeitsbereichen",+ "devices.share.done": "Fertig",+ "devices.share.empty": "Du bist noch keinem Arbeitsbereich beigetreten.",+ "devices.share.goToTarget": "Gehe zu {{name}}",+ "devices.share.menu": "In Arbeitsbereich teilen…",+ "devices.share.modalDesc": "Wähle einen Arbeitsbereich aus, in den du dieses Gerät teilen möchtest. Mitglieder können Agentenläufe darauf ausführen, während es online bleibt.",+ "devices.share.modalTitle": "Gerät in Arbeitsbereich teilen",+ "devices.share.offlineDesc": "Das Gerät muss online sein, um es zu teilen",+ "devices.share.overwriteConfirmDesc": "Diese Maschine ist bereits mit {{current}} Zugriff in diesem Arbeitsbereich registriert. Möchtest du fortfahren, um den Zugriff auf {{next}} zu ändern und es mit diesem Gerät zu verknüpfen?",+ "devices.share.overwriteConfirmOk": "Überschreiben",+ "devices.share.overwriteConfirmTitle": "Bereits in {{name}} — überschreiben?",+ "devices.share.revoke": "Teilen aufheben",+ "devices.share.revokeConfirmDesc": "Dadurch wird das Gerät aus diesem Arbeitsbereich entfernt. Mitglieder können keine Läufe mehr darauf ausführen; du kannst es jederzeit erneut teilen.",+ "devices.share.revokeConfirmTitle": "Teilen mit {{name}} aufheben?",+ "devices.share.selectPlaceholder": "Arbeitsbereich auswählen",+ "devices.share.sharedByTag": "Geteilt von {{name}}",+ "devices.share.success": "Gerät wurde mit {{name}} geteilt",+ "devices.share.targetLabel": "Teilen mit",+ "devices.share.viewerHint": "Betrachter können keine Geräte teilen",+ "devices.share.visibilityTag.private": "Privat",+ "devices.share.visibilityTag.public": "Arbeitsbereich","devices.status.offline": "Offline","devices.status.online": "Online","devices.title": "Meine Geräte",+ "devices.visibility.publish": "Im Arbeitsbereich veröffentlichen",+ "devices.visibility.publishConfirmTitle": "Dieses Gerät im Arbeitsbereich veröffentlichen?",+ "devices.visibilityTabs.private": "Privat",+ "devices.visibilityTabs.workspace": "Arbeitsbereich","devices.workingDirectory": "Arbeitsverzeichnis: {{path}}","downloads.desktop.cta": "Desktop-App herunterladen","downloads.desktop.desc": "Verwenden Sie die native Desktop-App für lokale Dateien, Systemtools und konzentriertes Arbeiten an Ihrem Computer.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Registriert von {{name}}","workspaceSetting.devices.enrolledByLabel": "Registriert von","workspaceSetting.devices.heroDesc": "Registrieren Sie ein gemeinsam genutztes Gerät – einen Build-Server oder einen Team-Mac – und jedes Mitglied kann darauf Agenten ausführen: Dateien lesen/schreiben, Befehle ausführen und Systemtools aufrufen.",+ "workspaceSetting.devices.heroDescPrivate": "Registriere eine Maschine für deinen eigenen Gebrauch in diesem Arbeitsbereich — andere Mitglieder können sie weder sehen noch nutzen. Führe Agenten darauf aus: Dateien lesen/schreiben, Befehle ausführen und Systemtools verwenden.","workspaceSetting.devices.heroTitle": "Verbinden Sie Ihr erstes Arbeitsbereichsgerät",+ "workspaceSetting.devices.heroTitlePrivate": "Verbinde dein erstes privates Gerät","workspaceSetting.devices.offline": "Offline","workspaceSetting.devices.online": "Online","workspaceSetting.devices.readonlyHint": "Nur das Mitglied, das dieses Gerät registriert hat, oder ein Workspace-Besitzer kann es umbenennen oder entfernen.",diff --git a/locales/de-DE/spend.json b/locales/de-DE/spend.jsonindex 47cbc653ba8..558a71c79c5 100644--- a/locales/de-DE/spend.json+++ b/locales/de-DE/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Eingabe {{input}} · Ausgabe {{output}}","usageStats.chart.cacheWrite": "Cache-Schreiben",+ "usageStats.chart.cachedInput": "Zwischengespeicherte Eingabe","usageStats.chart.input": "Eingabe","usageStats.chart.output": "Ausgabe","usageStats.chart.spend": "Kosten",diff --git a/locales/en-US/chat.json b/locales/en-US/chat.jsonindex a4351837ed3..da55354c1f8 100644--- a/locales/en-US/chat.json+++ b/locales/en-US/chat.json@@ -321,12 +321,12 @@"heteroAgent.executionTarget.noneDesc": "No device enabled","heteroAgent.executionTarget.offline": "Offline","heteroAgent.executionTarget.online": "Online",- "heteroAgent.executionTarget.personalGroup": "Personal",+ "heteroAgent.executionTarget.personalGroup": "Private Devices","heteroAgent.executionTarget.sandbox": "Cloud Sandbox","heteroAgent.executionTarget.sandboxDesc": "Run in an ephemeral cloud sandbox","heteroAgent.executionTarget.title": "Execution Device","heteroAgent.executionTarget.unknownDevice": "Unknown device",- "heteroAgent.executionTarget.workspaceGroup": "Workspace",+ "heteroAgent.executionTarget.workspaceGroup": "Workspace Devices","heteroAgent.fullAccess.label": "Full access","heteroAgent.fullAccess.tooltip": "The local coding agent runs with full read/write access to the working directory. Switching permission modes is not available yet.","heteroAgent.modelSelector.ariaLabel": "Model: {{model}}. Effort: {{reasoning}}",diff --git a/locales/en-US/providers.json b/locales/en-US/providers.jsonindex 910fac22227..730b74ac832 100644--- a/locales/en-US/providers.json+++ b/locales/en-US/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun models offer leading multimodal and complex reasoning capabilities, with long-context understanding and powerful autonomous search orchestration.","straico.description": "Straico simplifies AI integration by providing a unified workspace that brings together top text, image, and audio generative AI models, empowering marketers, entrepreneurs, and enthusiasts with seamless access to diverse AI tools.","streamlake.description": "StreamLake is an enterprise-level model service and AI computing cloud platform, integrating high-performance model inference, low-cost model customization, and fully-managed services to help enterprises focus on AI application innovation without worrying about the complexity and cost of underlying computing resources.",+ "supergrok.description": "Access Grok models with your SuperGrok or X Premium subscription, no API key required.","taichu.description": "A next-generation multimodal model from CASIA and the Wuhan Institute of AI, supporting multi-turn QA, writing, image generation, 3D understanding, and signal analysis with stronger cognition and creativity.","tencentcloud.description": "LLM Knowledge Engine Atomic Power provides end-to-end knowledge QA for enterprises and developers, with modular services like document parsing, chunking, embeddings, and multi-turn rewriting to assemble custom AI solutions.","togetherai.description": "Together AI delivers leading performance with innovative models, broad customization, rapid scaling, and straightforward deployment for enterprise needs.",diff --git a/locales/en-US/setting.json b/locales/en-US/setting.jsonindex 3e80b2a70af..20d7368a4d1 100644--- a/locales/en-US/setting.json+++ b/locales/en-US/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Model","defaultAgent.title": "New Agent","devices.actions.edit": "Edit",+ "devices.actions.refresh": "Refresh","devices.actions.remove": "Remove","devices.actions.removeSelected": "Remove ({{count}})","devices.capabilities.commands.desc": "Safely execute terminal commands in your environment.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "This includes the device you're using right now — removing it disconnects your current session.","devices.selection.selected": "{{count}} selected","devices.selection.total": "{{count}} devices",+ "devices.share.alreadyShared": "Shared",+ "devices.share.badge": "Shared to {{count}} workspaces",+ "devices.share.confirm": "Share",+ "devices.share.detailLabel": "Shared to workspaces",+ "devices.share.done": "Done",+ "devices.share.empty": "You haven't joined any workspace yet.",+ "devices.share.goToTarget": "Go to {{name}}",+ "devices.share.menu": "Share to Workspace…",+ "devices.share.modalDesc": "Pick a workspace to share this device into. Members can dispatch agent runs to it while it stays online.",+ "devices.share.modalTitle": "Share Device to Workspace",+ "devices.share.offlineDesc": "The device must be online to share",+ "devices.share.overwriteConfirmDesc": "This machine is already enrolled in this workspace with {{current}} access. Continue to change it to {{next}} and link it to this device.",+ "devices.share.overwriteConfirmOk": "Overwrite",+ "devices.share.overwriteConfirmTitle": "Already in {{name}} — overwrite?",+ "devices.share.revoke": "Unshare",+ "devices.share.revokeConfirmDesc": "This removes the device from that workspace. Members can no longer dispatch runs to it; you can share it again anytime.",+ "devices.share.revokeConfirmTitle": "Unshare from {{name}}?",+ "devices.share.selectPlaceholder": "Select a workspace",+ "devices.share.sharedByTag": "Shared by {{name}}",+ "devices.share.success": "Device shared to {{name}}",+ "devices.share.targetLabel": "Share to",+ "devices.share.viewerHint": "Viewers cannot share devices",+ "devices.share.visibilityTag.private": "Private",+ "devices.share.visibilityTag.public": "Workspace","devices.status.offline": "Offline","devices.status.online": "Online","devices.title": "My Devices",+ "devices.visibility.publish": "Publish to Workspace",+ "devices.visibility.publishConfirmTitle": "Publish this device to the workspace?",+ "devices.visibilityTabs.private": "Private",+ "devices.visibilityTabs.workspace": "Workspace","devices.workingDirectory": "Working dir: {{path}}","downloads.desktop.cta": "Download desktop app","downloads.desktop.desc": "Use the native desktop app for local files, system tools, and focused work on your computer.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Enrolled by {{name}}","workspaceSetting.devices.enrolledByLabel": "Enrolled by","workspaceSetting.devices.heroDesc": "Enroll a shared machine — a build server or a team Mac — and every member can run agents on it: read/write files, run commands, and call system tools.",+ "workspaceSetting.devices.heroDescPrivate": "Enroll a machine for your own use in this workspace — other members can't see or use it. Run agents on it: read/write files, run commands, and call system tools.","workspaceSetting.devices.heroTitle": "Connect your first workspace device",+ "workspaceSetting.devices.heroTitlePrivate": "Connect your first private device","workspaceSetting.devices.offline": "Offline","workspaceSetting.devices.online": "Online","workspaceSetting.devices.readonlyHint": "Only the member who enrolled this device or a workspace owner can rename or remove it.",diff --git a/locales/es-ES/chat.json b/locales/es-ES/chat.jsonindex f365be3f3c0..7dfc1097625 100644--- a/locales/es-ES/chat.json+++ b/locales/es-ES/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Copiloto integrado","chatList.expandMessage": "Expandir mensaje","chatList.longMessageDetail": "Ver detalles",- "chatList.refreshing": "Obteniendo los mensajes más recientes...",+ "chatList.refreshError": "No se pudieron actualizar los mensajes","chatMode.agent": "Agente","chatMode.agentCap.env": "Entorno de ejecución","chatMode.agentCap.files": "Acceso a archivos",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} horas","cliRateLimitGuide.relative.minute_one": "{{count}} minuto","cliRateLimitGuide.relative.minute_other": "{{count}} minutos",+ "cliRateLimitGuide.relative.resetComplete": "Reinicio completo","cliRateLimitGuide.relative.soon": "Se restablece pronto","cliRateLimitGuide.resetAt": "Se restablece a las",+ "cliRateLimitGuide.resetIn": "Tiempo restante","cliRateLimitGuide.resetInApprox": "Se restablece en aproximadamente {{duration}}",+ "cliRateLimitGuide.resetUnknown": "el límite se reinicia","cliRateLimitGuide.title": "Límite de uso alcanzado para {{name}}","codexInstallGuide.actions.openDocs": "Abrir guía de instalación","codexInstallGuide.actions.openSystemTools": "Abrir herramientas del sistema",@@ -404,6 +407,10 @@"inputQueue.edit": "Editar","inputQueue.sendNow": "Enviar ahora (interrumpe la ejecución actual)","intentUnderstanding.title": "Entendiendo tu intención...",+ "internalLink.agent.open": "Abrir agente",+ "internalLink.preview.agent": "Agente",+ "internalLink.preview.document": "Página",+ "internalLink.preview.task": "Tarea","inviteMembers": "Invitar miembros","knowledgeBase.all": "Todo el contenido","knowledgeBase.allFiles": "Todos los archivos",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Ejecutando… Puedes cambiar de tarea o cerrar la página; la tarea seguirá en curso.","operation.heterogeneousAgentFallback": "Agente externo","operation.sendMessage": "Enviando mensaje",+ "operation.streamRetry": "{{name}} está ocupado aguas arriba ({{status}}), reintentando",+ "operation.streamRetry.unknownStatus": "estado desconocido",+ "operation.streamRetry.withAttempt": "{{name}} está ocupado aguas arriba ({{status}}), reintentando {{attempt}}/{{maxAttempts}}","owner": "Propietario del grupo","pageCopilot.title": "Agente de página","pageCopilot.welcome": "**Escritura más clara y precisa**\n\nRedacta, reescribe o mejora: dime tu intención y yo me encargo del resto.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Se escribió un archivo","workflow.working": "Trabajando...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Atrás",+ "workingPanel.browser.actions.capture": "Copiar captura de pantalla",+ "workingPanel.browser.actions.captured": "Captura de pantalla copiada al portapapeles",+ "workingPanel.browser.actions.failed": "Acción del navegador fallida",+ "workingPanel.browser.actions.forward": "Adelante",+ "workingPanel.browser.actions.openExternal": "Abrir en el navegador del sistema",+ "workingPanel.browser.actions.reload": "Recargar",+ "workingPanel.browser.actions.stop": "Detener carga",+ "workingPanel.browser.addressPlaceholder": "Buscar o ingresar dirección",+ "workingPanel.browser.desktopOnly": "El navegador integrado solo está disponible en la aplicación de escritorio",+ "workingPanel.browser.empty.desc": "Ingresa una dirección o busca arriba para abrir una página",+ "workingPanel.browser.empty.title": "Comienza a navegar",+ "workingPanel.browser.title": "Navegador","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/es-ES/labs.json b/locales/es-ES/labs.jsonindex b8c2bdf21d2..2c4f59fce4f 100644--- a/locales/es-ES/labs.json+++ b/locales/es-ES/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Autoiteración del agente","features.assistantMessageGroup.desc": "Agrupa los mensajes del agente y los resultados de sus herramientas para mostrarlos juntos","features.assistantMessageGroup.title": "Agrupación de Mensajes del Agente",+ "features.claudeCodeSdk.desc": "Ejecuta sesiones de Claude Code a través del SDK de Claude Agent en lugar de iniciar la CLI. Permite una transmisión más rica y un mejor control de las sesiones.",+ "features.claudeCodeSdk.title": "Entorno de Ejecución del SDK de Claude Code","features.fleet.desc": "Mostrar la entrada de Fleet en la barra de título: un panel de control lado a lado de todas las tareas en ejecución en tus agentes.","features.fleet.title": "Vista de Fleet","features.foldFinishedTurn.desc": "Colapsa el proceso (razonamiento y llamadas a herramientas) de los turnos de agente finalizados y no más recientes bajo un encabezado \"Procesado\". La respuesta final permanece visible; haz clic para expandir el proceso.",diff --git a/locales/es-ES/providers.json b/locales/es-ES/providers.jsonindex c7831a052f9..26f1b4c6f69 100644--- a/locales/es-ES/providers.json+++ b/locales/es-ES/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Los modelos Stepfun ofrecen capacidades líderes en razonamiento multimodal y complejo, con comprensión de contexto largo y potente orquestación de búsqueda autónoma.","straico.description": "Straico simplifica la integración de la IA al proporcionar un espacio de trabajo unificado que reúne los mejores modelos generativos de texto, imagen y audio, empoderando a los mercadólogos, emprendedores y entusiastas con acceso fluido a diversas herramientas de IA.","streamlake.description": "StreamLake es una plataforma empresarial de servicios de modelos y computación en la nube de IA que integra inferencia de modelos de alto rendimiento, personalización de modelos de bajo costo y servicios completamente gestionados, para ayudar a las empresas a centrarse en la innovación de aplicaciones de IA sin preocuparse por la complejidad y el costo de los recursos de computación subyacentes.",+ "supergrok.description": "Accede a los modelos Grok con tu suscripción SuperGrok o X Premium, sin necesidad de una clave API.","taichu.description": "Un modelo multimodal de nueva generación de CASIA y el Instituto de IA de Wuhan, que admite preguntas y respuestas multivuelta, redacción, generación de imágenes, comprensión 3D y análisis de señales con mayor cognición y creatividad.","tencentcloud.description": "LLM Knowledge Engine Atomic Power proporciona preguntas y respuestas de conocimiento de extremo a extremo para empresas y desarrolladores, con servicios modulares como análisis de documentos, segmentación, embeddings y reescritura multivuelta para crear soluciones de IA personalizadas.","togetherai.description": "Together AI ofrece rendimiento líder con modelos innovadores, amplia personalización, escalado rápido y despliegue sencillo para necesidades empresariales.",diff --git a/locales/es-ES/setting.json b/locales/es-ES/setting.jsonindex 068ca617daa..bc6a8f9ebff 100644--- a/locales/es-ES/setting.json+++ b/locales/es-ES/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Modelo","defaultAgent.title": "Configuración Predeterminada del Agente","devices.actions.edit": "Editar",+ "devices.actions.refresh": "Actualizar","devices.actions.remove": "Eliminar","devices.actions.removeSelected": "Eliminar ({{count}})","devices.capabilities.commands.desc": "Ejecuta comandos de terminal de forma segura en tu entorno.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Esto incluye el dispositivo que estás utilizando ahora mismo; eliminarlo desconectará tu sesión actual.","devices.selection.selected": "{{count}} seleccionados","devices.selection.total": "{{count}} dispositivos",+ "devices.share.alreadyShared": "Compartido",+ "devices.share.badge": "Compartido con {{count}} espacios de trabajo",+ "devices.share.confirm": "Compartir",+ "devices.share.detailLabel": "Compartido con espacios de trabajo",+ "devices.share.done": "Hecho",+ "devices.share.empty": "Aún no te has unido a ningún espacio de trabajo.",+ "devices.share.goToTarget": "Ir a {{name}}",+ "devices.share.menu": "Compartir con espacio de trabajo…",+ "devices.share.modalDesc": "Elige un espacio de trabajo para compartir este dispositivo. Los miembros pueden ejecutar agentes en él mientras esté en línea.",+ "devices.share.modalTitle": "Compartir dispositivo con espacio de trabajo",+ "devices.share.offlineDesc": "El dispositivo debe estar en línea para compartirlo",+ "devices.share.overwriteConfirmDesc": "Esta máquina ya está registrada en este espacio de trabajo con acceso {{current}}. ¿Deseas cambiarlo a {{next}} y vincularlo a este dispositivo?",+ "devices.share.overwriteConfirmOk": "Sobrescribir",+ "devices.share.overwriteConfirmTitle": "Ya está en {{name}} — ¿sobrescribir?",+ "devices.share.revoke": "Dejar de compartir",+ "devices.share.revokeConfirmDesc": "Esto elimina el dispositivo de ese espacio de trabajo. Los miembros ya no podrán ejecutar agentes en él; puedes compartirlo nuevamente en cualquier momento.",+ "devices.share.revokeConfirmTitle": "¿Dejar de compartir con {{name}}?",+ "devices.share.selectPlaceholder": "Selecciona un espacio de trabajo",+ "devices.share.sharedByTag": "Compartido por {{name}}",+ "devices.share.success": "Dispositivo compartido con {{name}}",+ "devices.share.targetLabel": "Compartir con",+ "devices.share.viewerHint": "Los espectadores no pueden compartir dispositivos",+ "devices.share.visibilityTag.private": "Privado",+ "devices.share.visibilityTag.public": "Espacio de trabajo","devices.status.offline": "Desconectado","devices.status.online": "Conectado","devices.title": "Mis dispositivos",+ "devices.visibility.publish": "Publicar en espacio de trabajo",+ "devices.visibility.publishConfirmTitle": "¿Publicar este dispositivo en el espacio de trabajo?",+ "devices.visibilityTabs.private": "Privado",+ "devices.visibilityTabs.workspace": "Espacio de trabajo","devices.workingDirectory": "Directorio de trabajo: {{path}}","downloads.desktop.cta": "Descargar aplicación de escritorio","downloads.desktop.desc": "Utiliza la aplicación de escritorio nativa para archivos locales, herramientas del sistema y trabajo enfocado en tu computadora.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Registrado por {{name}}","workspaceSetting.devices.enrolledByLabel": "Registrado por","workspaceSetting.devices.heroDesc": "Inscribe una máquina compartida — un servidor de compilación o un Mac de equipo — y cada miembro podrá ejecutar agentes en ella: leer/escribir archivos, ejecutar comandos y utilizar herramientas del sistema.",+ "workspaceSetting.devices.heroDescPrivate": "Registra una máquina para tu uso personal en este espacio de trabajo — otros miembros no podrán verla ni usarla. Ejecuta agentes en ella: lee/escribe archivos, ejecuta comandos y utiliza herramientas del sistema.","workspaceSetting.devices.heroTitle": "Conecta tu primer dispositivo del espacio de trabajo",+ "workspaceSetting.devices.heroTitlePrivate": "Conecta tu primer dispositivo privado","workspaceSetting.devices.offline": "Desconectado","workspaceSetting.devices.online": "Conectado","workspaceSetting.devices.readonlyHint": "Solo el miembro que registró este dispositivo o un propietario del espacio de trabajo puede renombrarlo o eliminarlo.",diff --git a/locales/es-ES/spend.json b/locales/es-ES/spend.jsonindex cf47d7c8052..a7c53ff5c9d 100644--- a/locales/es-ES/spend.json+++ b/locales/es-ES/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Entrada {{input}} · Salida {{output}}","usageStats.chart.cacheWrite": "Escritura en caché",+ "usageStats.chart.cachedInput": "Entrada en caché","usageStats.chart.input": "Entrada","usageStats.chart.output": "Salida","usageStats.chart.spend": "Costo",diff --git a/locales/fa-IR/chat.json b/locales/fa-IR/chat.jsonindex bfc296f7c47..b87a5c0d9c2 100644--- a/locales/fa-IR/chat.json+++ b/locales/fa-IR/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "همیار داخلی","chatList.expandMessage": "گسترش پیام","chatList.longMessageDetail": "مشاهده جزئیات",- "chatList.refreshing": "در حال دریافت پیامهای جدید...",+ "chatList.refreshError": "پیامها را نمیتوان تازهسازی کرد","chatMode.agent": "نماینده","chatMode.agentCap.env": "محیط اجرایی","chatMode.agentCap.files": "دسترسی به فایل",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} ساعت","cliRateLimitGuide.relative.minute_one": "{{count}} دقیقه","cliRateLimitGuide.relative.minute_other": "{{count}} دقیقه",+ "cliRateLimitGuide.relative.resetComplete": "بازنشانی کامل شد","cliRateLimitGuide.relative.soon": "بهزودی ریست میشود","cliRateLimitGuide.resetAt": "زمان ریست",+ "cliRateLimitGuide.resetIn": "زمان باقیمانده","cliRateLimitGuide.resetInApprox": "ریست در حدود {{duration}}",+ "cliRateLimitGuide.resetUnknown": "سهمیه بازنشانی میشود","cliRateLimitGuide.title": "حد استفاده {{name}} به پایان رسید","codexInstallGuide.actions.openDocs": "باز کردن راهنمای نصب","codexInstallGuide.actions.openSystemTools": "باز کردن ابزارهای سیستم",@@ -404,6 +407,10 @@"inputQueue.edit": "ویرایش","inputQueue.sendNow": "ارسال فوری (متوقفکردن اجرای فعلی)","intentUnderstanding.title": "در حال درک نیت شما...",+ "internalLink.agent.open": "باز کردن نماینده",+ "internalLink.preview.agent": "نماینده",+ "internalLink.preview.document": "صفحه",+ "internalLink.preview.task": "وظیفه","inviteMembers": "دعوت اعضا","knowledgeBase.all": "تمام محتوا","knowledgeBase.allFiles": "تمام فایلها",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "در حال اجرا… میتوانید وظایف را تغییر دهید یا صفحه را ببندید — وظیفه همچنان ادامه خواهد داشت.","operation.heterogeneousAgentFallback": "عامل خارجی","operation.sendMessage": "در حال ارسال پیام",+ "operation.streamRetry": "{{name}} بالادستی مشغول است ({{status}})، تلاش مجدد",+ "operation.streamRetry.unknownStatus": "وضعیت نامشخص",+ "operation.streamRetry.withAttempt": "{{name}} بالادستی مشغول است ({{status}})، تلاش مجدد {{attempt}}/{{maxAttempts}}","owner": "مالک گروه","pageCopilot.title": "نماینده صفحه","pageCopilot.welcome": "**نوشتاری شفافتر و دقیقتر**\n\nپیشنویس، بازنویسی یا ویرایش—هدف خود را بگویید، من بقیه را اصلاح میکنم.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "یک فایل نوشته شد","workflow.working": "در حال انجام...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "بازگشت",+ "workingPanel.browser.actions.capture": "کپی اسکرینشات",+ "workingPanel.browser.actions.captured": "اسکرینشات در کلیپبورد کپی شد",+ "workingPanel.browser.actions.failed": "عملیات مرورگر ناموفق بود",+ "workingPanel.browser.actions.forward": "جلو",+ "workingPanel.browser.actions.openExternal": "باز کردن در مرورگر سیستم",+ "workingPanel.browser.actions.reload": "بارگذاری مجدد",+ "workingPanel.browser.actions.stop": "توقف بارگذاری",+ "workingPanel.browser.addressPlaceholder": "جستجو یا وارد کردن آدرس",+ "workingPanel.browser.desktopOnly": "مرورگر داخلی فقط در اپلیکیشن دسکتاپ موجود است",+ "workingPanel.browser.empty.desc": "برای باز کردن یک صفحه، آدرس یا جستجو را در بالا وارد کنید",+ "workingPanel.browser.empty.title": "شروع مرور",+ "workingPanel.browser.title": "مرورگر","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/fa-IR/labs.json b/locales/fa-IR/labs.jsonindex 8a1e5fa7d39..75be2d2bfca 100644--- a/locales/fa-IR/labs.json+++ b/locales/fa-IR/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "خودتکراری عامل","features.assistantMessageGroup.desc": "نمایش گروهی پیامهای عامل و نتایج ابزارهای فراخوانیشده بهصورت یکجا","features.assistantMessageGroup.title": "گروهبندی پیامهای عامل",+ "features.claudeCodeSdk.desc": "اجرای جلسات Claude Code از طریق Claude Agent SDK به جای اجرای CLI. امکان پخش غنیتر و کنترل جلسات را فراهم میکند.",+ "features.claudeCodeSdk.title": "محیط اجرایی Claude Code SDK","features.fleet.desc": "نمایش گزینه Fleet در نوار عنوان — یک داشبورد کنار هم از تمام وظایف در حال اجرا در میان عوامل شما.","features.fleet.title": "نمای Fleet","features.foldFinishedTurn.desc": "فرآیند (استدلال و تماسهای ابزار) نوبتهای پایانیافته و غیرآخرین عامل را تحت عنوان \"پردازش شده\" جمع کنید. پاسخ نهایی قابل مشاهده باقی میماند؛ برای گسترش فرآیند کلیک کنید.",diff --git a/locales/fa-IR/providers.json b/locales/fa-IR/providers.jsonindex 885d5b17657..50bd117dd79 100644--- a/locales/fa-IR/providers.json+++ b/locales/fa-IR/providers.json@@ -64,6 +64,7 @@"stepfun.description": "مدلهای Stepfun قابلیتهای پیشرفته چندوجهی و استدلال پیچیده را با درک متون بلند و هماهنگی جستجوی خودکار قدرتمند ارائه میدهند.","straico.description": "استرایکو یکپارچهسازی هوش مصنوعی را با ارائه یک فضای کاری متحد که مدلهای برتر تولید متن، تصویر و صوت هوش مصنوعی را گرد هم میآورد، ساده میکند و به بازاریابان، کارآفرینان و علاقهمندان دسترسی آسان به ابزارهای متنوع هوش مصنوعی را میدهد.","streamlake.description": "StreamLake یک پلتفرم خدمات مدل در سطح سازمانی و رایانش ابری هوش مصنوعی است که استنتاج مدل با کارایی بالا، شخصیسازی کمهزینه مدل و خدمات کاملاً مدیریتشده را یکپارچه میکند تا به کسبوکارها کمک کند بدون نگرانی از پیچیدگیها و هزینههای منابع محاسباتی زیربنایی، بر نوآوری در کاربردهای هوش مصنوعی تمرکز کنند.",+ "supergrok.description": "با اشتراک SuperGrok یا X Premium خود به مدلهای Grok دسترسی پیدا کنید، بدون نیاز به کلید API.","taichu.description": "مدل چندوجهی نسل جدید از CASIA و مؤسسه هوش مصنوعی ووهان که از پرسش و پاسخ چندمرحلهای، نگارش، تولید تصویر، درک سهبعدی و تحلیل سیگنال با شناخت و خلاقیت قوی پشتیبانی میکند.","tencentcloud.description": "موتور دانش LLM Atomic Power خدمات پرسش و پاسخ دانشمحور را برای شرکتها و توسعهدهندگان فراهم میکند، با خدمات ماژولار مانند تجزیه اسناد، تقسیمبندی، جاسازی و بازنویسی چندمرحلهای برای ساخت راهکارهای سفارشی هوش مصنوعی.","togetherai.description": "Together AI عملکرد پیشرو را با مدلهای نوآورانه، سفارشیسازی گسترده، مقیاسپذیری سریع و استقرار ساده برای نیازهای سازمانی ارائه میدهد.",diff --git a/locales/fa-IR/setting.json b/locales/fa-IR/setting.jsonindex 37f15c4b8e7..73d98008ebf 100644--- a/locales/fa-IR/setting.json+++ b/locales/fa-IR/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "مدل","defaultAgent.title": "تنظیمات پیشفرض عامل","devices.actions.edit": "ویرایش",+ "devices.actions.refresh": "تازهسازی","devices.actions.remove": "حذف","devices.actions.removeSelected": "حذف ({{count}})","devices.capabilities.commands.desc": "دستورات ترمینال را بهصورت ایمن در محیط خود اجرا کنید.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "این شامل دستگاهی است که در حال حاضر از آن استفاده میکنید — حذف آن باعث قطع اتصال جلسه فعلی شما میشود.","devices.selection.selected": "{{count}} انتخاب شده","devices.selection.total": "{{count}} دستگاه",+ "devices.share.alreadyShared": "به اشتراک گذاشته شده",+ "devices.share.badge": "به {{count}} فضای کاری به اشتراک گذاشته شده",+ "devices.share.confirm": "اشتراکگذاری",+ "devices.share.detailLabel": "به فضاهای کاری به اشتراک گذاشته شده",+ "devices.share.done": "انجام شد",+ "devices.share.empty": "شما هنوز به هیچ فضای کاری ملحق نشدهاید.",+ "devices.share.goToTarget": "برو به {{name}}",+ "devices.share.menu": "اشتراکگذاری به فضای کاری...",+ "devices.share.modalDesc": "یک فضای کاری را انتخاب کنید تا این دستگاه را به آن به اشتراک بگذارید. اعضا میتوانند اجرای عاملها را به آن ارسال کنند در حالی که آنلاین باقی میماند.",+ "devices.share.modalTitle": "اشتراکگذاری دستگاه به فضای کاری",+ "devices.share.offlineDesc": "دستگاه باید آنلاین باشد تا بتوان آن را به اشتراک گذاشت",+ "devices.share.overwriteConfirmDesc": "این دستگاه قبلاً در این فضای کاری با دسترسی {{current}} ثبت شده است. ادامه دهید تا آن را به {{next}} تغییر دهید و به این دستگاه لینک کنید.",+ "devices.share.overwriteConfirmOk": "بازنویسی",+ "devices.share.overwriteConfirmTitle": "قبلاً در {{name}} — بازنویسی شود؟",+ "devices.share.revoke": "لغو اشتراک",+ "devices.share.revokeConfirmDesc": "این دستگاه را از آن فضای کاری حذف میکند. اعضا دیگر نمیتوانند اجرای عاملها را به آن ارسال کنند؛ شما میتوانید هر زمان دوباره آن را به اشتراک بگذارید.",+ "devices.share.revokeConfirmTitle": "لغو اشتراک از {{name}}؟",+ "devices.share.selectPlaceholder": "یک فضای کاری انتخاب کنید",+ "devices.share.sharedByTag": "به اشتراک گذاشته شده توسط {{name}}",+ "devices.share.success": "دستگاه به {{name}} به اشتراک گذاشته شد",+ "devices.share.targetLabel": "اشتراکگذاری به",+ "devices.share.viewerHint": "مشاهدهکنندگان نمیتوانند دستگاهها را به اشتراک بگذارند",+ "devices.share.visibilityTag.private": "خصوصی",+ "devices.share.visibilityTag.public": "فضای کاری","devices.status.offline": "آفلاین","devices.status.online": "آنلاین","devices.title": "دستگاههای من",+ "devices.visibility.publish": "انتشار به فضای کاری",+ "devices.visibility.publishConfirmTitle": "این دستگاه را به فضای کاری منتشر کنید؟",+ "devices.visibilityTabs.private": "خصوصی",+ "devices.visibilityTabs.workspace": "فضای کاری","devices.workingDirectory": "دایرکتوری کاری: {{path}}","downloads.desktop.cta": "برنامه دسکتاپ را دانلود کنید","downloads.desktop.desc": "از برنامه دسکتاپ بومی برای فایلهای محلی، ابزارهای سیستمی و کار متمرکز روی کامپیوتر خود استفاده کنید.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "ثبتشده توسط {{name}}","workspaceSetting.devices.enrolledByLabel": "ثبتشده توسط","workspaceSetting.devices.heroDesc": "یک ماشین مشترک — یک سرور ساخت یا یک مک تیمی — ثبت کنید و هر عضو میتواند عوامل را روی آن اجرا کند: خواندن/نوشتن فایلها، اجرای دستورات و استفاده از ابزارهای سیستمی.",+ "workspaceSetting.devices.heroDescPrivate": "یک دستگاه را برای استفاده شخصی خود در این فضای کاری ثبت کنید — سایر اعضا نمیتوانند آن را ببینند یا استفاده کنند. عاملها را روی آن اجرا کنید: خواندن/نوشتن فایلها، اجرای دستورات و استفاده از ابزارهای سیستم.","workspaceSetting.devices.heroTitle": "اولین دستگاه فضای کاری خود را متصل کنید",+ "workspaceSetting.devices.heroTitlePrivate": "اولین دستگاه خصوصی خود را متصل کنید","workspaceSetting.devices.offline": "آفلاین","workspaceSetting.devices.online": "آنلاین","workspaceSetting.devices.readonlyHint": "فقط عضوی که این دستگاه را ثبت کرده یا مالک فضای کاری میتواند آن را تغییر نام دهد یا حذف کند.",diff --git a/locales/fa-IR/spend.json b/locales/fa-IR/spend.jsonindex f1408e73880..b76aace9bb3 100644--- a/locales/fa-IR/spend.json+++ b/locales/fa-IR/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "توکن","usageStats.cards.tokenDesc": "ورودی {{input}} · خروجی {{output}}","usageStats.chart.cacheWrite": "نوشتن در کش",+ "usageStats.chart.cachedInput": "ورودی ذخیرهشده","usageStats.chart.input": "ورودی","usageStats.chart.output": "خروجی","usageStats.chart.spend": "هزینه",diff --git a/locales/fr-FR/chat.json b/locales/fr-FR/chat.jsonindex 18016866689..80de8420669 100644--- a/locales/fr-FR/chat.json+++ b/locales/fr-FR/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Copilote intégré","chatList.expandMessage": "Développer le message","chatList.longMessageDetail": "Voir les détails",- "chatList.refreshing": "Récupération des derniers messages...",+ "chatList.refreshError": "Impossible de rafraîchir les messages","chatMode.agent": "Agent","chatMode.agentCap.env": "Environnement d'exécution","chatMode.agentCap.files": "Accès aux fichiers",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} heures","cliRateLimitGuide.relative.minute_one": "{{count}} minute","cliRateLimitGuide.relative.minute_other": "{{count}} minutes",+ "cliRateLimitGuide.relative.resetComplete": "Réinitialisation terminée","cliRateLimitGuide.relative.soon": "Réinitialisation imminente","cliRateLimitGuide.resetAt": "Réinitialisé à",+ "cliRateLimitGuide.resetIn": "Temps restant","cliRateLimitGuide.resetInApprox": "Réinitialise dans environ {{duration}}",+ "cliRateLimitGuide.resetUnknown": "le quota se réinitialise","cliRateLimitGuide.title": "Limite d’utilisation de {{name}} atteinte","codexInstallGuide.actions.openDocs": "Ouvrir le guide d’installation","codexInstallGuide.actions.openSystemTools": "Ouvrir les outils système",@@ -404,6 +407,10 @@"inputQueue.edit": "Modifier","inputQueue.sendNow": "Envoyer maintenant (interrompt l’exécution en cours)","intentUnderstanding.title": "Compréhension de votre intention...",+ "internalLink.agent.open": "Ouvrir l'agent",+ "internalLink.preview.agent": "Agent",+ "internalLink.preview.document": "Page",+ "internalLink.preview.task": "Tâche","inviteMembers": "Inviter des membres","knowledgeBase.all": "Tout le contenu","knowledgeBase.allFiles": "Tous les fichiers",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "En cours… Vous pouvez changer de tâche ou fermer la page — la tâche continuera.","operation.heterogeneousAgentFallback": "Agent externe","operation.sendMessage": "Envoi du message",+ "operation.streamRetry": "{{name}} en amont est occupé ({{status}}), nouvelle tentative en cours",+ "operation.streamRetry.unknownStatus": "statut inconnu",+ "operation.streamRetry.withAttempt": "{{name}} en amont est occupé ({{status}}), nouvelle tentative {{attempt}}/{{maxAttempts}}","owner": "Propriétaire du groupe","pageCopilot.title": "Agent de page","pageCopilot.welcome": "**Une écriture plus claire et plus percutante**\n\nRédigez, réécrivez ou améliorez — dites-moi ce que vous souhaitez et je m’occupe du reste.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "A écrit un fichier","workflow.working": "En cours...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Retour",+ "workingPanel.browser.actions.capture": "Copier la capture d'écran",+ "workingPanel.browser.actions.captured": "Capture d'écran copiée dans le presse-papiers",+ "workingPanel.browser.actions.failed": "Action du navigateur échouée",+ "workingPanel.browser.actions.forward": "Avancer",+ "workingPanel.browser.actions.openExternal": "Ouvrir dans le navigateur système",+ "workingPanel.browser.actions.reload": "Recharger",+ "workingPanel.browser.actions.stop": "Arrêter le chargement",+ "workingPanel.browser.addressPlaceholder": "Rechercher ou entrer une adresse",+ "workingPanel.browser.desktopOnly": "Le navigateur intégré est uniquement disponible dans l'application de bureau",+ "workingPanel.browser.empty.desc": "Entrez une adresse ou effectuez une recherche ci-dessus pour ouvrir une page",+ "workingPanel.browser.empty.title": "Commencez à naviguer",+ "workingPanel.browser.title": "Navigateur","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/fr-FR/labs.json b/locales/fr-FR/labs.jsonindex e26240fd71e..1be8e45fffe 100644--- a/locales/fr-FR/labs.json+++ b/locales/fr-FR/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Auto‑itération de l’agent","features.assistantMessageGroup.desc": "Regroupez les messages de l'agent et les résultats de leurs appels d'outils pour les afficher ensemble","features.assistantMessageGroup.title": "Regroupement des messages de l'agent",+ "features.claudeCodeSdk.desc": "Exécutez des sessions Claude Code via le SDK Claude Agent au lieu de lancer l'interface en ligne de commande. Permet un streaming plus riche et un meilleur contrôle des sessions.",+ "features.claudeCodeSdk.title": "Runtime SDK Claude Code","features.fleet.desc": "Afficher l'entrée Fleet dans la barre de titre — un tableau de bord côte à côte de toutes les tâches en cours sur vos agents.","features.fleet.title": "Vue Fleet","features.foldFinishedTurn.desc": "Réduire le processus (raisonnement et appels d'outils) des tours d'agent terminés et non les plus récents sous un en-tête \"Traité\". La réponse finale reste visible ; cliquez pour développer le processus.",diff --git a/locales/fr-FR/providers.json b/locales/fr-FR/providers.jsonindex a9dbe8e86e1..e8cecc6b25e 100644--- a/locales/fr-FR/providers.json+++ b/locales/fr-FR/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Les modèles Stepfun offrent des capacités de raisonnement complexe et multimodal de pointe, avec une compréhension approfondie du contexte long et une orchestration autonome puissante de la recherche.","straico.description": "Straico simplifie l'intégration de l'IA en offrant un espace de travail unifié qui regroupe les meilleurs modèles génératifs d'IA pour le texte, l'image et l'audio, permettant aux marketeurs, entrepreneurs et passionnés d'accéder facilement à une variété d'outils d'IA.","streamlake.description": "StreamLake est une plateforme de services de modèles et de cloud de calcul IA de niveau entreprise, intégrant une inférence de modèles haute performance, une personnalisation de modèles à faible coût et des services entièrement gérés pour aider les entreprises à se concentrer sur l’innovation des applications d’IA sans se soucier de la complexité ni du coût des ressources de calcul sous-jacentes.",+ "supergrok.description": "Accédez aux modèles Grok avec votre abonnement SuperGrok ou X Premium, sans clé API requise.","taichu.description": "Un modèle multimodal de nouvelle génération développé par le CASIA et l’Institut d’IA de Wuhan, prenant en charge les questions-réponses multi-tours, la rédaction, la génération d’images, la compréhension 3D et l’analyse de signaux avec une cognition et une créativité renforcées.","tencentcloud.description": "LLM Knowledge Engine Atomic Power fournit des réponses aux questions d’entreprise de bout en bout, avec des services modulaires comme l’analyse de documents, le découpage, les embeddings et la réécriture multi-tours pour créer des solutions IA personnalisées.","togetherai.description": "Together AI offre des performances de pointe avec des modèles innovants, une personnalisation étendue, une montée en charge rapide et un déploiement simplifié pour les besoins des entreprises.",diff --git a/locales/fr-FR/setting.json b/locales/fr-FR/setting.jsonindex c838f4c255c..ad4caabb596 100644--- a/locales/fr-FR/setting.json+++ b/locales/fr-FR/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Modèle","defaultAgent.title": "Paramètres par défaut de l'agent","devices.actions.edit": "Modifier",+ "devices.actions.refresh": "Actualiser","devices.actions.remove": "Supprimer","devices.actions.removeSelected": "Supprimer ({{count}})","devices.capabilities.commands.desc": "Exécutez en toute sécurité des commandes terminal dans votre environnement.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Cela inclut l'appareil que vous utilisez actuellement — le supprimer déconnectera votre session en cours.","devices.selection.selected": "{{count}} sélectionné(s)","devices.selection.total": "{{count}} appareils",+ "devices.share.alreadyShared": "Partagé",+ "devices.share.badge": "Partagé à {{count}} espaces de travail",+ "devices.share.confirm": "Partager",+ "devices.share.detailLabel": "Partagé aux espaces de travail",+ "devices.share.done": "Terminé",+ "devices.share.empty": "Vous n'avez encore rejoint aucun espace de travail.",+ "devices.share.goToTarget": "Aller à {{name}}",+ "devices.share.menu": "Partager avec un espace de travail…",+ "devices.share.modalDesc": "Choisissez un espace de travail pour partager cet appareil. Les membres peuvent y lancer des exécutions d'agents tant qu'il reste en ligne.",+ "devices.share.modalTitle": "Partager l'appareil avec un espace de travail",+ "devices.share.offlineDesc": "L'appareil doit être en ligne pour être partagé",+ "devices.share.overwriteConfirmDesc": "Cette machine est déjà inscrite dans cet espace de travail avec un accès {{current}}. Continuer pour le changer en {{next}} et le lier à cet appareil.",+ "devices.share.overwriteConfirmOk": "Écraser",+ "devices.share.overwriteConfirmTitle": "Déjà dans {{name}} — écraser ?",+ "devices.share.revoke": "Annuler le partage",+ "devices.share.revokeConfirmDesc": "Cela retire l'appareil de cet espace de travail. Les membres ne pourront plus y lancer d'exécutions ; vous pourrez le partager à nouveau à tout moment.",+ "devices.share.revokeConfirmTitle": "Annuler le partage de {{name}} ?",+ "devices.share.selectPlaceholder": "Sélectionnez un espace de travail",+ "devices.share.sharedByTag": "Partagé par {{name}}",+ "devices.share.success": "Appareil partagé avec {{name}}",+ "devices.share.targetLabel": "Partager avec",+ "devices.share.viewerHint": "Les spectateurs ne peuvent pas partager d'appareils",+ "devices.share.visibilityTag.private": "Privé",+ "devices.share.visibilityTag.public": "Espace de travail","devices.status.offline": "Hors ligne","devices.status.online": "En ligne","devices.title": "Mes appareils",+ "devices.visibility.publish": "Publier dans l'espace de travail",+ "devices.visibility.publishConfirmTitle": "Publier cet appareil dans l'espace de travail ?",+ "devices.visibilityTabs.private": "Privé",+ "devices.visibilityTabs.workspace": "Espace de travail","devices.workingDirectory": "Répertoire de travail : {{path}}","downloads.desktop.cta": "Télécharger l'application de bureau","downloads.desktop.desc": "Utilisez l'application de bureau native pour les fichiers locaux, les outils système et un travail concentré sur votre ordinateur.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Inscrit par {{name}}","workspaceSetting.devices.enrolledByLabel": "Inscrit par","workspaceSetting.devices.heroDesc": "Inscrivez une machine partagée — un serveur de build ou un Mac d'équipe — et chaque membre pourra y exécuter des agents : lire/écrire des fichiers, exécuter des commandes et utiliser des outils système.",+ "workspaceSetting.devices.heroDescPrivate": "Inscrivez une machine pour votre propre usage dans cet espace de travail — les autres membres ne peuvent ni la voir ni l'utiliser. Exécutez des agents dessus : lisez/écrivez des fichiers, exécutez des commandes et appelez des outils système.","workspaceSetting.devices.heroTitle": "Connectez votre premier appareil d'espace de travail",+ "workspaceSetting.devices.heroTitlePrivate": "Connectez votre premier appareil privé","workspaceSetting.devices.offline": "Hors ligne","workspaceSetting.devices.online": "En ligne","workspaceSetting.devices.readonlyHint": "Seul le membre qui a inscrit cet appareil ou un propriétaire de l'espace de travail peut le renommer ou le supprimer.",diff --git a/locales/fr-FR/spend.json b/locales/fr-FR/spend.jsonindex df67cb4d65e..f1a8ed1ccc1 100644--- a/locales/fr-FR/spend.json+++ b/locales/fr-FR/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Jeton","usageStats.cards.tokenDesc": "Entrée {{input}} · Sortie {{output}}","usageStats.chart.cacheWrite": "Écriture dans le cache",+ "usageStats.chart.cachedInput": "Entrée mise en cache","usageStats.chart.input": "Entrée","usageStats.chart.output": "Sortie","usageStats.chart.spend": "Coût",diff --git a/locales/it-IT/chat.json b/locales/it-IT/chat.jsonindex 6781104ce60..2b075b961d2 100644--- a/locales/it-IT/chat.json+++ b/locales/it-IT/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Copilota integrato","chatList.expandMessage": "Espandi messaggio","chatList.longMessageDetail": "Visualizza dettagli",- "chatList.refreshing": "Recupero dei messaggi più recenti...",+ "chatList.refreshError": "Impossibile aggiornare i messaggi","chatMode.agent": "Agente","chatMode.agentCap.env": "Ambiente di esecuzione","chatMode.agentCap.files": "Accesso ai file",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} ore","cliRateLimitGuide.relative.minute_one": "{{count}} minuto","cliRateLimitGuide.relative.minute_other": "{{count}} minuti",+ "cliRateLimitGuide.relative.resetComplete": "Reset completato","cliRateLimitGuide.relative.soon": "Ripristino imminente","cliRateLimitGuide.resetAt": "Ripristino alle",+ "cliRateLimitGuide.resetIn": "Tempo rimanente","cliRateLimitGuide.resetInApprox": "Ripristina tra circa {{duration}}",+ "cliRateLimitGuide.resetUnknown": "la quota si resetta","cliRateLimitGuide.title": "Raggiunto il limite di utilizzo di {{name}}","codexInstallGuide.actions.openDocs": "Apri la guida all'installazione","codexInstallGuide.actions.openSystemTools": "Apri strumenti di sistema",@@ -404,6 +407,10 @@"inputQueue.edit": "Modifica","inputQueue.sendNow": "Invia ora (interrompe l'esecuzione attuale)","intentUnderstanding.title": "Comprensione dell'intento...",+ "internalLink.agent.open": "Apri agente",+ "internalLink.preview.agent": "Agente",+ "internalLink.preview.document": "Pagina",+ "internalLink.preview.task": "Compito","inviteMembers": "Invita membri","knowledgeBase.all": "Tutti i Contenuti","knowledgeBase.allFiles": "Tutti i File",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "In esecuzione… Puoi cambiare attività o chiudere la pagina: l'attività continuerà.","operation.heterogeneousAgentFallback": "Agente esterno","operation.sendMessage": "Invio del messaggio",+ "operation.streamRetry": "{{name}} upstream è occupato ({{status}}), tentativo di nuovo",+ "operation.streamRetry.unknownStatus": "stato sconosciuto",+ "operation.streamRetry.withAttempt": "{{name}} upstream è occupato ({{status}}), tentativo di nuovo {{attempt}}/{{maxAttempts}}","owner": "Proprietario del gruppo","pageCopilot.title": "Agente di pagina","pageCopilot.welcome": "**Scrittura più chiara e precisa**\n\nScrivi, riscrivi o perfeziona—dimmi cosa vuoi ottenere e penserò al resto.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Ha scritto un file","workflow.working": "In corso...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Indietro",+ "workingPanel.browser.actions.capture": "Copia screenshot",+ "workingPanel.browser.actions.captured": "Screenshot copiato negli appunti",+ "workingPanel.browser.actions.failed": "Azione del browser non riuscita",+ "workingPanel.browser.actions.forward": "Avanti",+ "workingPanel.browser.actions.openExternal": "Apri nel browser di sistema",+ "workingPanel.browser.actions.reload": "Ricarica",+ "workingPanel.browser.actions.stop": "Interrompi caricamento",+ "workingPanel.browser.addressPlaceholder": "Cerca o inserisci indirizzo",+ "workingPanel.browser.desktopOnly": "Il browser integrato è disponibile solo nell'app desktop",+ "workingPanel.browser.empty.desc": "Inserisci un indirizzo o cerca sopra per aprire una pagina",+ "workingPanel.browser.empty.title": "Inizia a navigare",+ "workingPanel.browser.title": "Browser","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/it-IT/labs.json b/locales/it-IT/labs.jsonindex f15f75bea76..547d8bc996b 100644--- a/locales/it-IT/labs.json+++ b/locales/it-IT/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Auto-iterazione dell'agente","features.assistantMessageGroup.desc": "Raggruppa i messaggi dell'agente e i risultati delle chiamate agli strumenti per una visualizzazione unificata","features.assistantMessageGroup.title": "Raggruppamento Messaggi Agente",+ "features.claudeCodeSdk.desc": "Esegui sessioni Claude Code tramite il Claude Agent SDK invece di avviare il CLI. Consente uno streaming più ricco e un controllo delle sessioni più avanzato.",+ "features.claudeCodeSdk.title": "Runtime SDK di Claude Code","features.fleet.desc": "Mostra la voce Fleet nella barra del titolo — un pannello affiancato di tutte le attività in corso tra i tuoi agenti.","features.fleet.title": "Vista Fleet","features.foldFinishedTurn.desc": "Comprimi il processo (ragionamento e chiamate agli strumenti) dei turni dell'agente completati e non più recenti sotto un'intestazione \"Elaborato\". La risposta finale rimane visibile; clicca per espandere il processo.",diff --git a/locales/it-IT/providers.json b/locales/it-IT/providers.jsonindex b9482c9efd5..e961705fe10 100644--- a/locales/it-IT/providers.json+++ b/locales/it-IT/providers.json@@ -64,6 +64,7 @@"stepfun.description": "I modelli Stepfun offrono capacità multimodali e di ragionamento complesse all'avanguardia, con comprensione di contesti lunghi e potente orchestrazione di ricerca autonoma.","straico.description": "Straico semplifica l'integrazione dell'IA offrendo uno spazio di lavoro unificato che riunisce i migliori modelli generativi di IA per testo, immagini e audio, offrendo a marketer, imprenditori e appassionati un accesso senza soluzione di continuità a diversi strumenti di IA.","streamlake.description": "StreamLake è una piattaforma enterprise di servizi di modelli e cloud di calcolo AI, che integra inferenza di modelli ad alte prestazioni, personalizzazione dei modelli a basso costo e servizi completamente gestiti per aiutare le aziende a concentrarsi sull’innovazione delle applicazioni AI senza doversi preoccupare della complessità e dei costi delle risorse di calcolo sottostanti.",+ "supergrok.description": "Accedi ai modelli Grok con il tuo abbonamento SuperGrok o X Premium, senza bisogno di una chiave API.","taichu.description": "Un modello multimodale di nuova generazione sviluppato da CASIA e Wuhan Institute of AI, che supporta QA multi-turno, scrittura, generazione di immagini, comprensione 3D e analisi di segnali con maggiore cognizione e creatività.","tencentcloud.description": "LLM Knowledge Engine Atomic Power fornisce QA end-to-end per imprese e sviluppatori, con servizi modulari come parsing documenti, suddivisione, embedding e riscrittura multi-turno per creare soluzioni AI personalizzate.","togetherai.description": "Together AI offre prestazioni leader con modelli innovativi, ampia personalizzazione, scalabilità rapida e distribuzione semplice per esigenze aziendali.",diff --git a/locales/it-IT/setting.json b/locales/it-IT/setting.jsonindex d0bcb61c616..4223c4395dc 100644--- a/locales/it-IT/setting.json+++ b/locales/it-IT/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Modello","defaultAgent.title": "Impostazioni Agente Predefinito","devices.actions.edit": "Modifica",+ "devices.actions.refresh": "Aggiorna","devices.actions.remove": "Rimuovi","devices.actions.removeSelected": "Rimuovi ({{count}})","devices.capabilities.commands.desc": "Esegui comandi terminale in modo sicuro nel tuo ambiente.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Questo include il dispositivo che stai utilizzando in questo momento — rimuoverlo disconnetterà la tua sessione corrente.","devices.selection.selected": "{{count}} selezionati","devices.selection.total": "{{count}} dispositivi",+ "devices.share.alreadyShared": "Condiviso",+ "devices.share.badge": "Condiviso con {{count}} spazi di lavoro",+ "devices.share.confirm": "Condividi",+ "devices.share.detailLabel": "Condiviso con spazi di lavoro",+ "devices.share.done": "Fatto",+ "devices.share.empty": "Non hai ancora aderito a nessuno spazio di lavoro.",+ "devices.share.goToTarget": "Vai a {{name}}",+ "devices.share.menu": "Condividi con uno spazio di lavoro…",+ "devices.share.modalDesc": "Scegli uno spazio di lavoro in cui condividere questo dispositivo. I membri possono eseguire agenti su di esso mentre rimane online.",+ "devices.share.modalTitle": "Condividi dispositivo con uno spazio di lavoro",+ "devices.share.offlineDesc": "Il dispositivo deve essere online per condividerlo",+ "devices.share.overwriteConfirmDesc": "Questa macchina è già registrata in questo spazio di lavoro con accesso {{current}}. Continuare per cambiarlo in {{next}} e collegarlo a questo dispositivo.",+ "devices.share.overwriteConfirmOk": "Sovrascrivi",+ "devices.share.overwriteConfirmTitle": "Già in {{name}} — sovrascrivere?",+ "devices.share.revoke": "Rimuovi condivisione",+ "devices.share.revokeConfirmDesc": "Questo rimuove il dispositivo da quello spazio di lavoro. I membri non potranno più eseguire agenti su di esso; puoi condividerlo di nuovo in qualsiasi momento.",+ "devices.share.revokeConfirmTitle": "Rimuovere condivisione da {{name}}?",+ "devices.share.selectPlaceholder": "Seleziona uno spazio di lavoro",+ "devices.share.sharedByTag": "Condiviso da {{name}}",+ "devices.share.success": "Dispositivo condiviso con {{name}}",+ "devices.share.targetLabel": "Condividi con",+ "devices.share.viewerHint": "I visualizzatori non possono condividere dispositivi",+ "devices.share.visibilityTag.private": "Privato",+ "devices.share.visibilityTag.public": "Spazio di lavoro","devices.status.offline": "Offline","devices.status.online": "Online","devices.title": "I miei dispositivi",+ "devices.visibility.publish": "Pubblica nello spazio di lavoro",+ "devices.visibility.publishConfirmTitle": "Pubblicare questo dispositivo nello spazio di lavoro?",+ "devices.visibilityTabs.private": "Privato",+ "devices.visibilityTabs.workspace": "Spazio di lavoro","devices.workingDirectory": "Dir di lavoro: {{path}}","downloads.desktop.cta": "Scarica l'app desktop","downloads.desktop.desc": "Usa l'app desktop nativa per file locali, strumenti di sistema e lavoro concentrato sul tuo computer.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Registrato da {{name}}","workspaceSetting.devices.enrolledByLabel": "Registrato da","workspaceSetting.devices.heroDesc": "Registra una macchina condivisa — un server di build o un Mac del team — e ogni membro potrà eseguire agenti su di essa: leggere/scrivere file, eseguire comandi e utilizzare strumenti di sistema.",+ "workspaceSetting.devices.heroDescPrivate": "Registra una macchina per il tuo uso personale in questo spazio di lavoro — gli altri membri non possono vederla o utilizzarla. Esegui agenti su di essa: leggi/scrivi file, esegui comandi e utilizza strumenti di sistema.","workspaceSetting.devices.heroTitle": "Connetti il tuo primo dispositivo del workspace",+ "workspaceSetting.devices.heroTitlePrivate": "Collega il tuo primo dispositivo privato","workspaceSetting.devices.offline": "Offline","workspaceSetting.devices.online": "Online","workspaceSetting.devices.readonlyHint": "Solo il membro che ha registrato questo dispositivo o un proprietario dello spazio di lavoro può rinominarlo o rimuoverlo.",diff --git a/locales/it-IT/spend.json b/locales/it-IT/spend.jsonindex cd18dd2f553..7759e0f95e6 100644--- a/locales/it-IT/spend.json+++ b/locales/it-IT/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Input {{input}} · Output {{output}}","usageStats.chart.cacheWrite": "Scrittura cache",+ "usageStats.chart.cachedInput": "Input memorizzato nella cache","usageStats.chart.input": "Input","usageStats.chart.output": "Output","usageStats.chart.spend": "Costo",diff --git a/locales/ja-JP/chat.json b/locales/ja-JP/chat.jsonindex 37895c2deda..4e13d522d06 100644--- a/locales/ja-JP/chat.json+++ b/locales/ja-JP/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "内蔵 Copilot","chatList.expandMessage": "メッセージを展開","chatList.longMessageDetail": "詳細を見る",- "chatList.refreshing": "最新のメッセージを取得しています...",+ "chatList.refreshError": "メッセージを更新できませんでした","chatMode.agent": "エージェント","chatMode.agentCap.env": "実行環境","chatMode.agentCap.files": "ファイルアクセス",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} 時間","cliRateLimitGuide.relative.minute_one": "{{count}} 分","cliRateLimitGuide.relative.minute_other": "{{count}} 分",+ "cliRateLimitGuide.relative.resetComplete": "リセット完了","cliRateLimitGuide.relative.soon": "まもなくリセット","cliRateLimitGuide.resetAt": "リセット時刻",+ "cliRateLimitGuide.resetIn": "残り時間","cliRateLimitGuide.resetInApprox": "約 {{duration}} でリセット",+ "cliRateLimitGuide.resetUnknown": "クォータがリセットされます","cliRateLimitGuide.title": "{{name}} の使用制限に達しました","codexInstallGuide.actions.openDocs": "インストールガイドを開く","codexInstallGuide.actions.openSystemTools": "システムツールを開く",@@ -404,6 +407,10 @@"inputQueue.edit": "編集","inputQueue.sendNow": "今すぐ送信(現在の実行を中断)","intentUnderstanding.title": "あなたの意図を理解中…",+ "internalLink.agent.open": "エージェントを開く",+ "internalLink.preview.agent": "エージェント",+ "internalLink.preview.document": "ページ",+ "internalLink.preview.task": "タスク","inviteMembers": "メンバーを招待","knowledgeBase.all": "すべてのコンテンツ","knowledgeBase.allFiles": "すべてのファイル",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "実行中… タスクは継続するため、別の作業に移ったりページを閉じても問題ありません。","operation.heterogeneousAgentFallback": "外部エージェント","operation.sendMessage": "メッセージを送信中",+ "operation.streamRetry": "{{name}} の上流がビジー状態です ({{status}})、再試行中",+ "operation.streamRetry.unknownStatus": "不明なステータス",+ "operation.streamRetry.withAttempt": "{{name}} の上流がビジー状態です ({{status}})、{{attempt}}/{{maxAttempts}} 回目の再試行中","owner": "グループオーナー","pageCopilot.title": "ドキュメントコパイロット","pageCopilot.welcome": "**文章をより明確で的確に**\n\n草稿、リライト、推何も—あなたは意図を明確にし、残りは私が磨き上げます",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "ファイルを書き込みました","workflow.working": "処理中...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "戻る",+ "workingPanel.browser.actions.capture": "スクリーンショットをコピー",+ "workingPanel.browser.actions.captured": "スクリーンショットがクリップボードにコピーされました",+ "workingPanel.browser.actions.failed": "ブラウザー操作に失敗しました",+ "workingPanel.browser.actions.forward": "進む",+ "workingPanel.browser.actions.openExternal": "システムブラウザで開く",+ "workingPanel.browser.actions.reload": "再読み込み",+ "workingPanel.browser.actions.stop": "読み込みを停止",+ "workingPanel.browser.addressPlaceholder": "検索またはアドレスを入力",+ "workingPanel.browser.desktopOnly": "アプリ内ブラウザはデスクトップアプリでのみ利用可能です",+ "workingPanel.browser.empty.desc": "上部にアドレスを入力するか検索してページを開いてください",+ "workingPanel.browser.empty.title": "ブラウジングを開始",+ "workingPanel.browser.title": "ブラウザ","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/ja-JP/labs.json b/locales/ja-JP/labs.jsonindex 2898065d67d..2b5698a0981 100644--- a/locales/ja-JP/labs.json+++ b/locales/ja-JP/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "エージェントの自己反復","features.assistantMessageGroup.desc": "アシスタントのメッセージとそのツール呼び出し結果をグループ化して表示します","features.assistantMessageGroup.title": "アシスタントメッセージのグループ化表示",+ "features.claudeCodeSdk.desc": "Claude Agent SDKを使用してClaude Codeセッションを実行し、CLIを起動する代わりに利用します。より豊かなストリーミングとセッション管理を可能にします。",+ "features.claudeCodeSdk.title": "Claude Code SDKランタイム","features.fleet.desc": "タイトルバーにフリートエントリを表示します。エージェント全体で実行中のタスクを並べて表示するダッシュボードです。","features.fleet.title": "フリートビュー","features.foldFinishedTurn.desc": "完了した最新ではないエージェントのターンのプロセス(推論やツールの呼び出し)を「処理済み」ヘッダーの下に折りたたみます。最終的な回答は表示されたままです。プロセスを展開するにはクリックしてください。",diff --git a/locales/ja-JP/providers.json b/locales/ja-JP/providers.jsonindex 5e25faceda1..9bafe72edc3 100644--- a/locales/ja-JP/providers.json+++ b/locales/ja-JP/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfunのモデルは、マルチモーダル処理と複雑な推論に優れ、長文コンテキスト理解や自律的な検索オーケストレーションに対応します。","straico.description": "Straicoは、テキスト、画像、音声の生成AIモデルを統合したワークスペースを提供することで、AIの統合を簡素化します。これにより、マーケター、起業家、そして愛好家が多様なAIツールにシームレスにアクセスできるようになります。","streamlake.description": "StreamLakeは、企業向けのモデルサービスおよびAIコンピューティングクラウドプラットフォームであり、高性能なモデル推論、低コストのモデルカスタマイズ、フルマネージドサービスを統合し、企業が基盤となるコンピューティングリソースの複雑さやコストを気にすることなく、AIアプリケーションのイノベーションに専念できるよう支援します。",+ "supergrok.description": "SuperGrokまたはX PremiumサブスクリプションでGrokモデルにアクセスできます。APIキーは不要です。","taichu.description": "Taichuは、CASIAと武漢AI研究所が開発した次世代マルチモーダルモデルで、マルチターンQA、文章生成、画像生成、3D理解、信号解析などに対応し、認知力と創造性を強化しています。","tencentcloud.description": "LLM Knowledge Engine Atomic Powerは、企業や開発者向けに、文書解析、分割、埋め込み、多ターンリライトなどのモジュール型サービスを通じて、カスタムAIソリューションを構築できるエンドツーエンドの知識QAを提供します。","togetherai.description": "Together AIは、革新的なモデル、高度なカスタマイズ、迅速なスケーリング、シンプルな導入により、企業ニーズに応える高性能AIを提供します。",diff --git a/locales/ja-JP/setting.json b/locales/ja-JP/setting.jsonindex 737f42a939b..1e448b92751 100644--- a/locales/ja-JP/setting.json+++ b/locales/ja-JP/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "モデル","defaultAgent.title": "デフォルトアシスタント設定","devices.actions.edit": "編集",+ "devices.actions.refresh": "更新","devices.actions.remove": "削除","devices.actions.removeSelected": "削除 ({{count}})","devices.capabilities.commands.desc": "環境内でターミナルコマンドを安全に実行します。",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "これには現在使用しているデバイスも含まれます。削除すると現在のセッションが切断されます。","devices.selection.selected": "{{count}} 件選択済み","devices.selection.total": "{{count}} 台のデバイス",+ "devices.share.alreadyShared": "共有済み",+ "devices.share.badge": "{{count}} ワークスペースに共有済み",+ "devices.share.confirm": "共有",+ "devices.share.detailLabel": "ワークスペースに共有済み",+ "devices.share.done": "完了",+ "devices.share.empty": "まだワークスペースに参加していません。",+ "devices.share.goToTarget": "{{name}} に移動",+ "devices.share.menu": "ワークスペースに共有…",+ "devices.share.modalDesc": "このデバイスを共有するワークスペースを選択してください。メンバーはデバイスがオンラインの間、エージェント実行をディスパッチできます。",+ "devices.share.modalTitle": "デバイスをワークスペースに共有",+ "devices.share.offlineDesc": "共有するにはデバイスがオンラインである必要があります",+ "devices.share.overwriteConfirmDesc": "このマシンはすでに {{current}} アクセスでこのワークスペースに登録されています。{{next}} に変更してこのデバイスにリンクしますか?",+ "devices.share.overwriteConfirmOk": "上書き",+ "devices.share.overwriteConfirmTitle": "すでに {{name}} に登録されています — 上書きしますか?",+ "devices.share.revoke": "共有解除",+ "devices.share.revokeConfirmDesc": "このデバイスをそのワークスペースから削除します。メンバーはもう実行をディスパッチできなくなりますが、いつでも再共有できます。",+ "devices.share.revokeConfirmTitle": "{{name}} から共有解除しますか?",+ "devices.share.selectPlaceholder": "ワークスペースを選択",+ "devices.share.sharedByTag": "{{name}} によって共有",+ "devices.share.success": "デバイスが {{name}} に共有されました",+ "devices.share.targetLabel": "共有先",+ "devices.share.viewerHint": "閲覧者はデバイスを共有できません",+ "devices.share.visibilityTag.private": "プライベート",+ "devices.share.visibilityTag.public": "ワークスペース","devices.status.offline": "オフライン","devices.status.online": "オンライン","devices.title": "私のデバイス",+ "devices.visibility.publish": "ワークスペースに公開",+ "devices.visibility.publishConfirmTitle": "このデバイスをワークスペースに公開しますか?",+ "devices.visibilityTabs.private": "プライベート",+ "devices.visibilityTabs.workspace": "ワークスペース","devices.workingDirectory": "作業ディレクトリ: {{path}}","downloads.desktop.cta": "デスクトップアプリをダウンロード","downloads.desktop.desc": "ローカルファイル、システムツール、コンピュータでの集中作業のためにネイティブデスクトップアプリを使用してください。",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "{{name}} によって登録済み","workspaceSetting.devices.enrolledByLabel": "登録者","workspaceSetting.devices.heroDesc": "共有マシン(ビルドサーバーやチームのMacなど)を登録すると、すべてのメンバーが以下を実行できます:ファイルの読み書き、コマンドの実行、システムツールの呼び出し。",+ "workspaceSetting.devices.heroDescPrivate": "このワークスペースで自分専用のマシンを登録してください。他のメンバーは見ることも使用することもできません。エージェントを実行して、ファイルの読み書き、コマンドの実行、システムツールの呼び出しを行えます。","workspaceSetting.devices.heroTitle": "最初のワークスペースデバイスを接続",+ "workspaceSetting.devices.heroTitlePrivate": "最初のプライベートデバイスを接続","workspaceSetting.devices.offline": "オフライン","workspaceSetting.devices.online": "オンライン","workspaceSetting.devices.readonlyHint": "このデバイスを登録したメンバーまたはワークスペースの所有者のみが名前変更や削除を行えます。",diff --git a/locales/ja-JP/spend.json b/locales/ja-JP/spend.jsonindex e5f4592f637..06088400503 100644--- a/locales/ja-JP/spend.json+++ b/locales/ja-JP/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "トークン","usageStats.cards.tokenDesc": "入力 {{input}} · 出力 {{output}}","usageStats.chart.cacheWrite": "キャッシュ書き込み",+ "usageStats.chart.cachedInput": "キャッシュされた入力","usageStats.chart.input": "入力","usageStats.chart.output": "出力","usageStats.chart.spend": "コスト",diff --git a/locales/ko-KR/chat.json b/locales/ko-KR/chat.jsonindex 3639ece42c8..6e928982440 100644--- a/locales/ko-KR/chat.json+++ b/locales/ko-KR/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "내장 Copilot","chatList.expandMessage": "메시지 펼치기","chatList.longMessageDetail": "자세히 보기",- "chatList.refreshing": "최신 메시지를 가져오는 중...",+ "chatList.refreshError": "메시지를 새로 고칠 수 없습니다","chatMode.agent": "에이전트","chatMode.agentCap.env": "실행 환경","chatMode.agentCap.files": "파일 접근",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}}시간","cliRateLimitGuide.relative.minute_one": "{{count}}분","cliRateLimitGuide.relative.minute_other": "{{count}}분",+ "cliRateLimitGuide.relative.resetComplete": "재설정 완료","cliRateLimitGuide.relative.soon": "곧 재설정","cliRateLimitGuide.resetAt": "재설정 시각",+ "cliRateLimitGuide.resetIn": "남은 시간","cliRateLimitGuide.resetInApprox": "약 {{duration}} 후 재설정",+ "cliRateLimitGuide.resetUnknown": "할당량이 재설정됩니다","cliRateLimitGuide.title": "{{name}} 사용 한도 도달","codexInstallGuide.actions.openDocs": "설치 가이드 열기","codexInstallGuide.actions.openSystemTools": "시스템 도구 열기",@@ -404,6 +407,10 @@"inputQueue.edit": "수정","inputQueue.sendNow": "지금 보내기 (현재 실행 중단)","intentUnderstanding.title": "당신의 의도를 이해하는 중…",+ "internalLink.agent.open": "에이전트 열기",+ "internalLink.preview.agent": "에이전트",+ "internalLink.preview.document": "페이지",+ "internalLink.preview.task": "작업","inviteMembers": "구성원 초대","knowledgeBase.all": "모든 컨텐츠","knowledgeBase.allFiles": "모든 파일",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "실행 중… 다른 작업으로 이동하거나 페이지를 닫아도 작업은 계속 진행됩니다.","operation.heterogeneousAgentFallback": "외부 에이전트","operation.sendMessage": "메시지 전송 중",+ "operation.streamRetry": "{{name}} 업스트림이 바쁩니다 ({{status}}), 다시 시도 중",+ "operation.streamRetry.unknownStatus": "알 수 없는 상태",+ "operation.streamRetry.withAttempt": "{{name}} 업스트림이 바쁩니다 ({{status}}), 다시 시도 중 {{attempt}}/{{maxAttempts}}","owner": "그룹 소유자","pageCopilot.title": "문서 코파일럿","pageCopilot.welcome": "**모든 글을 더 명확하고 적절하게**\n\n초안 작성, 리라이팅, 교정까지—당신은 의도를 명확히 하고, 나머지는 제가 다듬어 드리겠습니다",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "파일을 작성했습니다","workflow.working": "작업 중...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "뒤로",+ "workingPanel.browser.actions.capture": "스크린샷 복사",+ "workingPanel.browser.actions.captured": "스크린샷이 클립보드에 복사되었습니다",+ "workingPanel.browser.actions.failed": "브라우저 작업 실패",+ "workingPanel.browser.actions.forward": "앞으로",+ "workingPanel.browser.actions.openExternal": "시스템 브라우저에서 열기",+ "workingPanel.browser.actions.reload": "새로 고침",+ "workingPanel.browser.actions.stop": "로딩 중지",+ "workingPanel.browser.addressPlaceholder": "주소를 입력하거나 검색",+ "workingPanel.browser.desktopOnly": "앱 내 브라우저는 데스크톱 앱에서만 사용할 수 있습니다",+ "workingPanel.browser.empty.desc": "위에 주소를 입력하거나 검색하여 페이지를 열어보세요",+ "workingPanel.browser.empty.title": "브라우징 시작",+ "workingPanel.browser.title": "브라우저","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/ko-KR/labs.json b/locales/ko-KR/labs.jsonindex db5bdf95e72..b82131886fc 100644--- a/locales/ko-KR/labs.json+++ b/locales/ko-KR/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "에이전트 자기 반복","features.assistantMessageGroup.desc": "도우미 메시지와 해당 도구 호출 결과를 그룹으로 묶어 표시합니다","features.assistantMessageGroup.title": "도우미 메시지 그룹화",+ "features.claudeCodeSdk.desc": "Claude Agent SDK를 통해 Claude Code 세션을 실행하여 CLI를 생성하는 대신 사용합니다. 더 풍부한 스트리밍과 세션 제어를 가능하게 합니다.",+ "features.claudeCodeSdk.title": "Claude Code SDK 런타임","features.fleet.desc": "제목 표시줄에 Fleet 항목을 표시합니다 — 에이전트 간 실행 중인 모든 작업의 대시보드를 나란히 볼 수 있습니다.","features.fleet.title": "Fleet 보기","features.foldFinishedTurn.desc": "완료된 비최신 에이전트 턴의 프로세스(추론 및 도구 호출)를 \"처리됨\" 헤더 아래로 축소합니다. 최종 답변은 계속 표시되며, 프로세스를 확장하려면 클릭하세요.",diff --git a/locales/ko-KR/providers.json b/locales/ko-KR/providers.jsonindex 67e401baefe..c520aa64c19 100644--- a/locales/ko-KR/providers.json+++ b/locales/ko-KR/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun 모델은 멀티모달 및 복잡한 추론 능력, 장문 문맥 이해, 강력한 자율 검색 조정 기능을 제공합니다.","straico.description": "Straico는 최고의 텍스트, 이미지 및 오디오 생성 AI 모델을 하나로 통합한 통합 작업 공간을 제공하여 마케터, 기업가 및 열정적인 사용자들이 다양한 AI 도구에 원활하게 접근할 수 있도록 지원합니다.","streamlake.description": "StreamLake는 엔터프라이즈급 모델 서비스와 AI 컴퓨팅 클라우드를 제공하는 플랫폼으로, 고성능 모델 추론, 저비용 모델 커스터마이징, 완전 관리형 서비스를 통합하여 기업이 복잡한 인프라 운영이나 비용 부담 없이 AI 애플리케이션 혁신에 집중할 수 있도록 지원합니다.",+ "supergrok.description": "SuperGrok 또는 X 프리미엄 구독으로 Grok 모델에 액세스하세요. API 키가 필요하지 않습니다.","taichu.description": "Taichu는 CASIA와 우한 인공지능연구원이 공동 개발한 차세대 멀티모달 모델로, 다중 회차 QA, 작문, 이미지 생성, 3D 이해, 신호 분석 등에서 뛰어난 인지력과 창의성을 발휘합니다.","tencentcloud.description": "LLM 지식 엔진 Atomic Power는 문서 파싱, 청킹, 임베딩, 다중 회차 재작성 등 모듈형 서비스를 통해 기업과 개발자를 위한 맞춤형 AI 솔루션을 제공합니다.","togetherai.description": "Together AI는 혁신적인 모델, 폭넓은 커스터마이징, 빠른 확장성, 간편한 배포를 통해 기업의 요구에 맞는 최고의 성능을 제공합니다.",diff --git a/locales/ko-KR/setting.json b/locales/ko-KR/setting.jsonindex dd0f3f1fb83..29f452c658c 100644--- a/locales/ko-KR/setting.json+++ b/locales/ko-KR/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "모델","defaultAgent.title": "기본 도우미 설정","devices.actions.edit": "편집",+ "devices.actions.refresh": "새로고침","devices.actions.remove": "제거","devices.actions.removeSelected": "제거 ({{count}})","devices.capabilities.commands.desc": "환경에서 터미널 명령을 안전하게 실행합니다.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "현재 사용 중인 장치도 포함됩니다. 이를 제거하면 현재 세션이 연결 해제됩니다.","devices.selection.selected": "{{count}}개 선택됨","devices.selection.total": "{{count}}개의 기기",+ "devices.share.alreadyShared": "공유됨",+ "devices.share.badge": "{{count}}개의 워크스페이스에 공유됨",+ "devices.share.confirm": "공유",+ "devices.share.detailLabel": "워크스페이스에 공유됨",+ "devices.share.done": "완료",+ "devices.share.empty": "아직 가입한 워크스페이스가 없습니다.",+ "devices.share.goToTarget": "{{name}}로 이동",+ "devices.share.menu": "워크스페이스에 공유…",+ "devices.share.modalDesc": "이 장치를 공유할 워크스페이스를 선택하세요. 멤버들은 장치가 온라인 상태일 때 에이전트 실행을 디스패치할 수 있습니다.",+ "devices.share.modalTitle": "장치를 워크스페이스에 공유",+ "devices.share.offlineDesc": "장치를 공유하려면 온라인 상태여야 합니다.",+ "devices.share.overwriteConfirmDesc": "이 장치는 이미 {{current}} 접근 권한으로 이 워크스페이스에 등록되어 있습니다. {{next}}로 변경하고 이 장치에 연결하시겠습니까?",+ "devices.share.overwriteConfirmOk": "덮어쓰기",+ "devices.share.overwriteConfirmTitle": "{{name}}에 이미 등록됨 — 덮어쓸까요?",+ "devices.share.revoke": "공유 해제",+ "devices.share.revokeConfirmDesc": "이 작업은 장치를 해당 워크스페이스에서 제거합니다. 멤버들은 더 이상 실행을 디스패치할 수 없으며, 언제든 다시 공유할 수 있습니다.",+ "devices.share.revokeConfirmTitle": "{{name}}에서 공유 해제하시겠습니까?",+ "devices.share.selectPlaceholder": "워크스페이스 선택",+ "devices.share.sharedByTag": "{{name}}에 의해 공유됨",+ "devices.share.success": "장치가 {{name}}에 공유되었습니다",+ "devices.share.targetLabel": "공유 대상",+ "devices.share.viewerHint": "뷰어는 장치를 공유할 수 없습니다",+ "devices.share.visibilityTag.private": "비공개",+ "devices.share.visibilityTag.public": "워크스페이스","devices.status.offline": "오프라인","devices.status.online": "온라인","devices.title": "내 장치",+ "devices.visibility.publish": "워크스페이스에 게시",+ "devices.visibility.publishConfirmTitle": "이 장치를 워크스페이스에 게시하시겠습니까?",+ "devices.visibilityTabs.private": "비공개",+ "devices.visibilityTabs.workspace": "워크스페이스","devices.workingDirectory": "작업 디렉토리: {{path}}","downloads.desktop.cta": "데스크톱 앱 다운로드","downloads.desktop.desc": "로컬 파일, 시스템 도구 및 컴퓨터에서 집중 작업을 위한 네이티브 데스크톱 앱을 사용하세요.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "{{name}}에 의해 등록됨","workspaceSetting.devices.enrolledByLabel": "등록자","workspaceSetting.devices.heroDesc": "공유 기기 — 빌드 서버나 팀 Mac —를 등록하면 모든 멤버가 파일 읽기/쓰기, 명령 실행, 시스템 도구 호출을 할 수 있습니다:",+ "workspaceSetting.devices.heroDescPrivate": "이 워크스페이스에서 개인적으로 사용할 기계를 등록하세요 — 다른 멤버들은 볼 수 없으며 사용할 수 없습니다. 에이전트를 실행하여 파일을 읽고/쓰기, 명령 실행, 시스템 도구 호출이 가능합니다.","workspaceSetting.devices.heroTitle": "첫 워크스페이스 기기 연결",+ "workspaceSetting.devices.heroTitlePrivate": "첫 번째 개인 장치 연결","workspaceSetting.devices.offline": "오프라인","workspaceSetting.devices.online": "온라인","workspaceSetting.devices.readonlyHint": "이 기기를 등록한 멤버 또는 워크스페이스 소유자만 이름을 변경하거나 제거할 수 있습니다.",diff --git a/locales/ko-KR/spend.json b/locales/ko-KR/spend.jsonindex 2b224870b46..0d0a3d62458 100644--- a/locales/ko-KR/spend.json+++ b/locales/ko-KR/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "토큰","usageStats.cards.tokenDesc": "입력 {{input}} · 출력 {{output}}","usageStats.chart.cacheWrite": "캐시 쓰기",+ "usageStats.chart.cachedInput": "캐시된 입력","usageStats.chart.input": "입력","usageStats.chart.output": "출력","usageStats.chart.spend": "비용",diff --git a/locales/nl-NL/chat.json b/locales/nl-NL/chat.jsonindex f56687bc0e7..b98a776c1b2 100644--- a/locales/nl-NL/chat.json+++ b/locales/nl-NL/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Ingebouwde Copilot","chatList.expandMessage": "Bericht uitvouwen","chatList.longMessageDetail": "Details bekijken",- "chatList.refreshing": "Laatste berichten ophalen...",+ "chatList.refreshError": "Kon berichten niet vernieuwen","chatMode.agent": "Agent","chatMode.agentCap.env": "Runtime-omgeving","chatMode.agentCap.files": "Bestandstoegang",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} uur","cliRateLimitGuide.relative.minute_one": "{{count}} minuut","cliRateLimitGuide.relative.minute_other": "{{count}} minuten",+ "cliRateLimitGuide.relative.resetComplete": "Reset voltooid","cliRateLimitGuide.relative.soon": "Reset binnenkort","cliRateLimitGuide.resetAt": "Reset op",+ "cliRateLimitGuide.resetIn": "Resterende tijd","cliRateLimitGuide.resetInApprox": "Reset over ongeveer {{duration}}",+ "cliRateLimitGuide.resetUnknown": "het quotum wordt gereset","cliRateLimitGuide.title": "{{name}} gebruikslimiet bereikt","codexInstallGuide.actions.openDocs": "Installatiehandleiding openen","codexInstallGuide.actions.openSystemTools": "Systeemhulpmiddelen openen",@@ -404,6 +407,10 @@"inputQueue.edit": "Bewerken","inputQueue.sendNow": "Nu verzenden (onderbreekt huidige run)","intentUnderstanding.title": "Je intentie wordt begrepen...",+ "internalLink.agent.open": "Agent openen",+ "internalLink.preview.agent": "Agent",+ "internalLink.preview.document": "Pagina",+ "internalLink.preview.task": "Taak","inviteMembers": "Leden uitnodigen","knowledgeBase.all": "Alle inhoud","knowledgeBase.allFiles": "Alle bestanden",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Bezig… Je kunt van taak wisselen of de pagina sluiten — de taak blijft doorgaan.","operation.heterogeneousAgentFallback": "Externe agent","operation.sendMessage": "Bericht verzenden",+ "operation.streamRetry": "{{name}} upstream is bezet ({{status}}), opnieuw proberen",+ "operation.streamRetry.unknownStatus": "onbekende status",+ "operation.streamRetry.withAttempt": "{{name}} upstream is bezet ({{status}}), opnieuw proberen {{attempt}}/{{maxAttempts}}","owner": "Groepseigenaar","pageCopilot.title": "Pagina-agent","pageCopilot.welcome": "**Duidelijker, krachtiger schrijven**\n\nSchrijf, herschrijf of verbeter—vertel me je bedoeling en ik doe de rest.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Heeft een bestand geschreven","workflow.working": "Bezig...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Terug",+ "workingPanel.browser.actions.capture": "Screenshot kopiëren",+ "workingPanel.browser.actions.captured": "Screenshot gekopieerd naar klembord",+ "workingPanel.browser.actions.failed": "Browseractie mislukt",+ "workingPanel.browser.actions.forward": "Vooruit",+ "workingPanel.browser.actions.openExternal": "Openen in systeembrowser",+ "workingPanel.browser.actions.reload": "Herladen",+ "workingPanel.browser.actions.stop": "Stoppen met laden",+ "workingPanel.browser.addressPlaceholder": "Zoeken of adres invoeren",+ "workingPanel.browser.desktopOnly": "De in-app browser is alleen beschikbaar in de desktop-app",+ "workingPanel.browser.empty.desc": "Voer hierboven een adres in of zoek om een pagina te openen",+ "workingPanel.browser.empty.title": "Begin met browsen",+ "workingPanel.browser.title": "Browser","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/nl-NL/labs.json b/locales/nl-NL/labs.jsonindex 1b8755fc589..45f07bc3c9b 100644--- a/locales/nl-NL/labs.json+++ b/locales/nl-NL/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Agent-zelfiteratie","features.assistantMessageGroup.desc": "Groepeer berichten van de agent en de resultaten van hun tool-aanroepen samen voor weergave","features.assistantMessageGroup.title": "Agentberichtengroepering",+ "features.claudeCodeSdk.desc": "Voer Claude Code-sessies uit via de Claude Agent SDK in plaats van de CLI te starten. Biedt rijkere streaming en sessiebeheer.",+ "features.claudeCodeSdk.title": "Claude Code SDK Runtime","features.fleet.desc": "Toon de Fleet-invoer in de titelbalk — een zij-aan-zij dashboard van alle lopende taken over uw agents.","features.fleet.title": "Fleet-weergave","features.foldFinishedTurn.desc": "Vouw het proces (redenering en hulpmiddeloproepen) van voltooide, niet-laatste agentbeurten onder een kop \"Verwerkt\". Het uiteindelijke antwoord blijft zichtbaar; klik om het proces uit te vouwen.",diff --git a/locales/nl-NL/providers.json b/locales/nl-NL/providers.jsonindex 121879b8709..e45da8305bc 100644--- a/locales/nl-NL/providers.json+++ b/locales/nl-NL/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun-modellen bieden toonaangevende multimodale en complexe redeneercapaciteiten, met begrip van lange contexten en krachtige autonome zoekcoördinatie.","straico.description": "Straico vereenvoudigt AI-integratie door een uniforme werkruimte te bieden die de beste tekst-, beeld- en audiogeneratieve AI-modellen samenbrengt, waardoor marketeers, ondernemers en enthousiastelingen naadloze toegang krijgen tot diverse AI-tools.","streamlake.description": "StreamLake is een enterprise-niveau modelservicedienst en AI-computingcloudplatform dat hoogwaardige modelinference, kostenefficiënte modelaanpassing en volledig beheerde services integreert. Het helpt bedrijven zich te richten op innovatie in AI-toepassingen zonder zich zorgen te hoeven maken over de complexiteit en kosten van onderliggende computerresources.",+ "supergrok.description": "Toegang tot Grok-modellen met je SuperGrok- of X Premium-abonnement, geen API-sleutel vereist.","taichu.description": "Een next-gen multimodaal model van CASIA en het Wuhan Institute of AI, met ondersteuning voor meerstaps Q&A, schrijven, beeldgeneratie, 3D-begrip en signaalanalyse, met verbeterde cognitie en creativiteit.","tencentcloud.description": "LLM Knowledge Engine Atomic Power biedt end-to-end kennis-Q&A voor bedrijven en ontwikkelaars, met modulaire diensten zoals documentanalyse, chunking, embeddings en meerstaps herschrijving voor het samenstellen van aangepaste AI-oplossingen.","togetherai.description": "Together AI levert toonaangevende prestaties met innovatieve modellen, brede aanpasbaarheid, snelle schaalbaarheid en eenvoudige implementatie voor zakelijke behoeften.",diff --git a/locales/nl-NL/setting.json b/locales/nl-NL/setting.jsonindex e3d326d713a..3b090acbeec 100644--- a/locales/nl-NL/setting.json+++ b/locales/nl-NL/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Model","defaultAgent.title": "Standaardinstellingen agent","devices.actions.edit": "Bewerken",+ "devices.actions.refresh": "Vernieuwen","devices.actions.remove": "Verwijderen","devices.actions.removeSelected": "Verwijderen ({{count}})","devices.capabilities.commands.desc": "Voer veilig terminalopdrachten uit in uw omgeving.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Dit omvat het apparaat dat je momenteel gebruikt — het verwijderen verbreekt je huidige sessie.","devices.selection.selected": "{{count}} geselecteerd","devices.selection.total": "{{count}} apparaten",+ "devices.share.alreadyShared": "Gedeeld",+ "devices.share.badge": "Gedeeld met {{count}} werkruimtes",+ "devices.share.confirm": "Delen",+ "devices.share.detailLabel": "Gedeeld met werkruimtes",+ "devices.share.done": "Klaar",+ "devices.share.empty": "Je bent nog niet lid van een werkruimte.",+ "devices.share.goToTarget": "Ga naar {{name}}",+ "devices.share.menu": "Delen met werkruimte…",+ "devices.share.modalDesc": "Kies een werkruimte om dit apparaat mee te delen. Leden kunnen agenttaken uitvoeren terwijl het apparaat online blijft.",+ "devices.share.modalTitle": "Apparaat delen met werkruimte",+ "devices.share.offlineDesc": "Het apparaat moet online zijn om te delen",+ "devices.share.overwriteConfirmDesc": "Deze machine is al ingeschreven in deze werkruimte met {{current}} toegang. Doorgaan om dit te wijzigen naar {{next}} en het te koppelen aan dit apparaat.",+ "devices.share.overwriteConfirmOk": "Overschrijven",+ "devices.share.overwriteConfirmTitle": "Al in {{name}} — overschrijven?",+ "devices.share.revoke": "Delen ongedaan maken",+ "devices.share.revokeConfirmDesc": "Hiermee wordt het apparaat uit die werkruimte verwijderd. Leden kunnen geen taken meer uitvoeren; je kunt het op elk moment opnieuw delen.",+ "devices.share.revokeConfirmTitle": "Delen ongedaan maken van {{name}}?",+ "devices.share.selectPlaceholder": "Selecteer een werkruimte",+ "devices.share.sharedByTag": "Gedeeld door {{name}}",+ "devices.share.success": "Apparaat gedeeld met {{name}}",+ "devices.share.targetLabel": "Delen met",+ "devices.share.viewerHint": "Kijkers kunnen geen apparaten delen",+ "devices.share.visibilityTag.private": "Privé",+ "devices.share.visibilityTag.public": "Werkruimte","devices.status.offline": "Offline","devices.status.online": "Online","devices.title": "Mijn apparaten",+ "devices.visibility.publish": "Publiceren naar werkruimte",+ "devices.visibility.publishConfirmTitle": "Dit apparaat publiceren naar de werkruimte?",+ "devices.visibilityTabs.private": "Privé",+ "devices.visibilityTabs.workspace": "Werkruimte","devices.workingDirectory": "Werkmap: {{path}}","downloads.desktop.cta": "Download desktop-app","downloads.desktop.desc": "Gebruik de native desktop-app voor lokale bestanden, systeemtools en gefocust werk op je computer.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Geregistreerd door {{name}}","workspaceSetting.devices.enrolledByLabel": "Geregistreerd door","workspaceSetting.devices.heroDesc": "Schrijf een gedeelde machine in — een buildserver of een team-Mac — en elk lid kan hierop agents uitvoeren: bestanden lezen/schrijven, opdrachten uitvoeren en systeemtools aanroepen.",+ "workspaceSetting.devices.heroDescPrivate": "Schrijf een machine in voor eigen gebruik in deze werkruimte — andere leden kunnen het niet zien of gebruiken. Voer agents uit: lees/schrijf bestanden, voer opdrachten uit en gebruik systeemhulpmiddelen.","workspaceSetting.devices.heroTitle": "Verbind je eerste werkruimtemachine",+ "workspaceSetting.devices.heroTitlePrivate": "Verbind je eerste privéapparaat","workspaceSetting.devices.offline": "Offline","workspaceSetting.devices.online": "Online","workspaceSetting.devices.readonlyHint": "Alleen het lid dat dit apparaat heeft geregistreerd of een werkruimte-eigenaar kan het hernoemen of verwijderen.",diff --git a/locales/nl-NL/spend.json b/locales/nl-NL/spend.jsonindex 29e1dfc1ae5..e783a542ab4 100644--- a/locales/nl-NL/spend.json+++ b/locales/nl-NL/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Invoer {{input}} · Uitvoer {{output}}","usageStats.chart.cacheWrite": "Cache schrijven",+ "usageStats.chart.cachedInput": "Gecachte invoer","usageStats.chart.input": "Invoer","usageStats.chart.output": "Uitvoer","usageStats.chart.spend": "Kosten",diff --git a/locales/pl-PL/chat.json b/locales/pl-PL/chat.jsonindex c12b07e648c..bd3ed34ba3a 100644--- a/locales/pl-PL/chat.json+++ b/locales/pl-PL/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Wbudowany Copilot","chatList.expandMessage": "Rozwiń wiadomość","chatList.longMessageDetail": "Zobacz szczegóły",- "chatList.refreshing": "Pobieranie najnowszych wiadomości...",+ "chatList.refreshError": "Nie udało się odświeżyć wiadomości","chatMode.agent": "Agent","chatMode.agentCap.env": "Środowisko uruchomieniowe","chatMode.agentCap.files": "Dostęp do plików",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} godzin","cliRateLimitGuide.relative.minute_one": "{{count}} minuta","cliRateLimitGuide.relative.minute_other": "{{count}} minut",+ "cliRateLimitGuide.relative.resetComplete": "Reset zakończony","cliRateLimitGuide.relative.soon": "Reset wkrótce","cliRateLimitGuide.resetAt": "Reset o",+ "cliRateLimitGuide.resetIn": "Pozostały czas","cliRateLimitGuide.resetInApprox": "Reset za około {{duration}}",+ "cliRateLimitGuide.resetUnknown": "limit zostanie zresetowany","cliRateLimitGuide.title": "Osiągnięto limit użycia {{name}}","codexInstallGuide.actions.openDocs": "Otwórz przewodnik instalacji","codexInstallGuide.actions.openSystemTools": "Otwórz narzędzia systemowe",@@ -404,6 +407,10 @@"inputQueue.edit": "Edytuj","inputQueue.sendNow": "Wyślij teraz (przerywa bieżące działanie)","intentUnderstanding.title": "Rozpoznawanie Twojej intencji...",+ "internalLink.agent.open": "Otwórz agenta",+ "internalLink.preview.agent": "Agent",+ "internalLink.preview.document": "Strona",+ "internalLink.preview.task": "Zadanie","inviteMembers": "Zaproś członków","knowledgeBase.all": "Cała zawartość","knowledgeBase.allFiles": "Wszystkie pliki",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "W trakcie działania… Możesz zmienić zadanie lub zamknąć stronę — zadanie będzie kontynuowane.","operation.heterogeneousAgentFallback": "Agent zewnętrzny","operation.sendMessage": "Wysyłanie wiadomości",+ "operation.streamRetry": "{{name}} upstream jest zajęty ({{status}}), ponawianie próby",+ "operation.streamRetry.unknownStatus": "nieznany status",+ "operation.streamRetry.withAttempt": "{{name}} upstream jest zajęty ({{status}}), ponawianie próby {{attempt}}/{{maxAttempts}}","owner": "Właściciel grupy","pageCopilot.title": "Agent strony","pageCopilot.welcome": "**Jaśniejsze, lepsze pisanie**\n\nNapisz szkic, przepisz lub dopracuj — powiedz mi, co chcesz osiągnąć, a ja zajmę się resztą.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Zapisano plik","workflow.working": "Przetwarzanie...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Wstecz",+ "workingPanel.browser.actions.capture": "Kopiuj zrzut ekranu",+ "workingPanel.browser.actions.captured": "Zrzut ekranu skopiowany do schowka",+ "workingPanel.browser.actions.failed": "Akcja przeglądarki nie powiodła się",+ "workingPanel.browser.actions.forward": "Dalej",+ "workingPanel.browser.actions.openExternal": "Otwórz w przeglądarce systemowej",+ "workingPanel.browser.actions.reload": "Odśwież",+ "workingPanel.browser.actions.stop": "Zatrzymaj ładowanie",+ "workingPanel.browser.addressPlaceholder": "Wyszukaj lub wpisz adres",+ "workingPanel.browser.desktopOnly": "Przeglądarka w aplikacji jest dostępna tylko w wersji na komputer",+ "workingPanel.browser.empty.desc": "Wpisz adres lub wyszukaj powyżej, aby otworzyć stronę",+ "workingPanel.browser.empty.title": "Rozpocznij przeglądanie",+ "workingPanel.browser.title": "Przeglądarka","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/pl-PL/labs.json b/locales/pl-PL/labs.jsonindex 4bd30421d52..fa97c789409 100644--- a/locales/pl-PL/labs.json+++ b/locales/pl-PL/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Samoiteracja agenta","features.assistantMessageGroup.desc": "Grupuj wiadomości agenta i wyniki wywołań narzędzi razem do wyświetlenia","features.assistantMessageGroup.title": "Grupowanie Wiadomości Agenta",+ "features.claudeCodeSdk.desc": "Uruchamiaj sesje Claude Code za pomocą Claude Agent SDK zamiast uruchamiania CLI. Umożliwia bardziej zaawansowane przesyłanie strumieniowe i kontrolę sesji.",+ "features.claudeCodeSdk.title": "Środowisko wykonawcze Claude Code SDK","features.fleet.desc": "Wyświetl wpis Fleet w pasku tytułu — zestawienie obok siebie wszystkich uruchomionych zadań na Twoich agentach.","features.fleet.title": "Widok Fleet","features.foldFinishedTurn.desc": "Zwiń proces (rozumowanie i wywołania narzędzi) zakończonych, nie najnowszych tur agenta pod nagłówkiem „Przetworzone”. Ostateczna odpowiedź pozostaje widoczna; kliknij, aby rozwinąć proces.",diff --git a/locales/pl-PL/providers.json b/locales/pl-PL/providers.jsonindex f14ca7cc8ca..0406ae17bf8 100644--- a/locales/pl-PL/providers.json+++ b/locales/pl-PL/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Modele Stepfun oferują wiodące możliwości multimodalne i złożonego rozumowania, z rozumieniem długiego kontekstu i potężną autonomiczną orkiestracją wyszukiwania.","straico.description": "Straico upraszcza integrację AI, oferując zintegrowane środowisko pracy, które łączy najlepsze modele generatywne AI do tekstu, obrazów i dźwięku, umożliwiając marketerom, przedsiębiorcom i entuzjastom łatwy dostęp do różnorodnych narzędzi AI.","streamlake.description": "StreamLake to korporacyjna platforma usług modelowych i chmury obliczeniowej AI, łącząca wysokowydajną inferencję modeli, niskokosztową personalizację modeli oraz w pełni zarządzane usługi. Umożliwia przedsiębiorstwom skupienie się na innowacjach w zakresie zastosowań AI bez obaw o złożoność i koszty związane z zasobami obliczeniowymi na poziomie infrastruktury.",+ "supergrok.description": "Uzyskaj dostęp do modeli Grok dzięki subskrypcji SuperGrok lub X Premium, bez konieczności używania klucza API.","taichu.description": "Model multimodalny nowej generacji od CASIA i Instytutu AI w Wuhan, obsługujący wieloetapowe pytania i odpowiedzi, pisanie, generowanie obrazów, rozumienie 3D i analizę sygnałów z większą kognicją i kreatywnością.","tencentcloud.description": "Silnik wiedzy LLM Atomic Power zapewnia kompleksowe pytania i odpowiedzi dla przedsiębiorstw i deweloperów, z modułowymi usługami, takimi jak analiza dokumentów, dzielenie, osadzanie i wieloetapowe przekształcanie, umożliwiając tworzenie niestandardowych rozwiązań AI.","togetherai.description": "Together AI oferuje wiodącą wydajność dzięki innowacyjnym modelom, szerokim możliwościom dostosowania, szybkiemu skalowaniu i prostemu wdrażaniu dla potrzeb przedsiębiorstw.",diff --git a/locales/pl-PL/setting.json b/locales/pl-PL/setting.jsonindex 3b76d39a1ae..f6f9ddbe906 100644--- a/locales/pl-PL/setting.json+++ b/locales/pl-PL/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Model","defaultAgent.title": "Domyślne ustawienia agenta","devices.actions.edit": "Edytuj",+ "devices.actions.refresh": "Odśwież","devices.actions.remove": "Usuń","devices.actions.removeSelected": "Usuń ({{count}})","devices.capabilities.commands.desc": "Bezpiecznie wykonuj polecenia terminalowe w swoim środowisku.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Dotyczy to urządzenia, którego używasz w tej chwili — usunięcie go spowoduje rozłączenie bieżącej sesji.","devices.selection.selected": "{{count}} wybrano","devices.selection.total": "{{count}} urządzeń",+ "devices.share.alreadyShared": "Udostępniono",+ "devices.share.badge": "Udostępniono do {{count}} przestrzeni roboczych",+ "devices.share.confirm": "Udostępnij",+ "devices.share.detailLabel": "Udostępniono do przestrzeni roboczych",+ "devices.share.done": "Gotowe",+ "devices.share.empty": "Nie dołączyłeś jeszcze do żadnej przestrzeni roboczej.",+ "devices.share.goToTarget": "Przejdź do {{name}}",+ "devices.share.menu": "Udostępnij do przestrzeni roboczej…",+ "devices.share.modalDesc": "Wybierz przestrzeń roboczą, do której chcesz udostępnić to urządzenie. Członkowie mogą uruchamiać agentów na nim, gdy jest online.",+ "devices.share.modalTitle": "Udostępnij urządzenie do przestrzeni roboczej",+ "devices.share.offlineDesc": "Urządzenie musi być online, aby je udostępnić",+ "devices.share.overwriteConfirmDesc": "To urządzenie jest już zarejestrowane w tej przestrzeni roboczej z dostępem {{current}}. Kontynuuj, aby zmienić go na {{next}} i połączyć z tym urządzeniem.",+ "devices.share.overwriteConfirmOk": "Nadpisz",+ "devices.share.overwriteConfirmTitle": "Już w {{name}} — nadpisać?",+ "devices.share.revoke": "Cofnij udostępnienie",+ "devices.share.revokeConfirmDesc": "To usunie urządzenie z tej przestrzeni roboczej. Członkowie nie będą mogli już uruchamiać na nim agentów; możesz je udostępnić ponownie w dowolnym momencie.",+ "devices.share.revokeConfirmTitle": "Cofnąć udostępnienie z {{name}}?",+ "devices.share.selectPlaceholder": "Wybierz przestrzeń roboczą",+ "devices.share.sharedByTag": "Udostępnione przez {{name}}",+ "devices.share.success": "Urządzenie udostępnione do {{name}}",+ "devices.share.targetLabel": "Udostępnij do",+ "devices.share.viewerHint": "Osoby przeglądające nie mogą udostępniać urządzeń",+ "devices.share.visibilityTag.private": "Prywatne",+ "devices.share.visibilityTag.public": "Przestrzeń robocza","devices.status.offline": "Offline","devices.status.online": "Online","devices.title": "Moje urządzenia",+ "devices.visibility.publish": "Opublikuj w przestrzeni roboczej",+ "devices.visibility.publishConfirmTitle": "Opublikować to urządzenie w przestrzeni roboczej?",+ "devices.visibilityTabs.private": "Prywatne",+ "devices.visibilityTabs.workspace": "Przestrzeń robocza","devices.workingDirectory": "Katalog roboczy: {{path}}","downloads.desktop.cta": "Pobierz aplikację na komputer","downloads.desktop.desc": "Korzystaj z natywnej aplikacji na komputer do obsługi lokalnych plików, narzędzi systemowych i skoncentrowanej pracy na swoim urządzeniu.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Zarejestrowane przez {{name}}","workspaceSetting.devices.enrolledByLabel": "Zarejestrowane przez","workspaceSetting.devices.heroDesc": "Zarejestruj udostępnioną maszynę — serwer kompilacji lub zespółowy Mac — i każdy członek będzie mógł na niej uruchamiać agentów: odczytywać/zapisywać pliki, uruchamiać polecenia i korzystać z narzędzi systemowych.",+ "workspaceSetting.devices.heroDescPrivate": "Zarejestruj urządzenie do własnego użytku w tej przestrzeni roboczej — inni członkowie nie będą mogli go widzieć ani używać. Uruchamiaj na nim agentów: czytaj/zapisuj pliki, wykonuj polecenia i korzystaj z narzędzi systemowych.","workspaceSetting.devices.heroTitle": "Podłącz swoje pierwsze urządzenie w obszarze roboczym",+ "workspaceSetting.devices.heroTitlePrivate": "Połącz swoje pierwsze prywatne urządzenie","workspaceSetting.devices.offline": "Offline","workspaceSetting.devices.online": "Online","workspaceSetting.devices.readonlyHint": "Tylko członek, który zarejestrował to urządzenie lub właściciel przestrzeni roboczej, może je zmienić nazwę lub usunąć.",diff --git a/locales/pl-PL/spend.json b/locales/pl-PL/spend.jsonindex 56552762298..ba687645f90 100644--- a/locales/pl-PL/spend.json+++ b/locales/pl-PL/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Wejście {{input}} · Wyjście {{output}}","usageStats.chart.cacheWrite": "Zapis do pamięci podręcznej",+ "usageStats.chart.cachedInput": "Buforowane dane wejściowe","usageStats.chart.input": "Wejście","usageStats.chart.output": "Wyjście","usageStats.chart.spend": "Koszt",diff --git a/locales/pt-BR/chat.json b/locales/pt-BR/chat.jsonindex 4866c7f74dd..7b17ddf88a9 100644--- a/locales/pt-BR/chat.json+++ b/locales/pt-BR/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Copiloto Integrado","chatList.expandMessage": "Expandir mensagem","chatList.longMessageDetail": "Ver detalhes",- "chatList.refreshing": "Buscando mensagens mais recentes...",+ "chatList.refreshError": "Não foi possível atualizar as mensagens","chatMode.agent": "Agente","chatMode.agentCap.env": "Ambiente de execução","chatMode.agentCap.files": "Acesso a arquivos",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} horas","cliRateLimitGuide.relative.minute_one": "{{count}} minuto","cliRateLimitGuide.relative.minute_other": "{{count}} minutos",+ "cliRateLimitGuide.relative.resetComplete": "Redefinição concluída","cliRateLimitGuide.relative.soon": "Redefine em breve","cliRateLimitGuide.resetAt": "Redefine às",+ "cliRateLimitGuide.resetIn": "Tempo restante","cliRateLimitGuide.resetInApprox": "Redefine em aproximadamente {{duration}}",+ "cliRateLimitGuide.resetUnknown": "a cota será redefinida","cliRateLimitGuide.title": "Limite de uso de {{name}} atingido","codexInstallGuide.actions.openDocs": "Abrir guia de instalação","codexInstallGuide.actions.openSystemTools": "Abrir ferramentas do sistema",@@ -404,6 +407,10 @@"inputQueue.edit": "Editar","inputQueue.sendNow": "Enviar agora (interrompe a execução atual)","intentUnderstanding.title": "Entendendo sua intenção...",+ "internalLink.agent.open": "Abrir agente",+ "internalLink.preview.agent": "Agente",+ "internalLink.preview.document": "Página",+ "internalLink.preview.task": "Tarefa","inviteMembers": "Convidar membros","knowledgeBase.all": "Todo o Conteúdo","knowledgeBase.allFiles": "Todos os Arquivos",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Em execução… Você pode trocar de tarefa ou fechar a página — a tarefa continuará.","operation.heterogeneousAgentFallback": "Agente externo","operation.sendMessage": "Enviando mensagem",+ "operation.streamRetry": "{{name}} upstream está ocupado ({{status}}), tentando novamente",+ "operation.streamRetry.unknownStatus": "status desconhecido",+ "operation.streamRetry.withAttempt": "{{name}} upstream está ocupado ({{status}}), tentando novamente {{attempt}}/{{maxAttempts}}","owner": "Proprietário do Grupo","pageCopilot.title": "Agente da Página","pageCopilot.welcome": "**Escrita mais clara e precisa**\n\nEsboce, reescreva ou refine — diga-me sua intenção e eu cuidarei do resto.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Arquivo salvo","workflow.working": "Trabalhando...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Voltar",+ "workingPanel.browser.actions.capture": "Copiar captura de tela",+ "workingPanel.browser.actions.captured": "Captura de tela copiada para a área de transferência",+ "workingPanel.browser.actions.failed": "Ação do navegador falhou",+ "workingPanel.browser.actions.forward": "Avançar",+ "workingPanel.browser.actions.openExternal": "Abrir no navegador do sistema",+ "workingPanel.browser.actions.reload": "Recarregar",+ "workingPanel.browser.actions.stop": "Parar carregamento",+ "workingPanel.browser.addressPlaceholder": "Pesquisar ou digitar endereço",+ "workingPanel.browser.desktopOnly": "O navegador no aplicativo está disponível apenas no aplicativo para desktop",+ "workingPanel.browser.empty.desc": "Digite um endereço ou pesquise acima para abrir uma página",+ "workingPanel.browser.empty.title": "Comece a navegar",+ "workingPanel.browser.title": "Navegador","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/pt-BR/labs.json b/locales/pt-BR/labs.jsonindex b2212cd10c0..0a12597a380 100644--- a/locales/pt-BR/labs.json+++ b/locales/pt-BR/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Autoiteração do Agente","features.assistantMessageGroup.desc": "Agrupe mensagens do agente e os resultados das chamadas de ferramentas para exibição conjunta","features.assistantMessageGroup.title": "Agrupamento de Mensagens do Agente",+ "features.claudeCodeSdk.desc": "Execute sessões do Claude Code através do Claude Agent SDK em vez de iniciar o CLI. Permite streaming mais rico e controle de sessão.",+ "features.claudeCodeSdk.title": "Runtime do SDK Claude Code","features.fleet.desc": "Exiba a entrada da Frota na barra de título — um painel lado a lado de todas as tarefas em execução entre seus agentes.","features.fleet.title": "Visão da Frota","features.foldFinishedTurn.desc": "Colapse o processo (raciocínio e chamadas de ferramentas) de turnos finalizados e não mais recentes do agente sob um cabeçalho \"Processado\". A resposta final permanece visível; clique para expandir o processo.",diff --git a/locales/pt-BR/providers.json b/locales/pt-BR/providers.jsonindex d74029b55b3..0353612bad2 100644--- a/locales/pt-BR/providers.json+++ b/locales/pt-BR/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Os modelos Stepfun oferecem capacidades líderes em multimodalidade e raciocínio complexo, com compreensão de contexto longo e orquestração autônoma de busca poderosa.","straico.description": "O Straico simplifica a integração de IA ao oferecer um espaço de trabalho unificado que reúne os melhores modelos generativos de IA para texto, imagem e áudio, capacitando profissionais de marketing, empreendedores e entusiastas com acesso fácil a diversas ferramentas de IA.","streamlake.description": "StreamLake é uma plataforma empresarial de serviços de modelos e computação em nuvem para IA, que integra inferência de modelos de alto desempenho, personalização de modelos de baixo custo e serviços totalmente gerenciados, ajudando as empresas a focarem na inovação de aplicações de IA sem se preocuparem com a complexidade e os custos dos recursos computacionais subjacentes.",+ "supergrok.description": "Acesse os modelos Grok com sua assinatura SuperGrok ou X Premium, sem necessidade de chave de API.","taichu.description": "Um modelo multimodal de nova geração do CASIA e do Instituto de IA de Wuhan, com suporte a perguntas e respostas em múltiplas etapas, redação, geração de imagens, compreensão 3D e análise de sinais, com cognição e criatividade aprimoradas.","tencentcloud.description": "O LLM Knowledge Engine Atomic Power oferece perguntas e respostas de conhecimento de ponta a ponta para empresas e desenvolvedores, com serviços modulares como análise de documentos, divisão, embeddings e reescrita em múltiplas etapas para montar soluções de IA personalizadas.","togetherai.description": "A Together AI oferece desempenho líder com modelos inovadores, ampla personalização, escalabilidade rápida e implantação simplificada para necessidades empresariais.",diff --git a/locales/pt-BR/setting.json b/locales/pt-BR/setting.jsonindex 9b129d3585a..ec3dd31bc36 100644--- a/locales/pt-BR/setting.json+++ b/locales/pt-BR/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Modelo","defaultAgent.title": "Configurações Padrão do Agente","devices.actions.edit": "Editar",+ "devices.actions.refresh": "Atualizar","devices.actions.remove": "Remover","devices.actions.removeSelected": "Remover ({{count}})","devices.capabilities.commands.desc": "Execute comandos de terminal com segurança no seu ambiente.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Isso inclui o dispositivo que você está usando agora — removê-lo desconectará sua sessão atual.","devices.selection.selected": "{{count}} selecionado(s)","devices.selection.total": "{{count}} dispositivos",+ "devices.share.alreadyShared": "Compartilhado",+ "devices.share.badge": "Compartilhado com {{count}} espaços de trabalho",+ "devices.share.confirm": "Compartilhar",+ "devices.share.detailLabel": "Compartilhado com espaços de trabalho",+ "devices.share.done": "Concluído",+ "devices.share.empty": "Você ainda não entrou em nenhum espaço de trabalho.",+ "devices.share.goToTarget": "Ir para {{name}}",+ "devices.share.menu": "Compartilhar com Espaço de Trabalho…",+ "devices.share.modalDesc": "Escolha um espaço de trabalho para compartilhar este dispositivo. Os membros podem executar agentes nele enquanto estiver online.",+ "devices.share.modalTitle": "Compartilhar Dispositivo com Espaço de Trabalho",+ "devices.share.offlineDesc": "O dispositivo deve estar online para ser compartilhado",+ "devices.share.overwriteConfirmDesc": "Esta máquina já está registrada neste espaço de trabalho com acesso {{current}}. Deseja continuar e alterar para {{next}}, vinculando-a a este dispositivo?",+ "devices.share.overwriteConfirmOk": "Sobrescrever",+ "devices.share.overwriteConfirmTitle": "Já está em {{name}} — sobrescrever?",+ "devices.share.revoke": "Descompartilhar",+ "devices.share.revokeConfirmDesc": "Isso remove o dispositivo deste espaço de trabalho. Os membros não poderão mais executar agentes nele; você pode compartilhá-lo novamente a qualquer momento.",+ "devices.share.revokeConfirmTitle": "Descompartilhar de {{name}}?",+ "devices.share.selectPlaceholder": "Selecione um espaço de trabalho",+ "devices.share.sharedByTag": "Compartilhado por {{name}}",+ "devices.share.success": "Dispositivo compartilhado com {{name}}",+ "devices.share.targetLabel": "Compartilhar com",+ "devices.share.viewerHint": "Visualizadores não podem compartilhar dispositivos",+ "devices.share.visibilityTag.private": "Privado",+ "devices.share.visibilityTag.public": "Espaço de Trabalho","devices.status.offline": "Offline","devices.status.online": "Online","devices.title": "Meus Dispositivos",+ "devices.visibility.publish": "Publicar no Espaço de Trabalho",+ "devices.visibility.publishConfirmTitle": "Publicar este dispositivo no espaço de trabalho?",+ "devices.visibilityTabs.private": "Privado",+ "devices.visibilityTabs.workspace": "Espaço de Trabalho","devices.workingDirectory": "Dir. de trabalho: {{path}}","downloads.desktop.cta": "Baixar aplicativo para desktop","downloads.desktop.desc": "Use o aplicativo nativo para desktop para arquivos locais, ferramentas do sistema e trabalho focado no seu computador.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Registrado por {{name}}","workspaceSetting.devices.enrolledByLabel": "Registrado por","workspaceSetting.devices.heroDesc": "Inscreva uma máquina compartilhada — um servidor de build ou um Mac da equipe — e todos os membros poderão executar agentes nela: ler/gravar arquivos, executar comandos e chamar ferramentas do sistema.",+ "workspaceSetting.devices.heroDescPrivate": "Registre uma máquina para seu uso pessoal neste espaço de trabalho — outros membros não podem vê-la ou usá-la. Execute agentes nela: leia/escreva arquivos, execute comandos e utilize ferramentas do sistema.","workspaceSetting.devices.heroTitle": "Conecte seu primeiro dispositivo do espaço de trabalho",+ "workspaceSetting.devices.heroTitlePrivate": "Conecte seu primeiro dispositivo privado","workspaceSetting.devices.offline": "Offline","workspaceSetting.devices.online": "Online","workspaceSetting.devices.readonlyHint": "Somente o membro que registrou este dispositivo ou um proprietário do espaço de trabalho pode renomeá-lo ou removê-lo.",diff --git a/locales/pt-BR/spend.json b/locales/pt-BR/spend.jsonindex 500f9e79934..d7f3187dbd7 100644--- a/locales/pt-BR/spend.json+++ b/locales/pt-BR/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Entrada {{input}} · Saída {{output}}","usageStats.chart.cacheWrite": "Gravação no cache",+ "usageStats.chart.cachedInput": "Entrada em cache","usageStats.chart.input": "Entrada","usageStats.chart.output": "Saída","usageStats.chart.spend": "Custo",diff --git a/locales/ru-RU/chat.json b/locales/ru-RU/chat.jsonindex a33f3502af6..90c759814a6 100644--- a/locales/ru-RU/chat.json+++ b/locales/ru-RU/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Встроенный Копилот","chatList.expandMessage": "Развернуть сообщение","chatList.longMessageDetail": "Просмотреть детали",- "chatList.refreshing": "Получение последних сообщений...",+ "chatList.refreshError": "Не удалось обновить сообщения","chatMode.agent": "Агент","chatMode.agentCap.env": "Среда выполнения","chatMode.agentCap.files": "Доступ к файлам",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} часов","cliRateLimitGuide.relative.minute_one": "{{count}} минуту","cliRateLimitGuide.relative.minute_other": "{{count}} минут",+ "cliRateLimitGuide.relative.resetComplete": "Сброс завершен","cliRateLimitGuide.relative.soon": "Сброс скоро","cliRateLimitGuide.resetAt": "Сброс в",+ "cliRateLimitGuide.resetIn": "Оставшееся время","cliRateLimitGuide.resetInApprox": "Сброс примерно через {{duration}}",+ "cliRateLimitGuide.resetUnknown": "квота сбрасывается","cliRateLimitGuide.title": "Достигнут лимит использования {{name}}","codexInstallGuide.actions.openDocs": "Открыть руководство по установке","codexInstallGuide.actions.openSystemTools": "Открыть системные инструменты",@@ -404,6 +407,10 @@"inputQueue.edit": "Редактировать","inputQueue.sendNow": "Отправить сейчас (прерывает текущий запуск)","intentUnderstanding.title": "Понимание вашего запроса...",+ "internalLink.agent.open": "Открыть агента",+ "internalLink.preview.agent": "Агент",+ "internalLink.preview.document": "Страница",+ "internalLink.preview.task": "Задача","inviteMembers": "Пригласить участников","knowledgeBase.all": "Весь контент","knowledgeBase.allFiles": "Все файлы",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Выполняется… Вы можете переключиться на другие задачи или закрыть страницу — выполнение продолжится.","operation.heterogeneousAgentFallback": "Внешний агент","operation.sendMessage": "Отправка сообщения",+ "operation.streamRetry": "{{name}} верхний поток занят ({{status}}), повторная попытка",+ "operation.streamRetry.unknownStatus": "неизвестный статус",+ "operation.streamRetry.withAttempt": "{{name}} верхний поток занят ({{status}}), повторная попытка {{attempt}}/{{maxAttempts}}","owner": "Владелец группы","pageCopilot.title": "Агент страницы","pageCopilot.welcome": "**Чёткий, выразительный текст**\n\nЧерновик, переписка или редактирование — скажите, что нужно, и я всё улучшу.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Файл записан","workflow.working": "Выполнение...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Назад",+ "workingPanel.browser.actions.capture": "Скопировать скриншот",+ "workingPanel.browser.actions.captured": "Скриншот скопирован в буфер обмена",+ "workingPanel.browser.actions.failed": "Действие браузера не удалось",+ "workingPanel.browser.actions.forward": "Вперед",+ "workingPanel.browser.actions.openExternal": "Открыть в системном браузере",+ "workingPanel.browser.actions.reload": "Перезагрузить",+ "workingPanel.browser.actions.stop": "Остановить загрузку",+ "workingPanel.browser.addressPlaceholder": "Поиск или ввод адреса",+ "workingPanel.browser.desktopOnly": "Встроенный браузер доступен только в настольном приложении",+ "workingPanel.browser.empty.desc": "Введите адрес или выполните поиск выше, чтобы открыть страницу",+ "workingPanel.browser.empty.title": "Начните просмотр",+ "workingPanel.browser.title": "Браузер","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/ru-RU/labs.json b/locales/ru-RU/labs.jsonindex b70b4513e85..8e95df9c7e8 100644--- a/locales/ru-RU/labs.json+++ b/locales/ru-RU/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Самоитерация агента","features.assistantMessageGroup.desc": "Группируйте сообщения агента и результаты вызова инструментов для совместного отображения","features.assistantMessageGroup.title": "Группировка сообщений агента",+ "features.claudeCodeSdk.desc": "Запускайте сеансы Claude Code через Claude Agent SDK вместо запуска CLI. Обеспечивает более богатую потоковую передачу и управление сеансами.",+ "features.claudeCodeSdk.title": "Среда выполнения Claude Code SDK","features.fleet.desc": "Показывать запись Fleet в заголовке — панель управления, отображающая все выполняемые задачи на ваших агентах бок о бок.","features.fleet.title": "Просмотр Fleet","features.foldFinishedTurn.desc": "Свернуть процесс (рассуждения и вызовы инструментов) завершённых, не последних ходов агента под заголовком «Обработано». Окончательный ответ остаётся видимым; нажмите, чтобы развернуть процесс.",diff --git a/locales/ru-RU/providers.json b/locales/ru-RU/providers.jsonindex baba52cf94c..32769044c0a 100644--- a/locales/ru-RU/providers.json+++ b/locales/ru-RU/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Модели Stepfun обладают передовыми мультимодальными и логическими возможностями, поддерживают понимание длинного контекста и мощную автономную оркестрацию поиска.","straico.description": "Straico упрощает интеграцию ИИ, предоставляя единое рабочее пространство, которое объединяет лучшие модели генеративного ИИ для текста, изображений и аудио, обеспечивая маркетологов, предпринимателей и энтузиастов удобным доступом к разнообразным инструментам ИИ.","streamlake.description": "StreamLake — это корпоративная платформа сервисов моделей и облако для AI‑вычислений, объединяющее высокопроизводительный вывод моделей, малозатратную кастомизацию моделей и полностью управляемые сервисы. Она помогает компаниям сосредоточиться на внедрении инноваций в сфере ИИ, не беспокоясь о сложности и стоимости базовых вычислительных ресурсов.",+ "supergrok.description": "Получите доступ к моделям Grok с подпиской SuperGrok или X Premium, без необходимости использования API-ключа.","taichu.description": "Модель нового поколения от CASIA и Уханьского института ИИ, поддерживающая многотуровые вопросы и ответы, письмо, генерацию изображений, 3D-понимание и анализ сигналов с улучшенным когнитивным и креативным потенциалом.","tencentcloud.description": "Ядро знаний LLM Atomic Power предоставляет сквозные решения для вопросов и ответов для предприятий и разработчиков, с модульными сервисами, такими как разбор документов, разбиение, эмбеддинги и многотуровая переформулировка для создания кастомных ИИ-решений.","togetherai.description": "Together AI обеспечивает передовую производительность с инновационными моделями, широкой кастомизацией, быстрым масштабированием и простым развертыванием для нужд бизнеса.",diff --git a/locales/ru-RU/setting.json b/locales/ru-RU/setting.jsonindex fea0009193d..42d420048dc 100644--- a/locales/ru-RU/setting.json+++ b/locales/ru-RU/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Модель","defaultAgent.title": "Настройки агента по умолчанию","devices.actions.edit": "Редактировать",+ "devices.actions.refresh": "Обновить","devices.actions.remove": "Удалить","devices.actions.removeSelected": "Удалить ({{count}})","devices.capabilities.commands.desc": "Безопасно выполняйте команды терминала в вашей среде.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Это включает устройство, которое вы используете прямо сейчас — его удаление завершит текущую сессию.","devices.selection.selected": "{{count}} выбрано","devices.selection.total": "{{count}} устройств",+ "devices.share.alreadyShared": "Поделено",+ "devices.share.badge": "Поделено с {{count}} рабочими пространствами",+ "devices.share.confirm": "Поделиться",+ "devices.share.detailLabel": "Поделено с рабочими пространствами",+ "devices.share.done": "Готово",+ "devices.share.empty": "Вы еще не присоединились ни к одному рабочему пространству.",+ "devices.share.goToTarget": "Перейти к {{name}}",+ "devices.share.menu": "Поделиться с рабочим пространством…",+ "devices.share.modalDesc": "Выберите рабочее пространство, чтобы поделиться этим устройством. Участники смогут запускать агенты на нем, пока оно остается в сети.",+ "devices.share.modalTitle": "Поделиться устройством с рабочим пространством",+ "devices.share.offlineDesc": "Устройство должно быть в сети, чтобы поделиться",+ "devices.share.overwriteConfirmDesc": "Эта машина уже зарегистрирована в этом рабочем пространстве с доступом {{current}}. Продолжить, чтобы изменить его на {{next}} и привязать к этому устройству?",+ "devices.share.overwriteConfirmOk": "Перезаписать",+ "devices.share.overwriteConfirmTitle": "Уже в {{name}} — перезаписать?",+ "devices.share.revoke": "Отменить доступ",+ "devices.share.revokeConfirmDesc": "Это удалит устройство из этого рабочего пространства. Участники больше не смогут запускать агенты на нем; вы можете поделиться им снова в любое время.",+ "devices.share.revokeConfirmTitle": "Отменить доступ из {{name}}?",+ "devices.share.selectPlaceholder": "Выберите рабочее пространство",+ "devices.share.sharedByTag": "Поделено {{name}}",+ "devices.share.success": "Устройство поделено с {{name}}",+ "devices.share.targetLabel": "Поделиться с",+ "devices.share.viewerHint": "Просмотрщики не могут делиться устройствами",+ "devices.share.visibilityTag.private": "Личное",+ "devices.share.visibilityTag.public": "Рабочее пространство","devices.status.offline": "Оффлайн","devices.status.online": "Онлайн","devices.title": "Мои устройства",+ "devices.visibility.publish": "Опубликовать в рабочем пространстве",+ "devices.visibility.publishConfirmTitle": "Опубликовать это устройство в рабочем пространстве?",+ "devices.visibilityTabs.private": "Личное",+ "devices.visibilityTabs.workspace": "Рабочее пространство","devices.workingDirectory": "Рабочая директория: {{path}}","downloads.desktop.cta": "Скачать приложение для компьютера","downloads.desktop.desc": "Используйте приложение для компьютера для работы с локальными файлами, системными инструментами и сосредоточенной работы на вашем устройстве.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Зарегистрировано {{name}}","workspaceSetting.devices.enrolledByLabel": "Зарегистрировано","workspaceSetting.devices.heroDesc": "Зарегистрируйте общее устройство — сервер сборки или командный Mac — и каждый участник сможет запускать на нем агентов: читать/записывать файлы, выполнять команды и использовать системные инструменты.",+ "workspaceSetting.devices.heroDescPrivate": "Зарегистрируйте машину для личного использования в этом рабочем пространстве — другие участники не смогут ее видеть или использовать. Запускайте на ней агентов: читайте/записывайте файлы, выполняйте команды и вызывайте системные инструменты.","workspaceSetting.devices.heroTitle": "Подключите первое устройство рабочего пространства",+ "workspaceSetting.devices.heroTitlePrivate": "Подключите свое первое личное устройство","workspaceSetting.devices.offline": "Офлайн","workspaceSetting.devices.online": "Онлайн","workspaceSetting.devices.readonlyHint": "Только участник, который зарегистрировал это устройство, или владелец рабочего пространства может переименовать или удалить его.",diff --git a/locales/ru-RU/spend.json b/locales/ru-RU/spend.jsonindex 7d9cdf99135..007ccce1e2c 100644--- a/locales/ru-RU/spend.json+++ b/locales/ru-RU/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Токен","usageStats.cards.tokenDesc": "Ввод {{input}} · Вывод {{output}}","usageStats.chart.cacheWrite": "Запись в кэш",+ "usageStats.chart.cachedInput": "Кэшированный ввод","usageStats.chart.input": "Ввод","usageStats.chart.output": "Вывод","usageStats.chart.spend": "Стоимость",diff --git a/locales/tr-TR/chat.json b/locales/tr-TR/chat.jsonindex c0ad239a973..56c71bb7481 100644--- a/locales/tr-TR/chat.json+++ b/locales/tr-TR/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Yerleşik Yardımcı","chatList.expandMessage": "Mesajı Genişlet","chatList.longMessageDetail": "Ayrıntıları Görüntüle",- "chatList.refreshing": "Son mesajlar getiriliyor...",+ "chatList.refreshError": "Mesajlar yenilenemedi","chatMode.agent": "Ajan","chatMode.agentCap.env": "Çalışma ortamı","chatMode.agentCap.files": "Dosya erişimi",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} saat","cliRateLimitGuide.relative.minute_one": "{{count}} dakika","cliRateLimitGuide.relative.minute_other": "{{count}} dakika",+ "cliRateLimitGuide.relative.resetComplete": "Sıfırlama tamamlandı","cliRateLimitGuide.relative.soon": "Yakında sıfırlanacak","cliRateLimitGuide.resetAt": "Sıfırlanma zamanı",+ "cliRateLimitGuide.resetIn": "Kalan süre","cliRateLimitGuide.resetInApprox": "Yaklaşık {{duration}} içinde sıfırlanacak",+ "cliRateLimitGuide.resetUnknown": "kotanın sıfırlanması","cliRateLimitGuide.title": "{{name}} kullanım sınırına ulaşıldı","codexInstallGuide.actions.openDocs": "Yükleme Kılavuzunu Aç","codexInstallGuide.actions.openSystemTools": "Sistem Araçlarını Aç",@@ -404,6 +407,10 @@"inputQueue.edit": "Düzenle","inputQueue.sendNow": "Hemen gönder (mevcut çalışmayı durdurur)","intentUnderstanding.title": "Niyetinizi anlıyorum...",+ "internalLink.agent.open": "Temsilciyi aç",+ "internalLink.preview.agent": "Temsilci",+ "internalLink.preview.document": "Sayfa",+ "internalLink.preview.task": "Görev","inviteMembers": "Üyeleri davet et","knowledgeBase.all": "Tüm İçerik","knowledgeBase.allFiles": "Tüm Dosyalar",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Çalışıyor… Görev devam ederken sayfayı değiştirebilir veya kapatabilirsiniz.","operation.heterogeneousAgentFallback": "Harici ajan","operation.sendMessage": "Mesaj gönderiliyor",+ "operation.streamRetry": "{{name}} yukarı akış meşgul ({{status}}), yeniden deneniyor",+ "operation.streamRetry.unknownStatus": "bilinmeyen durum",+ "operation.streamRetry.withAttempt": "{{name}} yukarı akış meşgul ({{status}}), yeniden deneniyor {{attempt}}/{{maxAttempts}}","owner": "Grup sahibi","pageCopilot.title": "Sayfa Ajanı","pageCopilot.welcome": "**Daha net, daha etkili yazım**\n\nTaslak oluştur, yeniden yaz veya düzenle—niyetini söyle, gerisini ben hallederim.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Bir dosya yazıldı","workflow.working": "Çalışıyor...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Geri",+ "workingPanel.browser.actions.capture": "Ekran görüntüsünü kopyala",+ "workingPanel.browser.actions.captured": "Ekran görüntüsü panoya kopyalandı",+ "workingPanel.browser.actions.failed": "Tarayıcı işlemi başarısız oldu",+ "workingPanel.browser.actions.forward": "İleri",+ "workingPanel.browser.actions.openExternal": "Sistem tarayıcısında aç",+ "workingPanel.browser.actions.reload": "Yeniden yükle",+ "workingPanel.browser.actions.stop": "Yüklemeyi durdur",+ "workingPanel.browser.addressPlaceholder": "Adres girin veya arama yapın",+ "workingPanel.browser.desktopOnly": "Uygulama içi tarayıcı yalnızca masaüstü uygulamasında kullanılabilir",+ "workingPanel.browser.empty.desc": "Bir sayfa açmak için yukarıya bir adres girin veya arama yapın",+ "workingPanel.browser.empty.title": "Tarayıcıyı başlat",+ "workingPanel.browser.title": "Tarayıcı","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/tr-TR/labs.json b/locales/tr-TR/labs.jsonindex eceec45324d..f71b5f0ca67 100644--- a/locales/tr-TR/labs.json+++ b/locales/tr-TR/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Aracının Kendi Kendine Yinelemesi","features.assistantMessageGroup.desc": "Temsilci mesajlarını ve bunlara ait araç çağrısı sonuçlarını birlikte gruplayarak görüntüleyin","features.assistantMessageGroup.title": "Temsilci Mesaj Gruplama",+ "features.claudeCodeSdk.desc": "Claude Agent SDK aracılığıyla Claude Code oturumlarını çalıştırın, CLI başlatmak yerine. Daha zengin akış ve oturum kontrolü sağlar.",+ "features.claudeCodeSdk.title": "Claude Code SDK Çalışma Zamanı","features.fleet.desc": "Başlık çubuğunda Filo girişini göster — ajanlarınız arasında çalışan tüm görevlerin yan yana gösterildiği bir kontrol paneli.","features.fleet.title": "Filo Görünümü","features.foldFinishedTurn.desc": "Tamamlanmış, en son olmayan ajan dönüşlerinin sürecini (akıl yürütme ve araç çağrıları) \"İşlenmiş\" başlığı altında daraltın. Nihai cevap görünür kalır; süreci genişletmek için tıklayın.",diff --git a/locales/tr-TR/providers.json b/locales/tr-TR/providers.jsonindex 5ca8cd6b1f6..823f5d9e252 100644--- a/locales/tr-TR/providers.json+++ b/locales/tr-TR/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun modelleri, uzun bağlam anlama ve güçlü otonom arama düzenleme özellikleriyle öne çıkan çok modlu ve karmaşık akıl yürütme yetenekleri sunar.","straico.description": "Straico, pazarlamacılar, girişimciler ve meraklılara çeşitli yapay zeka araçlarına sorunsuz erişim sağlayarak, en iyi metin, görüntü ve ses üretici yapay zeka modellerini bir araya getiren birleşik bir çalışma alanı sunarak yapay zeka entegrasyonunu kolaylaştırır.","streamlake.description": "StreamLake, yüksek performanslı model çıkarımı, düşük maliyetli model özelleştirme ve tamamen yönetilen hizmetleri bir araya getiren kurumsal düzeyde bir model hizmeti ve yapay zeka hesaplama bulut platformudur. İşletmelerin, altyapı hesaplama kaynaklarının karmaşıklığı ve maliyetiyle uğraşmadan yapay zeka uygulama inovasyonuna odaklanmalarına yardımcı olur.",+ "supergrok.description": "SuperGrok veya X Premium aboneliğinizle Grok modellerine erişin, API anahtarı gerekmez.","taichu.description": "CASIA ve Wuhan Yapay Zeka Enstitüsü tarafından geliştirilen yeni nesil çok modlu modeldir. Çok turlu soru-cevap, yazım, görsel üretim, 3D anlama ve sinyal analizi gibi görevlerde güçlü bilişsel ve yaratıcı yetenekler sunar.","tencentcloud.description": "LLM Bilgi Motoru Atom Gücü, belgeleri ayrıştırma, parçalara ayırma, gömme ve çok turlu yeniden yazma gibi modüler hizmetlerle kurumsal ve geliştiricilere özel yapay zeka çözümleri oluşturma imkanı sunar.","togetherai.description": "Together AI, yenilikçi modeller, geniş özelleştirme seçenekleri, hızlı ölçeklenebilirlik ve kolay dağıtım ile kurumsal ihtiyaçlara yönelik üstün performans sunar.",diff --git a/locales/tr-TR/setting.json b/locales/tr-TR/setting.jsonindex 207f6b5467a..21c87b2dbdb 100644--- a/locales/tr-TR/setting.json+++ b/locales/tr-TR/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Model","defaultAgent.title": "Varsayılan Temsilci Ayarları","devices.actions.edit": "Düzenle",+ "devices.actions.refresh": "Yenile","devices.actions.remove": "Kaldır","devices.actions.removeSelected": "Kaldır ({{count}})","devices.capabilities.commands.desc": "Ortamınızda terminal komutlarını güvenli bir şekilde çalıştırın.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Bu, şu anda kullandığınız cihazı da içeriyor — kaldırmak mevcut oturumunuzu sonlandırır.","devices.selection.selected": "{{count}} seçildi","devices.selection.total": "{{count}} cihaz",+ "devices.share.alreadyShared": "Paylaşıldı",+ "devices.share.badge": "{{count}} çalışma alanına paylaşıldı",+ "devices.share.confirm": "Paylaş",+ "devices.share.detailLabel": "Çalışma alanlarına paylaşıldı",+ "devices.share.done": "Tamamlandı",+ "devices.share.empty": "Henüz herhangi bir çalışma alanına katılmadınız.",+ "devices.share.goToTarget": "{{name}}'e git",+ "devices.share.menu": "Çalışma Alanına Paylaş…",+ "devices.share.modalDesc": "Bu cihazı paylaşmak için bir çalışma alanı seçin. Üyeler, cihaz çevrimiçi olduğu sürece ajan çalıştırmalarını başlatabilir.",+ "devices.share.modalTitle": "Cihazı Çalışma Alanına Paylaş",+ "devices.share.offlineDesc": "Cihazı paylaşmak için çevrimiçi olması gerekiyor",+ "devices.share.overwriteConfirmDesc": "Bu makine zaten {{current}} erişimiyle bu çalışma alanına kaydedilmiş. Devam ederek bunu {{next}} olarak değiştirip bu cihaza bağlayın.",+ "devices.share.overwriteConfirmOk": "Üzerine Yaz",+ "devices.share.overwriteConfirmTitle": "Zaten {{name}} içinde — üzerine yazılsın mı?",+ "devices.share.revoke": "Paylaşımı Kaldır",+ "devices.share.revokeConfirmDesc": "Bu işlem cihazı o çalışma alanından kaldırır. Üyeler artık çalıştırmaları başlatamaz; istediğiniz zaman tekrar paylaşabilirsiniz.",+ "devices.share.revokeConfirmTitle": "{{name}}'den paylaşımı kaldır?",+ "devices.share.selectPlaceholder": "Bir çalışma alanı seçin",+ "devices.share.sharedByTag": "{{name}} tarafından paylaşıldı",+ "devices.share.success": "Cihaz {{name}}'e paylaşıldı",+ "devices.share.targetLabel": "Şuraya Paylaş",+ "devices.share.viewerHint": "Görüntüleyiciler cihazları paylaşamaz",+ "devices.share.visibilityTag.private": "Özel",+ "devices.share.visibilityTag.public": "Çalışma Alanı","devices.status.offline": "Çevrimdışı","devices.status.online": "Çevrimiçi","devices.title": "Cihazlarım",+ "devices.visibility.publish": "Çalışma Alanına Yayınla",+ "devices.visibility.publishConfirmTitle": "Bu cihazı çalışma alanına yayınlamak istiyor musunuz?",+ "devices.visibilityTabs.private": "Özel",+ "devices.visibilityTabs.workspace": "Çalışma Alanı","devices.workingDirectory": "Çalışma dizini: {{path}}","downloads.desktop.cta": "Masaüstü uygulamasını indir","downloads.desktop.desc": "Yerel dosyalar, sistem araçları ve bilgisayarınızda odaklanmış çalışma için yerel masaüstü uygulamasını kullanın.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "{{name}} tarafından kaydedildi","workspaceSetting.devices.enrolledByLabel": "Kaydeden","workspaceSetting.devices.heroDesc": "Paylaşılan bir makineyi — bir derleme sunucusu veya bir ekip Mac'i — kaydedin ve her üye üzerinde ajanlar çalıştırabilir: dosyaları okuyup/yazabilir, komutlar çalıştırabilir ve sistem araçlarını çağırabilir.",+ "workspaceSetting.devices.heroDescPrivate": "Bu çalışma alanında kendi kullanımınız için bir makine kaydedin — diğer üyeler bunu göremez veya kullanamaz. Üzerinde ajan çalıştırın: dosya okuyun/yazın, komutlar çalıştırın ve sistem araçlarını çağırın.","workspaceSetting.devices.heroTitle": "İlk çalışma alanı cihazınızı bağlayın",+ "workspaceSetting.devices.heroTitlePrivate": "İlk özel cihazınızı bağlayın","workspaceSetting.devices.offline": "Çevrimdışı","workspaceSetting.devices.online": "Çevrimiçi","workspaceSetting.devices.readonlyHint": "Bu cihazı yeniden adlandırma veya kaldırma işlemini yalnızca cihazı kaydeden üye veya bir çalışma alanı sahibi yapabilir.",diff --git a/locales/tr-TR/spend.json b/locales/tr-TR/spend.jsonindex a8944bbb885..80fc3bd7ae7 100644--- a/locales/tr-TR/spend.json+++ b/locales/tr-TR/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Jeton","usageStats.cards.tokenDesc": "Girdi {{input}} · Çıktı {{output}}","usageStats.chart.cacheWrite": "Önbellek yazma",+ "usageStats.chart.cachedInput": "Önbelleğe alınmış giriş","usageStats.chart.input": "Girdi","usageStats.chart.output": "Çıktı","usageStats.chart.spend": "Maliyet",diff --git a/locales/vi-VN/chat.json b/locales/vi-VN/chat.jsonindex 44c96912b73..260eccad5dc 100644--- a/locales/vi-VN/chat.json+++ b/locales/vi-VN/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "Trợ lý tích hợp sẵn","chatList.expandMessage": "Mở rộng tin nhắn","chatList.longMessageDetail": "Xem chi tiết",- "chatList.refreshing": "Đang lấy tin nhắn mới nhất...",+ "chatList.refreshError": "Không thể làm mới tin nhắn","chatMode.agent": "Đại lý","chatMode.agentCap.env": "Môi trường chạy","chatMode.agentCap.files": "Truy cập tệp",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} giờ","cliRateLimitGuide.relative.minute_one": "{{count}} phút","cliRateLimitGuide.relative.minute_other": "{{count}} phút",+ "cliRateLimitGuide.relative.resetComplete": "Đặt lại hoàn tất","cliRateLimitGuide.relative.soon": "Sắp đặt lại","cliRateLimitGuide.resetAt": "Đặt lại lúc",+ "cliRateLimitGuide.resetIn": "Thời gian còn lại","cliRateLimitGuide.resetInApprox": "Đặt lại trong khoảng {{duration}}",+ "cliRateLimitGuide.resetUnknown": "hạn mức sẽ được đặt lại","cliRateLimitGuide.title": "Đã đạt giới hạn sử dụng {{name}}","codexInstallGuide.actions.openDocs": "Mở Hướng dẫn Cài đặt","codexInstallGuide.actions.openSystemTools": "Mở Công cụ Hệ thống",@@ -404,6 +407,10 @@"inputQueue.edit": "Chỉnh sửa","inputQueue.sendNow": "Gửi ngay (ngắt quá trình hiện tại)","intentUnderstanding.title": "Đang hiểu ý định của bạn...",+ "internalLink.agent.open": "Mở tác nhân",+ "internalLink.preview.agent": "Tác nhân",+ "internalLink.preview.document": "Trang",+ "internalLink.preview.task": "Nhiệm vụ","inviteMembers": "Mời thành viên","knowledgeBase.all": "Tất cả nội dung","knowledgeBase.allFiles": "Tất cả tệp",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "Đang chạy… Bạn có thể chuyển tác vụ hoặc đóng trang — tác vụ sẽ tiếp tục.","operation.heterogeneousAgentFallback": "Tác tử bên ngoài","operation.sendMessage": "Đang gửi tin nhắn",+ "operation.streamRetry": "{{name}} nguồn cấp dữ liệu đang bận ({{status}}), đang thử lại",+ "operation.streamRetry.unknownStatus": "trạng thái không xác định",+ "operation.streamRetry.withAttempt": "{{name}} nguồn cấp dữ liệu đang bận ({{status}}), đang thử lại {{attempt}}/{{maxAttempts}}","owner": "Chủ nhóm","pageCopilot.title": "Tác nhân trang","pageCopilot.welcome": "**Viết rõ ràng, sắc nét hơn**\n\nSoạn thảo, viết lại hoặc chỉnh sửa—hãy cho tôi biết ý định của bạn và tôi sẽ hoàn thiện phần còn lại.",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "Đã ghi một tệp","workflow.working": "Đang xử lý...","workingPanel.agentDocuments": "Agent Documents",+ "workingPanel.browser.actions.back": "Quay lại",+ "workingPanel.browser.actions.capture": "Sao chép ảnh chụp màn hình",+ "workingPanel.browser.actions.captured": "Ảnh chụp màn hình đã được sao chép vào clipboard",+ "workingPanel.browser.actions.failed": "Hành động trình duyệt thất bại",+ "workingPanel.browser.actions.forward": "Tiến lên",+ "workingPanel.browser.actions.openExternal": "Mở trong trình duyệt hệ thống",+ "workingPanel.browser.actions.reload": "Tải lại",+ "workingPanel.browser.actions.stop": "Dừng tải",+ "workingPanel.browser.addressPlaceholder": "Tìm kiếm hoặc nhập địa chỉ",+ "workingPanel.browser.desktopOnly": "Trình duyệt trong ứng dụng chỉ khả dụng trên ứng dụng máy tính",+ "workingPanel.browser.empty.desc": "Nhập địa chỉ hoặc tìm kiếm ở trên để mở một trang",+ "workingPanel.browser.empty.title": "Bắt đầu duyệt web",+ "workingPanel.browser.title": "Trình duyệt","workingPanel.documents.close": "Close","workingPanel.documents.discard": "Discard","workingPanel.documents.edit": "Edit",diff --git a/locales/vi-VN/labs.json b/locales/vi-VN/labs.jsonindex e2cedfda3a8..9cfeecdad56 100644--- a/locales/vi-VN/labs.json+++ b/locales/vi-VN/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "Tự lặp của tác nhân","features.assistantMessageGroup.desc": "Nhóm các tin nhắn của tác nhân và kết quả gọi công cụ lại với nhau để hiển thị","features.assistantMessageGroup.title": "Nhóm Tin Nhắn Tác Nhân",+ "features.claudeCodeSdk.desc": "Chạy các phiên Claude Code thông qua Claude Agent SDK thay vì khởi chạy CLI. Cho phép truyền tải phong phú hơn và kiểm soát phiên làm việc.",+ "features.claudeCodeSdk.title": "Thời gian chạy Claude Code SDK","features.fleet.desc": "Hiển thị mục Fleet trong thanh tiêu đề — một bảng điều khiển song song của tất cả các tác vụ đang chạy trên các tác nhân của bạn.","features.fleet.title": "Chế Độ Xem Fleet","features.foldFinishedTurn.desc": "Thu gọn quy trình (lập luận và các cuộc gọi công cụ) của các lượt tác nhân đã hoàn thành, không phải lượt mới nhất, dưới tiêu đề \"Đã xử lý\". Câu trả lời cuối cùng vẫn hiển thị; nhấp để mở rộng quy trình.",diff --git a/locales/vi-VN/providers.json b/locales/vi-VN/providers.jsonindex cbee17b69aa..0b1e8d539fd 100644--- a/locales/vi-VN/providers.json+++ b/locales/vi-VN/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Các mô hình Stepfun cung cấp khả năng đa phương thức và suy luận phức tạp hàng đầu, với hiểu ngữ cảnh dài và điều phối tìm kiếm tự động mạnh mẽ.","straico.description": "Straico đơn giản hóa việc tích hợp AI bằng cách cung cấp một không gian làm việc thống nhất, kết hợp các mô hình AI tạo văn bản, hình ảnh và âm thanh hàng đầu, mang đến cho các nhà tiếp thị, doanh nhân và những người đam mê khả năng truy cập dễ dàng vào các công cụ AI đa dạng.","streamlake.description": "StreamLake là nền tảng dịch vụ mô hình và điện toán AI ở cấp doanh nghiệp, tích hợp khả năng suy luận mô hình hiệu suất cao, tùy chỉnh mô hình với chi phí thấp và dịch vụ được quản lý toàn diện, giúp doanh nghiệp tập trung vào đổi mới ứng dụng AI mà không phải lo lắng về sự phức tạp hay chi phí của hạ tầng tính toán bên dưới.",+ "supergrok.description": "Truy cập các mô hình Grok với gói đăng ký SuperGrok hoặc X Premium của bạn, không cần khóa API.","taichu.description": "Mô hình đa phương thức thế hệ mới từ CASIA và Viện AI Vũ Hán, hỗ trợ hỏi đáp nhiều lượt, viết, tạo hình ảnh, hiểu 3D và phân tích tín hiệu với nhận thức và sáng tạo vượt trội.","tencentcloud.description": "LLM Knowledge Engine Atomic Power cung cấp hỏi đáp tri thức đầu-cuối cho doanh nghiệp và nhà phát triển, với các dịch vụ mô-đun như phân tích tài liệu, chia đoạn, nhúng và viết lại nhiều lượt để xây dựng giải pháp AI tùy chỉnh.","togetherai.description": "Together AI mang lại hiệu suất hàng đầu với các mô hình sáng tạo, tùy chỉnh rộng, mở rộng nhanh và triển khai đơn giản cho nhu cầu doanh nghiệp.",diff --git a/locales/vi-VN/setting.json b/locales/vi-VN/setting.jsonindex 08049551c3f..f9f2b41d0b0 100644--- a/locales/vi-VN/setting.json+++ b/locales/vi-VN/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "Mô hình","defaultAgent.title": "Cài đặt Agent Mặc định","devices.actions.edit": "Chỉnh sửa",+ "devices.actions.refresh": "Làm mới","devices.actions.remove": "Xóa","devices.actions.removeSelected": "Xóa ({{count}})","devices.capabilities.commands.desc": "Thực thi lệnh terminal một cách an toàn trong môi trường của bạn.",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "Điều này bao gồm thiết bị bạn đang sử dụng ngay bây giờ — việc loại bỏ nó sẽ ngắt kết nối phiên hiện tại của bạn.","devices.selection.selected": "{{count}} đã chọn","devices.selection.total": "{{count}} thiết bị",+ "devices.share.alreadyShared": "Đã chia sẻ",+ "devices.share.badge": "Đã chia sẻ đến {{count}} không gian làm việc",+ "devices.share.confirm": "Chia sẻ",+ "devices.share.detailLabel": "Đã chia sẻ đến không gian làm việc",+ "devices.share.done": "Hoàn tất",+ "devices.share.empty": "Bạn chưa tham gia bất kỳ không gian làm việc nào.",+ "devices.share.goToTarget": "Đi đến {{name}}",+ "devices.share.menu": "Chia sẻ đến Không gian làm việc…",+ "devices.share.modalDesc": "Chọn một không gian làm việc để chia sẻ thiết bị này. Thành viên có thể thực hiện các tác vụ trên thiết bị khi nó đang trực tuyến.",+ "devices.share.modalTitle": "Chia sẻ Thiết bị đến Không gian làm việc",+ "devices.share.offlineDesc": "Thiết bị phải trực tuyến để chia sẻ",+ "devices.share.overwriteConfirmDesc": "Máy này đã được đăng ký trong không gian làm việc với quyền truy cập {{current}}. Tiếp tục để thay đổi thành {{next}} và liên kết nó với thiết bị này.",+ "devices.share.overwriteConfirmOk": "Ghi đè",+ "devices.share.overwriteConfirmTitle": "Đã có trong {{name}} — ghi đè?",+ "devices.share.revoke": "Hủy chia sẻ",+ "devices.share.revokeConfirmDesc": "Điều này sẽ xóa thiết bị khỏi không gian làm việc đó. Thành viên sẽ không thể thực hiện các tác vụ trên thiết bị; bạn có thể chia sẻ lại bất kỳ lúc nào.",+ "devices.share.revokeConfirmTitle": "Hủy chia sẻ từ {{name}}?",+ "devices.share.selectPlaceholder": "Chọn một không gian làm việc",+ "devices.share.sharedByTag": "Được chia sẻ bởi {{name}}",+ "devices.share.success": "Thiết bị đã được chia sẻ đến {{name}}",+ "devices.share.targetLabel": "Chia sẻ đến",+ "devices.share.viewerHint": "Người xem không thể chia sẻ thiết bị",+ "devices.share.visibilityTag.private": "Riêng tư",+ "devices.share.visibilityTag.public": "Không gian làm việc","devices.status.offline": "Ngoại tuyến","devices.status.online": "Trực tuyến","devices.title": "Thiết bị của tôi",+ "devices.visibility.publish": "Công khai đến Không gian làm việc",+ "devices.visibility.publishConfirmTitle": "Công khai thiết bị này đến không gian làm việc?",+ "devices.visibilityTabs.private": "Riêng tư",+ "devices.visibilityTabs.workspace": "Không gian làm việc","devices.workingDirectory": "Thư mục làm việc: {{path}}","downloads.desktop.cta": "Tải ứng dụng máy tính để bàn","downloads.desktop.desc": "Sử dụng ứng dụng máy tính để bàn gốc cho các tệp cục bộ, công cụ hệ thống và công việc tập trung trên máy tính của bạn.",@@ -2497,7 +2526,9 @@"workspaceSetting.devices.enrolledBy": "Được đăng ký bởi {{name}}","workspaceSetting.devices.enrolledByLabel": "Được đăng ký bởi","workspaceSetting.devices.heroDesc": "Đăng ký một máy dùng chung — một máy chủ xây dựng hoặc một máy Mac của nhóm — và mọi thành viên có thể chạy các tác nhân trên đó: đọc/ghi tệp, chạy lệnh và gọi các công cụ hệ thống.",+ "workspaceSetting.devices.heroDescPrivate": "Đăng ký một máy để sử dụng riêng trong không gian làm việc này — các thành viên khác không thể thấy hoặc sử dụng nó. Chạy các tác vụ trên máy: đọc/ghi tệp, thực hiện lệnh, và gọi các công cụ hệ thống.","workspaceSetting.devices.heroTitle": "Kết nối thiết bị đầu tiên của không gian làm việc của bạn",+ "workspaceSetting.devices.heroTitlePrivate": "Kết nối thiết bị riêng tư đầu tiên của bạn","workspaceSetting.devices.offline": "Ngoại tuyến","workspaceSetting.devices.online": "Trực tuyến","workspaceSetting.devices.readonlyHint": "Chỉ thành viên đã đăng ký thiết bị này hoặc chủ sở hữu không gian làm việc mới có thể đổi tên hoặc xóa nó.",diff --git a/locales/vi-VN/spend.json b/locales/vi-VN/spend.jsonindex b67a4905183..af572991cb2 100644--- a/locales/vi-VN/spend.json+++ b/locales/vi-VN/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "Token","usageStats.cards.tokenDesc": "Đầu vào {{input}} · Đầu ra {{output}}","usageStats.chart.cacheWrite": "Ghi vào bộ nhớ đệm",+ "usageStats.chart.cachedInput": "Đầu vào được lưu trữ","usageStats.chart.input": "Đầu vào","usageStats.chart.output": "Đầu ra","usageStats.chart.spend": "Chi phí",diff --git a/locales/zh-CN/chat.json b/locales/zh-CN/chat.jsonindex 3e2723fa89e..3e7af044695 100644--- a/locales/zh-CN/chat.json+++ b/locales/zh-CN/chat.json@@ -321,7 +321,7 @@"heteroAgent.executionTarget.noneDesc": "不启用任何设备","heteroAgent.executionTarget.offline": "离线","heteroAgent.executionTarget.online": "在线",- "heteroAgent.executionTarget.personalGroup": "个人设备",+ "heteroAgent.executionTarget.personalGroup": "私人设备","heteroAgent.executionTarget.sandbox": "云端沙箱","heteroAgent.executionTarget.sandboxDesc": "在临时云端沙箱中运行","heteroAgent.executionTarget.title": "执行设备",diff --git a/locales/zh-CN/providers.json b/locales/zh-CN/providers.jsonindex 7fc5c833574..2d52151bc45 100644--- a/locales/zh-CN/providers.json+++ b/locales/zh-CN/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun 模型具备领先的多模态与复杂推理能力,支持长文本理解与强大的自主搜索编排。","straico.description": "Straico 致力于简化 AI 集成,通过提供一个整合了顶尖文本、图像和音频生成式 AI 模型的统一工作空间,赋能营销人员、企业家及爱好者等各类用户,实现对多样化 AI 工具的无缝访问。","streamlake.description": "快手万擎是企业级模型服务与AI算力云平台,集成高性能模型推理、低成本模型定制与全托管服务,助力企业专注于AI应用创新,无需担忧底层算力的复杂性与成本。",+ "supergrok.description": "通过您的 SuperGrok 或 X 高级订阅访问 Grok 模型,无需 API 密钥。","taichu.description": "太初是中科院自动化所与武汉人工智能研究院联合研发的新一代多模态模型,支持多轮问答、写作、图像生成、3D 理解与信号分析,具备更强的认知与创造力。","tencentcloud.description": "腾讯云大模型知识引擎原子能力为企业与开发者提供端到端知识问答服务,支持文档解析、切分、向量化、多轮重写等模块化服务,助力构建定制 AI 方案。","togetherai.description": "Together AI 提供领先性能的创新模型,支持广泛定制、快速扩展与简便部署,满足企业需求。",diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.jsonindex 58002d586fe..7417042b704 100644--- a/locales/zh-CN/setting.json+++ b/locales/zh-CN/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "模型","defaultAgent.title": "新建助理","devices.actions.edit": "编辑",+ "devices.actions.refresh": "刷新","devices.actions.remove": "移除","devices.actions.removeSelected": "移除({{count}})","devices.capabilities.commands.desc": "在你的环境中安全地执行终端命令。",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "其中包含你当前正在使用的设备,移除后会断开当前会话。","devices.selection.selected": "已选 {{count}} 项","devices.selection.total": "{{count}} 台设备",+ "devices.share.alreadyShared": "已共享",+ "devices.share.badge": "已共享到 {{count}} 个工作区",+ "devices.share.confirm": "共享",+ "devices.share.detailLabel": "已共享到的工作区",+ "devices.share.done": "完成",+ "devices.share.empty": "您还没有加入任何工作区。",+ "devices.share.goToTarget": "前往 {{name}}",+ "devices.share.menu": "共享到工作区…",+ "devices.share.modalDesc": "选择要将此设备共享到的工作区。设备在线时,成员可以向它派发智能体任务。",+ "devices.share.modalTitle": "共享设备到工作区",+ "devices.share.offlineDesc": "设备在线时才能共享",+ "devices.share.overwriteConfirmDesc": "这台设备已注册在该工作区,当前访问权限为「{{current}}」。继续将改为「{{next}}」,并与当前设备关联。",+ "devices.share.overwriteConfirmOk": "覆盖",+ "devices.share.overwriteConfirmTitle": "已在「{{name}}」中,是否覆盖?",+ "devices.share.revoke": "取消共享",+ "devices.share.revokeConfirmDesc": "这会将设备从该工作区移除,成员将无法再向它派发任务;您随时可以重新共享。",+ "devices.share.revokeConfirmTitle": "取消共享到「{{name}}」?",+ "devices.share.selectPlaceholder": "选择一个工作区",+ "devices.share.sharedByTag": "由 {{name}} 共享",+ "devices.share.success": "设备已共享到 {{name}}",+ "devices.share.targetLabel": "共享至",+ "devices.share.viewerHint": "查看者无法共享设备",+ "devices.share.visibilityTag.private": "私人",+ "devices.share.visibilityTag.public": "工作区","devices.status.offline": "离线","devices.status.online": "在线","devices.title": "我的设备",+ "devices.visibility.publish": "发布到工作区",+ "devices.visibility.publishConfirmTitle": "将此设备发布到工作区?",+ "devices.visibilityTabs.private": "私人",+ "devices.visibilityTabs.workspace": "工作区","devices.workingDirectory": "工作目录:{{path}}","downloads.desktop.cta": "下载桌面应用","downloads.desktop.desc": "使用原生桌面应用处理本地文件、系统工具,以及更专注的电脑端工作。",@@ -2497,13 +2526,15 @@"workspaceSetting.devices.enrolledBy": "由 {{name}} 注册","workspaceSetting.devices.enrolledByLabel": "注册者","workspaceSetting.devices.heroDesc": "注册一台共享设备——例如构建服务器或团队的 Mac——每个成员都可以在其上运行代理:读取/写入文件、运行命令以及调用系统工具。",+ "workspaceSetting.devices.heroDescPrivate": "注册一台仅供您自己使用的设备——工作区其他成员不可见也无法使用。您可以在其上运行代理:读取/写入文件、运行命令以及调用系统工具。","workspaceSetting.devices.heroTitle": "连接您的第一个工作区设备",+ "workspaceSetting.devices.heroTitlePrivate": "连接您的第一个私人设备","workspaceSetting.devices.offline": "离线","workspaceSetting.devices.online": "在线","workspaceSetting.devices.readonlyHint": "仅注册该设备的成员或工作区所有者可以重命名或移除。","workspaceSetting.devices.unknownEnroller": "未知成员","workspaceSetting.group.admin": "管理",- "workspaceSetting.group.agent": "代理",+ "workspaceSetting.group.agent": "智能体","workspaceSetting.group.general": "通用","workspaceSetting.storage.comingSoon": "工作区范围的数据导入和导出即将推出。","workspaceSetting.storage.danger.reset.desc": "将所有工作区设置恢复为默认值。工作区数据不会被删除。",diff --git a/locales/zh-TW/chat.json b/locales/zh-TW/chat.jsonindex 32db2fe8113..dd117cd9a81 100644--- a/locales/zh-TW/chat.json+++ b/locales/zh-TW/chat.json@@ -61,7 +61,7 @@"builtinCopilot": "內建 Copilot","chatList.expandMessage": "展開訊息","chatList.longMessageDetail": "查看詳情",- "chatList.refreshing": "正在獲取最新消息...",+ "chatList.refreshError": "無法刷新訊息","chatMode.agent": "代理","chatMode.agentCap.env": "運行環境","chatMode.agentCap.files": "文件訪問",@@ -111,9 +111,12 @@"cliRateLimitGuide.relative.hour_other": "{{count}} 小時","cliRateLimitGuide.relative.minute_one": "{{count}} 分鐘","cliRateLimitGuide.relative.minute_other": "{{count}} 分鐘",+ "cliRateLimitGuide.relative.resetComplete": "重置完成","cliRateLimitGuide.relative.soon": "即將重置","cliRateLimitGuide.resetAt": "重置時間",+ "cliRateLimitGuide.resetIn": "剩餘時間","cliRateLimitGuide.resetInApprox": "約於 {{duration}} 後重置",+ "cliRateLimitGuide.resetUnknown": "配額重置","cliRateLimitGuide.title": "{{name}} 使用量已達上限","codexInstallGuide.actions.openDocs": "開啟安裝指南","codexInstallGuide.actions.openSystemTools": "開啟系統工具",@@ -404,6 +407,10 @@"inputQueue.edit": "編輯","inputQueue.sendNow": "立即送出(中斷目前的執行)","intentUnderstanding.title": "正在理解並分析您的意圖...",+ "internalLink.agent.open": "開啟代理",+ "internalLink.preview.agent": "代理",+ "internalLink.preview.document": "頁面",+ "internalLink.preview.task": "任務","inviteMembers": "邀請成員","knowledgeBase.all": "所有內容","knowledgeBase.allFiles": "所有檔案",@@ -550,6 +557,9 @@"operation.execServerAgentRuntime": "執行中…您可以切換任務或關閉頁面——任務將持續進行。","operation.heterogeneousAgentFallback": "外部代理","operation.sendMessage": "正在傳送訊息",+ "operation.streamRetry": "{{name}} 上游繁忙({{status}}),正在重試",+ "operation.streamRetry.unknownStatus": "未知狀態",+ "operation.streamRetry.withAttempt": "{{name}} 上游繁忙({{status}}),正在重試 {{attempt}}/{{maxAttempts}}","owner": "群組擁有者","pageCopilot.title": "文稿助手","pageCopilot.welcome": "**讓每一句話更精準。**\n\n無論是起草、改寫還是潤飾,我都會幫你讓文字更清晰、更自然、更具說服力。",@@ -1247,6 +1257,19 @@"workflow.toolDisplayName.writeLocalFile": "已寫入檔案","workflow.working": "處理中...","workingPanel.agentDocuments": "助理文件",+ "workingPanel.browser.actions.back": "返回",+ "workingPanel.browser.actions.capture": "複製截圖",+ "workingPanel.browser.actions.captured": "截圖已複製到剪貼簿",+ "workingPanel.browser.actions.failed": "瀏覽器操作失敗",+ "workingPanel.browser.actions.forward": "前進",+ "workingPanel.browser.actions.openExternal": "在系統瀏覽器中開啟",+ "workingPanel.browser.actions.reload": "重新載入",+ "workingPanel.browser.actions.stop": "停止載入",+ "workingPanel.browser.addressPlaceholder": "搜尋或輸入地址",+ "workingPanel.browser.desktopOnly": "內建瀏覽器僅適用於桌面應用程式",+ "workingPanel.browser.empty.desc": "在上方輸入地址或搜尋以開啟頁面",+ "workingPanel.browser.empty.title": "開始瀏覽",+ "workingPanel.browser.title": "瀏覽器","workingPanel.documents.close": "關閉","workingPanel.documents.discard": "放棄變更","workingPanel.documents.edit": "編輯",diff --git a/locales/zh-TW/labs.json b/locales/zh-TW/labs.jsonindex 870b97dd536..ffedcd3f268 100644--- a/locales/zh-TW/labs.json+++ b/locales/zh-TW/labs.json@@ -5,6 +5,8 @@"features.agentSelfIteration.title": "代理自我迭代","features.assistantMessageGroup.desc": "將助手訊息及其工具調用結果彙整成群組顯示","features.assistantMessageGroup.title": "助手訊息彙整群組",+ "features.claudeCodeSdk.desc": "透過 Claude Agent SDK 執行 Claude Code 會話,而非啟動 CLI。提供更豐富的串流和會話控制功能。",+ "features.claudeCodeSdk.title": "Claude Code SDK 執行環境","features.fleet.desc": "在標題欄中顯示 Fleet 項目——一個並排顯示所有代理執行任務的儀表板。","features.fleet.title": "Fleet 檢視","features.foldFinishedTurn.desc": "將已完成且非最新代理回合的過程(推理和工具調用)折疊到「已處理」標題下。最終答案保持可見;點擊以展開過程。",diff --git a/locales/zh-TW/providers.json b/locales/zh-TW/providers.jsonindex 21e0358bb56..61a2f75d166 100644--- a/locales/zh-TW/providers.json+++ b/locales/zh-TW/providers.json@@ -64,6 +64,7 @@"stepfun.description": "Stepfun 模型具備領先的多模態與複雜推理能力,支援長文本理解與強大的自主搜尋編排。","straico.description": "Straico 簡化了 AI 的整合,提供一個統一的工作空間,將頂尖的文字、圖像和音頻生成 AI 模型匯聚一處,為行銷人員、企業家和愛好者提供便捷的多元 AI 工具使用體驗。","streamlake.description": "StreamLake 是一個企業級的模型服務與 AI 運算雲端平台,整合高效能模型推論、低成本模型客製化與全代管服務,協助企業專注於 AI 應用創新,而無需擔心底層運算資源的複雜性與成本。",+ "supergrok.description": "使用您的 SuperGrok 或 X Premium 訂閱存取 Grok 模型,無需 API 金鑰。","taichu.description": "太初是中科院自動化所與武漢人工智慧研究院推出的新一代多模態模型,支援多輪問答、寫作、圖像生成、3D 理解與訊號分析,具備更強的認知與創造力。","tencentcloud.description": "騰訊雲 LLM 知識引擎原子能力為企業與開發者提供端到端的知識問答服務,包含文件解析、分段、嵌入與多輪重寫等模組化服務,打造客製化 AI 解決方案。","togetherai.description": "Together AI 提供領先效能的創新模型,支援廣泛自訂、快速擴展與簡易部署,滿足企業需求。",diff --git a/locales/zh-TW/setting.json b/locales/zh-TW/setting.jsonindex 3f410810779..8db315fc896 100644--- a/locales/zh-TW/setting.json+++ b/locales/zh-TW/setting.json@@ -283,6 +283,7 @@"defaultAgent.model.title": "模型","defaultAgent.title": "預設助手設定","devices.actions.edit": "編輯",+ "devices.actions.refresh": "重新整理","devices.actions.remove": "移除","devices.actions.removeSelected": "移除({{count}})","devices.capabilities.commands.desc": "安全地在您的環境中執行終端指令。",@@ -342,9 +343,37 @@"devices.remove.currentSessionWarning": "這包括您現在正在使用的裝置——移除它將使您的當前會話斷開連接。","devices.selection.selected": "已選擇 {{count}}","devices.selection.total": "{{count}} 台裝置",+ "devices.share.alreadyShared": "已分享",+ "devices.share.badge": "已分享至 {{count}} 個工作區",+ "devices.share.confirm": "分享",+ "devices.share.detailLabel": "已分享至工作區",+ "devices.share.done": "完成",+ "devices.share.empty": "您尚未加入任何工作區。",+ "devices.share.goToTarget": "前往 {{name}}",+ "devices.share.menu": "分享至工作區…",+ "devices.share.modalDesc": "選擇一個工作區將此裝置分享進去。成員可以在裝置保持在線時調度代理執行。",+ "devices.share.modalTitle": "分享裝置至工作區",+ "devices.share.offlineDesc": "裝置必須在線才能分享",+ "devices.share.overwriteConfirmDesc": "此機器已以 {{current}} 權限註冊於此工作區。是否繼續將其更改為 {{next}} 並連結至此裝置?",+ "devices.share.overwriteConfirmOk": "覆寫",+ "devices.share.overwriteConfirmTitle": "已在 {{name}} — 覆寫?",+ "devices.share.revoke": "取消分享",+ "devices.share.revokeConfirmDesc": "這將從該工作區移除此裝置。成員將無法再調度執行;您可以隨時再次分享。",+ "devices.share.revokeConfirmTitle": "從 {{name}} 取消分享?",+ "devices.share.selectPlaceholder": "選擇一個工作區",+ "devices.share.sharedByTag": "由 {{name}} 分享",+ "devices.share.success": "裝置已分享至 {{name}}",+ "devices.share.targetLabel": "分享至",+ "devices.share.viewerHint": "檢視者無法分享裝置",+ "devices.share.visibilityTag.private": "私人",+ "devices.share.visibilityTag.public": "工作區","devices.status.offline": "離線","devices.status.online": "在線","devices.title": "我的裝置",+ "devices.visibility.publish": "發佈至工作區",+ "devices.visibility.publishConfirmTitle": "將此裝置發佈至工作區?",+ "devices.visibilityTabs.private": "私人",+ "devices.visibilityTabs.workspace": "工作區","devices.workingDirectory": "工作目錄:{{path}}","downloads.desktop.cta": "下載桌面應用程式","downloads.desktop.desc": "使用原生桌面應用程式處理本地檔案、系統工具,並專注於您的電腦工作。",@@ -2497,13 +2526,15 @@"workspaceSetting.devices.enrolledBy": "由 {{name}} 註冊","workspaceSetting.devices.enrolledByLabel": "註冊者","workspaceSetting.devices.heroDesc": "註冊一台共享機器,例如構建伺服器或團隊的 Mac,讓每位成員都可以在其上運行代理:讀寫文件、執行命令以及調用系統工具。",+ "workspaceSetting.devices.heroDescPrivate": "將機器註冊於此工作區供您個人使用 — 其他成員無法查看或使用。可在其上執行代理:讀寫檔案、執行命令及調用系統工具。","workspaceSetting.devices.heroTitle": "連接您的第一台工作區設備",+ "workspaceSetting.devices.heroTitlePrivate": "連接您的第一台私人裝置","workspaceSetting.devices.offline": "離線","workspaceSetting.devices.online": "在線","workspaceSetting.devices.readonlyHint": "只有註冊此裝置的成員或工作區擁有者可以重新命名或移除它。","workspaceSetting.devices.unknownEnroller": "未知成員","workspaceSetting.group.admin": "管理",- "workspaceSetting.group.agent": "代理",+ "workspaceSetting.group.agent": "智能體","workspaceSetting.group.general": "一般","workspaceSetting.storage.comingSoon": "工作空間範圍的數據導入與導出即將推出。","workspaceSetting.storage.danger.reset.desc": "將所有工作空間設定恢復為預設值。工作空間數據不會被刪除。",diff --git a/locales/zh-TW/spend.json b/locales/zh-TW/spend.jsonindex 5803e7eb34c..be9ad21aa7d 100644--- a/locales/zh-TW/spend.json+++ b/locales/zh-TW/spend.json@@ -54,6 +54,7 @@"usageStats.cards.token": "代幣","usageStats.cards.tokenDesc": "輸入 {{input}} · 輸出 {{output}}","usageStats.chart.cacheWrite": "快取寫入",+ "usageStats.chart.cachedInput": "快取輸入","usageStats.chart.input": "輸入","usageStats.chart.output": "輸出","usageStats.chart.spend": "成本",diff --git a/packages/database/src/models/__tests__/device.test.ts b/packages/database/src/models/__tests__/device.test.tsindex 800ff703b65..b128fe5d55e 100644--- a/packages/database/src/models/__tests__/device.test.ts+++ b/packages/database/src/models/__tests__/device.test.ts@@ -5,7 +5,7 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest';import { getTestDB } from '../../core/getTestDB';import { devices, users, workspaces } from '../../schemas';import type { LobeChatDatabase } from '../../type';-import { DeviceModel } from '../device';+import { DeviceModel, WorkspaceDevicePrivateConflictError } from '../device';const serverDB: LobeChatDatabase = await getTestDB();@@ -134,10 +134,18 @@ describe('DeviceModel', () => {});it('queryWorkspaceDevices returns every enrolled device (any owner), scoped to the workspace', async () => {- // enrolled by two different admins into the same workspace+ // enrolled by two different admins into the same workspace (public —+ // another member's default-private enrollment is covered by the+ // visibility suite below)await serverDB.insert(devices).values([{ deviceId: 'w1', identitySource: 'machine-id', userId, workspaceId: wsId },- { deviceId: 'w2', identitySource: 'machine-id', userId: otherUserId, workspaceId: wsId },+ {+ deviceId: 'w2',+ identitySource: 'machine-id',+ userId: otherUserId,+ visibility: 'public',+ workspaceId: wsId,+ },]);// a personal device must not appearawait deviceModel.register({ deviceId: 'p1', identitySource: 'machine-id' });@@ -155,11 +163,14 @@ describe('DeviceModel', () => {});it('dedupes a machine enrolled into one workspace by different admins to a single row', async () => {- // admin A enrolls machine "wdev" into the workspace+ // admin A enrolls machine "wdev" into the workspace (public — a+ // cross-user collision with a PRIVATE row fails closed, covered in the+ // visibility suite below)await new DeviceModel(serverDB, userId, wsId).registerWorkspaceDevice({deviceId: 'wdev',hostname: 'A-host',identitySource: 'machine-id',+ visibility: 'public',workspaceId: wsId,});// admin B enrolls the SAME machine (same deviceId) into the SAME workspace@@ -180,6 +191,285 @@ describe('DeviceModel', () => {expect(rows[0].hostname).toBe('B-host');});+ describe('visibility (private workspace devices)', () => {+ it('queryWorkspaceDevices returns public rows plus only MY private rows', async () => {+ await serverDB.insert(devices).values([+ {+ deviceId: 'pub',+ identitySource: 'machine-id',+ userId: otherUserId,+ visibility: 'public',+ workspaceId: wsId,+ },+ {+ deviceId: 'mine-private',+ identitySource: 'machine-id',+ userId,+ visibility: 'private',+ workspaceId: wsId,+ },+ {+ deviceId: 'theirs-private',+ identitySource: 'machine-id',+ userId: otherUserId,+ visibility: 'private',+ workspaceId: wsId,+ },+ ]);++ const ids = (await new DeviceModel(serverDB, userId, wsId).queryWorkspaceDevices())+ .map((d) => d.deviceId)+ .sort();+ expect(ids).toEqual(['mine-private', 'pub']);+ });++ it('queryWorkspaceHiddenDeviceIds returns only other members private device ids', async () => {+ await serverDB.insert(devices).values([+ {+ deviceId: 'pub',+ identitySource: 'machine-id',+ userId: otherUserId,+ visibility: 'public',+ workspaceId: wsId,+ },+ {+ deviceId: 'mine-private',+ identitySource: 'machine-id',+ userId,+ visibility: 'private',+ workspaceId: wsId,+ },+ {+ deviceId: 'theirs-private',+ identitySource: 'machine-id',+ userId: otherUserId,+ visibility: 'private',+ workspaceId: wsId,+ },+ ]);++ const hidden = await new DeviceModel(+ serverDB,+ userId,+ wsId,+ ).queryWorkspaceHiddenDeviceIds();+ expect(hidden).toEqual(['theirs-private']);+ expect(await deviceModel.queryWorkspaceHiddenDeviceIds()).toEqual([]);+ });++ it('findWorkspaceDeviceById fails closed on another member private device', async () => {+ await serverDB.insert(devices).values({+ deviceId: 'theirs-private',+ identitySource: 'machine-id',+ userId: otherUserId,+ visibility: 'private',+ workspaceId: wsId,+ });++ expect(+ await new DeviceModel(serverDB, userId, wsId).findWorkspaceDeviceById('theirs-private'),+ ).toBeUndefined();+ // the enroller still resolves their own private device+ expect(+ (+ await new DeviceModel(serverDB, otherUserId, wsId).findWorkspaceDeviceById(+ 'theirs-private',+ )+ )?.deviceId,+ ).toBe('theirs-private');+ });++ it('registerWorkspaceDevice defaults to private and preserves visibility on same-member re-enroll', async () => {+ const wsModel = new DeviceModel(serverDB, userId, wsId);+ const created = await wsModel.registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ workspaceId: wsId,+ });+ expect(created?.visibility).toBe('private');++ await wsModel.setWorkspaceDeviceVisibility('wdev', 'public');+ // same member re-enrolls (e.g. reconnect) — their private/public choice+ // must survive+ const reenrolled = await wsModel.registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ workspaceId: wsId,+ });+ expect(reenrolled?.visibility).toBe('public');+ expect(reenrolled?.userId).toBe(userId);+ });++ it('registerWorkspaceDevice honors an explicit public choice on re-enroll', async () => {+ const wsModel = new DeviceModel(serverDB, userId, wsId);+ await wsModel.registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ workspaceId: wsId,+ });++ // `lh connect --workspace … --public` on an existing private enrollment+ // must promote it — an ignored explicit flag would be a silent no-op+ const promoted = await wsModel.registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ visibility: 'public',+ workspaceId: wsId,+ });+ expect(promoted?.visibility).toBe('public');+ });++ it('overwriteSharedWorkspaceDevice applies visibility and links the personal twin', async () => {+ const wsModel = new DeviceModel(serverDB, userId, wsId);+ // pre-existing direct CLI enrollment: public, no share link+ await wsModel.registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ visibility: 'public',+ workspaceId: wsId,+ });++ // a plain re-share upsert would preserve 'public' — the confirmed+ // overwrite must apply the explicit choice and link the personal row+ const row = await wsModel.overwriteSharedWorkspaceDevice('wdev', {+ sharedFromDeviceId: 'my-personal',+ visibility: 'private',+ });+ expect(row?.visibility).toBe('private');+ expect(row?.sharedFromDeviceId).toBe('my-personal');+ expect(row?.userId).toBe(userId);+ });++ it('overwriteSharedWorkspaceDevice transfers ownership to the sharer on cross-user overwrite', async () => {+ // another member originally enrolled the machine directly via CLI+ await new DeviceModel(serverDB, otherUserId, wsId).registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ visibility: 'public',+ workspaceId: wsId,+ });++ // the sharer (e.g. a workspace owner) confirms overwriting it as a+ // share from their personal device — the row must follow the sharer,+ // or their share list / revoke UI can never surface it+ const sharer = new DeviceModel(serverDB, userId, wsId);+ const row = await sharer.overwriteSharedWorkspaceDevice('wdev', {+ sharedFromDeviceId: 'my-personal',+ visibility: 'private',+ });+ expect(row?.userId).toBe(userId);++ const sharerShares = await sharer.querySharedWorkspaceDevices();+ expect(sharerShares.map((s) => s.deviceId)).toContain('wdev');+ const enrollerShares = await new DeviceModel(+ serverDB,+ otherUserId,+ wsId,+ ).querySharedWorkspaceDevices();+ expect(enrollerShares.map((s) => s.deviceId)).not.toContain('wdev');+ });++ it('a DIFFERENT member colliding with a private enrollment fails closed', async () => {+ await new DeviceModel(serverDB, userId, wsId).registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ visibility: 'private',+ workspaceId: wsId,+ });++ // deviceId is client-supplied — the server can't prove this is the same+ // physical machine, so the collision must not publish (or otherwise+ // mutate) the enroller's private row.+ await expect(+ new DeviceModel(serverDB, otherUserId, wsId).registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ workspaceId: wsId,+ }),+ ).rejects.toThrow(WorkspaceDevicePrivateConflictError);++ // the enroller's row is untouched+ const row = await new DeviceModel(serverDB, userId, wsId).findWorkspaceDeviceById('wdev');+ expect(row?.visibility).toBe('private');+ expect(row?.userId).toBe(userId);+ });++ it('a DIFFERENT member re-enrolling a PUBLIC machine refreshes it without demoting', async () => {+ await new DeviceModel(serverDB, userId, wsId).registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ visibility: 'public',+ workspaceId: wsId,+ });++ // legit shared-infra flow: second member re-enrolls the shared box+ const row = await new DeviceModel(serverDB, otherUserId, wsId).registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ workspaceId: wsId,+ });+ expect(row?.visibility).toBe('public');+ // the original enroller is preserved+ expect(row?.userId).toBe(userId);+ });++ it('querySharedWorkspaceDevices returns only my shared-from-personal rows', async () => {+ await serverDB.insert(devices).values([+ // shared from my personal device — returned+ {+ deviceId: 'ws-twin',+ identitySource: 'machine-id',+ sharedFromDeviceId: 'my-personal',+ userId,+ visibility: 'private',+ workspaceId: wsId,+ },+ // my direct CLI enrollment (no share link) — excluded+ {+ deviceId: 'cli-enrolled',+ identitySource: 'machine-id',+ userId,+ visibility: 'public',+ workspaceId: wsId,+ },+ // someone else's share — excluded+ {+ deviceId: 'their-twin',+ identitySource: 'machine-id',+ sharedFromDeviceId: 'their-personal',+ userId: otherUserId,+ visibility: 'private',+ workspaceId: wsId,+ },+ ]);++ const shares = await new DeviceModel(serverDB, userId, wsId).querySharedWorkspaceDevices();+ expect(shares).toHaveLength(1);+ expect(shares[0]).toMatchObject({+ deviceId: 'ws-twin',+ sharedFromDeviceId: 'my-personal',+ visibility: 'private',+ workspaceId: wsId,+ });+ });++ it('setWorkspaceDeviceVisibility toggles both directions', async () => {+ const wsModel = new DeviceModel(serverDB, userId, wsId);+ await wsModel.registerWorkspaceDevice({+ deviceId: 'wdev',+ identitySource: 'machine-id',+ visibility: 'private',+ workspaceId: wsId,+ });++ const published = await wsModel.setWorkspaceDeviceVisibility('wdev', 'public');+ expect(published?.visibility).toBe('public');++ const demoted = await wsModel.setWorkspaceDeviceVisibility('wdev', 'private');+ expect(demoted?.visibility).toBe('private');+ });+ });+it('findWorkspaceDeviceById is scoped to the workspace', async () => {await serverDB.insert(devices)diff --git a/packages/database/src/models/__tests__/workspaceMember.test.ts b/packages/database/src/models/__tests__/workspaceMember.test.tsindex fa1b49dee9b..5dc610efe9a 100644--- a/packages/database/src/models/__tests__/workspaceMember.test.ts+++ b/packages/database/src/models/__tests__/workspaceMember.test.ts@@ -3,7 +3,7 @@ import { and, eq } from 'drizzle-orm';import { afterEach, beforeEach, describe, expect, it } from 'vitest';import { getTestDB } from '../../core/getTestDB';-import { users, workspaceInvitations, workspaceMembers, workspaces } from '../../schemas';+import { devices, users, workspaceInvitations, workspaceMembers, workspaces } from '../../schemas';import type { LobeChatDatabase } from '../../type';import { WorkspaceMemberModel } from '../workspaceMember';@@ -182,6 +182,58 @@ describe('WorkspaceMemberModel', () => {.where(eq(workspaceMembers.workspaceId, otherWorkspaceId));expect(row.deletedAt).toBeNull();});++ it('drops the departing member private + shared-from-personal devices, keeps shared infra', async () => {+ const model = new WorkspaceMemberModel(serverDB, inviterId);+ await model.addMember({ userId: memberId, workspaceId });+ await serverDB.insert(devices).values([+ // their private enrollment — dropped+ {+ deviceId: 'dep-private',+ identitySource: 'machine-id',+ userId: memberId,+ visibility: 'private',+ workspaceId,+ },+ // shared from their personal list (even if published) — dropped+ {+ deviceId: 'dep-shared',+ identitySource: 'machine-id',+ sharedFromDeviceId: 'dep-personal',+ userId: memberId,+ visibility: 'public',+ workspaceId,+ },+ // public machine they enrolled directly (shared infra) — stays+ {+ deviceId: 'team-box',+ identitySource: 'machine-id',+ userId: memberId,+ visibility: 'public',+ workspaceId,+ },+ // their personal row — untouched+ { deviceId: 'dep-personal', identitySource: 'machine-id', userId: memberId },+ // same-shape rows in another workspace — untouched+ {+ deviceId: 'other-ws-private',+ identitySource: 'machine-id',+ userId: memberId,+ visibility: 'private',+ workspaceId: otherWorkspaceId,+ },+ ]);++ const { removedDeviceIds } = await model.removeMember(workspaceId, memberId);++ // surfaced so callers can best-effort unenroll live gateway sockets+ expect(removedDeviceIds.sort()).toEqual(['dep-private', 'dep-shared']);++ const remaining = (await serverDB.select({ deviceId: devices.deviceId }).from(devices))+ .map((d) => d.deviceId)+ .sort();+ expect(remaining).toEqual(['dep-personal', 'other-ws-private', 'team-box']);+ });});describe('updateMemberRole', () => {diff --git a/packages/database/src/models/__tests__/workspaceUserSettings.test.ts b/packages/database/src/models/__tests__/workspaceUserSettings.test.tsnew file mode 100644index 00000000000..96db31e85af--- /dev/null+++ b/packages/database/src/models/__tests__/workspaceUserSettings.test.ts@@ -0,0 +1,133 @@+// @vitest-environment node+import { afterEach, beforeEach, describe, expect, it } from 'vitest';++import { getTestDB } from '../../core/getTestDB';+import { users, workspaces, workspaceUserSettings } from '../../schemas';+import type { LobeChatDatabase } from '../../type';+import { WorkspaceUserSettingsModel } from '../workspaceUserSettings';++const serverDB: LobeChatDatabase = await getTestDB();++const workspaceId = 'ws-user-settings-test';+const userA = 'ws-us-user-a';+const userB = 'ws-us-user-b';++const cleanup = async () => {+ await serverDB.delete(workspaceUserSettings);+ await serverDB.delete(workspaces);+ await serverDB.delete(users);+};++beforeEach(async () => {+ await cleanup();+ await serverDB.insert(users).values([{ id: userA }, { id: userB }]);+ await serverDB+ .insert(workspaces)+ .values({ id: workspaceId, name: 'ws', primaryOwnerId: userA, slug: 'ws' });+});++afterEach(cleanup);++describe('WorkspaceUserSettingsModel', () => {+ it('returns undefined / empty defaults when no row exists yet', async () => {+ const model = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ expect(await model.get()).toBeUndefined();+ expect(await model.getPreference()).toEqual({});+ });++ it('lazily creates the row on first updatePreference (UPSERT insert branch)', async () => {+ const model = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ await model.updatePreference({+ agentDeviceOverrides: {+ agentX: { boundDeviceId: 'device-1', executionTarget: 'device' },+ },+ });++ const row = await model.get();+ expect(row).toBeDefined();+ expect(row?.preference).toEqual({+ agentDeviceOverrides: {+ agentX: { boundDeviceId: 'device-1', executionTarget: 'device' },+ },+ });+ });++ it('merges subsequent patches into the same row instead of replacing (UPSERT update branch)', async () => {+ const model = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ await model.updatePreference({+ agentDeviceOverrides: { agentX: { executionTarget: 'sandbox' } },+ });+ // Patch adds a second agent — the first agent's override must survive.+ await model.updatePreference({+ agentDeviceOverrides: {+ agentX: { executionTarget: 'sandbox' },+ agentY: { boundDeviceId: 'device-Y', executionTarget: 'device' },+ },+ });++ const preference = await model.getPreference();+ expect(preference.agentDeviceOverrides).toEqual({+ agentX: { executionTarget: 'sandbox' },+ agentY: { boundDeviceId: 'device-Y', executionTarget: 'device' },+ });+ });++ it('deep-merges agentDeviceOverrides so a single-agent patch never drops other agents', async () => {+ const model = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ await model.updatePreference({+ agentDeviceOverrides: { agentX: { executionTarget: 'sandbox' } },+ });++ // A client with a stale/empty local copy patches ONLY agentY — agentX's+ // saved choice must survive the write.+ await model.updatePreference({+ agentDeviceOverrides: {+ agentY: { boundDeviceId: 'device-Y', executionTarget: 'device' },+ },+ });++ const preference = await model.getPreference();+ expect(preference.agentDeviceOverrides).toEqual({+ agentX: { executionTarget: 'sandbox' },+ agentY: { boundDeviceId: 'device-Y', executionTarget: 'device' },+ });+ });++ it("isolates users' rows so one caller can never observe another's preference", async () => {+ const modelA = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ const modelB = new WorkspaceUserSettingsModel(serverDB, userB, workspaceId);++ await modelA.updatePreference({+ agentDeviceOverrides: { shared: { boundDeviceId: 'A-device', executionTarget: 'device' } },+ });+ await modelB.updatePreference({+ agentDeviceOverrides: { shared: { boundDeviceId: 'B-device', executionTarget: 'device' } },+ });++ const [prefA, prefB] = await Promise.all([modelA.getPreference(), modelB.getPreference()]);+ expect(prefA.agentDeviceOverrides?.shared?.boundDeviceId).toBe('A-device');+ expect(prefB.agentDeviceOverrides?.shared?.boundDeviceId).toBe('B-device');+ });++ it('cascades on workspace delete — FK removes every row for that workspace', async () => {+ const model = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ await model.updatePreference({+ agentDeviceOverrides: { a: { executionTarget: 'sandbox' } },+ });+ expect(await model.get()).toBeDefined();++ await serverDB.delete(workspaces);+ expect(await model.get()).toBeUndefined();+ });++ it('cascades on user delete — FK removes every row for that user', async () => {+ const model = new WorkspaceUserSettingsModel(serverDB, userA, workspaceId);+ await model.updatePreference({+ agentDeviceOverrides: { a: { executionTarget: 'sandbox' } },+ });+ expect(await model.get()).toBeDefined();++ await serverDB.delete(users);+ expect(await model.get()).toBeUndefined();+ });+});diff --git a/packages/database/src/models/device.ts b/packages/database/src/models/device.tsindex a218d96720c..1653f630cd5 100644--- a/packages/database/src/models/device.ts+++ b/packages/database/src/models/device.ts@@ -1,9 +1,29 @@import type { WorkingDirEntry } from '@lobechat/types';-import { and, desc, eq, isNull, sql } from 'drizzle-orm';+import { and, desc, eq, isNotNull, isNull, ne, sql } from 'drizzle-orm';import type { DeviceItem } from '../schemas';-import { devices } from '../schemas';+import { devices, workspaces } from '../schemas';import type { LobeChatDatabase } from '../type';+import { buildWorkspaceWhere } from '../utils/workspace';++export type DeviceVisibility = 'private' | 'public';++/**+ * A workspace enrollment collided with ANOTHER member's PRIVATE row.+ * `registerWorkspaceDevice` fails closed on this instead of mutating the row —+ * deviceId is client-supplied, so treating the collision as "same physical+ * machine" would let any member expose a device its enroller kept private.+ * Routers map this to a CONFLICT response telling the caller to ask the+ * enroller (or an owner) to publish the device first.+ */+export class WorkspaceDevicePrivateConflictError extends Error {+ constructor(deviceId: string) {+ super(+ `Device "${deviceId}" is already privately enrolled by another workspace member — ask them (or a workspace owner) to publish it first.`,+ );+ this.name = 'WorkspaceDevicePrivateConflictError';+ }+}export interface RegisterDeviceParams {deviceId: string;@@ -86,7 +106,39 @@ export class DeviceModel {* row belongs to the workspace and surfaces to all its members. `userId`* records the enrolling admin.*/- registerWorkspaceDevice = async (params: RegisterDeviceParams & { workspaceId: string }) => {+ /**+ * Fail closed when `deviceId` collides with ANOTHER member's PRIVATE+ * enrollment: `deviceId` is CLIENT-SUPPLIED (explicit `--device-id`, stale+ * cache), so the server cannot verify it names this physical machine, and+ * treating the collision as "same machine" would let any member expose (or+ * otherwise mutate) a device its enroller deliberately kept private. The+ * genuine shared-box flow recovers by the enroller (or an owner) publishing+ * the device first.+ *+ * Called by {@link registerWorkspaceDevice} pre-upsert, and exposed+ * separately so flows with device-side effects (`shareDeviceToWorkspace`)+ * can check BEFORE the machine opens a workspace gateway connection.+ */+ assertNoCrossUserPrivateConflict = async (deviceId: string, workspaceId?: string) => {+ const wsId = workspaceId ?? this.workspaceId;+ if (!wsId) return;+ const conflicting = await this.db.query.devices.findFirst({+ where: and(eq(devices.workspaceId, wsId), eq(devices.deviceId, deviceId)),+ });+ if (conflicting && conflicting.userId !== this.userId && conflicting.visibility === 'private') {+ throw new WorkspaceDevicePrivateConflictError(deviceId);+ }+ };++ registerWorkspaceDevice = async (+ params: RegisterDeviceParams & {+ sharedFromDeviceId?: string;+ visibility?: DeviceVisibility;+ workspaceId: string;+ },+ ) => {+ await this.assertNoCrossUserPrivateConflict(params.deviceId, params.workspaceId);+const now = new Date();const [result] = await this.db.insert(devices)@@ -96,19 +148,42 @@ export class DeviceModel {identitySource: params.identitySource,lastSeenAt: now,platform: params.platform,+ // Set for enrollments driven from the owner's personal device list —+ // links this workspace row back to its personal twin (see the schema+ // comment on `devices.sharedFromDeviceId`).+ sharedFromDeviceId: params.sharedFromDeviceId,userId: this.userId,+ // 'public' shares the device with the whole workspace; defaults to+ // 'private' (enroller-only) — see the schema comment on+ // `devices.visibility`.+ visibility: params.visibility ?? 'private',workspaceId: params.workspaceId,})// Dedupe on (workspaceId, deviceId): a machine enrolled into a workspace is- // ONE device no matter which admin (re-)runs the enrollment. `userId` is- // left untouched on conflict — it stays the original enroller. The partial- // unique index requires its predicate be repeated in `targetWhere`.+ // ONE device no matter which member (re-)runs the enrollment. `userId` and+ // `sharedFromDeviceId` are left untouched on conflict — the original+ // enroller keeps the enrollment. `visibility` on conflict:+ // - an EXPLICIT `visibility: 'public'` (`lh connect --workspace --public`)+ // always publishes — the caller just asked for it, silently keeping the+ // row private would make the flag a no-op on re-enroll. Callers pass+ // `visibility` only when the user chose explicitly, so a plain+ // reconnect (undefined) still preserves the stored choice;+ // - anything else preserves the stored choice. An explicit 'private'+ // never demotes a published row here — pulling a shared device out of+ // the pool must stay an explicit `setWorkspaceDeviceVisibility` call.+ // A DIFFERENT member colliding with an existing PRIVATE row never reaches+ // this upsert — the guard above fails closed (see+ // `WorkspaceDevicePrivateConflictError`); a cross-user collision with a+ // public row is the legit shared-infra flow and just refreshes liveness.+ // The partial unique index requires its predicate be repeated in+ // `targetWhere`..onConflictDoUpdate({set: {hostname: params.hostname,identitySource: params.identitySource,lastSeenAt: now,platform: params.platform,+ visibility: params.visibility === 'public' ? 'public' : sql`${devices.visibility}`,},target: [devices.workspaceId, devices.deviceId],targetWhere: sql`${devices.workspaceId} IS NOT NULL`,@@ -133,20 +208,57 @@ export class DeviceModel {});};- /** Every device enrolled into the current workspace (any enrolling admin). */+ /**+ * Devices of the current workspace VISIBLE to the caller: every public device+ * plus the caller's own private enrollments. Other members' private devices+ * are excluded at the SQL level (`buildWorkspaceWhere`) so no read path — the+ * settings list, the run-device picker, the CLI, the device tool — can leak+ * them.+ */queryWorkspaceDevices = async (): Promise<DeviceItem[]> => {if (!this.workspaceId) return [];return this.db.query.devices.findMany({orderBy: [desc(devices.lastSeenAt)],- where: eq(devices.workspaceId, this.workspaceId),+ where: buildWorkspaceWhere({ userId: this.userId, workspaceId: this.workspaceId }, devices),});};- /** A single workspace device by id, scoped to the current workspace. */+ /**+ * DeviceIds of workspace devices HIDDEN from the caller (other members'+ * private enrollments). Read paths that merge the DB rows with the live+ * gateway pool need this to drop those devices from the "online but not+ * registered" fallback — the gateway pool is per-workspace and doesn't know+ * about visibility, so without this exclusion a private device would resurface+ * as a transient online entry.+ */+ queryWorkspaceHiddenDeviceIds = async (): Promise<string[]> => {+ if (!this.workspaceId) return [];+ const rows = await this.db+ .select({ deviceId: devices.deviceId })+ .from(devices)+ .where(+ and(+ eq(devices.workspaceId, this.workspaceId),+ eq(devices.visibility, 'private'),+ ne(devices.userId, this.userId),+ ),+ );+ return rows.map((r) => r.deviceId);+ };++ /**+ * A single workspace device by id, scoped to the current workspace and the+ * caller's visibility — another member's private device resolves to+ * `undefined`, exactly like a device that doesn't exist, so every write path+ * gated on this lookup fails closed with NOT_FOUND.+ */findWorkspaceDeviceById = async (deviceId: string) => {if (!this.workspaceId) return undefined;return this.db.query.devices.findFirst({- where: and(eq(devices.workspaceId, this.workspaceId), eq(devices.deviceId, deviceId)),+ where: and(+ eq(devices.deviceId, deviceId),+ buildWorkspaceWhere({ userId: this.userId, workspaceId: this.workspaceId }, devices),+ ),});};@@ -194,4 +306,77 @@ export class DeviceModel {.delete(devices).where(and(eq(devices.workspaceId, this.workspaceId), eq(devices.deviceId, deviceId)));};++ /**+ * Publish a private workspace device to the shared pool, or pull a public one+ * back to private. Uses UPDATE … RETURNING (mirrors `AgentModel.setVisibility`)+ * because after a demotion the row may no longer match the caller-visible+ * predicate, so a read-back would return nothing. Authorization (enroller, or+ * workspace owner for visible devices) is enforced at the router.+ */+ setWorkspaceDeviceVisibility = async (deviceId: string, visibility: DeviceVisibility) => {+ if (!this.workspaceId) return undefined;+ const [row] = await this.db+ .update(devices)+ .set({ updatedAt: new Date(), visibility })+ .where(and(eq(devices.workspaceId, this.workspaceId), eq(devices.deviceId, deviceId)))+ .returning();+ return row;+ };++ /**+ * Overwrite an EXISTING workspace enrollment from an explicit, confirmed+ * share: apply the sharer's requested visibility and link the row back to+ * their personal device (`sharedFromDeviceId`) so the personal list can+ * render and revoke the share. Unlike `registerWorkspaceDevice`'s upsert —+ * which deliberately preserves visibility on conflict — this is only called+ * after the user has confirmed the overwrite. Permission (enroller or+ * workspace owner) is enforced at the router via `canEditWorkspaceDevice`.+ *+ * A confirmed overwrite transfers the row to the sharer (`userId`): the+ * workspace row is now a twin of the sharer's personal device, so share+ * listing (`querySharedWorkspaceDevices`), the personal revoke UI, and the+ * member-departure cleanup must all follow the sharer, not the original+ * enroller.+ */+ overwriteSharedWorkspaceDevice = async (+ deviceId: string,+ params: { sharedFromDeviceId: string; visibility: DeviceVisibility },+ ) => {+ if (!this.workspaceId) return undefined;+ const now = new Date();+ const [row] = await this.db+ .update(devices)+ .set({+ lastSeenAt: now,+ sharedFromDeviceId: params.sharedFromDeviceId,+ updatedAt: now,+ userId: this.userId,+ visibility: params.visibility,+ })+ .where(and(eq(devices.workspaceId, this.workspaceId), eq(devices.deviceId, deviceId)))+ .returning();+ return row;+ };++ /**+ * The caller's workspace enrollments that were shared from one of their+ * PERSONAL devices, across EVERY workspace (deliberately not scoped to+ * `this.workspaceId` — the personal device list renders the full share map+ * for each machine). Joined with the workspace name so the UI can label each+ * share without a second lookup.+ */+ querySharedWorkspaceDevices = async () => {+ return this.db+ .select({+ deviceId: devices.deviceId,+ sharedFromDeviceId: devices.sharedFromDeviceId,+ visibility: devices.visibility,+ workspaceId: devices.workspaceId,+ workspaceName: workspaces.name,+ })+ .from(devices)+ .innerJoin(workspaces, eq(devices.workspaceId, workspaces.id))+ .where(and(eq(devices.userId, this.userId), isNotNull(devices.sharedFromDeviceId)));+ };}diff --git a/packages/database/src/models/workspaceMember.ts b/packages/database/src/models/workspaceMember.tsindex d1c251997ed..7006d8ede35 100644--- a/packages/database/src/models/workspaceMember.ts+++ b/packages/database/src/models/workspaceMember.ts@@ -1,7 +1,8 @@import { INVITATION_EXPIRY_DAYS } from '@lobechat/const';-import { and, eq, isNull } from 'drizzle-orm';+import { and, eq, isNotNull, isNull, or } from 'drizzle-orm';import { nanoid } from 'nanoid/non-secure';+import { devices } from '../schemas/device';import { workspaceInvitations, workspaceMembers } from '../schemas/workspace';import type { LobeChatDatabase } from '../type';@@ -57,7 +58,25 @@ export class WorkspaceMemberModel {};removeMember = async (workspaceId: string, userId: string) => {- return this.db+ // Departed-member device cleanup: drop the enrollments that only make sense+ // while they belong to the workspace — their private enrollments and any+ // device shared from their personal device list (the machine stays under+ // their exclusive control, so keeping the row would leave a permanently+ // dead — and security-ambiguous — entry). Devices they enrolled directly on+ // the machine as 'public' are shared infra and stay; their `userId` merely+ // records the first enroller.+ const removedDevices = await this.db+ .delete(devices)+ .where(+ and(+ eq(devices.workspaceId, workspaceId),+ eq(devices.userId, userId),+ or(eq(devices.visibility, 'private'), isNotNull(devices.sharedFromDeviceId)),+ ),+ )+ .returning({ deviceId: devices.deviceId });++ await this.db.update(workspaceMembers).set({ deletedAt: new Date() }).where(@@ -67,6 +86,12 @@ export class WorkspaceMemberModel {isNull(workspaceMembers.deletedAt),),);++ // Surfaced so callers can best-effort unenroll any still-connected gateway+ // socket for these devices: deleting the row alone also removes it from the+ // workspace hidden set, so a live socket would resurface to remaining+ // members as an online transient until its connect token expires.+ return { removedDeviceIds: removedDevices.map((d) => d.deviceId) };};updateMemberRole = async (workspaceId: string, userId: string, role: MemberRole) => {diff --git a/packages/database/src/models/workspaceUserSettings.ts b/packages/database/src/models/workspaceUserSettings.tsnew file mode 100644index 00000000000..5fd24f7c244--- /dev/null+++ b/packages/database/src/models/workspaceUserSettings.ts@@ -0,0 +1,102 @@+import type { WorkspaceUserPreference } from '@lobechat/types';+import { and, eq } from 'drizzle-orm';++import { workspaceUserSettings } from '../schemas/workspace';+import type { LobeChatDatabase } from '../type';++/**+ * Per-user preferences scoped to a specific workspace — the workspace-scoped+ * counterpart to `UserSettingsModel`. Rows live in `workspace_user_settings`+ * (PK `(workspaceId, userId)`) and cascade with either identity anchor.+ *+ * Every operation is scoped to the constructor's `(workspaceId, userId)`+ * pair; there is no way to reach another member's preferences through this+ * model, mirroring how the caller can only ever write their own settings from+ * the UI.+ *+ * Rows are lazily created — the first `updatePreference` call for a given+ * pair upserts, so members who never customize anything simply have no row+ * and callers fall through to defaults on read.+ */+export class WorkspaceUserSettingsModel {+ private readonly db: LobeChatDatabase;+ private readonly userId: string;+ private readonly workspaceId: string;++ constructor(db: LobeChatDatabase, userId: string, workspaceId: string) {+ this.db = db;+ this.userId = userId;+ this.workspaceId = workspaceId;+ }++ /**+ * The caller's preference row for this workspace, or `undefined` when+ * nothing has been saved yet. Callers should treat `undefined` as "no+ * per-user override" and fall back to the shared defaults — the same+ * behaviour a first-open would see before this feature existed.+ */+ get = async () => {+ return this.db.query.workspaceUserSettings.findFirst({+ where: and(+ eq(workspaceUserSettings.workspaceId, this.workspaceId),+ eq(workspaceUserSettings.userId, this.userId),+ ),+ });+ };++ /**+ * The caller's effective preference bag, with defaults applied. Never+ * `undefined` — an unwritten row returns `{}`, so consumers can index into+ * it without null-guarding every field.+ */+ getPreference = async (): Promise<WorkspaceUserPreference> => {+ const row = await this.get();+ return row?.preference ?? {};+ };++ /**+ * Merge `patch` on top of the caller's current preference and persist the+ * result via UPSERT. The merge is done at the application layer (read →+ * merge → write) because only the caller writes their own row, so the+ * lost-update surface is limited to the same user racing themselves in+ * multiple tabs — an acceptable trade for simple code.+ *+ * The first call for a `(workspace, user)` pair creates the row; subsequent+ * calls update the `preference` column in place, replacing the whole jsonb+ * with the newly merged object (so setting a top-level key to `undefined`+ * in the patch is a no-op — pass an explicit `{}` to clear it).+ */+ updatePreference = async (patch: Partial<WorkspaceUserPreference>) => {+ const current = (await this.getPreference()) ?? {};+ // `agentDeviceOverrides` merges one level deeper: clients patch a single+ // agent's override built from their LOCAL copy of the map, which may be+ // stale or empty (picker used before the preference fetch settled), and a+ // top-level replace would silently drop this user's saved choices for+ // every other agent. Individual per-agent entries still replace wholesale.+ const next: WorkspaceUserPreference = {+ ...current,+ ...patch,+ ...(patch.agentDeviceOverrides+ ? {+ agentDeviceOverrides: {+ ...current.agentDeviceOverrides,+ ...patch.agentDeviceOverrides,+ },+ }+ : {}),+ };+ const [row] = await this.db+ .insert(workspaceUserSettings)+ .values({+ preference: next,+ userId: this.userId,+ workspaceId: this.workspaceId,+ })+ .onConflictDoUpdate({+ set: { preference: next, updatedAt: new Date() },+ target: [workspaceUserSettings.workspaceId, workspaceUserSettings.userId],+ })+ .returning();+ return row;+ };+}diff --git a/packages/device-control/src/dispatch.ts b/packages/device-control/src/dispatch.tsindex af5c571ae26..f3df85a488c 100644--- a/packages/device-control/src/dispatch.ts+++ b/packages/device-control/src/dispatch.ts@@ -25,12 +25,14 @@ import {import { prepareSkillDirectory } from './skillDirectory';import type {DeviceControlDeps,+ EnrollWorkspaceParams,InitWorkspaceParams,ListProjectSkillsParams,LocalFilePreviewUrlParams,PrepareSkillDirectoryParams,ProjectFileIndexParams,ProjectFileSearchParams,+ UnenrollWorkspaceParams,} from './types';import { initWorkspace, listProjectSkills, statPath } from './workspace';@@ -41,6 +43,8 @@ import { initWorkspace, listProjectSkills, statPath } from './workspace';* handler, with no per-method gateway route.*/export const DEVICE_RPC_METHODS = [+ 'enrollWorkspace',+ 'unenrollWorkspace','initWorkspace','listProjectSkills','prepareSkillDirectory',@@ -90,6 +94,21 @@ export const executeDeviceRpc = async (deps: DeviceControlDeps,): Promise<unknown> => {switch (method) {+ // Remote workspace share: the host owns the gateway connections, so both+ // handlers are host-injected. A host that can't manage a second connection+ // rejects with a stable reason the server surfaces to the user.+ case 'enrollWorkspace': {+ if (!deps.enrollWorkspace)+ throw new Error('This device client does not support workspace sharing');+ return deps.enrollWorkspace(params as EnrollWorkspaceParams);+ }++ case 'unenrollWorkspace': {+ if (!deps.unenrollWorkspace)+ throw new Error('This device client does not support workspace sharing');+ return deps.unenrollWorkspace(params as UnenrollWorkspaceParams);+ }+case 'initWorkspace': {return initWorkspace(params as InitWorkspaceParams, deps);}diff --git a/packages/device-control/src/types.ts b/packages/device-control/src/types.tsindex 5fb8a72c3ea..0679db5216d 100644--- a/packages/device-control/src/types.ts+++ b/packages/device-control/src/types.ts@@ -187,10 +187,52 @@ export interface WorkspaceScanDeps {* (`defaultGetLocalFilePreview`, `defaultGetProjectFileIndex`).*/export interface DeviceControlDeps extends SkillDirectoryDeps, WorkspaceScanDeps {+ /**+ * Enroll this machine into a workspace pool: derive the workspace-scoped+ * deviceId and open a second gateway connection authenticated with `token`+ * (a short-lived workspace-device connect token minted server-side), then+ * return the derived identity so the server can register the workspace row.+ * Optional — hosts that manage a single fixed connection (e.g. a CLI daemon+ * already running in workspace mode) may omit it; the dispatcher then fails+ * the RPC with a clear reason.+ */+ enrollWorkspace?: (params: EnrollWorkspaceParams) => Promise<EnrollWorkspaceResult>;/** Read a local file preview (host-gated on desktop; disk read on CLI). */getLocalFilePreview: (params: LocalFilePreviewUrlParams) => Promise<LocalFilePreviewResult>;/** Build the project file index. */getProjectFileIndex: (params: ProjectFileIndexParams) => Promise<ProjectFileIndexResult>;/** Search project files without shipping the whole index to the caller. */searchProjectFiles: (params: ProjectFileSearchParams) => Promise<ProjectFileSearchResult>;+ /**+ * Drop this machine's enrollment in a workspace pool: close the+ * workspace-principal connection and clear any persisted auto-reconnect+ * state. Optional, mirroring {@link DeviceControlDeps.enrollWorkspace}.+ */+ unenrollWorkspace?: (params: UnenrollWorkspaceParams) => Promise<{ success: boolean }>;+}++// ─── Workspace enrollment (remote share) ───++export interface EnrollWorkspaceParams {+ /**+ * Only derive and return the workspace identity — do NOT open a share+ * connection or persist enrollment state. Lets the server check for an+ * existing enrollment (and ask the user to confirm an overwrite) before the+ * device mutates anything. Older clients ignore this flag and enroll on the+ * probe, which degrades to the pre-flag behaviour.+ */+ identityOnly?: boolean;+ /** Short-lived workspace-device connect token (carries the workspace claim). */+ token: string;+ workspaceId: string;+}++export interface EnrollWorkspaceResult {+ /** The workspace-scoped deviceId this machine derived for the pool. */+ deviceId: string;+ identitySource: 'fallback' | 'machine-id';+}++export interface UnenrollWorkspaceParams {+ workspaceId: string;}diff --git a/packages/device-identity/src/index.ts b/packages/device-identity/src/index.tsindex a6c6bf47395..71e77ff7b26 100644--- a/packages/device-identity/src/index.ts+++ b/packages/device-identity/src/index.ts@@ -31,6 +31,17 @@ export interface DeriveDeviceIdOptions {readMachineId?: () => string;}+/**+ * Namespace a stable per-install seed (stored UUID, connection id) into a+ * `fallbackId` for a specific principal. Fallback machines (no readable+ * machine id) must still derive the SAME id for the same principal across+ * calls — probe, real enroll, and restore all re-derive — and a raw seed+ * cannot be reused across principals (a workspace fallback equal to the+ * personal deviceId would collide the two pools).+ */+export const deriveScopedFallbackId = (seedId: string, principal: string): string =>+ createHash('sha256').update(`${seedId}|${principal}|${SALT}`).digest('hex').slice(0, 32);+/*** Derive a stable deviceId for `(machine, user)`.*diff --git a/packages/locales/src/default/chat.ts b/packages/locales/src/default/chat.tsindex 969de89f3f2..e77941e047b 100644--- a/packages/locales/src/default/chat.ts+++ b/packages/locales/src/default/chat.ts@@ -290,10 +290,10 @@ export default {'heteroAgent.executionTarget.noneDesc': 'No device enabled','heteroAgent.executionTarget.offline': 'Offline','heteroAgent.executionTarget.online': 'Online',- 'heteroAgent.executionTarget.personalGroup': 'Personal',+ 'heteroAgent.executionTarget.personalGroup': 'Private Devices','heteroAgent.executionTarget.sandbox': 'Cloud Sandbox','heteroAgent.executionTarget.sandboxDesc': 'Run in an ephemeral cloud sandbox',- 'heteroAgent.executionTarget.workspaceGroup': 'Workspace',+ 'heteroAgent.executionTarget.workspaceGroup': 'Workspace Devices','heteroAgent.executionTarget.downloadDesktop': 'Get Desktop App','heteroAgent.executionTarget.downloadDesktopDesc': 'Run agents with access to your computer','heteroAgent.executionTarget.downloadDesktopTitle': 'Get the desktop app',diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.tsindex 057ce3f776a..9f7ad2d8c94 100644--- a/packages/locales/src/default/setting.ts+++ b/packages/locales/src/default/setting.ts@@ -349,6 +349,7 @@ export default {'creds.view.values': 'Credential Values','creds.view.warning': 'These values are sensitive. Do not share them with others.','devices.actions.edit': 'Edit',+ 'devices.actions.refresh': 'Refresh','devices.actions.remove': 'Remove','devices.actions.removeSelected': 'Remove ({{count}})','devices.channel.connected': 'Connected {{time}}',@@ -423,9 +424,40 @@ export default {"This includes the device you're using right now — removing it disconnects your current session.",'devices.selection.selected': '{{count}} selected','devices.selection.total': '{{count}} devices',+ 'devices.share.alreadyShared': 'Shared',+ 'devices.share.badge': 'Shared to {{count}} workspaces',+ 'devices.share.confirm': 'Share',+ 'devices.share.detailLabel': 'Shared to workspaces',+ 'devices.share.done': 'Done',+ 'devices.share.empty': "You haven't joined any workspace yet.",+ 'devices.share.goToTarget': 'Go to {{name}}',+ 'devices.share.menu': 'Share to Workspace…',+ 'devices.share.modalDesc':+ 'Pick a workspace to share this device into. Members can dispatch agent runs to it while it stays online.',+ 'devices.share.modalTitle': 'Share Device to Workspace',+ 'devices.share.offlineDesc': 'The device must be online to share',+ 'devices.share.overwriteConfirmDesc':+ 'This machine is already enrolled in this workspace with {{current}} access. Continue to change it to {{next}} and link it to this device.',+ 'devices.share.overwriteConfirmOk': 'Overwrite',+ 'devices.share.overwriteConfirmTitle': 'Already in {{name}} — overwrite?',+ 'devices.share.revoke': 'Unshare',+ 'devices.share.revokeConfirmDesc':+ 'This removes the device from that workspace. Members can no longer dispatch runs to it; you can share it again anytime.',+ 'devices.share.revokeConfirmTitle': 'Unshare from {{name}}?',+ 'devices.share.selectPlaceholder': 'Select a workspace',+ 'devices.share.sharedByTag': 'Shared by {{name}}',+ 'devices.share.success': 'Device shared to {{name}}',+ 'devices.share.targetLabel': 'Share to',+ 'devices.share.viewerHint': 'Viewers cannot share devices',+ 'devices.share.visibilityTag.private': 'Private',+ 'devices.share.visibilityTag.public': 'Workspace','devices.status.offline': 'Offline','devices.status.online': 'Online','devices.title': 'My Devices',+ 'devices.visibility.publish': 'Publish to Workspace',+ 'devices.visibility.publishConfirmTitle': 'Publish this device to the workspace?',+ 'devices.visibilityTabs.private': 'Private',+ 'devices.visibilityTabs.workspace': 'Workspace','devices.workingDirectory': 'Working dir: {{path}}','downloads.desktop.cta': 'Download desktop app','downloads.desktop.desc':@@ -2700,7 +2732,10 @@ When I am ___, I need ___'workspaceSetting.devices.enrollTitle': 'Add a device','workspaceSetting.devices.heroDesc':'Enroll a shared machine — a build server or a team Mac — and every member can run agents on it: read/write files, run commands, and call system tools.',+ 'workspaceSetting.devices.heroDescPrivate':+ "Enroll a machine for your own use in this workspace — other members can't see or use it. Run agents on it: read/write files, run commands, and call system tools.",'workspaceSetting.devices.heroTitle': 'Connect your first workspace device',+ 'workspaceSetting.devices.heroTitlePrivate': 'Connect your first private device','workspaceSetting.devices.offline': 'Offline','workspaceSetting.devices.online': 'Online','workspaceSetting.devices.readonlyHint':diff --git a/packages/trpc/src/client/lambda.ts b/packages/trpc/src/client/lambda.tsindex 5d39b2b12e8..426234e777f 100644--- a/packages/trpc/src/client/lambda.ts+++ b/packages/trpc/src/client/lambda.ts@@ -156,6 +156,36 @@ export const lambdaClient = createTRPCClient<LambdaRouter>({links,});+/**+ * A lambda client pinned to an EXPLICIT workspace scope. The default+ * `lambdaClient` resolves its workspace context from the business headers slot+ * (the currently-active workspace); flows that target a workspace the user is+ * not currently in — e.g. sharing a personal device into a chosen workspace+ * from the personal settings page — pin the workspace header per client+ * instead. The override runs after the business headers merge, so it wins.+ */+export const createWorkspaceLambdaClient = (workspaceId: string) => {+ const scopedLinkOptions = {+ ...linkOptions,+ headers: async () => ({+ ...(await linkOptions.headers()),+ // Same contract as the cloud business headers slot / the server's+ // `WORKSPACE_ID_HEADER` (src/app/(backend)/webapi/_utils/workspace.ts).+ 'X-Workspace-Id': workspaceId,+ }),+ };+ return createTRPCClient<LambdaRouter>({+ links: [+ errorHandlingLink,+ splitLink({+ condition: (op) => SKIP_BATCH_PROCEDURES.has(op.path),+ false: httpBatchLink({ ...scopedLinkOptions, maxURLLength: 2083 }),+ true: httpLink(scopedLinkOptions),+ }),+ ],+ });+};+export const lambdaQuery = createTRPCReact<LambdaRouter>();export const lambdaQueryClient = lambdaQuery.createClient({ links });diff --git a/packages/types/src/agent/agencyConfig.test.ts b/packages/types/src/agent/agencyConfig.test.tsindex eb85dcdfb40..4b147fa4542 100644--- a/packages/types/src/agent/agencyConfig.test.ts+++ b/packages/types/src/agent/agencyConfig.test.ts@@ -8,6 +8,7 @@ import {getCodexReasoningEffortLevels,HETEROGENEOUS_AGENT_DEFAULT_SELECTION,pruneWorkingDirByDeviceDeletes,+ resolveAgencyConfig,resolveClaudeCodeModel,resolveClaudeCodeReasoningEffort,resolveCodexModel,@@ -379,3 +380,79 @@ describe('codex speed mode', () => {expect(buildHeteroExecArgs({ speed: 'fast', type: 'claude-code' })).toBeUndefined();});});++describe('resolveAgencyConfig', () => {+ it('returns the shared config unchanged when override is null / undefined', () => {+ const shared = { boundDeviceId: 'ws-device', executionTarget: 'device' as const };+ expect(resolveAgencyConfig(shared, undefined)).toEqual(shared);+ expect(resolveAgencyConfig(shared, null)).toEqual(shared);+ });++ it('returns the shared config unchanged when override has neither field set', () => {+ const shared = { boundDeviceId: 'ws-device', executionTarget: 'device' as const };+ expect(resolveAgencyConfig(shared, {})).toEqual(shared);+ });++ it("override's executionTarget wins over the shared value", () => {+ const shared = { boundDeviceId: 'ws-device', executionTarget: 'device' as const };+ expect(resolveAgencyConfig(shared, { executionTarget: 'sandbox' })).toEqual({+ boundDeviceId: 'ws-device',+ executionTarget: 'sandbox',+ });+ });++ it("override's boundDeviceId wins over the shared value", () => {+ const shared = { boundDeviceId: 'ws-device', executionTarget: 'device' as const };+ expect(resolveAgencyConfig(shared, { boundDeviceId: 'my-mac' })).toEqual({+ boundDeviceId: 'my-mac',+ executionTarget: 'device',+ });+ });++ it("override's local + boundDeviceId sets both together (workspace-mode `local` case)", () => {+ const shared = { boundDeviceId: 'ws-device', executionTarget: 'device' as const };+ expect(+ resolveAgencyConfig(shared, { boundDeviceId: 'my-mac', executionTarget: 'local' }),+ ).toEqual({ boundDeviceId: 'my-mac', executionTarget: 'local' });+ });++ it('does NOT touch heterogeneousProvider / workingDirByDevice — those are shared', () => {+ const shared = {+ boundDeviceId: 'ws-device',+ executionTarget: 'device' as const,+ heterogeneousProvider: { type: 'claude-code' as const },+ workingDirByDevice: { 'ws-device': '/workspace' },+ };+ const merged = resolveAgencyConfig(shared, {+ boundDeviceId: 'my-mac',+ executionTarget: 'local',+ });+ expect(merged?.heterogeneousProvider).toEqual({ type: 'claude-code' });+ expect(merged?.workingDirByDevice).toEqual({ 'ws-device': '/workspace' });+ expect(merged?.boundDeviceId).toBe('my-mac');+ expect(merged?.executionTarget).toBe('local');+ });++ it('coerces null shared config to undefined', () => {+ expect(resolveAgencyConfig(null, undefined)).toBeUndefined();+ expect(resolveAgencyConfig(undefined, undefined)).toBeUndefined();+ });++ it('an override with only executionTarget leaves the shared boundDeviceId in place', () => {+ const shared = { boundDeviceId: 'ws-device', executionTarget: 'device' as const };+ expect(resolveAgencyConfig(shared, { executionTarget: 'sandbox' })).toEqual({+ boundDeviceId: 'ws-device',+ executionTarget: 'sandbox',+ });+ });++ it('an override that unsets executionTarget by setting it to a defined value replaces the shared', () => {+ // Merge semantics: `undefined` in the override is treated as "not overriding".+ // Only *defined* values in the override win. Test both branches.+ const shared = { executionTarget: 'device' as const };+ expect(resolveAgencyConfig(shared, { executionTarget: undefined })).toEqual(shared);+ expect(resolveAgencyConfig(shared, { executionTarget: 'none' })).toEqual({+ executionTarget: 'none',+ });+ });+});diff --git a/packages/types/src/agent/agencyConfig.ts b/packages/types/src/agent/agencyConfig.tsindex 3d13c99916d..6c5d026f95e 100644--- a/packages/types/src/agent/agencyConfig.ts+++ b/packages/types/src/agent/agencyConfig.ts@@ -562,6 +562,41 @@ export interface LobeAgentAgencyConfig {workingDirByDevice?: Record<string, WorkingDirConfigValue>;}+/**+ * The workspace-shared `agencyConfig` on the agent row is one row per agent —+ * inherently a *single* execution decision for the whole workspace. Real users+ * want each member to pick their own machine independently (see+ * `UserPreference.agentDeviceOverrides`). This helper merges the shared+ * baseline with the caller's per-agent override so every code path — client+ * device switcher, server dispatch, workingDir resolution — sees one+ * consistent "effective" config.+ *+ * Rules:+ * - `override.executionTarget` wins when set; falls back to shared+ * - `override.boundDeviceId` wins when set; falls back to shared+ * - Nothing else (heterogeneousProvider, verifyRubricId, workingDirByDevice)+ * is overridable — those describe the agent, not this user's routing+ *+ * A `null`-ish `override` is a no-op — safe to call on personal agents (where+ * no override ever exists) or on paths that don't yet know about the current+ * user's preference.+ */+export const resolveAgencyConfig = (+ agencyConfig: LobeAgentAgencyConfig | null | undefined,+ override: Pick<LobeAgentAgencyConfig, 'boundDeviceId' | 'executionTarget'> | null | undefined,+): LobeAgentAgencyConfig | undefined => {+ const base = agencyConfig ?? undefined;+ if (!override) return base;+ const hasTarget = override.executionTarget !== undefined;+ const hasDevice = override.boundDeviceId !== undefined;+ if (!hasTarget && !hasDevice) return base;+ return {+ ...base,+ ...(hasTarget ? { executionTarget: override.executionTarget } : {}),+ ...(hasDevice ? { boundDeviceId: override.boundDeviceId } : {}),+ };+};+/*** Apply "undefined means delete" semantics to a `workingDirByDevice` patch.*diff --git a/packages/types/src/device.ts b/packages/types/src/device.tsindex 49828a927a6..9b412238e96 100644--- a/packages/types/src/device.ts+++ b/packages/types/src/device.ts@@ -206,6 +206,29 @@ export interface DeviceChannel {*/export type DeviceScope = 'personal' | 'workspace';+/**+ * Visibility of a WORKSPACE-scoped device (same contract as agents/docs/files):+ * - `public` — shared with every workspace member (the default pool).+ * - `private` — enrolled for the enrolling member only; other members never+ * see it in lists, pickers, or agent runs.+ * Personal-scope devices have no visibility dimension (`null` on the list item).+ */+export type DeviceVisibility = 'private' | 'public';++/**+ * One workspace a PERSONAL device was shared into from the personal device+ * list. `deviceId` is the workspace-scoped twin (a different hash from the+ * personal deviceId, linked back via `devices.shared_from_device_id`), which+ * the revoke path passes to `device.removeWorkspaceDevice` under that+ * workspace's scope.+ */+export interface DeviceWorkspaceShare {+ deviceId: string;+ visibility: DeviceVisibility;+ workspaceId: string;+ workspaceName: string | null;+}+/*** A device row as returned by the `device.listDevices` query — either a* registered device or an online-only "ghost" (connected but not yet persisted).@@ -250,6 +273,24 @@ export interface DeviceListItem {registered: boolean;/** Personal (own) vs. workspace-enrolled device — drives picker grouping. */scope: DeviceScope;+ /**+ * Workspace rows only: true when this enrollment was shared from a member's+ * personal device (`shared_from_device_id` set) rather than enrolled directly+ * on the machine — drives the "Shared by {name}" tag in the workspace list.+ */+ sharedFromPersonal?: boolean;+ /**+ * Personal rows only: the workspaces this machine was shared into from the+ * personal device list. `undefined` for workspace rows, ghosts, and+ * never-shared machines.+ */+ sharedWorkspaces?: DeviceWorkspaceShare[];+ /**+ * Workspace-scope rows only: private (enroller-only) vs public (shared pool).+ * `null` for personal rows and ghost rows. Rows another member enrolled as+ * private are filtered out server-side and never reach this list.+ */+ visibility: DeviceVisibility | null;workingDirs: WorkingDirEntry[];}diff --git a/src/business/client/hooks/useWorkspaceOptionLabel.tsx b/src/business/client/hooks/useWorkspaceOptionLabel.tsxnew file mode 100644index 00000000000..87747273079--- /dev/null+++ b/src/business/client/hooks/useWorkspaceOptionLabel.tsx@@ -0,0 +1,25 @@+'use client';++import { DEFAULT_AVATAR } from '@lobechat/const';+import { Avatar, Flexbox, Text } from '@lobehub/ui';+import { type ReactNode, useCallback } from 'react';++import type { WorkspaceListItem } from './useActiveWorkspace';++/**+ * Renders the label content (avatar + name) for a workspace entry inside a+ * Select option. Business builds can override this to append extra info+ * after the name.+ */+export const useWorkspaceOptionLabel = (): ((workspace: WorkspaceListItem) => ReactNode) =>+ useCallback(+ (workspace: WorkspaceListItem) => (+ <Flexbox horizontal align={'center'} gap={10} style={{ flex: 1, minWidth: 0 }}>+ <Avatar avatar={workspace.avatar || DEFAULT_AVATAR} shape={'square'} size={24} />+ <Text ellipsis style={{ flex: '0 1 auto', minWidth: 0 }}>+ {workspace.name}+ </Text>+ </Flexbox>+ ),+ [],+ );diff --git a/src/features/Billboard/Carousel.tsx b/src/features/Billboard/Carousel.tsxindex 77236072b10..644ed094071 100644--- a/src/features/Billboard/Carousel.tsx+++ b/src/features/Billboard/Carousel.tsx@@ -61,9 +61,22 @@ const styles = createStaticStyles(({ css }) => ({`,closeButton: css`position: absolute;- z-index: 2;+ z-index: 10;inset-block-start: 8px;inset-inline-end: 8px;++ /* Sits over the cover image (140px band) — give it its own opaque surface so+ the icon reads on any image, and lift z-index above the carousel dots /+ slick internals. */+ color: #fff;++ background: rgb(0 0 0 / 45%);+ backdrop-filter: blur(4px);++ &:hover {+ color: #fff;+ background: rgb(0 0 0 / 60%);+ }`,description: css`overflow: hidden;diff --git a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsxindex a193b48c45a..88fda0ed6bd 100644--- a/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx+++ b/src/features/ChatInput/ControlBar/HeteroDeviceSwitcher.tsx@@ -4,6 +4,7 @@ import { SiApple, SiLinux } from '@icons-pack/react-simple-icons';import { isDesktop } from '@lobechat/const';import { isRemoteHeterogeneousType } from '@lobechat/heterogeneous-agents';import type { DeviceExecutionTarget } from '@lobechat/types';+import { resolveAgencyConfig } from '@lobechat/types';import { Microsoft } from '@lobehub/icons';import { Flexbox, Icon, Popover, Tooltip } from '@lobehub/ui';import { createStaticStyles, cssVar, cx } from 'antd-style';@@ -20,7 +21,7 @@ import {SettingsIcon,SparklesIcon,} from 'lucide-react';-import { memo, type ReactNode, useCallback, useState } from 'react';+import { memo, type ReactNode, useCallback, useEffect, useState } from 'react';import { useTranslation } from 'react-i18next';import { useSelectExecutionTarget } from '@/features/ChatInput/hooks/useSelectExecutionTarget';@@ -31,6 +32,8 @@ import { lambdaQuery } from '@/libs/trpc/client';import { useAgentStore } from '@/store/agent';import { agentByIdSelectors } from '@/store/agent/selectors';import { useElectronStore } from '@/store/electron';+import { useUserStore } from '@/store/user';+import { workspaceUserSettingsSelectors } from '@/store/user/selectors';const styles = createStaticStyles(({ css }) => ({button: css`@@ -342,13 +345,23 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {const [open, setOpen] = useState(false);const navigate = useWorkspaceAwareNavigate();- const agencyConfig = useAgentStore(agentByIdSelectors.getAgencyConfigById(agentId));- // Workspace-scoped agent: every workspace member runs through one device pool,- // so personal devices (only reachable by their registering user) must be- // suppressed from the picker. The server enforces the same rule on writes.+ const sharedAgencyConfig = useAgentStore(agentByIdSelectors.getAgencyConfigById(agentId));const agentWorkspaceId = useAgentStore((s) => s.agentMap[agentId]?.workspaceId);const isWorkspaceAgent = Boolean(agentWorkspaceId);+ // The current caller's per-agent override (LOBE-11689). Only ever non-empty+ // for workspace agents in practice — personal agents already have a single+ // owner whose choice is the shared config. Comes from the+ // `workspaceUserSettings` slice (backed by `workspace_user_settings.preference`),+ // which the picker eagerly fetches on mount so what the picker shows and+ // what dispatch will actually do always agree. Merged over the shared config+ // via `resolveAgencyConfig`.+ const { isLoading: isWorkspacePreferenceLoading } = useUserStore(+ (s) => s.useFetchWorkspaceUserPreference,+ )();+ const override = useUserStore(workspaceUserSettingsSelectors.agentDeviceOverrideById(agentId));+ const agencyConfig = resolveAgencyConfig(sharedAgencyConfig, override);+const heteroType = agencyConfig?.heterogeneousProvider?.type;const boundDeviceId = agencyConfig?.boundDeviceId;@@ -369,15 +382,19 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {const gatewayDeviceInfo = useElectronStore((s) => s.gatewayDeviceInfo);const currentDeviceId = isDesktop ? gatewayDeviceInfo?.deviceId : undefined;- // Effective target: shared with server dispatch. In particular, a hetero- // desktop "local" selection that carries this desktop's boundDeviceId becomes- // a device target when the same agent is opened from web.+ // Effective target: `resolveExecutionTarget` runs over the *merged*+ // `agencyConfig` (shared + this user's LOBE-11689 override), so what the+ // chip shows and what the server dispatches always agree.+ //+ // `workspaceScoped: false`: with per-user overrides, workspace agents can+ // resolve `local` again — the pre-11689 coercion was only there because+ // sharing the choice across members made a personal-scope `local` pick+ // dangerous.const deviceRoutingAvailable = useIsGatewayModeEnabled(agentId);const executionTarget = resolveExecutionTarget(agencyConfig, {clientExecutionAvailable: isDesktop,deviceRoutingAvailable,isHetero,- workspaceScoped: isWorkspaceAgent,});const selectExecutionTarget = useSelectExecutionTarget(agentId);@@ -389,27 +406,79 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {[selectExecutionTarget],);+ // Auto-default to THIS desktop's local execution on first open, for both+ // personal and workspace agents (workspace behaviour used to be a hostname+ // lookup against the workspace device pool — see LOBE-11647 — but with+ // per-user overrides that lookup is unnecessary: `useSelectExecutionTarget`+ // resolves `'local'` to this desktop's personal gateway `deviceId` and, for+ // a workspace agent, persists it into `users.preference.agentDeviceOverrides`,+ // so it never touches other members' choices).+ //+ // Fires only when the effective (merged) target and bound device are both+ // unset — an explicit prior selection, mine or (for personal) shared,+ // is preserved. Waits for the workspace preference fetch to settle first:+ // before it returns, an existing per-user override looks unset and the+ // default would clobber it.+ useEffect(() => {+ if (!isDesktop) return;+ if (isWorkspacePreferenceLoading) return;+ if (agencyConfig?.executionTarget !== undefined) return;+ if (agencyConfig?.boundDeviceId !== undefined) return;+ if (!currentDeviceId) return;+ void selectExecutionTarget('local');+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [+ agencyConfig?.executionTarget,+ agencyConfig?.boundDeviceId,+ currentDeviceId,+ isWorkspacePreferenceLoading,+ ]);+// Don't render for remote hetero agents — they use RemoteAgentConfigCard in profile.if (heteroType && isRemoteHeterogeneousType(heteroType)) return null;const boundDevice =executionTarget === 'device' ? devices?.find((d) => d.deviceId === boundDeviceId) : undefined;- // Workspace agents drop the personal section entirely — only workspace- // devices are reachable to every member, so no one should see (let alone- // pick) a teammate's personal machine.- const personalDevices = isWorkspaceAgent+ // The picker splits by whether the caller is inside a workspace agent:+ //+ // - **Personal agent** — flat list of the caller's personal-scope devices+ // only; there is no workspace context so no group split makes sense.+ // Never show `scope: 'workspace'` rows here (they belong to a workspace+ // the personal-mode agent has nothing to do with).+ //+ // - **Workspace agent** — split into `Private` and `Workspace` groups by+ // workspace-scope visibility, and drop `scope: 'personal'` entirely.+ // Personal devices are the caller's account-tier machines: they belong+ // to a different identity than the workspace agent runs under+ // (per-user `sha256(machineUUID + userId)` vs+ // `sha256(machineUUID + workspace:<id>)`), so binding one to a workspace+ // agent conflates identities. The `local` chip already covers "run on my+ // machine" as a per-user override (LOBE-11689) without needing to expose+ // the raw personal deviceId.+ //+ // Naming — Personal is reserved for the account-tier concept; workspace+ // groupings say Private/Workspace (私人/工作区) instead.+ const privateDevices = isWorkspaceAgent+ ? (devices ?? []).filter((d) => d.scope === 'workspace' && d.visibility === 'private')+ : [];+ const workspaceDevices = isWorkspaceAgent+ ? (devices ?? []).filter((d) => d.scope === 'workspace' && d.visibility !== 'private')+ : [];+ const personalOnlyDevices = isWorkspaceAgent? []: (devices ?? []).filter((d) => d.scope === 'personal');- const workspaceDevices = (devices ?? []).filter((d) => d.scope === 'workspace');- // Only split into Personal / Workspace sections once a workspace device exists;- // otherwise (personal mode / OSS) the list stays flat, exactly as before.- const showDeviceGroups = workspaceDevices.length > 0;+ // Workspace agents always render the Private / Workspace group split (even+ // when one side is empty — the labels tell the user which pool they're+ // looking at). Personal mode stays flat.+ const showDeviceGroups = isWorkspaceAgent;// Empty-state accounting must use the rows the CURRENT agent can actually// pick (post scope filtering) — a workspace agent whose members only have// personal devices would otherwise render neither devices nor an empty state.- const deviceRows = [...personalDevices, ...workspaceDevices];+ const deviceRows = isWorkspaceAgent+ ? [...privateDevices, ...workspaceDevices]+ : [...personalOnlyDevices];const hasNoDevices = deviceRows.length === 0;// On web with no device, the prominent download card below replaces the small// header link — avoid showing the same CTA twice. Workspace agents get the@@ -455,22 +524,23 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {</>);- const renderDeviceRow = (d: NonNullable<typeof devices>[number]) => (- <OptionRow- active={isActive('device', d.deviceId)}- disabled={!d.online}- icon={getDeviceIcon(d.platform)}- key={d.deviceId}- label={d.friendlyName || d.hostname || d.deviceId}- tag={d.deviceId === currentDeviceId ? t('heteroAgent.executionTarget.gateway') : undefined}- desc={- d.deviceId === currentDeviceId- ? t('heteroAgent.executionTarget.gatewayDesc')- : renderDeviceStatus(d)- }- onClick={() => void handleSelect('device', d.deviceId)}- />- );+ const renderDeviceRow = (d: NonNullable<typeof devices>[number]) => {+ const isCurrentMachine = d.deviceId === currentDeviceId;+ return (+ <OptionRow+ active={isActive('device', d.deviceId)}+ disabled={!d.online}+ icon={getDeviceIcon(d.platform)}+ key={d.deviceId}+ label={d.friendlyName || d.hostname || d.deviceId}+ tag={isCurrentMachine ? t('heteroAgent.executionTarget.gateway') : undefined}+ desc={+ isCurrentMachine ? t('heteroAgent.executionTarget.gatewayDesc') : renderDeviceStatus(d)+ }+ onClick={() => void handleSelect('device', d.deviceId)}+ />+ );+ };const content = (<Flexbox gap={6} style={{ maxWidth: 320, minWidth: 280 }}>@@ -525,10 +595,12 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {onClick={() => void handleSelect('auto')}/>)}- {/* `local` pins this machine's PERSONAL deviceId, which a workspace agent- can never bind (the server only accepts workspace-enrolled device ids),- so hide it there — same policy as hiding personal devices above. */}- {isDesktop && !isWorkspaceAgent ? (+ {/* `local` pins this desktop's personal `deviceId`. Available in both+ personal and workspace modes now (LOBE-11689): a workspace-agent+ `local` pick lands in `users.preference.agentDeviceOverrides` — my+ per-user override — so it never binds the workspace-shared+ `agencyConfig` or coerces any other member's dispatch. */}+ {isDesktop ? (<OptionRowactive={isActive('local')}desc={t('heteroAgent.executionTarget.localDesc')}@@ -549,21 +621,25 @@ const HeteroDeviceSwitcher = memo<HeteroDeviceSwitcherProps>(({ agentId }) => {<div className={styles.deviceList}>{showDeviceGroups ? (<>- {personalDevices.length > 0 ? (+ {privateDevices.length > 0 ? (<><div className={styles.groupLabel}>{t('heteroAgent.executionTarget.personalGroup')}</div>- {personalDevices.map((d) => renderDeviceRow(d))}+ {privateDevices.map((d) => renderDeviceRow(d))}+ </>+ ) : null}+ {workspaceDevices.length > 0 ? (+ <>+ <div className={styles.groupLabel}>+ {t('heteroAgent.executionTarget.workspaceGroup')}+ </div>+ {workspaceDevices.map((d) => renderDeviceRow(d))}</>) : null}- <div className={styles.groupLabel}>- {t('heteroAgent.executionTarget.workspaceGroup')}- </div>- {workspaceDevices.map((d) => renderDeviceRow(d))}</>) : (- personalDevices.map((d) => renderDeviceRow(d))+ personalOnlyDevices.map((d) => renderDeviceRow(d)))}</div>) : null}diff --git a/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts b/src/features/ChatInput/hooks/useSelectExecutionTarget.test.tsindex 38f1b977e96..fe9363609e0 100644--- a/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts+++ b/src/features/ChatInput/hooks/useSelectExecutionTarget.test.ts@@ -21,6 +21,12 @@ const testState = vi.hoisted(() => ({},getDeviceInfo: vi.fn(),isDesktop: false,+ user: {+ updateWorkspaceUserPreference: vi.fn(),+ workspaceUserPreference: {} as {+ agentDeviceOverrides?: Record<string, { boundDeviceId?: string; executionTarget?: string }>;+ },+ },}));vi.mock('@lobechat/const', () => ({@@ -51,6 +57,10 @@ vi.mock('@/store/electron', () => ({selector(testState.electron),}));+vi.mock('@/store/user', () => ({+ useUserStore: (selector: (s: typeof testState.user) => unknown) => selector(testState.user),+}));+describe('useSelectExecutionTarget', () => {beforeEach(() => {testState.agent.agencyConfig = undefined;@@ -60,96 +70,143 @@ describe('useSelectExecutionTarget', () => {testState.electron.gatewayDeviceInfo = undefined;testState.getDeviceInfo = vi.fn();testState.isDesktop = false;+ testState.user.workspaceUserPreference = {};+ testState.user.updateWorkspaceUserPreference = vi.fn();});- it('persists the target as-is when switching to sandbox, keeping any existing boundDeviceId', async () => {- testState.agent.agencyConfig = { boundDeviceId: 'device-1', executionTarget: 'local' };- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ describe('personal agent — writes to the shared agencyConfig', () => {+ it('persists the target as-is when switching to sandbox, keeping any existing boundDeviceId', async () => {+ testState.agent.agencyConfig = { boundDeviceId: 'device-1', executionTarget: 'local' };+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('sandbox');+ await result.current('sandbox');- expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {- agencyConfig: { boundDeviceId: 'device-1', executionTarget: 'sandbox' },+ expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {+ agencyConfig: { boundDeviceId: 'device-1', executionTarget: 'sandbox' },+ });+ expect(testState.user.updateWorkspaceUserPreference).not.toHaveBeenCalled();});- });- it('pins the given deviceId when switching to a specific device', async () => {- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ it('pins the given deviceId when switching to a specific device', async () => {+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('device', 'device-2');+ await result.current('device', 'device-2');- expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {- agencyConfig: { boundDeviceId: 'device-2', executionTarget: 'device' },+ expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {+ agencyConfig: { boundDeviceId: 'device-2', executionTarget: 'device' },+ });});- });- it('reuses this desktop machine gateway deviceId when switching to local', async () => {- testState.isDesktop = true;- testState.electron.gatewayDeviceInfo = { deviceId: 'this-machine' };- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ it("stores 'local' verbatim (not pre-resolved to 'device') to preserve the in-process IPC path", async () => {+ testState.isDesktop = true;+ testState.electron.gatewayDeviceInfo = { deviceId: 'this-machine' };+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('local');+ await result.current('local');- expect(testState.getDeviceInfo).not.toHaveBeenCalled();- expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {- agencyConfig: { boundDeviceId: 'this-machine', executionTarget: 'local' },+ expect(testState.getDeviceInfo).not.toHaveBeenCalled();+ expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {+ agencyConfig: { boundDeviceId: 'this-machine', executionTarget: 'local' },+ });});- });- it('falls back to the gateway connection service when no gateway deviceId is cached yet', async () => {- testState.isDesktop = true;- testState.getDeviceInfo.mockResolvedValue({ deviceId: 'resolved-device' });- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ it('falls back to the gateway connection service when no gateway deviceId is cached yet', async () => {+ testState.isDesktop = true;+ testState.getDeviceInfo.mockResolvedValue({ deviceId: 'resolved-device' });+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('local');+ await result.current('local');- expect(testState.getDeviceInfo).toHaveBeenCalled();- expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {- agencyConfig: { boundDeviceId: 'resolved-device', executionTarget: 'local' },+ expect(testState.getDeviceInfo).toHaveBeenCalled();+ expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {+ agencyConfig: { boundDeviceId: 'resolved-device', executionTarget: 'local' },+ });});- });- it('keeps the previous boundDeviceId when the local device cannot be resolved for a non-hetero agent', async () => {- testState.agent.agencyConfig = { boundDeviceId: 'stale-device', executionTarget: 'sandbox' };- testState.getDeviceInfo.mockRejectedValue(new Error('no gateway'));- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ it('keeps the previous boundDeviceId when the local device cannot be resolved for a non-hetero agent', async () => {+ testState.agent.agencyConfig = { boundDeviceId: 'stale-device', executionTarget: 'sandbox' };+ testState.getDeviceInfo.mockRejectedValue(new Error('no gateway'));+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('local');+ await result.current('local');- expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {- agencyConfig: { boundDeviceId: 'stale-device', executionTarget: 'local' },+ expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {+ agencyConfig: { boundDeviceId: 'stale-device', executionTarget: 'local' },+ });});- });- it('does not switch a heterogeneous agent to local when no device can be resolved', async () => {- testState.agent.isHetero = true;- testState.getDeviceInfo.mockRejectedValue(new Error('no gateway'));- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ it('does not switch a heterogeneous agent to local when no device can be resolved', async () => {+ testState.agent.isHetero = true;+ testState.getDeviceInfo.mockRejectedValue(new Error('no gateway'));+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('local');+ await result.current('local');- expect(testState.agent.updateAgentConfigById).not.toHaveBeenCalled();+ expect(testState.agent.updateAgentConfigById).not.toHaveBeenCalled();+ expect(testState.user.updateWorkspaceUserPreference).not.toHaveBeenCalled();+ });});- it('refuses local for a workspace agent — its personal deviceId can never pass the workspace device guard', async () => {- testState.isDesktop = true;- testState.electron.gatewayDeviceInfo = { deviceId: 'this-machine' };- testState.agent.agentMap = { 'agent-id': { workspaceId: 'ws-1' } };- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ describe('workspace agent — writes to workspace_user_settings.preference.agentDeviceOverrides (LOBE-11689)', () => {+ beforeEach(() => {+ testState.agent.agentMap = { 'agent-id': { workspaceId: 'ws-1' } };+ });- await result.current('local');+ it('routes a workspace device pick into the workspace-scoped caller preference, never the shared config', async () => {+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- expect(testState.agent.updateAgentConfigById).not.toHaveBeenCalled();- });+ await result.current('device', 'ws-device-1');++ expect(testState.user.updateWorkspaceUserPreference).toHaveBeenCalledWith({+ agentDeviceOverrides: {+ 'agent-id': { boundDeviceId: 'ws-device-1', executionTarget: 'device' },+ },+ });+ expect(testState.agent.updateAgentConfigById).not.toHaveBeenCalled();+ });++ it("accepts 'local' for a workspace agent and stores it in the workspace-scoped preference", async () => {+ testState.isDesktop = true;+ testState.electron.gatewayDeviceInfo = { deviceId: 'this-machine' };+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));++ await result.current('local');++ expect(testState.user.updateWorkspaceUserPreference).toHaveBeenCalledWith({+ agentDeviceOverrides: {+ 'agent-id': { boundDeviceId: 'this-machine', executionTarget: 'local' },+ },+ });+ expect(testState.agent.updateAgentConfigById).not.toHaveBeenCalled();+ });++ it('preserves other agents overrides in the same workspace when writing this one', async () => {+ testState.user.workspaceUserPreference = {+ agentDeviceOverrides: {+ 'other-agent': { boundDeviceId: 'other-device', executionTarget: 'device' },+ },+ };+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));++ await result.current('sandbox');++ expect(testState.user.updateWorkspaceUserPreference).toHaveBeenCalledWith({+ agentDeviceOverrides: {+ 'other-agent': { boundDeviceId: 'other-device', executionTarget: 'device' },+ 'agent-id': { executionTarget: 'sandbox' },+ },+ });+ });- it('still persists a device pick for a workspace agent', async () => {- testState.agent.agentMap = { 'agent-id': { workspaceId: 'ws-1' } };- const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));+ it('drops boundDeviceId when it cannot be resolved (e.g. web caller picks local)', async () => {+ testState.isDesktop = false;+ const { result } = renderHook(() => useSelectExecutionTarget('agent-id'));- await result.current('device', 'ws-device-1');+ await result.current('sandbox');- expect(testState.agent.updateAgentConfigById).toHaveBeenCalledWith('agent-id', {- agencyConfig: { boundDeviceId: 'ws-device-1', executionTarget: 'device' },+ expect(testState.user.updateWorkspaceUserPreference).toHaveBeenCalledWith({+ agentDeviceOverrides: { 'agent-id': { executionTarget: 'sandbox' } },+ });});});});diff --git a/src/features/ChatInput/hooks/useSelectExecutionTarget.ts b/src/features/ChatInput/hooks/useSelectExecutionTarget.tsindex 7d0ebe4442b..9684964b7f4 100644--- a/src/features/ChatInput/hooks/useSelectExecutionTarget.ts+++ b/src/features/ChatInput/hooks/useSelectExecutionTarget.ts@@ -8,6 +8,7 @@ import { gatewayConnectionService } from '@/services/electron/gatewayConnection'import { useAgentStore } from '@/store/agent';import { agentByIdSelectors } from '@/store/agent/selectors';import { useElectronStore } from '@/store/electron';+import { useUserStore } from '@/store/user';/*** Persist an execution-target selection for an agent. Shared by the device@@ -16,6 +17,26 @@ import { useElectronStore } from '@/store/electron';** `executionTarget` is the single source of truth — the server tool gate +* client `getRuntimeModeById` derive `runtimeMode` from it.+ *+ * Storage split (LOBE-11689):+ * - **Personal agent** — writes go straight into the shared+ * `agents.agencyConfig` (there's only ever one owner, so there's nothing to+ * isolate).+ * - **Workspace agent** — writes go into+ * `workspace_user_settings.preference.agentDeviceOverrides[agentId]`+ * (per-user per-workspace) so each member's Cloud Sandbox / workspace-device+ * / this-machine choice stays independent. The shared `agents.agencyConfig`+ * is left as-is, becoming the group-wide fallback for members who haven't+ * chosen anything yet. Reads / writes are cached through the+ * `workspaceUserSettings` slice of the user store, keyed on the active+ * workspaceId.+ *+ * `local` is stored verbatim (`{ executionTarget: 'local', boundDeviceId: <me> }`)+ * so both desktop dispatch (in-process IPC — the fast path) and web dispatch+ * (server-side coercion to `device` via the existing gateway rule) keep their+ * respective semantics. That's why the old+ * `if (target === 'local' && isWorkspaceAgent) return;` guard is gone: with+ * per-user overrides my choice can't hurt other members.*/export const useSelectExecutionTarget = (agentId: string) => {const agencyConfig = useAgentStore(agentByIdSelectors.getAgencyConfigById(agentId));@@ -23,6 +44,12 @@ export const useSelectExecutionTarget = (agentId: string) => {const isWorkspaceAgent = useAgentStore((s) => Boolean(s.agentMap[agentId]?.workspaceId));const updateAgentConfigById = useAgentStore((s) => s.updateAgentConfigById);+ const updateWorkspaceUserPreference = useUserStore((s) => s.updateWorkspaceUserPreference);+ // Latest known bucket so the write below can splice a single agentId leaf+ // without stomping any of the caller's other agent overrides in this+ // workspace. Optimistic merge inside the action keeps this in sync.+ const workspaceUserPreference = useUserStore((s) => s.workspaceUserPreference);+// The current machine's own gateway deviceId (desktop only); used to pin a// `local` selection to this device.const gatewayDeviceInfo = useElectronStore((s) => s.gatewayDeviceInfo);@@ -30,13 +57,6 @@ export const useSelectExecutionTarget = (agentId: string) => {return useCallback(async (target: DeviceExecutionTarget, deviceId?: string) => {- // A workspace agent may only bind devices enrolled in the same workspace- // (server-enforced by `assertWorkspaceDeviceBinding`). `local` pins this- // machine's PERSONAL gateway deviceId — a different identity from its- // workspace enrollment — so the write would always be rejected; refuse it- // here instead of letting the save silently fail.- if (target === 'local' && isWorkspaceAgent) return;-const boundDeviceId = agencyConfig?.boundDeviceId;let nextBoundDeviceId = target === 'device' ? deviceId : boundDeviceId;if (target === 'local') {@@ -53,6 +73,32 @@ export const useSelectExecutionTarget = (agentId: string) => {if (isHetero && !nextBoundDeviceId) return;}+ // Store the intent verbatim (`local` stays `local`), not a+ // pre-resolved `device`. Two reasons:+ //+ // 1. Semantic parity with personal agents. `local` and `device` are+ // distinct at dispatch time — `local` runs in-process on the+ // desktop, `device` tunnels through the gateway (even when the+ // bound device *is* this desktop). Persisting `device` would rob a+ // workspace-mode `local` pick of the faster in-process path when+ // the run happens on this desktop, and change personal-agent+ // behaviour (which used to store `local` verbatim).+ // 2. On surfaces without a client (web / server dispatch),+ // `resolveExecutionTarget` already coerces a stored `local` ++ // `boundDeviceId` to `device` when a gateway is available, so the+ // server-side dispatch path Just Works — no need to pre-coerce here.+ if (isWorkspaceAgent) {+ const nextOverrides = {+ ...workspaceUserPreference.agentDeviceOverrides,+ [agentId]: {+ executionTarget: target,+ ...(nextBoundDeviceId ? { boundDeviceId: nextBoundDeviceId } : {}),+ },+ };+ await updateWorkspaceUserPreference({ agentDeviceOverrides: nextOverrides });+ return;+ }+await updateAgentConfigById(agentId, {agencyConfig: {...agencyConfig,@@ -61,6 +107,15 @@ export const useSelectExecutionTarget = (agentId: string) => {},});},- [agentId, agencyConfig, currentDeviceId, isHetero, isWorkspaceAgent, updateAgentConfigById],+ [+ agentId,+ agencyConfig,+ currentDeviceId,+ isHetero,+ isWorkspaceAgent,+ updateAgentConfigById,+ updateWorkspaceUserPreference,+ workspaceUserPreference,+ ],);};diff --git a/src/features/DeviceManager/DeviceConnectModal.tsx b/src/features/DeviceManager/DeviceConnectModal.tsxindex 920d71b4193..4b054bff491 100644--- a/src/features/DeviceManager/DeviceConnectModal.tsx+++ b/src/features/DeviceManager/DeviceConnectModal.tsx@@ -1,7 +1,7 @@'use client';import { DOWNLOAD_URL } from '@lobechat/const';-import type { DeviceScope } from '@lobechat/types';+import type { DeviceScope, DeviceVisibility } from '@lobechat/types';import { CopyButton, Flexbox, Icon, Text } from '@lobehub/ui';import { Button, Tabs } from '@lobehub/ui/base-ui';import { createStaticStyles, cssVar } from 'antd-style';@@ -100,6 +100,13 @@ interface DeviceConnectModalProps {onClose: () => void;open: boolean;scope: DeviceScope;+ /**+ * Workspace scope only: which pool the wizard enrolls into. The CLI enrolls+ * private (enroller-only) by default, so 'public' appends `--public` to the+ * connect command to register into the shared pool (the settings page passes+ * the active tab here).+ */+ visibility?: DeviceVisibility;}/**@@ -107,128 +114,133 @@ interface DeviceConnectModalProps {* - Personal: Desktop (auto-connect) + CLI tabs.* - Workspace: CLI-only (shared machines are headless), and the connect step* carries the `--workspace <id>` flag that routes the device to the workspace- * principal. Owner-only on the server.+ * principal (plus `--public` when enrolling from the Workspace tab — the CLI+ * defaults to a private enrollment). Member+ on the server.*/-const DeviceConnectModal = memo<DeviceConnectModalProps>(({ onClose, open, initialTab, scope }) => {- const { t } = useTranslation('setting');- const workspaceId = useActiveWorkspaceId();- const isWorkspace = scope === 'workspace';-- const [active, setActive] = useState<'cli' | 'desktop'>(initialTab ?? 'desktop');- useEffect(() => {- if (open) setActive(isWorkspace ? 'cli' : (initialTab ?? 'desktop'));- }, [open, initialTab, isWorkspace]);-- const connectCommand = isWorkspace- ? `lh connect --workspace ${workspaceId ?? '<workspace-id>'} --daemon`- : 'lh connect --daemon';-- const cliSteps = (- <Flexbox>- <Step- desc={t('devices.connectWizard.cli.installDesc')}- index={1}- title={t('devices.connectWizard.cli.installTitle')}- >- <CommandLine command={'npm install -g @lobehub/cli'} />- </Step>- <Step- desc={t('devices.connectWizard.cli.loginDesc')}- index={2}- title={t('devices.connectWizard.cli.loginTitle')}- >- <CommandLine command={'lh login'} />- </Step>- <Step- last- index={3}- title={t('devices.connectWizard.cli.connectTitle')}- desc={- isWorkspace- ? t('workspaceSetting.devices.enrollDesc')- : t('devices.connectWizard.cli.connectDesc')- }+const DeviceConnectModal = memo<DeviceConnectModalProps>(+ ({ onClose, open, initialTab, scope, visibility }) => {+ const { t } = useTranslation('setting');+ const workspaceId = useActiveWorkspaceId();+ const isWorkspace = scope === 'workspace';++ const [active, setActive] = useState<'cli' | 'desktop'>(initialTab ?? 'desktop');+ useEffect(() => {+ if (open) setActive(isWorkspace ? 'cli' : (initialTab ?? 'desktop'));+ }, [open, initialTab, isWorkspace]);++ const connectCommand = isWorkspace+ ? `lh connect --workspace ${workspaceId ?? '<workspace-id>'}${+ visibility === 'public' ? ' --public' : ''+ } --daemon`+ : 'lh connect --daemon';++ const cliSteps = (+ <Flexbox>+ <Step+ desc={t('devices.connectWizard.cli.installDesc')}+ index={1}+ title={t('devices.connectWizard.cli.installTitle')}+ >+ <CommandLine command={'npm install -g @lobehub/cli'} />+ </Step>+ <Step+ desc={t('devices.connectWizard.cli.loginDesc')}+ index={2}+ title={t('devices.connectWizard.cli.loginTitle')}+ >+ <CommandLine command={'lh login'} />+ </Step>+ <Step+ last+ index={3}+ title={t('devices.connectWizard.cli.connectTitle')}+ desc={+ isWorkspace+ ? t('workspaceSetting.devices.enrollDesc')+ : t('devices.connectWizard.cli.connectDesc')+ }+ >+ <CommandLine command={connectCommand} />+ </Step>+ </Flexbox>+ );++ return (+ <ImperativeModal+ footer={null}+ open={open}+ title={t('devices.connectWizard.title')}+ width={560}+ onCancel={onClose}>- <CommandLine command={connectCommand} />- </Step>- </Flexbox>- );-- return (- <ImperativeModal- footer={null}- open={open}- title={t('devices.connectWizard.title')}- width={560}- onCancel={onClose}- >- <Flexbox gap={20}>- <Text color={cssVar.colorTextTertiary}>- {isWorkspace ? t('workspaceSetting.devices.desc') : t('devices.connectWizard.subtitle')}- </Text>-- {isWorkspace ? null : (- <Tabs- activeKey={active}- items={[- {- icon: <Icon icon={MonitorDownIcon} />,- key: 'desktop',- label: t('devices.connectWizard.method.desktop'),- },- {- icon: <Icon icon={TerminalIcon} />,- key: 'cli',- label: t('devices.connectWizard.method.cli'),- },- ]}- styles={{- list: { display: 'flex', width: '100%' },- tab: { flex: 1 },- }}- onChange={(key) => setActive(key as 'cli' | 'desktop')}- />- )}-- {!isWorkspace && active === 'desktop' ? (- <Flexbox>- <Step- desc={t('devices.connectWizard.desktop.step1Desc')}- index={1}- title={t('devices.connectWizard.desktop.step1')}- >- <a href={DOWNLOAD_URL.default} rel="noreferrer" target="_blank">- <Button icon={<Icon icon={DownloadIcon} />} type={'primary'}>- {t('devices.connectWizard.desktop.downloadLink')}- </Button>- </a>- </Step>- <Step- desc={t('devices.connectWizard.desktop.step2Desc')}- index={2}- title={t('devices.connectWizard.desktop.step2')}- />- <Step- last- desc={t('devices.connectWizard.desktop.step3Desc')}- index={3}- title={t('devices.connectWizard.desktop.step3')}+ <Flexbox gap={20}>+ <Text color={cssVar.colorTextTertiary}>+ {isWorkspace ? t('workspaceSetting.devices.desc') : t('devices.connectWizard.subtitle')}+ </Text>++ {isWorkspace ? null : (+ <Tabs+ activeKey={active}+ items={[+ {+ icon: <Icon icon={MonitorDownIcon} />,+ key: 'desktop',+ label: t('devices.connectWizard.method.desktop'),+ },+ {+ icon: <Icon icon={TerminalIcon} />,+ key: 'cli',+ label: t('devices.connectWizard.method.cli'),+ },+ ]}+ styles={{+ list: { display: 'flex', width: '100%' },+ tab: { flex: 1 },+ }}+ onChange={(key) => setActive(key as 'cli' | 'desktop')}/>+ )}++ {!isWorkspace && active === 'desktop' ? (+ <Flexbox>+ <Step+ desc={t('devices.connectWizard.desktop.step1Desc')}+ index={1}+ title={t('devices.connectWizard.desktop.step1')}+ >+ <a href={DOWNLOAD_URL.default} rel="noreferrer" target="_blank">+ <Button icon={<Icon icon={DownloadIcon} />} type={'primary'}>+ {t('devices.connectWizard.desktop.downloadLink')}+ </Button>+ </a>+ </Step>+ <Step+ desc={t('devices.connectWizard.desktop.step2Desc')}+ index={2}+ title={t('devices.connectWizard.desktop.step2')}+ />+ <Step+ last+ desc={t('devices.connectWizard.desktop.step3Desc')}+ index={3}+ title={t('devices.connectWizard.desktop.step3')}+ />+ </Flexbox>+ ) : (+ cliSteps+ )}++ <Flexbox horizontal align={'center'} className={styles.footer} gap={8}>+ <Icon icon={ShieldCheckIcon} size={14} style={{ color: cssVar.colorTextTertiary }} />+ <Text color={cssVar.colorTextTertiary} fontSize={12}>+ {t('devices.connectWizard.footer')}+ </Text></Flexbox>- ) : (- cliSteps- )}-- <Flexbox horizontal align={'center'} className={styles.footer} gap={8}>- <Icon icon={ShieldCheckIcon} size={14} style={{ color: cssVar.colorTextTertiary }} />- <Text color={cssVar.colorTextTertiary} fontSize={12}>- {t('devices.connectWizard.footer')}- </Text></Flexbox>- </Flexbox>- </ImperativeModal>- );-});+ </ImperativeModal>+ );+ },+);DeviceConnectModal.displayName = 'DeviceConnectModal';diff --git a/src/features/DeviceManager/DeviceDetailPanel.tsx b/src/features/DeviceManager/DeviceDetailPanel.tsxindex c76fc332603..2148f278e56 100644--- a/src/features/DeviceManager/DeviceDetailPanel.tsx+++ b/src/features/DeviceManager/DeviceDetailPanel.tsx@@ -1,7 +1,7 @@'use client';import { isDesktop } from '@lobechat/const';-import type { DeviceListItem } from '@lobechat/types';+import type { DeviceListItem, DeviceWorkspaceShare } from '@lobechat/types';import {ActionIcon,Avatar,@@ -13,15 +13,17 @@ import {Tag,Text,} from '@lobehub/ui';+import { confirmModal } from '@lobehub/ui/base-ui';import { createStaticStyles, cssVar } from 'antd-style';import dayjs from 'dayjs';import { FolderOpenIcon, FolderPlusIcon, LockIcon, XIcon } from 'lucide-react';import { memo, type ReactNode, useState } from 'react';import { useTranslation } from 'react-i18next';+import { message } from '@/components/AntdStaticMethods';import DirIcon from '@/features/ChatInput/ControlBar/DirIcon';import { openAddWorkingDirModal } from '@/features/WorkingDirectory';-import { lambdaQuery } from '@/libs/trpc/client';+import { createWorkspaceLambdaClient, lambdaQuery } from '@/libs/trpc/client';import { deviceService } from '@/services/device';import { electronSystemService } from '@/services/electron/system';import { nextWorkingDirs } from '@/store/device';@@ -37,7 +39,6 @@ const styles = createStaticStyles(({ css }) => ({`,dot: css`flex: none;-width: 8px;height: 8px;border-radius: 50%;@@ -198,6 +199,31 @@ const DeviceDetailPanel = memo<DeviceDetailPanelProps>(({ device, isCurrent, onC});};+ // Revoke one workspace share of a personal device (LOBE-11699). The share+ // entry's `deviceId` is the workspace-scoped twin, removed via the+ // workspace-scoped mutation under an explicitly pinned workspace client —+ // the personal settings page has no active workspace context to inherit.+ const handleRevokeShare = (share: DeviceWorkspaceShare) =>+ confirmModal({+ content: t('devices.share.revokeConfirmDesc'),+ okButtonProps: { danger: true },+ okText: t('devices.share.revoke'),+ onOk: async () => {+ try {+ await createWorkspaceLambdaClient(share.workspaceId).device.removeWorkspaceDevice.mutate({+ deviceId: share.deviceId,+ });+ refreshDeviceList();+ } catch (error) {+ message.error((error as Error).message);+ throw error;+ }+ },+ title: t('devices.share.revokeConfirmTitle', {+ name: share.workspaceName ?? share.workspaceId,+ }),+ });+const handleReorderRecent = (items: { id: string }[]) => {// SortableList items are keyed by path; map ids back to their entries so the// detected repoType survives a reorder.@@ -255,6 +281,31 @@ const DeviceDetailPanel = memo<DeviceDetailPanelProps>(({ device, isCurrent, onC</Flexbox>)}+ {/* ─── Shared to workspaces (personal only) ─── */}+ {device.scope === 'personal' && !!device.sharedWorkspaces?.length && (+ <Flexbox gap={8}>+ <FieldLabel>{t('devices.share.detailLabel')}</FieldLabel>+ {device.sharedWorkspaces.map((share) => (+ <Flexbox horizontal align={'center'} gap={8} key={share.workspaceId}>+ <Text ellipsis style={{ flex: 1, minWidth: 0 }}>+ {share.workspaceName ?? share.workspaceId}+ </Text>+ <Tag size={'small'}>+ {share.visibility === 'private'+ ? t('devices.share.visibilityTag.private')+ : t('devices.share.visibilityTag.public')}+ </Tag>+ <ActionIcon+ icon={XIcon}+ size={'small'}+ title={t('devices.share.revoke')}+ onClick={() => handleRevokeShare(share)}+ />+ </Flexbox>+ ))}+ </Flexbox>+ )}+{/* ─── Connections ─── */}<Flexbox gap={8}><FieldLabel>{t('devices.detail.connections')}</FieldLabel>diff --git a/src/features/DeviceManager/DeviceItem.tsx b/src/features/DeviceManager/DeviceItem.tsxindex f7ed86f83c6..6cf28e51fbb 100644--- a/src/features/DeviceManager/DeviceItem.tsx+++ b/src/features/DeviceManager/DeviceItem.tsx@@ -15,14 +15,24 @@ import {import { confirmModal } from '@lobehub/ui/base-ui';import { createStaticStyles, cssVar, cx } from 'antd-style';import dayjs from 'dayjs';-import { FolderIcon, MoreVerticalIcon, Trash2Icon, TriangleAlertIcon } from 'lucide-react';+import {+ EyeOffIcon,+ FolderIcon,+ GlobeIcon,+ MoreVerticalIcon,+ Share2Icon,+ Trash2Icon,+ TriangleAlertIcon,+} from 'lucide-react';import { memo } from 'react';import { useTranslation } from 'react-i18next';+import VisibilityConfirmContent from '@/features/VisibilityConfirmContent';import { lambdaQuery } from '@/libs/trpc/client';import { refreshDeviceList } from './const';import { getDeviceIcon } from './getDeviceIcon';+import { openShareDeviceModal } from './ShareDeviceModal';import { useCanEditDevice } from './useCanEditDevice';const styles = createStaticStyles(({ css }) => ({@@ -163,6 +173,7 @@ interface DeviceItemProps {const DeviceItem = memo<DeviceItemProps>(({ checked, device, isCurrent, onCheckChange, onSelect, selected, selectionActive }) => {const { t } = useTranslation('setting');+ const { t: tCommon } = useTranslation('common');const canEdit = useCanEditDevice()(device);// Workspace devices are self-or-owner-gated + workspace-scoped on the@@ -192,6 +203,75 @@ const DeviceItem = memo<DeviceItemProps>(// reads as a stable mode rather than a hover-only affordance.const pinSelect = !!onCheckChange && (checked || selectionActive);+ // Publish / make-private for workspace enrollments (LOBE-11690). Reuses the+ // shared visibility-confirm body so the consequences copy matches agents /+ // files. Success feedback is the row itself moving to the other tab after+ // the list refresh.+ const setVisibility = lambdaQuery.device.setWorkspaceDeviceVisibility.useMutation({+ onSuccess: () => refreshDeviceList(),+ });++ const handlePublish = () =>+ confirmModal({+ content: <VisibilityConfirmContent variant={'publish'} />,+ okText: t('devices.visibility.publish'),+ onOk: async () => {+ await setVisibility.mutateAsync({ deviceId: device.deviceId, visibility: 'public' });+ },+ title: t('devices.visibility.publishConfirmTitle'),+ });++ const handleMakePrivate = () =>+ confirmModal({+ content: <VisibilityConfirmContent variant={'makePrivate'} />,+ okButtonProps: { danger: true },+ okText: tCommon('makePrivate.confirm.ok'),+ onOk: async () => {+ await setVisibility.mutateAsync({ deviceId: device.deviceId, visibility: 'private' });+ },+ title: tCommon('makePrivate.confirm.title'),+ });++ // Only persisted workspace rows carry a visibility to toggle — ghosts+ // (unregistered) and personal devices don't.+ const visibilityItems =+ device.scope === 'workspace' && device.registered+ ? device.visibility === 'private'+ ? [+ {+ icon: <Icon icon={GlobeIcon} />,+ key: 'publish',+ label: t('devices.visibility.publish'),+ onClick: handlePublish,+ },+ ]+ : [+ {+ icon: <Icon icon={EyeOffIcon} />,+ key: 'makePrivate',+ label: tCommon('makePrivate'),+ onClick: handleMakePrivate,+ },+ ]+ : [];++ // Share-to-workspace entry for personal enrollments (LOBE-11699). The share+ // handshake needs a live connection to mint the workspace identity, so the+ // item stays disabled (with an explanatory desc) while the device is offline.+ const shareItems =+ device.scope === 'personal' && device.registered+ ? [+ {+ desc: online ? undefined : t('devices.share.offlineDesc'),+ disabled: !online,+ icon: <Icon icon={Share2Icon} />,+ key: 'share',+ label: t('devices.share.menu'),+ onClick: () => openShareDeviceModal(device),+ },+ ]+ : [];+const handleRemove = () =>confirmModal({content: isCurrent@@ -255,6 +335,23 @@ const DeviceItem = memo<DeviceItemProps>(<span className={online ? styles.statusOnline : styles.statusOffline} /></Tooltip>{isCurrent && <Tag>{t('devices.currentBadge')}</Tag>}+ {device.scope === 'workspace' && device.sharedFromPersonal && (+ // Member-shared machine (vs directly enrolled infra) — mirrors the+ // "Shared by {name}" tag on workspace connectors/credentials.+ <Tag>+ {t('devices.share.sharedByTag', {+ name:+ device.enroller?.fullName ||+ device.enroller?.username ||+ t('workspaceSetting.devices.unknownEnroller'),+ })}+ </Tag>+ )}+ {device.scope === 'personal' && !!device.sharedWorkspaces?.length && (+ // At-a-glance "this machine also lives in N workspaces" marker;+ // the per-workspace list (and revoke) sits in the detail panel.+ <Tag>{t('devices.share.badge', { count: device.sharedWorkspaces.length })}</Tag>+ )}{isFallback && (<Tooltip title={t('devices.fallbackTooltip')}><Tag icon={<Icon icon={TriangleAlertIcon} />}>{t('devices.fallbackBadge')}</Tag>@@ -293,6 +390,8 @@ const DeviceItem = memo<DeviceItemProps>(<span onClick={(e) => e.stopPropagation()}><DropdownMenuitems={[+ ...visibilityItems,+ ...shareItems,{danger: true,icon: <Icon icon={Trash2Icon} />,diff --git a/src/features/DeviceManager/DeviceManager.tsx b/src/features/DeviceManager/DeviceManager.tsxindex d0ab0d61974..d705ba5d086 100644--- a/src/features/DeviceManager/DeviceManager.tsx+++ b/src/features/DeviceManager/DeviceManager.tsx@@ -1,8 +1,8 @@'use client';import { isDesktop } from '@lobechat/const';-import type { DeviceScope } from '@lobechat/types';-import { Button, Checkbox, Flexbox, Icon, Skeleton, Text } from '@lobehub/ui';+import type { DeviceScope, DeviceVisibility } from '@lobechat/types';+import { ActionIcon, Button, Checkbox, Flexbox, Icon, Skeleton, Text } from '@lobehub/ui';import { confirmModal } from '@lobehub/ui/base-ui';import { createStaticStyles, cssVar } from 'antd-style';import {@@ -10,6 +10,8 @@ import {FolderCogIcon,type LucideIcon,MonitorDownIcon,+ MonitorUpIcon,+ RefreshCwIcon,ServerIcon,TerminalIcon,Trash2Icon,@@ -273,18 +275,25 @@ const ListSkeleton = memo(() => ());interface DeviceManagerProps {- /** Open the enrollment wizard (the modal is owned by the route, by the header button). */+ /** Open the enrollment wizard (the modal is owned by the route). */onConnect: (tab?: 'cli' | 'desktop') => void;/** Which device pool this surface manages. */scope: DeviceScope;+ /**+ * Workspace scope only: narrow the list to one visibility tab — 'public'+ * (shared pool) or 'private' (the caller's own private enrollments). Omitted+ * → no visibility filtering (personal page).+ */+ visibility?: DeviceVisibility;}/*** Master-detail device manager shared by the personal (`/settings/devices`) and* workspace (`/:slug/settings/devices`) pages — list + detail panel + onboarding- * empty state, filtered to the given `scope`.+ * empty state, filtered to the given `scope` (and, for workspace, the active+ * visibility tab).*/-const DeviceManager = memo<DeviceManagerProps>(({ onConnect, scope }) => {+const DeviceManager = memo<DeviceManagerProps>(({ onConnect, scope, visibility }) => {const { t } = useTranslation('setting');const isWorkspace = scope === 'workspace';@@ -296,13 +305,18 @@ const DeviceManager = memo<DeviceManagerProps>(({ onConnect, scope }) => {// Devices come from an authed lambda procedure, so only query once signed in// (desktop always queries — it lists the local device's registered cwd).const isLogin = useUserStore(authSelectors.isLogin);- const { data, isLoading, error, mutate } = useClientDataSWR(+ const { data, isLoading, error, mutate, isValidating } = useClientDataSWR(isLogin || isDesktop ? [DEVICE_LIST_SWR_KEY] : null,() => deviceService.listDevices(),);// `listDevices` is workspace-aware and returns both pools — keep each surface- // to its own scope.- const devices = (data ?? []).filter((d) => d.scope === scope);+ // to its own scope (and visibility tab). Ghost rows (`visibility: null`,+ // online but unregistered) belong to the shared pool: the server already+ // strips other members' private devices, so an unclaimed live connection can+ // only be a public-pool machine.+ const devices = (data ?? []).filter(+ (d) => d.scope === scope && (!visibility || (d.visibility ?? 'public') === visibility),+ );// The machine the user is on right now (desktop only) — personal pool only;// a workspace device is never "this machine" in the personal sense.@@ -327,18 +341,34 @@ const DeviceManager = memo<DeviceManagerProps>(({ onConnect, scope }) => {// Now gated by AsyncBoundary so a *failed* device fetch renders a failure +// Retry instead of this "connect your first device" onboarding (which falsely// told the user they own no devices — ux Read §1.1 error-as-empty trap).+ // Workspace scope shows two pools behind tabs — the shared hero copy ("every+ // member can run agents on it") is wrong for the Private tab, which holds the+ // caller's own enrollments that other members never see.+ const isPrivatePool = isWorkspace && visibility === 'private';const emptyState = (<Flexbox gap={32}><Flexbox className={styles.emptyCard}><Flexbox align={'center'} className={styles.emptyHero} gap={12}><span className={styles.heroIcon}>- <Icon icon={isWorkspace ? ServerIcon : MonitorDownIcon} size={28} />+ <Icon icon={isWorkspace && !isPrivatePool ? ServerIcon : MonitorDownIcon} size={28} /></span><Text fontSize={18} weight={600}>- {t(isWorkspace ? 'workspaceSetting.devices.heroTitle' : 'devices.empty.title')}+ {t(+ isWorkspace+ ? isPrivatePool+ ? 'workspaceSetting.devices.heroTitlePrivate'+ : 'workspaceSetting.devices.heroTitle'+ : 'devices.empty.title',+ )}</Text><Text style={{ maxWidth: 440 }} type={'secondary'}>- {t(isWorkspace ? 'workspaceSetting.devices.heroDesc' : 'devices.empty.desc')}+ {t(+ isWorkspace+ ? isPrivatePool+ ? 'workspaceSetting.devices.heroDescPrivate'+ : 'workspaceSetting.devices.heroDesc'+ : 'devices.empty.desc',+ )}</Text></Flexbox>@@ -450,17 +480,33 @@ const DeviceManager = memo<DeviceManagerProps>(({ onConnect, scope }) => {: t('devices.selection.total', { count: devices.length })}</Text></Flexbox>- {selectionActive && (+ <Flexbox horizontal align={'center'} gap={8}>+ {selectionActive && (+ <Button+ danger+ icon={<Icon icon={Trash2Icon} />}+ loading={removeMutation.isPending}+ size={'small'}+ onClick={handleBulkRemove}+ >+ {t('devices.actions.removeSelected', { count: checkedCount })}+ </Button>+ )}<Button- danger- icon={<Icon icon={Trash2Icon} />}- loading={removeMutation.isPending}+ icon={<Icon icon={MonitorUpIcon} />}size={'small'}- onClick={handleBulkRemove}+ onClick={() => onConnect()}>- {t('devices.actions.removeSelected', { count: checkedCount })}+ {t('devices.connectWizard.button')}</Button>- )}+ <ActionIcon+ icon={RefreshCwIcon}+ loading={isValidating}+ size={'small'}+ title={t('devices.actions.refresh')}+ onClick={() => mutate()}+ />+ </Flexbox></Flexbox><Flexbox className={styles.listScroll} gap={2} padding={4}>{devices.map((device) => {diff --git a/src/features/DeviceManager/ShareDeviceModal.tsx b/src/features/DeviceManager/ShareDeviceModal.tsxnew file mode 100644index 00000000000..13105d5fb64--- /dev/null+++ b/src/features/DeviceManager/ShareDeviceModal.tsx@@ -0,0 +1,296 @@+'use client';++import type { DeviceListItem, DeviceVisibility } from '@lobechat/types';+import { Flexbox, Icon, Tag, Text } from '@lobehub/ui';+import { Button, confirmModal, createModal, Select, useModalContext } from '@lobehub/ui/base-ui';+import { createStaticStyles, cssVar } from 'antd-style';+import { t } from 'i18next';+import { CircleCheck, Lock, Users } from 'lucide-react';+import { memo, useMemo, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useNavigate } from 'react-router';++import { useWorkspaceOptionLabel } from '@/business/client/hooks/useWorkspaceOptionLabel';+import { useWorkspaces } from '@/business/client/hooks/useWorkspaces';+import { message } from '@/components/AntdStaticMethods';+import { createWorkspaceLambdaClient } from '@/libs/trpc/client';++import { refreshDeviceList } from './const';++const styles = createStaticStyles(({ css }) => ({+ footer: css`+ padding-block: 16px;+ padding-inline: 24px;+ `,+ optionHint: css`+ margin-inline-start: auto;+ font-size: 12px;+ color: ${cssVar.colorTextTertiary};+ `,+ optionRow: css`+ width: 100%;+ min-width: 0;+ padding-block: 2px;+ `,+ /* The trigger wraps the selected label in an inline valueText span, so the+ row can't stretch and right-aligned hints collapse next to the label —+ flex the wrapper so the trigger lays out like the dropdown options. */+ selectValue: css`+ > span {+ display: flex;+ flex: 1;+ min-width: 0;+ }+ `,+}));++interface ShareDeviceContentProps {+ device: DeviceListItem;+}++interface CompletionState {+ name: string;+ slug: string;+}++/**+ * Body of the "share to workspace" modal opened from a personal device row.+ * Mirrors the copy-agents-to-workspace modal: pick one target workspace ++ * visibility, share, then land on a success step with a jump to the target.+ * The share call runs under that workspace's scope via+ * `createWorkspaceLambdaClient` — the personal settings page has no active+ * workspace context to inherit.+ */+const ShareDeviceContent = memo<ShareDeviceContentProps>(({ device }) => {+ const { t: tSetting } = useTranslation(['setting', 'common']);+ const { close, setCanDismissByClickOutside } = useModalContext();+ const navigate = useNavigate();+ const workspaces = useWorkspaces();+ const renderWorkspaceLabel = useWorkspaceOptionLabel();++ const [targetId, setTargetId] = useState<string>();+ const [visibility, setVisibility] = useState<DeviceVisibility>('private');+ const [sharing, setSharing] = useState(false);+ const [step, setStep] = useState<'done' | 'select-target'>('select-target');+ const [completion, setCompletion] = useState<CompletionState>();++ // Workspaces this device already lives in — selectable targets exclude them.+ const sharedIds = useMemo(+ () => new Set((device.sharedWorkspaces ?? []).map((s) => s.workspaceId)),+ [device.sharedWorkspaces],+ );++ const targetOptions = useMemo(+ () =>+ workspaces.map((workspace) => {+ const shared = sharedIds.has(workspace.id);+ const isViewer = workspace.role === 'viewer';+ const disabled = shared || isViewer || !!workspace.lockedOut;+ return {+ disabled,+ label: (+ <Flexbox horizontal align={'center'} className={styles.optionRow} gap={8}>+ {renderWorkspaceLabel(workspace)}+ {shared && (+ <Tag size={'small'} style={{ flex: 'none', margin: 0 }}>+ {tSetting('devices.share.alreadyShared')}+ </Tag>+ )}+ {!shared && isViewer && (+ <span className={styles.optionHint}>{tSetting('devices.share.viewerHint')}</span>+ )}+ </Flexbox>+ ),+ title: workspace.name,+ value: workspace.id,+ };+ }),+ [workspaces, sharedIds, tSetting, renderWorkspaceLabel],+ );++ // Default to the first workspace the device can actually be shared into.+ const effectiveTargetId = targetId ?? targetOptions.find((option) => !option.disabled)?.value;++ const visibilityOptions = useMemo(+ () =>+ (+ [+ {+ desc: tSetting('workspace.general.transferScope.private.desc'),+ icon: Lock,+ label: tSetting('workspace.general.transferScope.private.label'),+ value: 'private',+ },+ {+ desc: tSetting('workspace.general.transferScope.workspace.desc'),+ icon: Users,+ label: tSetting('workspace.general.transferScope.workspace.label'),+ value: 'public',+ },+ ] as const+ ).map((item) => ({+ label: (+ <Flexbox horizontal align={'center'} className={styles.optionRow} gap={8}>+ <Icon icon={item.icon} size={14} />+ <Text style={{ fontSize: 13, fontWeight: 500 }}>{item.label}</Text>+ <span className={styles.optionHint}>{item.desc}</span>+ </Flexbox>+ ),+ title: item.label,+ value: item.value,+ })),+ [tSetting],+ );++ const visibilityTagLabel = (value: DeviceVisibility) =>+ tSetting(+ value === 'public'+ ? 'devices.share.visibilityTag.public'+ : 'devices.share.visibilityTag.private',+ );++ const handleShare = async (confirmOverwrite?: boolean) => {+ const target = workspaces.find((w) => w.id === effectiveTargetId);+ if (!target) return;++ setSharing(true);+ // Lock dismissal so the mutation can't be interrupted mid-flight.+ setCanDismissByClickOutside?.(false);+ try {+ const result = await createWorkspaceLambdaClient(+ target.id,+ ).device.shareDeviceToWorkspace.mutate({+ confirmOverwrite,+ deviceId: device.deviceId,+ visibility,+ });++ // The machine is already enrolled in this workspace (e.g. directly via+ // CLI, which the share map can't link to). Nothing was written — ask+ // before overwriting its access with the choice made here.+ if (!result.success && result.alreadyEnrolled) {+ confirmModal({+ content: tSetting('devices.share.overwriteConfirmDesc', {+ current: visibilityTagLabel(result.visibility ?? 'public'),+ next: visibilityTagLabel(visibility),+ }),+ okText: tSetting('devices.share.overwriteConfirmOk'),+ onOk: () => handleShare(true),+ title: tSetting('devices.share.overwriteConfirmTitle', { name: target.name }),+ });+ return;+ }++ refreshDeviceList();+ setCompletion({ name: target.name, slug: target.slug });+ setStep('done');+ } catch (error) {+ // Server messages (e.g. PRECONDITION_FAILED when the device dropped+ // offline mid-flow) are user-facing — surface them verbatim.+ message.error(`${target.name}: ${(error as Error).message}`);+ } finally {+ setSharing(false);+ setCanDismissByClickOutside?.(true);+ }+ };++ const goToTarget = () => {+ if (!completion) return;++ navigate(`/${completion.slug}/settings/devices`);+ close();+ };++ if (step === 'done' && completion) {+ return (+ <Flexbox align={'center'} gap={20} justify={'center'} padding={48}>+ <Flexbox align={'center'} gap={12}>+ <Icon color={cssVar.colorSuccess} icon={CircleCheck} size={32} />+ <Text weight={500}>{tSetting('devices.share.success', { name: completion.name })}</Text>+ </Flexbox>+ <Flexbox horizontal gap={8}>+ <Button onClick={close}>{tSetting('devices.share.done')}</Button>+ <Button type={'primary'} onClick={goToTarget}>+ {tSetting('devices.share.goToTarget', { name: completion.name })}+ </Button>+ </Flexbox>+ </Flexbox>+ );+ }++ return (+ <Flexbox>+ <Flexbox gap={16} padding={24}>+ <Text style={{ fontSize: 13 }} type={'secondary'}>+ {tSetting('devices.share.modalDesc')}+ </Text>++ {workspaces.length === 0 ? (+ <Flexbox align={'center'} justify={'center'} paddingBlock={24}>+ <Text fontSize={12} type={'secondary'}>+ {tSetting('devices.share.empty')}+ </Text>+ </Flexbox>+ ) : (+ <>+ <Flexbox gap={6}>+ <Text style={{ fontSize: 13, fontWeight: 500 }}>+ {tSetting('devices.share.targetLabel')}+ </Text>+ <Select+ showSearch+ classNames={{ value: styles.selectValue }}+ options={targetOptions}+ placeholder={tSetting('devices.share.selectPlaceholder')}+ style={{ width: '100%' }}+ value={effectiveTargetId}+ onChange={(value) => setTargetId(value as string)}+ />+ </Flexbox>++ <Flexbox gap={6}>+ <Text style={{ fontSize: 13, fontWeight: 500 }}>+ {tSetting('workspace.general.transferScope.title')}+ </Text>+ <Select+ classNames={{ value: styles.selectValue }}+ options={visibilityOptions}+ style={{ width: '100%' }}+ value={visibility}+ onChange={(value) => setVisibility(value as DeviceVisibility)}+ />+ </Flexbox>+ </>+ )}+ </Flexbox>++ <Flexbox horizontal className={styles.footer} gap={8} justify={'space-between'}>+ <Button disabled={sharing} onClick={close}>+ {tSetting('cancel', { ns: 'common' })}+ </Button>+ <Button+ disabled={!effectiveTargetId}+ loading={sharing}+ type={'primary'}+ onClick={() => handleShare()}+ >+ {tSetting('devices.share.confirm')}+ </Button>+ </Flexbox>+ </Flexbox>+ );+});++ShareDeviceContent.displayName = 'ShareDeviceContent';++export const openShareDeviceModal = (device: DeviceListItem) =>+ createModal({+ content: <ShareDeviceContent device={device} />,+ footer: null,+ maskClosable: false,+ styles: {+ content: { padding: 0 },+ },+ title: t('devices.share.modalTitle', { ns: 'setting' }),+ width: 'min(92vw, 520px)',+ });diff --git a/src/features/DeviceManager/useCanEditDevice.test.ts b/src/features/DeviceManager/useCanEditDevice.test.tsindex b7893911309..a985daf22aa 100644--- a/src/features/DeviceManager/useCanEditDevice.test.ts+++ b/src/features/DeviceManager/useCanEditDevice.test.ts@@ -52,6 +52,7 @@ const buildDevice = (overrides: {platform: null,registered: true,scope: overrides.scope,+ visibility: overrides.scope === 'workspace' ? 'public' : null,workingDirs: [],});diff --git a/src/features/ResourceManager/components/Explorer/ListView/index.tsx b/src/features/ResourceManager/components/Explorer/ListView/index.tsxindex 69079211db8..a4ec2e15eb1 100644--- a/src/features/ResourceManager/components/Explorer/ListView/index.tsx+++ b/src/features/ResourceManager/components/Explorer/ListView/index.tsx@@ -4,6 +4,7 @@ import { Flexbox } from '@lobehub/ui';import { useRef } from 'react';import type { VirtuosoHandle } from 'react-virtuoso';+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';import type { ResourceQueryParams } from '@/types/resource';import ListViewDropZone from './ListViewDropZone';@@ -26,7 +27,10 @@ const ListView = ({ isLoading, isValidating, queryParams }: ListViewProps) => {isValidating,queryParams,});- const showUploader = queryParams.visibility !== 'private';+ // Personal account has only one uploader (the user themselves), so hide the+ // column entirely there — it only makes sense in a workspace with multiple members.+ const activeWorkspaceId = useActiveWorkspaceId();+ const showUploader = !!activeWorkspaceId && queryParams.visibility !== 'private';if (showSkeleton)return <ListViewSkeleton columnWidths={columnWidths} showUploader={showUploader} />;diff --git a/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx b/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsxindex b98b3084e64..cc695d07ab4 100644--- a/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx+++ b/src/features/ResourceManager/components/Explorer/SearchResultsOverlay.tsx@@ -8,6 +8,7 @@ import { memo, useMemo, useState } from 'react';import { useTranslation } from 'react-i18next';import { Virtuoso } from 'react-virtuoso';+import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';import AsyncError from '@/components/AsyncError';import NeuralNetworkLoading from '@/components/NeuralNetworkLoading';import { useClientDataSWR } from '@/libs/swr';@@ -42,7 +43,10 @@ const SearchResultsOverlay = memo(() => {const columnCount = useMasonryColumnCount();const isActive = !!searchQuery && searchQuery.length > 0;- const showUploader = listVisibility !== 'private';+ // Personal account has only one uploader (the user themselves), so hide the+ // column entirely there — it only makes sense in a workspace with multiple members.+ const activeWorkspaceId = useActiveWorkspaceId();+ const showUploader = !!activeWorkspaceId && listVisibility !== 'private';const visibility = listVisibility === 'private' ? ('private' as const) : ('public' as const);const {diff --git a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsxindex d5293aa0b97..0b23238f435 100644--- a/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx+++ b/src/routes/(main)/[workspaceSlug]/settings/devices/index.tsx@@ -1,31 +1,66 @@'use client';-import { Button, Icon } from '@lobehub/ui';-import { MonitorUpIcon } from 'lucide-react';+import type { DeviceVisibility } from '@lobechat/types';+import { Flexbox, Icon } from '@lobehub/ui';+import { Tabs } from '@lobehub/ui/base-ui';+import { LockIcon, UsersIcon } from 'lucide-react';import { memo, useState } from 'react';import { useTranslation } from 'react-i18next';import { DeviceConnectModal, DeviceManager } from '@/features/DeviceManager';import SettingHeader from '@/routes/(main)/settings/features/SettingHeader';+/**+ * Workspace device settings: two pools behind tabs (LOBE-11690) —+ * - Workspace: the shared (public-visibility) pool every member sees.+ * - Private: the caller's own private enrollments in this workspace.+ * The tab also parameterises the connect wizard, so a device enrolled from the+ * Private tab registers as private (`lh connect … --private`).+ */const WorkspaceDevicesSetting = memo(() => {const { t } = useTranslation('setting');const [open, setOpen] = useState(false);+ const [visibility, setVisibility] = useState<DeviceVisibility>('public');return (<>- <SettingHeader- title={t('tab.devices')}- extra={- <Button icon={<Icon icon={MonitorUpIcon} />} size={'small'} onClick={() => setOpen(true)}>- {t('devices.connectWizard.button')}- </Button>- }- />+ <SettingHeader title={t('tab.devices')} />++ {/* Tabs and the device list form one unit: group them so the settings+ Container's 36px section gap applies once, instead of stacking+ between the tabs and the list they control. */}+ <Flexbox gap={16}>+ <Tabs+ activeKey={visibility}+ items={[+ {+ icon: <Icon icon={UsersIcon} />,+ key: 'public',+ label: t('devices.visibilityTabs.workspace'),+ },+ {+ icon: <Icon icon={LockIcon} />,+ key: 'private',+ label: t('devices.visibilityTabs.private'),+ },+ ]}+ onChange={(key) => setVisibility(key as DeviceVisibility)}+ />- <DeviceManager scope={'workspace'} onConnect={() => setOpen(true)} />+ <DeviceManager+ key={visibility}+ scope={'workspace'}+ visibility={visibility}+ onConnect={() => setOpen(true)}+ />+ </Flexbox>- <DeviceConnectModal open={open} scope={'workspace'} onClose={() => setOpen(false)} />+ <DeviceConnectModal+ open={open}+ scope={'workspace'}+ visibility={visibility}+ onClose={() => setOpen(false)}+ /></>);});diff --git a/src/routes/(main)/settings/devices/index.tsx b/src/routes/(main)/settings/devices/index.tsxindex 8f48b966f59..7028fb26e2e 100644--- a/src/routes/(main)/settings/devices/index.tsx+++ b/src/routes/(main)/settings/devices/index.tsx@@ -1,7 +1,5 @@'use client';-import { Button, Icon } from '@lobehub/ui';-import { MonitorUpIcon } from 'lucide-react';import { memo, useState } from 'react';import { useTranslation } from 'react-i18next';@@ -20,18 +18,9 @@ const Page = memo(() => {return (<>- <SettingHeader- title={t('devices.title')}- extra={- <Button- icon={<Icon icon={MonitorUpIcon} />}- size={'small'}- onClick={() => handleConnect()}- >- {t('devices.connectWizard.button')}- </Button>- }- />+ {/* "Connect device" moved into the device list header (next to Refresh) —+ keep the page header to the title only. */}+ <SettingHeader title={t('devices.title')} /><DeviceManager scope={'personal'} onConnect={handleConnect} />diff --git a/src/services/workspaceUserSettings.ts b/src/services/workspaceUserSettings.tsnew file mode 100644index 00000000000..2a29899f94d--- /dev/null+++ b/src/services/workspaceUserSettings.ts@@ -0,0 +1,21 @@+import type { WorkspaceUserPreference } from '@lobechat/types';++import { lambdaClient } from '@/libs/trpc/client';++/**+ * Client-side accessor for the caller's preferences inside the current+ * workspace. Mirrors `UserService.updatePreference` but for the+ * workspace-scoped bucket. Consumers should not call these when the caller+ * is in personal mode — the server rejects the request there.+ */+export class WorkspaceUserSettingsService {+ getPreference = async (): Promise<WorkspaceUserPreference> => {+ return lambdaClient.workspaceUserSettings.getPreference.query();+ };++ updatePreference = async (patch: Partial<WorkspaceUserPreference>): Promise<void> => {+ await lambdaClient.workspaceUserSettings.updatePreference.mutate(patch);+ };+}++export const workspaceUserSettingsService = new WorkspaceUserSettingsService();diff --git a/src/store/user/initialState.ts b/src/store/user/initialState.tsindex ae94395c442..59eb01f9f5f 100644--- a/src/store/user/initialState.ts+++ b/src/store/user/initialState.ts@@ -10,13 +10,16 @@ import { type UserPreferenceState } from './slices/preference/initialState';import { initialPreferenceState } from './slices/preference/initialState';import { type UserSettingsState } from './slices/settings/initialState';import { initialSettingsState } from './slices/settings/initialState';+import { type WorkspaceUserSettingsState } from './slices/workspaceUserSettings/initialState';+import { initialWorkspaceUserSettingsState } from './slices/workspaceUserSettings/initialState';export type UserState = UserSettingsState &UserPreferenceState &UserAuthState &CommonState &AgentOnboardingState &- OnboardingState;+ OnboardingState &+ WorkspaceUserSettingsState;export const initialState: UserState = {...initialSettingsState,@@ -25,4 +28,5 @@ export const initialState: UserState = {...initialCommonState,...initialAgentOnboardingState,...initialOnboardingState,+ ...initialWorkspaceUserSettingsState,};diff --git a/src/store/user/selectors.ts b/src/store/user/selectors.tsindex a3342d28923..afffc91f273 100644--- a/src/store/user/selectors.ts+++ b/src/store/user/selectors.ts@@ -10,3 +10,4 @@ export {userGeneralSettingsSelectors,userUsageSettingsSelectors,} from './slices/settings/selectors';+export { workspaceUserSettingsSelectors } from './slices/workspaceUserSettings/selectors';diff --git a/src/store/user/slices/workspaceUserSettings/action.ts b/src/store/user/slices/workspaceUserSettings/action.tsnew file mode 100644index 00000000000..dcedeccb196--- /dev/null+++ b/src/store/user/slices/workspaceUserSettings/action.ts@@ -0,0 +1,91 @@+import type { WorkspaceUserPreference } from '@lobechat/types';++import { useActiveWorkspaceId } from '@/business/client/hooks/useActiveWorkspaceId';+import { useClientDataSWR } from '@/libs/swr';+import { workspaceUserSettingsService } from '@/services/workspaceUserSettings';+import { type StoreSetter } from '@/store/types';+import { type UserStore } from '@/store/user';+import { setNamespace } from '@/utils/storeDebug';++const n = setNamespace('workspaceUserSettings');++const WORKSPACE_USER_SETTINGS_SWR_KEY = 'FETCH_WORKSPACE_USER_SETTINGS';++type Setter = StoreSetter<UserStore>;++/**+ * Slice for the caller's `workspace_user_settings.preference` bucket. Reads+ * are SWR-cached and keyed on the ACTIVE workspaceId — switching workspaces+ * auto-refetches; personal mode short-circuits without hitting the network+ * (the row doesn't exist there and the server would reject the request).+ *+ * Writes go through the tRPC mutation, then merge the returned bucket back+ * into local state so pickers observe their pick immediately without waiting+ * for the SWR revalidation cycle.+ */+export const createWorkspaceUserSettingsSlice = (+ set: Setter,+ get: () => UserStore,+ _api?: unknown,+) => new WorkspaceUserSettingsActionImpl(set, get, _api);++export class WorkspaceUserSettingsActionImpl {+ readonly #get: () => UserStore;+ readonly #set: Setter;++ constructor(set: Setter, get: () => UserStore, _api?: unknown) {+ void _api;+ this.#set = set;+ this.#get = get;+ }++ useFetchWorkspaceUserPreference = () => {+ const workspaceId = useActiveWorkspaceId();+ return useClientDataSWR<WorkspaceUserPreference | null>(+ workspaceId ? [WORKSPACE_USER_SETTINGS_SWR_KEY, workspaceId] : null,+ async () => workspaceUserSettingsService.getPreference(),+ {+ onSuccess: (data) => {+ if (!data) return;+ this.#set(+ { workspaceUserPreference: data },+ false,+ n('useFetchWorkspaceUserPreference/onSuccess'),+ );+ },+ },+ );+ };++ updateWorkspaceUserPreference = async (+ patch: Partial<WorkspaceUserPreference>,+ ): Promise<void> => {+ // Optimistic merge — the picker's own re-render should see the new+ // choice on the very next frame, not wait for the mutation round-trip.+ const previous = this.#get().workspaceUserPreference;+ const optimistic: WorkspaceUserPreference = { ...previous, ...patch };+ this.#set(+ { workspaceUserPreference: optimistic },+ false,+ n('updateWorkspaceUserPreference/optimistic'),+ );++ try {+ await workspaceUserSettingsService.updatePreference(patch);+ } catch (error) {+ // Roll back the optimistic write so the picker doesn't strand a state+ // that never made it to the server.+ this.#set(+ { workspaceUserPreference: previous },+ false,+ n('updateWorkspaceUserPreference/rollback'),+ );+ throw error;+ }+ };+}++export type WorkspaceUserSettingsAction = Pick<+ WorkspaceUserSettingsActionImpl,+ keyof WorkspaceUserSettingsActionImpl+>;diff --git a/src/store/user/slices/workspaceUserSettings/initialState.ts b/src/store/user/slices/workspaceUserSettings/initialState.tsnew file mode 100644index 00000000000..2b8994f01c3--- /dev/null+++ b/src/store/user/slices/workspaceUserSettings/initialState.ts@@ -0,0 +1,19 @@+import type { WorkspaceUserPreference } from '@lobechat/types';++/**+ * Cached copy of the caller's `workspace_user_settings.preference` row for+ * the currently-active workspace. Refreshed via SWR keyed on the active+ * `workspaceId`, so switching workspaces auto-refetches the right bucket.+ */+export interface WorkspaceUserSettingsState {+ /**+ * Empty on first load / while SWR is fetching / when the caller is in+ * personal mode. Consumers should treat empty as "no override — use the+ * shared defaults", identical to the pre-LOBE-11689 behaviour.+ */+ workspaceUserPreference: WorkspaceUserPreference;+}++export const initialWorkspaceUserSettingsState: WorkspaceUserSettingsState = {+ workspaceUserPreference: {},+};diff --git a/src/store/user/slices/workspaceUserSettings/selectors.ts b/src/store/user/slices/workspaceUserSettings/selectors.tsnew file mode 100644index 00000000000..1f70ccb11e6--- /dev/null+++ b/src/store/user/slices/workspaceUserSettings/selectors.ts@@ -0,0 +1,18 @@+import type { AgentDeviceOverride } from '@lobechat/types';++import { type UserStore } from '@/store/user';++/**+ * The caller's override for a specific agent in the currently-active+ * workspace, or `undefined` when nothing is pinned yet. Merged over+ * `agents.agencyConfig` by `resolveAgencyConfig` at read time so pickers and+ * dispatch always agree.+ */+const agentDeviceOverrideById =+ (agentId: string) =>+ (s: UserStore): AgentDeviceOverride | undefined =>+ s.workspaceUserPreference.agentDeviceOverrides?.[agentId];++export const workspaceUserSettingsSelectors = {+ agentDeviceOverrideById,+};diff --git a/src/store/user/store.ts b/src/store/user/store.tsindex 526e7417ce6..1d277379fca 100644--- a/src/store/user/store.ts+++ b/src/store/user/store.ts@@ -21,6 +21,8 @@ import { type PreferenceAction } from './slices/preference/action';import { createPreferenceSlice } from './slices/preference/action';import { type UserSettingsAction } from './slices/settings/action';import { createSettingsSlice } from './slices/settings/action';+import { type WorkspaceUserSettingsAction } from './slices/workspaceUserSettings/action';+import { createWorkspaceUserSettingsSlice } from './slices/workspaceUserSettings/action';// =============== Aggregate createStoreFn ============ //@@ -31,6 +33,7 @@ export type UserStore = UserState &CommonAction &AgentOnboardingAction &OnboardingAction &+ WorkspaceUserSettingsAction &ResetableStore;type UserStoreAction = UserSettingsAction &@@ -39,6 +42,7 @@ type UserStoreAction = UserSettingsAction &CommonAction &AgentOnboardingAction &OnboardingAction &+ WorkspaceUserSettingsAction &ResetableStore;class UserStoreResetAction extends ResetableStoreAction<UserStore> {@@ -56,6 +60,7 @@ const createStore: StateCreator<UserStore, [['zustand/devtools', never]]> = (createCommonSlice(...parameters),createAgentOnboardingSlice(...parameters),createOnboardingSlice(...parameters),+ createWorkspaceUserSettingsSlice(...parameters),new UserStoreResetAction(...parameters),]),});