@fefeding/aicmd 1.0.26 → 1.0.28
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.
- package/README.md +60 -5
- package/README.zh.md +66 -5
- package/dist/public/.vite/manifest.json +133 -13
- package/dist/public/ai-settings.css +1868 -0
- package/dist/public/ai-settings.js +7579 -0
- package/dist/public/bootstrap-icons.woff +0 -0
- package/dist/public/bootstrap-icons.woff2 +0 -0
- package/dist/public/bootstrap.css +1 -1
- package/dist/public/bootstrap.js +60 -119
- package/dist/public/connection-editor.css +5 -0
- package/dist/public/connection-editor.js +831 -0
- package/dist/public/connection.js +118 -0
- package/dist/public/index.css +0 -381
- package/dist/public/index.js +186 -5467
- package/dist/public/rdp_client_bg.wasm +0 -0
- package/dist/public/selection-copy.css +494 -0
- package/dist/public/selection-copy.js +5540 -0
- package/dist/public/src/term.html +17 -0
- package/dist/public/src/vscode-edit.html +21 -0
- package/dist/public/src/vscode-term.html +24 -0
- package/dist/public/term.css +14 -0
- package/dist/public/term.js +333 -0
- package/dist/public/views.css +111 -1515
- package/dist/public/views.js +233 -7476
- package/dist/public/vscode-clipboard.js +658 -0
- package/dist/public/vscode-edit.js +91 -0
- package/dist/public/vscode-term.js +116 -0
- package/dist/public/vue.js +360 -195
- package/dist/public/xterm.js +1647 -10
- package/dist/public/zmodem.js +2726 -0
- package/dist/server/index.d.ts +12 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +14 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.ts +14 -1
- package/dist/server/model/connection.entity.d.ts +27 -2
- package/dist/server/model/connection.entity.d.ts.map +1 -1
- package/dist/server/model/connection.entity.js +11 -1
- package/dist/server/model/connection.entity.js.map +1 -1
- package/dist/server/model/connection.entity.ts +30 -2
- package/dist/server/service/ai.service.d.ts +15 -0
- package/dist/server/service/ai.service.d.ts.map +1 -1
- package/dist/server/service/ai.service.js +38 -6
- package/dist/server/service/ai.service.js.map +1 -1
- package/dist/server/service/ai.service.ts +43 -6
- package/dist/server/service/connection.service.d.ts +1 -1
- package/dist/server/service/connection.service.d.ts.map +1 -1
- package/dist/server/service/connection.service.js +32 -3
- package/dist/server/service/connection.service.js.map +1 -1
- package/dist/server/service/connection.service.ts +30 -3
- package/dist/server/service/monitor.service.d.ts.map +1 -1
- package/dist/server/service/monitor.service.js +8 -1
- package/dist/server/service/monitor.service.js.map +1 -1
- package/dist/server/service/monitor.service.ts +8 -1
- package/dist/server/service/rdp-tunnel.service.d.ts +22 -0
- package/dist/server/service/rdp-tunnel.service.d.ts.map +1 -0
- package/dist/server/service/rdp-tunnel.service.js +474 -0
- package/dist/server/service/rdp-tunnel.service.js.map +1 -0
- package/dist/server/service/rdp-tunnel.service.ts +439 -0
- package/dist/server/service/rdp.service.d.ts +64 -0
- package/dist/server/service/rdp.service.d.ts.map +1 -0
- package/dist/server/service/rdp.service.js +324 -0
- package/dist/server/service/rdp.service.js.map +1 -0
- package/dist/server/service/rdp.service.ts +324 -0
- package/dist/server/service/ssh.service.d.ts +57 -1
- package/dist/server/service/ssh.service.d.ts.map +1 -1
- package/dist/server/service/ssh.service.js +460 -109
- package/dist/server/service/ssh.service.js.map +1 -1
- package/dist/server/service/ssh.service.ts +455 -107
- package/dist/server/utils/ansi.d.ts +20 -0
- package/dist/server/utils/ansi.d.ts.map +1 -0
- package/dist/server/utils/ansi.js +39 -0
- package/dist/server/utils/ansi.js.map +1 -0
- package/dist/server/utils/ansi.ts +34 -0
- package/dist/server/utils/proxy.d.ts +28 -0
- package/dist/server/utils/proxy.d.ts.map +1 -0
- package/dist/server/utils/proxy.js +596 -0
- package/dist/server/utils/proxy.js.map +1 -0
- package/dist/server/utils/proxy.ts +556 -0
- package/dist/server/utils/rdp-ws.d.ts +15 -0
- package/dist/server/utils/rdp-ws.d.ts.map +1 -0
- package/dist/server/utils/rdp-ws.js +28 -0
- package/dist/server/utils/rdp-ws.js.map +1 -0
- package/dist/server/utils/rdp-ws.ts +32 -0
- package/dist/view/index.html +9 -7
- package/electron/main.js +118 -3
- package/electron/preload.js +4 -0
- package/package.json +32 -31
- package/public/aicmd.png +0 -0
- package/server.js +132 -12
- package/dist/public/rolldown-runtime.js +0 -41
package/README.md
CHANGED
|
@@ -61,6 +61,7 @@ An AI-powered web SSH terminal that combines a full-featured terminal emulator w
|
|
|
61
61
|
|
|
62
62
|
### General
|
|
63
63
|
- **Connection Management**: Visual SSH connection configuration (CRUD) with key-based, password, and auto auth. Supports startup scripts and agent forwarding for jump host workflows.
|
|
64
|
+
- **Connection Proxy**: Per-connection direct / system / custom proxy (HTTP, HTTPS, SOCKS4, SOCKS5) for SSH and RDP, including automatic OS proxy detection and bypass rules. See [Proxy Guide](./docs/proxy.md).
|
|
64
65
|
- **i18n**: Chinese / English UI with runtime language switching.
|
|
65
66
|
- **Desktop App**: Cross-platform desktop client via Electron (Windows, macOS, Linux).
|
|
66
67
|
- **Chat History**: Persistent AI conversation history with browsing and restoration across sessions.
|
|
@@ -68,6 +69,12 @@ An AI-powered web SSH terminal that combines a full-featured terminal emulator w
|
|
|
68
69
|
|
|
69
70
|
## Screenshot
|
|
70
71
|
|
|
72
|
+
**VSCode Extension**
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+
**Desktop / Web**
|
|
77
|
+
|
|
71
78
|

|
|
72
79
|
|
|
73
80
|
## Tech Stack
|
|
@@ -77,6 +84,7 @@ An AI-powered web SSH terminal that combines a full-featured terminal emulator w
|
|
|
77
84
|
| Frontend | Vue 3 + TypeScript + Vite + Bootstrap 5 + xterm.js |
|
|
78
85
|
| Backend | Node.js + Express + WebSocket (ws) |
|
|
79
86
|
| SSH/PTY | ssh2 + node-pty |
|
|
87
|
+
| RDP | IronRDP-WASM + RDCleanPath byte tunnel |
|
|
80
88
|
| AI | OpenAI-compatible API (supports any compatible endpoint) |
|
|
81
89
|
| Build | Vite + TypeScript + electron-builder |
|
|
82
90
|
|
|
@@ -164,15 +172,36 @@ xattr -cr /Applications/AICmd.app
|
|
|
164
172
|
|
|
165
173
|
### Automated Builds (CI/CD)
|
|
166
174
|
|
|
167
|
-
|
|
175
|
+
Two tag prefixes trigger different workflows — push to the `github` remote (the `origin` mirror does not run Actions):
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
# Client installers only (Windows / macOS / Linux)
|
|
179
|
+
git tag v0.1.27
|
|
180
|
+
git push github v0.1.27
|
|
181
|
+
|
|
182
|
+
# Client installers + VSIX + GitHub Release + VS Code Marketplace + Open VSX
|
|
183
|
+
git tag aicmd-v0.1.27
|
|
184
|
+
git push github aicmd-v0.1.27
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
For `aicmd-v*` tags the version must match `packages/vscode/package.json`, otherwise CI fails. Or trigger manually from the **Actions** tab with platform selection.
|
|
188
|
+
|
|
189
|
+
### VSCode Extension
|
|
190
|
+
|
|
191
|
+
AICmd also ships as a VSCode extension that runs the **same** backend and front-end inside the editor — no separate install needed. It launches `server.js` as a child process (bound to `127.0.0.1`) and loads the SPA through a same-origin WebView iframe, so all features (SSH/local terminal, RDP remote desktop, AI Agent, skills, audit, log monitoring, batch ops, file transfer) work in-editor. Connection data is shared with the desktop/CLI via `~/.aicmd/connections.json`.
|
|
192
|
+
|
|
193
|
+
- **Install / build from source**: see [`packages/vscode/README.md`](./packages/vscode/README.md) for detailed setup, usage, settings, and packaging instructions.
|
|
194
|
+
- **Quick dev loop**:
|
|
168
195
|
|
|
169
196
|
```bash
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
#
|
|
197
|
+
pnpm build:vscode # build front-end + backend + extension host
|
|
198
|
+
cd packages/vscode && npm run watch # continuous extension rebuild
|
|
199
|
+
# then press F5 in VSCode to launch the Extension Development Host
|
|
173
200
|
```
|
|
174
201
|
|
|
175
|
-
|
|
202
|
+
- **Package**: `pnpm build:vscode && cd packages/vscode && vsce package` produces a `.vsix`.
|
|
203
|
+
- **Key settings**: `aicmd.dataDir` (data directory, default `~/.aicmd`), `aicmd.startPort` (starting port, default `9802`).
|
|
204
|
+
- **Commands**: `AICmd: 打开终端` (open terminal), plus connection add / edit / delete / refresh in the Activity Bar's **AICmd → Terminal** view.
|
|
176
205
|
|
|
177
206
|
## AI Usage Examples
|
|
178
207
|
|
|
@@ -237,6 +266,7 @@ Then trigger with `/deploy-my-app` in the chat.
|
|
|
237
266
|
|
|
238
267
|
- [Architecture Design](./docs/ARCHITECTURE.md) — Core architecture, Agent loop, skills system, MCP integration
|
|
239
268
|
- [Jump Host Guide](./docs/jump-host.md) — SSH jump host and agent forwarding configuration
|
|
269
|
+
- [Proxy Guide](./docs/proxy.md) — Direct / system / custom proxy configuration for SSH and RDP
|
|
240
270
|
- [Deployment Guide](./docs/deployment.md) — Docker, npm, Electron, and CI/CD deployment
|
|
241
271
|
- [Custom Skills Guide](./docs/skills-guide.md) — How to create and author custom AI skills
|
|
242
272
|
|
|
@@ -321,6 +351,31 @@ The terminal and AI agent work on:
|
|
|
321
351
|
|
|
322
352
|
The AI agent automatically detects the target OS and selects appropriate commands.
|
|
323
353
|
|
|
354
|
+
### Windows Remote Desktop (RDP) Connections
|
|
355
|
+
|
|
356
|
+
In addition to SSH terminals, this tool supports connecting to Windows via a **graphical desktop**. The RDP protocol stack runs **in the browser via IronRDP-WASM** — no guacd daemon, no local RDP client, no third-party software on the target. The local server only provides a thin RDCleanPath byte tunnel to port 3389.
|
|
357
|
+
|
|
358
|
+
**1. Enable Remote Desktop** on the target Windows (Settings → System → Remote Desktop → Enable), and ensure port 3389 is reachable.
|
|
359
|
+
|
|
360
|
+
**2. No server-side setup needed.** The WASM module is bundled with the app. In browser / VSCode mode the local AICmd server exposes `/ws/rdp`; in the Electron desktop app a loopback proxy is started automatically. Nothing else to install.
|
|
361
|
+
|
|
362
|
+
**3. Create a connection**: choose "Windows Remote Desktop (RDP)" as the type, fill in host, port (3389), username, password, and domain (for domain accounts; leave blank for local). Screen size defaults to 1280×800.
|
|
363
|
+
|
|
364
|
+
**4. Use it**: mouse click/move, full keyboard input (including modifier keys and function keys), and adaptive resolution are supported. The toolbar provides clipboard, upload, download, reconnect, and **fullscreen** buttons (native fullscreen where permitted; a CSS fallback in restricted hosts, and window-level fullscreen in the VSCode extension). If another connection to the same machine takes over the session, the old tab shows a disconnected overlay with a one-click reconnect button.
|
|
365
|
+
|
|
366
|
+
**Text clipboard (live)**: copy text locally, then press `Ctrl/Cmd + V` inside the remote desktop — the **current** local clipboard is pushed into the RDP channel at paste time (not the value from when the connection opened). Text copied on the remote is written back to the local clipboard automatically.
|
|
367
|
+
|
|
368
|
+
**Copying files INTO the remote** (3 ways; all need a final paste inside the remote desktop):
|
|
369
|
+
1. **Copy locally + paste (recommended)**: copy files in your OS file manager (Finder / Explorer), click the remote desktop once to focus it, then press `Ctrl/Cmd + V` **inside the remote desktop** — the files ride the paste event into the RDP clipboard and the remote pulls them immediately, with no extra confirmation. This works in the VSCode extension too (the WebView uses a hidden editable target to capture the native paste event inside the cross-origin iframe).
|
|
370
|
+
2. **Toolbar upload**: click the upload (📤) button, choose files, then press `Ctrl/Cmd + V` inside the remote desktop (or right-click → Paste in the target folder). A toast reminds you of this step.
|
|
371
|
+
3. **Drag & drop**: drag files onto the remote desktop canvas, then press `Ctrl/Cmd + V` inside the remote desktop.
|
|
372
|
+
|
|
373
|
+
The file transfer panel at the bottom shows each file's name and status (`waiting for remote paste` → transferred); large files are streamed in chunks. To copy files **out**, copy them in the remote Windows and click the download (📥) button.
|
|
374
|
+
|
|
375
|
+
> - On macOS, `Cmd + V` is mapped to the remote Windows `Ctrl + V`, so Mac copy/paste shortcuts work as expected.
|
|
376
|
+
> - In the VSCode extension, "copy locally + paste" works directly — the WebView uses a hidden editable target to capture the native paste event (with `clipboardData.files`) inside the cross-origin iframe. If a host still blocks file clipboard access, the toolbar upload button remains as a fallback.
|
|
377
|
+
> - Works in all three modes: browser + local server, VSCode extension, and the Electron desktop app. CredSSP is enabled by default.
|
|
378
|
+
|
|
324
379
|
## License
|
|
325
380
|
|
|
326
381
|
MIT
|
package/README.zh.md
CHANGED
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
### 通用
|
|
63
63
|
- **连接管理**:可视化 SSH 连接配置(增删改查),支持密钥、密码和自动认证。支持启动脚本和 Agent 转发用于跳板机工作流。
|
|
64
|
+
- **连接代理**:SSH / RDP 连接可单独配置直连、系统代理或自定义代理(HTTP、HTTPS、SOCKS4、SOCKS5),自动读取系统代理并支持绕过规则。详见[代理配置指南](./docs/proxy.md)。
|
|
64
65
|
- **国际化**:中文 / 英文 UI,运行时语言切换。
|
|
65
66
|
- **桌面应用**:通过 Electron 提供跨平台桌面客户端(Windows、macOS、Linux)。
|
|
66
67
|
- **聊天历史**:持久化 AI 对话历史,支持跨会话浏览和恢复。
|
|
@@ -77,6 +78,7 @@
|
|
|
77
78
|
| 前端 | Vue 3 + TypeScript + Vite + Bootstrap 5 + xterm.js |
|
|
78
79
|
| 后端 | Node.js + Express + WebSocket (ws) |
|
|
79
80
|
| SSH/PTY | ssh2 + node-pty |
|
|
81
|
+
| RDP | IronRDP-WASM + RDCleanPath 字节隧道 |
|
|
80
82
|
| AI | OpenAI 兼容 API(支持任意兼容端点) |
|
|
81
83
|
| 构建 | Vite + TypeScript + electron-builder |
|
|
82
84
|
|
|
@@ -153,15 +155,36 @@ pnpm electron:build:linux # Linux(AppImage)
|
|
|
153
155
|
|
|
154
156
|
### 自动化构建(CI/CD)
|
|
155
157
|
|
|
156
|
-
|
|
158
|
+
两种标签前缀触发不同流程,需推送到 `github` 远端(`origin` 镜像不会触发 Actions):
|
|
157
159
|
|
|
158
160
|
```bash
|
|
159
|
-
|
|
160
|
-
git
|
|
161
|
-
|
|
161
|
+
# 仅构建客户端(Windows / macOS / Linux)
|
|
162
|
+
git tag v0.1.27
|
|
163
|
+
git push github v0.1.27
|
|
164
|
+
|
|
165
|
+
# 客户端 + VSIX + GitHub Release + VS Code 插件市场 + Open VSX 发布
|
|
166
|
+
git tag aicmd-v0.1.27
|
|
167
|
+
git push github aicmd-v0.1.27
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
`aicmd-v*` 标签的版本号必须与 `packages/vscode/package.json` 一致,否则 CI 会失败。也可在 **Actions** 页面手动触发并选择平台。
|
|
171
|
+
|
|
172
|
+
### VSCode 插件
|
|
173
|
+
|
|
174
|
+
AICmd 也提供 VSCode 插件,在编辑器内运行**同一套**前后端,无需额外安装。插件以子进程启动 `server.js`(绑定 `127.0.0.1`),通过 WebView iframe 加载 SPA,因此所有功能(SSH/本地终端、AI Agent、技能、审计、日志监控、批量操作、文件传输、RDP 远程桌面)都可在编辑器内使用。连接数据与桌面端/CLI 共享 `~/.aicmd/connections.json`。
|
|
175
|
+
|
|
176
|
+
- **安装 / 从源码构建**:配置、使用、设置和打包说明见 [`packages/vscode/README.md`](./packages/vscode/README.md)。
|
|
177
|
+
- **快速开发循环**:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
pnpm build:vscode # 构建前端 + 后端 + 扩展宿主
|
|
181
|
+
cd packages/vscode && npm run watch # 持续重编译扩展
|
|
182
|
+
# 然后在 VSCode 中按 F5 启动扩展开发宿主
|
|
162
183
|
```
|
|
163
184
|
|
|
164
|
-
|
|
185
|
+
- **打包**:`pnpm build:vscode && cd packages/vscode && vsce package` 生成 `.vsix`。
|
|
186
|
+
- **关键设置**:`aicmd.dataDir`(数据目录,默认 `~/.aicmd`)、`aicmd.startPort`(起始端口,默认 `9802`)。
|
|
187
|
+
- **命令**:`AICmd: 打开终端`,以及活动栏 **AICmd → Terminal** 视图中的连接增删改查/刷新。
|
|
165
188
|
|
|
166
189
|
## AI 使用示例
|
|
167
190
|
|
|
@@ -226,6 +249,7 @@ tags: [deploy, ops]
|
|
|
226
249
|
|
|
227
250
|
- [架构设计](./docs/ARCHITECTURE.md) — 核心架构、Agent 循环、技能系统、MCP 集成
|
|
228
251
|
- [跳板机指南](./docs/jump-host.md) — SSH 跳板机和 Agent 转发配置
|
|
252
|
+
- [代理配置指南](./docs/proxy.md) — SSH / RDP 的直连、系统代理与自定义代理配置
|
|
229
253
|
- [部署指南](./docs/deployment.md) — Docker、npm、Electron、CI/CD 部署方式
|
|
230
254
|
- [自定义技能指南](./docs/skills-guide.md) — 如何创建和编写自定义 AI 技能
|
|
231
255
|
|
|
@@ -310,6 +334,43 @@ AI Agent 内置了命令级安全防护,降低破坏性操作的风险:
|
|
|
310
334
|
|
|
311
335
|
AI Agent 自动检测目标操作系统并选择合适的命令。
|
|
312
336
|
|
|
337
|
+
### 连接 Windows / macOS 远程主机
|
|
338
|
+
|
|
339
|
+
本工具通过标准 SSH 协议连接任意开启了 SSH 服务的主机,因此**无需在目标机上安装任何客户端**。前提是目标机已启用 SSH 服务(默认都是关闭的):
|
|
340
|
+
|
|
341
|
+
- **macOS**:系统设置 → 通用 → 共享 → 打开「远程登录」(Remote Login)。连接后默认 shell 为 zsh/bash,CWD 跟踪走 `lsof`。
|
|
342
|
+
- **Windows 10/11**:设置 → 应用 → 可选功能 → 添加功能 → 安装 **OpenSSH 服务器**;然后在 PowerShell(管理员)执行 `Start-Service sshd` 并将启动类型设为自动,放行 22 端口防火墙。连接后默认 shell 为 PowerShell。
|
|
343
|
+
|
|
344
|
+
连接时可在「目标平台」中选择 Windows / macOS 以获得更精准的系统信息采集、目录跟踪与文件传输路径;选「自动」也会在连接后自动探测(通过 `uname` 判断)。
|
|
345
|
+
|
|
346
|
+
> Windows OpenSSH 的 SFTP 子系统以 `C:/Users/name/file` 形式表示路径,工具已自动转换,无需手动处理。
|
|
347
|
+
|
|
348
|
+
### Windows 远程桌面(RDP)连接
|
|
349
|
+
|
|
350
|
+
除了 SSH 终端,本工具还支持以**图形桌面**方式连接 Windows。RDP 协议栈**在浏览器内通过 IronRDP-WASM 运行**——无需 guacd 守护进程、无需本机 RDP 客户端,目标机也无需安装任何第三方软件。本地服务端仅提供一条到 3389 端口的轻量 RDCleanPath 字节隧道。
|
|
351
|
+
|
|
352
|
+
**1. 目标 Windows 开启远程桌面**(设置 → 系统 → 远程桌面 → 启用远程桌面),确保网络可达 3389 端口。
|
|
353
|
+
|
|
354
|
+
**2. 无需服务端部署。** WASM 模块随应用一起打包。浏览器 / VSCode 模式下由本地 AICmd 服务暴露 `/ws/rdp`;Electron 桌面端会自动启动一个仅监听本机的代理。无需额外安装任何东西。
|
|
355
|
+
|
|
356
|
+
**3. 新建连接**:连接类型选择「Windows 远程桌面 (RDP)」,填写主机、端口(3389)、用户名、密码,以及域(域账户填写,本地账户留空);分辨率默认 1280×800,可按需要调整。
|
|
357
|
+
|
|
358
|
+
**4. 使用**:打开连接后即可看到远程桌面,支持鼠标点击/移动、完整键盘输入(含组合键与功能键)、分辨率自适应。工具栏提供剪贴板、上传、下载、重新连接、**全屏**按钮(在允许的环境使用原生全屏,受限宿主降级为 CSS 铺满,VSCode 插件中则请求扩展执行窗口级全屏)。若同一台机器的新连接接管了会话,旧标签页会显示断开提示并提供一键重连。
|
|
359
|
+
|
|
360
|
+
**文本剪贴板(实时)**:在本地复制文本后,到远程桌面里按 `Ctrl/Cmd + V` 即可粘贴——粘贴瞬间会把**当前**本地剪贴板内容推入 RDP 通道,而不是连接建立时的旧内容;远程复制的文本也会自动写回本地剪贴板。工具栏剪贴板按钮也能主动推送当前文本。
|
|
361
|
+
|
|
362
|
+
**复制文件到远程(3 种方式,最后都需在远程桌面内粘贴一次)**:
|
|
363
|
+
1. **本地复制 + 粘贴(推荐)**:在本机文件管理器里复制文件(Finder / 资源管理器),点一下远程桌面窗口使其聚焦,然后在**远程桌面内按 `Ctrl/Cmd + V`**——文件会随 paste 事件进入 RDP 剪贴板,远程立即拉取,无需额外确认。VSCode 插件里同样可以这么用(WebView 内用隐藏可编辑层接收原生 paste 事件,跨源 iframe 也能拿到文件)。
|
|
364
|
+
2. **工具栏上传**:点 RDP 工具栏的上传按钮(📤)选择文件,然后在**远程桌面内按 `Ctrl/Cmd + V`**(或在目标文件夹右键 → 粘贴)完成传输。选择后会有提示提醒这一步。
|
|
365
|
+
3. **拖拽**:把本机文件拖到远程桌面画布上,再在远程桌面内按 `Ctrl/Cmd + V` 粘贴。
|
|
366
|
+
|
|
367
|
+
传输开始后,桌面底部的「文件传输」面板会显示各文件名与状态(`等待远程粘贴` → 已传输),大文件分块流式传输。
|
|
368
|
+
|
|
369
|
+
> - macOS 下 `Cmd + V` 会映射为远程 Windows 的 `Ctrl + V`,Mac 的复制粘贴快捷键照常可用。
|
|
370
|
+
> - VSCode 插件中「本地复制 + 粘贴」可直接用;WebView 通过隐藏可编辑层接收原生 paste 事件,跨源 iframe 也能拿到本地文件。个别宿主若仍拦截文件剪贴板,可用工具栏上传按钮兜底。
|
|
371
|
+
> - 从远程复制文件出来:在远程 Windows 里复制文件后,点工具栏下载按钮(📥)即可保存到本地「下载」目录。
|
|
372
|
+
> - 三种模式均可用:浏览器 + 本地服务端、VSCode 插件、Electron 桌面端。默认启用 CredSSP。
|
|
373
|
+
|
|
313
374
|
## 许可证
|
|
314
375
|
|
|
315
376
|
MIT
|
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
+
"_ai-settings.css": {
|
|
3
|
+
"file": "ai-settings.css",
|
|
4
|
+
"src": "_ai-settings.css"
|
|
5
|
+
},
|
|
6
|
+
"_ai-settings.js": {
|
|
7
|
+
"file": "ai-settings.js",
|
|
8
|
+
"name": "ai-settings",
|
|
9
|
+
"imports": [
|
|
10
|
+
"_vscode-clipboard.js",
|
|
11
|
+
"_vue.js",
|
|
12
|
+
"_selection-copy.js",
|
|
13
|
+
"_xterm.js",
|
|
14
|
+
"_zmodem.js",
|
|
15
|
+
"_connection.js"
|
|
16
|
+
],
|
|
17
|
+
"css": [
|
|
18
|
+
"ai-settings.css"
|
|
19
|
+
],
|
|
20
|
+
"assets": [
|
|
21
|
+
"rdp_client_bg.wasm"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
2
24
|
"_bootstrap.css": {
|
|
3
25
|
"file": "bootstrap.css",
|
|
4
26
|
"src": "_bootstrap.css"
|
|
@@ -7,7 +29,7 @@
|
|
|
7
29
|
"file": "bootstrap.js",
|
|
8
30
|
"name": "bootstrap",
|
|
9
31
|
"imports": [
|
|
10
|
-
"
|
|
32
|
+
"_vscode-clipboard.js"
|
|
11
33
|
],
|
|
12
34
|
"css": [
|
|
13
35
|
"bootstrap.css"
|
|
@@ -17,15 +39,56 @@
|
|
|
17
39
|
"bootstrap-icons.woff"
|
|
18
40
|
]
|
|
19
41
|
},
|
|
20
|
-
"
|
|
21
|
-
"file": "
|
|
22
|
-
"
|
|
42
|
+
"_connection-editor.css": {
|
|
43
|
+
"file": "connection-editor.css",
|
|
44
|
+
"src": "_connection-editor.css"
|
|
45
|
+
},
|
|
46
|
+
"_connection-editor.js": {
|
|
47
|
+
"file": "connection-editor.js",
|
|
48
|
+
"name": "connection-editor",
|
|
49
|
+
"imports": [
|
|
50
|
+
"_vscode-clipboard.js",
|
|
51
|
+
"_vue.js",
|
|
52
|
+
"_selection-copy.js",
|
|
53
|
+
"_connection.js"
|
|
54
|
+
],
|
|
55
|
+
"css": [
|
|
56
|
+
"connection-editor.css"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"_connection.js": {
|
|
60
|
+
"file": "connection.js",
|
|
61
|
+
"name": "connection",
|
|
62
|
+
"imports": [
|
|
63
|
+
"_vscode-clipboard.js",
|
|
64
|
+
"_selection-copy.js"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"_selection-copy.css": {
|
|
68
|
+
"file": "selection-copy.css",
|
|
69
|
+
"src": "_selection-copy.css"
|
|
70
|
+
},
|
|
71
|
+
"_selection-copy.js": {
|
|
72
|
+
"file": "selection-copy.js",
|
|
73
|
+
"name": "selection-copy",
|
|
74
|
+
"imports": [
|
|
75
|
+
"_vscode-clipboard.js",
|
|
76
|
+
"_vue.js",
|
|
77
|
+
"_bootstrap.js"
|
|
78
|
+
],
|
|
79
|
+
"css": [
|
|
80
|
+
"selection-copy.css"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"_vscode-clipboard.js": {
|
|
84
|
+
"file": "vscode-clipboard.js",
|
|
85
|
+
"name": "vscode-clipboard"
|
|
23
86
|
},
|
|
24
87
|
"_vue.js": {
|
|
25
88
|
"file": "vue.js",
|
|
26
89
|
"name": "vue",
|
|
27
90
|
"imports": [
|
|
28
|
-
"
|
|
91
|
+
"_vscode-clipboard.js"
|
|
29
92
|
]
|
|
30
93
|
},
|
|
31
94
|
"_xterm.css": {
|
|
@@ -36,19 +99,30 @@
|
|
|
36
99
|
"file": "xterm.js",
|
|
37
100
|
"name": "xterm",
|
|
38
101
|
"imports": [
|
|
39
|
-
"
|
|
102
|
+
"_vscode-clipboard.js"
|
|
40
103
|
],
|
|
41
104
|
"css": [
|
|
42
105
|
"xterm.css"
|
|
43
106
|
]
|
|
44
107
|
},
|
|
45
|
-
"
|
|
108
|
+
"_zmodem.js": {
|
|
109
|
+
"file": "zmodem.js",
|
|
110
|
+
"name": "zmodem",
|
|
111
|
+
"imports": [
|
|
112
|
+
"_vscode-clipboard.js"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"node_modules/.pnpm/bootstrap-icons@1.13.2/node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff": {
|
|
46
116
|
"file": "bootstrap-icons.woff",
|
|
47
|
-
"src": "node_modules/.pnpm/bootstrap-icons@1.13.
|
|
117
|
+
"src": "node_modules/.pnpm/bootstrap-icons@1.13.2/node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff"
|
|
48
118
|
},
|
|
49
|
-
"node_modules/.pnpm/bootstrap-icons@1.13.
|
|
119
|
+
"node_modules/.pnpm/bootstrap-icons@1.13.2/node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2": {
|
|
50
120
|
"file": "bootstrap-icons.woff2",
|
|
51
|
-
"src": "node_modules/.pnpm/bootstrap-icons@1.13.
|
|
121
|
+
"src": "node_modules/.pnpm/bootstrap-icons@1.13.2/node_modules/bootstrap-icons/font/fonts/bootstrap-icons.woff2"
|
|
122
|
+
},
|
|
123
|
+
"node_modules/.pnpm/ironrdp-wasm@1.3.0/node_modules/ironrdp-wasm/pkg/rdp_client_bg.wasm": {
|
|
124
|
+
"file": "rdp_client_bg.wasm",
|
|
125
|
+
"src": "node_modules/.pnpm/ironrdp-wasm@1.3.0/node_modules/ironrdp-wasm/pkg/rdp_client_bg.wasm"
|
|
52
126
|
},
|
|
53
127
|
"public/favicon.ico": {
|
|
54
128
|
"file": "favicon.ico",
|
|
@@ -60,8 +134,9 @@
|
|
|
60
134
|
"src": "src/index.html",
|
|
61
135
|
"isEntry": true,
|
|
62
136
|
"imports": [
|
|
63
|
-
"
|
|
137
|
+
"_vscode-clipboard.js",
|
|
64
138
|
"_vue.js",
|
|
139
|
+
"_selection-copy.js",
|
|
65
140
|
"_bootstrap.js"
|
|
66
141
|
],
|
|
67
142
|
"dynamicImports": [
|
|
@@ -74,19 +149,64 @@
|
|
|
74
149
|
"favicon.ico"
|
|
75
150
|
]
|
|
76
151
|
},
|
|
152
|
+
"src/term.html": {
|
|
153
|
+
"file": "term.js",
|
|
154
|
+
"name": "term",
|
|
155
|
+
"src": "src/term.html",
|
|
156
|
+
"isEntry": true,
|
|
157
|
+
"imports": [
|
|
158
|
+
"_vscode-clipboard.js",
|
|
159
|
+
"_xterm.js",
|
|
160
|
+
"_zmodem.js"
|
|
161
|
+
],
|
|
162
|
+
"css": [
|
|
163
|
+
"term.css"
|
|
164
|
+
]
|
|
165
|
+
},
|
|
77
166
|
"src/views/index.vue": {
|
|
78
167
|
"file": "views.js",
|
|
79
168
|
"name": "views",
|
|
80
169
|
"src": "src/views/index.vue",
|
|
81
170
|
"isDynamicEntry": true,
|
|
82
171
|
"imports": [
|
|
83
|
-
"
|
|
172
|
+
"_vscode-clipboard.js",
|
|
84
173
|
"_vue.js",
|
|
174
|
+
"_selection-copy.js",
|
|
85
175
|
"src/index.html",
|
|
86
|
-
"
|
|
176
|
+
"_connection.js",
|
|
177
|
+
"_connection-editor.js",
|
|
178
|
+
"_ai-settings.js"
|
|
87
179
|
],
|
|
88
180
|
"css": [
|
|
89
181
|
"views.css"
|
|
90
182
|
]
|
|
183
|
+
},
|
|
184
|
+
"src/vscode-edit.html": {
|
|
185
|
+
"file": "vscode-edit.js",
|
|
186
|
+
"name": "vscode-edit",
|
|
187
|
+
"src": "src/vscode-edit.html",
|
|
188
|
+
"isEntry": true,
|
|
189
|
+
"imports": [
|
|
190
|
+
"_vscode-clipboard.js",
|
|
191
|
+
"_vue.js",
|
|
192
|
+
"_selection-copy.js",
|
|
193
|
+
"_bootstrap.js",
|
|
194
|
+
"_connection.js",
|
|
195
|
+
"_connection-editor.js"
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
"src/vscode-term.html": {
|
|
199
|
+
"file": "vscode-term.js",
|
|
200
|
+
"name": "vscode-term",
|
|
201
|
+
"src": "src/vscode-term.html",
|
|
202
|
+
"isEntry": true,
|
|
203
|
+
"imports": [
|
|
204
|
+
"_vscode-clipboard.js",
|
|
205
|
+
"_vue.js",
|
|
206
|
+
"_selection-copy.js",
|
|
207
|
+
"_bootstrap.js",
|
|
208
|
+
"_connection.js",
|
|
209
|
+
"_ai-settings.js"
|
|
210
|
+
]
|
|
91
211
|
}
|
|
92
212
|
}
|