@fefeding/aicmd 1.0.27 → 1.0.30
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 +2 -0
- package/README.zh.md +2 -0
- package/dist/public/ai-settings.css +22 -22
- package/dist/public/ai-settings.js +57 -4
- package/dist/public/connection-editor.css +2 -2
- package/dist/public/connection-editor.js +162 -43
- package/dist/public/selection-copy.js +42 -3
- package/dist/public/src/term.html +6 -6
- package/dist/public/src/vscode-edit.html +10 -10
- package/dist/public/src/vscode-term.html +13 -13
- package/dist/server/model/connection.entity.d.ts +17 -0
- package/dist/server/model/connection.entity.d.ts.map +1 -1
- package/dist/server/model/connection.entity.js +2 -0
- package/dist/server/model/connection.entity.js.map +1 -1
- package/dist/server/model/connection.entity.ts +19 -0
- 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.map +1 -1
- package/dist/server/service/rdp-tunnel.service.js +50 -40
- package/dist/server/service/rdp-tunnel.service.js.map +1 -1
- package/dist/server/service/rdp-tunnel.service.ts +50 -39
- package/dist/server/service/ssh.service.d.ts.map +1 -1
- package/dist/server/service/ssh.service.js +3 -2
- package/dist/server/service/ssh.service.js.map +1 -1
- package/dist/server/service/ssh.service.ts +3 -2
- 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/view/index.html +9 -9
- package/package.json +1 -1
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.
|
|
@@ -265,6 +266,7 @@ Then trigger with `/deploy-my-app` in the chat.
|
|
|
265
266
|
|
|
266
267
|
- [Architecture Design](./docs/ARCHITECTURE.md) — Core architecture, Agent loop, skills system, MCP integration
|
|
267
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
|
|
268
270
|
- [Deployment Guide](./docs/deployment.md) — Docker, npm, Electron, and CI/CD deployment
|
|
269
271
|
- [Custom Skills Guide](./docs/skills-guide.md) — How to create and author custom AI skills
|
|
270
272
|
|
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 对话历史,支持跨会话浏览和恢复。
|
|
@@ -248,6 +249,7 @@ tags: [deploy, ops]
|
|
|
248
249
|
|
|
249
250
|
- [架构设计](./docs/ARCHITECTURE.md) — 核心架构、Agent 循环、技能系统、MCP 集成
|
|
250
251
|
- [跳板机指南](./docs/jump-host.md) — SSH 跳板机和 Agent 转发配置
|
|
252
|
+
- [代理配置指南](./docs/proxy.md) — SSH / RDP 的直连、系统代理与自定义代理配置
|
|
251
253
|
- [部署指南](./docs/deployment.md) — Docker、npm、Electron、CI/CD 部署方式
|
|
252
254
|
- [自定义技能指南](./docs/skills-guide.md) — 如何创建和编写自定义 AI 技能
|
|
253
255
|
|
|
@@ -1808,50 +1808,50 @@ to { transform: rotate(360deg);
|
|
|
1808
1808
|
text-align: center;
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
|
-
.rdp-tab[data-v-
|
|
1811
|
+
.rdp-tab[data-v-18fca4ff] { display: flex; flex-direction: column; width: 100%; height: 100%; background: #1a1a1a; position: relative;
|
|
1812
1812
|
}
|
|
1813
|
-
.rdp-toolbar[data-v-
|
|
1813
|
+
.rdp-toolbar[data-v-18fca4ff] { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; background: #252526; border-bottom: 1px solid #333; color: #ccc; font-size: 12px; flex-shrink: 0;
|
|
1814
1814
|
}
|
|
1815
|
-
.rdp-title[data-v-
|
|
1815
|
+
.rdp-title[data-v-18fca4ff] { flex: 1; font-weight: 600;
|
|
1816
1816
|
}
|
|
1817
|
-
.rdp-status[data-v-
|
|
1817
|
+
.rdp-status[data-v-18fca4ff] { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #333;
|
|
1818
1818
|
}
|
|
1819
|
-
.rdp-status.connected[data-v-
|
|
1819
|
+
.rdp-status.connected[data-v-18fca4ff] { background: #2d5a3d; color: #b7e4c7;
|
|
1820
1820
|
}
|
|
1821
|
-
.rdp-status.error[data-v-
|
|
1821
|
+
.rdp-status.error[data-v-18fca4ff] { background: #6b2b2b; color: #f0b7b7;
|
|
1822
1822
|
}
|
|
1823
|
-
.rdp-btn[data-v-
|
|
1823
|
+
.rdp-btn[data-v-18fca4ff] { background: transparent; border: none; color: #ccc; cursor: pointer; padding: 3px 6px; border-radius: 3px; font-size: 13px;
|
|
1824
1824
|
}
|
|
1825
|
-
.rdp-btn[data-v-
|
|
1825
|
+
.rdp-btn[data-v-18fca4ff]:hover:not(:disabled) { background: #3a3a3a;
|
|
1826
1826
|
}
|
|
1827
|
-
.rdp-btn[data-v-
|
|
1827
|
+
.rdp-btn[data-v-18fca4ff]:disabled { opacity: 0.4; cursor: default;
|
|
1828
1828
|
}
|
|
1829
|
-
.rdp-file-input[data-v-
|
|
1829
|
+
.rdp-file-input[data-v-18fca4ff] { display: none;
|
|
1830
1830
|
}
|
|
1831
1831
|
/* 隐藏粘贴接收层:必须保持可编辑且不可 display:none(否则无法聚焦/接收 paste) */
|
|
1832
|
-
.rdp-paste-sink[data-v-
|
|
1832
|
+
.rdp-paste-sink[data-v-18fca4ff] { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; border: none; padding: 0; resize: none;
|
|
1833
1833
|
}
|
|
1834
|
-
.rdp-viewport[data-v-
|
|
1834
|
+
.rdp-viewport[data-v-18fca4ff] { flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #000; position: relative; min-height: 0;
|
|
1835
1835
|
}
|
|
1836
|
-
.rdp-canvas[data-v-
|
|
1836
|
+
.rdp-canvas[data-v-18fca4ff] { outline: none; flex-shrink: 0; display: block;
|
|
1837
1837
|
}
|
|
1838
|
-
.rdp-overlay[data-v-
|
|
1838
|
+
.rdp-overlay[data-v-18fca4ff] { position: absolute; inset: 34px 0 0 0; display: flex; align-items: center; justify-content: center; background: rgba(26,26,26,0.85); color: #ccc; font-size: 13px; z-index: 5;
|
|
1839
1839
|
}
|
|
1840
|
-
.rdp-error[data-v-
|
|
1840
|
+
.rdp-error[data-v-18fca4ff] { color: #f0b7b7;
|
|
1841
1841
|
}
|
|
1842
|
-
.rdp-disconnected[data-v-
|
|
1842
|
+
.rdp-disconnected[data-v-18fca4ff] { gap: 4px; color: #ccc;
|
|
1843
1843
|
}
|
|
1844
|
-
.rdp-ft-panel[data-v-
|
|
1844
|
+
.rdp-ft-panel[data-v-18fca4ff] { position: absolute; right: 10px; bottom: 10px; width: 240px; max-height: 180px; background: rgba(37,37,38,0.95); border: 1px solid #444; border-radius: 4px; color: #ccc; font-size: 11px; z-index: 4; overflow: hidden;
|
|
1845
1845
|
}
|
|
1846
|
-
.rdp-ft-header[data-v-
|
|
1846
|
+
.rdp-ft-header[data-v-18fca4ff] { padding: 5px 8px; border-bottom: 1px solid #444; font-weight: 600;
|
|
1847
1847
|
}
|
|
1848
|
-
.rdp-ft-items[data-v-
|
|
1848
|
+
.rdp-ft-items[data-v-18fca4ff] { max-height: 140px; overflow-y: auto; padding: 4px 8px;
|
|
1849
1849
|
}
|
|
1850
|
-
.rdp-ft-item[data-v-
|
|
1850
|
+
.rdp-ft-item[data-v-18fca4ff] { display: flex; justify-content: space-between; gap: 6px; padding: 2px 0;
|
|
1851
1851
|
}
|
|
1852
|
-
.rdp-ft-name[data-v-
|
|
1852
|
+
.rdp-ft-name[data-v-18fca4ff] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
1853
1853
|
}
|
|
1854
|
-
.rdp-ft-state[data-v-
|
|
1854
|
+
.rdp-ft-state[data-v-18fca4ff] { color: #8ab4f8; flex-shrink: 0;
|
|
1855
1855
|
}
|
|
1856
1856
|
|
|
1857
1857
|
.ai-settings-form[data-v-226da730] {
|
|
@@ -6786,12 +6786,65 @@ var init_rdp_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
6786
6786
|
let cssFullscreen = false;
|
|
6787
6787
|
let fullscreenChangeHandler = null;
|
|
6788
6788
|
let fullscreenKeyHandler = null;
|
|
6789
|
+
/** IronRDP-WASM 的 IronError.kind() 是数字枚举,转成可读文案 */
|
|
6790
|
+
const IRON_ERROR_KIND = {
|
|
6791
|
+
0: "未知错误",
|
|
6792
|
+
1: "密码错误",
|
|
6793
|
+
2: "登录失败",
|
|
6794
|
+
3: "访问被拒绝",
|
|
6795
|
+
4: "RDCleanPath 隧道错误",
|
|
6796
|
+
5: "代理连接失败",
|
|
6797
|
+
6: "协议协商失败"
|
|
6798
|
+
};
|
|
6799
|
+
/** IronError 是 wasm_bindgen 包装对象,没有 message,需主动调用它的方法取信息 */
|
|
6800
|
+
function formatIronError(e) {
|
|
6801
|
+
if (!e || typeof e !== "object") return null;
|
|
6802
|
+
if (typeof e.backtrace !== "function" && typeof e.kind !== "function") return null;
|
|
6803
|
+
const parts = [];
|
|
6804
|
+
try {
|
|
6805
|
+
if (typeof e.kind === "function") {
|
|
6806
|
+
const kind = e.kind();
|
|
6807
|
+
parts.push(IRON_ERROR_KIND[kind] || `错误类型 ${kind}`);
|
|
6808
|
+
}
|
|
6809
|
+
} catch {}
|
|
6810
|
+
try {
|
|
6811
|
+
if (typeof e.backtrace === "function") {
|
|
6812
|
+
const trace = e.backtrace();
|
|
6813
|
+
if (typeof trace === "string" && trace.trim()) {
|
|
6814
|
+
const lines = trace.split("\n").map((line) => line.trim()).filter(Boolean);
|
|
6815
|
+
const stackAt = lines.findIndex((line) => /^Stack backtrace:/i.test(line));
|
|
6816
|
+
const head = (stackAt >= 0 ? lines.slice(0, stackAt) : lines).slice(0, 5).join(" / ");
|
|
6817
|
+
if (head) parts.push(head);
|
|
6818
|
+
}
|
|
6819
|
+
}
|
|
6820
|
+
} catch {}
|
|
6821
|
+
try {
|
|
6822
|
+
if (typeof e.rdcleanpathDetails === "function") {
|
|
6823
|
+
const detail = e.rdcleanpathDetails();
|
|
6824
|
+
if (detail) {
|
|
6825
|
+
const bits = [];
|
|
6826
|
+
const add = (value, label) => {
|
|
6827
|
+
if (typeof value === "number") bits.push(`${label}=${value}`);
|
|
6828
|
+
};
|
|
6829
|
+
add(detail.errorCode, "code");
|
|
6830
|
+
add(detail.httpStatusCode, "http");
|
|
6831
|
+
add(detail.tlsAlertCode, "tls");
|
|
6832
|
+
add(detail.wsaErrorCode, "wsa");
|
|
6833
|
+
if (bits.length) parts.push(`RDCleanPath(${bits.join(", ")})`);
|
|
6834
|
+
}
|
|
6835
|
+
}
|
|
6836
|
+
} catch {}
|
|
6837
|
+
return parts.length ? parts.join(":") : null;
|
|
6838
|
+
}
|
|
6789
6839
|
function formatError(e) {
|
|
6790
6840
|
if (e == null) return "未知错误";
|
|
6791
6841
|
if (typeof e === "string") return e;
|
|
6792
6842
|
if (typeof e === "object") {
|
|
6843
|
+
const iron = formatIronError(e);
|
|
6844
|
+
if (iron) return iron;
|
|
6793
6845
|
const msg = e.message || e.msg || e.reason || e.description;
|
|
6794
6846
|
if (typeof msg === "string" && msg) return msg;
|
|
6847
|
+
if (e.cause) return formatError(e.cause);
|
|
6795
6848
|
try {
|
|
6796
6849
|
const json = JSON.stringify(e);
|
|
6797
6850
|
if (json && json !== "{}") return json;
|
|
@@ -7314,16 +7367,16 @@ var init_rdp_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
7314
7367
|
}
|
|
7315
7368
|
});
|
|
7316
7369
|
}));
|
|
7317
|
-
// src/components/rdp-tab.vue?vue&type=style&index=0&scoped=
|
|
7318
|
-
var
|
|
7370
|
+
// src/components/rdp-tab.vue?vue&type=style&index=0&scoped=18fca4ff&lang.css
|
|
7371
|
+
var init_rdp_tab_vue_vue_type_style_index_0_scoped_18fca4ff_lang = __esmMin((() => {}));
|
|
7319
7372
|
// src/components/rdp-tab.vue
|
|
7320
7373
|
var rdp_tab_default;
|
|
7321
7374
|
var init_rdp_tab = __esmMin((() => {
|
|
7322
7375
|
init_rdp_tab_vue_vue_type_script_setup_true_lang();
|
|
7323
7376
|
init_rdp_tab_vue_vue_type_script_setup_true_lang();
|
|
7324
|
-
|
|
7377
|
+
init_rdp_tab_vue_vue_type_style_index_0_scoped_18fca4ff_lang();
|
|
7325
7378
|
init__plugin_vue_export_helper();
|
|
7326
|
-
rdp_tab_default = /*#__PURE__*/ _plugin_vue_export_helper_default(rdp_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
7379
|
+
rdp_tab_default = /*#__PURE__*/ _plugin_vue_export_helper_default(rdp_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-18fca4ff"]]);
|
|
7327
7380
|
}));
|
|
7328
7381
|
// src/components/ai-settings/index.vue?vue&type=script&setup=true&lang.ts
|
|
7329
7382
|
var _hoisted_1, _hoisted_2, _hoisted_3, _hoisted_4, _hoisted_5, _hoisted_6, _hoisted_7, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, _hoisted_13, _hoisted_14, _hoisted_15, _hoisted_16, _hoisted_17, _hoisted_18, _hoisted_19, _hoisted_20, _hoisted_21, _hoisted_22, _hoisted_23, _hoisted_24, _hoisted_25, index_vue_vue_type_script_setup_true_lang_default;
|