@skybridge/devtools 0.0.0-dev.712a600 → 0.0.0-dev.71812b3

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,4 +1,4 @@
1
- import { type RequestHandler } from "express";
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<RequestHandler>;
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
- let devtoolsPath;
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(devtoolsPath));
23
+ router.use(express.static(distDir));
29
24
  router.get("/", (_req, res, next) => {
30
- const indexHtmlPath = path.join(devtoolsPath, "index.html");
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,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,IAA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,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-hGsChJoA.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-k7E0UhvF.css">
8
+ <script type="module" crossorigin src="/assets/index-iMUyGeon.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.712a600",
3
+ "version": "0.0.0-dev.71812b3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,7 +18,7 @@
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.0",
21
+ "@microlink/react-json-view": "^1.27.1",
22
22
  "@modelcontextprotocol/sdk": "^1.25.2",
23
23
  "@rjsf/core": "^6.1.2",
24
24
  "@rjsf/shadcn": "^6.1.2",
@@ -28,43 +28,44 @@
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.24.12",
34
+ "framer-motion": "^12.26.2",
34
35
  "lodash-es": "^4.17.22",
35
36
  "lucide-react": "^0.562.0",
36
- "motion": "^12.24.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.3.1",
41
+ "react-resizable-panels": "^4.4.0",
41
42
  "shadcn": "^3.6.3",
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.9",
48
- "skybridge": "0.0.0-dev.712a600"
48
+ "zustand": "^5.0.10",
49
+ "skybridge": "0.0.0-dev.71812b3"
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.7",
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.52.0",
68
+ "typescript-eslint": "^8.53.0",
68
69
  "vite": "^7.3.1"
69
70
  },
70
71
  "scripts": {