@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.
@@ -1,6 +1,6 @@
1
1
  import { i as __toESM, n as __esmMin, t as __commonJSMin } from "./rolldown-runtime.js";
2
- import { $ as ref, C as createBaseVNode, D as createTextVNode, E as createElementBlock, F as onBeforeUnmount, H as watch, I as onMounted, O as createVNode, P as nextTick, Q as reactive, R as openBlock, S as computed, T as createCommentVNode, U as withCtx, W as withDirectives, _ as vModelText, at as normalizeStyle, b as withModifiers, c as useI18n, g as vModelSelect, h as vModelRadio, it as normalizeClass, k as defineComponent, l as init_vue_runtime_esm_bundler, m as vModelDynamic, nt as unref, ot as toDisplayString, p as vModelCheckbox, s as init_vue_i18n, v as vShow, w as createBlock, x as Fragment, y as withKeys, z as renderList } from "./vue.js";
3
- import { C as subscribe, S as init_eventBus, _ as config_default, a as init_modal$2, b as axios$1, c as toast, d as defineStore, f as init_pinia, g as setLocale, h as init_i18n, i as showConfirm, l as _plugin_vue_export_helper_default, m as i18n, n as init_modal$1, o as modal_default, p as getLocale, r as showAlert, s as init_toast, t as getModalInstance, u as init__plugin_vue_export_helper, v as init_config, w as unsubscribe, y as init_axios } from "./index.js";
2
+ import { C as createBlock, D as createVNode, E as createTextVNode, F as onMounted, H as withCtx, L as openBlock, N as nextTick, O as defineComponent, P as onBeforeUnmount, Q as ref, R as renderList, S as createBaseVNode, T as createElementBlock, U as withDirectives, V as watch, Z as reactive, _ as vShow, at as toDisplayString, b as Fragment, c as useI18n, f as vModelCheckbox, g as vModelText, h as vModelSelect, it as normalizeStyle, l as init_vue_runtime_esm_bundler, m as vModelRadio, p as vModelDynamic, rt as normalizeClass, s as init_vue_i18n, tt as unref, v as withKeys, w as createCommentVNode, x as computed, y as withModifiers } from "./vue.js";
3
+ import { C as subscribe, S as init_eventBus, _ as init_axios, a as init_modal$2, b as init_toast, c as init__plugin_vue_export_helper, d as getLocale, f as i18n, g as init_config, h as config_default, i as showConfirm, l as defineStore, m as setLocale, n as init_modal$1, o as modal_default, p as init_i18n, r as showAlert, s as _plugin_vue_export_helper_default, t as getModalInstance, u as init_pinia, v as axios$1, w as unsubscribe, x as toast } from "./index.js";
4
4
  import { i as require_xterm, n as require_addon_web_links, r as require_addon_fit, t as init_xterm } from "./xterm.js";
5
5
  //#region src/utils/request.ts
6
6
  async function request$1(url, data, option) {
@@ -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$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _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$5, _hoisted_24$5, terminal_sidebar_vue_vue_type_script_setup_true_lang_default;
364
+ var _hoisted_1$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _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, 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();
@@ -415,8 +415,8 @@ var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() =>
415
415
  };
416
416
  _hoisted_21$6 = { class: "d-flex gap-1 align-items-center" };
417
417
  _hoisted_22$6 = ["title"];
418
- _hoisted_23$5 = ["title"];
419
- _hoisted_24$5 = ["title"];
418
+ _hoisted_23$6 = ["title"];
419
+ _hoisted_24$6 = ["title"];
420
420
  terminal_sidebar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
421
421
  __name: "terminal-sidebar",
422
422
  props: {
@@ -539,12 +539,12 @@ var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() =>
539
539
  class: "btn-ai-settings",
540
540
  onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("open-batch")),
541
541
  title: unref(t)("batch.title")
542
- }, [..._cache[19] || (_cache[19] = [createBaseVNode("i", { class: "bi bi-hdd-rack" }, null, -1)])], 8, _hoisted_23$5),
542
+ }, [..._cache[19] || (_cache[19] = [createBaseVNode("i", { class: "bi bi-hdd-rack" }, null, -1)])], 8, _hoisted_23$6),
543
543
  createBaseVNode("button", {
544
544
  class: "btn-lang-switch",
545
545
  onClick: toggleLocale,
546
546
  title: currentLocale.value === "zh-CN" ? "Switch to English" : "切换到中文"
547
- }, toDisplayString(currentLocale.value === "zh-CN" ? "EN" : "中"), 9, _hoisted_24$5)
547
+ }, toDisplayString(currentLocale.value === "zh-CN" ? "EN" : "中"), 9, _hoisted_24$6)
548
548
  ])])
549
549
  ], 4);
550
550
  };
@@ -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$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _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, _hoisted_21$5, _hoisted_22$5, _hoisted_23$4, _hoisted_24$4, _hoisted_25$3, _hoisted_26$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$3, _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$2, _hoisted_41$2, index_vue_vue_type_script_setup_true_lang_default$6;
3396
+ var _hoisted_1$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _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, _hoisted_21$5, _hoisted_22$5, _hoisted_23$5, _hoisted_24$5, _hoisted_25$4, _hoisted_26$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$3, _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$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();
@@ -3436,9 +3436,9 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3436
3436
  };
3437
3437
  _hoisted_21$5 = ["onClick"];
3438
3438
  _hoisted_22$5 = { class: "entry-header" };
3439
- _hoisted_23$4 = { class: "entry-status" };
3440
- _hoisted_24$4 = { class: "entry-command" };
3441
- _hoisted_25$3 = { class: "entry-meta" };
3439
+ _hoisted_23$5 = { class: "entry-status" };
3440
+ _hoisted_24$5 = { class: "entry-command" };
3441
+ _hoisted_25$4 = { class: "entry-meta" };
3442
3442
  _hoisted_26$3 = { class: "entry-duration" };
3443
3443
  _hoisted_27$3 = { class: "entry-time" };
3444
3444
  _hoisted_28$3 = {
@@ -3610,9 +3610,9 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
3610
3610
  class: normalizeClass(["audit-entry", "status-" + entry.status]),
3611
3611
  onClick: ($event) => toggleExpand(entry.id)
3612
3612
  }, [createBaseVNode("div", _hoisted_22$5, [
3613
- createBaseVNode("span", _hoisted_23$4, [createBaseVNode("i", { class: normalizeClass(statusIcon(entry.status)) }, null, 2)]),
3614
- createBaseVNode("code", _hoisted_24$4, toDisplayString(entry.command || entry.tool), 1),
3615
- createBaseVNode("span", _hoisted_25$3, [createBaseVNode("span", _hoisted_26$3, toDisplayString(formatDuration(entry.duration)), 1), createBaseVNode("span", _hoisted_27$3, toDisplayString(formatTime(entry.timestamp)), 1)])
3613
+ createBaseVNode("span", _hoisted_23$5, [createBaseVNode("i", { class: normalizeClass(statusIcon(entry.status)) }, null, 2)]),
3614
+ createBaseVNode("code", _hoisted_24$5, toDisplayString(entry.command || entry.tool), 1),
3615
+ createBaseVNode("span", _hoisted_25$4, [createBaseVNode("span", _hoisted_26$3, toDisplayString(formatDuration(entry.duration)), 1), createBaseVNode("span", _hoisted_27$3, toDisplayString(formatTime(entry.timestamp)), 1)])
3616
3616
  ]), expandedIds.has(entry.id) ? (openBlock(), createElementBlock("div", _hoisted_28$3, [
3617
3617
  createBaseVNode("div", _hoisted_29$3, [createBaseVNode("span", _hoisted_30$3, toDisplayString(unref(t)("audit.session")) + ":", 1), createBaseVNode("span", null, toDisplayString(entry.sessionName || entry.sessionId), 1)]),
3618
3618
  createBaseVNode("div", _hoisted_31$3, [createBaseVNode("span", _hoisted_32$2, toDisplayString(unref(t)("audit.userRequest")) + ":", 1), createBaseVNode("span", null, toDisplayString(entry.userMessage), 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$6, _hoisted_2$6, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _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$3, _hoisted_24$3, _hoisted_25$2, _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, _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$6, _hoisted_2$6, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _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$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, _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();
@@ -4079,9 +4079,9 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
4079
4079
  key: 0,
4080
4080
  class: "skills-panel"
4081
4081
  };
4082
- _hoisted_23$3 = { class: "skills-panel-header" };
4083
- _hoisted_24$3 = { class: "skills-grid" };
4084
- _hoisted_25$2 = ["onClick"];
4082
+ _hoisted_23$4 = { class: "skills-panel-header" };
4083
+ _hoisted_24$4 = { class: "skills-grid" };
4084
+ _hoisted_25$3 = ["onClick"];
4085
4085
  _hoisted_26$2 = { class: "skill-item-header" };
4086
4086
  _hoisted_27$2 = { class: "skill-name" };
4087
4087
  _hoisted_28$2 = {
@@ -4572,10 +4572,10 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
4572
4572
  }, null, 8, _hoisted_21$4)) : createCommentVNode("", true)
4573
4573
  ])], 2);
4574
4574
  }), 128))], 512), [[vShow, activeTab.value === "chat"]]),
4575
- showSkillsPanel.value ? (openBlock(), createElementBlock("div", _hoisted_22$4, [createBaseVNode("div", _hoisted_23$3, [createBaseVNode("span", null, toDisplayString(unref(t)("ai.selectSkill")), 1), createBaseVNode("button", {
4575
+ showSkillsPanel.value ? (openBlock(), createElementBlock("div", _hoisted_22$4, [createBaseVNode("div", _hoisted_23$4, [createBaseVNode("span", null, toDisplayString(unref(t)("ai.selectSkill")), 1), createBaseVNode("button", {
4576
4576
  class: "btn-ai-action",
4577
4577
  onClick: _cache[2] || (_cache[2] = ($event) => showSkillsPanel.value = false)
4578
- }, [..._cache[17] || (_cache[17] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])])]), createBaseVNode("div", _hoisted_24$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(skills.value, (skill) => {
4578
+ }, [..._cache[17] || (_cache[17] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])])]), createBaseVNode("div", _hoisted_24$4, [(openBlock(true), createElementBlock(Fragment, null, renderList(skills.value, (skill) => {
4579
4579
  return openBlock(), createElementBlock("div", {
4580
4580
  key: skill.id,
4581
4581
  class: normalizeClass(["skill-item", { active: selectedSkill.value?.id === skill.id }]),
@@ -4584,7 +4584,7 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
4584
4584
  _cache[18] || (_cache[18] = createBaseVNode("i", { class: "bi bi-lightning-charge-fill" }, null, -1)),
4585
4585
  createBaseVNode("span", _hoisted_27$2, toDisplayString(skill.name), 1),
4586
4586
  skill.source === "user" ? (openBlock(), createElementBlock("span", _hoisted_28$2, toDisplayString(unref(t)("ai.userSkill")), 1)) : createCommentVNode("", true)
4587
- ]), skill.description ? (openBlock(), createElementBlock("div", _hoisted_29$2, toDisplayString(skill.description), 1)) : createCommentVNode("", true)], 10, _hoisted_25$2);
4587
+ ]), skill.description ? (openBlock(), createElementBlock("div", _hoisted_29$2, toDisplayString(skill.description), 1)) : createCommentVNode("", true)], 10, _hoisted_25$3);
4588
4588
  }), 128)), skills.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_30$2, toDisplayString(unref(t)("ai.noSkills")), 1)) : createCommentVNode("", true)])])) : createCommentVNode("", true),
4589
4589
  showHistoryPanel.value ? (openBlock(), createElementBlock("div", _hoisted_31$2, [createBaseVNode("div", _hoisted_32$1, [createBaseVNode("span", null, toDisplayString(unref(t)("ai.history")), 1), createBaseVNode("button", {
4590
4590
  class: "btn-ai-action",
@@ -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$5, _hoisted_2$5, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _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$2, _hoisted_24$2, file_transfer_vue_vue_type_script_setup_true_lang_default;
4664
+ var _hoisted_1$5, _hoisted_2$5, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _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, 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();
@@ -4717,11 +4717,11 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4717
4717
  style: { "font-size": "11px" }
4718
4718
  };
4719
4719
  _hoisted_22$3 = { class: "d-flex align-items-center justify-content-between" };
4720
- _hoisted_23$2 = {
4720
+ _hoisted_23$3 = {
4721
4721
  class: "text-truncate",
4722
4722
  style: { "font-size": "12px" }
4723
4723
  };
4724
- _hoisted_24$2 = {
4724
+ _hoisted_24$3 = {
4725
4725
  key: 4,
4726
4726
  class: "mt-2 text-center"
4727
4727
  };
@@ -4938,7 +4938,9 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4938
4938
  };
4939
4939
  const safeName = file.name.replace(/[^a-zA-Z0-9._-]/g, "_");
4940
4940
  const sid = activeTermRef.sessionId;
4941
- console.log(`[FileTransfer] HTTP upload: ${file.name} -> ${safeName}, size=${file.size}, sessionId=${sid}`);
4941
+ const cwd = activeTermRef.getCurrentCwd?.() || "";
4942
+ const remoteName = cwd && cwd.startsWith("/") ? `${cwd.replace(/\/$/, "")}/${safeName}` : safeName;
4943
+ console.log(`[FileTransfer] HTTP upload: ${file.name} -> ${remoteName}, size=${file.size}, sessionId=${sid}`);
4942
4944
  currentProgress.value = {
4943
4945
  direction: "upload",
4944
4946
  fileName: file.name,
@@ -4947,7 +4949,7 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
4947
4949
  percent: 10,
4948
4950
  state: "transferring"
4949
4951
  };
4950
- const result = await httpFileUpload(file, safeName, sid);
4952
+ const result = await httpFileUpload(file, remoteName, sid);
4951
4953
  if (result.success) {
4952
4954
  currentProgress.value = {
4953
4955
  direction: "upload",
@@ -5204,12 +5206,12 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5204
5206
  return openBlock(), createElementBlock("div", {
5205
5207
  key: idx,
5206
5208
  class: "transfer-item"
5207
- }, [createBaseVNode("div", _hoisted_22$3, [createBaseVNode("span", _hoisted_23$2, [createBaseVNode("i", { class: normalizeClass([item.direction === "upload" ? "bi bi-upload" : "bi bi-download", "me-1"]) }, null, 2), createTextVNode(" " + toDisplayString(item.fileName), 1)]), createBaseVNode("span", {
5209
+ }, [createBaseVNode("div", _hoisted_22$3, [createBaseVNode("span", _hoisted_23$3, [createBaseVNode("i", { class: normalizeClass([item.direction === "upload" ? "bi bi-upload" : "bi bi-download", "me-1"]) }, null, 2), createTextVNode(" " + toDisplayString(item.fileName), 1)]), createBaseVNode("span", {
5208
5210
  style: { "font-size": "11px" },
5209
5211
  class: normalizeClass(item.state === "complete" ? "text-success" : "text-danger")
5210
5212
  }, toDisplayString(item.state === "complete" ? unref(t)("fileTransfer.complete") : unref(t)("fileTransfer.failed")), 3)])]);
5211
5213
  }), 128))])])) : createCommentVNode("", true),
5212
- transferring.value ? (openBlock(), createElementBlock("div", _hoisted_24$2, [createBaseVNode("button", {
5214
+ transferring.value ? (openBlock(), createElementBlock("div", _hoisted_24$3, [createBaseVNode("button", {
5213
5215
  class: "btn btn-outline-danger btn-sm",
5214
5216
  onClick: cancelTransfer
5215
5217
  }, [_cache[14] || (_cache[14] = createBaseVNode("i", { class: "bi bi-x-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("fileTransfer.cancelTransfer")), 1)])])) : createCommentVNode("", true)
@@ -5219,17 +5221,17 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5219
5221
  });
5220
5222
  }));
5221
5223
  //#endregion
5222
- //#region src/components/file-transfer.vue?vue&type=style&index=0&scoped=c74be8ef&lang.css
5223
- var init_file_transfer_vue_vue_type_style_index_0_scoped_c74be8ef_lang = __esmMin((() => {}));
5224
+ //#region src/components/file-transfer.vue?vue&type=style&index=0&scoped=e8b10ce8&lang.css
5225
+ var init_file_transfer_vue_vue_type_style_index_0_scoped_e8b10ce8_lang = __esmMin((() => {}));
5224
5226
  //#endregion
5225
5227
  //#region src/components/file-transfer.vue
5226
5228
  var file_transfer_default;
5227
5229
  var init_file_transfer = __esmMin((() => {
5228
5230
  init_file_transfer_vue_vue_type_script_setup_true_lang();
5229
5231
  init_file_transfer_vue_vue_type_script_setup_true_lang();
5230
- init_file_transfer_vue_vue_type_style_index_0_scoped_c74be8ef_lang();
5232
+ init_file_transfer_vue_vue_type_style_index_0_scoped_e8b10ce8_lang();
5231
5233
  init__plugin_vue_export_helper();
5232
- file_transfer_default = /* @__PURE__ */ _plugin_vue_export_helper_default(file_transfer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c74be8ef"]]);
5234
+ file_transfer_default = /* @__PURE__ */ _plugin_vue_export_helper_default(file_transfer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-e8b10ce8"]]);
5233
5235
  }));
5234
5236
  //#endregion
5235
5237
  //#region src/components/terminal-tab.vue?vue&type=script&setup=true&lang.ts
@@ -5292,12 +5294,30 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5292
5294
  function showFileTransfer(info) {
5293
5295
  const termRef = {
5294
5296
  sessionId,
5295
- sendToServer: (msg) => {
5296
- if (ws && ws.readyState === WebSocket.OPEN) ws.send(JSON.stringify(msg));
5297
- }
5297
+ sendToServer,
5298
+ getCurrentCwd: inferCurrentCwdFromTerminal
5298
5299
  };
5299
5300
  fileTransferRef.value?.show(props.tabId, termRef, info);
5300
5301
  }
5302
+ function inferCurrentCwdFromTerminal() {
5303
+ if (!terminal) return "";
5304
+ const buffer = terminal.buffer.active;
5305
+ const lines = [];
5306
+ const start = Math.max(0, buffer.baseY + buffer.cursorY - 80);
5307
+ const end = buffer.baseY + buffer.cursorY;
5308
+ for (let i = start; i <= end; i++) {
5309
+ const line = buffer.getLine(i)?.translateToString(true).trim();
5310
+ if (line) lines.push(line);
5311
+ }
5312
+ for (let i = lines.length - 1; i >= 0; i--) {
5313
+ const line = lines[i];
5314
+ const userHostPath = line.match(/(?:^|\s)[^\s@]+@[^\s:]+:(\/[^\s#$]+)\s*[#$]\s*$/);
5315
+ if (userHostPath?.[1]) return userHostPath[1];
5316
+ const plainPath = line.match(/(?:^|\s)(\/[^\s#$]+)\s*[#$]\s*$/);
5317
+ if (plainPath?.[1]) return plainPath[1];
5318
+ }
5319
+ return "";
5320
+ }
5301
5321
  let terminal = null;
5302
5322
  let fitAddon = null;
5303
5323
  let ws = null;
@@ -5376,6 +5396,8 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5376
5396
  terminal.loadAddon(fitAddon);
5377
5397
  terminal.loadAddon(new import_addon_web_links.WebLinksAddon());
5378
5398
  terminal.open(terminalContainer.value);
5399
+ const termElement = terminalContainer.value?.querySelector(".xterm");
5400
+ if (termElement) termElement.addEventListener("contextmenu", showTerminalContextMenu);
5379
5401
  nextTick(() => {
5380
5402
  fitAddon?.fit();
5381
5403
  });
@@ -5422,12 +5444,27 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5422
5444
  return true;
5423
5445
  }
5424
5446
  if (isPasteTrigger) {
5425
- const text = clip ? clip.readText() : "";
5426
- if (text && terminal) sendToServer({
5427
- type: "terminal",
5428
- sessionId: sessionId || pendingSessionId,
5429
- data: text
5430
- });
5447
+ if (clip) {
5448
+ const syncText = clip.readText();
5449
+ if (syncText) sendToServer({
5450
+ type: "terminal",
5451
+ sessionId: sessionId || pendingSessionId,
5452
+ data: syncText
5453
+ });
5454
+ else if (clip.readTextAsync) clip.readTextAsync().then((text) => {
5455
+ if (text && terminal) sendToServer({
5456
+ type: "terminal",
5457
+ sessionId: sessionId || pendingSessionId,
5458
+ data: text
5459
+ });
5460
+ });
5461
+ } else navigator.clipboard?.readText().then((text) => {
5462
+ if (text && terminal) sendToServer({
5463
+ type: "terminal",
5464
+ sessionId: sessionId || pendingSessionId,
5465
+ data: text
5466
+ });
5467
+ }).catch(() => {});
5431
5468
  return false;
5432
5469
  }
5433
5470
  return true;
@@ -5907,6 +5944,7 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5907
5944
  });
5908
5945
  onMounted(() => {
5909
5946
  initTerminal();
5947
+ document.addEventListener("click", onDocumentClick);
5910
5948
  if (terminalContainer.value) {
5911
5949
  resizeObserver = new ResizeObserver(() => {
5912
5950
  if (props.active) fit();
@@ -5918,6 +5956,7 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5918
5956
  onBeforeUnmount(() => {
5919
5957
  if (reconnectTimer) clearTimeout(reconnectTimer);
5920
5958
  resizeObserver?.disconnect();
5959
+ document.removeEventListener("click", onDocumentClick);
5921
5960
  ws?.close();
5922
5961
  ipcCleanup?.();
5923
5962
  terminal?.dispose();
@@ -5978,6 +6017,49 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5978
6017
  function handleAISend(msg) {
5979
6018
  sendToServer(msg);
5980
6019
  }
6020
+ const contextMenuVisible = ref(false);
6021
+ const contextMenuX = ref(0);
6022
+ const contextMenuY = ref(0);
6023
+ function showTerminalContextMenu(event) {
6024
+ event.preventDefault();
6025
+ event.stopPropagation();
6026
+ contextMenuX.value = event.clientX;
6027
+ contextMenuY.value = event.clientY;
6028
+ contextMenuVisible.value = true;
6029
+ }
6030
+ function hideTerminalContextMenu() {
6031
+ contextMenuVisible.value = false;
6032
+ }
6033
+ function handleContextCopy() {
6034
+ hideTerminalContextMenu();
6035
+ if (!terminal) return;
6036
+ const selection = terminal.getSelection();
6037
+ if (selection) {
6038
+ const clip = window.electronAPI?.clipboard;
6039
+ if (clip) clip.writeText(selection);
6040
+ else navigator.clipboard?.writeText(selection).catch(() => {});
6041
+ }
6042
+ }
6043
+ async function handleContextPaste() {
6044
+ hideTerminalContextMenu();
6045
+ if (!terminal) return;
6046
+ const clip = window.electronAPI?.clipboard;
6047
+ let text = "";
6048
+ if (clip) {
6049
+ text = clip.readText();
6050
+ if (!text && clip.readTextAsync) text = await clip.readTextAsync();
6051
+ } else try {
6052
+ text = await navigator.clipboard.readText();
6053
+ } catch {}
6054
+ if (text) sendToServer({
6055
+ type: "terminal",
6056
+ sessionId: sessionId || pendingSessionId,
6057
+ data: text
6058
+ });
6059
+ }
6060
+ function onDocumentClick() {
6061
+ if (contextMenuVisible.value) hideTerminalContextMenu();
6062
+ }
5981
6063
  return (_ctx, _cache) => {
5982
6064
  return openBlock(), createElementBlock("div", {
5983
6065
  class: "terminal-wrapper",
@@ -5999,7 +6081,7 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
5999
6081
  style: normalizeStyle(showAIChat.value ? { right: aiChatWidth.value + 12 + "px" } : {}),
6000
6082
  onClick: toggleAIChat,
6001
6083
  title: unref(t)("ai.chat")
6002
- }, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-robot" }, null, -1)])], 14, _hoisted_1$4)) : createCommentVNode("", true),
6084
+ }, [..._cache[3] || (_cache[3] = [createBaseVNode("i", { class: "bi bi-robot" }, null, -1)])], 14, _hoisted_1$4)) : createCommentVNode("", true),
6003
6085
  withDirectives(createBaseVNode("div", {
6004
6086
  class: "ai-chat-wrapper",
6005
6087
  style: normalizeStyle({ width: aiChatWidth.value + "px" }),
@@ -6025,38 +6107,53 @@ var init_terminal_tab_vue_vue_type_script_setup_true_lang = __esmMin((() => {
6025
6107
  "connectionId",
6026
6108
  "isOpen"
6027
6109
  ])], 4), [[vShow, showAIChat.value]]),
6028
- status.value === "connecting" ? (openBlock(), createElementBlock("div", _hoisted_2$4, [_cache[3] || (_cache[3] = createBaseVNode("div", { class: "spinner-border spinner-border-sm text-warning me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.connecting")), 1)])) : createCommentVNode("", true),
6029
- status.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$4, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-exclamation-triangle me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.connectionFailed")) + ": " + toDisplayString(errorMessage.value), 1)])) : createCommentVNode("", true),
6110
+ status.value === "connecting" ? (openBlock(), createElementBlock("div", _hoisted_2$4, [_cache[4] || (_cache[4] = createBaseVNode("div", { class: "spinner-border spinner-border-sm text-warning me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.connecting")), 1)])) : createCommentVNode("", true),
6111
+ status.value === "error" ? (openBlock(), createElementBlock("div", _hoisted_3$4, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-exclamation-triangle me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.connectionFailed")) + ": " + toDisplayString(errorMessage.value), 1)])) : createCommentVNode("", true),
6030
6112
  status.value === "disconnected" ? (openBlock(), createElementBlock("div", _hoisted_4$4, [
6031
- _cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-wifi-off me-2" }, null, -1)),
6113
+ _cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-wifi-off me-2" }, null, -1)),
6032
6114
  createTextVNode(" " + toDisplayString(unref(t)("tab.disconnected")) + " ", 1),
6033
6115
  createBaseVNode("button", {
6034
6116
  class: "btn btn-sm btn-outline-light ms-3",
6035
6117
  onClick: reconnect
6036
- }, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-arrow-clockwise me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("tab.reconnect")), 1)])
6118
+ }, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-arrow-clockwise me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("tab.reconnect")), 1)])
6037
6119
  ])) : createCommentVNode("", true),
6038
- status.value === "reconnecting" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [_cache[7] || (_cache[7] = createBaseVNode("div", { class: "spinner-border spinner-border-sm text-warning me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.reconnecting")), 1)])) : createCommentVNode("", true)
6120
+ status.value === "reconnecting" ? (openBlock(), createElementBlock("div", _hoisted_5$4, [_cache[8] || (_cache[8] = createBaseVNode("div", { class: "spinner-border spinner-border-sm text-warning me-2" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("tab.reconnecting")), 1)])) : createCommentVNode("", true),
6121
+ contextMenuVisible.value ? (openBlock(), createElementBlock("div", {
6122
+ key: 5,
6123
+ class: "terminal-context-menu",
6124
+ style: normalizeStyle({
6125
+ left: contextMenuX.value + "px",
6126
+ top: contextMenuY.value + "px"
6127
+ }),
6128
+ onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
6129
+ }, [createBaseVNode("div", {
6130
+ class: "context-menu-item",
6131
+ onClick: handleContextCopy
6132
+ }, [_cache[9] || (_cache[9] = createBaseVNode("i", { class: "bi bi-clipboard" }, null, -1)), createTextVNode(toDisplayString(unref(t)("context.copy") || "Copy"), 1)]), createBaseVNode("div", {
6133
+ class: "context-menu-item",
6134
+ onClick: handleContextPaste
6135
+ }, [_cache[10] || (_cache[10] = createBaseVNode("i", { class: "bi bi-clipboard-check" }, null, -1)), createTextVNode(toDisplayString(unref(t)("context.paste") || "Paste"), 1)])], 4)) : createCommentVNode("", true)
6039
6136
  ], 512);
6040
6137
  };
6041
6138
  }
6042
6139
  });
6043
6140
  }));
6044
6141
  //#endregion
6045
- //#region src/components/terminal-tab.vue?vue&type=style&index=0&scoped=a2ff4224&lang.css
6046
- var init_terminal_tab_vue_vue_type_style_index_0_scoped_a2ff4224_lang = __esmMin((() => {}));
6142
+ //#region src/components/terminal-tab.vue?vue&type=style&index=0&scoped=9b473ece&lang.css
6143
+ var init_terminal_tab_vue_vue_type_style_index_0_scoped_9b473ece_lang = __esmMin((() => {}));
6047
6144
  //#endregion
6048
6145
  //#region src/components/terminal-tab.vue
6049
6146
  var terminal_tab_default;
6050
6147
  var init_terminal_tab = __esmMin((() => {
6051
6148
  init_terminal_tab_vue_vue_type_script_setup_true_lang();
6052
6149
  init_terminal_tab_vue_vue_type_script_setup_true_lang();
6053
- init_terminal_tab_vue_vue_type_style_index_0_scoped_a2ff4224_lang();
6150
+ init_terminal_tab_vue_vue_type_style_index_0_scoped_9b473ece_lang();
6054
6151
  init__plugin_vue_export_helper();
6055
- terminal_tab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(terminal_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-a2ff4224"]]);
6152
+ terminal_tab_default = /* @__PURE__ */ _plugin_vue_export_helper_default(terminal_tab_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9b473ece"]]);
6056
6153
  }));
6057
6154
  //#endregion
6058
6155
  //#region src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
6059
- var _hoisted_1$3, _hoisted_2$3, _hoisted_3$3, _hoisted_4$3, _hoisted_5$3, _hoisted_6$3, _hoisted_7$3, _hoisted_8$3, _hoisted_9$3, _hoisted_10$3, _hoisted_11$3, _hoisted_12$3, _hoisted_13$3, _hoisted_14$3, _hoisted_15$3, _hoisted_16$3, _hoisted_17$2, _hoisted_18$2, _hoisted_19$2, _hoisted_20$2, _hoisted_21$2, _hoisted_22$2, _hoisted_23$1, _hoisted_24$1, _hoisted_25$1, _hoisted_26$1, _hoisted_27$1, _hoisted_28$1, _hoisted_29$1, _hoisted_30$1, _hoisted_31$1, _hoisted_32, _hoisted_33, _hoisted_34, _hoisted_35, _hoisted_36, _hoisted_37, _hoisted_38, _hoisted_39, _hoisted_40, _hoisted_41, _hoisted_42, _hoisted_43, _hoisted_44, _hoisted_45, _hoisted_46, _hoisted_47, _hoisted_48, _hoisted_49, _hoisted_50, _hoisted_51, _hoisted_52, _hoisted_53, _hoisted_54, _hoisted_55, _hoisted_56, _hoisted_57, _hoisted_58, _hoisted_59, index_vue_vue_type_script_setup_true_lang_default$3;
6156
+ var _hoisted_1$3, _hoisted_2$3, _hoisted_3$3, _hoisted_4$3, _hoisted_5$3, _hoisted_6$3, _hoisted_7$3, _hoisted_8$3, _hoisted_9$3, _hoisted_10$3, _hoisted_11$3, _hoisted_12$3, _hoisted_13$3, _hoisted_14$3, _hoisted_15$3, _hoisted_16$3, _hoisted_17$2, _hoisted_18$2, _hoisted_19$2, _hoisted_20$2, _hoisted_21$2, _hoisted_22$2, _hoisted_23$2, _hoisted_24$2, _hoisted_25$2, _hoisted_26$1, _hoisted_27$1, _hoisted_28$1, _hoisted_29$1, _hoisted_30$1, _hoisted_31$1, _hoisted_32, _hoisted_33, _hoisted_34, _hoisted_35, _hoisted_36, _hoisted_37, _hoisted_38, _hoisted_39, _hoisted_40, _hoisted_41, _hoisted_42, _hoisted_43, _hoisted_44, _hoisted_45, _hoisted_46, _hoisted_47, _hoisted_48, _hoisted_49, _hoisted_50, _hoisted_51, _hoisted_52, _hoisted_53, _hoisted_54, _hoisted_55, _hoisted_56, _hoisted_57, _hoisted_58, _hoisted_59, _hoisted_60, _hoisted_61, _hoisted_62, _hoisted_63, _hoisted_64, _hoisted_65, _hoisted_66, _hoisted_67, _hoisted_68, _hoisted_69, _hoisted_70, _hoisted_71, _hoisted_72, _hoisted_73, index_vue_vue_type_script_setup_true_lang_default$3;
6060
6157
  var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6061
6158
  init_vue_runtime_esm_bundler();
6062
6159
  init_vue_i18n();
@@ -6103,12 +6200,12 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6103
6200
  };
6104
6201
  _hoisted_21$2 = { class: "form-label fw-bold" };
6105
6202
  _hoisted_22$2 = ["placeholder"];
6106
- _hoisted_23$1 = {
6203
+ _hoisted_23$2 = {
6107
6204
  key: 1,
6108
6205
  class: "mb-3"
6109
6206
  };
6110
- _hoisted_24$1 = { class: "form-label fw-bold" };
6111
- _hoisted_25$1 = ["placeholder"];
6207
+ _hoisted_24$2 = { class: "form-label fw-bold" };
6208
+ _hoisted_25$2 = ["placeholder"];
6112
6209
  _hoisted_26$1 = { class: "mt-2" };
6113
6210
  _hoisted_27$1 = { class: "form-label" };
6114
6211
  _hoisted_28$1 = ["placeholder"];
@@ -6125,33 +6222,53 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6125
6222
  _hoisted_36 = { class: "form-text text-muted mt-1 d-block" };
6126
6223
  _hoisted_37 = { class: "card mb-3" };
6127
6224
  _hoisted_38 = { class: "card-body" };
6128
- _hoisted_39 = { class: "row mb-2" };
6129
- _hoisted_40 = { class: "col-6" };
6130
- _hoisted_41 = { class: "form-label" };
6131
- _hoisted_42 = { class: "col-6" };
6132
- _hoisted_43 = { class: "form-label" };
6133
- _hoisted_44 = { value: "block" };
6134
- _hoisted_45 = { value: "underline" };
6135
- _hoisted_46 = { value: "bar" };
6136
- _hoisted_47 = { class: "row mb-2" };
6137
- _hoisted_48 = { class: "col-6" };
6138
- _hoisted_49 = { class: "form-label" };
6139
- _hoisted_50 = { value: "dark" };
6140
- _hoisted_51 = { value: "light" };
6141
- _hoisted_52 = { class: "col-6" };
6142
- _hoisted_53 = { class: "form-label" };
6143
- _hoisted_54 = { class: "d-flex justify-content-between" };
6144
- _hoisted_55 = ["disabled"];
6145
- _hoisted_56 = {
6225
+ _hoisted_39 = { class: "form-check mb-2" };
6226
+ _hoisted_40 = {
6227
+ class: "form-check-label",
6228
+ for: "keepaliveEnabled"
6229
+ };
6230
+ _hoisted_41 = { class: "form-text text-muted d-block" };
6231
+ _hoisted_42 = {
6232
+ key: 0,
6233
+ class: "row mb-2"
6234
+ };
6235
+ _hoisted_43 = { class: "col-6" };
6236
+ _hoisted_44 = { class: "form-label" };
6237
+ _hoisted_45 = ["placeholder"];
6238
+ _hoisted_46 = { class: "form-text text-muted" };
6239
+ _hoisted_47 = { class: "col-6" };
6240
+ _hoisted_48 = { class: "form-label" };
6241
+ _hoisted_49 = ["placeholder"];
6242
+ _hoisted_50 = { class: "form-text text-muted" };
6243
+ _hoisted_51 = { class: "card mb-3" };
6244
+ _hoisted_52 = { class: "card-body" };
6245
+ _hoisted_53 = { class: "row mb-2" };
6246
+ _hoisted_54 = { class: "col-6" };
6247
+ _hoisted_55 = { class: "form-label" };
6248
+ _hoisted_56 = { class: "col-6" };
6249
+ _hoisted_57 = { class: "form-label" };
6250
+ _hoisted_58 = { value: "block" };
6251
+ _hoisted_59 = { value: "underline" };
6252
+ _hoisted_60 = { value: "bar" };
6253
+ _hoisted_61 = { class: "row mb-2" };
6254
+ _hoisted_62 = { class: "col-6" };
6255
+ _hoisted_63 = { class: "form-label" };
6256
+ _hoisted_64 = { value: "dark" };
6257
+ _hoisted_65 = { value: "light" };
6258
+ _hoisted_66 = { class: "col-6" };
6259
+ _hoisted_67 = { class: "form-label" };
6260
+ _hoisted_68 = { class: "d-flex justify-content-between" };
6261
+ _hoisted_69 = ["disabled"];
6262
+ _hoisted_70 = {
6146
6263
  key: 0,
6147
6264
  class: "spinner-border spinner-border-sm me-1"
6148
6265
  };
6149
- _hoisted_57 = {
6266
+ _hoisted_71 = {
6150
6267
  key: 1,
6151
6268
  class: "bi bi-plug me-1"
6152
6269
  };
6153
- _hoisted_58 = ["disabled"];
6154
- _hoisted_59 = {
6270
+ _hoisted_72 = ["disabled"];
6271
+ _hoisted_73 = {
6155
6272
  key: 0,
6156
6273
  class: "spinner-border spinner-border-sm me-1"
6157
6274
  };
@@ -6164,8 +6281,12 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6164
6281
  const editingConnection = ref(null);
6165
6282
  const showTerminalConfig = ref(false);
6166
6283
  const showStartupScript = ref(false);
6284
+ const showKeepaliveConfig = ref(false);
6167
6285
  const testing = ref(false);
6168
6286
  const saving = ref(false);
6287
+ const keepaliveEnabled = ref(true);
6288
+ const keepaliveInterval = ref(1e4);
6289
+ const keepaliveCountMax = ref(3);
6169
6290
  const defaultForm = () => ({
6170
6291
  name: "",
6171
6292
  type: "ssh",
@@ -6196,10 +6317,20 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6196
6317
  editingConnection.value = connection.id;
6197
6318
  Object.assign(form, defaultForm(), connection);
6198
6319
  showStartupScript.value = !!connection.startupScript || !!connection.forwardAgent;
6320
+ if (connection.options?.keepaliveInterval !== void 0) keepaliveInterval.value = connection.options.keepaliveInterval;
6321
+ else keepaliveInterval.value = 1e4;
6322
+ if (connection.options?.keepaliveCountMax !== void 0) keepaliveCountMax.value = connection.options.keepaliveCountMax;
6323
+ else keepaliveCountMax.value = 3;
6324
+ keepaliveEnabled.value = connection.options?.keepaliveInterval !== void 0 || connection.options?.keepaliveCountMax !== void 0;
6325
+ showKeepaliveConfig.value = keepaliveEnabled.value;
6199
6326
  } else {
6200
6327
  editingConnection.value = null;
6201
6328
  Object.assign(form, defaultForm());
6202
6329
  showStartupScript.value = false;
6330
+ showKeepaliveConfig.value = false;
6331
+ keepaliveEnabled.value = true;
6332
+ keepaliveInterval.value = 1e4;
6333
+ keepaliveCountMax.value = 3;
6203
6334
  }
6204
6335
  connectionModal.value?.show();
6205
6336
  }
@@ -6220,6 +6351,16 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6220
6351
  }
6221
6352
  saving.value = true;
6222
6353
  try {
6354
+ if (keepaliveEnabled.value) form.options = {
6355
+ ...form.options,
6356
+ keepaliveInterval: keepaliveInterval.value,
6357
+ keepaliveCountMax: keepaliveCountMax.value
6358
+ };
6359
+ else form.options = {
6360
+ ...form.options,
6361
+ keepaliveInterval: 0,
6362
+ keepaliveCountMax: 0
6363
+ };
6223
6364
  if (editingConnection.value) await connectionService.updateConnection(editingConnection.value, { ...form });
6224
6365
  else await connectionService.addConnection({ ...form });
6225
6366
  toast.success(t("connection.saveSuccess"));
@@ -6294,9 +6435,9 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6294
6435
  class: "connection-form"
6295
6436
  }, [
6296
6437
  createBaseVNode("div", _hoisted_1$3, [createBaseVNode("label", _hoisted_2$3, [
6297
- _cache[18] || (_cache[18] = createBaseVNode("i", { class: "bi bi-tag me-1" }, null, -1)),
6438
+ _cache[22] || (_cache[22] = createBaseVNode("i", { class: "bi bi-tag me-1" }, null, -1)),
6298
6439
  createTextVNode(toDisplayString(unref(t)("connection.name")) + " ", 1),
6299
- _cache[19] || (_cache[19] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6440
+ _cache[23] || (_cache[23] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6300
6441
  ]), withDirectives(createBaseVNode("input", {
6301
6442
  type: "text",
6302
6443
  class: "form-control",
@@ -6305,16 +6446,16 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6305
6446
  required: ""
6306
6447
  }, null, 8, _hoisted_3$3), [[vModelText, form.name]])]),
6307
6448
  createBaseVNode("div", _hoisted_4$3, [createBaseVNode("div", _hoisted_5$3, [createBaseVNode("label", _hoisted_6$3, [
6308
- _cache[20] || (_cache[20] = createBaseVNode("i", { class: "bi bi-server me-1" }, null, -1)),
6449
+ _cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-server me-1" }, null, -1)),
6309
6450
  createTextVNode(toDisplayString(unref(t)("connection.host")) + " ", 1),
6310
- _cache[21] || (_cache[21] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6451
+ _cache[25] || (_cache[25] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6311
6452
  ]), withDirectives(createBaseVNode("input", {
6312
6453
  type: "text",
6313
6454
  class: "form-control",
6314
6455
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.host = $event),
6315
6456
  placeholder: unref(t)("connection.hostPlaceholder"),
6316
6457
  required: form.type === "ssh"
6317
- }, null, 8, _hoisted_7$3), [[vModelText, form.host]])]), createBaseVNode("div", _hoisted_8$3, [createBaseVNode("label", _hoisted_9$3, [_cache[22] || (_cache[22] = createBaseVNode("i", { class: "bi bi-door-closed me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.port")), 1)]), withDirectives(createBaseVNode("input", {
6458
+ }, null, 8, _hoisted_7$3), [[vModelText, form.host]])]), createBaseVNode("div", _hoisted_8$3, [createBaseVNode("label", _hoisted_9$3, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-door-closed me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.port")), 1)]), withDirectives(createBaseVNode("input", {
6318
6459
  type: "number",
6319
6460
  class: "form-control",
6320
6461
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.port = $event),
@@ -6327,9 +6468,9 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6327
6468
  { number: true }
6328
6469
  ]])])]),
6329
6470
  createBaseVNode("div", _hoisted_10$3, [createBaseVNode("label", _hoisted_11$3, [
6330
- _cache[23] || (_cache[23] = createBaseVNode("i", { class: "bi bi-person me-1" }, null, -1)),
6471
+ _cache[27] || (_cache[27] = createBaseVNode("i", { class: "bi bi-person me-1" }, null, -1)),
6331
6472
  createTextVNode(toDisplayString(unref(t)("connection.username")) + " ", 1),
6332
- _cache[24] || (_cache[24] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6473
+ _cache[28] || (_cache[28] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6333
6474
  ]), withDirectives(createBaseVNode("input", {
6334
6475
  type: "text",
6335
6476
  class: "form-control",
@@ -6338,7 +6479,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6338
6479
  required: form.type === "ssh"
6339
6480
  }, null, 8, _hoisted_12$3), [[vModelText, form.username]])]),
6340
6481
  createBaseVNode("div", _hoisted_13$3, [
6341
- createBaseVNode("label", _hoisted_14$3, [_cache[25] || (_cache[25] = createBaseVNode("i", { class: "bi bi-shield-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.authType")), 1)]),
6482
+ createBaseVNode("label", _hoisted_14$3, [_cache[29] || (_cache[29] = createBaseVNode("i", { class: "bi bi-shield-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.authType")), 1)]),
6342
6483
  createBaseVNode("div", _hoisted_15$3, [
6343
6484
  withDirectives(createBaseVNode("input", {
6344
6485
  type: "radio",
@@ -6348,7 +6489,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6348
6489
  value: "auto",
6349
6490
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.authType = $event)
6350
6491
  }, null, 512), [[vModelRadio, form.authType]]),
6351
- createBaseVNode("label", _hoisted_16$3, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-magic me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.auto")), 1)]),
6492
+ createBaseVNode("label", _hoisted_16$3, [_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-magic me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.auto")), 1)]),
6352
6493
  withDirectives(createBaseVNode("input", {
6353
6494
  type: "radio",
6354
6495
  class: "btn-check",
@@ -6357,7 +6498,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6357
6498
  value: "password",
6358
6499
  "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.authType = $event)
6359
6500
  }, null, 512), [[vModelRadio, form.authType]]),
6360
- createBaseVNode("label", _hoisted_17$2, [_cache[27] || (_cache[27] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.password")), 1)]),
6501
+ createBaseVNode("label", _hoisted_17$2, [_cache[31] || (_cache[31] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.password")), 1)]),
6361
6502
  withDirectives(createBaseVNode("input", {
6362
6503
  type: "radio",
6363
6504
  class: "btn-check",
@@ -6366,9 +6507,9 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6366
6507
  value: "privateKey",
6367
6508
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.authType = $event)
6368
6509
  }, null, 512), [[vModelRadio, form.authType]]),
6369
- createBaseVNode("label", _hoisted_18$2, [_cache[28] || (_cache[28] = createBaseVNode("i", { class: "bi bi-file-earmark-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.privateKey")), 1)])
6510
+ createBaseVNode("label", _hoisted_18$2, [_cache[32] || (_cache[32] = createBaseVNode("i", { class: "bi bi-file-earmark-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.privateKey")), 1)])
6370
6511
  ]),
6371
- form.authType === "auto" ? (openBlock(), createElementBlock("small", _hoisted_19$2, [_cache[29] || (_cache[29] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.autoHint")), 1)])) : createCommentVNode("", true)
6512
+ form.authType === "auto" ? (openBlock(), createElementBlock("small", _hoisted_19$2, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.autoHint")), 1)])) : createCommentVNode("", true)
6372
6513
  ]),
6373
6514
  form.authType === "password" ? (openBlock(), createElementBlock("div", _hoisted_20$2, [createBaseVNode("label", _hoisted_21$2, toDisplayString(unref(t)("connection.passwordLabel")), 1), withDirectives(createBaseVNode("input", {
6374
6515
  type: "password",
@@ -6376,14 +6517,14 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6376
6517
  "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.password = $event),
6377
6518
  placeholder: unref(t)("connection.passwordPlaceholder")
6378
6519
  }, null, 8, _hoisted_22$2), [[vModelText, form.password]])])) : createCommentVNode("", true),
6379
- form.authType === "privateKey" ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
6380
- createBaseVNode("label", _hoisted_24$1, toDisplayString(unref(t)("connection.privateKeyContent")), 1),
6520
+ form.authType === "privateKey" ? (openBlock(), createElementBlock("div", _hoisted_23$2, [
6521
+ createBaseVNode("label", _hoisted_24$2, toDisplayString(unref(t)("connection.privateKeyContent")), 1),
6381
6522
  withDirectives(createBaseVNode("textarea", {
6382
6523
  class: "form-control",
6383
6524
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.privateKey = $event),
6384
6525
  rows: "5",
6385
6526
  placeholder: unref(t)("connection.privateKeyPlaceholder")
6386
- }, null, 8, _hoisted_25$1), [[vModelText, form.privateKey]]),
6527
+ }, null, 8, _hoisted_25$2), [[vModelText, form.privateKey]]),
6387
6528
  createBaseVNode("div", _hoisted_26$1, [createBaseVNode("label", _hoisted_27$1, toDisplayString(unref(t)("connection.passphrase")), 1), withDirectives(createBaseVNode("input", {
6388
6529
  type: "password",
6389
6530
  class: "form-control",
@@ -6394,14 +6535,14 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6394
6535
  type: "button",
6395
6536
  class: "btn btn-sm btn-outline-secondary",
6396
6537
  onClick: loadPrivateKey
6397
- }, [_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-folder-open me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.loadFromFile")), 1)])])
6538
+ }, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-folder-open me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.loadFromFile")), 1)])])
6398
6539
  ])) : createCommentVNode("", true),
6399
6540
  createBaseVNode("div", _hoisted_30$1, [createBaseVNode("div", {
6400
6541
  class: "card-header",
6401
6542
  onClick: _cache[10] || (_cache[10] = ($event) => showStartupScript.value = !showStartupScript.value),
6402
6543
  style: { "cursor": "pointer" }
6403
6544
  }, [
6404
- _cache[31] || (_cache[31] = createBaseVNode("i", { class: "bi bi-lightning-charge me-1" }, null, -1)),
6545
+ _cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-lightning-charge me-1" }, null, -1)),
6405
6546
  createTextVNode(toDisplayString(unref(t)("connection.startupScript")) + " ", 1),
6406
6547
  createBaseVNode("i", { class: normalizeClass(showStartupScript.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
6407
6548
  ]), withDirectives(createBaseVNode("div", _hoisted_31$1, [
@@ -6412,8 +6553,8 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6412
6553
  "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.forwardAgent = $event),
6413
6554
  id: "forwardAgent"
6414
6555
  }, null, 512), [[vModelCheckbox, form.forwardAgent]]),
6415
- createBaseVNode("label", _hoisted_33, [_cache[32] || (_cache[32] = createBaseVNode("i", { class: "bi bi-arrow-repeat me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgent")), 1)]),
6416
- createBaseVNode("small", _hoisted_34, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgentHint")), 1)])
6556
+ createBaseVNode("label", _hoisted_33, [_cache[36] || (_cache[36] = createBaseVNode("i", { class: "bi bi-arrow-repeat me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgent")), 1)]),
6557
+ createBaseVNode("small", _hoisted_34, [_cache[37] || (_cache[37] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgentHint")), 1)])
6417
6558
  ]),
6418
6559
  withDirectives(createBaseVNode("textarea", {
6419
6560
  class: "form-control",
@@ -6421,20 +6562,70 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6421
6562
  rows: "3",
6422
6563
  placeholder: unref(t)("connection.startupScriptPlaceholder")
6423
6564
  }, null, 8, _hoisted_35), [[vModelText, form.startupScript]]),
6424
- createBaseVNode("small", _hoisted_36, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.startupScriptHint")), 1)])
6565
+ createBaseVNode("small", _hoisted_36, [_cache[38] || (_cache[38] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.startupScriptHint")), 1)])
6425
6566
  ], 512), [[vShow, showStartupScript.value]])]),
6426
6567
  createBaseVNode("div", _hoisted_37, [createBaseVNode("div", {
6427
6568
  class: "card-header",
6428
- onClick: _cache[13] || (_cache[13] = ($event) => showTerminalConfig.value = !showTerminalConfig.value),
6569
+ onClick: _cache[13] || (_cache[13] = ($event) => showKeepaliveConfig.value = !showKeepaliveConfig.value),
6429
6570
  style: { "cursor": "pointer" }
6430
6571
  }, [
6431
- _cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-terminal me-1" }, null, -1)),
6572
+ _cache[39] || (_cache[39] = createBaseVNode("i", { class: "bi bi-heart-pulse me-1" }, null, -1)),
6573
+ createTextVNode(toDisplayString(unref(t)("connection.keepaliveConfig")) + " ", 1),
6574
+ createBaseVNode("i", { class: normalizeClass(showKeepaliveConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
6575
+ ]), withDirectives(createBaseVNode("div", _hoisted_38, [createBaseVNode("div", _hoisted_39, [
6576
+ withDirectives(createBaseVNode("input", {
6577
+ class: "form-check-input",
6578
+ type: "checkbox",
6579
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => keepaliveEnabled.value = $event),
6580
+ id: "keepaliveEnabled"
6581
+ }, null, 512), [[vModelCheckbox, keepaliveEnabled.value]]),
6582
+ createBaseVNode("label", _hoisted_40, [_cache[40] || (_cache[40] = createBaseVNode("i", { class: "bi bi-toggle-on me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.keepaliveEnabled")), 1)]),
6583
+ createBaseVNode("small", _hoisted_41, [_cache[41] || (_cache[41] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.keepaliveEnabledHint")), 1)])
6584
+ ]), keepaliveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_42, [createBaseVNode("div", _hoisted_43, [
6585
+ createBaseVNode("label", _hoisted_44, toDisplayString(unref(t)("connection.keepaliveInterval")), 1),
6586
+ withDirectives(createBaseVNode("input", {
6587
+ type: "number",
6588
+ class: "form-control form-control-sm",
6589
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => keepaliveInterval.value = $event),
6590
+ min: "1000",
6591
+ max: "300000",
6592
+ placeholder: unref(t)("connection.keepaliveIntervalPlaceholder")
6593
+ }, null, 8, _hoisted_45), [[
6594
+ vModelText,
6595
+ keepaliveInterval.value,
6596
+ void 0,
6597
+ { number: true }
6598
+ ]]),
6599
+ createBaseVNode("small", _hoisted_46, toDisplayString(unref(t)("connection.keepaliveIntervalHint")), 1)
6600
+ ]), createBaseVNode("div", _hoisted_47, [
6601
+ createBaseVNode("label", _hoisted_48, toDisplayString(unref(t)("connection.keepaliveCountMax")), 1),
6602
+ withDirectives(createBaseVNode("input", {
6603
+ type: "number",
6604
+ class: "form-control form-control-sm",
6605
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => keepaliveCountMax.value = $event),
6606
+ min: "1",
6607
+ max: "10",
6608
+ placeholder: unref(t)("connection.keepaliveCountMaxPlaceholder")
6609
+ }, null, 8, _hoisted_49), [[
6610
+ vModelText,
6611
+ keepaliveCountMax.value,
6612
+ void 0,
6613
+ { number: true }
6614
+ ]]),
6615
+ createBaseVNode("small", _hoisted_50, toDisplayString(unref(t)("connection.keepaliveCountMaxHint")), 1)
6616
+ ])])) : createCommentVNode("", true)], 512), [[vShow, showKeepaliveConfig.value]])]),
6617
+ createBaseVNode("div", _hoisted_51, [createBaseVNode("div", {
6618
+ class: "card-header",
6619
+ onClick: _cache[17] || (_cache[17] = ($event) => showTerminalConfig.value = !showTerminalConfig.value),
6620
+ style: { "cursor": "pointer" }
6621
+ }, [
6622
+ _cache[42] || (_cache[42] = createBaseVNode("i", { class: "bi bi-terminal me-1" }, null, -1)),
6432
6623
  createTextVNode(toDisplayString(unref(t)("connection.terminalConfig")) + " ", 1),
6433
6624
  createBaseVNode("i", { class: normalizeClass(showTerminalConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
6434
- ]), withDirectives(createBaseVNode("div", _hoisted_38, [createBaseVNode("div", _hoisted_39, [createBaseVNode("div", _hoisted_40, [createBaseVNode("label", _hoisted_41, toDisplayString(unref(t)("connection.fontSize")), 1), withDirectives(createBaseVNode("input", {
6625
+ ]), withDirectives(createBaseVNode("div", _hoisted_52, [createBaseVNode("div", _hoisted_53, [createBaseVNode("div", _hoisted_54, [createBaseVNode("label", _hoisted_55, toDisplayString(unref(t)("connection.fontSize")), 1), withDirectives(createBaseVNode("input", {
6435
6626
  type: "number",
6436
6627
  class: "form-control form-control-sm",
6437
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => form.terminal.fontSize = $event),
6628
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.terminal.fontSize = $event),
6438
6629
  min: "8",
6439
6630
  max: "32"
6440
6631
  }, null, 512), [[
@@ -6442,28 +6633,28 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6442
6633
  form.terminal.fontSize,
6443
6634
  void 0,
6444
6635
  { number: true }
6445
- ]])]), createBaseVNode("div", _hoisted_42, [createBaseVNode("label", _hoisted_43, toDisplayString(unref(t)("connection.cursorStyle")), 1), withDirectives(createBaseVNode("select", {
6636
+ ]])]), createBaseVNode("div", _hoisted_56, [createBaseVNode("label", _hoisted_57, toDisplayString(unref(t)("connection.cursorStyle")), 1), withDirectives(createBaseVNode("select", {
6446
6637
  class: "form-select form-select-sm",
6447
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.terminal.cursorStyle = $event)
6638
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => form.terminal.cursorStyle = $event)
6448
6639
  }, [
6449
- createBaseVNode("option", _hoisted_44, toDisplayString(unref(t)("connection.cursorBlock")), 1),
6450
- createBaseVNode("option", _hoisted_45, toDisplayString(unref(t)("connection.cursorUnderline")), 1),
6451
- createBaseVNode("option", _hoisted_46, toDisplayString(unref(t)("connection.cursorBar")), 1)
6452
- ], 512), [[vModelSelect, form.terminal.cursorStyle]])])]), createBaseVNode("div", _hoisted_47, [createBaseVNode("div", _hoisted_48, [createBaseVNode("label", _hoisted_49, toDisplayString(unref(t)("connection.theme")), 1), withDirectives(createBaseVNode("select", {
6640
+ createBaseVNode("option", _hoisted_58, toDisplayString(unref(t)("connection.cursorBlock")), 1),
6641
+ createBaseVNode("option", _hoisted_59, toDisplayString(unref(t)("connection.cursorUnderline")), 1),
6642
+ createBaseVNode("option", _hoisted_60, toDisplayString(unref(t)("connection.cursorBar")), 1)
6643
+ ], 512), [[vModelSelect, form.terminal.cursorStyle]])])]), createBaseVNode("div", _hoisted_61, [createBaseVNode("div", _hoisted_62, [createBaseVNode("label", _hoisted_63, toDisplayString(unref(t)("connection.theme")), 1), withDirectives(createBaseVNode("select", {
6453
6644
  class: "form-select form-select-sm",
6454
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.terminal.theme = $event)
6455
- }, [createBaseVNode("option", _hoisted_50, toDisplayString(unref(t)("connection.themeDark")), 1), createBaseVNode("option", _hoisted_51, toDisplayString(unref(t)("connection.themeLight")), 1)], 512), [[vModelSelect, form.terminal.theme]])]), createBaseVNode("div", _hoisted_52, [createBaseVNode("label", _hoisted_53, toDisplayString(unref(t)("connection.fontFamily")), 1), withDirectives(createBaseVNode("input", {
6645
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => form.terminal.theme = $event)
6646
+ }, [createBaseVNode("option", _hoisted_64, toDisplayString(unref(t)("connection.themeDark")), 1), createBaseVNode("option", _hoisted_65, toDisplayString(unref(t)("connection.themeLight")), 1)], 512), [[vModelSelect, form.terminal.theme]])]), createBaseVNode("div", _hoisted_66, [createBaseVNode("label", _hoisted_67, toDisplayString(unref(t)("connection.fontFamily")), 1), withDirectives(createBaseVNode("input", {
6456
6647
  type: "text",
6457
6648
  class: "form-control form-control-sm",
6458
- "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => form.terminal.fontFamily = $event),
6649
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => form.terminal.fontFamily = $event),
6459
6650
  placeholder: "字体"
6460
6651
  }, null, 512), [[vModelText, form.terminal.fontFamily]])])])], 512), [[vShow, showTerminalConfig.value]])]),
6461
- createBaseVNode("div", _hoisted_54, [createBaseVNode("button", {
6652
+ createBaseVNode("div", _hoisted_68, [createBaseVNode("button", {
6462
6653
  type: "button",
6463
6654
  class: "btn btn-outline-secondary",
6464
6655
  onClick: testConn,
6465
6656
  disabled: testing.value
6466
- }, [testing.value ? (openBlock(), createElementBlock("span", _hoisted_56)) : (openBlock(), createElementBlock("i", _hoisted_57)), createTextVNode(" " + toDisplayString(testing.value ? unref(t)("connection.testing") : unref(t)("connection.testConnection")), 1)], 8, _hoisted_55), createBaseVNode("div", null, [createBaseVNode("button", {
6657
+ }, [testing.value ? (openBlock(), createElementBlock("span", _hoisted_70)) : (openBlock(), createElementBlock("i", _hoisted_71)), createTextVNode(" " + toDisplayString(testing.value ? unref(t)("connection.testing") : unref(t)("connection.testConnection")), 1)], 8, _hoisted_69), createBaseVNode("div", null, [createBaseVNode("button", {
6467
6658
  type: "button",
6468
6659
  class: "btn btn-secondary me-2",
6469
6660
  onClick: close
@@ -6471,7 +6662,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6471
6662
  type: "submit",
6472
6663
  class: "btn btn-primary",
6473
6664
  disabled: saving.value
6474
- }, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_59)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("connection.saving") : unref(t)("common.save")), 1)], 8, _hoisted_58)])])
6665
+ }, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_73)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("connection.saving") : unref(t)("common.save")), 1)], 8, _hoisted_72)])])
6475
6666
  ], 32)]),
6476
6667
  _: 1
6477
6668
  }, 8, ["title", "closeButton"]);
@@ -6480,21 +6671,21 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
6480
6671
  });
6481
6672
  }));
6482
6673
  //#endregion
6483
- //#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=a513483a&lang.css
6484
- var init_index_vue_vue_type_style_index_0_scoped_a513483a_lang = __esmMin((() => {}));
6674
+ //#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=0db4df7c&lang.css
6675
+ var init_index_vue_vue_type_style_index_0_scoped_0db4df7c_lang = __esmMin((() => {}));
6485
6676
  //#endregion
6486
6677
  //#region src/components/connection-editor/index.vue
6487
6678
  var connection_editor_default;
6488
6679
  var init_connection_editor = __esmMin((() => {
6489
6680
  init_index_vue_vue_type_script_setup_true_lang$3();
6490
6681
  init_index_vue_vue_type_script_setup_true_lang$3();
6491
- init_index_vue_vue_type_style_index_0_scoped_a513483a_lang();
6682
+ init_index_vue_vue_type_style_index_0_scoped_0db4df7c_lang();
6492
6683
  init__plugin_vue_export_helper();
6493
- connection_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$3, [["__scopeId", "data-v-a513483a"]]);
6684
+ connection_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$3, [["__scopeId", "data-v-0db4df7c"]]);
6494
6685
  }));
6495
6686
  //#endregion
6496
6687
  //#region src/components/ai-settings/index.vue?vue&type=script&setup=true&lang.ts
6497
- var _hoisted_1$2, _hoisted_2$2, _hoisted_3$2, _hoisted_4$2, _hoisted_5$2, _hoisted_6$2, _hoisted_7$2, _hoisted_8$2, _hoisted_9$2, _hoisted_10$2, _hoisted_11$2, _hoisted_12$2, _hoisted_13$2, _hoisted_14$2, _hoisted_15$2, _hoisted_16$2, _hoisted_17$1, _hoisted_18$1, _hoisted_19$1, _hoisted_20$1, _hoisted_21$1, _hoisted_22$1, index_vue_vue_type_script_setup_true_lang_default$2;
6688
+ var _hoisted_1$2, _hoisted_2$2, _hoisted_3$2, _hoisted_4$2, _hoisted_5$2, _hoisted_6$2, _hoisted_7$2, _hoisted_8$2, _hoisted_9$2, _hoisted_10$2, _hoisted_11$2, _hoisted_12$2, _hoisted_13$2, _hoisted_14$2, _hoisted_15$2, _hoisted_16$2, _hoisted_17$1, _hoisted_18$1, _hoisted_19$1, _hoisted_20$1, _hoisted_21$1, _hoisted_22$1, _hoisted_23$1, _hoisted_24$1, _hoisted_25$1, index_vue_vue_type_script_setup_true_lang_default$2;
6498
6689
  var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6499
6690
  init_vue_runtime_esm_bundler();
6500
6691
  init_vue_i18n();
@@ -6503,26 +6694,29 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6503
6694
  init_toast();
6504
6695
  _hoisted_1$2 = { class: "mb-3" };
6505
6696
  _hoisted_2$2 = { class: "form-label fw-bold" };
6506
- _hoisted_3$2 = { class: "input-group" };
6507
- _hoisted_4$2 = ["type", "placeholder"];
6508
- _hoisted_5$2 = { class: "form-text text-muted" };
6509
- _hoisted_6$2 = { class: "mb-3" };
6510
- _hoisted_7$2 = { class: "form-label fw-bold" };
6511
- _hoisted_8$2 = ["placeholder"];
6512
- _hoisted_9$2 = { class: "form-text text-muted" };
6513
- _hoisted_10$2 = { class: "mb-3" };
6514
- _hoisted_11$2 = { class: "form-label fw-bold" };
6515
- _hoisted_12$2 = ["placeholder"];
6516
- _hoisted_13$2 = { class: "form-text text-muted" };
6517
- _hoisted_14$2 = { class: "row mb-3" };
6518
- _hoisted_15$2 = { class: "col-6" };
6519
- _hoisted_16$2 = { class: "form-label" };
6520
- _hoisted_17$1 = { class: "col-6" };
6521
- _hoisted_18$1 = { class: "form-label" };
6522
- _hoisted_19$1 = { class: "d-flex justify-content-between" };
6523
- _hoisted_20$1 = { class: "ms-auto" };
6524
- _hoisted_21$1 = ["disabled"];
6525
- _hoisted_22$1 = {
6697
+ _hoisted_3$2 = { class: "form-text text-muted" };
6698
+ _hoisted_4$2 = { class: "mb-3" };
6699
+ _hoisted_5$2 = { class: "form-label fw-bold" };
6700
+ _hoisted_6$2 = { class: "input-group" };
6701
+ _hoisted_7$2 = ["type", "placeholder"];
6702
+ _hoisted_8$2 = { class: "form-text text-muted" };
6703
+ _hoisted_9$2 = { class: "mb-3" };
6704
+ _hoisted_10$2 = { class: "form-label fw-bold" };
6705
+ _hoisted_11$2 = ["placeholder"];
6706
+ _hoisted_12$2 = { class: "form-text text-muted" };
6707
+ _hoisted_13$2 = { class: "mb-3" };
6708
+ _hoisted_14$2 = { class: "form-label fw-bold" };
6709
+ _hoisted_15$2 = ["placeholder"];
6710
+ _hoisted_16$2 = { class: "form-text text-muted" };
6711
+ _hoisted_17$1 = { class: "row mb-3" };
6712
+ _hoisted_18$1 = { class: "col-6" };
6713
+ _hoisted_19$1 = { class: "form-label" };
6714
+ _hoisted_20$1 = { class: "col-6" };
6715
+ _hoisted_21$1 = { class: "form-label" };
6716
+ _hoisted_22$1 = { class: "d-flex justify-content-between" };
6717
+ _hoisted_23$1 = { class: "ms-auto" };
6718
+ _hoisted_24$1 = ["disabled"];
6719
+ _hoisted_25$1 = {
6526
6720
  key: 0,
6527
6721
  class: "spinner-border spinner-border-sm me-1"
6528
6722
  };
@@ -6537,6 +6731,7 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6537
6731
  const saving = ref(false);
6538
6732
  const defaultForm = () => ({
6539
6733
  enabled: true,
6734
+ provider: "openai",
6540
6735
  apiKey: "",
6541
6736
  baseUrl: "https://api.openai.com/v1",
6542
6737
  model: "gpt-4o-mini",
@@ -6575,6 +6770,35 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6575
6770
  }
6576
6771
  }
6577
6772
  const emit = __emit;
6773
+ const providerPresets = {
6774
+ openai: {
6775
+ baseUrl: "https://api.openai.com/v1",
6776
+ model: "gpt-4o-mini"
6777
+ },
6778
+ anthropic: {
6779
+ baseUrl: "https://api.anthropic.com",
6780
+ model: "claude-3-5-sonnet-20241022"
6781
+ },
6782
+ tencent: {
6783
+ baseUrl: "https://api.hunyuan.cloud.tencent.com/v1",
6784
+ model: "hunyuan-lite"
6785
+ },
6786
+ azure: {
6787
+ baseUrl: "",
6788
+ model: "gpt-4o-mini"
6789
+ },
6790
+ custom: {
6791
+ baseUrl: "",
6792
+ model: ""
6793
+ }
6794
+ };
6795
+ function onProviderChange() {
6796
+ const preset = providerPresets[form.provider];
6797
+ if (preset) {
6798
+ form.baseUrl = preset.baseUrl;
6799
+ form.model = preset.model;
6800
+ }
6801
+ }
6578
6802
  __expose({
6579
6803
  open,
6580
6804
  close
@@ -6604,47 +6828,66 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6604
6828
  }, [
6605
6829
  createBaseVNode("div", _hoisted_1$2, [
6606
6830
  createBaseVNode("label", _hoisted_2$2, [
6607
- _cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)),
6831
+ _cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-cloud me-1" }, null, -1)),
6832
+ createTextVNode(toDisplayString(unref(t)("ai.provider")) + " ", 1),
6833
+ _cache[8] || (_cache[8] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6834
+ ]),
6835
+ withDirectives(createBaseVNode("select", {
6836
+ class: "form-select",
6837
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.provider = $event),
6838
+ onChange: onProviderChange
6839
+ }, [..._cache[9] || (_cache[9] = [
6840
+ createBaseVNode("option", { value: "openai" }, "OpenAI", -1),
6841
+ createBaseVNode("option", { value: "anthropic" }, "Anthropic (Claude)", -1),
6842
+ createBaseVNode("option", { value: "tencent" }, "腾讯云", -1),
6843
+ createBaseVNode("option", { value: "azure" }, "Azure OpenAI", -1),
6844
+ createBaseVNode("option", { value: "custom" }, "自定义", -1)
6845
+ ])], 544), [[vModelSelect, form.provider]]),
6846
+ createBaseVNode("small", _hoisted_3$2, toDisplayString(unref(t)("ai.providerHint")), 1)
6847
+ ]),
6848
+ createBaseVNode("div", _hoisted_4$2, [
6849
+ createBaseVNode("label", _hoisted_5$2, [
6850
+ _cache[10] || (_cache[10] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)),
6608
6851
  createTextVNode(toDisplayString(unref(t)("ai.apiKey")) + " ", 1),
6609
- _cache[7] || (_cache[7] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6852
+ _cache[11] || (_cache[11] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
6610
6853
  ]),
6611
- createBaseVNode("div", _hoisted_3$2, [withDirectives(createBaseVNode("input", {
6854
+ createBaseVNode("div", _hoisted_6$2, [withDirectives(createBaseVNode("input", {
6612
6855
  type: showApiKey.value ? "text" : "password",
6613
6856
  class: "form-control",
6614
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.apiKey = $event),
6857
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.apiKey = $event),
6615
6858
  placeholder: unref(t)("ai.apiKeyPlaceholder"),
6616
6859
  required: ""
6617
- }, null, 8, _hoisted_4$2), [[vModelDynamic, form.apiKey]]), createBaseVNode("button", {
6860
+ }, null, 8, _hoisted_7$2), [[vModelDynamic, form.apiKey]]), createBaseVNode("button", {
6618
6861
  type: "button",
6619
6862
  class: "btn btn-outline-secondary",
6620
- onClick: _cache[1] || (_cache[1] = ($event) => showApiKey.value = !showApiKey.value)
6863
+ onClick: _cache[2] || (_cache[2] = ($event) => showApiKey.value = !showApiKey.value)
6621
6864
  }, [createBaseVNode("i", { class: normalizeClass(showApiKey.value ? "bi bi-eye-slash" : "bi bi-eye") }, null, 2)])]),
6622
- createBaseVNode("small", _hoisted_5$2, toDisplayString(unref(t)("ai.apiKeyHint")), 1)
6865
+ createBaseVNode("small", _hoisted_8$2, toDisplayString(unref(t)("ai.apiKeyHint")), 1)
6623
6866
  ]),
6624
- createBaseVNode("div", _hoisted_6$2, [
6625
- createBaseVNode("label", _hoisted_7$2, [_cache[8] || (_cache[8] = createBaseVNode("i", { class: "bi bi-globe me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("ai.baseUrl")), 1)]),
6867
+ createBaseVNode("div", _hoisted_9$2, [
6868
+ createBaseVNode("label", _hoisted_10$2, [_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-globe me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("ai.baseUrl")), 1)]),
6626
6869
  withDirectives(createBaseVNode("input", {
6627
6870
  type: "text",
6628
6871
  class: "form-control",
6629
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.baseUrl = $event),
6872
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.baseUrl = $event),
6630
6873
  placeholder: unref(t)("ai.baseUrlPlaceholder")
6631
- }, null, 8, _hoisted_8$2), [[vModelText, form.baseUrl]]),
6632
- createBaseVNode("small", _hoisted_9$2, toDisplayString(unref(t)("ai.baseUrlHint")), 1)
6874
+ }, null, 8, _hoisted_11$2), [[vModelText, form.baseUrl]]),
6875
+ createBaseVNode("small", _hoisted_12$2, toDisplayString(unref(t)("ai.baseUrlHint")), 1)
6633
6876
  ]),
6634
- createBaseVNode("div", _hoisted_10$2, [
6635
- createBaseVNode("label", _hoisted_11$2, [_cache[9] || (_cache[9] = createBaseVNode("i", { class: "bi bi-cpu me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("ai.model")), 1)]),
6877
+ createBaseVNode("div", _hoisted_13$2, [
6878
+ createBaseVNode("label", _hoisted_14$2, [_cache[13] || (_cache[13] = createBaseVNode("i", { class: "bi bi-cpu me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("ai.model")), 1)]),
6636
6879
  withDirectives(createBaseVNode("input", {
6637
6880
  type: "text",
6638
6881
  class: "form-control",
6639
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.model = $event),
6882
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.model = $event),
6640
6883
  placeholder: unref(t)("ai.modelPlaceholder")
6641
- }, null, 8, _hoisted_12$2), [[vModelText, form.model]]),
6642
- createBaseVNode("small", _hoisted_13$2, toDisplayString(unref(t)("ai.modelHint")), 1)
6884
+ }, null, 8, _hoisted_15$2), [[vModelText, form.model]]),
6885
+ createBaseVNode("small", _hoisted_16$2, toDisplayString(unref(t)("ai.modelHint")), 1)
6643
6886
  ]),
6644
- createBaseVNode("div", _hoisted_14$2, [createBaseVNode("div", _hoisted_15$2, [createBaseVNode("label", _hoisted_16$2, toDisplayString(unref(t)("ai.maxTokens")), 1), withDirectives(createBaseVNode("input", {
6887
+ createBaseVNode("div", _hoisted_17$1, [createBaseVNode("div", _hoisted_18$1, [createBaseVNode("label", _hoisted_19$1, toDisplayString(unref(t)("ai.maxTokens")), 1), withDirectives(createBaseVNode("input", {
6645
6888
  type: "number",
6646
6889
  class: "form-control form-control-sm",
6647
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.maxTokens = $event),
6890
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.maxTokens = $event),
6648
6891
  min: "100",
6649
6892
  max: "8000"
6650
6893
  }, null, 512), [[
@@ -6652,10 +6895,10 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6652
6895
  form.maxTokens,
6653
6896
  void 0,
6654
6897
  { number: true }
6655
- ]])]), createBaseVNode("div", _hoisted_17$1, [createBaseVNode("label", _hoisted_18$1, toDisplayString(unref(t)("ai.temperature")), 1), withDirectives(createBaseVNode("input", {
6898
+ ]])]), createBaseVNode("div", _hoisted_20$1, [createBaseVNode("label", _hoisted_21$1, toDisplayString(unref(t)("ai.temperature")), 1), withDirectives(createBaseVNode("input", {
6656
6899
  type: "number",
6657
6900
  class: "form-control form-control-sm",
6658
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.temperature = $event),
6901
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.temperature = $event),
6659
6902
  min: "0",
6660
6903
  max: "2",
6661
6904
  step: "0.1"
@@ -6665,7 +6908,7 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6665
6908
  void 0,
6666
6909
  { number: true }
6667
6910
  ]])])]),
6668
- createBaseVNode("div", _hoisted_19$1, [createBaseVNode("div", _hoisted_20$1, [createBaseVNode("button", {
6911
+ createBaseVNode("div", _hoisted_22$1, [createBaseVNode("div", _hoisted_23$1, [createBaseVNode("button", {
6669
6912
  type: "button",
6670
6913
  class: "btn btn-secondary me-2",
6671
6914
  onClick: close
@@ -6673,7 +6916,7 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6673
6916
  type: "submit",
6674
6917
  class: "btn btn-primary",
6675
6918
  disabled: saving.value
6676
- }, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_22$1)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("common.processing") : unref(t)("common.save")), 1)], 8, _hoisted_21$1)])])
6919
+ }, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_25$1)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("common.processing") : unref(t)("common.save")), 1)], 8, _hoisted_24$1)])])
6677
6920
  ], 32)]),
6678
6921
  _: 1
6679
6922
  }, 8, ["title", "closeButton"]);
@@ -6682,17 +6925,17 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
6682
6925
  });
6683
6926
  }));
6684
6927
  //#endregion
6685
- //#region src/components/ai-settings/index.vue?vue&type=style&index=0&scoped=ba6b7564&lang.css
6686
- var init_index_vue_vue_type_style_index_0_scoped_ba6b7564_lang = __esmMin((() => {}));
6928
+ //#region src/components/ai-settings/index.vue?vue&type=style&index=0&scoped=226da730&lang.css
6929
+ var init_index_vue_vue_type_style_index_0_scoped_226da730_lang = __esmMin((() => {}));
6687
6930
  //#endregion
6688
6931
  //#region src/components/ai-settings/index.vue
6689
6932
  var ai_settings_default;
6690
6933
  var init_ai_settings = __esmMin((() => {
6691
6934
  init_index_vue_vue_type_script_setup_true_lang$2();
6692
6935
  init_index_vue_vue_type_script_setup_true_lang$2();
6693
- init_index_vue_vue_type_style_index_0_scoped_ba6b7564_lang();
6936
+ init_index_vue_vue_type_style_index_0_scoped_226da730_lang();
6694
6937
  init__plugin_vue_export_helper();
6695
- ai_settings_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$2, [["__scopeId", "data-v-ba6b7564"]]);
6938
+ ai_settings_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$2, [["__scopeId", "data-v-226da730"]]);
6696
6939
  }));
6697
6940
  //#endregion
6698
6941
  //#region src/service/batch.ts