create-skybridge 0.0.0-dev.6846f61 → 0.0.0-dev.6af1d94
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/package.json
CHANGED
package/template/alpic.json
CHANGED
|
@@ -10,9 +10,9 @@ case `uname` in
|
|
|
10
10
|
esac
|
|
11
11
|
|
|
12
12
|
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.1_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_terser@5.44.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.1_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_terser@5.44.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.1_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_terser@5.44.1_tsx@4.21.0/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
14
|
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.1_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_terser@5.44.1_tsx@4.21.0/node_modules/vite/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.1_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_terser@5.44.1_tsx@4.21.0/node_modules/vite/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/vite@7.3.1_@types+node@25.0.3_jiti@2.6.1_lightningcss@1.30.2_terser@5.44.1_tsx@4.21.0/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
16
|
fi
|
|
17
17
|
if [ -x "$basedir/node" ]; then
|
|
18
18
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
package/template/package.json
CHANGED
|
@@ -5,27 +5,27 @@
|
|
|
5
5
|
"description": "Alpic MCP Server Template",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"dev": "
|
|
9
|
-
"build": "vite build -c web/vite.config.ts && shx rm -rf
|
|
10
|
-
"start": "node
|
|
8
|
+
"dev": "skybridge",
|
|
9
|
+
"build": "vite build -c web/vite.config.ts && shx rm -rf dist && tsc -p tsconfig.server.json && mkdir -p dist/assets && shx cp -r web/dist/. dist/assets",
|
|
10
|
+
"start": "node dist/index.js",
|
|
11
11
|
"inspector": "mcp-inspector http://localhost:3000/mcp",
|
|
12
12
|
"server:build": "tsc -p tsconfig.server.json",
|
|
13
|
-
"server:start": "node
|
|
13
|
+
"server:start": "node dist/index.js",
|
|
14
14
|
"web:build": "tsc -b web && vite build -c web/vite.config.ts",
|
|
15
15
|
"web:preview": "vite preview -c web/vite.config.ts"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@modelcontextprotocol/sdk": "^1.25.
|
|
18
|
+
"@modelcontextprotocol/sdk": "^1.25.2",
|
|
19
19
|
"express": "^5.2.1",
|
|
20
20
|
"react": "^19.2.3",
|
|
21
21
|
"react-dom": "^19.2.3",
|
|
22
|
-
"skybridge": ">=0.
|
|
23
|
-
"vite": "^7.3.
|
|
22
|
+
"skybridge": ">=0.17.1 <1.0.0",
|
|
23
|
+
"vite": "^7.3.1",
|
|
24
24
|
"zod": "^4.3.5"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@modelcontextprotocol/inspector": "^0.18.0",
|
|
28
|
-
"@skybridge/devtools": ">=0.
|
|
28
|
+
"@skybridge/devtools": ">=0.17.1 <1.0.0",
|
|
29
29
|
"@types/express": "^5.0.6",
|
|
30
30
|
"@types/react": "^19.2.7",
|
|
31
31
|
"@types/react-dom": "^19.2.3",
|
|
@@ -35,8 +35,7 @@
|
|
|
35
35
|
"tsx": "^4.21.0",
|
|
36
36
|
"typescript": "^5.9.3"
|
|
37
37
|
},
|
|
38
|
-
"workspaces": [],
|
|
39
38
|
"engines": {
|
|
40
|
-
"node": ">=24.
|
|
39
|
+
"node": ">=24.12.0"
|
|
41
40
|
}
|
|
42
41
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import express, { type Express } from "express";
|
|
2
|
-
import {
|
|
2
|
+
import { widgetsDevServer } from "skybridge/server";
|
|
3
3
|
import type { ViteDevServer } from "vite";
|
|
4
4
|
import { mcp } from "./middleware.js";
|
|
5
5
|
import server from "./server.js";
|
|
@@ -13,6 +13,7 @@ app.use(mcp(server));
|
|
|
13
13
|
const env = process.env.NODE_ENV || "development";
|
|
14
14
|
|
|
15
15
|
if (env !== "production") {
|
|
16
|
+
const { devtoolsStaticServer } = await import("@skybridge/devtools");
|
|
16
17
|
app.use(await devtoolsStaticServer());
|
|
17
18
|
app.use(await widgetsDevServer());
|
|
18
19
|
}
|