@fefeding/aicmd 1.0.5 → 1.0.9

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.
@@ -6,188 +6,6 @@ html, body, #app {
6
6
  overflow: hidden;
7
7
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
8
8
  }
9
-
10
- /* 更新通知卡片 - 右下角浮动 */
11
- .update-card {
12
- position: fixed;
13
- bottom: 20px;
14
- right: 20px;
15
- 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
- display: flex;
35
- align-items: center;
36
- justify-content: space-between;
37
- padding: 10px 12px 8px;
38
- border-bottom: 1px solid rgba(255, 255, 255, 0.06);
39
- }
40
- .update-card-title {
41
- display: flex;
42
- align-items: center;
43
- 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;
61
- 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
- }
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;
93
- }
94
- .update-error-text {
95
- color: #f38ba8;
96
- }
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
- .update-btn {
147
- padding: 5px 14px;
148
- font-size: 12px;
149
- border: none;
150
- border-radius: 6px;
151
- cursor: pointer;
152
- font-weight: 500;
153
- background: #a6e3a1;
154
- color: #1e1e2e;
155
- transition: opacity 0.15s;
156
- display: inline-flex;
157
- align-items: center;
158
- }
159
- .update-btn:hover { opacity: 0.85;
160
- }
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;
172
- }
173
- @keyframes slideInRight {
174
- from { transform: translateX(100%); opacity: 0;
175
- }
176
- to { transform: translateX(0); opacity: 1;
177
- }
178
- }
179
- @keyframes slideOutRight {
180
- from { transform: translateX(0); opacity: 1;
181
- }
182
- to { transform: translateX(100%); opacity: 0;
183
- }
184
- }
185
- @keyframes spin {
186
- from { transform: rotate(0deg);
187
- }
188
- to { transform: rotate(360deg);
189
- }
190
- }
191
9
  /* AICmd 主样式 */
192
10
 
193
11
  [data-bs-theme="dark"] {
@@ -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 toRaw, A as hasInjectionContext, B as resolveComponent, C as createBlock, D as createVNode, E as createTextVNode, F as onMounted, G as getCurrentScope, I as onUnmounted, J as isRef, L as openBlock, M as inject, N as nextTick, O as defineComponent, P as onBeforeUnmount, Q as ref, R as renderList, S as createBaseVNode, T as createElementBlock, V as watch, W as effectScope, X as onScopeDispose, Y as markRaw, Z as reactive, a as init_vue_router, at as toDisplayString, b as Fragment, c as useI18n, et as toRefs, i as createWebHistory, it as normalizeStyle, k as getCurrentInstance, l as init_vue_runtime_esm_bundler, n as useTitle, o as createI18n, q as isReactive, r as createRouter, rt as normalizeClass, s as init_vue_i18n, t as init_core, tt as unref, u as createApp, w as createCommentVNode, x as computed, z as renderSlot } 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() {
@@ -372,123 +372,58 @@ var init_eventBus = __esmMin((() => {
372
372
  GlobalEventBusCache = /* @__PURE__ */ new Map();
373
373
  }));
374
374
  //#endregion
375
+ //#region src/utils/toast.ts
376
+ function setGlobalToast(toast) {
377
+ globalToast = toast;
378
+ }
379
+ var globalToast, ToastHelper, toast;
380
+ var init_toast$2 = __esmMin((() => {
381
+ init_vue_runtime_esm_bundler();
382
+ globalToast = null;
383
+ ToastHelper = class {
384
+ getToast() {
385
+ if (globalToast) return globalToast;
386
+ const instance = getCurrentInstance();
387
+ if (!instance) return null;
388
+ return instance.appContext.config?.globalProperties?.$toast || null;
389
+ }
390
+ success(message, title = "", duration = 3e3) {
391
+ this.getToast()?.success(message, title, duration);
392
+ }
393
+ error(message, title = "", duration = 3e3) {
394
+ this.getToast()?.error(message, title, duration);
395
+ }
396
+ warning(message, title = "", duration = 3e3) {
397
+ this.getToast()?.warning(message, title, duration);
398
+ }
399
+ info(message, title = "", duration = 3e3) {
400
+ this.getToast()?.info(message, title, duration);
401
+ }
402
+ };
403
+ toast = new ToastHelper();
404
+ }));
405
+ //#endregion
375
406
  //#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;
407
+ var App_vue_vue_type_script_setup_true_lang_default;
377
408
  var init_App_vue_vue_type_script_setup_true_lang = __esmMin((() => {
378
409
  init_vue_runtime_esm_bundler();
379
410
  init_vue_i18n();
380
411
  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"
392
- };
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" };
412
+ init_toast$2();
405
413
  App_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
406
414
  __name: "App",
407
415
  setup(__props) {
408
416
  const { t } = useI18n();
409
- const updateState = reactive({
410
- showBanner: false,
411
- status: "",
412
- version: "",
413
- percent: 0,
414
- transferred: 0,
415
- total: 0,
416
- speed: 0,
417
- errorMessage: ""
418
- });
419
417
  let unsubscribeUpdate = null;
420
418
  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();
454
- }
455
- function handleDismiss() {
456
- updateState.showBanner = false;
457
- }
458
- function handleRetryUpdate() {
459
- updateState.showBanner = false;
460
- window.electronAPI?.updater?.checkForUpdates();
461
- }
462
419
  onMounted(() => {
463
420
  if (!window.electronAPI?.updater) return;
464
421
  unsubscribeUpdate = window.electronAPI.updater.onEvent((msg) => {
465
422
  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;
423
+ if (event === "available" && data?.version) {
424
+ const version = data.version;
425
+ data.downloadUrl;
426
+ toast.info(t("update.available", { version }), t("update.newVersion"), 8e3);
492
427
  }
493
428
  });
494
429
  unsubscribeMenu = window.electronAPI.updater.onMenuAction((action) => {
@@ -502,51 +437,7 @@ var init_App_vue_vue_type_script_setup_true_lang = __esmMin((() => {
502
437
  });
503
438
  return (_ctx, _cache) => {
504
439
  const _component_router_view = resolveComponent("router-view");
505
- 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", {
538
- 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)]),
548
- _: 1
549
- }), createVNode(_component_router_view)], 64);
440
+ return openBlock(), createBlock(_component_router_view);
550
441
  };
551
442
  }
552
443
  });
@@ -3853,7 +3744,16 @@ var init_zh_CN = __esmMin((() => {
3853
3744
  startupScriptPlaceholder: "跳板机示例:ssh 192.168.1.100\n其他示例:cd /data && source env.sh",
3854
3745
  startupScriptHint: "SSH 连接建立后自动执行的命令,常用于跳板机跳转、自动切换目录等场景",
3855
3746
  forwardAgent: "SSH Agent 转发",
3856
- forwardAgentHint: "将本机 SSH 密钥转发到远程服务器,用于跳板机跳转时的密钥认证"
3747
+ forwardAgentHint: "将本机 SSH 密钥转发到远程服务器,用于跳板机跳转时的密钥认证",
3748
+ keepaliveConfig: "连接保活",
3749
+ keepaliveInterval: "心跳间隔",
3750
+ keepaliveIntervalPlaceholder: "10000",
3751
+ keepaliveIntervalHint: "每隔多少毫秒发送一次心跳包(默认 10000ms)",
3752
+ keepaliveCountMax: "最大失败次数",
3753
+ keepaliveCountMaxPlaceholder: "3",
3754
+ keepaliveCountMaxHint: "连续多少次心跳失败后断开连接(默认 3 次)",
3755
+ keepaliveEnabled: "启用保活",
3756
+ keepaliveEnabledHint: "定期发送心跳包保持 SSH 连接活跃,防止因长时间无操作而断开"
3857
3757
  },
3858
3758
  fileTransfer: {
3859
3759
  title: "文件传输",
@@ -3894,6 +3794,8 @@ var init_zh_CN = __esmMin((() => {
3894
3794
  chat: "AI 助手",
3895
3795
  enableAI: "启用 AI 功能",
3896
3796
  enableHint: "启用后可在终端中使用 AI 助手",
3797
+ provider: "AI 提供商",
3798
+ providerHint: "选择 AI 服务提供商",
3897
3799
  apiKey: "API Key",
3898
3800
  apiKeyPlaceholder: "sk-...",
3899
3801
  apiKeyHint: "OpenAI 或兼容服务的 API Key",
@@ -3914,7 +3816,7 @@ var init_zh_CN = __esmMin((() => {
3914
3816
  saveFailed: "保存失败",
3915
3817
  clearHistory: "清空对话",
3916
3818
  emptyHint: "告诉 AI 你想做什么,它会自动帮你操作终端",
3917
- inputPlaceholder: "描述你想完成的任务,按 Enter 发送...",
3819
+ inputPlaceholder: "描述任务,按 Enter 发送...",
3918
3820
  executeCommand: "执行命令",
3919
3821
  agentHint: "AI Agent 可以直接操作你的终端 Shell\n试试说:“帮我查看当前目录” 或 “查找占用 80 端口的进程”",
3920
3822
  agentThinking: "思考中...",
@@ -3984,18 +3886,11 @@ var init_zh_CN = __esmMin((() => {
3984
3886
  },
3985
3887
  update: {
3986
3888
  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: "立即重启",
3998
- later: "稍后"
3889
+ available: "发现新版本 v{version},请前往 GitHub 下载更新。"
3890
+ },
3891
+ context: {
3892
+ copy: "复制",
3893
+ paste: "粘贴"
3999
3894
  }
4000
3895
  };
4001
3896
  }));
@@ -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,18 +4148,11 @@ 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",
4256
- later: "Later"
4151
+ available: "New version v{version} is available. Please download from GitHub."
4152
+ },
4153
+ context: {
4154
+ copy: "Copy",
4155
+ paste: "Paste"
4257
4156
  }
4258
4157
  };
4259
4158
  }));
@@ -4869,7 +4768,7 @@ var init__plugin_vue_export_helper = __esmMin((() => {
4869
4768
  //#endregion
4870
4769
  //#region src/components/toast/toast.vue
4871
4770
  var toast_default$1;
4872
- var init_toast$2 = __esmMin((() => {
4771
+ var init_toast$1 = __esmMin((() => {
4873
4772
  init_toast_vue_vue_type_script_setup_true_lang();
4874
4773
  init_toast_vue_vue_type_script_setup_true_lang();
4875
4774
  init_toast_vue_vue_type_style_index_0_scoped_c107e129_lang();
@@ -4877,43 +4776,12 @@ var init_toast$2 = __esmMin((() => {
4877
4776
  toast_default$1 = /* @__PURE__ */ _plugin_vue_export_helper_default(toast_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c107e129"]]);
4878
4777
  }));
4879
4778
  //#endregion
4880
- //#region src/utils/toast.ts
4881
- function setGlobalToast(toast) {
4882
- globalToast = toast;
4883
- }
4884
- var globalToast, ToastHelper, toast;
4885
- var init_toast$1 = __esmMin((() => {
4886
- init_vue_runtime_esm_bundler();
4887
- globalToast = null;
4888
- ToastHelper = class {
4889
- getToast() {
4890
- if (globalToast) return globalToast;
4891
- const instance = getCurrentInstance();
4892
- if (!instance) return null;
4893
- return instance.appContext.config?.globalProperties?.$toast || null;
4894
- }
4895
- success(message, title = "", duration = 3e3) {
4896
- this.getToast()?.success(message, title, duration);
4897
- }
4898
- error(message, title = "", duration = 3e3) {
4899
- this.getToast()?.error(message, title, duration);
4900
- }
4901
- warning(message, title = "", duration = 3e3) {
4902
- this.getToast()?.warning(message, title, duration);
4903
- }
4904
- info(message, title = "", duration = 3e3) {
4905
- this.getToast()?.info(message, title, duration);
4906
- }
4907
- };
4908
- toast = new ToastHelper();
4909
- }));
4910
- //#endregion
4911
4779
  //#region src/components/toast/index.ts
4912
4780
  var toast_default;
4913
4781
  var init_toast = __esmMin((() => {
4914
4782
  init_vue_runtime_esm_bundler();
4915
- init_toast$2();
4916
4783
  init_toast$1();
4784
+ init_toast$2();
4917
4785
  init_i18n();
4918
4786
  toast_default = {
4919
4787
  install(app) {
@@ -5363,4 +5231,4 @@ var init_modal = __esmMin((() => {
5363
5231
  app.mount("#app");
5364
5232
  })))();
5365
5233
  //#endregion
5366
- export { subscribe as C, init_eventBus as S, config_default as _, init_modal$1 as a, axios as b, toast as c, defineStore as d, init_pinia as f, setLocale as g, init_i18n as h, showConfirm as i, _plugin_vue_export_helper_default as l, i18n as m, init_modal as n, modal_default$1 as o, getLocale as p, showAlert as r, init_toast$1 as s, getModalInstance as t, init__plugin_vue_export_helper as u, init_config as v, unsubscribe as w, init_axios$1 as x, init_axios as y };
5234
+ export { subscribe as C, init_eventBus as S, init_axios as _, init_modal$1 as a, init_toast$2 as b, init__plugin_vue_export_helper as c, getLocale as d, i18n as f, init_config as g, config_default as h, showConfirm as i, defineStore as l, setLocale as m, init_modal as n, modal_default$1 as o, init_i18n as p, showAlert as r, _plugin_vue_export_helper_default as s, getModalInstance as t, init_pinia as u, axios as v, unsubscribe as w, toast as x, init_axios$1 as y };