@opentiny/tiny-robot 0.3.0-alpha.20 → 0.3.0-alpha.22

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,19 +1,20 @@
1
- import { defineComponent as M, ref as D, computed as y, createElementBlock as d, openBlock as s, normalizeClass as K, createElementVNode as e, createBlock as x, createCommentVNode as b, toDisplayString as U, renderSlot as j, Fragment as I, unref as u, createVNode as g, withCtx as S, Transition as Y, withDirectives as F, renderList as H, vShow as ve, useModel as G, vModelText as O, watch as Q, onUnmounted as fe, mergeModels as X, normalizeStyle as he, createTextVNode as ye } from "vue";
2
- import { TinyPopconfirm as be, TinySwitch as ee, TinyRadioGroup as re, TinyTabs as ke, TinyTabItem as te, TinyInput as le, TinySelect as Te, TinyOption as Ce, TinyModal as oe } from "@opentiny/vue";
3
- import { IconArrowRight as Pe, IconArrowDown as $e, IconDelete as xe, IconClose as de, IconEmptySearch as we, IconPlus as Se, IconSearch as ae } from "@opentiny/tiny-robot-svgs";
4
- import { _ as E } from "../_plugin-vue_export-helper.js";
5
- import { _ as De } from "../no-data.js";
6
- import { d as Ve, o as Ue } from "../index2.js";
7
- const Be = { class: "plugin-card__main" }, Ae = ["src"], Fe = { class: "plugin-card__content" }, Ie = { class: "plugin-card__info" }, Me = { class: "plugin-card__name" }, Ee = {
1
+ import { defineComponent as q, ref as V, computed as p, createElementBlock as i, openBlock as o, normalizeClass as G, createElementVNode as s, createBlock as k, createCommentVNode as v, toDisplayString as S, renderSlot as U, Fragment as F, unref as d, createVNode as m, withCtx as T, Transition as K, withDirectives as pe, renderList as N, vShow as ge, mergeModels as J, useModel as oe, watch as H, normalizeStyle as _e, createTextVNode as me } from "vue";
2
+ import { TinyPopconfirm as ve, TinySwitch as X, TinyTabs as fe, TinyTabItem as Y, TinyInput as Z, TinyBaseSelect as he, TinyOption as ye } from "@opentiny/vue";
3
+ import { IconArrowRight as ke, IconArrowDown as be, IconDelete as Te, IconClose as ae, IconEmptySearch as Ce, IconPlus as Pe, IconSearch as ee } from "@opentiny/tiny-robot-svgs";
4
+ import { _ as z } from "../_plugin-vue_export-helper.js";
5
+ import { _ as we } from "../no-data.js";
6
+ import { o as Se } from "../index2.js";
7
+ import $e from "../mcp-add-form/index.js";
8
+ const xe = { class: "plugin-card__main" }, Be = ["src"], Ve = { class: "plugin-card__content" }, Ae = { class: "plugin-card__info" }, Fe = { class: "plugin-card__name" }, Me = {
8
9
  key: 0,
9
10
  class: "plugin-card__count"
10
- }, Le = ["title"], Oe = { class: "plugin-card__actions" }, Re = { class: "plugin-card__operations" }, Ne = { title: "移除插件" }, ze = {
11
+ }, De = ["title"], Ie = { class: "plugin-card__actions" }, Ee = { class: "plugin-card__operations" }, Le = { title: "移除插件" }, Ue = {
11
12
  key: 1,
12
13
  class: "plugin-card__add"
13
- }, qe = { class: "plugin-card__tools" }, je = { class: "plugin-card__tool" }, He = { class: "plugin-card__content" }, Qe = { class: "plugin-card__info" }, Je = { class: "plugin-card__name" }, Ge = ["title"], We = { class: "plugin-card__actions plugin-card__actions--tool" }, Ke = {
14
+ }, Ne = { key: 0 }, Oe = { key: 1 }, qe = { key: 2 }, ze = { class: "plugin-card__tools" }, Qe = { class: "plugin-card__tool" }, Re = { class: "plugin-card__content" }, je = { class: "plugin-card__info" }, He = { class: "plugin-card__name" }, Ge = ["title"], Je = { class: "plugin-card__actions plugin-card__actions--tool" }, Ke = {
14
15
  key: 0,
15
16
  class: "plugin-card__divider"
16
- }, Xe = /* @__PURE__ */ M({
17
+ }, We = /* @__PURE__ */ q({
17
18
  __name: "PluginCard",
18
19
  props: {
19
20
  plugin: {},
@@ -21,439 +22,261 @@ const Be = { class: "plugin-card__main" }, Ae = ["src"], Fe = { class: "plugin-c
21
22
  showToolCount: { type: Boolean, default: !0 }
22
23
  },
23
24
  emits: ["toggle-plugin", "toggle-tool", "add-plugin", "delete-plugin"],
24
- setup(m, { emit: p }) {
25
- const t = m, r = p, c = D(t.plugin.expanded || !1), k = y(() => {
26
- var i;
27
- return ((i = t.plugin.tools) == null ? void 0 : i.length) || 0;
28
- }), v = y(() => k.value > 0), T = y(() => ({
29
- "plugin-card--expandable": v.value,
25
+ setup(g, { emit: b }) {
26
+ const e = g, r = b, c = V(e.plugin.expanded || !1), f = p(() => {
27
+ var a;
28
+ return ((a = e.plugin.tools) == null ? void 0 : a.length) || 0;
29
+ }), h = p(() => f.value > 0), C = p(() => ({
30
+ "plugin-card--expandable": h.value,
30
31
  "plugin-card--expanded": c.value,
31
- [`plugin-card--${t.mode}`]: !0
32
- })), V = () => {
33
- v.value && (c.value = !c.value);
34
- }, a = y(() => {
35
- if (!v.value)
36
- return { checked: t.plugin.enabled || !1, indeterminate: !1 };
37
- const i = t.plugin.tools.filter((w) => w.enabled), C = t.plugin.tools.length;
38
- return i.length === 0 ? { checked: !1, indeterminate: !1 } : i.length === C ? { checked: !0, indeterminate: !1 } : { checked: !0, indeterminate: !0 };
39
- }), h = (i) => {
40
- v.value && t.plugin.tools.forEach((C) => {
41
- C.enabled !== i && (C.enabled = i, r("toggle-tool", C.id, i));
42
- }), r("toggle-plugin", i);
43
- }, R = (i, C) => {
44
- r("toggle-tool", i, C);
45
- }, _ = () => {
32
+ [`plugin-card--${e.mode}`]: !0
33
+ })), w = () => {
34
+ h.value && (c.value = !c.value);
35
+ }, $ = p(() => {
36
+ if (!h.value)
37
+ return { checked: e.plugin.enabled || !1, indeterminate: !1 };
38
+ const a = e.plugin.tools.filter((y) => y.enabled), _ = e.plugin.tools.length;
39
+ return a.length === 0 ? { checked: !1, indeterminate: !1 } : a.length === _ ? { checked: !0, indeterminate: !1 } : { checked: !0, indeterminate: !0 };
40
+ }), Q = (a) => {
41
+ h.value && e.plugin.tools.forEach((_) => {
42
+ _.enabled !== a && (_.enabled = a, r("toggle-tool", _.id, a));
43
+ }), r("toggle-plugin", a);
44
+ }, R = (a, _) => {
45
+ r("toggle-tool", a, _);
46
+ }, D = () => {
46
47
  r("delete-plugin");
47
- }, P = y(() => t.plugin.added || !1), N = () => {
48
- const i = !P.value;
49
- r("add-plugin", i);
50
- }, z = (i) => i ? "关闭插件" : "打开插件";
51
- return (i, C) => (s(), d("div", {
52
- class: K(["plugin-card", T.value])
48
+ }, x = p(() => e.plugin.addState || "idle"), I = (a) => {
49
+ x.value === "idle" && r("add-plugin", a);
50
+ }, E = (a) => a ? "关闭插件" : "打开插件";
51
+ return (a, _) => (o(), i("div", {
52
+ class: G(["plugin-card", C.value])
53
53
  }, [
54
- e("div", Be, [
55
- e("img", {
56
- src: i.plugin.icon,
54
+ s("div", xe, [
55
+ s("img", {
56
+ src: a.plugin.icon,
57
57
  class: "plugin-card__icon"
58
- }, null, 8, Ae),
59
- e("div", Fe, [
60
- e("div", Ie, [
61
- e("span", Me, U(i.plugin.name), 1),
62
- i.showToolCount && k.value ? (s(), d("span", Ee, U(k.value) + " 个工具 ", 1)) : b("", !0)
58
+ }, null, 8, Be),
59
+ s("div", Ve, [
60
+ s("div", Ae, [
61
+ s("span", Fe, S(a.plugin.name), 1),
62
+ a.showToolCount && f.value ? (o(), i("span", Me, S(f.value) + " 个工具 ", 1)) : v("", !0)
63
63
  ]),
64
- e("div", {
64
+ s("div", {
65
65
  class: "plugin-card__desc",
66
- title: i.plugin.description
67
- }, U(i.plugin.description), 9, Le)
66
+ title: a.plugin.description
67
+ }, S(a.plugin.description), 9, De)
68
68
  ]),
69
- e("div", Oe, [
70
- j(i.$slots, "actions", {
71
- plugin: i.plugin,
69
+ s("div", Ie, [
70
+ U(a.$slots, "actions", {
71
+ plugin: a.plugin,
72
72
  expanded: c.value,
73
- mode: i.mode
73
+ mode: a.mode
74
74
  }, () => [
75
- i.mode === "installed" ? (s(), d(I, { key: 0 }, [
76
- v.value ? (s(), d("div", {
75
+ a.mode === "installed" ? (o(), i(F, { key: 0 }, [
76
+ h.value ? (o(), i("div", {
77
77
  key: 0,
78
78
  class: "plugin-card__expand",
79
- onClick: V
79
+ onClick: w
80
80
  }, [
81
- j(i.$slots, "expand-icon", { expanded: c.value }, () => [
82
- c.value ? (s(), x(u($e), {
81
+ U(a.$slots, "expand-icon", { expanded: c.value }, () => [
82
+ c.value ? (o(), k(d(be), {
83
83
  key: 1,
84
84
  class: "common-icon"
85
- })) : (s(), x(u(Pe), {
85
+ })) : (o(), k(d(ke), {
86
86
  key: 0,
87
87
  class: "common-icon"
88
88
  }))
89
89
  ], !0)
90
- ])) : b("", !0),
91
- e("div", Re, [
92
- g(u(be), {
90
+ ])) : v("", !0),
91
+ s("div", Ee, [
92
+ m(d(ve), {
93
93
  title: "确定移除该插件吗?",
94
94
  style: { height: "16px" },
95
95
  type: "info",
96
- onConfirm: _,
96
+ onConfirm: D,
97
97
  trigger: "click"
98
98
  }, {
99
- reference: S(() => [
100
- j(i.$slots, "delete-icon", {}, () => [
101
- e("span", Ne, [
102
- g(u(xe), { class: "common-icon" })
99
+ reference: T(() => [
100
+ U(a.$slots, "delete-icon", {}, () => [
101
+ s("span", Le, [
102
+ m(d(Te), { class: "common-icon delete" })
103
103
  ])
104
104
  ], !0)
105
105
  ]),
106
106
  _: 3
107
107
  }),
108
- g(u(ee), {
109
- title: z(a.value.checked),
110
- "model-value": a.value.checked,
111
- indeterminate: a.value.indeterminate,
112
- "onUpdate:modelValue": h
108
+ m(d(X), {
109
+ title: E($.value.checked),
110
+ "model-value": $.value.checked,
111
+ indeterminate: $.value.indeterminate,
112
+ "onUpdate:modelValue": Q
113
113
  }, null, 8, ["title", "model-value", "indeterminate"])
114
114
  ])
115
- ], 64)) : i.mode === "market" ? (s(), d("div", ze, [
116
- j(i.$slots, "add-button", {}, () => [
117
- e("div", {
118
- class: K(["plugin-card__add-button", { "plugin-card__add-button--added": P.value }]),
119
- onClick: N
115
+ ], 64)) : a.mode === "market" ? (o(), i("div", Ue, [
116
+ U(a.$slots, "add-button", {}, () => [
117
+ s("div", {
118
+ class: G(["plugin-card__add-button", {
119
+ "plugin-card__add-button--loading": x.value === "loading",
120
+ "plugin-card__add-button--added": x.value === "added"
121
+ }]),
122
+ onClick: _[0] || (_[0] = (y) => I(a.plugin))
120
123
  }, [
121
- e("span", null, U(P.value ? "已添加" : "添加"), 1)
124
+ x.value === "idle" ? (o(), i("span", Ne, "添加")) : x.value === "loading" ? (o(), i("span", Oe, "添加中")) : (o(), i("span", qe, "已添加"))
122
125
  ], 2)
123
126
  ], !0)
124
- ])) : b("", !0)
127
+ ])) : v("", !0)
125
128
  ], !0)
126
129
  ])
127
130
  ]),
128
- v.value ? (s(), x(Y, {
131
+ h.value ? (o(), k(K, {
129
132
  key: 0,
130
133
  name: "plugin-card-slide"
131
134
  }, {
132
- default: S(() => [
133
- F(e("div", qe, [
134
- C[1] || (C[1] = e("div", { class: "plugin-card__divider" }, null, -1)),
135
- (s(!0), d(I, null, H(i.plugin.tools, (w, A) => {
136
- var q;
137
- return s(), d("div", {
138
- key: w.id,
135
+ default: T(() => [
136
+ pe(s("div", ze, [
137
+ _[2] || (_[2] = s("div", { class: "plugin-card__divider" }, null, -1)),
138
+ (o(!0), i(F, null, N(a.plugin.tools, (y, A) => {
139
+ var L;
140
+ return o(), i("div", {
141
+ key: y.id,
139
142
  class: "plugin-card__tool-item"
140
143
  }, [
141
- e("div", je, [
142
- C[0] || (C[0] = e("div", { class: "plugin-card__icon plugin-card__icon--placeholder" }, null, -1)),
143
- e("div", He, [
144
- e("div", Qe, [
145
- e("span", Je, U(w.name), 1)
144
+ s("div", Qe, [
145
+ _[1] || (_[1] = s("div", { class: "plugin-card__icon plugin-card__icon--placeholder" }, null, -1)),
146
+ s("div", Re, [
147
+ s("div", je, [
148
+ s("span", He, S(y.name), 1)
146
149
  ]),
147
- e("div", {
150
+ s("div", {
148
151
  class: "plugin-card__desc",
149
- title: w.description
150
- }, U(w.description), 9, Ge)
152
+ title: y.description
153
+ }, S(y.description), 9, Ge)
151
154
  ]),
152
- e("div", We, [
153
- g(u(ee), {
154
- title: z(w.enabled),
155
- "model-value": w.enabled,
156
- "onUpdate:modelValue": (W) => R(w.id, W)
155
+ s("div", Je, [
156
+ m(d(X), {
157
+ title: E(y.enabled),
158
+ "model-value": y.enabled,
159
+ "onUpdate:modelValue": (j) => R(y.id, j)
157
160
  }, null, 8, ["title", "model-value", "onUpdate:modelValue"])
158
161
  ])
159
162
  ]),
160
- A < (((q = i.plugin.tools) == null ? void 0 : q.length) || 0) - 1 ? (s(), d("div", Ke)) : b("", !0)
163
+ A < (((L = a.plugin.tools) == null ? void 0 : L.length) || 0) - 1 ? (o(), i("div", Ke)) : v("", !0)
161
164
  ]);
162
165
  }), 128))
163
166
  ], 512), [
164
- [ve, c.value]
167
+ [ge, c.value]
165
168
  ])
166
169
  ]),
167
170
  _: 1
168
- })) : b("", !0)
171
+ })) : v("", !0)
169
172
  ], 2));
170
173
  }
171
- }), se = /* @__PURE__ */ E(Xe, [["__scopeId", "data-v-ada02cb9"]]), Ye = { class: "code-editor__container" }, Ze = { class: "code-editor__section" }, et = { class: "code-editor__area" }, tt = /* @__PURE__ */ M({
172
- __name: "CodeEditor",
173
- props: {
174
- codeData: { required: !0 },
175
- codeDataModifiers: {}
176
- },
177
- emits: ["update:codeData"],
178
- setup(m) {
179
- const p = G(m, "codeData");
180
- return (t, r) => (s(), d("div", Ye, [
181
- e("div", Ze, [
182
- r[1] || (r[1] = e("div", { class: "code-editor__header" }, [
183
- e("span", { class: "code-editor__title" }, "ai_plugin(填写json)")
184
- ], -1)),
185
- e("div", et, [
186
- F(e("textarea", {
187
- "onUpdate:modelValue": r[0] || (r[0] = (c) => p.value = c),
188
- class: "code-editor__textarea",
189
- placeholder: "请输入 JSON 配置..."
190
- }, null, 512), [
191
- [O, p.value]
192
- ])
193
- ])
194
- ])
195
- ]));
196
- }
197
- }), lt = /* @__PURE__ */ E(tt, [["__scopeId", "data-v-87ddff5d"]]), ot = { class: "form-editor__container" }, at = { class: "form-editor__item" }, st = { class: "form-editor__item" }, nt = { class: "form-editor__item" }, it = { class: "form-editor__item" }, rt = { class: "form-editor__item" }, dt = { class: "form-editor__item" }, ut = ["src"], ne = "https://res.hc-cdn.com/tinyui-design/1.1.0.20250526191525/home/images/tiny-ng.svg", ct = /* @__PURE__ */ M({
198
- __name: "FormEditor",
199
- props: {
200
- formData: { required: !0 },
201
- formDataModifiers: {}
202
- },
203
- emits: ["update:formData"],
204
- setup(m) {
205
- const p = D(""), t = G(m, "formData"), r = [
206
- { label: "sse", text: "服务器发送事件(SSE)" },
207
- { label: "streamableHttp", text: "流式HTTP(Streamable HTTP)" }
208
- ], { open: c, files: k } = Ve({
209
- accept: "image/*",
210
- // 只接受图片文件
211
- multiple: !1
212
- // 只允许选择单个文件
213
- }), v = () => {
214
- p.value && p.value !== ne && (URL.revokeObjectURL(p.value), p.value = "");
215
- };
216
- Q(k, (V) => {
217
- if (V && V.length > 0) {
218
- const a = V[0];
219
- if (!a.type.startsWith("image/"))
220
- return;
221
- const h = 5 * 1024 * 1024;
222
- if (a.size > h)
223
- return;
224
- v(), p.value = URL.createObjectURL(a), t.value.thumbnail = a;
225
- }
226
- });
227
- const T = () => {
228
- c();
229
- };
230
- return fe(() => {
231
- v();
232
- }), (V, a) => (s(), d("form", ot, [
233
- e("div", at, [
234
- a[5] || (a[5] = e("label", { class: "form-editor__label" }, "名称", -1)),
235
- F(e("input", {
236
- "onUpdate:modelValue": a[0] || (a[0] = (h) => t.value.name = h),
237
- class: "form-editor__input",
238
- type: "text",
239
- placeholder: "请输入插件名称"
240
- }, null, 512), [
241
- [O, t.value.name]
242
- ])
243
- ]),
244
- e("div", st, [
245
- a[6] || (a[6] = e("label", { class: "form-editor__label" }, "描述", -1)),
246
- F(e("textarea", {
247
- "onUpdate:modelValue": a[1] || (a[1] = (h) => t.value.description = h),
248
- class: "form-editor__textarea",
249
- placeholder: "请输入插件描述"
250
- }, null, 512), [
251
- [O, t.value.description]
252
- ])
253
- ]),
254
- e("div", nt, [
255
- a[7] || (a[7] = e("label", { class: "form-editor__label" }, "类型", -1)),
256
- g(u(re), {
257
- modelValue: t.value.type,
258
- "onUpdate:modelValue": a[2] || (a[2] = (h) => t.value.type = h),
259
- options: r,
260
- class: "form-editor__radio-group"
261
- }, null, 8, ["modelValue"])
262
- ]),
263
- e("div", it, [
264
- a[8] || (a[8] = e("label", { class: "form-editor__label" }, "URL", -1)),
265
- F(e("input", {
266
- "onUpdate:modelValue": a[3] || (a[3] = (h) => t.value.url = h),
267
- class: "form-editor__input",
268
- type: "url",
269
- placeholder: "请输入插件URL"
270
- }, null, 512), [
271
- [O, t.value.url]
272
- ])
273
- ]),
274
- e("div", rt, [
275
- a[9] || (a[9] = e("label", { class: "form-editor__label" }, "请求头", -1)),
276
- F(e("textarea", {
277
- "onUpdate:modelValue": a[4] || (a[4] = (h) => t.value.headers = h),
278
- class: "form-editor__textarea",
279
- placeholder: "请输入请求头,格式为JSON"
280
- }, null, 512), [
281
- [O, t.value.headers]
282
- ])
283
- ]),
284
- e("div", dt, [
285
- a[11] || (a[11] = e("label", { class: "form-editor__label" }, "缩略图", -1)),
286
- e("div", {
287
- class: "form-editor__file-upload",
288
- onClick: T
289
- }, [
290
- e("img", {
291
- src: p.value || ne,
292
- alt: "缩略图预览",
293
- class: "form-editor__file-preview-image"
294
- }, null, 8, ut),
295
- a[10] || (a[10] = e("div", { class: "form-editor__file-overlay" }, [
296
- e("div", { class: "form-editor__file-icon" })
297
- ], -1))
298
- ])
299
- ])
300
- ]));
301
- }
302
- }), pt = /* @__PURE__ */ E(ct, [["__scopeId", "data-v-7cd7ea10"]]), mt = {
174
+ }), te = /* @__PURE__ */ z(We, [["__scopeId", "data-v-c4e722eb"]]), Xe = {
303
175
  key: 0,
304
176
  class: "plugin-editor__backdrop"
305
- }, _t = { class: "plugin-editor__header" }, gt = { class: "plugin-editor__content" }, vt = { class: "plugin-editor__add-type" }, ft = {
306
- key: 0,
307
- class: "plugin-editor__form-editor"
308
- }, ht = {
309
- key: 1,
310
- class: "plugin-editor__code-editor"
311
- }, yt = /* @__PURE__ */ M({
177
+ }, Ye = { class: "plugin-editor__header" }, Ze = /* @__PURE__ */ q({
312
178
  __name: "PluginModal",
313
179
  props: {
314
180
  visible: { type: Boolean, required: !0 },
315
181
  visibleModifiers: {}
316
182
  },
317
- emits: /* @__PURE__ */ X(["update:visible", "confirm"], ["update:visible"]),
318
- setup(m, { emit: p }) {
319
- const t = p, r = G(m, "visible"), c = D(null), k = D({
320
- name: "",
321
- description: "",
322
- type: "sse",
323
- url: "",
324
- headers: "",
325
- thumbnail: null
326
- }), v = D(""), T = D("form"), V = [
327
- { label: "form", text: "表单添加" },
328
- { label: "code", text: "代码添加" }
329
- ], a = () => {
183
+ emits: /* @__PURE__ */ J(["update:visible", "confirm"], ["update:visible"]),
184
+ setup(g, { emit: b }) {
185
+ const e = b, r = oe(g, "visible"), c = V(null), f = () => {
330
186
  r.value = !1;
331
187
  };
332
- Ue(c, () => {
333
- r.value && a();
188
+ Se(c, () => {
189
+ r.value && f();
334
190
  });
335
- const h = () => {
336
- T.value === "form" ? t("confirm", "form", k.value) : t("confirm", "code", v.value), a();
191
+ const h = (C, w) => {
192
+ C === "form" ? e("confirm", "form", w) : e("confirm", "code", w), f();
337
193
  };
338
- return (R, _) => (s(), d(I, null, [
339
- r.value ? (s(), d("div", mt)) : b("", !0),
340
- g(Y, { name: "plugin-editor" }, {
341
- default: S(() => [
342
- r.value ? (s(), d("div", {
194
+ return (C, w) => (o(), i(F, null, [
195
+ r.value ? (o(), i("div", Xe)) : v("", !0),
196
+ m(K, { name: "plugin-editor" }, {
197
+ default: T(() => [
198
+ r.value ? (o(), i("div", {
343
199
  key: 0,
344
200
  class: "plugin-editor",
345
201
  ref_key: "dialogRef",
346
202
  ref: c
347
203
  }, [
348
- e("div", _t, [
349
- _[3] || (_[3] = e("h3", { class: "plugin-editor__title" }, "添加插件", -1)),
350
- g(u(de), {
204
+ s("div", Ye, [
205
+ w[0] || (w[0] = s("h3", { class: "plugin-editor__title" }, "添加插件", -1)),
206
+ m(d(ae), {
351
207
  class: "plugin-editor__close",
352
- onClick: a
208
+ onClick: f
353
209
  })
354
210
  ]),
355
- e("div", gt, [
356
- e("div", vt, [
357
- _[4] || (_[4] = e("span", { class: "plugin-editor__add-type-label" }, "添加方式", -1)),
358
- g(u(re), {
359
- modelValue: T.value,
360
- "onUpdate:modelValue": _[0] || (_[0] = (P) => T.value = P),
361
- type: "button",
362
- options: V
363
- }, null, 8, ["modelValue"])
364
- ]),
365
- T.value === "form" ? (s(), d("div", ft, [
366
- g(pt, {
367
- "form-data": k.value,
368
- "onUpdate:formData": _[1] || (_[1] = (P) => k.value = P)
369
- }, null, 8, ["form-data"])
370
- ])) : b("", !0),
371
- T.value === "code" ? (s(), d("div", ht, [
372
- g(lt, {
373
- "code-data": v.value,
374
- "onUpdate:codeData": _[2] || (_[2] = (P) => v.value = P)
375
- }, null, 8, ["code-data"])
376
- ])) : b("", !0)
377
- ]),
378
- e("div", { class: "plugin-editor__footer" }, [
379
- e("div", {
380
- class: "button cancel",
381
- onClick: a
382
- }, [..._[5] || (_[5] = [
383
- e("span", null, "取消", -1)
384
- ])]),
385
- e("div", {
386
- class: "button confirm",
387
- onClick: h
388
- }, [..._[6] || (_[6] = [
389
- e("span", null, "确定", -1)
390
- ])])
391
- ])
392
- ], 512)) : b("", !0)
211
+ m(d($e), {
212
+ onConfirm: h,
213
+ onCancel: f
214
+ })
215
+ ], 512)) : v("", !0)
393
216
  ]),
394
217
  _: 1
395
218
  })
396
219
  ], 64));
397
220
  }
398
- }), bt = /* @__PURE__ */ E(yt, [["__scopeId", "data-v-192c66c9"]]), kt = {
221
+ }), et = /* @__PURE__ */ z(Ze, [["__scopeId", "data-v-f2f12f4a"]]), tt = {
399
222
  class: "empty-state",
400
223
  role: "status",
401
224
  "aria-live": "polite"
402
- }, Tt = {
225
+ }, lt = {
403
226
  key: 1,
404
- src: De,
227
+ src: we,
405
228
  class: "empty-state__illustration"
406
- }, Ct = { class: "empty-state__message" }, Pt = /* @__PURE__ */ M({
229
+ }, ot = { class: "empty-state__message" }, at = /* @__PURE__ */ q({
407
230
  __name: "NoData",
408
231
  props: {
409
232
  searchQuery: { default: "" }
410
233
  },
411
- setup(m) {
412
- const p = m, t = y(() => {
234
+ setup(g) {
235
+ const b = g, e = p(() => {
413
236
  var c;
414
- return !!((c = p.searchQuery) != null && c.trim());
415
- }), r = y(() => t.value ? "暂无搜索结果" : "暂无数据");
416
- return (c, k) => (s(), d("section", kt, [
417
- t.value ? (s(), x(u(we), {
237
+ return !!((c = b.searchQuery) != null && c.trim());
238
+ }), r = p(() => e.value ? "暂无搜索结果" : "暂无数据");
239
+ return (c, f) => (o(), i("section", tt, [
240
+ e.value ? (o(), k(d(Ce), {
418
241
  key: 0,
419
242
  class: "empty-state__illustration"
420
- })) : (s(), d("img", Tt)),
421
- e("p", Ct, U(r.value), 1)
243
+ })) : (o(), i("img", lt)),
244
+ s("p", ot, S(r.value), 1)
422
245
  ]));
423
246
  }
424
- }), ie = /* @__PURE__ */ E(Pt, [["__scopeId", "data-v-839781e5"]]), $t = { class: "mcp-server-picker__header" }, xt = { class: "mcp-server-picker__header-left" }, wt = { class: "mcp-server-picker__header-right" }, St = { class: "mcp-server-picker__content" }, Dt = {
247
+ }), le = /* @__PURE__ */ z(at, [["__scopeId", "data-v-05810d65"]]), nt = { class: "mcp-server-picker__header" }, it = { class: "mcp-server-picker__header-left" }, st = { class: "mcp-server-picker__header-right" }, rt = { class: "mcp-server-picker__content" }, dt = {
425
248
  key: 0,
426
249
  class: "mcp-server-picker__content-installed-search"
427
- }, Vt = {
250
+ }, ct = {
428
251
  key: 1,
429
252
  class: "mcp-server-picker__content-list"
430
- }, Ut = {
253
+ }, ut = {
431
254
  key: 0,
432
255
  class: "mcp-server-picker__loading"
433
- }, Bt = {
256
+ }, pt = {
434
257
  key: 0,
435
258
  class: "mcp-server-picker__content-market-header"
436
- }, At = {
259
+ }, gt = {
437
260
  key: 0,
438
261
  style: { width: "168px" }
439
- }, Ft = {
262
+ }, _t = {
440
263
  key: 1,
441
264
  style: { width: "264px", "flex-shrink": "0" }
442
- }, It = {
265
+ }, mt = {
443
266
  key: 1,
444
267
  class: "mcp-server-picker__content-list"
445
- }, Mt = {
268
+ }, vt = {
446
269
  key: 0,
447
270
  class: "mcp-server-picker__loading"
448
- }, Et = /* @__PURE__ */ M({
271
+ }, ft = /* @__PURE__ */ q({
449
272
  __name: "index",
450
- props: /* @__PURE__ */ X({
273
+ props: /* @__PURE__ */ J({
451
274
  installedPlugins: { default: () => [] },
452
275
  marketPlugins: { default: () => [] },
453
276
  searchPlaceholder: { default: "搜索插件" },
454
277
  enableSearch: { type: Boolean, default: !0 },
455
- installedSearchFn: { type: Function, default: (m, p) => m ? p.name.toLowerCase().includes(m.toLowerCase()) : !0 },
456
- marketSearchFn: { type: Function, default: (m, p) => m ? p.name.toLowerCase().includes(m.toLowerCase()) : !0 },
278
+ installedSearchFn: { type: Function, default: (g, b) => g ? b.name.toLowerCase().includes(g.toLowerCase()) : !0 },
279
+ marketSearchFn: { type: Function, default: (g, b) => g ? b.name.toLowerCase().includes(g.toLowerCase()) : !0 },
457
280
  marketCategoryOptions: { default: () => [] },
458
281
  marketCategoryPlaceholder: { default: "按照分类筛选" },
459
282
  enableMarketCategoryFilter: { type: Boolean, default: !0 },
@@ -482,253 +305,252 @@ const Be = { class: "plugin-card__main" }, Ae = ["src"], Fe = { class: "plugin-c
482
305
  visible: { type: Boolean, required: !0 },
483
306
  visibleModifiers: {}
484
307
  }),
485
- emits: /* @__PURE__ */ X(["market-category-change", "tab-change", "plugin-toggle", "plugin-delete", "plugin-add", "plugin-create", "tool-toggle", "refresh", "update:activeCount", "update:visible"], ["update:visible"]),
486
- setup(m, { emit: p }) {
487
- const t = m, r = p, c = D(t.defaultActiveTab), k = D(""), v = D(""), T = D(""), V = y(
488
- () => c.value === "installed" ? t.searchPlaceholder : "搜索市场插件"
489
- ), a = y(() => t.installedPlugins), h = y(() => t.marketPlugins), R = y(() => !a.value || a.value.length === 0 ? 0 : a.value.filter((l) => l.enabled).length);
490
- Q(
308
+ emits: /* @__PURE__ */ J(["market-category-change", "tab-change", "plugin-toggle", "plugin-delete", "plugin-add", "plugin-create", "tool-toggle", "refresh", "update:activeCount", "update:visible"], ["update:visible"]),
309
+ setup(g, { emit: b }) {
310
+ const e = g, r = b, c = V(e.defaultActiveTab), f = V(""), h = V(""), C = V(""), w = p(
311
+ () => c.value === "installed" ? e.searchPlaceholder : "搜索市场插件"
312
+ ), $ = p(() => e.installedPlugins), Q = p(() => e.marketPlugins), R = p(() => !$.value || $.value.length === 0 ? 0 : $.value.filter((t) => t.enabled).length);
313
+ H(
491
314
  R,
492
- (l) => {
493
- r("update:activeCount", l);
315
+ (t) => {
316
+ r("update:activeCount", t);
494
317
  },
495
318
  { immediate: !0 }
496
- ), Q(c, (l, n) => {
497
- l !== n && r("tab-change", l);
319
+ ), H(c, (t, n) => {
320
+ t !== n && r("tab-change", t);
498
321
  });
499
- const _ = y(() => a.value.filter((l) => t.installedSearchFn(k.value, l))), P = y(() => {
500
- const { category: l, search: n } = {
501
- category: T.value,
502
- search: v.value
503
- }, f = (o) => {
504
- const $ = !l || o.category === l, B = !n || t.marketSearchFn(n, o);
505
- return $ && B;
322
+ const D = p(() => $.value.filter((t) => e.installedSearchFn(f.value, t))), x = p(() => {
323
+ const { category: t, search: n } = {
324
+ category: C.value,
325
+ search: h.value
326
+ }, u = (l) => {
327
+ const P = !t || l.category === t, B = !n || e.marketSearchFn(n, l);
328
+ return P && B;
506
329
  };
507
- return h.value.filter(f);
508
- }), N = y(() => c.value === "installed" ? _.value.length > 0 : P.value.length > 0);
509
- Q(T, (l) => {
510
- r("market-category-change", l);
330
+ return Q.value.filter(u);
331
+ }), I = p(() => c.value === "installed" ? D.value.length > 0 : x.value.length > 0);
332
+ H(C, (t) => {
333
+ r("market-category-change", t);
511
334
  });
512
- const z = (l, n) => {
513
- var f;
514
- t.allowPluginToggle && (r("plugin-toggle", l, n), (f = l.tools) != null && f.length && (n ? l.tools.filter(($) => $.enabled).length === 0 && l.tools.forEach(($) => {
515
- r("tool-toggle", l, $.id, !0);
516
- }) : l.tools.forEach((o) => {
517
- o.enabled && r("tool-toggle", l, o.id, !1);
335
+ const E = (t, n) => {
336
+ var u;
337
+ e.allowPluginToggle && (r("plugin-toggle", t, n), (u = t.tools) != null && u.length && (n ? t.tools.filter((P) => P.enabled).length === 0 && t.tools.forEach((P) => {
338
+ r("tool-toggle", t, P.id, !0);
339
+ }) : t.tools.forEach((l) => {
340
+ l.enabled && r("tool-toggle", t, l.id, !1);
518
341
  })));
519
- }, i = (l, n, f) => {
520
- var o;
521
- if (t.allowToolToggle && (r("tool-toggle", l, n, f), (o = l.tools) != null && o.length)) {
522
- const $ = l.tools.filter((L) => L.id !== n).some((L) => L.enabled), B = f || $;
523
- l.enabled !== B && r("plugin-toggle", l, B);
342
+ }, a = (t, n, u) => {
343
+ var l;
344
+ if (e.allowToolToggle && (r("tool-toggle", t, n, u), (l = t.tools) != null && l.length)) {
345
+ const P = t.tools.filter((M) => M.id !== n).some((M) => M.enabled), B = u || P;
346
+ t.enabled !== B && r("plugin-toggle", t, B);
524
347
  }
525
- }, C = (l) => {
526
- t.allowPluginDelete && (oe.message({
527
- message: `${l.name} 已移除`,
528
- status: "success"
529
- }), r("plugin-delete", l));
530
- }, w = (l, n) => {
531
- t.allowPluginAdd && (n && oe.message({
532
- message: `${l.name} 已添加`,
533
- status: "success"
534
- }), r("plugin-add", l, n));
535
- }, A = D(!1), q = () => {
348
+ }, _ = (t) => {
349
+ e.allowPluginDelete && r("plugin-delete", t);
350
+ }, y = (t) => {
351
+ e.allowPluginAdd && r("plugin-add", t);
352
+ }, A = V(!1), L = () => {
536
353
  A.value = !0;
537
- }, W = (l, n) => {
538
- r("plugin-create", l, n), A.value = !1;
539
- }, ue = G(m, "visible"), ce = () => {
354
+ }, j = (t, n) => {
355
+ r("plugin-create", t, n), A.value = !1;
356
+ }, ne = oe(g, "visible"), ie = () => {
540
357
  r("update:visible", !1);
541
- }, pe = y(() => {
542
- const { type: l, position: n, drawer: f } = t.popupConfig || {}, o = {
358
+ }, se = p(() => {
359
+ const { type: t, position: n, drawer: u } = e.popupConfig || {}, l = {
543
360
  "z-index": "1000",
544
361
  position: "fixed"
545
362
  };
546
- return l === "fixed" ? {
547
- ...o,
548
- ...me(n)
549
- } : l === "drawer" ? {
550
- ...o,
551
- ..._e(f)
552
- } : o;
553
- }), me = (l = {}) => {
363
+ return t === "fixed" ? {
364
+ ...l,
365
+ ...re(n)
366
+ } : t === "drawer" ? {
367
+ ...l,
368
+ ...de(u)
369
+ } : l;
370
+ }), re = (t = {}) => {
554
371
  const n = {};
555
- return Object.entries(l).forEach(([f, o]) => {
556
- o !== void 0 && (n[f] = typeof o == "number" ? `${o}px` : o);
372
+ return Object.entries(t).forEach(([u, l]) => {
373
+ l !== void 0 && (n[u] = typeof l == "number" ? `${l}px` : l);
557
374
  }), Object.keys(n).length === 0 ? {
558
375
  top: "50%",
559
376
  left: "50%",
560
377
  transform: "translate(-50%, -50%)"
561
378
  } : n;
562
- }, _e = (l = { direction: "right" }) => {
563
- const { direction: n } = l, f = {
379
+ }, de = (t = { direction: "right" }) => {
380
+ const { direction: n } = t, u = {
564
381
  top: "0",
565
382
  bottom: "0",
566
383
  height: "100%"
567
384
  };
568
385
  return n === "left" ? {
569
- ...f,
386
+ ...u,
570
387
  left: "0",
571
388
  "border-right": "1px solid rgb(219, 219, 219)"
572
389
  } : {
573
- ...f,
390
+ ...u,
574
391
  right: "0",
575
392
  "border-left": "1px solid rgb(219, 219, 219)"
576
393
  };
577
- }, Z = y(() => {
578
- const { type: l, drawer: n } = t.popupConfig || {};
579
- return l !== "drawer" ? "" : `drawer-${(n == null ? void 0 : n.direction) || "right"}`;
580
- }), ge = y(() => {
581
- const { type: l } = t.popupConfig || {};
582
- return l === "drawer" ? Z.value : "fade";
583
- });
584
- return (l, n) => (s(), x(Y, { name: ge.value }, {
585
- default: S(() => {
586
- var f;
394
+ }, W = p(() => {
395
+ const { type: t, drawer: n } = e.popupConfig || {};
396
+ return t !== "drawer" ? "" : `drawer-${(n == null ? void 0 : n.direction) || "right"}`;
397
+ }), ce = p(() => {
398
+ const { type: t } = e.popupConfig || {};
399
+ return t === "drawer" ? W.value : "fade";
400
+ }), ue = {
401
+ background: "var(--tr-mcp-server-picker-bg-default-2)",
402
+ color: "var(--tr-text-primary)"
403
+ };
404
+ return (t, n) => (o(), k(K, { name: ce.value }, {
405
+ default: T(() => {
406
+ var u;
587
407
  return [
588
- ue.value ? (s(), d("div", {
408
+ ne.value ? (o(), i("div", {
589
409
  key: 0,
590
- class: K(["mcp-server-picker", [`popup-type-${((f = t.popupConfig) == null ? void 0 : f.type) || "fixed"}`, Z.value]]),
591
- style: he(pe.value)
410
+ class: G(["mcp-server-picker", [`popup-type-${((u = e.popupConfig) == null ? void 0 : u.type) || "fixed"}`, W.value]]),
411
+ style: _e(se.value)
592
412
  }, [
593
- e("div", $t, [
594
- e("div", xt, U(t.title), 1),
595
- e("div", wt, [
596
- t.showCustomAddButton ? (s(), d("div", {
413
+ s("div", nt, [
414
+ s("div", it, S(e.title), 1),
415
+ s("div", st, [
416
+ e.showCustomAddButton ? (o(), i("div", {
597
417
  key: 0,
598
418
  class: "mcp-server-picker__header-right-item",
599
- onClick: q
419
+ onClick: L
600
420
  }, [
601
- g(u(Se), { style: { "font-size": "16px", cursor: "pointer" } }),
602
- e("span", null, U(t.customAddButtonText), 1)
603
- ])) : b("", !0),
604
- g(u(de), {
421
+ m(d(Pe), { class: "mcp-server-picker__icon" }),
422
+ s("span", null, S(e.customAddButtonText), 1)
423
+ ])) : v("", !0),
424
+ m(d(ae), {
605
425
  class: "mcp-server-picker__header-right-close",
606
- onClick: ce
426
+ onClick: ie
607
427
  })
608
428
  ])
609
429
  ]),
610
- e("div", St, [
611
- g(u(ke), {
430
+ s("div", rt, [
431
+ m(d(fe), {
612
432
  modelValue: c.value,
613
- "onUpdate:modelValue": n[3] || (n[3] = (o) => c.value = o)
433
+ "onUpdate:modelValue": n[3] || (n[3] = (l) => c.value = l)
614
434
  }, {
615
- default: S(() => [
616
- t.showInstalledTab ? (s(), x(u(te), {
435
+ default: T(() => [
436
+ e.showInstalledTab ? (o(), k(d(Y), {
617
437
  key: 0,
618
- title: t.installedTabTitle,
438
+ title: e.installedTabTitle,
619
439
  name: "installed"
620
440
  }, {
621
- default: S(() => [
622
- t.enableSearch ? (s(), d("div", Dt, [
623
- g(u(le), {
624
- modelValue: k.value,
625
- "onUpdate:modelValue": n[0] || (n[0] = (o) => k.value = o),
626
- placeholder: t.searchPlaceholder
441
+ default: T(() => [
442
+ e.enableSearch ? (o(), i("div", dt, [
443
+ m(d(Z), {
444
+ modelValue: f.value,
445
+ "onUpdate:modelValue": n[0] || (n[0] = (l) => f.value = l),
446
+ placeholder: e.searchPlaceholder
627
447
  }, {
628
- suffix: S(() => [
629
- g(u(ae), { style: { "font-size": "16px", cursor: "pointer" } })
448
+ suffix: T(() => [
449
+ m(d(ee), { class: "mcp-server-picker__icon" })
630
450
  ]),
631
451
  _: 1
632
452
  }, 8, ["modelValue", "placeholder"])
633
- ])) : b("", !0),
634
- N.value ? (s(), d("div", Vt, [
635
- t.loading ? (s(), d("div", Ut, "加载中...")) : (s(!0), d(I, { key: 1 }, H(_.value, (o) => {
636
- var $;
637
- return s(), x(u(se), {
638
- key: o.id,
639
- plugin: o,
453
+ ])) : v("", !0),
454
+ I.value ? (o(), i("div", ct, [
455
+ e.loading ? (o(), i("div", ut, "加载中...")) : (o(!0), i(F, { key: 1 }, N(D.value, (l) => {
456
+ var P;
457
+ return o(), k(d(te), {
458
+ key: l.id,
459
+ plugin: l,
640
460
  mode: "installed",
641
- expandable: !!(($ = o.tools) != null && $.length),
642
- onTogglePlugin: (B) => z(o, B),
643
- onToggleTool: (B, L) => i(o, B, L),
644
- onDeletePlugin: () => C(o)
461
+ expandable: !!((P = l.tools) != null && P.length),
462
+ onTogglePlugin: (B) => E(l, B),
463
+ onToggleTool: (B, M) => a(l, B, M),
464
+ onDeletePlugin: () => _(l)
645
465
  }, null, 8, ["plugin", "expandable", "onTogglePlugin", "onToggleTool", "onDeletePlugin"]);
646
466
  }), 128))
647
- ])) : (s(), x(u(ie), {
467
+ ])) : (o(), k(d(le), {
648
468
  key: 2,
649
- "search-query": k.value
469
+ "search-query": f.value
650
470
  }, null, 8, ["search-query"]))
651
471
  ]),
652
472
  _: 1
653
- }, 8, ["title"])) : b("", !0),
654
- t.showMarketTab ? (s(), x(u(te), {
473
+ }, 8, ["title"])) : v("", !0),
474
+ e.showMarketTab ? (o(), k(d(Y), {
655
475
  key: 1,
656
- title: t.marketTabTitle,
476
+ title: e.marketTabTitle,
657
477
  name: "market"
658
478
  }, {
659
- default: S(() => [
660
- t.enableSearch || t.enableMarketCategoryFilter ? (s(), d("div", Bt, [
661
- t.enableMarketCategoryFilter ? (s(), d("div", At, [
662
- g(u(Te), {
663
- modelValue: T.value,
664
- "onUpdate:modelValue": n[1] || (n[1] = (o) => T.value = o),
665
- placeholder: t.marketCategoryPlaceholder
479
+ default: T(() => [
480
+ e.enableSearch || e.enableMarketCategoryFilter ? (o(), i("div", pt, [
481
+ e.enableMarketCategoryFilter ? (o(), i("div", gt, [
482
+ m(d(he), {
483
+ modelValue: C.value,
484
+ "onUpdate:modelValue": n[1] || (n[1] = (l) => C.value = l),
485
+ placeholder: e.marketCategoryPlaceholder,
486
+ "drop-style": ue
666
487
  }, {
667
- default: S(() => [
668
- (s(!0), d(I, null, H(t.marketCategoryOptions, (o) => (s(), x(u(Ce), {
669
- key: o.value,
670
- label: o.label,
671
- value: o.value
488
+ default: T(() => [
489
+ (o(!0), i(F, null, N(e.marketCategoryOptions, (l) => (o(), k(d(ye), {
490
+ key: l.value,
491
+ label: l.label,
492
+ value: l.value,
493
+ class: "mcp-server-picker__content-market-header-select-option"
672
494
  }, {
673
- default: S(() => [
674
- ye(U(o.label), 1)
495
+ default: T(() => [
496
+ me(S(l.label), 1)
675
497
  ]),
676
498
  _: 2
677
499
  }, 1032, ["label", "value"]))), 128))
678
500
  ]),
679
501
  _: 1
680
502
  }, 8, ["modelValue", "placeholder"])
681
- ])) : b("", !0),
682
- t.enableSearch ? (s(), d("div", Ft, [
683
- g(u(le), {
684
- modelValue: v.value,
685
- "onUpdate:modelValue": n[2] || (n[2] = (o) => v.value = o),
686
- placeholder: V.value
503
+ ])) : v("", !0),
504
+ e.enableSearch ? (o(), i("div", _t, [
505
+ m(d(Z), {
506
+ modelValue: h.value,
507
+ "onUpdate:modelValue": n[2] || (n[2] = (l) => h.value = l),
508
+ placeholder: w.value
687
509
  }, {
688
- suffix: S(() => [
689
- g(u(ae), { style: { "font-size": "16px", cursor: "pointer" } })
510
+ suffix: T(() => [
511
+ m(d(ee), { class: "mcp-server-picker__icon" })
690
512
  ]),
691
513
  _: 1
692
514
  }, 8, ["modelValue", "placeholder"])
693
- ])) : b("", !0)
694
- ])) : b("", !0),
695
- N.value ? (s(), d("div", It, [
696
- t.marketLoading ? (s(), d("div", Mt, "加载中...")) : (s(!0), d(I, { key: 1 }, H(P.value, (o) => (s(), x(u(se), {
697
- key: o.id,
698
- plugin: o,
515
+ ])) : v("", !0)
516
+ ])) : v("", !0),
517
+ I.value ? (o(), i("div", mt, [
518
+ e.marketLoading ? (o(), i("div", vt, "加载中...")) : (o(!0), i(F, { key: 1 }, N(x.value, (l) => (o(), k(d(te), {
519
+ key: l.id,
520
+ plugin: l,
699
521
  mode: "market",
700
522
  expandable: !1,
701
523
  "show-tool-count": !1,
702
- onAddPlugin: ($) => w(o, $)
703
- }, null, 8, ["plugin", "onAddPlugin"]))), 128))
704
- ])) : (s(), x(u(ie), {
524
+ onAddPlugin: y
525
+ }, null, 8, ["plugin"]))), 128))
526
+ ])) : (o(), k(d(le), {
705
527
  key: 2,
706
- "search-query": v.value || T.value
528
+ "search-query": h.value || C.value
707
529
  }, null, 8, ["search-query"]))
708
530
  ]),
709
531
  _: 1
710
- }, 8, ["title"])) : b("", !0)
532
+ }, 8, ["title"])) : v("", !0)
711
533
  ]),
712
534
  _: 1
713
535
  }, 8, ["modelValue"])
714
536
  ]),
715
- g(u(bt), {
537
+ m(d(et), {
716
538
  visible: A.value,
717
- "onUpdate:visible": n[4] || (n[4] = (o) => A.value = o),
718
- onConfirm: W
539
+ "onUpdate:visible": n[4] || (n[4] = (l) => A.value = l),
540
+ onConfirm: j
719
541
  }, null, 8, ["visible"])
720
- ], 6)) : b("", !0)
542
+ ], 6)) : v("", !0)
721
543
  ];
722
544
  }),
723
545
  _: 1
724
546
  }, 8, ["name"]));
725
547
  }
726
- }), J = /* @__PURE__ */ E(Et, [["__scopeId", "data-v-f4b43bf3"]]);
727
- J.name = "McpServerPicker";
728
- const Lt = function(m) {
729
- m.component(J.name, J);
548
+ }), O = /* @__PURE__ */ z(ft, [["__scopeId", "data-v-7f8cfb42"]]);
549
+ O.name = "McpServerPicker";
550
+ const ht = function(g) {
551
+ g.component(O.name, O);
730
552
  };
731
- J.install = Lt;
553
+ O.install = ht;
732
554
  export {
733
- J as default
555
+ O as default
734
556
  };