@fefeding/aicmd 1.0.5 → 1.0.7

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.
@@ -7,185 +7,71 @@ html, body, #app {
7
7
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
8
8
  }
9
9
 
10
- /* 更新通知卡片 - 右下角浮动 */
11
- .update-card {
10
+ /* 更新提示条幅 - 顶部 */
11
+ .update-banner {
12
12
  position: fixed;
13
- bottom: 20px;
14
- right: 20px;
13
+ top: 0;
14
+ left: 0;
15
+ right: 0;
15
16
  z-index: 10000;
16
- width: 320px;
17
- border-radius: 10px;
18
- overflow: hidden;
19
- font-size: 13px;
20
- color: #cdd6f4;
21
- background: #1e1e2e;
22
- border: 1px solid rgba(137, 180, 250, 0.15);
23
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
24
- }
25
- .update-card.available { border-color: rgba(137, 180, 250, 0.3);
26
- }
27
- .update-card.progress { border-color: rgba(249, 226, 175, 0.3);
28
- }
29
- .update-card.downloaded { border-color: rgba(166, 227, 161, 0.3);
30
- }
31
- .update-card.error { border-color: rgba(243, 139, 168, 0.3);
32
- }
33
- .update-card-header {
34
17
  display: flex;
35
18
  align-items: center;
36
19
  justify-content: space-between;
37
- padding: 10px 12px 8px;
38
- border-bottom: 1px solid rgba(255, 255, 255, 0.06);
20
+ padding: 6px 12px;
21
+ font-size: 13px;
22
+ color: #cdd6f4;
23
+ background: linear-gradient(90deg, #1e1e2e 0%, #313244 100%);
24
+ border-bottom: 1px solid rgba(137, 180, 250, 0.3);
39
25
  }
40
- .update-card-title {
26
+ .update-banner-content {
41
27
  display: flex;
42
28
  align-items: center;
43
29
  gap: 8px;
44
- font-weight: 600;
45
- font-size: 13px;
46
- }
47
- .update-card.available .update-card-title { color: #89b4fa;
48
- }
49
- .update-card.progress .update-card-title { color: #f9e2af;
50
- }
51
- .update-card.progress .update-card-title i { animation: spin 1s linear infinite;
52
- }
53
- .update-card.downloaded .update-card-title { color: #a6e3a1;
54
- }
55
- .update-card.error .update-card-title { color: #f38ba8;
56
- }
57
- .update-card-close {
58
- background: none;
59
- border: none;
60
- color: #6c7086;
30
+ flex: 1;
61
31
  cursor: pointer;
62
- padding: 2px 6px;
63
- font-size: 14px;
64
- border-radius: 4px;
65
- line-height: 1;
66
- }
67
- .update-card-close:hover { color: #cdd6f4; background: rgba(255,255,255,0.1);
68
- }
69
- .update-card-body {
70
- padding: 10px 12px 12px;
71
- }
72
- .update-version-info {
73
- margin-bottom: 6px;
74
- }
75
- .update-version-badge {
76
- display: inline-block;
77
- padding: 2px 8px;
78
- font-size: 12px;
79
- font-weight: 600;
80
- border-radius: 4px;
81
- background: rgba(137, 180, 250, 0.15);
82
- color: #89b4fa;
83
32
  }
84
- .update-card.downloaded .update-version-badge {
85
- background: rgba(166, 227, 161, 0.15);
86
- color: #a6e3a1;
87
- }
88
- .update-card-desc {
89
- font-size: 12px;
90
- color: #a6adc8;
91
- line-height: 1.5;
92
- margin-bottom: 8px;
33
+ .update-banner i { font-size: 14px; color: #89b4fa;
93
34
  }
94
- .update-error-text {
95
- color: #f38ba8;
35
+ .update-banner-text { flex: 1;
96
36
  }
97
- .update-card-actions {
98
- display: flex;
99
- justify-content: flex-end;
100
- gap: 8px;
101
- margin-top: 4px;
102
- }
103
-
104
- /* 进度条 */
105
- .update-progress-section {
106
- padding: 2px 0;
107
- }
108
- .update-progress-header {
109
- display: flex;
110
- justify-content: space-between;
111
- align-items: center;
112
- margin-bottom: 8px;
113
- }
114
- .update-progress-label {
115
- font-size: 12px;
116
- color: #a6adc8;
117
- }
118
- .update-progress-percent {
119
- font-size: 14px;
120
- font-weight: 700;
121
- color: #f9e2af;
122
- font-variant-numeric: tabular-nums;
123
- }
124
- .update-progress-bar {
125
- height: 6px;
126
- border-radius: 3px;
127
- background: rgba(255, 255, 255, 0.08);
128
- overflow: hidden;
129
- }
130
- .update-progress-fill {
131
- height: 100%;
132
- border-radius: 3px;
133
- background: linear-gradient(90deg, #f9e2af, #fab387);
134
- transition: width 0.3s ease;
135
- }
136
- .update-progress-detail {
137
- display: flex;
138
- gap: 4px;
139
- margin-top: 6px;
140
- font-size: 11px;
141
- color: #6c7086;
142
- font-variant-numeric: tabular-nums;
143
- }
144
-
145
- /* 按钮 */
146
37
  .update-btn {
147
- padding: 5px 14px;
38
+ padding: 3px 12px;
148
39
  font-size: 12px;
149
40
  border: none;
150
- border-radius: 6px;
41
+ border-radius: 4px;
151
42
  cursor: pointer;
152
43
  font-weight: 500;
153
- background: #a6e3a1;
44
+ background: #89b4fa;
154
45
  color: #1e1e2e;
155
46
  transition: opacity 0.15s;
156
- display: inline-flex;
157
- align-items: center;
158
47
  }
159
48
  .update-btn:hover { opacity: 0.85;
160
49
  }
161
- .update-btn-secondary {
162
- background: rgba(255,255,255,0.08);
163
- color: #a6adc8;
164
- }
165
- .update-btn-secondary:hover { color: #cdd6f4; background: rgba(255,255,255,0.12);
166
- }
167
-
168
- /* 动画 */
169
- .update-slide-enter-active { animation: slideInRight 0.35s ease;
170
- }
171
- .update-slide-leave-active { animation: slideOutRight 0.25s ease;
50
+ .update-banner-close {
51
+ background: none;
52
+ border: none;
53
+ color: #6c7086;
54
+ cursor: pointer;
55
+ padding: 2px 6px;
56
+ font-size: 14px;
57
+ border-radius: 4px;
172
58
  }
173
- @keyframes slideInRight {
174
- from { transform: translateX(100%); opacity: 0;
59
+ .update-banner-close:hover { color: #cdd6f4; background: rgba(255,255,255,0.1);
175
60
  }
176
- to { transform: translateX(0); opacity: 1;
61
+ .update-slide-enter-active { animation: slideDown 0.3s ease;
177
62
  }
63
+ .update-slide-leave-active { animation: slideUp 0.25s ease;
178
64
  }
179
- @keyframes slideOutRight {
180
- from { transform: translateX(0); opacity: 1;
65
+ @keyframes slideDown {
66
+ from { transform: translateY(-100%);
181
67
  }
182
- to { transform: translateX(100%); opacity: 0;
68
+ to { transform: translateY(0);
183
69
  }
184
70
  }
185
- @keyframes spin {
186
- from { transform: rotate(0deg);
71
+ @keyframes slideUp {
72
+ from { transform: translateY(0);
187
73
  }
188
- to { transform: rotate(360deg);
74
+ to { transform: translateY(-100%);
189
75
  }
190
76
  }
191
77
  /* AICmd 主样式 */
@@ -1,6 +1,6 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./views.js","./rolldown-runtime.js","./vue.js","./xterm.js","./xterm.css","./views.css"])))=>i.map(i=>d[i]);
2
2
  import { i as __toESM, n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime.js";
3
- import { $ as ref, A as getCurrentInstance, B as renderSlot, C as createBaseVNode, D as createTextVNode, E as createElementBlock, F as onBeforeUnmount, G as effectScope, H as watch, I as onMounted, J as isReactive, K as getCurrentScope, L as onUnmounted, N as inject, O as createVNode, P as nextTick, Q as reactive, R as openBlock, S as computed, T as createCommentVNode, U as withCtx, V as resolveComponent, X as markRaw, Y as isRef, Z as onScopeDispose, a as init_vue_router, at as normalizeStyle, c as useI18n, d as createApp, et as toRaw, i as createWebHistory, it as normalizeClass, j as hasInjectionContext, k as defineComponent, l as init_vue_runtime_esm_bundler, n as useTitle, nt as unref, o as createI18n, ot as toDisplayString, r as createRouter, s as init_vue_i18n, t as init_core, tt as toRefs, u as Transition, x as Fragment, z as renderList } from "./vue.js";
3
+ import { $ as ref, A as getCurrentInstance, B as renderSlot, C as createBaseVNode, D as createTextVNode, E as createElementBlock, F as onBeforeUnmount, G as effectScope, H as watch, I as onMounted, J as isReactive, K as getCurrentScope, L as onUnmounted, N as inject, O as createVNode, P as nextTick, Q as reactive, R as openBlock, S as computed, T as createCommentVNode, U as withCtx, V as resolveComponent, X as markRaw, Y as isRef, Z as onScopeDispose, a as init_vue_router, at as normalizeStyle, b as withModifiers, c as useI18n, d as createApp, et as toRaw, i as createWebHistory, it as normalizeClass, j as hasInjectionContext, k as defineComponent, l as init_vue_runtime_esm_bundler, n as useTitle, nt as unref, o as createI18n, ot as toDisplayString, r as createRouter, s as init_vue_i18n, t as init_core, tt as toRefs, u as Transition, x as Fragment, z as renderList } from "./vue.js";
4
4
  import { i as init_bootstrap, n as init_bootstrap_esm, r as init_bootstrap_icons, t as Modal } from "./bootstrap.js";
5
5
  //#region \0vite/modulepreload-polyfill.js
6
6
  (function polyfill() {
@@ -373,122 +373,42 @@ var init_eventBus = __esmMin((() => {
373
373
  }));
374
374
  //#endregion
375
375
  //#region src/platform/App.vue?vue&type=script&setup=true&lang.ts
376
- var _hoisted_1$3, _hoisted_2$3, _hoisted_3$2, _hoisted_4$2, _hoisted_5$2, _hoisted_6$1, _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, App_vue_vue_type_script_setup_true_lang_default;
376
+ var _hoisted_1$3, _hoisted_2$3, _hoisted_3$2, DOWNLOAD_URL, App_vue_vue_type_script_setup_true_lang_default;
377
377
  var init_App_vue_vue_type_script_setup_true_lang = __esmMin((() => {
378
378
  init_vue_runtime_esm_bundler();
379
379
  init_vue_i18n();
380
380
  init_eventBus();
381
- _hoisted_1$3 = { class: "update-card-header" };
382
- _hoisted_2$3 = { class: "update-card-title" };
383
- _hoisted_3$2 = ["title"];
384
- _hoisted_4$2 = { class: "update-card-body" };
385
- _hoisted_5$2 = { class: "update-version-info" };
386
- _hoisted_6$1 = { class: "update-version-badge" };
387
- _hoisted_7 = { class: "update-card-desc" };
388
- _hoisted_8 = { class: "update-card-actions" };
389
- _hoisted_9 = {
390
- key: 1,
391
- class: "update-progress-section"
381
+ _hoisted_1$3 = {
382
+ key: 0,
383
+ class: "update-banner"
392
384
  };
393
- _hoisted_10 = { class: "update-progress-header" };
394
- _hoisted_11 = { class: "update-progress-label" };
395
- _hoisted_12 = { class: "update-progress-percent" };
396
- _hoisted_13 = { class: "update-progress-bar" };
397
- _hoisted_14 = { class: "update-progress-detail" };
398
- _hoisted_15 = { key: 0 };
399
- _hoisted_16 = { class: "update-version-info" };
400
- _hoisted_17 = { class: "update-version-badge" };
401
- _hoisted_18 = { class: "update-card-desc" };
402
- _hoisted_19 = { class: "update-card-actions" };
403
- _hoisted_20 = { class: "update-card-desc update-error-text" };
404
- _hoisted_21 = { class: "update-card-actions" };
385
+ _hoisted_2$3 = { class: "update-banner-text" };
386
+ _hoisted_3$2 = ["title"];
387
+ DOWNLOAD_URL = "https://github.com/fefeding/ai-cmd/releases/latest";
405
388
  App_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
406
389
  __name: "App",
407
390
  setup(__props) {
408
391
  const { t } = useI18n();
409
392
  const updateState = reactive({
410
393
  showBanner: false,
411
- status: "",
412
- version: "",
413
- percent: 0,
414
- transferred: 0,
415
- total: 0,
416
- speed: 0,
417
- errorMessage: ""
394
+ version: ""
418
395
  });
419
396
  let unsubscribeUpdate = null;
420
397
  let unsubscribeMenu = null;
421
- const updateCardIcon = computed(() => {
422
- switch (updateState.status) {
423
- case "available": return "bi-cloud-arrow-down";
424
- case "progress": return "bi-arrow-repeat";
425
- case "downloaded": return "bi-check-circle-fill";
426
- case "error": return "bi-exclamation-triangle-fill";
427
- default: return "bi-info-circle";
428
- }
429
- });
430
- const updateCardTitle = computed(() => {
431
- switch (updateState.status) {
432
- case "available": return t("update.newVersion");
433
- case "progress": return t("update.downloadingTitle");
434
- case "downloaded": return t("update.readyToInstall");
435
- case "error": return t("update.updateFailed");
436
- default: return "";
437
- }
438
- });
439
- /** 格式化字节大小 */
440
- function formatBytes(bytes) {
441
- if (!bytes || bytes <= 0) return "0 B";
442
- const units = [
443
- "B",
444
- "KB",
445
- "MB",
446
- "GB"
447
- ];
448
- const i = Math.floor(Math.log(bytes) / Math.log(1024));
449
- const val = bytes / Math.pow(1024, i);
450
- return val >= 10 ? `${Math.round(val)} ${units[i]}` : `${val.toFixed(1)} ${units[i]}`;
451
- }
452
- function handleInstallUpdate() {
453
- window.electronAPI?.updater?.install();
398
+ /** 跳转到下载页(在 Electron 中会通过外部浏览器打开) */
399
+ function handleDownload() {
400
+ window.open(DOWNLOAD_URL, "_blank");
454
401
  }
455
402
  function handleDismiss() {
456
403
  updateState.showBanner = false;
457
404
  }
458
- function handleRetryUpdate() {
459
- updateState.showBanner = false;
460
- window.electronAPI?.updater?.checkForUpdates();
461
- }
462
405
  onMounted(() => {
463
406
  if (!window.electronAPI?.updater) return;
464
407
  unsubscribeUpdate = window.electronAPI.updater.onEvent((msg) => {
465
408
  const { event, data } = msg;
466
- switch (event) {
467
- case "available":
468
- updateState.status = "available";
469
- updateState.version = data?.version || "";
470
- updateState.showBanner = true;
471
- break;
472
- case "progress":
473
- updateState.status = "progress";
474
- updateState.percent = data?.percent || 0;
475
- updateState.transferred = data?.transferred || 0;
476
- updateState.total = data?.total || 0;
477
- updateState.speed = data?.bytesPerSecond || 0;
478
- updateState.showBanner = true;
479
- break;
480
- case "downloaded":
481
- updateState.status = "downloaded";
482
- updateState.version = data?.version || "";
483
- updateState.showBanner = true;
484
- break;
485
- case "not-available": break;
486
- case "error":
487
- console.error("[Update] Error:", data?.message);
488
- updateState.status = "error";
489
- updateState.errorMessage = data?.message || "";
490
- updateState.showBanner = true;
491
- break;
409
+ if (event === "available") {
410
+ updateState.version = data?.version || "";
411
+ updateState.showBanner = true;
492
412
  }
493
413
  });
494
414
  unsubscribeMenu = window.electronAPI.updater.onMenuAction((action) => {
@@ -503,48 +423,21 @@ var init_App_vue_vue_type_script_setup_true_lang = __esmMin((() => {
503
423
  return (_ctx, _cache) => {
504
424
  const _component_router_view = resolveComponent("router-view");
505
425
  return openBlock(), createElementBlock(Fragment, null, [createVNode(Transition, { name: "update-slide" }, {
506
- default: withCtx(() => [updateState.showBanner ? (openBlock(), createElementBlock("div", {
507
- key: 0,
508
- class: normalizeClass(["update-card", updateState.status])
509
- }, [createBaseVNode("div", _hoisted_1$3, [createBaseVNode("div", _hoisted_2$3, [createBaseVNode("i", { class: normalizeClass(["bi", updateCardIcon.value]) }, null, 2), createBaseVNode("span", null, toDisplayString(updateCardTitle.value), 1)]), createBaseVNode("button", {
510
- class: "update-card-close",
511
- onClick: handleDismiss,
512
- title: unref(t)("common.close")
513
- }, [..._cache[0] || (_cache[0] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])], 8, _hoisted_3$2)]), createBaseVNode("div", _hoisted_4$2, [updateState.status === "available" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
514
- createBaseVNode("div", _hoisted_5$2, [createBaseVNode("span", _hoisted_6$1, "v" + toDisplayString(updateState.version), 1)]),
515
- createBaseVNode("div", _hoisted_7, toDisplayString(unref(t)("update.availableDesc")), 1),
516
- createBaseVNode("div", _hoisted_8, [createBaseVNode("button", {
517
- class: "update-btn update-btn-secondary",
518
- onClick: handleDismiss
519
- }, toDisplayString(unref(t)("update.later")), 1)])
520
- ], 64)) : updateState.status === "progress" ? (openBlock(), createElementBlock("div", _hoisted_9, [
521
- createBaseVNode("div", _hoisted_10, [createBaseVNode("span", _hoisted_11, toDisplayString(unref(t)("update.downloading")), 1), createBaseVNode("span", _hoisted_12, toDisplayString(updateState.percent) + "%", 1)]),
522
- createBaseVNode("div", _hoisted_13, [createBaseVNode("div", {
523
- class: "update-progress-fill",
524
- style: normalizeStyle({ width: updateState.percent + "%" })
525
- }, null, 4)]),
526
- createBaseVNode("div", _hoisted_14, [
527
- createBaseVNode("span", null, toDisplayString(formatBytes(updateState.transferred)), 1),
528
- createBaseVNode("span", null, "/ " + toDisplayString(formatBytes(updateState.total)), 1),
529
- updateState.speed ? (openBlock(), createElementBlock("span", _hoisted_15, " · " + toDisplayString(formatBytes(updateState.speed)) + "/s", 1)) : createCommentVNode("", true)
530
- ])
531
- ])) : updateState.status === "downloaded" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
532
- createBaseVNode("div", _hoisted_16, [createBaseVNode("span", _hoisted_17, "v" + toDisplayString(updateState.version), 1)]),
533
- createBaseVNode("div", _hoisted_18, toDisplayString(unref(t)("update.downloadedDesc")), 1),
534
- createBaseVNode("div", _hoisted_19, [createBaseVNode("button", {
535
- class: "update-btn update-btn-secondary",
536
- onClick: handleDismiss
537
- }, toDisplayString(unref(t)("update.later")), 1), createBaseVNode("button", {
426
+ default: withCtx(() => [updateState.showBanner ? (openBlock(), createElementBlock("div", _hoisted_1$3, [createBaseVNode("div", {
427
+ class: "update-banner-content",
428
+ onClick: handleDownload
429
+ }, [
430
+ _cache[0] || (_cache[0] = createBaseVNode("i", { class: "bi bi-cloud-arrow-down" }, null, -1)),
431
+ createBaseVNode("span", _hoisted_2$3, toDisplayString(unref(t)("update.available", { version: updateState.version })), 1),
432
+ createBaseVNode("button", {
538
433
  class: "update-btn",
539
- onClick: handleInstallUpdate
540
- }, [_cache[1] || (_cache[1] = createBaseVNode("i", { class: "bi bi-arrow-clockwise me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("update.restart")), 1)])])
541
- ], 64)) : updateState.status === "error" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [createBaseVNode("div", _hoisted_20, toDisplayString(updateState.errorMessage || unref(t)("update.error")), 1), createBaseVNode("div", _hoisted_21, [createBaseVNode("button", {
542
- class: "update-btn update-btn-secondary",
543
- onClick: handleDismiss
544
- }, toDisplayString(unref(t)("common.close")), 1), createBaseVNode("button", {
545
- class: "update-btn",
546
- onClick: handleRetryUpdate
547
- }, [_cache[2] || (_cache[2] = createBaseVNode("i", { class: "bi bi-arrow-clockwise me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("update.retry")), 1)])])], 64)) : createCommentVNode("", true)])], 2)) : createCommentVNode("", true)]),
434
+ onClick: withModifiers(handleDownload, ["stop"])
435
+ }, toDisplayString(unref(t)("update.downloadNow")), 1)
436
+ ]), createBaseVNode("button", {
437
+ class: "update-banner-close",
438
+ onClick: handleDismiss,
439
+ title: unref(t)("update.later")
440
+ }, [..._cache[1] || (_cache[1] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])], 8, _hoisted_3$2)])) : createCommentVNode("", true)]),
548
441
  _: 1
549
442
  }), createVNode(_component_router_view)], 64);
550
443
  };
@@ -3853,7 +3746,16 @@ var init_zh_CN = __esmMin((() => {
3853
3746
  startupScriptPlaceholder: "跳板机示例:ssh 192.168.1.100\n其他示例:cd /data && source env.sh",
3854
3747
  startupScriptHint: "SSH 连接建立后自动执行的命令,常用于跳板机跳转、自动切换目录等场景",
3855
3748
  forwardAgent: "SSH Agent 转发",
3856
- forwardAgentHint: "将本机 SSH 密钥转发到远程服务器,用于跳板机跳转时的密钥认证"
3749
+ forwardAgentHint: "将本机 SSH 密钥转发到远程服务器,用于跳板机跳转时的密钥认证",
3750
+ keepaliveConfig: "连接保活",
3751
+ keepaliveInterval: "心跳间隔",
3752
+ keepaliveIntervalPlaceholder: "10000",
3753
+ keepaliveIntervalHint: "每隔多少毫秒发送一次心跳包(默认 10000ms)",
3754
+ keepaliveCountMax: "最大失败次数",
3755
+ keepaliveCountMaxPlaceholder: "3",
3756
+ keepaliveCountMaxHint: "连续多少次心跳失败后断开连接(默认 3 次)",
3757
+ keepaliveEnabled: "启用保活",
3758
+ keepaliveEnabledHint: "定期发送心跳包保持 SSH 连接活跃,防止因长时间无操作而断开"
3857
3759
  },
3858
3760
  fileTransfer: {
3859
3761
  title: "文件传输",
@@ -3894,6 +3796,8 @@ var init_zh_CN = __esmMin((() => {
3894
3796
  chat: "AI 助手",
3895
3797
  enableAI: "启用 AI 功能",
3896
3798
  enableHint: "启用后可在终端中使用 AI 助手",
3799
+ provider: "AI 提供商",
3800
+ providerHint: "选择 AI 服务提供商",
3897
3801
  apiKey: "API Key",
3898
3802
  apiKeyPlaceholder: "sk-...",
3899
3803
  apiKeyHint: "OpenAI 或兼容服务的 API Key",
@@ -3914,7 +3818,7 @@ var init_zh_CN = __esmMin((() => {
3914
3818
  saveFailed: "保存失败",
3915
3819
  clearHistory: "清空对话",
3916
3820
  emptyHint: "告诉 AI 你想做什么,它会自动帮你操作终端",
3917
- inputPlaceholder: "描述你想完成的任务,按 Enter 发送...",
3821
+ inputPlaceholder: "描述任务,按 Enter 发送...",
3918
3822
  executeCommand: "执行命令",
3919
3823
  agentHint: "AI Agent 可以直接操作你的终端 Shell\n试试说:“帮我查看当前目录” 或 “查找占用 80 端口的进程”",
3920
3824
  agentThinking: "思考中...",
@@ -3984,17 +3888,8 @@ var init_zh_CN = __esmMin((() => {
3984
3888
  },
3985
3889
  update: {
3986
3890
  newVersion: "发现新版本",
3987
- available: "新版本 v{version} 可用,正在下载...",
3988
- availableDesc: "新版本正在后台自动下载,完成后将提示您安装。",
3989
- downloadingTitle: "正在下载更新",
3990
- downloading: "下载中",
3991
- downloaded: "v{version} 已下载完成,重启即可更新",
3992
- downloadedDesc: "新版本已下载完成,重启应用即可完成更新。",
3993
- readyToInstall: "准备安装",
3994
- error: "检查更新失败",
3995
- updateFailed: "更新失败",
3996
- retry: "重试",
3997
- restart: "立即重启",
3891
+ available: "发现新版本 v{version},点击下载更新。",
3892
+ downloadNow: "下载",
3998
3893
  later: "稍后"
3999
3894
  }
4000
3895
  };
@@ -4111,7 +4006,16 @@ var init_en_US = __esmMin((() => {
4111
4006
  startupScriptPlaceholder: "Jump host example: ssh 192.168.1.100\nOther example: cd /data && source env.sh",
4112
4007
  startupScriptHint: "Command to execute after SSH connection is established. Useful for jump host hopping, auto cd to working directory, etc.",
4113
4008
  forwardAgent: "SSH Agent Forwarding",
4114
- forwardAgentHint: "Forward local SSH keys to remote server for key-based authentication on jump host hops"
4009
+ forwardAgentHint: "Forward local SSH keys to remote server for key-based authentication on jump host hops",
4010
+ keepaliveConfig: "Keepalive",
4011
+ keepaliveInterval: "Heartbeat Interval",
4012
+ keepaliveIntervalPlaceholder: "10000",
4013
+ keepaliveIntervalHint: "How often to send keepalive packets in milliseconds (default: 10000ms)",
4014
+ keepaliveCountMax: "Max Failures",
4015
+ keepaliveCountMaxPlaceholder: "3",
4016
+ keepaliveCountMaxHint: "Disconnect after this many consecutive keepalive failures (default: 3)",
4017
+ keepaliveEnabled: "Enable Keepalive",
4018
+ keepaliveEnabledHint: "Send periodic keepalive packets to maintain SSH connection and prevent timeout"
4115
4019
  },
4116
4020
  fileTransfer: {
4117
4021
  title: "File Transfer",
@@ -4152,6 +4056,8 @@ var init_en_US = __esmMin((() => {
4152
4056
  chat: "AI Assistant",
4153
4057
  enableAI: "Enable AI",
4154
4058
  enableHint: "Enable to use AI assistant in terminal",
4059
+ provider: "AI Provider",
4060
+ providerHint: "Select AI service provider",
4155
4061
  apiKey: "API Key",
4156
4062
  apiKeyPlaceholder: "sk-...",
4157
4063
  apiKeyHint: "OpenAI or compatible service API Key",
@@ -4172,7 +4078,7 @@ var init_en_US = __esmMin((() => {
4172
4078
  saveFailed: "Save failed",
4173
4079
  clearHistory: "Clear History",
4174
4080
  emptyHint: "Tell AI what you want to do, it will operate the terminal for you",
4175
- inputPlaceholder: "Describe your task, press Enter to send...",
4081
+ inputPlaceholder: "Describe your task, press Enter...",
4176
4082
  executeCommand: "Execute Command",
4177
4083
  agentHint: "AI Agent can directly operate your terminal Shell\nTry: \"list current directory\" or \"find process using port 80\"",
4178
4084
  agentThinking: "Thinking...",
@@ -4242,17 +4148,8 @@ var init_en_US = __esmMin((() => {
4242
4148
  },
4243
4149
  update: {
4244
4150
  newVersion: "New Version Available",
4245
- available: "New version v{version} available, downloading...",
4246
- availableDesc: "A new version is being downloaded in the background. You'll be notified when it's ready.",
4247
- downloadingTitle: "Downloading Update",
4248
- downloading: "Downloading",
4249
- downloaded: "v{version} downloaded, restart to apply",
4250
- downloadedDesc: "The new version has been downloaded. Restart the app to apply the update.",
4251
- readyToInstall: "Ready to Install",
4252
- error: "Update check failed",
4253
- updateFailed: "Update Failed",
4254
- retry: "Retry",
4255
- restart: "Restart Now",
4151
+ available: "New version v{version} is available.",
4152
+ downloadNow: "Download",
4256
4153
  later: "Later"
4257
4154
  }
4258
4155
  };
@@ -1207,19 +1207,19 @@
1207
1207
  opacity: 0.6;
1208
1208
  }
1209
1209
 
1210
- .connection-form[data-v-a513483a] { padding: 0.5rem;
1210
+ .connection-form[data-v-0db4df7c] { padding: 0.5rem;
1211
1211
  }
1212
- .card-header[data-v-a513483a] { user-select: none;
1212
+ .card-header[data-v-0db4df7c] { user-select: none;
1213
1213
  }
1214
1214
 
1215
- .ai-settings-form[data-v-ba6b7564] {
1215
+ .ai-settings-form[data-v-226da730] {
1216
1216
  padding: 0.5rem;
1217
1217
  }
1218
- .form-check-input[data-v-ba6b7564]:checked {
1218
+ .form-check-input[data-v-226da730]:checked {
1219
1219
  background-color: var(--accent);
1220
1220
  border-color: var(--accent);
1221
1221
  }
1222
- .form-text[data-v-ba6b7564] {
1222
+ .form-text[data-v-226da730] {
1223
1223
  font-size: 12px;
1224
1224
  display: block;
1225
1225
  margin-top: 4px;