feat: prepare Zhinian desktop client for pilot release

This commit is contained in:
inman
2026-04-29 10:23:20 +08:00
parent f9361e686a
commit 47b83b79fc
149 changed files with 15341 additions and 3590 deletions

View File

@@ -57,7 +57,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
tray = new Tray(icon);
// Set tooltip
tray.setToolTip('ClawX - AI Assistant');
tray.setToolTip('智念助手 - B 端 AI Agent');
const showWindow = () => {
if (mainWindow.isDestroyed()) return;
@@ -68,7 +68,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
// Create context menu
const contextMenu = Menu.buildFromTemplate([
{
label: 'Show ClawX',
label: '显示智念助手',
click: showWindow,
},
{
@@ -91,7 +91,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
label: 'Quick Actions',
submenu: [
{
label: 'Open Chat',
label: '打开对话',
click: () => {
if (mainWindow.isDestroyed()) return;
mainWindow.show();
@@ -99,7 +99,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
},
},
{
label: 'Open Settings',
label: '打开设置',
click: () => {
if (mainWindow.isDestroyed()) return;
mainWindow.show();
@@ -112,7 +112,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
type: 'separator',
},
{
label: 'Check for Updates...',
label: '检查更新...',
click: () => {
if (mainWindow.isDestroyed()) return;
mainWindow.webContents.send('update:check');
@@ -122,7 +122,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
type: 'separator',
},
{
label: 'Quit ClawX',
label: '退出智念助手',
click: () => {
app.quit();
},
@@ -157,7 +157,7 @@ export function createTray(mainWindow: BrowserWindow): Tray {
*/
export function updateTrayStatus(status: string): void {
if (tray) {
tray.setToolTip(`ClawX - ${status}`);
tray.setToolTip(`智念助手 - ${status}`);
}
}