create-skybridge 0.0.0-dev.093157d → 0.0.0-dev.0a74722
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 +1 -1
- package/template/_gitignore +2 -1
- package/template/alpic.json +1 -2
- package/template/node_modules/.bin/sb +21 -0
- package/template/node_modules/.bin/skybridge +21 -0
- package/template/package.json +6 -7
- package/template/server/src/index.ts +5 -4
- package/template/tsconfig.server.json +1 -1
package/package.json
CHANGED
package/template/_gitignore
CHANGED
package/template/alpic.json
CHANGED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../skybridge/bin/run.js" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../skybridge/bin/run.js" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/bin/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules/skybridge/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/skybridge@0.19.0_@modelcontextprotocol+sdk@1.25.2_hono@4.11.3_zod@4.3.5__@types+node@25_445d89531390a9bb64c93790d9fffe67/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../skybridge/bin/run.js" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../skybridge/bin/run.js" "$@"
|
|
21
|
+
fi
|
package/template/package.json
CHANGED
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
"description": "Alpic MCP Server Template",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"dev": "
|
|
9
|
-
"build": "
|
|
10
|
-
"start": "node
|
|
8
|
+
"dev": "skybridge",
|
|
9
|
+
"build": "skybridge build",
|
|
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
|
},
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"express": "^5.2.1",
|
|
20
20
|
"react": "^19.2.3",
|
|
21
21
|
"react-dom": "^19.2.3",
|
|
22
|
-
"skybridge": ">=0.
|
|
22
|
+
"skybridge": ">=0.19.0 <1.0.0",
|
|
23
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,7 +35,6 @@
|
|
|
35
35
|
"tsx": "^4.21.0",
|
|
36
36
|
"typescript": "^5.9.3"
|
|
37
37
|
},
|
|
38
|
-
"workspaces": [],
|
|
39
38
|
"engines": {
|
|
40
39
|
"node": ">=24.12.0"
|
|
41
40
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import express, { type Express } from "express";
|
|
2
|
-
import {
|
|
1
|
+
import express, { type Express, type Router } from "express";
|
|
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,8 +13,9 @@ app.use(mcp(server));
|
|
|
13
13
|
const env = process.env.NODE_ENV || "development";
|
|
14
14
|
|
|
15
15
|
if (env !== "production") {
|
|
16
|
-
|
|
17
|
-
app.use(await
|
|
16
|
+
const { devtoolsStaticServer } = await import("@skybridge/devtools");
|
|
17
|
+
app.use((await devtoolsStaticServer()) as unknown as Router);
|
|
18
|
+
app.use((await widgetsDevServer()) as unknown as Router);
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
app.listen(3000, (error) => {
|