@agent-webui/ai-desk-daemon 1.0.41 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +10 -66
  2. package/package.json +11 -11
package/README.md CHANGED
@@ -9,12 +9,12 @@
9
9
  ## ✨ 特性
10
10
 
11
11
  - 🎯 **智能启动** - Web 访问时自动检测并尝试启动守护进程
12
- - 🖥️ **图形化管理** - 系统托盘 + 控制面板,便捷管理
12
+ - 🖥️ **图形化管理** - Dashboard 控制面板,便捷管理
13
13
  - 🔄 **实时监控** - 查看守护进程状态、日志和统计信息
14
14
  - 🚀 **智能启动器** - 多种方式自动唤醒守护进程
15
15
  - 🔒 **安全可靠** - 工作目录白名单、认证支持
16
16
  - 📦 **跨平台** - macOS、Windows、Linux 统一体验
17
- - ⚡ **高性能** - 基于 Tauri,体积小(~15MB)、内存占用低
17
+ - ⚡ **高性能** - Go 原生编译,体积小、内存占用低
18
18
 
19
19
  ## 📦 安装
20
20
 
@@ -47,10 +47,6 @@ aidesk status
47
47
  - ✅ 按平台分发的内置 Python runtime
48
48
  - ✅ HTTP API (http://localhost:9527)
49
49
 
50
- **不包含**:
51
- - ❌ 系统托盘应用 (Tray)
52
- - ❌ 桌面 GUI 应用
53
-
54
50
  **可用命令**:
55
51
  - `aidesk start` - 启动守护进程(后台运行,沿用当前已保存 mode)
56
52
  - `aidesk start --mode native` - 切到 Native mode 并启动
@@ -71,22 +67,15 @@ aidesk status
71
67
 
72
68
  ---
73
69
 
74
- ### 方式 2: 完整安装(Daemon + Tray)
75
-
76
- **适合场景**:桌面用户、需要系统托盘图标、完整 GUI 体验
70
+ ### 方式 2: 脚本安装
77
71
 
78
72
  #### macOS
79
73
 
80
74
  ```bash
81
- # 下载并安装
82
- curl -fsSL https://github.com/your-repo/ai-desk-desktop/releases/latest/download/install-macos.sh | bash
83
-
84
- # 或手动安装
75
+ # 手动安装
85
76
  ./scripts/install-macos.sh
86
77
  ```
87
78
 
88
- 安装脚本会为当前会话尝试启动 daemon,但不会再通过 LaunchAgent/Plist 保活。
89
-
90
79
  #### Linux
91
80
 
92
81
  ```bash
@@ -107,21 +96,7 @@ systemctl --user start ai-desk-daemon
107
96
 
108
97
  ## 🚀 快速开始
109
98
 
110
- ### 1. 启动桌面应用
111
-
112
- **macOS/Linux:**
113
- ```bash
114
- # 从应用程序菜单启动
115
- open /Applications/AI\ Desk\ Desktop.app
116
-
117
- # 或命令行启动
118
- ai-desk-desktop
119
- ```
120
-
121
- **Windows:**
122
- - 从开始菜单启动 "AI Desk Desktop"
123
-
124
- ### 2. Web 应用集成
99
+ ### 1. Web 应用集成
125
100
 
126
101
  在你的 Web 应用中集成智能启动器:
127
102
 
@@ -171,12 +146,12 @@ await daemonService.executeStreaming(
171
146
 
172
147
  ```
173
148
  ┌─────────────────────────────────────────────────────┐
174
- │ AI Desk Desktop App
175
- │ (Tauri Application)
149
+ │ AI Desk Daemon
150
+ │ (Go HTTP Server)
176
151
  │ │
177
152
  │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
178
- │ │ System │ │ Control │ │ Settings │ │
179
- │ │ Tray │ │ Panel │ │ Panel │ │
153
+ │ │ Dashboard│ │ Control │ │ Settings │ │
154
+ │ │ Web UI │ │ Panel │ │ Panel │ │
180
155
  │ └──────────┘ └──────────┘ └──────────┘ │
181
156
  │ │ │ │
182
157
  │ └────────────────┼──────────────────────────┘
@@ -274,28 +249,12 @@ await daemonService.executeStreaming(
274
249
 
275
250
  说明:`9527` 是默认端口,实际运行时以 `~/.aidesktop/daemon-config.json` 中的 `port` 为准。
276
251
 
277
- ### 应用配置
278
-
279
- 配置文件位置:`~/.aidesktop/app-config.json`
280
-
281
- ```json
282
- {
283
- "auto_start": true,
284
- "minimize_to_tray": true,
285
- "daemon_port": 9527
286
- }
287
- ```
288
-
289
- 如果你修改了 daemon 配置端口,请保持这里的 `daemon_port` 与之同步。
290
-
291
252
  ## 🔧 开发
292
253
 
293
254
  ### 前置要求
294
255
 
295
256
  - **Node.js** 18+
296
- - **Rust** 1.70+
297
257
  - **Go** 1.21+ (用于守护进程)
298
- - **Tauri CLI** 1.5+
299
258
 
300
259
  ### 构建
301
260
 
@@ -318,19 +277,14 @@ cd daemon && go build -o ai-desk-daemon
318
277
  # 2. 构建前端
319
278
  npm run build
320
279
 
321
- # 3. 构建 Tauri 应用
322
- npm run tauri build
323
280
  ```
324
281
 
325
282
  ### 开发模式
326
283
 
327
284
  ```bash
328
- # 终端 1: 启动守护进程
285
+ # 启动守护进程(热重载)
329
286
  cd daemon
330
287
  go run .
331
-
332
- # 终端 2: 启动 Tauri 应用
333
- npm run tauri:dev
334
288
  ```
335
289
 
336
290
  ## 📖 使用示例
@@ -380,16 +334,6 @@ function AgentPanel() {
380
334
 
381
335
  ## 🐛 故障排查
382
336
 
383
- ### macOS Gatekeeper 警告
384
-
385
- **问题**:macOS 阻止运行未签名的应用
386
-
387
- **解决方案**:
388
- ```bash
389
- # 移除隔离属性
390
- xattr -cr "/Applications/AI Desk Desktop.app"
391
- ```
392
-
393
337
  ### 守护进程未启动
394
338
 
395
339
  **检查日志**:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-webui/ai-desk-daemon",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "AI Desk Daemon - CLI tool for managing the AI Desk daemon service",
5
5
  "workspaces": [
6
6
  "packages/*"
@@ -39,16 +39,16 @@
39
39
  "chalk": "^4.1.2"
40
40
  },
41
41
  "optionalDependencies": {
42
- "@agent-webui/ai-desk-daemon-darwin-arm64": "1.0.41",
43
- "@agent-webui/ai-desk-daemon-darwin-x64": "1.0.41",
44
- "@agent-webui/ai-desk-daemon-linux-arm64": "1.0.41",
45
- "@agent-webui/ai-desk-daemon-linux-x64": "1.0.41",
46
- "@agent-webui/ai-desk-daemon-win32-x64": "1.0.41",
47
- "@agent-webui/ai-desk-python-darwin-arm64": "1.0.41",
48
- "@agent-webui/ai-desk-python-darwin-x64": "1.0.41",
49
- "@agent-webui/ai-desk-python-linux-arm64": "1.0.41",
50
- "@agent-webui/ai-desk-python-linux-x64": "1.0.41",
51
- "@agent-webui/ai-desk-python-win32-x64": "1.0.41"
42
+ "@agent-webui/ai-desk-daemon-darwin-arm64": "1.0.43",
43
+ "@agent-webui/ai-desk-daemon-darwin-x64": "1.0.43",
44
+ "@agent-webui/ai-desk-daemon-linux-arm64": "1.0.43",
45
+ "@agent-webui/ai-desk-daemon-linux-x64": "1.0.43",
46
+ "@agent-webui/ai-desk-daemon-win32-x64": "1.0.43",
47
+ "@agent-webui/ai-desk-python-darwin-arm64": "1.0.43",
48
+ "@agent-webui/ai-desk-python-darwin-x64": "1.0.43",
49
+ "@agent-webui/ai-desk-python-linux-arm64": "1.0.43",
50
+ "@agent-webui/ai-desk-python-linux-x64": "1.0.43",
51
+ "@agent-webui/ai-desk-python-win32-x64": "1.0.43"
52
52
  },
53
53
  "repository": {
54
54
  "type": "git",