@mcp-use/inspector 20.0.0-beta.14 → 20.0.0-beta.16
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.
- package/README.md +2 -2
- package/dist/cdn/inspector.js +76909 -9272
- package/dist/cli.js +1 -1
- package/dist/server/cdn-shell.js +2 -2
- package/dist/server/{chunk-3XD7J5NX.js → chunk-FHC5ZGMM.js} +1 -1
- package/dist/server/{chunk-N3VXWLT6.js → chunk-QXOCY5ZE.js} +1 -1
- package/dist/server/{chunk-DLHO3Q42.js → chunk-R5ZEVRE5.js} +1 -1
- package/dist/server/cli.js +2 -2
- package/dist/server/index.js +3 -3
- package/dist/server/middleware.js +3 -3
- package/dist/server/version.js +1 -1
- package/dist/web/assets/index-BgHcVJO3.js +643 -0
- package/dist/web/index.html +2 -10
- package/package.json +4 -4
- package/dist/cdn/AnimatePresence-D1bZ5_-l.js +0 -394
- package/dist/cdn/ChatTab-D_2TXR3X.js +0 -6811
- package/dist/cdn/CheckboxIndicator-BjF73mGX.js +0 -252
- package/dist/cdn/ConnectionSettingsForm-BqH0PcZF.js +0 -929
- package/dist/cdn/ConnectionSettingsTab-Duhb1uQP.js +0 -151
- package/dist/cdn/ElicitationTab-PEmEDvC5.js +0 -655
- package/dist/cdn/FormContext-NtUiZclE.js +0 -135
- package/dist/cdn/InspectorContext-BBKCdfmK.js +0 -123
- package/dist/cdn/JSONDisplay-BJqMz7Ny.js +0 -324
- package/dist/cdn/ListTabHeader-DzmTtN1e.js +0 -89
- package/dist/cdn/MCPAppsDebugControls-w5NRWhlZ.js +0 -2174
- package/dist/cdn/ManufactOAuthCallback-ChbbjFIT.js +0 -31
- package/dist/cdn/MarkdownRenderer-BIsUE0bf.js +0 -3610
- package/dist/cdn/McpAppsViewPanel-B3_76u7O.js +0 -56
- package/dist/cdn/NotificationsTab-B7uebqMV.js +0 -290
- package/dist/cdn/OAuthCallback-CtLoXa3h.js +0 -58
- package/dist/cdn/PromptsTab-DpE0XLzk.js +0 -902
- package/dist/cdn/ResourcesTab-DQS24z5p.js +0 -566
- package/dist/cdn/SamplingTab-ZDeu0CjJ.js +0 -659
- package/dist/cdn/ServerMetadataTab-BM3VhSLf.js +0 -244
- package/dist/cdn/StatusIcon-Q3n3YRtE.js +0 -65
- package/dist/cdn/ToolsTab-LtviZSWA.js +0 -2045
- package/dist/cdn/ViewPreview-BwC_tbF_.js +0 -238
- package/dist/cdn/WidgetDebugContext-B6yoOVVV.js +0 -314
- package/dist/cdn/WidgetWrapper-BlbQAh_X.js +0 -12
- package/dist/cdn/basePath-B8HuhIMu.js +0 -25
- package/dist/cdn/bell-GrTZcnD2.js +0 -10
- package/dist/cdn/browser-DG2Z8392.js +0 -42
- package/dist/cdn/brush-CelVvMGp.js +0 -17
- package/dist/cdn/button-CB4uOoUV.js +0 -2509
- package/dist/cdn/card-BA-DQk-G.js +0 -41
- package/dist/cdn/cfWorker-Bxcs9rNe.js +0 -10799
- package/dist/cdn/checkbox-kwVa4gRX.js +0 -20
- package/dist/cdn/chunk-QUQL4437-XnDcYQEx.js +0 -1508
- package/dist/cdn/clock-YMF8Gtw5.js +0 -12
- package/dist/cdn/code-C8sN2OGR.js +0 -10
- package/dist/cdn/createLucideIcon-BONxC1L5.js +0 -213
- package/dist/cdn/dialog-CJGnC5Ag.js +0 -1028
- package/dist/cdn/dist-CHKts0NS.js +0 -2307
- package/dist/cdn/dist-CTJnCYmk.js +0 -616
- package/dist/cdn/external-link-Bo4lQxr1.js +0 -17
- package/dist/cdn/eye-pSGG7nvf.js +0 -29
- package/dist/cdn/folder-open-aM8CPtBO.js +0 -7
- package/dist/cdn/hash-DDs2vE1k.js +0 -33
- package/dist/cdn/history-BfUFpL1d.js +0 -17
- package/dist/cdn/index-browser-DO-sd0TA.js +0 -1853
- package/dist/cdn/info-BMkB68mB.js +0 -19
- package/dist/cdn/input-BCpgLXU1.js +0 -9654
- package/dist/cdn/inspector-settings-layout-0VDsjeqb.js +0 -4
- package/dist/cdn/label-A0UGV8FE.js +0 -60
- package/dist/cdn/loader-circle-BKRHJEB7.js +0 -7
- package/dist/cdn/manufact-auth-BQMHhbLV.js +0 -423
- package/dist/cdn/maximize-2-DdrB_spi.js +0 -21
- package/dist/cdn/maximize-hSOCz133.js +0 -21
- package/dist/cdn/message-square-D3tKB3uJ.js +0 -7
- package/dist/cdn/not-found-BajFyZpp.js +0 -32
- package/dist/cdn/play-B1leulYf.js +0 -7
- package/dist/cdn/providerMeta-CjGU4rID.js +0 -436
- package/dist/cdn/react-BDA-xrgK.js +0 -5421
- package/dist/cdn/react-BIs9pQ3H.js +0 -926
- package/dist/cdn/refresh-cw-CyvXrS91.js +0 -21
- package/dist/cdn/save-CmdEPUAm.js +0 -34
- package/dist/cdn/schemaHelpers-DTV38jGq.js +0 -16
- package/dist/cdn/select-CCFHjOGk.js +0 -2595
- package/dist/cdn/servers-Dd0Vcp81.js +0 -30
- package/dist/cdn/shared-CJVHJhag.js +0 -1700
- package/dist/cdn/sheet-oyq1mIyg.js +0 -2078
- package/dist/cdn/sparkles-CxeZpVtX.js +0 -23
- package/dist/cdn/spinner-Be1GlSGX.js +0 -15
- package/dist/cdn/square-check-big-C_4wbfwF.js +0 -10
- package/dist/cdn/switch-DHXEA_N5.js +0 -665
- package/dist/cdn/tabs-subtle-Dubd6Kj8.js +0 -788
- package/dist/cdn/telemetry-e4uEESP7.js +0 -208
- package/dist/cdn/textarea-CwmI8_uI.js +0 -14
- package/dist/cdn/trash-2-BhumJAFE.js +0 -25
- package/dist/cdn/useAriaLabelledBy-Cra6w3YY.js +0 -30
- package/dist/cdn/useCompositeItem-Dhnm-7el.js +0 -26
- package/dist/cdn/useConfig-Dw_6Ztzr.js +0 -235
- package/dist/cdn/useSavedRequests-mSIsDd4c.js +0 -51
- package/dist/cdn/useViewHostProps-BPApUBaM.js +0 -364
- package/dist/cdn/wrench-DvK20LUT.js +0 -7
- package/dist/cdn/x-EilKPiCX.js +0 -10
- package/dist/cdn/zap-0Wr9QO7N.js +0 -10
- package/dist/web/assets/AnimatePresence-FfDQQNFJ.js +0 -9
- package/dist/web/assets/ChatTab-BhoU_ges.js +0 -18
- package/dist/web/assets/ConnectionSettingsTab-vJcr7uI3.js +0 -1
- package/dist/web/assets/ElicitationTab-4my-wtXf.js +0 -1
- package/dist/web/assets/FormContext-sV-yByKz.js +0 -1
- package/dist/web/assets/ListTabHeader-CrGae306.js +0 -1
- package/dist/web/assets/MCPAppsDebugControls-Cd4s9mr1.js +0 -34
- package/dist/web/assets/ManufactOAuthCallback-CCRWJhuT.js +0 -1
- package/dist/web/assets/MarkdownRenderer-BUDZYHqm.js +0 -47
- package/dist/web/assets/McpAppsViewPanel-Cil7Fdy4.js +0 -1
- package/dist/web/assets/NotificationsTab-Bl3O5PRb.js +0 -1
- package/dist/web/assets/OAuthCallback-CceVgo-9.js +0 -1
- package/dist/web/assets/PromptsTab-8lSxb8x-.js +0 -15
- package/dist/web/assets/ResourcesTab-DtGfgsPv.js +0 -2
- package/dist/web/assets/SamplingTab-XC-DTfOo.js +0 -1
- package/dist/web/assets/ServerMetadataTab-C5d_dI3_.js +0 -1
- package/dist/web/assets/ToolsTab-DuHPXItY.js +0 -8
- package/dist/web/assets/ViewPreview-DXswO9q8.js +0 -1
- package/dist/web/assets/WidgetWrapper-cv_BM1bY.js +0 -1
- package/dist/web/assets/brush-DX0UZ_pI.js +0 -1
- package/dist/web/assets/button-C8Xa2k4x.js +0 -1
- package/dist/web/assets/checkbox-DAfdiGl1.js +0 -1
- package/dist/web/assets/code-B14rVdNt.js +0 -1
- package/dist/web/assets/createLucideIcon-BEHeJH0M.js +0 -1
- package/dist/web/assets/dist-C2Y1wkk6.js +0 -21
- package/dist/web/assets/index-tu5-QdSJ.js +0 -499
- package/dist/web/assets/input-C0OQCUZy.js +0 -1
- package/dist/web/assets/inspector-settings-layout-yjKRJDai.js +0 -1
- package/dist/web/assets/label-CI7JWQOo.js +0 -1
- package/dist/web/assets/maximize-2-Br1WQzT2.js +0 -1
- package/dist/web/assets/maximize-CJNgRe6S.js +0 -1
- package/dist/web/assets/react-CU_d2d5K.js +0 -1
- package/dist/web/assets/refresh-cw-B5iaAZKn.js +0 -1
- package/dist/web/assets/save-TM6fvNrt.js +0 -1
- package/dist/web/assets/schemaHelpers-DLNTQr_6.js +0 -1
- package/dist/web/assets/select-D6jzbLJn.js +0 -1
- package/dist/web/assets/shared-c1Yr-wvV.js +0 -1
- package/dist/web/assets/sparkles-BGYTDThM.js +0 -1
- package/dist/web/assets/tabs-subtle-CHvFXVIA.js +0 -1
- package/dist/web/assets/textarea-CRTXuRmE.js +0 -1
- package/dist/web/assets/useConfig-9UVqLmR_.js +0 -1
- package/dist/web/assets/useViewHostProps-BBoPQYEl.js +0 -1
- package/dist/web/assets/zap-BDWHCVHU.js +0 -1
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { s as e, t } from "./react-BIs9pQ3H.js";
|
|
2
|
-
import { d as n, l as r, u as i } from "./input-BCpgLXU1.js";
|
|
3
|
-
import { n as a } from "./createLucideIcon-BONxC1L5.js";
|
|
4
|
-
import { t as o } from "./label-A0UGV8FE.js";
|
|
5
|
-
import { t as s } from "./JSONDisplay-BJqMz7Ny.js";
|
|
6
|
-
import { t as c } from "./info-BMkB68mB.js";
|
|
7
|
-
import { n as l, t as u } from "./servers-Dd0Vcp81.js";
|
|
8
|
-
import { a as d, i as f, n as p, r as m, t as h } from "./card-BA-DQk-G.js";
|
|
9
|
-
import { n as g, r as _, t as v } from "./tabs-subtle-Dubd6Kj8.js";
|
|
10
|
-
import { t as y } from "./inspector-settings-layout-0VDsjeqb.js";
|
|
11
|
-
import { n as b } from "./ListTabHeader-DzmTtN1e.js";
|
|
12
|
-
//#region src/client/utils/serverMetadata.ts
|
|
13
|
-
function x(e) {
|
|
14
|
-
let t = {};
|
|
15
|
-
if (e.protocolVersion && (t.protocolVersion = e.protocolVersion), e.capabilities && (t.capabilities = e.capabilities), e.serverInfo) {
|
|
16
|
-
let { icon: n, ...r } = e.serverInfo;
|
|
17
|
-
t.serverInfo = r;
|
|
18
|
-
}
|
|
19
|
-
return e.instructions && (t.instructions = e.instructions), t;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region src/client/components/ServerCapabilitiesList.tsx
|
|
23
|
-
var S = /* @__PURE__ */ e(t(), 1), C = a();
|
|
24
|
-
function w({ connection: e }) {
|
|
25
|
-
let t = e.capabilities;
|
|
26
|
-
return t && Object.keys(t).length > 0 ? /* @__PURE__ */ (0, C.jsx)("div", {
|
|
27
|
-
className: "overflow-x-auto",
|
|
28
|
-
"data-testid": "server-info-capabilities-json",
|
|
29
|
-
children: /* @__PURE__ */ (0, C.jsx)(s, {
|
|
30
|
-
data: t,
|
|
31
|
-
filename: `capabilities-${l(e)}.json`
|
|
32
|
-
})
|
|
33
|
-
}) : /* @__PURE__ */ (0, C.jsx)("p", {
|
|
34
|
-
className: "text-sm text-muted-foreground",
|
|
35
|
-
"data-testid": "server-info-capabilities",
|
|
36
|
-
children: "No capabilities reported."
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/client/components/ServerMetadataPanel.tsx
|
|
41
|
-
var T = "space-y-1.5 min-w-0";
|
|
42
|
-
function E({ label: e, children: t, className: n, testId: r }) {
|
|
43
|
-
return /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
44
|
-
className: n ?? T,
|
|
45
|
-
children: [/* @__PURE__ */ (0, C.jsx)(o, {
|
|
46
|
-
className: "text-xs text-muted-foreground",
|
|
47
|
-
children: e
|
|
48
|
-
}), /* @__PURE__ */ (0, C.jsx)("div", {
|
|
49
|
-
className: "min-h-4 text-xs font-mono",
|
|
50
|
-
"data-testid": r,
|
|
51
|
-
children: t
|
|
52
|
-
})]
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function D({ connection: e, inDialog: t = !1 }) {
|
|
56
|
-
let n = u(e), r = e.serverInfo?.name || e.serverInfo?.title || e.url || e.name;
|
|
57
|
-
return /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
58
|
-
className: "space-y-6",
|
|
59
|
-
children: [
|
|
60
|
-
/* @__PURE__ */ (0, C.jsxs)(h, {
|
|
61
|
-
className: "border",
|
|
62
|
-
children: [/* @__PURE__ */ (0, C.jsxs)(f, { children: [/* @__PURE__ */ (0, C.jsx)(d, {
|
|
63
|
-
className: "text-base font-medium",
|
|
64
|
-
children: t ? "General" : "Server Information"
|
|
65
|
-
}), /* @__PURE__ */ (0, C.jsx)(m, { children: "Server identity from initialize" })] }), /* @__PURE__ */ (0, C.jsx)(p, {
|
|
66
|
-
className: "pt-0",
|
|
67
|
-
children: /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
68
|
-
className: "flex flex-wrap items-start gap-x-8 gap-y-4",
|
|
69
|
-
children: [
|
|
70
|
-
e.serverInfo?.title && /* @__PURE__ */ (0, C.jsx)(E, {
|
|
71
|
-
label: "Title",
|
|
72
|
-
children: /* @__PURE__ */ (0, C.jsx)("span", {
|
|
73
|
-
className: "inline-block rounded-md bg-muted p-1 px-2",
|
|
74
|
-
children: e.serverInfo.title
|
|
75
|
-
})
|
|
76
|
-
}),
|
|
77
|
-
n && /* @__PURE__ */ (0, C.jsx)(E, {
|
|
78
|
-
label: "Alias",
|
|
79
|
-
children: /* @__PURE__ */ (0, C.jsx)("span", {
|
|
80
|
-
className: "inline-block rounded-md bg-muted p-1 px-2",
|
|
81
|
-
children: n
|
|
82
|
-
})
|
|
83
|
-
}),
|
|
84
|
-
/* @__PURE__ */ (0, C.jsx)(E, {
|
|
85
|
-
label: "Name",
|
|
86
|
-
testId: "server-info-name",
|
|
87
|
-
children: /* @__PURE__ */ (0, C.jsx)("span", {
|
|
88
|
-
className: "inline-block rounded-md bg-muted p-1 px-2",
|
|
89
|
-
children: r
|
|
90
|
-
})
|
|
91
|
-
}),
|
|
92
|
-
e.serverInfo?.version && /* @__PURE__ */ (0, C.jsx)(E, {
|
|
93
|
-
label: "Version",
|
|
94
|
-
children: /* @__PURE__ */ (0, C.jsx)("span", {
|
|
95
|
-
className: "inline-block rounded-md bg-muted p-1 px-2",
|
|
96
|
-
children: e.serverInfo.version
|
|
97
|
-
})
|
|
98
|
-
}),
|
|
99
|
-
e.protocolVersion && /* @__PURE__ */ (0, C.jsx)(E, {
|
|
100
|
-
label: "Protocol",
|
|
101
|
-
children: /* @__PURE__ */ (0, C.jsx)("span", {
|
|
102
|
-
className: "inline-block rounded-md bg-muted p-1 px-2",
|
|
103
|
-
children: e.protocolVersion
|
|
104
|
-
})
|
|
105
|
-
}),
|
|
106
|
-
e.serverInfo?.websiteUrl && /* @__PURE__ */ (0, C.jsx)(E, {
|
|
107
|
-
label: "Website",
|
|
108
|
-
className: `${T} w-full`,
|
|
109
|
-
children: /* @__PURE__ */ (0, C.jsx)("a", {
|
|
110
|
-
href: e.serverInfo.websiteUrl,
|
|
111
|
-
target: "_blank",
|
|
112
|
-
rel: "noopener noreferrer",
|
|
113
|
-
className: "break-all font-sans text-blue-500 hover:underline",
|
|
114
|
-
children: e.serverInfo.websiteUrl
|
|
115
|
-
})
|
|
116
|
-
})
|
|
117
|
-
]
|
|
118
|
-
})
|
|
119
|
-
})]
|
|
120
|
-
}),
|
|
121
|
-
e.instructions && /* @__PURE__ */ (0, C.jsxs)(h, {
|
|
122
|
-
className: "border",
|
|
123
|
-
children: [/* @__PURE__ */ (0, C.jsxs)(f, { children: [/* @__PURE__ */ (0, C.jsx)(d, {
|
|
124
|
-
className: "text-base font-medium",
|
|
125
|
-
children: "Instructions"
|
|
126
|
-
}), /* @__PURE__ */ (0, C.jsx)(m, { children: "Server guidance for clients and agents" })] }), /* @__PURE__ */ (0, C.jsx)(p, {
|
|
127
|
-
className: "pt-0",
|
|
128
|
-
children: /* @__PURE__ */ (0, C.jsx)("p", {
|
|
129
|
-
className: "whitespace-pre-wrap font-sans text-sm text-muted-foreground",
|
|
130
|
-
children: e.instructions
|
|
131
|
-
})
|
|
132
|
-
})]
|
|
133
|
-
}),
|
|
134
|
-
e.serverInfo?.icons && e.serverInfo.icons.length > 0 && /* @__PURE__ */ (0, C.jsxs)(h, {
|
|
135
|
-
className: "border",
|
|
136
|
-
children: [/* @__PURE__ */ (0, C.jsxs)(f, { children: [/* @__PURE__ */ (0, C.jsx)(d, {
|
|
137
|
-
className: "text-base font-medium",
|
|
138
|
-
children: "Icons"
|
|
139
|
-
}), /* @__PURE__ */ (0, C.jsx)(m, { children: "Server icon assets from initialize" })] }), /* @__PURE__ */ (0, C.jsx)(p, {
|
|
140
|
-
className: "pt-0",
|
|
141
|
-
children: /* @__PURE__ */ (0, C.jsx)("div", {
|
|
142
|
-
className: "flex flex-col gap-2 font-sans",
|
|
143
|
-
children: e.serverInfo.icons.map((e, t) => /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
144
|
-
className: "flex min-w-0 items-center gap-2 rounded-md bg-muted p-2",
|
|
145
|
-
"data-testid": `server-info-icon-${t}`,
|
|
146
|
-
children: [/* @__PURE__ */ (0, C.jsx)("div", {
|
|
147
|
-
className: "flex h-8 w-8 shrink-0 items-center justify-center overflow-hidden rounded-md border border-border bg-background",
|
|
148
|
-
children: /* @__PURE__ */ (0, C.jsx)("img", {
|
|
149
|
-
src: e.src,
|
|
150
|
-
alt: `Server icon ${t + 1}`,
|
|
151
|
-
className: "h-full w-full object-contain"
|
|
152
|
-
})
|
|
153
|
-
}), /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
154
|
-
className: "min-w-0 text-xs",
|
|
155
|
-
children: [/* @__PURE__ */ (0, C.jsx)("p", {
|
|
156
|
-
className: "truncate font-mono",
|
|
157
|
-
children: e.src
|
|
158
|
-
}), /* @__PURE__ */ (0, C.jsx)("p", {
|
|
159
|
-
className: "text-muted-foreground",
|
|
160
|
-
children: e.sizes?.join(", ") || "no size"
|
|
161
|
-
})]
|
|
162
|
-
})]
|
|
163
|
-
}, t))
|
|
164
|
-
})
|
|
165
|
-
})]
|
|
166
|
-
}),
|
|
167
|
-
/* @__PURE__ */ (0, C.jsxs)(h, {
|
|
168
|
-
className: "border",
|
|
169
|
-
"data-testid": "server-info-capabilities",
|
|
170
|
-
children: [/* @__PURE__ */ (0, C.jsxs)(f, { children: [/* @__PURE__ */ (0, C.jsx)(d, {
|
|
171
|
-
className: "text-base font-medium",
|
|
172
|
-
children: "Capabilities"
|
|
173
|
-
}), /* @__PURE__ */ (0, C.jsx)(m, { children: "MCP capabilities reported during initialize" })] }), /* @__PURE__ */ (0, C.jsx)(p, {
|
|
174
|
-
className: "pt-0",
|
|
175
|
-
children: /* @__PURE__ */ (0, C.jsx)(w, { connection: e })
|
|
176
|
-
})]
|
|
177
|
-
})
|
|
178
|
-
]
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
//#endregion
|
|
182
|
-
//#region src/client/components/ServerMetadataTab.tsx
|
|
183
|
-
var O = "server-metadata";
|
|
184
|
-
function k({ connection: e }) {
|
|
185
|
-
let [t, a] = (0, S.useState)(0), [o, u] = (0, S.useState)(!1), d = x(e);
|
|
186
|
-
return /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
187
|
-
"data-testid": "server-info-modal",
|
|
188
|
-
className: "h-full overflow-y-auto overscroll-none",
|
|
189
|
-
onScroll: (e) => u(e.currentTarget.scrollTop > 0),
|
|
190
|
-
children: [
|
|
191
|
-
/* @__PURE__ */ (0, C.jsx)("div", {
|
|
192
|
-
className: `${r(o)} flex flex-row items-center justify-between gap-2 ${i}`,
|
|
193
|
-
children: /* @__PURE__ */ (0, C.jsxs)("div", {
|
|
194
|
-
className: "flex min-w-0 flex-col gap-2 sm:flex-row sm:items-center sm:gap-4",
|
|
195
|
-
children: [/* @__PURE__ */ (0, C.jsxs)("h2", {
|
|
196
|
-
className: `${n} flex items-center gap-1.5`,
|
|
197
|
-
"data-testid": "server-info-modal-title",
|
|
198
|
-
children: [/* @__PURE__ */ (0, C.jsx)(c, {
|
|
199
|
-
className: b,
|
|
200
|
-
"aria-hidden": !0
|
|
201
|
-
}), "Server Metadata"]
|
|
202
|
-
}), /* @__PURE__ */ (0, C.jsxs)(v, {
|
|
203
|
-
selectedIndex: t,
|
|
204
|
-
onSelect: a,
|
|
205
|
-
idPrefix: O,
|
|
206
|
-
className: "shrink-0",
|
|
207
|
-
children: [/* @__PURE__ */ (0, C.jsx)(g, {
|
|
208
|
-
label: "Formatted",
|
|
209
|
-
index: 0
|
|
210
|
-
}), /* @__PURE__ */ (0, C.jsx)(g, {
|
|
211
|
-
label: "Raw",
|
|
212
|
-
index: 1
|
|
213
|
-
})]
|
|
214
|
-
})]
|
|
215
|
-
})
|
|
216
|
-
}),
|
|
217
|
-
/* @__PURE__ */ (0, C.jsx)(_, {
|
|
218
|
-
index: 0,
|
|
219
|
-
selectedIndex: t,
|
|
220
|
-
idPrefix: O,
|
|
221
|
-
className: y,
|
|
222
|
-
children: /* @__PURE__ */ (0, C.jsx)(D, { connection: e })
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ (0, C.jsx)(_, {
|
|
225
|
-
index: 1,
|
|
226
|
-
selectedIndex: t,
|
|
227
|
-
idPrefix: O,
|
|
228
|
-
className: "px-4 pt-6 pb-6",
|
|
229
|
-
children: /* @__PURE__ */ (0, C.jsx)("div", {
|
|
230
|
-
"data-testid": "server-info-raw",
|
|
231
|
-
children: Object.keys(d).length === 0 ? /* @__PURE__ */ (0, C.jsx)("p", {
|
|
232
|
-
className: "text-sm text-muted-foreground",
|
|
233
|
-
children: "No initialize metadata yet. Connect to the server first."
|
|
234
|
-
}) : /* @__PURE__ */ (0, C.jsx)(s, {
|
|
235
|
-
data: d,
|
|
236
|
-
filename: `initialize-result-${l(e)}-${Date.now()}.json`
|
|
237
|
-
})
|
|
238
|
-
})
|
|
239
|
-
})
|
|
240
|
-
]
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
//#endregion
|
|
244
|
-
export { k as ServerMetadataTab };
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { n as e, t } from "./createLucideIcon-BONxC1L5.js";
|
|
2
|
-
import { U as n } from "./button-CB4uOoUV.js";
|
|
3
|
-
import { a as r } from "./browser-DG2Z8392.js";
|
|
4
|
-
import { t as i } from "./loader-circle-BKRHJEB7.js";
|
|
5
|
-
var a = t("circle-x", [
|
|
6
|
-
["circle", {
|
|
7
|
-
cx: "12",
|
|
8
|
-
cy: "12",
|
|
9
|
-
r: "10",
|
|
10
|
-
key: "1mglay"
|
|
11
|
-
}],
|
|
12
|
-
["path", {
|
|
13
|
-
d: "m15 9-6 6",
|
|
14
|
-
key: "1uzhvr"
|
|
15
|
-
}],
|
|
16
|
-
["path", {
|
|
17
|
-
d: "m9 9 6 6",
|
|
18
|
-
key: "z0biqf"
|
|
19
|
-
}]
|
|
20
|
-
]), o = t("triangle-alert", [
|
|
21
|
-
["path", {
|
|
22
|
-
d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",
|
|
23
|
-
key: "wmoenq"
|
|
24
|
-
}],
|
|
25
|
-
["path", {
|
|
26
|
-
d: "M12 9v4",
|
|
27
|
-
key: "juzpu7"
|
|
28
|
-
}],
|
|
29
|
-
["path", {
|
|
30
|
-
d: "M12 17h.01",
|
|
31
|
-
key: "p32p05"
|
|
32
|
-
}]
|
|
33
|
-
]), s = e(), c = {
|
|
34
|
-
success: "border-emerald-700/20 bg-emerald-700/10 text-emerald-700 dark:border-emerald-400/30 dark:bg-emerald-400/10 dark:text-emerald-400",
|
|
35
|
-
failed: "border-red-500/20 bg-red-500/10 text-red-500 dark:border-red-400/30 dark:bg-red-400/10 dark:text-red-400",
|
|
36
|
-
warning: "border-amber-700/20 bg-amber-700/10 text-amber-700 dark:border-amber-400/30 dark:bg-amber-400/10 dark:text-amber-400",
|
|
37
|
-
loading: "border-purple-500/20 bg-purple-500/10 text-purple-500 dark:border-purple-400/30 dark:bg-purple-400/10 dark:text-purple-400 animate-spin"
|
|
38
|
-
}, l = "size-4 shrink-0 rounded-full border p-0.5";
|
|
39
|
-
function u({ state: e, className: t }) {
|
|
40
|
-
let u = n(l, c[e], t);
|
|
41
|
-
switch (e) {
|
|
42
|
-
case "success": return /* @__PURE__ */ (0, s.jsx)(r, {
|
|
43
|
-
className: u,
|
|
44
|
-
"aria-hidden": !0
|
|
45
|
-
});
|
|
46
|
-
case "failed": return /* @__PURE__ */ (0, s.jsx)(a, {
|
|
47
|
-
className: u,
|
|
48
|
-
"aria-hidden": !0
|
|
49
|
-
});
|
|
50
|
-
case "warning": return /* @__PURE__ */ (0, s.jsx)(o, {
|
|
51
|
-
className: u,
|
|
52
|
-
"aria-hidden": !0
|
|
53
|
-
});
|
|
54
|
-
case "loading": return /* @__PURE__ */ (0, s.jsx)(i, {
|
|
55
|
-
className: u,
|
|
56
|
-
"aria-hidden": !0
|
|
57
|
-
});
|
|
58
|
-
default: return null;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function d() {
|
|
62
|
-
return "text-emerald-700 dark:text-emerald-400";
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
export { d as n, u as t };
|