create-skybridge 0.0.0-dev.e2ef612 → 0.0.0-dev.e365d28
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-skybridge",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.e365d28",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Alpic",
|
|
@@ -27,9 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "tsc",
|
|
30
|
-
"test": "pnpm run test:unit && pnpm run test:
|
|
30
|
+
"test": "pnpm run test:unit && pnpm run test:format",
|
|
31
31
|
"test:unit": "vitest run",
|
|
32
|
-
"test:type": "tsc --noEmit",
|
|
33
32
|
"format": "biome check --write --error-on-warnings",
|
|
34
33
|
"test:format": "biome ci"
|
|
35
34
|
}
|
package/template/README.md
CHANGED
|
@@ -46,7 +46,7 @@ This command starts:
|
|
|
46
46
|
```
|
|
47
47
|
├── src/
|
|
48
48
|
│ ├── server.ts # Server entry point
|
|
49
|
-
│ ├── views/ # React components (one per
|
|
49
|
+
│ ├── views/ # React components (one per view)
|
|
50
50
|
│ ├── components/ # Shared UI components
|
|
51
51
|
│ ├── helpers.ts # Shared utilities
|
|
52
52
|
│ └── index.css # Global styles
|
|
@@ -55,14 +55,14 @@ This command starts:
|
|
|
55
55
|
└── package.json
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
### Create your first
|
|
58
|
+
### Create your first view
|
|
59
59
|
|
|
60
|
-
#### 1. Add a new
|
|
60
|
+
#### 1. Add a new view
|
|
61
61
|
|
|
62
|
-
- Register a tool in `src/server.ts` with a unique name (e.g., `my-
|
|
63
|
-
- Create a matching React component at `src/views/my-
|
|
62
|
+
- Register a tool in `src/server.ts` with a unique name (e.g., `my-view`) using [`registerTool`](https://docs.skybridge.tech/api-reference/register-tool) and a `view` config.
|
|
63
|
+
- Create a matching React component at `src/views/my-view.tsx`. **The file name must match the view name exactly**.
|
|
64
64
|
|
|
65
|
-
#### 2. Edit
|
|
65
|
+
#### 2. Edit views with Hot Module Replacement (HMR)
|
|
66
66
|
|
|
67
67
|
Edit and save components in `src/views/` — changes will appear instantly inside your App.
|
|
68
68
|
|
|
@@ -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/
|
|
13
|
+
export NODE_PATH="/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/
|
|
15
|
+
export NODE_PATH="/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/../skybridge/bin/run.js" "$@"
|
|
@@ -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/
|
|
13
|
+
export NODE_PATH="/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/
|
|
15
|
+
export NODE_PATH="/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/../skybridge/bin/run.js" "$@"
|
package/template/package.json
CHANGED
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
16
16
|
"react": "^19.2.4",
|
|
17
17
|
"react-dom": "^19.2.4",
|
|
18
|
-
"skybridge": ">=0.
|
|
18
|
+
"skybridge": ">=0.0.0-dev.e365d28",
|
|
19
19
|
"vite": "^8.0.3",
|
|
20
20
|
"zod": "^4.3.6"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@skybridge/devtools": ">=0.35.14 <1.0.0",
|
|
24
|
-
"@types/react": "^19.2.14",
|
|
25
24
|
"@types/node": "^24.12.0",
|
|
25
|
+
"@types/react": "^19.2.14",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
27
|
"@vitejs/plugin-react": "^6.0.1",
|
|
28
28
|
"alpic": "^1.104.1",
|
package/template/src/server.ts
CHANGED
package/template/vite.config.ts
CHANGED