@fefeding/aicmd 1.0.28 → 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.
|
@@ -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;
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AICmd Terminal</title>
|
|
7
|
-
<script type="module" crossorigin src="/public/term.js?v=
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/public/term.css?v=
|
|
7
|
+
<script type="module" crossorigin src="/public/term.js?v=mww88qi9"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=mww88qi9">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=mww88qi9">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=mww88qi9">
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/public/term.css?v=mww88qi9">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="terminal"></div>
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AICmd 连接编辑</title>
|
|
7
|
-
<script type="module" crossorigin src="/public/vscode-edit.js?v=
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/public/vue.js?v=
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/public/connection.js?v=
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/public/connection-editor.js?v=
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/public/connection-editor.css?v=
|
|
7
|
+
<script type="module" crossorigin src="/public/vscode-edit.js?v=mww88qi9"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/public/vue.js?v=mww88qi9">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=mww88qi9">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=mww88qi9">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/public/connection.js?v=mww88qi9">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/public/connection-editor.js?v=mww88qi9">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=mww88qi9">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=mww88qi9">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/public/connection-editor.css?v=mww88qi9">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<div id="app" style="height: 100vh;"></div>
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AICmd Terminal</title>
|
|
7
|
-
<script type="module" crossorigin src="/public/vscode-term.js?v=
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/public/vue.js?v=
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/public/connection.js?v=
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/public/ai-settings.js?v=
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=
|
|
17
|
-
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=
|
|
18
|
-
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=
|
|
19
|
-
<link rel="stylesheet" crossorigin href="/public/ai-settings.css?v=
|
|
7
|
+
<script type="module" crossorigin src="/public/vscode-term.js?v=mww88qi9"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/public/vue.js?v=mww88qi9">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=mww88qi9">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=mww88qi9">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/public/connection.js?v=mww88qi9">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=mww88qi9">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=mww88qi9">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/public/ai-settings.js?v=mww88qi9">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=mww88qi9">
|
|
17
|
+
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=mww88qi9">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=mww88qi9">
|
|
19
|
+
<link rel="stylesheet" crossorigin href="/public/ai-settings.css?v=mww88qi9">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<div id="app" style="height: 100vh;"></div>
|
package/dist/view/index.html
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
var __INITIAL_STATE__ = __get_templateJson('__INITIAL_STATE__');
|
|
24
24
|
if(!__INITIAL_STATE__) __INITIAL_STATE__ = __get_templateJson('__DEFAULTINITIAL_STATE__');
|
|
25
25
|
</script>
|
|
26
|
-
<link rel="icon" href="/public/favicon.ico?v=
|
|
26
|
+
<link rel="icon" href="/public/favicon.ico?v=mww88qi9" />
|
|
27
27
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
28
28
|
<title>AICmd - AI Terminal</title>
|
|
29
29
|
<meta name="description" content="{{description}}">
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
console.error(event);
|
|
33
33
|
});
|
|
34
34
|
</script>
|
|
35
|
-
<script type="module" crossorigin src="/public/index.js?v=
|
|
36
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
37
|
-
<link rel="modulepreload" crossorigin href="/public/vue.js?v=
|
|
38
|
-
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=
|
|
39
|
-
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=
|
|
40
|
-
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=
|
|
41
|
-
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=
|
|
42
|
-
<link rel="stylesheet" crossorigin href="/public/index.css?v=
|
|
35
|
+
<script type="module" crossorigin src="/public/index.js?v=mww88qi9"></script>
|
|
36
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
37
|
+
<link rel="modulepreload" crossorigin href="/public/vue.js?v=mww88qi9">
|
|
38
|
+
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=mww88qi9">
|
|
39
|
+
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=mww88qi9">
|
|
40
|
+
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=mww88qi9">
|
|
41
|
+
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=mww88qi9">
|
|
42
|
+
<link rel="stylesheet" crossorigin href="/public/index.css?v=mww88qi9">
|
|
43
43
|
</head>
|
|
44
44
|
<body>
|
|
45
45
|
<div id="app" class="min-vh-100"></div>
|