@skybridge/devtools 0.0.0-dev.712a600 → 0.0.0-dev.71bb0ce
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-DxuhRAgd.js +175 -0
- package/dist/devtoolsStaticServer.d.ts +2 -2
- package/dist/devtoolsStaticServer.js +4 -9
- package/dist/devtoolsStaticServer.js.map +1 -1
- package/dist/index.html +2 -2
- package/package.json +19 -18
- package/dist/assets/index-hGsChJoA.js +0 -175
- package/dist/assets/index-k7E0UhvF.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
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.
|
|
@@ -13,4 +13,4 @@ import { type RequestHandler } from "express";
|
|
|
13
13
|
* ^^^^^^^^ Make sure to install the devtoolsStaticServer before the widgetsDevServer
|
|
14
14
|
* }
|
|
15
15
|
*/
|
|
16
|
-
export declare const devtoolsStaticServer: () => Promise<
|
|
16
|
+
export declare const devtoolsStaticServer: () => Promise<Router>;
|
|
@@ -1,8 +1,7 @@
|
|
|
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.
|
|
@@ -19,15 +18,11 @@ const require = createRequire(import.meta.url);
|
|
|
19
18
|
*/
|
|
20
19
|
export const devtoolsStaticServer = async () => {
|
|
21
20
|
const router = express.Router();
|
|
22
|
-
|
|
23
|
-
if (!require.main) {
|
|
24
|
-
throw new Error("require.main is not set");
|
|
25
|
-
}
|
|
26
|
-
devtoolsPath = path.join(path.dirname(require.main.filename), "dist");
|
|
21
|
+
const distDir = path.dirname(fileURLToPath(import.meta.url));
|
|
27
22
|
router.use(cors());
|
|
28
|
-
router.use(express.static(
|
|
23
|
+
router.use(express.static(distDir));
|
|
29
24
|
router.get("/", (_req, res, next) => {
|
|
30
|
-
const indexHtmlPath = path.join(
|
|
25
|
+
const indexHtmlPath = path.join(distDir, "index.html");
|
|
31
26
|
res.sendFile(indexHtmlPath, (error) => {
|
|
32
27
|
if (error) {
|
|
33
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-DxuhRAgd.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.71bb0ce",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,55 +16,56 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@base-ui/react": "^1.
|
|
19
|
+
"@base-ui/react": "^1.1.0",
|
|
20
20
|
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
21
|
-
"@microlink/react-json-view": "^1.27.
|
|
21
|
+
"@microlink/react-json-view": "^1.27.1",
|
|
22
22
|
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
23
|
-
"@rjsf/core": "^6.
|
|
24
|
-
"@rjsf/shadcn": "^6.
|
|
25
|
-
"@rjsf/utils": "^6.
|
|
26
|
-
"@rjsf/validator-ajv8": "^6.
|
|
27
|
-
"@tanstack/react-query": "^5.90.
|
|
23
|
+
"@rjsf/core": "^6.2.4",
|
|
24
|
+
"@rjsf/shadcn": "^6.2.4",
|
|
25
|
+
"@rjsf/utils": "^6.2.4",
|
|
26
|
+
"@rjsf/validator-ajv8": "^6.2.4",
|
|
27
|
+
"@tanstack/react-query": "^5.90.18",
|
|
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
|
-
"shadcn": "^3.
|
|
41
|
+
"react-resizable-panels": "^4.4.1",
|
|
42
|
+
"shadcn": "^3.7.0",
|
|
42
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.71bb0ce"
|
|
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
|
+
"typescript-eslint": "^8.53.0",
|
|
68
69
|
"vite": "^7.3.1"
|
|
69
70
|
},
|
|
70
71
|
"scripts": {
|