@mcp-use/inspector 0.14.1-canary.1 → 0.14.1-canary.2
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/dist/cli.js +2 -2
- package/dist/client/components/AddToClientDropdown.d.ts +51 -0
- package/dist/client/components/AddToClientDropdown.d.ts.map +1 -0
- package/dist/client/components/ui/alert-dialog.d.ts +15 -0
- package/dist/client/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/client/components/ui/animated-theme-toggler.d.ts +6 -0
- package/dist/client/components/ui/animated-theme-toggler.d.ts.map +1 -0
- package/dist/client/components/ui/aurora-background.d.ts +9 -0
- package/dist/client/components/ui/aurora-background.d.ts.map +1 -0
- package/dist/client/components/ui/badge.d.ts +10 -0
- package/dist/client/components/ui/badge.d.ts.map +1 -0
- package/dist/client/components/ui/blur-fade.d.ts +25 -0
- package/dist/client/components/ui/blur-fade.d.ts.map +1 -0
- package/dist/client/components/ui/button.d.ts +11 -0
- package/dist/client/components/ui/button.d.ts.map +1 -0
- package/dist/client/components/ui/card.d.ts +10 -0
- package/dist/client/components/ui/card.d.ts.map +1 -0
- package/dist/client/components/ui/checkbox.d.ts +5 -0
- package/dist/client/components/ui/checkbox.d.ts.map +1 -0
- package/dist/client/components/ui/client-icons.d.ts +30 -0
- package/dist/client/components/ui/client-icons.d.ts.map +1 -0
- package/dist/client/components/ui/command.d.ts +68 -0
- package/dist/client/components/ui/command.d.ts.map +1 -0
- package/dist/client/components/ui/dialog.d.ts +16 -0
- package/dist/client/components/ui/dialog.d.ts.map +1 -0
- package/dist/client/components/ui/discord-icon.d.ts +4 -0
- package/dist/client/components/ui/discord-icon.d.ts.map +1 -0
- package/dist/client/components/ui/dropdown-menu.d.ts +68 -0
- package/dist/client/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/client/components/ui/fancy-server-dropdown.d.ts +14 -0
- package/dist/client/components/ui/fancy-server-dropdown.d.ts.map +1 -0
- package/dist/client/components/ui/github-icon.d.ts +4 -0
- package/dist/client/components/ui/github-icon.d.ts.map +1 -0
- package/dist/client/components/ui/input.d.ts +4 -0
- package/dist/client/components/ui/input.d.ts.map +1 -0
- package/dist/client/components/ui/kbd.d.ts +4 -0
- package/dist/client/components/ui/kbd.d.ts.map +1 -0
- package/dist/client/components/ui/label.d.ts +5 -0
- package/dist/client/components/ui/label.d.ts.map +1 -0
- package/dist/client/components/ui/magicui/shine-border.d.ts +11 -0
- package/dist/client/components/ui/magicui/shine-border.d.ts.map +1 -0
- package/dist/client/components/ui/not-found.d.ts +9 -0
- package/dist/client/components/ui/not-found.d.ts.map +1 -0
- package/dist/client/components/ui/popover.d.ts +7 -0
- package/dist/client/components/ui/popover.d.ts.map +1 -0
- package/dist/client/components/ui/pulsating-button.d.ts +13 -0
- package/dist/client/components/ui/pulsating-button.d.ts.map +1 -0
- package/dist/client/components/ui/random-gradient-background.d.ts +9 -0
- package/dist/client/components/ui/random-gradient-background.d.ts.map +1 -0
- package/dist/client/components/ui/resizable.d.ts +9 -0
- package/dist/client/components/ui/resizable.d.ts.map +1 -0
- package/dist/client/components/ui/select.d.ts +16 -0
- package/dist/client/components/ui/select.d.ts.map +1 -0
- package/dist/client/components/ui/sheet.d.ts +14 -0
- package/dist/client/components/ui/sheet.d.ts.map +1 -0
- package/dist/client/components/ui/shimmer-button.d.ts +18 -0
- package/dist/client/components/ui/shimmer-button.d.ts.map +1 -0
- package/dist/client/components/ui/sonner.d.ts +4 -0
- package/dist/client/components/ui/sonner.d.ts.map +1 -0
- package/dist/client/components/ui/spinner.d.ts +3 -0
- package/dist/client/components/ui/spinner.d.ts.map +1 -0
- package/dist/client/components/ui/status-dot.d.ts +6 -0
- package/dist/client/components/ui/status-dot.d.ts.map +1 -0
- package/dist/client/components/ui/switch.d.ts +10 -0
- package/dist/client/components/ui/switch.d.ts.map +1 -0
- package/dist/client/components/ui/table.d.ts +11 -0
- package/dist/client/components/ui/table.d.ts.map +1 -0
- package/dist/client/components/ui/tabs.d.ts +79 -0
- package/dist/client/components/ui/tabs.d.ts.map +1 -0
- package/dist/client/components/ui/text-shimmer.d.ts +11 -0
- package/dist/client/components/ui/text-shimmer.d.ts.map +1 -0
- package/dist/client/components/ui/textarea.d.ts +4 -0
- package/dist/client/components/ui/textarea.d.ts.map +1 -0
- package/dist/client/components/ui/tooltip.d.ts +8 -0
- package/dist/client/components/ui/tooltip.d.ts.map +1 -0
- package/dist/client/context/InspectorContext.d.ts +47 -0
- package/dist/client/context/InspectorContext.d.ts.map +1 -0
- package/dist/client/context/ThemeContext.d.ts +16 -0
- package/dist/client/context/ThemeContext.d.ts.map +1 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/lib/utils.d.ts +3 -0
- package/dist/client/lib/utils.d.ts.map +1 -0
- package/dist/client/utils/iframeConsoleInterceptor.d.ts +12 -0
- package/dist/client/utils/iframeConsoleInterceptor.d.ts.map +1 -0
- package/dist/client/utils/index.d.ts +5 -0
- package/dist/client/utils/index.d.ts.map +1 -0
- package/dist/client/utils/jsonUtils.d.ts +19 -0
- package/dist/client/utils/jsonUtils.d.ts.map +1 -0
- package/dist/client/utils/logger.d.ts +7 -0
- package/dist/client/utils/logger.d.ts.map +1 -0
- package/dist/client/utils/mcpClientUtils.d.ts +120 -0
- package/dist/client/utils/mcpClientUtils.d.ts.map +1 -0
- package/dist/client/utils/mcpResourceUtils.d.ts +19 -0
- package/dist/client/utils/mcpResourceUtils.d.ts.map +1 -0
- package/dist/client/utils/time.d.ts +2 -0
- package/dist/client/utils/time.d.ts.map +1 -0
- package/dist/server/{chunk-67ROKQZG.js → chunk-GDZFYTRE.js} +2 -2
- package/dist/server/{chunk-4OEEUHLZ.js → chunk-OSMZGWSC.js} +2 -2
- package/dist/server/{chunk-BC23UV5D.js → chunk-R5QBLPYB.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/server.js +2 -2
- package/dist/server/shared-static.js +2 -2
- package/dist/server/shared-utils.js +1 -1
- package/dist/{client/assets/browser-szdNinNK.js → web/assets/browser-BR0pHmtR.js} +3 -3
- package/dist/{client/assets/client-bKYVMi0j.js → web/assets/client-Jq4bMusx.js} +1 -1
- package/dist/{client/assets/display-A5IEINAP-DWNdR0On.js → web/assets/display-A5IEINAP-R7TMiJxT.js} +2 -2
- package/dist/{client/assets/embeddings-DY7LEcGM.js → web/assets/embeddings-BrlEiUp4.js} +1 -1
- package/dist/{client/assets/index-B1GRA_yE.js → web/assets/index-2JyiuKN8.js} +1 -1
- package/dist/{client/assets/index-D05JX2rN.js → web/assets/index-B2Pvs-cn.js} +1 -1
- package/dist/{client/assets/index-NmfTs9aq.js → web/assets/index-CCaYKA6W.js} +1 -1
- package/dist/{client/assets/index-B7K7EglZ.js → web/assets/index-CWNtKmnc.js} +1 -1
- package/dist/{client/assets/index-BKSSQ8ab.js → web/assets/index-Cc2BHMgp.js} +1 -1
- package/dist/{client/assets/index-D89ggwyw.js → web/assets/index-CsT9iI-j.js} +1 -1
- package/dist/{client/assets/index-DpOgK2Yr.js → web/assets/index-DXiFMikm.js} +1 -1
- package/dist/{client/assets/index-B-I4WCT7.js → web/assets/index-DbVJtz27.js} +6 -6
- package/dist/{client/assets/index-CQWqWZPb.js → web/assets/index-Dq1_jxHG.js} +1 -1
- package/dist/{client/assets/llms-D3SVvBDG.js → web/assets/llms-BTi263NL.js} +1 -1
- package/dist/{client → web}/index.html +2 -2
- package/package.json +2 -2
- /package/dist/{client → web}/assets/index-G80eS8Oh.css +0 -0
- /package/dist/{client → web}/assets/index-JiKw9JSs.js +0 -0
- /package/dist/{client → web}/assets/module-D4IOASh4.js +0 -0
- /package/dist/{client → web}/assets/util-QmrWvrtn.js +0 -0
- /package/dist/{client → web}/favicon-black.svg +0 -0
- /package/dist/{client → web}/favicon-white.svg +0 -0
- /package/dist/{client → web}/providers/anthropic.png +0 -0
- /package/dist/{client → web}/providers/google.png +0 -0
- /package/dist/{client → web}/providers/openai.png +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
16
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,MAAM,CAAC,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,IAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACxD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CACzB,2CAiBA;AAED,iBAAS,aAAa,CAAC,EACrB,SAAS,EACT,QAAQ,EACR,QAAmB,EACnB,KAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CA6BtD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAkBnD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,2CAQxD;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,2CAa7D;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,2CAa/D;AAED,OAAO,EACL,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SheetContent({ className, children, side, ...props }: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
7
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, };
|
|
14
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,wBAAwB,CAAC;AAEzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAE5E;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,2CAErD;AAED,iBAAS,UAAU,CAAC,EAClB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAEnD;AAwBD,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,IAAc,EACd,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,OAAO,CAAC,GAAG;IACvD,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAC5C,2CA4BA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,2CAQnD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,2CAQzD;AAED,OAAO,EACL,KAAK,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,UAAU,EACV,YAAY,GACb,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export interface ShimmerButtonProps extends ComponentPropsWithoutRef<"button"> {
|
|
4
|
+
shimmerColor?: string;
|
|
5
|
+
shimmerSize?: string;
|
|
6
|
+
borderRadius?: string;
|
|
7
|
+
shimmerDuration?: string;
|
|
8
|
+
background?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function ShimmerButton({ ref, shimmerColor, shimmerSize, shimmerDuration, borderRadius, background, className, children, ...props }: ShimmerButtonProps & {
|
|
13
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare namespace ShimmerButton {
|
|
16
|
+
var displayName: string;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=shimmer-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shimmer-button.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/shimmer-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,QAAQ,CAAC;IAC5E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,wBAAgB,aAAa,CAAC,EAC5B,GAAG,EACH,YAAY,EACZ,WAAsB,EACtB,eAAsB,EACtB,YAAsB,EACtB,UAAU,EACV,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAA;CAAE,2CAyE1E;yBAnFe,aAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sonner.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/sonner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAI3C,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAiB1C;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/spinner.tsx"],"names":[],"mappings":"AAIA,iBAAS,OAAO,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CASpE;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-dot.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/status-dot.tsx"],"names":[],"mappings":"AAMA,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,SAAS,CAAC,EAAE,MAAM,EAAE,EAAE,cAAc,2CA2CnD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Switch({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root> & {
|
|
4
|
+
ref?: React.RefObject<React.ElementRef<typeof SwitchPrimitives.Root> | null>;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare namespace Switch {
|
|
7
|
+
var displayName: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export { Switch };
|
|
10
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,MAAM,CAAC,EACd,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG;IAChE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;CAC9E,2CAiBA;kBAvBQ,MAAM;;;AA0Bf,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare const Table: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
3
|
+
declare const TableHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
4
|
+
declare const TableBody: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
5
|
+
declare const TableFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
6
|
+
declare const TableRow: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
7
|
+
declare const TableHead: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React.RefAttributes<HTMLTableHeaderCellElement>>;
|
|
8
|
+
declare const TableCell: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React.RefAttributes<HTMLTableDataCellElement>>;
|
|
9
|
+
declare const TableCaption: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
11
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,KAAK,8KAWT,CAAC;AAGH,QAAA,MAAM,WAAW,8LAKf,CAAC;AAGH,QAAA,MAAM,SAAS,8LASb,CAAC;AAGH,QAAA,MAAM,WAAW,8LAYf,CAAC;AAGH,QAAA,MAAM,QAAQ,kLAYZ,CAAC;AAGH,QAAA,MAAM,SAAS,yMAYb,CAAC;AAGH,QAAA,MAAM,SAAS,mMASb,CAAC;AAGH,QAAA,MAAM,YAAY,0JAShB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface TabsContextType {
|
|
4
|
+
activeValue: string;
|
|
5
|
+
handleValueChange: (value: string) => void;
|
|
6
|
+
collapsed: boolean;
|
|
7
|
+
handleCollapsedChange: (collapsed: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
declare function useTabs(): TabsContextType;
|
|
10
|
+
interface TabsListContextType {
|
|
11
|
+
variant: "default" | "underline";
|
|
12
|
+
collapsed: boolean;
|
|
13
|
+
handleCollapsedChange: (collapsed: boolean) => void;
|
|
14
|
+
}
|
|
15
|
+
declare function useTabsList(): TabsListContextType | undefined;
|
|
16
|
+
interface TabsProps {
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
defaultValue?: string;
|
|
19
|
+
value?: string;
|
|
20
|
+
onValueChange?: (value: string) => void;
|
|
21
|
+
className?: string;
|
|
22
|
+
collapsed?: boolean;
|
|
23
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
24
|
+
}
|
|
25
|
+
declare function Tabs({ ref, children, defaultValue, value, onValueChange, className, collapsed: collapsedProp, onCollapsedChange, ...props }: TabsProps & {
|
|
26
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
27
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare namespace Tabs {
|
|
29
|
+
var displayName: string;
|
|
30
|
+
}
|
|
31
|
+
interface TabsListProps {
|
|
32
|
+
children: React.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
variant?: "default" | "underline";
|
|
35
|
+
collapsible?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare function TabsList({ ref: _ref, children, className, variant, collapsible, ...props }: TabsListProps & {
|
|
38
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
39
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
declare namespace TabsList {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
interface TabsTriggerProps {
|
|
44
|
+
children: React.ReactNode;
|
|
45
|
+
value: string;
|
|
46
|
+
className?: string;
|
|
47
|
+
disabled?: boolean;
|
|
48
|
+
icon?: LucideIcon;
|
|
49
|
+
title?: string;
|
|
50
|
+
showDot?: boolean;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* TabsTrigger component with optional Lucide icon support.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```tsx
|
|
57
|
+
* import { Settings, User } from 'lucide-react'
|
|
58
|
+
*
|
|
59
|
+
* <TabsTrigger value="settings" icon={Settings}>
|
|
60
|
+
* Settings
|
|
61
|
+
* </TabsTrigger>
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsTriggerProps & {
|
|
65
|
+
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
66
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
67
|
+
interface TabsContentProps {
|
|
68
|
+
children: React.ReactNode;
|
|
69
|
+
value: string;
|
|
70
|
+
className?: string;
|
|
71
|
+
}
|
|
72
|
+
declare function TabsContent({ ref, children, value, className, ...props }: TabsContentProps & {
|
|
73
|
+
ref?: React.RefObject<HTMLDivElement | null>;
|
|
74
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
75
|
+
declare namespace TabsContent {
|
|
76
|
+
var displayName: string;
|
|
77
|
+
}
|
|
78
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger, useTabs, useTabsList };
|
|
79
|
+
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/tabs.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,eAAe;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAID,iBAAS,OAAO,oBAMf;AAED,UAAU,mBAAmB;IAC3B,OAAO,EAAE,SAAS,GAAG,WAAW,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,qBAAqB,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAMD,iBAAS,WAAW,oCAGnB;AAED,UAAU,SAAS;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CAClD;AAED,iBAAS,IAAI,CAAC,EACZ,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,KAAK,EACL,aAAa,EACb,SAAS,EACT,SAAS,EAAE,aAAa,EACxB,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,SAAS,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAAE,2CA8C9D;kBAxDQ,IAAI;;;AA2Db,UAAU,aAAa;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;IAClC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,QAAQ,CAAC,EAChB,GAAG,EAAE,IAAI,EACT,QAAQ,EACR,SAAS,EACT,OAAmB,EACnB,WAAmB,EACnB,GAAG,KAAK,EACT,EAAE,aAAa,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAAE,2CA6IlE;kBApJQ,QAAQ;;;AAuJjB,UAAU,gBAAgB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAuBD;;;;;;;;;;;GAWG;AACH,QAAA,MAAM,WAAW;UAEY,KAAK,CAAC,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC;mDAuErE,CAAC;AAGF,UAAU,gBAAgB;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,WAAW,CAAC,EACnB,GAAG,EACH,QAAQ,EACR,KAAK,EACL,SAAS,EACT,GAAG,KAAK,EACT,EAAE,gBAAgB,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;CAAE,kDAmBrE;kBAzBQ,WAAW;;;AA4BpB,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface TextShimmerProps {
|
|
3
|
+
children: string;
|
|
4
|
+
as?: React.ElementType;
|
|
5
|
+
className?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
spread?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function TextShimmer({ children, as: Component, className, duration, spread, }: TextShimmerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=text-shimmer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-shimmer.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/text-shimmer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,UAAU,gBAAgB;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,EAAE,EAAE,SAAe,EACnB,SAAS,EACT,QAAY,EACZ,MAAU,GACX,EAAE,gBAAgB,2CAmClB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAW1E;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
8
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/tooltip.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,eAAe,CAAC,EACvB,aAAiB,EACjB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,QAAQ,CAAC,2CAQxD;AAED,iBAAS,OAAO,CAAC,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAMpD;AAED,iBAAS,cAAc,CAAC,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAEvD;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAiBvD;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export type TabType = "tools" | "prompts" | "resources" | "chat" | "sampling" | "elicitation" | "notifications";
|
|
3
|
+
interface EmbeddedConfig {
|
|
4
|
+
backgroundColor?: string;
|
|
5
|
+
padding?: string;
|
|
6
|
+
}
|
|
7
|
+
interface InspectorState {
|
|
8
|
+
selectedServerId: string | null;
|
|
9
|
+
activeTab: TabType;
|
|
10
|
+
selectedToolName: string | null;
|
|
11
|
+
selectedPromptName: string | null;
|
|
12
|
+
selectedResourceUri: string | null;
|
|
13
|
+
selectedSamplingRequestId: string | null;
|
|
14
|
+
selectedElicitationRequestId: string | null;
|
|
15
|
+
tunnelUrl: string | null;
|
|
16
|
+
isEmbedded: boolean;
|
|
17
|
+
embeddedConfig: EmbeddedConfig;
|
|
18
|
+
}
|
|
19
|
+
interface InspectorContextType extends InspectorState {
|
|
20
|
+
setSelectedServerId: (serverId: string | null) => void;
|
|
21
|
+
setActiveTab: (tab: TabType) => void;
|
|
22
|
+
setSelectedToolName: (toolName: string | null) => void;
|
|
23
|
+
setSelectedPromptName: (promptName: string | null) => void;
|
|
24
|
+
setSelectedResourceUri: (resourceUri: string | null) => void;
|
|
25
|
+
setSelectedSamplingRequestId: (requestId: string | null) => void;
|
|
26
|
+
setSelectedElicitationRequestId: (requestId: string | null) => void;
|
|
27
|
+
setTunnelUrl: (tunnelUrl: string | null) => void;
|
|
28
|
+
setEmbeddedMode: (isEmbedded: boolean, config?: EmbeddedConfig) => void;
|
|
29
|
+
navigateToItem: (serverId: string, tab: TabType, itemIdentifier?: string) => void;
|
|
30
|
+
clearSelection: () => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Provides Inspector context and state to descendant components.
|
|
34
|
+
*
|
|
35
|
+
* Initializes and supplies the inspector UI state (selected server, active tab,
|
|
36
|
+
* per-tab selections, tunnel URL, and embedded mode/config) along with updater
|
|
37
|
+
* callbacks and navigation/clearing helpers through React context.
|
|
38
|
+
*
|
|
39
|
+
* @param children - Elements that will receive the Inspector context
|
|
40
|
+
* @returns A context provider element that supplies inspector state and mutator functions to its children
|
|
41
|
+
*/
|
|
42
|
+
export declare function InspectorProvider({ children }: {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function useInspector(): InspectorContextType;
|
|
46
|
+
export {};
|
|
47
|
+
//# sourceMappingURL=InspectorContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InspectorContext.d.ts","sourceRoot":"","sources":["../../../src/client/context/InspectorContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,MAAM,OAAO,GACf,OAAO,GACP,SAAS,GACT,WAAW,GACX,MAAM,GACN,UAAU,GACV,aAAa,GACb,eAAe,CAAC;AAEpB,UAAU,cAAc;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,cAAc;IACtB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,yBAAyB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,cAAc,CAAC;CAChC;AAED,UAAU,oBAAqB,SAAQ,cAAc;IACnD,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,mBAAmB,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACvD,qBAAqB,EAAE,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3D,sBAAsB,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7D,4BAA4B,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjE,+BAA+B,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACpE,YAAY,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACjD,eAAe,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IACxE,cAAc,EAAE,CACd,QAAQ,EAAE,MAAM,EAChB,GAAG,EAAE,OAAO,EACZ,cAAc,CAAC,EAAE,MAAM,KACpB,IAAI,CAAC;IACV,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAMD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAmHtE;AAED,wBAAgB,YAAY,yBAM3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type Theme = "light" | "dark" | "system";
|
|
3
|
+
interface ThemeContextType {
|
|
4
|
+
theme: Theme;
|
|
5
|
+
setTheme: (theme: Theme) => void;
|
|
6
|
+
resolvedTheme: "light" | "dark";
|
|
7
|
+
}
|
|
8
|
+
export declare function useTheme(): ThemeContextType;
|
|
9
|
+
interface ThemeProviderProps {
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
defaultTheme?: Theme;
|
|
12
|
+
storageKey?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function ThemeProvider({ children, defaultTheme, storageKey, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=ThemeContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeContext.d.ts","sourceRoot":"","sources":["../../../src/client/context/ThemeContext.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEzC,UAAU,gBAAgB;IACxB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,aAAa,EAAE,OAAO,GAAG,MAAM,CAAC;CACjC;AAID,wBAAgB,QAAQ,qBAMvB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAAuB,EACvB,UAAoB,GACrB,EAAE,kBAAkB,2CAmEpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/client/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAIvC,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Console log interceptor script to be injected into iframes
|
|
3
|
+
* Captures console.log, console.error, console.warn, console.info, console.debug
|
|
4
|
+
* and forwards them to the parent window via postMessage
|
|
5
|
+
*/
|
|
6
|
+
export declare const IFRAME_CONSOLE_INTERCEPTOR_SCRIPT = "\n(function() {\n 'use strict';\n \n // Only intercept if we're in an iframe\n if (window.self === window.top) {\n return;\n }\n \n // Store original console methods\n const originalConsole = {\n log: console.log.bind(console),\n error: console.error.bind(console),\n warn: console.warn.bind(console),\n info: console.info.bind(console),\n debug: console.debug.bind(console),\n trace: console.trace.bind(console),\n };\n \n // Helper to serialize arguments for postMessage\n function serializeArgs(args) {\n try {\n return Array.from(args).map(arg => {\n if (arg instanceof Error) {\n return {\n type: 'Error',\n message: arg.message,\n stack: arg.stack,\n name: arg.name,\n };\n }\n if (typeof arg === 'object' && arg !== null) {\n try {\n // Try to serialize, but handle circular references\n return JSON.parse(JSON.stringify(arg));\n } catch (e) {\n return String(arg);\n }\n }\n return arg;\n });\n } catch (e) {\n return [String(args)];\n }\n }\n \n // Helper to send log to parent\n function sendToParent(level, args) {\n try {\n window.parent.postMessage({\n type: 'iframe-console-log',\n level: level,\n args: serializeArgs(args),\n timestamp: new Date().toISOString(),\n url: window.location.href,\n }, '*');\n } catch (e) {\n // Fallback to original console if postMessage fails\n originalConsole.error('[Console Interceptor] Failed to send log:', e);\n }\n }\n \n // Override console methods\n console.log = function(...args) {\n originalConsole.log.apply(console, args);\n sendToParent('log', args);\n };\n \n console.error = function(...args) {\n originalConsole.error.apply(console, args);\n sendToParent('error', args);\n };\n \n console.warn = function(...args) {\n originalConsole.warn.apply(console, args);\n sendToParent('warn', args);\n };\n \n console.info = function(...args) {\n originalConsole.info.apply(console, args);\n sendToParent('info', args);\n };\n \n console.debug = function(...args) {\n originalConsole.debug.apply(console, args);\n sendToParent('debug', args);\n };\n \n console.trace = function(...args) {\n originalConsole.trace.apply(console, args);\n sendToParent('trace', args);\n };\n \n // Also capture unhandled errors\n window.addEventListener('error', function(event) {\n sendToParent('error', [{\n message: event.message,\n filename: event.filename,\n lineno: event.lineno,\n colno: event.colno,\n error: event.error ? {\n message: event.error.message,\n stack: event.error.stack,\n name: event.error.name,\n } : null,\n }]);\n });\n \n // Capture unhandled promise rejections\n window.addEventListener('unhandledrejection', function(event) {\n sendToParent('error', [{\n message: 'Unhandled Promise Rejection',\n reason: event.reason ? String(event.reason) : 'Unknown',\n error: event.reason instanceof Error ? {\n message: event.reason.message,\n stack: event.reason.stack,\n name: event.reason.name,\n } : null,\n }]);\n });\n})();\n";
|
|
7
|
+
/**
|
|
8
|
+
* Injects the console interceptor script into an iframe
|
|
9
|
+
* Works for same-origin iframes. For cross-origin iframes, logs cannot be intercepted.
|
|
10
|
+
*/
|
|
11
|
+
export declare function injectConsoleInterceptor(iframe: HTMLIFrameElement): void;
|
|
12
|
+
//# sourceMappingURL=iframeConsoleInterceptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iframeConsoleInterceptor.d.ts","sourceRoot":"","sources":["../../../src/client/utils/iframeConsoleInterceptor.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,2wGAyH7C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAyExE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/utils/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for handling large JSON objects in the inspector
|
|
3
|
+
*/
|
|
4
|
+
export interface LargeJSONInfo {
|
|
5
|
+
isLarge: boolean;
|
|
6
|
+
size: number;
|
|
7
|
+
sizeFormatted: string;
|
|
8
|
+
preview: string;
|
|
9
|
+
full: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Check if a JSON object is too large and get preview information
|
|
13
|
+
*/
|
|
14
|
+
export declare function analyzeJSON(data: any): LargeJSONInfo;
|
|
15
|
+
/**
|
|
16
|
+
* Download JSON data as a file
|
|
17
|
+
*/
|
|
18
|
+
export declare function downloadJSON(data: any, filename?: string): void;
|
|
19
|
+
//# sourceMappingURL=jsonUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonUtils.d.ts","sourceRoot":"","sources":["../../../src/client/utils/jsonUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAQH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAmCD;;GAEG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAyBpD;AAaD;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAoB/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/client/utils/logger.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;qBACA,GAAG,EAAE;oBAQN,GAAG,EAAE;oBAGL,GAAG,EAAE;qBAGJ,GAAG,EAAE;CAGvB,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions for generating MCP client configurations and commands
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Builds a Cursor deep link that installs an MCP configured with the provided URL and optional headers.
|
|
6
|
+
*
|
|
7
|
+
* @param name - Display name for the server; will be sanitized for use in the link
|
|
8
|
+
* @param headers - Optional mapping of header names to values; headers are represented in the generated config as environment-variable placeholders (e.g., `{{HEADER_ENV_VAR}}`)
|
|
9
|
+
* @returns A Cursor deep link URL containing a base64-encoded JSON config with the `url` and optional header placeholders, and a sanitized `name` query parameter
|
|
10
|
+
*/
|
|
11
|
+
export declare function generateCursorDeepLink(url: string, name: string, headers?: Record<string, string>): string;
|
|
12
|
+
/**
|
|
13
|
+
* Build a VS Code deep link that installs an MCP server configuration.
|
|
14
|
+
*
|
|
15
|
+
* If `headers` are provided, each header name is mapped to a placeholder value of the form `your-<ENVVAR>-value`.
|
|
16
|
+
*
|
|
17
|
+
* @param url - The server URL to include in the configuration
|
|
18
|
+
* @param name - The display name for the server; it will be sanitized for use in the config
|
|
19
|
+
* @param headers - Optional map of HTTP header names to values; header names are converted to environment-variable-style placeholders in the generated config
|
|
20
|
+
* @returns A VS Code deep link (`vscode:mcp/install?...`) containing the URL-encoded JSON configuration
|
|
21
|
+
*/
|
|
22
|
+
export declare function generateVSCodeDeepLink(url: string, name: string, headers?: Record<string, string>): string;
|
|
23
|
+
/**
|
|
24
|
+
* Builds a .mcpb configuration object for an MCP server.
|
|
25
|
+
*
|
|
26
|
+
* @param url - The server URL to include in the configuration
|
|
27
|
+
* @param name - The server name; it will be sanitized for use in the config
|
|
28
|
+
* @param headers - Optional mapping of header names to values; when provided each header value is replaced with a placeholder of the form `your-ENVVAR-value` where `ENVVAR` is derived from the header name
|
|
29
|
+
* @returns An object containing `url`, a sanitized `name`, and, if provided, a `headers` mapping of header names to placeholder values
|
|
30
|
+
*/
|
|
31
|
+
export declare function generateMcpbConfig(url: string, name: string, headers?: Record<string, string>): object;
|
|
32
|
+
/**
|
|
33
|
+
* Triggers a browser download of a generated .mcpb configuration file.
|
|
34
|
+
*
|
|
35
|
+
* @param url - The MCP server URL to include in the generated configuration
|
|
36
|
+
* @param name - The server name used for the configuration and as the downloaded filename (sanitized)
|
|
37
|
+
* @param headers - Optional map of HTTP headers to include in the configuration
|
|
38
|
+
* @throws Rethrows any error encountered while generating the configuration or initiating the download
|
|
39
|
+
*/
|
|
40
|
+
export declare function downloadMcpbFile(url: string, name: string, headers?: Record<string, string>): void;
|
|
41
|
+
/**
|
|
42
|
+
* Builds a Claude Code CLI command to add an MCP using HTTP transport and collects environment variable metadata for any provided headers.
|
|
43
|
+
*
|
|
44
|
+
* @param url - The server URL to include in the CLI command
|
|
45
|
+
* @param name - The display name for the server; it will be sanitized for use in the command
|
|
46
|
+
* @param headers - Optional map of header names to header values; header names will be converted to environment variable placeholders in the command
|
|
47
|
+
* @returns An object containing:
|
|
48
|
+
* - `command`: the complete `claude mcp add` CLI command string with header values referenced as environment variable placeholders, and
|
|
49
|
+
* - `envVars`: an array of `{ name, header }` entries where `name` is the generated environment variable and `header` is the original header name
|
|
50
|
+
*/
|
|
51
|
+
export declare function generateClaudeCodeCommand(url: string, name: string, headers?: Record<string, string>): {
|
|
52
|
+
command: string;
|
|
53
|
+
envVars: Array<{
|
|
54
|
+
name: string;
|
|
55
|
+
header: string;
|
|
56
|
+
}>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Builds a Gemini CLI command to add an MCP using HTTP transport and returns any environment-variable mappings needed for headers.
|
|
60
|
+
*
|
|
61
|
+
* If `headers` are provided, the command includes header entries that reference environment variable placeholders, and `envVars` lists the placeholder names with their corresponding header names.
|
|
62
|
+
*
|
|
63
|
+
* @param url - The MCP server URL
|
|
64
|
+
* @param name - A human-readable server name used to derive a sanitized identifier for the command
|
|
65
|
+
* @param headers - Optional mapping of header names to values; header names are converted to environment-variable placeholders in the returned command
|
|
66
|
+
* @returns An object with `command`, the assembled CLI command string, and `envVars`, an array of `{ name, header }` pairs linking environment variable names to header names
|
|
67
|
+
*/
|
|
68
|
+
export declare function generateGeminiCLICommand(url: string, name: string, headers?: Record<string, string>): {
|
|
69
|
+
command: string;
|
|
70
|
+
envVars: Array<{
|
|
71
|
+
name: string;
|
|
72
|
+
header: string;
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Build a Codex-style INI configuration string for an MCP server and collect environment-variable metadata for any HTTP headers.
|
|
77
|
+
*
|
|
78
|
+
* @param url - The server URL to include in the configuration
|
|
79
|
+
* @param name - The server display name; used to produce a sanitized section key
|
|
80
|
+
* @param headers - Optional mapping of HTTP header names; header keys will be added to `http_headers` in the config with placeholder values and returned as environment-variable metadata
|
|
81
|
+
* @returns An object with `config`, the generated INI-style configuration string, and `envVars`, an array of `{ name, header }` pairs where `name` is the suggested environment variable and `header` is the original header name
|
|
82
|
+
*/
|
|
83
|
+
export declare function generateCodexConfig(url: string, name: string, headers?: Record<string, string>): {
|
|
84
|
+
config: string;
|
|
85
|
+
envVars: Array<{
|
|
86
|
+
name: string;
|
|
87
|
+
header: string;
|
|
88
|
+
}>;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Generate shell instructions to export required environment variables.
|
|
92
|
+
*
|
|
93
|
+
* @param envVars - Array of environment variable metadata; each item should include `name` (the environment variable name) and `header` (the corresponding HTTP header)
|
|
94
|
+
* @returns A shell snippet that exports each environment variable (one `export NAME="your-NAME-value"` line per variable), or an empty string if `envVars` is empty
|
|
95
|
+
*/
|
|
96
|
+
export declare function getEnvVarInstructions(envVars: Array<{
|
|
97
|
+
name: string;
|
|
98
|
+
header: string;
|
|
99
|
+
}>): string;
|
|
100
|
+
/**
|
|
101
|
+
* Produce a TypeScript code snippet that initializes an MCPClient configured for the given server.
|
|
102
|
+
*
|
|
103
|
+
* @param url - The server URL to include in the generated client configuration
|
|
104
|
+
* @param name - The human-readable server name used when deriving a default server id
|
|
105
|
+
* @param serverId - Optional explicit server id to use instead of a sanitized `name`
|
|
106
|
+
* @param headers - Optional HTTP headers to include in the server configuration
|
|
107
|
+
* @returns A TypeScript code snippet (as a string) that registers the server with MCPClient, creates sessions, and demonstrates common session operations
|
|
108
|
+
*/
|
|
109
|
+
export declare function generateTypeScriptSDKCode(url: string, name: string, serverId?: string, headers?: Record<string, string>): string;
|
|
110
|
+
/**
|
|
111
|
+
* Produce a Python code snippet that initializes an MCPClient with the provided server configuration and demonstrates basic session usage.
|
|
112
|
+
*
|
|
113
|
+
* @param url - The MCP server URL to include in the generated configuration.
|
|
114
|
+
* @param name - The server name; used to derive a sanitized identifier when `serverId` is not provided.
|
|
115
|
+
* @param serverId - Optional explicit server identifier to use in the config; if omitted, a sanitized form of `name` is used.
|
|
116
|
+
* @param headers - Optional HTTP headers to include in the server configuration (mapped directly into the generated config).
|
|
117
|
+
* @returns A Python source string that defines an `MCPClient` configured with the specified server and includes example calls for creating sessions, listing tools/resources, and placeholders for tool/resource usage.
|
|
118
|
+
*/
|
|
119
|
+
export declare function generatePythonSDKCode(url: string, name: string, serverId?: string, headers?: Record<string, string>): string;
|
|
120
|
+
//# sourceMappingURL=mcpClientUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpClientUtils.d.ts","sourceRoot":"","sources":["../../../src/client/utils/mcpClientUtils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAmCH;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,CAeR;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,CAmBR;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,CAgBR;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,IAAI,CAoBN;AAED;;;;;;;;;GASG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAgBvE;AAED;;;;;;;;;GASG;AACH,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CAgBvE;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,CA2BtE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,GAC/C,MAAM,CASR;AAED;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CACvC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,CAyCR;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC/B,MAAM,CAyCR"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface MCPResource {
|
|
2
|
+
uri?: string;
|
|
3
|
+
mimeType: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
blob?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Extracts MCP-UI resources from a tool invocation result
|
|
9
|
+
* @param result - The tool invocation result (can be a JSON string or object)
|
|
10
|
+
* @returns An array of MCP resources found in the result
|
|
11
|
+
*/
|
|
12
|
+
export declare function extractMCPResources(result: string | object | undefined): MCPResource[];
|
|
13
|
+
/**
|
|
14
|
+
* Checks if a resource is an MCP-UI resource
|
|
15
|
+
* @param resource - The resource object to check
|
|
16
|
+
* @returns True if the resource has a UI URI
|
|
17
|
+
*/
|
|
18
|
+
export declare function isMCPUIResource(resource: MCPResource): boolean;
|
|
19
|
+
//# sourceMappingURL=mcpResourceUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpResourceUtils.d.ts","sourceRoot":"","sources":["../../../src/client/utils/mcpResourceUtils.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAOD;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAClC,WAAW,EAAE,CAwBf;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,WAAW,GAAG,OAAO,CAE9D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time.d.ts","sourceRoot":"","sources":["../../../src/client/utils/time.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAmB5D"}
|
|
@@ -242,9 +242,9 @@ function getClientDistPath() {
|
|
|
242
242
|
const __filename = fileURLToPath(import.meta.url);
|
|
243
243
|
const __dirname = dirname(__filename);
|
|
244
244
|
if (__dirname.endsWith("dist") || __dirname.endsWith("dist/")) {
|
|
245
|
-
return join(__dirname, "
|
|
245
|
+
return join(__dirname, "web");
|
|
246
246
|
}
|
|
247
|
-
return join(__dirname, "../
|
|
247
|
+
return join(__dirname, "../web");
|
|
248
248
|
}
|
|
249
249
|
var widgetDataStore = /* @__PURE__ */ new Map();
|
|
250
250
|
setInterval(
|