@fefeding/aicmd 1.0.13 → 1.0.14

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.
@@ -3693,7 +3693,10 @@ var init_zh_CN = __esmMin((() => {
3693
3693
  connectionFailed: "连接失败",
3694
3694
  wsFailed: "WebSocket 连接失败",
3695
3695
  reconnect: "重连",
3696
- reconnecting: "正在重连..."
3696
+ reconnecting: "正在重连...",
3697
+ connectingTo: "正在连接到 {host}...",
3698
+ connectionEstablished: "连接已建立",
3699
+ maxReconnectReached: "已达最大重连次数,请关闭标签后重新打开"
3697
3700
  },
3698
3701
  connection: {
3699
3702
  addTitle: "新增连接",
@@ -3993,7 +3996,10 @@ var init_en_US = __esmMin((() => {
3993
3996
  connectionFailed: "Connection failed",
3994
3997
  wsFailed: "WebSocket connection failed",
3995
3998
  reconnect: "Reconnect",
3996
- reconnecting: "Reconnecting..."
3999
+ reconnecting: "Reconnecting...",
4000
+ connectingTo: "Connecting to {host}...",
4001
+ connectionEstablished: "Connection established",
4002
+ maxReconnectReached: "Max reconnect attempts reached. Please close and reopen the tab."
3997
4003
  },
3998
4004
  connection: {
3999
4005
  addTitle: "New Connection",
@@ -1316,36 +1316,23 @@
1316
1316
  gap: 8px;
1317
1317
  }
1318
1318
 
1319
- .terminal-wrapper[data-v-66af4892] {
1319
+ .terminal-wrapper[data-v-bc5864bf] {
1320
1320
  width: 100%;
1321
1321
  height: 100%;
1322
1322
  position: relative;
1323
1323
  overflow: hidden;
1324
1324
  display: flex;
1325
1325
  }
1326
- .terminal-container[data-v-66af4892] {
1326
+ .terminal-container[data-v-bc5864bf] {
1327
1327
  flex: 1;
1328
1328
  height: 100%;
1329
1329
  padding: 4px;
1330
1330
  min-width: 0;
1331
1331
  overflow: hidden;
1332
1332
  }
1333
- .terminal-status[data-v-66af4892] {
1334
- position: absolute;
1335
- top: 50%;
1336
- left: 50%;
1337
- transform: translate(-50%, -50%);
1338
- display: flex;
1339
- align-items: center;
1340
- font-size: 14px;
1341
- padding: 12px 24px;
1342
- background-color: rgba(0, 0, 0, 0.6);
1343
- border-radius: 8px;
1344
- z-index: 10;
1345
- }
1346
1333
 
1347
1334
  /* AI 按钮 */
1348
- .ai-toggle-btn[data-v-66af4892] {
1335
+ .ai-toggle-btn[data-v-bc5864bf] {
1349
1336
  position: absolute;
1350
1337
  top: 12px;
1351
1338
  right: 12px;
@@ -1364,19 +1351,19 @@
1364
1351
  z-index: 20;
1365
1352
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
1366
1353
  }
1367
- .ai-toggle-btn[data-v-66af4892]:hover {
1354
+ .ai-toggle-btn[data-v-bc5864bf]:hover {
1368
1355
  background: rgba(69, 71, 90, 0.95);
1369
1356
  color: var(--accent);
1370
1357
  transform: scale(1.05);
1371
1358
  }
1372
- .ai-toggle-btn.active[data-v-66af4892] {
1359
+ .ai-toggle-btn.active[data-v-bc5864bf] {
1373
1360
  background: var(--accent);
1374
1361
  color: white;
1375
1362
  }
1376
1363
 
1377
1364
  /* 文件管理器按钮定位在左上角 */
1378
1365
  /* 文件管理器面板包装器 */
1379
- .file-manager-wrapper[data-v-66af4892] {
1366
+ .file-manager-wrapper[data-v-bc5864bf] {
1380
1367
  position: relative;
1381
1368
  min-width: 280px;
1382
1369
  max-width: 50%;
@@ -1386,7 +1373,7 @@
1386
1373
  flex-direction: column;
1387
1374
  overflow: hidden;
1388
1375
  }
1389
- .file-manager-wrapper .fm-resize-handle[data-v-66af4892] {
1376
+ .file-manager-wrapper .fm-resize-handle[data-v-bc5864bf] {
1390
1377
  position: absolute;
1391
1378
  right: 0;
1392
1379
  top: 0;
@@ -1397,14 +1384,14 @@
1397
1384
  background: transparent;
1398
1385
  transition: background 0.2s;
1399
1386
  }
1400
- .file-manager-wrapper .fm-resize-handle[data-v-66af4892]:hover,
1401
- .file-manager-wrapper .fm-resize-handle[data-v-66af4892]:active {
1387
+ .file-manager-wrapper .fm-resize-handle[data-v-bc5864bf]:hover,
1388
+ .file-manager-wrapper .fm-resize-handle[data-v-bc5864bf]:active {
1402
1389
  background: var(--accent, #89b4fa);
1403
1390
  opacity: 0.6;
1404
1391
  }
1405
1392
 
1406
1393
  /* AI 对话面板包装器 */
1407
- .ai-chat-wrapper[data-v-66af4892] {
1394
+ .ai-chat-wrapper[data-v-bc5864bf] {
1408
1395
  position: relative;
1409
1396
  width: 380px;
1410
1397
  min-width: 280px;
@@ -1416,7 +1403,7 @@
1416
1403
  }
1417
1404
 
1418
1405
  /* AI 拖拽调整宽度的手柄 */
1419
- .ai-resize-handle[data-v-66af4892] {
1406
+ .ai-resize-handle[data-v-bc5864bf] {
1420
1407
  position: absolute;
1421
1408
  left: 0;
1422
1409
  top: 0;
@@ -1427,14 +1414,14 @@
1427
1414
  background: transparent;
1428
1415
  transition: background 0.2s;
1429
1416
  }
1430
- .ai-resize-handle[data-v-66af4892]:hover,
1431
- .ai-resize-handle[data-v-66af4892]:active {
1417
+ .ai-resize-handle[data-v-bc5864bf]:hover,
1418
+ .ai-resize-handle[data-v-bc5864bf]:active {
1432
1419
  background: var(--accent, #89b4fa);
1433
1420
  opacity: 0.6;
1434
1421
  }
1435
1422
 
1436
1423
  /* 终端右键上下文菜单 */
1437
- .terminal-context-menu[data-v-66af4892] {
1424
+ .terminal-context-menu[data-v-bc5864bf] {
1438
1425
  position: fixed;
1439
1426
  z-index: 1000;
1440
1427
  min-width: 160px;
@@ -1444,7 +1431,7 @@
1444
1431
  padding: 4px;
1445
1432
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
1446
1433
  }
1447
- .context-menu-item[data-v-66af4892] {
1434
+ .context-menu-item[data-v-bc5864bf] {
1448
1435
  display: flex;
1449
1436
  align-items: center;
1450
1437
  gap: 8px;
@@ -1456,10 +1443,10 @@
1456
1443
  transition: background 0.15s;
1457
1444
  white-space: nowrap;
1458
1445
  }
1459
- .context-menu-item[data-v-66af4892]:hover {
1446
+ .context-menu-item[data-v-bc5864bf]:hover {
1460
1447
  background: #45475a;
1461
1448
  }
1462
- .context-menu-item i[data-v-66af4892] {
1449
+ .context-menu-item i[data-v-bc5864bf] {
1463
1450
  font-size: 14px;
1464
1451
  width: 16px;
1465
1452
  text-align: center;
@@ -361,7 +361,7 @@ var init_terminal = __esmMin((() => {
361
361
  }));
362
362
  //#endregion
363
363
  //#region src/components/terminal-sidebar.vue?vue&type=script&setup=true&lang.ts
364
- var _hoisted_1$10, _hoisted_2$10, _hoisted_3$10, _hoisted_4$10, _hoisted_5$10, _hoisted_6$10, _hoisted_7$9, _hoisted_8$9, _hoisted_9$9, _hoisted_10$9, _hoisted_11$9, _hoisted_12$9, _hoisted_13$9, _hoisted_14$9, _hoisted_15$9, _hoisted_16$9, _hoisted_17$8, _hoisted_18$8, _hoisted_19$8, _hoisted_20$8, _hoisted_21$7, _hoisted_22$7, _hoisted_23$7, _hoisted_24$7, terminal_sidebar_vue_vue_type_script_setup_true_lang_default;
364
+ var _hoisted_1$10, _hoisted_2$10, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _hoisted_6$9, _hoisted_7$9, _hoisted_8$9, _hoisted_9$9, _hoisted_10$9, _hoisted_11$9, _hoisted_12$9, _hoisted_13$9, _hoisted_14$9, _hoisted_15$9, _hoisted_16$9, _hoisted_17$8, _hoisted_18$8, _hoisted_19$8, _hoisted_20$8, _hoisted_21$7, _hoisted_22$7, _hoisted_23$7, _hoisted_24$7, terminal_sidebar_vue_vue_type_script_setup_true_lang_default;
365
365
  var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() => {
366
366
  init_vue_runtime_esm_bundler();
367
367
  init_vue_i18n();
@@ -371,10 +371,10 @@ var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() =>
371
371
  style: { "border-color": "var(--border-color) !important" }
372
372
  };
373
373
  _hoisted_2$10 = { class: "d-flex gap-1" };
374
- _hoisted_3$10 = ["title"];
375
- _hoisted_4$10 = ["title"];
376
- _hoisted_5$10 = ["title"];
377
- _hoisted_6$10 = { class: "p-2" };
374
+ _hoisted_3$9 = ["title"];
375
+ _hoisted_4$9 = ["title"];
376
+ _hoisted_5$9 = ["title"];
377
+ _hoisted_6$9 = { class: "p-2" };
378
378
  _hoisted_7$9 = ["placeholder"];
379
379
  _hoisted_8$9 = { class: "flex-grow-1 overflow-auto" };
380
380
  _hoisted_9$9 = {
@@ -462,19 +462,19 @@ var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() =>
462
462
  class: "btn-toolbar",
463
463
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("add-connection")),
464
464
  title: unref(t)("app.addConnection")
465
- }, [..._cache[8] || (_cache[8] = [createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)])], 8, _hoisted_3$10),
465
+ }, [..._cache[8] || (_cache[8] = [createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)])], 8, _hoisted_3$9),
466
466
  createBaseVNode("button", {
467
467
  class: "btn-toolbar",
468
468
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("refresh")),
469
469
  title: unref(t)("common.refresh")
470
- }, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_4$10),
470
+ }, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_4$9),
471
471
  createBaseVNode("button", {
472
472
  class: "btn-toolbar",
473
473
  onClick: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("toggle-sidebar")),
474
474
  title: unref(t)("sidebar.collapse")
475
- }, [..._cache[10] || (_cache[10] = [createBaseVNode("i", { class: "bi bi-chevron-left" }, null, -1)])], 8, _hoisted_5$10)
475
+ }, [..._cache[10] || (_cache[10] = [createBaseVNode("i", { class: "bi bi-chevron-left" }, null, -1)])], 8, _hoisted_5$9)
476
476
  ])]),
477
- createBaseVNode("div", _hoisted_6$10, [withDirectives(createBaseVNode("input", {
477
+ createBaseVNode("div", _hoisted_6$9, [withDirectives(createBaseVNode("input", {
478
478
  type: "text",
479
479
  class: "form-control form-control-sm",
480
480
  placeholder: unref(t)("sidebar.searchPlaceholder"),
@@ -3393,7 +3393,7 @@ async function copy(text) {
3393
3393
  var init_clipboard = __esmMin((() => {}));
3394
3394
  //#endregion
3395
3395
  //#region src/components/audit-panel/index.vue?vue&type=script&setup=true&lang.ts
3396
- var _hoisted_1$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _hoisted_6$9, _hoisted_7$8, _hoisted_8$8, _hoisted_9$8, _hoisted_10$8, _hoisted_11$8, _hoisted_12$8, _hoisted_13$8, _hoisted_14$8, _hoisted_15$8, _hoisted_16$8, _hoisted_17$7, _hoisted_18$7, _hoisted_19$7, _hoisted_20$7, _hoisted_21$6, _hoisted_22$6, _hoisted_23$6, _hoisted_24$6, _hoisted_25$6, _hoisted_26$5, _hoisted_27$5, _hoisted_28$5, _hoisted_29$5, _hoisted_30$5, _hoisted_31$4, _hoisted_32$3, _hoisted_33$3, _hoisted_34$3, _hoisted_35$3, _hoisted_36$3, _hoisted_37$3, _hoisted_38$3, _hoisted_39$3, _hoisted_40$2, _hoisted_41$2, index_vue_vue_type_script_setup_true_lang_default$6;
3396
+ var _hoisted_1$9, _hoisted_2$9, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _hoisted_6$8, _hoisted_7$8, _hoisted_8$8, _hoisted_9$8, _hoisted_10$8, _hoisted_11$8, _hoisted_12$8, _hoisted_13$8, _hoisted_14$8, _hoisted_15$8, _hoisted_16$8, _hoisted_17$7, _hoisted_18$7, _hoisted_19$7, _hoisted_20$7, _hoisted_21$6, _hoisted_22$6, _hoisted_23$6, _hoisted_24$6, _hoisted_25$6, _hoisted_26$5, _hoisted_27$5, _hoisted_28$5, _hoisted_29$5, _hoisted_30$5, _hoisted_31$4, _hoisted_32$3, _hoisted_33$3, _hoisted_34$3, _hoisted_35$3, _hoisted_36$3, _hoisted_37$3, _hoisted_38$3, _hoisted_39$3, _hoisted_40$2, _hoisted_41$2, index_vue_vue_type_script_setup_true_lang_default$6;
3397
3397
  var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3398
3398
  init_vue_runtime_esm_bundler();
3399
3399
  init_vue_i18n();
@@ -3401,13 +3401,13 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3401
3401
  init_clipboard();
3402
3402
  _hoisted_1$9 = { class: "audit-panel" };
3403
3403
  _hoisted_2$9 = { class: "audit-header" };
3404
- _hoisted_3$9 = { class: "audit-header-left" };
3405
- _hoisted_4$9 = {
3404
+ _hoisted_3$8 = { class: "audit-header-left" };
3405
+ _hoisted_4$8 = {
3406
3406
  key: 0,
3407
3407
  class: "audit-badge"
3408
3408
  };
3409
- _hoisted_5$9 = { class: "audit-header-right" };
3410
- _hoisted_6$9 = ["title"];
3409
+ _hoisted_5$8 = { class: "audit-header-right" };
3410
+ _hoisted_6$8 = ["title"];
3411
3411
  _hoisted_7$8 = ["title"];
3412
3412
  _hoisted_8$8 = { class: "audit-filters" };
3413
3413
  _hoisted_9$8 = ["placeholder"];
@@ -3556,15 +3556,15 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3556
3556
  });
3557
3557
  return (_ctx, _cache) => {
3558
3558
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
3559
- createBaseVNode("div", _hoisted_2$9, [createBaseVNode("div", _hoisted_3$9, [
3559
+ createBaseVNode("div", _hoisted_2$9, [createBaseVNode("div", _hoisted_3$8, [
3560
3560
  _cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-shield-check me-1" }, null, -1)),
3561
3561
  createBaseVNode("span", null, toDisplayString(unref(t)("audit.title")), 1),
3562
- stats.value ? (openBlock(), createElementBlock("span", _hoisted_4$9, toDisplayString(stats.value.today) + " " + toDisplayString(unref(t)("audit.today")), 1)) : createCommentVNode("", true)
3563
- ]), createBaseVNode("div", _hoisted_5$9, [createBaseVNode("button", {
3562
+ stats.value ? (openBlock(), createElementBlock("span", _hoisted_4$8, toDisplayString(stats.value.today) + " " + toDisplayString(unref(t)("audit.today")), 1)) : createCommentVNode("", true)
3563
+ ]), createBaseVNode("div", _hoisted_5$8, [createBaseVNode("button", {
3564
3564
  class: "btn-audit",
3565
3565
  onClick: refresh,
3566
3566
  title: unref(t)("common.refresh")
3567
- }, [..._cache[4] || (_cache[4] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_6$9), createBaseVNode("button", {
3567
+ }, [..._cache[4] || (_cache[4] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_6$8), createBaseVNode("button", {
3568
3568
  class: "btn-audit",
3569
3569
  onClick: handleExport,
3570
3570
  title: unref(t)("audit.export")
@@ -3756,7 +3756,7 @@ var init_sanitize_html = __esmMin((() => {
3756
3756
  }));
3757
3757
  //#endregion
3758
3758
  //#region src/components/log-monitor/index.vue?vue&type=script&setup=true&lang.ts
3759
- var _hoisted_1$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _hoisted_6$8, _hoisted_7$7, _hoisted_8$7, _hoisted_9$7, _hoisted_10$7, _hoisted_11$7, _hoisted_12$7, _hoisted_13$7, _hoisted_14$7, _hoisted_15$7, _hoisted_16$7, _hoisted_17$6, _hoisted_18$6, _hoisted_19$6, _hoisted_20$6, index_vue_vue_type_script_setup_true_lang_default$5;
3759
+ var _hoisted_1$8, _hoisted_2$8, _hoisted_3$7, _hoisted_4$7, _hoisted_5$7, _hoisted_6$7, _hoisted_7$7, _hoisted_8$7, _hoisted_9$7, _hoisted_10$7, _hoisted_11$7, _hoisted_12$7, _hoisted_13$7, _hoisted_14$7, _hoisted_15$7, _hoisted_16$7, _hoisted_17$6, _hoisted_18$6, _hoisted_19$6, _hoisted_20$6, index_vue_vue_type_script_setup_true_lang_default$5;
3760
3760
  var init_index_vue_vue_type_script_setup_true_lang$5 = __esmMin((() => {
3761
3761
  init_vue_runtime_esm_bundler();
3762
3762
  init_vue_i18n();
@@ -3765,10 +3765,10 @@ var init_index_vue_vue_type_script_setup_true_lang$5 = __esmMin((() => {
3765
3765
  init_sanitize_html();
3766
3766
  _hoisted_1$8 = { class: "monitor-panel" };
3767
3767
  _hoisted_2$8 = { class: "monitor-controls" };
3768
- _hoisted_3$8 = ["placeholder", "disabled"];
3769
- _hoisted_4$8 = ["disabled"];
3770
- _hoisted_5$8 = ["disabled", "title"];
3771
- _hoisted_6$8 = {
3768
+ _hoisted_3$7 = ["placeholder", "disabled"];
3769
+ _hoisted_4$7 = ["disabled"];
3770
+ _hoisted_5$7 = ["disabled", "title"];
3771
+ _hoisted_6$7 = {
3772
3772
  key: 0,
3773
3773
  class: "monitor-status"
3774
3774
  };
@@ -3946,21 +3946,21 @@ var init_index_vue_vue_type_script_setup_true_lang$5 = __esmMin((() => {
3946
3946
  placeholder: unref(t)("monitor.logPathPlaceholder"),
3947
3947
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => logPath.value = $event),
3948
3948
  disabled: isMonitoring.value
3949
- }, null, 8, _hoisted_3$8), [[vModelText, logPath.value]]),
3949
+ }, null, 8, _hoisted_3$7), [[vModelText, logPath.value]]),
3950
3950
  createBaseVNode("button", {
3951
3951
  class: normalizeClass(["btn-monitor", { active: isMonitoring.value }]),
3952
3952
  onClick: toggleMonitor,
3953
3953
  disabled: !logPath.value.trim() && !isMonitoring.value
3954
- }, [createBaseVNode("i", { class: normalizeClass(isMonitoring.value ? "bi bi-stop-fill" : "bi bi-play-fill") }, null, 2), createTextVNode(" " + toDisplayString(isMonitoring.value ? unref(t)("monitor.stop") : unref(t)("monitor.start")), 1)], 10, _hoisted_4$8),
3954
+ }, [createBaseVNode("i", { class: normalizeClass(isMonitoring.value ? "bi bi-stop-fill" : "bi bi-play-fill") }, null, 2), createTextVNode(" " + toDisplayString(isMonitoring.value ? unref(t)("monitor.stop") : unref(t)("monitor.start")), 1)], 10, _hoisted_4$7),
3955
3955
  isMonitoring.value ? (openBlock(), createElementBlock("button", {
3956
3956
  key: 0,
3957
3957
  class: "btn-monitor btn-analyze",
3958
3958
  onClick: triggerAIAnalysis,
3959
3959
  disabled: analyzing.value,
3960
3960
  title: unref(t)("monitor.aiAnalyze")
3961
- }, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-robot" }, null, -1)), createTextVNode(" " + toDisplayString(analyzing.value ? unref(t)("monitor.analyzing") : unref(t)("monitor.aiAnalyze")), 1)], 8, _hoisted_5$8)) : createCommentVNode("", true)
3961
+ }, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-robot" }, null, -1)), createTextVNode(" " + toDisplayString(analyzing.value ? unref(t)("monitor.analyzing") : unref(t)("monitor.aiAnalyze")), 1)], 8, _hoisted_5$7)) : createCommentVNode("", true)
3962
3962
  ]),
3963
- isMonitoring.value ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
3963
+ isMonitoring.value ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
3964
3964
  _cache[5] || (_cache[5] = createBaseVNode("span", { class: "status-indicator active" }, null, -1)),
3965
3965
  createBaseVNode("span", null, toDisplayString(unref(t)("monitor.monitoring")) + ": " + toDisplayString(logPath.value), 1),
3966
3966
  createBaseVNode("span", _hoisted_7$7, toDisplayString(lineCount.value) + " " + toDisplayString(unref(t)("monitor.lines")) + " · " + toDisplayString(alerts.value.length) + " " + toDisplayString(unref(t)("monitor.alerts")), 1)
@@ -4028,7 +4028,7 @@ var init_log_monitor = __esmMin((() => {
4028
4028
  }));
4029
4029
  //#endregion
4030
4030
  //#region src/components/ai-chat/index.vue?vue&type=script&setup=true&lang.ts
4031
- var _hoisted_1$7, _hoisted_2$7, _hoisted_3$7, _hoisted_4$7, _hoisted_5$7, _hoisted_6$7, _hoisted_7$6, _hoisted_8$6, _hoisted_9$6, _hoisted_10$6, _hoisted_11$6, _hoisted_12$6, _hoisted_13$6, _hoisted_14$6, _hoisted_15$6, _hoisted_16$6, _hoisted_17$5, _hoisted_18$5, _hoisted_19$5, _hoisted_20$5, _hoisted_21$5, _hoisted_22$5, _hoisted_23$5, _hoisted_24$5, _hoisted_25$5, _hoisted_26$4, _hoisted_27$4, _hoisted_28$4, _hoisted_29$4, _hoisted_30$4, _hoisted_31$3, _hoisted_32$2, _hoisted_33$2, _hoisted_34$2, _hoisted_35$2, _hoisted_36$2, _hoisted_37$2, _hoisted_38$2, _hoisted_39$2, _hoisted_40$1, _hoisted_41$1, _hoisted_42$1, _hoisted_43$1, _hoisted_44$1, _hoisted_45$1, _hoisted_46$1, _hoisted_47$1, _hoisted_48$1, index_vue_vue_type_script_setup_true_lang_default$4;
4031
+ var _hoisted_1$7, _hoisted_2$7, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _hoisted_6$6, _hoisted_7$6, _hoisted_8$6, _hoisted_9$6, _hoisted_10$6, _hoisted_11$6, _hoisted_12$6, _hoisted_13$6, _hoisted_14$6, _hoisted_15$6, _hoisted_16$6, _hoisted_17$5, _hoisted_18$5, _hoisted_19$5, _hoisted_20$5, _hoisted_21$5, _hoisted_22$5, _hoisted_23$5, _hoisted_24$5, _hoisted_25$5, _hoisted_26$4, _hoisted_27$4, _hoisted_28$4, _hoisted_29$4, _hoisted_30$4, _hoisted_31$3, _hoisted_32$2, _hoisted_33$2, _hoisted_34$2, _hoisted_35$2, _hoisted_36$2, _hoisted_37$2, _hoisted_38$2, _hoisted_39$2, _hoisted_40$1, _hoisted_41$1, _hoisted_42$1, _hoisted_43$1, _hoisted_44$1, _hoisted_45$1, _hoisted_46$1, _hoisted_47$1, _hoisted_48$1, index_vue_vue_type_script_setup_true_lang_default$4;
4032
4032
  var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
4033
4033
  init_vue_runtime_esm_bundler();
4034
4034
  init_vue_i18n();
@@ -4038,10 +4038,10 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
4038
4038
  init_sanitize_html();
4039
4039
  _hoisted_1$7 = { class: "ai-chat-header" };
4040
4040
  _hoisted_2$7 = { class: "d-flex align-items-center gap-2" };
4041
- _hoisted_3$7 = { class: "ai-tab-bar" };
4042
- _hoisted_4$7 = { class: "d-flex gap-1" };
4043
- _hoisted_5$7 = ["title"];
4044
- _hoisted_6$7 = ["title"];
4041
+ _hoisted_3$6 = { class: "ai-tab-bar" };
4042
+ _hoisted_4$6 = { class: "d-flex gap-1" };
4043
+ _hoisted_5$6 = ["title"];
4044
+ _hoisted_6$6 = ["title"];
4045
4045
  _hoisted_7$6 = ["title"];
4046
4046
  _hoisted_8$6 = ["title"];
4047
4047
  _hoisted_9$6 = ["title"];
@@ -4498,23 +4498,23 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
4498
4498
  });
4499
4499
  return (_ctx, _cache) => {
4500
4500
  return openBlock(), createElementBlock("div", { class: normalizeClass(["ai-chat-panel", { collapsed: !__props.isOpen }]) }, [
4501
- createBaseVNode("div", _hoisted_1$7, [createBaseVNode("div", _hoisted_2$7, [createBaseVNode("div", _hoisted_3$7, [createBaseVNode("button", {
4501
+ createBaseVNode("div", _hoisted_1$7, [createBaseVNode("div", _hoisted_2$7, [createBaseVNode("div", _hoisted_3$6, [createBaseVNode("button", {
4502
4502
  class: normalizeClass(["ai-tab", { active: activeTab.value === "chat" }]),
4503
4503
  onClick: _cache[0] || (_cache[0] = ($event) => activeTab.value = "chat")
4504
4504
  }, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-robot" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("ai.chat")), 1)], 2), createBaseVNode("button", {
4505
4505
  class: normalizeClass(["ai-tab", { active: activeTab.value === "audit" }]),
4506
4506
  onClick: _cache[1] || (_cache[1] = ($event) => activeTab.value = "audit")
4507
- }, [_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-shield-check" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("audit.title")), 1)], 2)])]), createBaseVNode("div", _hoisted_4$7, [activeTab.value === "chat" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4507
+ }, [_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-shield-check" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("audit.title")), 1)], 2)])]), createBaseVNode("div", _hoisted_4$6, [activeTab.value === "chat" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
4508
4508
  createBaseVNode("button", {
4509
4509
  class: "btn-ai-action",
4510
4510
  onClick: handleOpenSettings,
4511
4511
  title: unref(t)("ai.settings")
4512
- }, [..._cache[8] || (_cache[8] = [createBaseVNode("i", { class: "bi bi-gear" }, null, -1)])], 8, _hoisted_5$7),
4512
+ }, [..._cache[8] || (_cache[8] = [createBaseVNode("i", { class: "bi bi-gear" }, null, -1)])], 8, _hoisted_5$6),
4513
4513
  createBaseVNode("button", {
4514
4514
  class: normalizeClass(["btn-ai-action", { active: showHistoryPanel.value }]),
4515
4515
  onClick: toggleHistoryPanel,
4516
4516
  title: unref(t)("ai.history")
4517
- }, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-clock-history" }, null, -1)])], 10, _hoisted_6$7),
4517
+ }, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-clock-history" }, null, -1)])], 10, _hoisted_6$6),
4518
4518
  isAgentRunning.value ? (openBlock(), createElementBlock("button", {
4519
4519
  key: 0,
4520
4520
  class: "btn-ai-action btn-stop",
@@ -4661,7 +4661,7 @@ var init_ai_chat = __esmMin((() => {
4661
4661
  }));
4662
4662
  //#endregion
4663
4663
  //#region src/components/file-transfer.vue?vue&type=script&setup=true&lang.ts
4664
- var _hoisted_1$6, _hoisted_2$6, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _hoisted_6$6, _hoisted_7$5, _hoisted_8$5, _hoisted_9$5, _hoisted_10$5, _hoisted_11$5, _hoisted_12$5, _hoisted_13$5, _hoisted_14$5, _hoisted_15$5, _hoisted_16$5, _hoisted_17$4, _hoisted_18$4, _hoisted_19$4, _hoisted_20$4, _hoisted_21$4, _hoisted_22$4, _hoisted_23$4, _hoisted_24$4, _hoisted_25$4, _hoisted_26$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$3, file_transfer_vue_vue_type_script_setup_true_lang_default;
4664
+ var _hoisted_1$6, _hoisted_2$6, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _hoisted_6$5, _hoisted_7$5, _hoisted_8$5, _hoisted_9$5, _hoisted_10$5, _hoisted_11$5, _hoisted_12$5, _hoisted_13$5, _hoisted_14$5, _hoisted_15$5, _hoisted_16$5, _hoisted_17$4, _hoisted_18$4, _hoisted_19$4, _hoisted_20$4, _hoisted_21$4, _hoisted_22$4, _hoisted_23$4, _hoisted_24$4, _hoisted_25$4, _hoisted_26$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$3, file_transfer_vue_vue_type_script_setup_true_lang_default;
4665
4665
  var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4666
4666
  init_vue_runtime_esm_bundler();
4667
4667
  init_vue_i18n();
@@ -4669,10 +4669,10 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4669
4669
  init_toast();
4670
4670
  _hoisted_1$6 = { class: "ft-title" };
4671
4671
  _hoisted_2$6 = { class: "ft-header-actions" };
4672
- _hoisted_3$6 = ["title"];
4673
- _hoisted_4$6 = ["title"];
4674
- _hoisted_5$6 = { class: "ft-body" };
4675
- _hoisted_6$6 = {
4672
+ _hoisted_3$5 = ["title"];
4673
+ _hoisted_4$5 = ["title"];
4674
+ _hoisted_5$5 = { class: "ft-body" };
4675
+ _hoisted_6$5 = {
4676
4676
  key: 0,
4677
4677
  class: "d-flex gap-2 mb-2"
4678
4678
  };
@@ -5202,12 +5202,12 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5202
5202
  class: "ft-btn-icon",
5203
5203
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => isCollapsed.value = !isCollapsed.value, ["stop"])),
5204
5204
  title: isCollapsed.value ? "展开" : "收起"
5205
- }, [createBaseVNode("i", { class: normalizeClass(isCollapsed.value ? "bi bi-chevron-up" : "bi bi-chevron-down") }, null, 2)], 8, _hoisted_3$6), createBaseVNode("button", {
5205
+ }, [createBaseVNode("i", { class: normalizeClass(isCollapsed.value ? "bi bi-chevron-up" : "bi bi-chevron-down") }, null, 2)], 8, _hoisted_3$5), createBaseVNode("button", {
5206
5206
  class: "ft-btn-icon",
5207
5207
  onClick: withModifiers(handleClose, ["stop"]),
5208
5208
  title: unref(t)("common.close")
5209
- }, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])], 8, _hoisted_4$6)])], 32), withDirectives(createBaseVNode("div", _hoisted_5$6, [
5210
- !unref(zmodemAutoMode) ? (openBlock(), createElementBlock("div", _hoisted_6$6, [createBaseVNode("button", {
5209
+ }, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])], 8, _hoisted_4$5)])], 32), withDirectives(createBaseVNode("div", _hoisted_5$5, [
5210
+ !unref(zmodemAutoMode) ? (openBlock(), createElementBlock("div", _hoisted_6$5, [createBaseVNode("button", {
5211
5211
  class: normalizeClass(["btn btn-sm flex-fill", mode.value === "upload" ? "btn-primary" : "btn-outline-secondary"]),
5212
5212
  onClick: _cache[2] || (_cache[2] = ($event) => mode.value = "upload")
5213
5213
  }, [_cache[10] || (_cache[10] = createBaseVNode("i", { class: "bi bi-upload me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("fileTransfer.upload")), 1)], 2), createBaseVNode("button", {
@@ -5405,7 +5405,7 @@ var init_file = __esmMin((() => {
5405
5405
  }));
5406
5406
  //#endregion
5407
5407
  //#region src/components/file-manager.vue?vue&type=script&setup=true&lang.ts
5408
- var _hoisted_1$5, _hoisted_2$5, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _hoisted_6$5, _hoisted_7$4, _hoisted_8$4, _hoisted_9$4, _hoisted_10$4, _hoisted_11$4, _hoisted_12$4, _hoisted_13$4, _hoisted_14$4, _hoisted_15$4, _hoisted_16$4, _hoisted_17$3, _hoisted_18$3, _hoisted_19$3, _hoisted_20$3, _hoisted_21$3, _hoisted_22$3, _hoisted_23$3, _hoisted_24$3, _hoisted_25$3, _hoisted_26$2, _hoisted_27$2, _hoisted_28$2, _hoisted_29$2, _hoisted_30$2, _hoisted_31$2, _hoisted_32$1, _hoisted_33$1, _hoisted_34$1, _hoisted_35$1, _hoisted_36$1, _hoisted_37$1, _hoisted_38$1, _hoisted_39$1, file_manager_vue_vue_type_script_setup_true_lang_default;
5408
+ var _hoisted_1$5, _hoisted_2$5, _hoisted_3$4, _hoisted_4$4, _hoisted_5$4, _hoisted_6$4, _hoisted_7$4, _hoisted_8$4, _hoisted_9$4, _hoisted_10$4, _hoisted_11$4, _hoisted_12$4, _hoisted_13$4, _hoisted_14$4, _hoisted_15$4, _hoisted_16$4, _hoisted_17$3, _hoisted_18$3, _hoisted_19$3, _hoisted_20$3, _hoisted_21$3, _hoisted_22$3, _hoisted_23$3, _hoisted_24$3, _hoisted_25$3, _hoisted_26$2, _hoisted_27$2, _hoisted_28$2, _hoisted_29$2, _hoisted_30$2, _hoisted_31$2, _hoisted_32$1, _hoisted_33$1, _hoisted_34$1, _hoisted_35$1, _hoisted_36$1, _hoisted_37$1, _hoisted_38$1, _hoisted_39$1, file_manager_vue_vue_type_script_setup_true_lang_default;
5409
5409
  var init_file_manager_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5410
5410
  init_vue_runtime_esm_bundler();
5411
5411
  init_vue_i18n();
@@ -5414,10 +5414,10 @@ var init_file_manager_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5414
5414
  init_toast();
5415
5415
  _hoisted_1$5 = { class: "fm-panel" };
5416
5416
  _hoisted_2$5 = { class: "fm-header" };
5417
- _hoisted_3$5 = { class: "fm-title" };
5418
- _hoisted_4$5 = { class: "fm-header-actions" };
5419
- _hoisted_5$5 = ["title"];
5420
- _hoisted_6$5 = { class: "fm-toolbar" };
5417
+ _hoisted_3$4 = { class: "fm-title" };
5418
+ _hoisted_4$4 = { class: "fm-header-actions" };
5419
+ _hoisted_5$4 = ["title"];
5420
+ _hoisted_6$4 = { class: "fm-toolbar" };
5421
5421
  _hoisted_7$4 = ["disabled"];
5422
5422
  _hoisted_8$4 = ["disabled"];
5423
5423
  _hoisted_9$4 = ["title"];
@@ -5720,12 +5720,12 @@ var init_file_manager_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5720
5720
  });
5721
5721
  return (_ctx, _cache) => {
5722
5722
  return openBlock(), createElementBlock("div", _hoisted_1$5, [
5723
- createBaseVNode("div", _hoisted_2$5, [createBaseVNode("div", _hoisted_3$5, [_cache[7] || (_cache[7] = createBaseVNode("span", { class: "fm-icon" }, "🗂", -1)), createTextVNode(" " + toDisplayString(unref(t)("fileManager.title")), 1)]), createBaseVNode("div", _hoisted_4$5, [createBaseVNode("button", {
5723
+ createBaseVNode("div", _hoisted_2$5, [createBaseVNode("div", _hoisted_3$4, [_cache[7] || (_cache[7] = createBaseVNode("span", { class: "fm-icon" }, "🗂", -1)), createTextVNode(" " + toDisplayString(unref(t)("fileManager.title")), 1)]), createBaseVNode("div", _hoisted_4$4, [createBaseVNode("button", {
5724
5724
  class: "fm-btn fm-close",
5725
5725
  title: unref(t)("common.close"),
5726
5726
  onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
5727
- }, "✕", 8, _hoisted_5$5)])]),
5728
- createBaseVNode("div", _hoisted_6$5, [
5727
+ }, "✕", 8, _hoisted_5$4)])]),
5728
+ createBaseVNode("div", _hoisted_6$4, [
5729
5729
  createBaseVNode("button", {
5730
5730
  class: "fm-btn",
5731
5731
  disabled: !canGoUp.value,
@@ -5867,7 +5867,7 @@ var init_file_manager = __esmMin((() => {
5867
5867
  }));
5868
5868
  //#endregion
5869
5869
  //#region src/components/terminal-tab.vue?vue&type=script&setup=true&lang.ts
5870
- var import_xterm, import_addon_fit, import_addon_web_links, _hoisted_1$4, _hoisted_2$4, _hoisted_3$4, _hoisted_4$4, _hoisted_5$4, _hoisted_6$4, FM_MIN_WIDTH, FM_MAX_WIDTH_RATIO, MAX_RECONNECT_ATTEMPTS, RECONNECT_BASE_DELAY, AI_CHAT_MIN_WIDTH, AI_CHAT_MAX_WIDTH_RATIO, terminal_tab_vue_vue_type_script_setup_true_lang_default;
5870
+ var import_xterm, import_addon_fit, import_addon_web_links, _hoisted_1$4, _hoisted_2$4, FM_MIN_WIDTH, FM_MAX_WIDTH_RATIO, MAX_RECONNECT_ATTEMPTS, RECONNECT_BASE_DELAY, AI_CHAT_MIN_WIDTH, AI_CHAT_MAX_WIDTH_RATIO, terminal_tab_vue_vue_type_script_setup_true_lang_default;
5871
5871
  var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5872
5872
  init_vue_runtime_esm_bundler();
5873
5873
  init_vue_i18n();
@@ -5881,22 +5881,6 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5881
5881
  init_file_manager();
5882
5882
  _hoisted_1$4 = ["title"];
5883
5883
  _hoisted_2$4 = ["title"];
5884
- _hoisted_3$4 = {
5885
- key: 3,
5886
- class: "terminal-status"
5887
- };
5888
- _hoisted_4$4 = {
5889
- key: 4,
5890
- class: "terminal-status text-danger"
5891
- };
5892
- _hoisted_5$4 = {
5893
- key: 5,
5894
- class: "terminal-status text-secondary"
5895
- };
5896
- _hoisted_6$4 = {
5897
- key: 6,
5898
- class: "terminal-status text-warning"
5899
- };
5900
5884
  FM_MIN_WIDTH = 280;
5901
5885
  FM_MAX_WIDTH_RATIO = .5;
5902
5886
  MAX_RECONNECT_ATTEMPTS = 5;
@@ -6335,6 +6319,7 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6335
6319
  function scheduleReconnect() {
6336
6320
  if (reconnectAttempts >= MAX_RECONNECT_ATTEMPTS) {
6337
6321
  console.log("[TerminalTab] Max reconnect attempts reached");
6322
+ if (terminal) terminal.writeln(`\x1b[31m✗ ${t("tab.maxReconnectReached")}\x1b[0m`);
6338
6323
  return;
6339
6324
  }
6340
6325
  const delay = RECONNECT_BASE_DELAY * Math.pow(1.5, reconnectAttempts);
@@ -6552,6 +6537,9 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6552
6537
  case "error":
6553
6538
  setStatus("error", msg.data || "连接失败");
6554
6539
  break;
6540
+ case "conn-log":
6541
+ if (terminal && msg.data) terminal.writeln(`\r\n\x1b[36m[SSH] ${msg.data}\x1b[0m`);
6542
+ break;
6555
6543
  case "ai-agent-event":
6556
6544
  if (aiChatRef.value && msg.event) aiChatRef.value.handleAgentEvent(msg.event);
6557
6545
  break;
@@ -6566,9 +6554,29 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6566
6554
  function sendToServer(msg) {
6567
6555
  if (ws && ws.readyState === WebSocket.OPEN) ws.send(JSON.stringify(msg));
6568
6556
  }
6557
+ function writeStatusToTerminal(s, detail) {
6558
+ if (!terminal) return;
6559
+ const host = props.connection.host || "";
6560
+ switch (s) {
6561
+ case "connecting":
6562
+ terminal.writeln(`\r\n\x1b[33m⚡ ${t("tab.connectingTo", { host })}\x1b[0m`);
6563
+ break;
6564
+ case "connected": break;
6565
+ case "error":
6566
+ terminal.writeln(`\x1b[31m✗ ${t("tab.connectionFailed")}: ${detail || errorMessage.value}\x1b[0m`);
6567
+ break;
6568
+ case "disconnected":
6569
+ terminal.writeln(`\x1b[90m⚠ ${t("tab.disconnected")}\x1b[0m`);
6570
+ break;
6571
+ case "reconnecting":
6572
+ terminal.writeln(`\x1b[33m⟳ ${t("tab.reconnecting")} (${reconnectAttempts + 1}/${MAX_RECONNECT_ATTEMPTS})\x1b[0m`);
6573
+ break;
6574
+ }
6575
+ }
6569
6576
  function setStatus(s, detail) {
6570
6577
  status.value = s;
6571
6578
  if (s === "error" && detail) errorMessage.value = detail;
6579
+ writeStatusToTerminal(s, detail);
6572
6580
  emit("status-change", s, sessionId || void 0);
6573
6581
  }
6574
6582
  function focus() {
@@ -6602,6 +6610,7 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6602
6610
  });
6603
6611
  onMounted(() => {
6604
6612
  initTerminal();
6613
+ writeStatusToTerminal("connecting");
6605
6614
  document.addEventListener("click", onDocumentClick);
6606
6615
  if (terminalContainer.value) {
6607
6616
  resizeObserver = new ResizeObserver(() => {
@@ -6783,19 +6792,8 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6783
6792
  "connectionId",
6784
6793
  "isOpen"
6785
6794
  ])], 4), [[vShow, showAIChat.value]]),
6786
- status.value === "connecting" ? (openBlock(), createElementBlock("div", _hoisted_3$4, [_cache[7] || (_cache[7] = createBaseVNode("div", { class: "spinner-border spinner-border-sm text-warning me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.connecting")), 1)])) : createCommentVNode("", true),
6787
- status.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_4$4, [_cache[8] || (_cache[8] = createBaseVNode("i", { class: "bi bi-exclamation-triangle me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.connectionFailed")) + ": " + toDisplayString(errorMessage.value), 1)])) : createCommentVNode("", true),
6788
- status.value === "disconnected" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [
6789
- _cache[10] || (_cache[10] = createBaseVNode("i", { class: "bi bi-wifi-off me-2" }, null, -1)),
6790
- createTextVNode(" " + toDisplayString(unref(t)("tab.disconnected")) + " ", 1),
6791
- createBaseVNode("button", {
6792
- class: "btn btn-sm btn-outline-light ms-3",
6793
- onClick: reconnect
6794
- }, [_cache[9] || (_cache[9] = createBaseVNode("i", { class: "bi bi-arrow-clockwise me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("tab.reconnect")), 1)])
6795
- ])) : createCommentVNode("", true),
6796
- status.value === "reconnecting" ? (openBlock(), createElementBlock("div", _hoisted_6$4, [_cache[11] || (_cache[11] = createBaseVNode("div", { class: "spinner-border spinner-border-sm text-warning me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.reconnecting")), 1)])) : createCommentVNode("", true),
6797
6795
  contextMenuVisible.value ? (openBlock(), createElementBlock("div", {
6798
- key: 7,
6796
+ key: 3,
6799
6797
  class: "terminal-context-menu",
6800
6798
  style: normalizeStyle({
6801
6799
  left: contextMenuX.value + "px",
@@ -6805,27 +6803,27 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6805
6803
  }, [createBaseVNode("div", {
6806
6804
  class: "context-menu-item",
6807
6805
  onClick: handleContextCopy
6808
- }, [_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-clipboard" }, null, -1)), createTextVNode(toDisplayString(unref(t)("context.copy") || "Copy"), 1)]), createBaseVNode("div", {
6806
+ }, [_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-clipboard" }, null, -1)), createTextVNode(toDisplayString(unref(t)("context.copy") || "Copy"), 1)]), createBaseVNode("div", {
6809
6807
  class: "context-menu-item",
6810
6808
  onClick: handleContextPaste
6811
- }, [_cache[13] || (_cache[13] = createBaseVNode("i", { class: "bi bi-clipboard-check" }, null, -1)), createTextVNode(toDisplayString(unref(t)("context.paste") || "Paste"), 1)])], 4)) : createCommentVNode("", true)
6809
+ }, [_cache[8] || (_cache[8] = createBaseVNode("i", { class: "bi bi-clipboard-check" }, null, -1)), createTextVNode(toDisplayString(unref(t)("context.paste") || "Paste"), 1)])], 4)) : createCommentVNode("", true)
6812
6810
  ], 512);
6813
6811
  };
6814
6812
  }
6815
6813
  });
6816
6814
  }));
6817
6815
  //#endregion
6818
- //#region src/components/terminal-tab.vue?vue&type=style&index=0&scoped=66af4892&lang.css
6819
- var init_terminal_tab_vue_vue_type_style_index_0_scoped_66af4892_lang = __esmMin((() => {}));
6816
+ //#region src/components/terminal-tab.vue?vue&type=style&index=0&scoped=bc5864bf&lang.css
6817
+ var init_terminal_tab_vue_vue_type_style_index_0_scoped_bc5864bf_lang = __esmMin((() => {}));
6820
6818
  //#endregion
6821
6819
  //#region src/components/terminal-tab.vue
6822
6820
  var terminal_tab_default;
6823
6821
  var init_terminal_tab = __esmMin((() => {
6824
6822
  init_terminal_tab_vue_vue_type_script_setup_true_lang();
6825
6823
  init_terminal_tab_vue_vue_type_script_setup_true_lang();
6826
- init_terminal_tab_vue_vue_type_style_index_0_scoped_66af4892_lang();
6824
+ init_terminal_tab_vue_vue_type_style_index_0_scoped_bc5864bf_lang();
6827
6825
  init__plugin_vue_export_helper();
6828
- terminal_tab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(terminal_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-66af4892"]]);
6826
+ terminal_tab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(terminal_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-bc5864bf"]]);
6829
6827
  }));
6830
6828
  //#endregion
6831
6829
  //#region src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
@@ -41,8 +41,9 @@ export declare class ConnectionService {
41
41
  testConnection(connection: ConnectionEntity): Promise<boolean>;
42
42
  /**
43
43
  * 从连接实体提取 ssh2 连接配置
44
+ * @param onLog 可选的日志回调,用于将连接过程信息推送到前端终端
44
45
  */
45
- getSSHConfig(connection: ConnectionEntity): any;
46
+ getSSHConfig(connection: ConnectionEntity, onLog?: (msg: string) => void): any;
46
47
  /**
47
48
  * 获取本机 SSH 密钥(自动扫描 ~/.ssh 目录下的私钥文件)
48
49
  */
@@ -1 +1 @@
1
- {"version":3,"file":"connection.service.d.ts","sourceRoot":"","sources":["../../../server/service/connection.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAO9D;;;GAGG;AACH,qBAAa,iBAAiB;IAE5B;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,SAAS,CAAuB;;IAOxC;;OAEG;IACG,IAAI;IAsBV;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAkBtD;;OAEG;IACG,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKrE;;OAEG;IACG,aAAa,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAoB5E;;OAEG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA0BjG;;OAEG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjD;;OAEG;IACG,cAAc,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA0BpE;;OAEG;IACH,YAAY,CAAC,UAAU,EAAE,gBAAgB,GAAG,GAAG;IA+C/C;;OAEG;IACH,OAAO,CAAC,cAAc;IAmDtB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAoBzB;;;OAGG;IACH,OAAO,CAAC,YAAY;IAqCpB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA0C5B;;OAEG;YACW,eAAe;IA0B7B,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,gBAAgB;IA8CxB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,aAAa;IAerB;;OAEG;IACH,OAAO,CAAC,UAAU;CAGnB"}
1
+ {"version":3,"file":"connection.service.d.ts","sourceRoot":"","sources":["../../../server/service/connection.service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAO9D;;;GAGG;AACH,qBAAa,iBAAiB;IAE5B;;;OAGG;IACH,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAS;IACpC,OAAO,CAAC,SAAS,CAAuB;;IAOxC;;OAEG;IACG,IAAI;IAsBV;;OAEG;IACG,iBAAiB,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAkBtD;;OAEG;IACG,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC;IAKrE;;OAEG;IACG,aAAa,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAoB5E;;OAEG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IA0BjG;;OAEG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAWjD;;OAEG;IACG,cAAc,CAAC,UAAU,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IA0BpE;;;OAGG;IACH,YAAY,CAAC,UAAU,EAAE,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,GAAG;IAyD9E;;OAEG;IACH,OAAO,CAAC,cAAc;IAuDtB;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAqBzB;;;OAGG;IACH,OAAO,CAAC,YAAY;IA4CpB;;;OAGG;IACH,OAAO,CAAC,oBAAoB;IA6C5B;;OAEG;YACW,eAAe;IA0B7B,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,iBAAiB;IAWzB,OAAO,CAAC,gBAAgB;IA8CxB,OAAO,CAAC,aAAa;IAQrB,OAAO,CAAC,aAAa;IAerB;;OAEG;IACH,OAAO,CAAC,UAAU;CAGnB"}