create-skybridge 1.0.3 → 1.0.4
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/index.js +1 -1
- package/package.json +1 -1
- package/templates/blank/AGENTS.md +1 -1
- package/templates/blank/Dockerfile +1 -1
- package/templates/blank/_gitignore +2 -1
- package/templates/blank/node_modules/.bin/tsx +21 -0
- package/templates/blank/package.json +2 -1
- package/templates/blank/src/server.ts +0 -5
- package/templates/demo/AGENTS.md +1 -1
- package/templates/demo/Dockerfile +1 -1
- package/templates/demo/_gitignore +2 -1
- package/templates/demo/package.json +1 -1
- package/templates/demo/src/server.ts +0 -5
- package/templates/blank/src/vite-manifest.d.ts +0 -4
- package/templates/demo/src/vite-manifest.d.ts +0 -4
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This is a ChatGPT/MCP app built with Skybridge. ALWAYS use the `
|
|
1
|
+
This is a ChatGPT/MCP app built with Skybridge. ALWAYS use the `skybridge` skill when planning or updating the codebase.
|
|
@@ -50,4 +50,4 @@ EXPOSE 3000
|
|
|
50
50
|
# Run the built server directly rather than via `npm start` / `skybridge start`.
|
|
51
51
|
# Each wrapper adds a process layer that can swallow SIGTERM, which makes
|
|
52
52
|
# graceful shutdowns time out on platforms like Cloud Run, Fly, and k8s.
|
|
53
|
-
CMD ["node", "dist/
|
|
53
|
+
CMD ["node", "dist/__entry.js"]
|
|
@@ -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/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/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/tsx@4.21.0/node_modules/tsx/node_modules:/home/runner/work/skybridge/skybridge/node_modules/.pnpm/tsx@4.21.0/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/../tsx/dist/cli.mjs" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
21
|
+
fi
|
|
@@ -13,13 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
16
|
-
"skybridge": "^1.0.
|
|
16
|
+
"skybridge": "^1.0.4",
|
|
17
17
|
"vite": "^8.0.3"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@skybridge/devtools": "^1.0.0",
|
|
21
21
|
"@types/node": "^24.12.0",
|
|
22
22
|
"alpic": "^1.104.1",
|
|
23
|
+
"tsx": "^4.21.0",
|
|
23
24
|
"typescript": "^6.0.2"
|
|
24
25
|
},
|
|
25
26
|
"engines": {
|
|
@@ -11,11 +11,6 @@ const server = new McpServer(
|
|
|
11
11
|
// Register tools with `server.registerTool(...)`.
|
|
12
12
|
// Docs: https://docs.skybridge.tech/api-reference/register-tool
|
|
13
13
|
|
|
14
|
-
if (process.env.NODE_ENV === "production") {
|
|
15
|
-
const { default: manifest } = await import("./vite-manifest.js");
|
|
16
|
-
server.setViteManifest(manifest);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
14
|
export default await server.run();
|
|
20
15
|
|
|
21
16
|
export type AppType = typeof server;
|
package/templates/demo/AGENTS.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This is a ChatGPT/MCP app built with Skybridge. ALWAYS use the `
|
|
1
|
+
This is a ChatGPT/MCP app built with Skybridge. ALWAYS use the `skybridge` skill when planning or updating the codebase.
|
|
@@ -50,4 +50,4 @@ EXPOSE 3000
|
|
|
50
50
|
# Run the built server directly rather than via `npm start` / `skybridge start`.
|
|
51
51
|
# Each wrapper adds a process layer that can swallow SIGTERM, which makes
|
|
52
52
|
# graceful shutdowns time out on platforms like Cloud Run, Fly, and k8s.
|
|
53
|
-
CMD ["node", "dist/
|
|
53
|
+
CMD ["node", "dist/__entry.js"]
|
|
@@ -89,11 +89,6 @@ const server = new McpServer(
|
|
|
89
89
|
},
|
|
90
90
|
);
|
|
91
91
|
|
|
92
|
-
if (process.env.NODE_ENV === "production") {
|
|
93
|
-
const { default: manifest } = await import("./vite-manifest.js");
|
|
94
|
-
server.setViteManifest(manifest);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
92
|
export default await server.run();
|
|
98
93
|
|
|
99
94
|
export type AppType = typeof server;
|