@skybridge/devtools 0.0.0-dev.fc2b815 → 0.0.0-dev.fc7beaf
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-C2bOXPjW.css +2 -0
- package/dist/assets/index-CLt0nTPK.js +211 -0
- package/dist/devtoolsStaticServer.js +16 -0
- package/dist/devtoolsStaticServer.js.map +1 -1
- package/dist/index.html +2 -2
- package/package.json +30 -29
- package/dist/assets/index-Cj-4IrrO.js +0 -245
- package/dist/assets/index-DxCqKT-X.css +0 -2
|
@@ -2,6 +2,19 @@ import path from "node:path";
|
|
|
2
2
|
import { fileURLToPath } from "node:url";
|
|
3
3
|
import cors from "cors";
|
|
4
4
|
import express, {} from "express";
|
|
5
|
+
const detectPackageManager = () => {
|
|
6
|
+
const userAgent = process.env.npm_config_user_agent ?? "";
|
|
7
|
+
if (userAgent.startsWith("pnpm")) {
|
|
8
|
+
return "pnpm";
|
|
9
|
+
}
|
|
10
|
+
if (userAgent.startsWith("yarn")) {
|
|
11
|
+
return "yarn";
|
|
12
|
+
}
|
|
13
|
+
if (userAgent.startsWith("bun")) {
|
|
14
|
+
return "bun";
|
|
15
|
+
}
|
|
16
|
+
return "npm";
|
|
17
|
+
};
|
|
5
18
|
/**
|
|
6
19
|
* Serve the built devtools React app
|
|
7
20
|
* This router serves static files from the devtools's dist directory.
|
|
@@ -20,6 +33,9 @@ export const devtoolsStaticServer = async () => {
|
|
|
20
33
|
const router = express.Router();
|
|
21
34
|
const distDir = path.dirname(fileURLToPath(import.meta.url));
|
|
22
35
|
router.use(cors());
|
|
36
|
+
router.get("/__skybridge/devtools/project", (_req, res) => {
|
|
37
|
+
res.json({ packageManager: detectPackageManager() });
|
|
38
|
+
});
|
|
23
39
|
router.use(express.static(distDir));
|
|
24
40
|
router.get("/", (_req, res, next) => {
|
|
25
41
|
const indexHtmlPath = path.join(distDir, "index.html");
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AAI/C,MAAM,oBAAoB,GAAG,GAAmB,EAAE;IAChD,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,EAAE,CAAC;IAC1D,IAAI,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACjC,OAAO,MAAM,CAAC;IAChB,CAAC;IACD,IAAI,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC;QAChC,OAAO,KAAK,CAAC;IACf,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAEF;;;;;;;;;;;;;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,+BAA+B,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;QACxD,GAAG,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,oBAAoB,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;IACH,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-CLt0nTPK.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-C2bOXPjW.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.fc7beaf",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,55 +19,56 @@
|
|
|
19
19
|
"@t3-oss/env-core": "^0.13.11",
|
|
20
20
|
"cors": "^2.8.6",
|
|
21
21
|
"express": "^5.2.1",
|
|
22
|
-
"zod": "^4.
|
|
22
|
+
"zod": "^4.3.5"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@alpic-ai/ui": "^1.
|
|
26
|
-
"@base-ui/react": "^1.
|
|
25
|
+
"@alpic-ai/ui": "^1.116.0",
|
|
26
|
+
"@base-ui/react": "^1.3.0",
|
|
27
27
|
"@fontsource-variable/jetbrains-mono": "^5.2.8",
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
29
|
-
"@playwright/test": "^1.
|
|
29
|
+
"@playwright/test": "^1.49.0",
|
|
30
30
|
"@radix-ui/react-accordion": "^1.2.12",
|
|
31
|
-
"@
|
|
32
|
-
"@rjsf/
|
|
33
|
-
"@rjsf/
|
|
34
|
-
"@rjsf/
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
31
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
32
|
+
"@rjsf/core": "^6.4.2",
|
|
33
|
+
"@rjsf/shadcn": "^6.4.2",
|
|
34
|
+
"@rjsf/utils": "^6.4.2",
|
|
35
|
+
"@rjsf/validator-ajv8": "^6.4.2",
|
|
36
|
+
"@tailwindcss/vite": "^4.2.2",
|
|
37
|
+
"@tanstack/react-query": "^5.95.2",
|
|
37
38
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
38
39
|
"@types/cors": "^2.8.19",
|
|
39
40
|
"@types/express": "^5.0.6",
|
|
40
41
|
"@types/lodash-es": "^4.17.12",
|
|
41
|
-
"@types/react": "^19.2.
|
|
42
|
+
"@types/react": "^19.2.14",
|
|
42
43
|
"@types/react-dom": "^19.2.3",
|
|
43
44
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
44
|
-
"@vitejs/plugin-react": "^6.0.
|
|
45
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
45
46
|
"ahooks": "^3.9.7",
|
|
46
|
-
"autoprefixer": "^10.
|
|
47
|
+
"autoprefixer": "^10.4.27",
|
|
47
48
|
"class-variance-authority": "^0.7.1",
|
|
48
49
|
"clsx": "^2.1.1",
|
|
49
50
|
"cmdk": "^1.1.1",
|
|
50
|
-
"framer-motion": "^12.
|
|
51
|
-
"lodash-es": "^4.
|
|
52
|
-
"lucide-react": "^1.
|
|
53
|
-
"motion": "^12.
|
|
51
|
+
"framer-motion": "^12.38.0",
|
|
52
|
+
"lodash-es": "^4.17.23",
|
|
53
|
+
"lucide-react": "^1.7.0",
|
|
54
|
+
"motion": "^12.38.0",
|
|
54
55
|
"nuqs": "^2.8.9",
|
|
55
56
|
"postcss": "^8.5.8",
|
|
56
|
-
"react": "^19.2.
|
|
57
|
-
"react-dom": "^19.2.
|
|
58
|
-
"react-resizable-panels": "^4.11.
|
|
57
|
+
"react": "^19.2.4",
|
|
58
|
+
"react-dom": "^19.2.4",
|
|
59
|
+
"react-resizable-panels": "^4.11.0",
|
|
59
60
|
"react-syntax-highlighter": "^16.1.1",
|
|
60
|
-
"shadcn": "^4.
|
|
61
|
-
"shiki": "^4.
|
|
62
|
-
"tailwind-merge": "^3.
|
|
63
|
-
"tailwindcss": "^4.
|
|
61
|
+
"shadcn": "^4.1.1",
|
|
62
|
+
"shiki": "^4.0.2",
|
|
63
|
+
"tailwind-merge": "^3.5.0",
|
|
64
|
+
"tailwindcss": "^4.2.2",
|
|
64
65
|
"tailwindcss-animate": "^1.0.7",
|
|
65
|
-
"tsx": "^4.
|
|
66
|
+
"tsx": "^4.21.0",
|
|
66
67
|
"tw-animate-css": "^1.4.0",
|
|
67
|
-
"typescript": "~6.0.
|
|
68
|
+
"typescript": "~6.0.2",
|
|
68
69
|
"vite": "^8.0.3",
|
|
69
|
-
"zustand": "^5.0.
|
|
70
|
-
"skybridge": "0.0.0-dev.
|
|
70
|
+
"zustand": "^5.0.12",
|
|
71
|
+
"skybridge": "0.0.0-dev.fc7beaf"
|
|
71
72
|
},
|
|
72
73
|
"scripts": {
|
|
73
74
|
"dev": "vite",
|