@skybridge/devtools 0.0.0-dev.9db01ef → 0.0.0-dev.9ea8ed2
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/assets/index-BS8tKQug.css +1 -0
- package/dist/assets/index-CMMai3jH.js +175 -0
- package/dist/devtoolsStaticServer.d.ts +2 -5
- package/dist/devtoolsStaticServer.js +4 -18
- package/dist/devtoolsStaticServer.js.map +1 -1
- package/dist/index.html +2 -2
- package/package.json +15 -14
- package/dist/assets/index-B4MzTZVO.js +0 -183
- package/dist/assets/index-k7E0UhvF.css +0 -1
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type Router } from "express";
|
|
2
2
|
/**
|
|
3
3
|
* Serve the built devtools React app
|
|
4
4
|
* This router serves static files from the devtools's dist directory.
|
|
5
5
|
*
|
|
6
|
-
* **Note:** This requires `@skybridge/devtools` to be installed as a peer dependency.
|
|
7
|
-
* Install it with: `pnpm add -D @skybridge/devtools` (or `npm install -D @skybridge/devtools`)
|
|
8
|
-
*
|
|
9
6
|
* It should be installed at the application root, like so:
|
|
10
7
|
*
|
|
11
8
|
* const app = express();
|
|
@@ -16,4 +13,4 @@ import { type RequestHandler } from "express";
|
|
|
16
13
|
* ^^^^^^^^ Make sure to install the devtoolsStaticServer before the widgetsDevServer
|
|
17
14
|
* }
|
|
18
15
|
*/
|
|
19
|
-
export declare const devtoolsStaticServer: () => Promise<
|
|
16
|
+
export declare const devtoolsStaticServer: () => Promise<Router>;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import path from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
3
|
import cors from "cors";
|
|
4
4
|
import express, {} from "express";
|
|
5
|
-
const require = createRequire(import.meta.url);
|
|
6
5
|
/**
|
|
7
6
|
* Serve the built devtools React app
|
|
8
7
|
* This router serves static files from the devtools's dist directory.
|
|
9
8
|
*
|
|
10
|
-
* **Note:** This requires `@skybridge/devtools` to be installed as a peer dependency.
|
|
11
|
-
* Install it with: `pnpm add -D @skybridge/devtools` (or `npm install -D @skybridge/devtools`)
|
|
12
|
-
*
|
|
13
9
|
* It should be installed at the application root, like so:
|
|
14
10
|
*
|
|
15
11
|
* const app = express();
|
|
@@ -22,21 +18,11 @@ const require = createRequire(import.meta.url);
|
|
|
22
18
|
*/
|
|
23
19
|
export const devtoolsStaticServer = async () => {
|
|
24
20
|
const router = express.Router();
|
|
25
|
-
|
|
26
|
-
try {
|
|
27
|
-
const devtoolsPackagePath = require.resolve("@skybridge/devtools/package.json");
|
|
28
|
-
devtoolsPath = path.join(path.dirname(devtoolsPackagePath), "dist");
|
|
29
|
-
}
|
|
30
|
-
catch (error) {
|
|
31
|
-
throw new Error("@skybridge/devtools is not installed. Please install it as a dev dependency:\n" +
|
|
32
|
-
" pnpm add -D @skybridge/devtools\n" +
|
|
33
|
-
" or\n" +
|
|
34
|
-
" npm install -D @skybridge/devtools", { cause: error });
|
|
35
|
-
}
|
|
21
|
+
const distDir = path.dirname(fileURLToPath(import.meta.url));
|
|
36
22
|
router.use(cors());
|
|
37
|
-
router.use(express.static(
|
|
23
|
+
router.use(express.static(distDir));
|
|
38
24
|
router.get("/", (_req, res, next) => {
|
|
39
|
-
const indexHtmlPath = path.join(
|
|
25
|
+
const indexHtmlPath = path.join(distDir, "index.html");
|
|
40
26
|
res.sendFile(indexHtmlPath, (error) => {
|
|
41
27
|
if (error) {
|
|
42
28
|
next(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devtoolsStaticServer.js","sourceRoot":"","sources":["../src/devtoolsStaticServer.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"devtoolsStaticServer.js","sourceRoot":"","sources":["../src/devtoolsStaticServer.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,OAAO,EAAE,EAAe,MAAM,SAAS,CAAC;AAE/C;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,KAAK,IAAqB,EAAE;IAC9D,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAEhC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAE7D,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACnB,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,EAAE;QAClC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QACvD,GAAG,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,EAAE;YACpC,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC,KAAK,CAAC,CAAC;YACd,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
package/dist/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Skybridge MCP devtools</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-CMMai3jH.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BS8tKQug.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skybridge/devtools",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.9ea8ed2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@base-ui/react": "^1.0.0",
|
|
20
20
|
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
21
|
-
"@microlink/react-json-view": "^1.27.
|
|
22
|
-
"@modelcontextprotocol/sdk": "^1.25.
|
|
21
|
+
"@microlink/react-json-view": "^1.27.1",
|
|
22
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
23
23
|
"@rjsf/core": "^6.1.2",
|
|
24
24
|
"@rjsf/shadcn": "^6.1.2",
|
|
25
25
|
"@rjsf/utils": "^6.1.2",
|
|
@@ -28,44 +28,45 @@
|
|
|
28
28
|
"ahooks": "^3.9.6",
|
|
29
29
|
"class-variance-authority": "^0.7.1",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
31
|
+
"cmdk": "^1.1.1",
|
|
31
32
|
"cors": "^2.8.5",
|
|
32
33
|
"express": "^5.2.1",
|
|
33
|
-
"framer-motion": "^12.
|
|
34
|
+
"framer-motion": "^12.26.2",
|
|
34
35
|
"lodash-es": "^4.17.22",
|
|
35
36
|
"lucide-react": "^0.562.0",
|
|
36
|
-
"motion": "^12.
|
|
37
|
+
"motion": "^12.26.2",
|
|
37
38
|
"nuqs": "^2.8.6",
|
|
38
39
|
"react": "^19.2.3",
|
|
39
40
|
"react-dom": "^19.2.3",
|
|
40
|
-
"react-resizable-panels": "^4.
|
|
41
|
+
"react-resizable-panels": "^4.4.0",
|
|
41
42
|
"shadcn": "^3.6.3",
|
|
42
|
-
"shiki": "^3.
|
|
43
|
+
"shiki": "^3.21.0",
|
|
43
44
|
"tailwind-merge": "^3.4.0",
|
|
44
45
|
"tailwindcss": "^4.1.18",
|
|
45
46
|
"tailwindcss-animate": "^1.0.7",
|
|
46
47
|
"tw-animate-css": "^1.4.0",
|
|
47
|
-
"zustand": "^5.0.
|
|
48
|
-
"skybridge": "0.0.0-dev.
|
|
48
|
+
"zustand": "^5.0.10",
|
|
49
|
+
"skybridge": "0.0.0-dev.9ea8ed2"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@eslint/js": "^9.39.2",
|
|
52
53
|
"@tailwindcss/vite": "^4.1.18",
|
|
53
54
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
55
|
+
"@types/cors": "^2.8.19",
|
|
56
|
+
"@types/express": "^5.0.6",
|
|
54
57
|
"@types/lodash-es": "^4.17.12",
|
|
55
|
-
"@types/react": "^19.2.
|
|
58
|
+
"@types/react": "^19.2.8",
|
|
56
59
|
"@types/react-dom": "^19.2.3",
|
|
57
60
|
"@vitejs/plugin-react": "^5.1.2",
|
|
58
61
|
"autoprefixer": "^10.4.23",
|
|
59
|
-
"@types/cors": "^2.8.19",
|
|
60
|
-
"@types/express": "^5.0.6",
|
|
61
62
|
"eslint": "^9.39.2",
|
|
62
63
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
63
64
|
"eslint-plugin-react-refresh": "^0.4.26",
|
|
64
65
|
"globals": "^17.0.0",
|
|
65
66
|
"postcss": "^8.5.6",
|
|
66
67
|
"typescript": "~5.9.3",
|
|
67
|
-
"typescript-eslint": "^8.
|
|
68
|
-
"vite": "^7.3.
|
|
68
|
+
"typescript-eslint": "^8.53.0",
|
|
69
|
+
"vite": "^7.3.1"
|
|
69
70
|
},
|
|
70
71
|
"scripts": {
|
|
71
72
|
"dev": "vite",
|