create-skybridge 2.0.0-beta.78ceed1 → 2.0.0-beta.dba0bc8
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
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
"deploy": "alpic deploy"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"skybridge": "^2.0.0-beta.
|
|
15
|
+
"skybridge": "^2.0.0-beta.dba0bc8",
|
|
16
16
|
"vite": "^8.1.5"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@skybridge/devtools": "^2.0.0-beta.
|
|
20
|
-
"@skybridge/vite-plugin": "^2.0.0-beta.
|
|
19
|
+
"@skybridge/devtools": "^2.0.0-beta.dba0bc8",
|
|
20
|
+
"@skybridge/vite-plugin": "^2.0.0-beta.dba0bc8",
|
|
21
21
|
"@types/node": "^24.13.3",
|
|
22
22
|
"alpic": "^1.155.0",
|
|
23
23
|
"tsx": "^4.23.1",
|
|
@@ -3,15 +3,13 @@ import { Skybridge, type SkybridgeServer } from "skybridge/server";
|
|
|
3
3
|
// Register tools with `server.registerTool(...)`.
|
|
4
4
|
// Docs: https://docs.skybridge.tech/api-reference/register-tool
|
|
5
5
|
|
|
6
|
-
export const
|
|
7
|
-
|
|
8
|
-
export const app = new Skybridge(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
serverFactory,
|
|
15
|
-
);
|
|
6
|
+
export const handler = (server: SkybridgeServer) => server;
|
|
7
|
+
|
|
8
|
+
export const app = new Skybridge({
|
|
9
|
+
name: "skybridge-blank",
|
|
10
|
+
version: "0.0.1",
|
|
11
|
+
capabilities: {},
|
|
12
|
+
handler,
|
|
13
|
+
});
|
|
16
14
|
|
|
17
15
|
export type AppType = typeof app;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"lucide-react": "^1.25.0",
|
|
19
19
|
"react": "^19.2.7",
|
|
20
20
|
"react-dom": "^19.2.7",
|
|
21
|
-
"skybridge": "^2.0.0-beta.
|
|
21
|
+
"skybridge": "^2.0.0-beta.dba0bc8",
|
|
22
22
|
"sonner": "^2.0.7",
|
|
23
23
|
"tw-animate-css": "^1.4.0",
|
|
24
24
|
"vite": "^8.1.5",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@ai-sdk/anthropic": "^2.0.90",
|
|
29
|
-
"@skybridge/devtools": "^2.0.0-beta.
|
|
29
|
+
"@skybridge/devtools": "^2.0.0-beta.dba0bc8",
|
|
30
30
|
"@skybridge/test": "beta",
|
|
31
|
-
"@skybridge/vite-plugin": "^2.0.0-beta.
|
|
31
|
+
"@skybridge/vite-plugin": "^2.0.0-beta.dba0bc8",
|
|
32
32
|
"@tailwindcss/vite": "^4.3.3",
|
|
33
33
|
"@types/node": "^24.13.3",
|
|
34
34
|
"@types/react": "^19.2.17",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Skybridge, type SkybridgeServer } from "skybridge/server";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const handler = (server: SkybridgeServer) =>
|
|
5
5
|
server
|
|
6
6
|
.registerTool(
|
|
7
7
|
{
|
|
@@ -85,13 +85,11 @@ export const serverFactory = (server: SkybridgeServer) =>
|
|
|
85
85
|
},
|
|
86
86
|
);
|
|
87
87
|
|
|
88
|
-
export const app = new Skybridge(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
serverFactory,
|
|
95
|
-
);
|
|
88
|
+
export const app = new Skybridge({
|
|
89
|
+
name: "alpic-openai-app",
|
|
90
|
+
version: "0.0.1",
|
|
91
|
+
capabilities: {},
|
|
92
|
+
handler,
|
|
93
|
+
});
|
|
96
94
|
|
|
97
95
|
export type AppType = typeof app;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"react": "^19.2.4",
|
|
18
18
|
"react-dom": "^19.2.4",
|
|
19
|
-
"skybridge": "^2.0.0-beta.
|
|
19
|
+
"skybridge": "^2.0.0-beta.dba0bc8",
|
|
20
20
|
"vite": "^8.1.3",
|
|
21
21
|
"zod": "^4.4.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@ladle/react": "^5.1.1",
|
|
25
|
-
"@skybridge/devtools": "^2.0.0-beta.
|
|
26
|
-
"@skybridge/vite-plugin": "^2.0.0-beta.
|
|
25
|
+
"@skybridge/devtools": "^2.0.0-beta.dba0bc8",
|
|
26
|
+
"@skybridge/vite-plugin": "^2.0.0-beta.dba0bc8",
|
|
27
27
|
"@types/node": "^24.13.2",
|
|
28
28
|
"@types/react": "^19.2.14",
|
|
29
29
|
"@types/react-dom": "^19.2.3",
|
|
@@ -15,18 +15,17 @@ if (existsSync(".env")) {
|
|
|
15
15
|
process.loadEnvFile();
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export const
|
|
18
|
+
export const handler = (server: SkybridgeServer) =>
|
|
19
19
|
server
|
|
20
20
|
.registerTool(searchProductsDefinition, searchProductsHandler)
|
|
21
21
|
.registerTool(renderCarouselDefinition, renderCarouselHandler);
|
|
22
22
|
|
|
23
|
-
export const app = new Skybridge(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
instructions: `\
|
|
23
|
+
export const app = new Skybridge({
|
|
24
|
+
// @todo: name and version your app.
|
|
25
|
+
name: "skybridge-ecom",
|
|
26
|
+
version: "0.0.1",
|
|
27
|
+
// @todo: adapt this server-wide prompt to your catalog.
|
|
28
|
+
instructions: `\
|
|
30
29
|
Two phases:
|
|
31
30
|
|
|
32
31
|
SEARCH: Call search-products ${MIN_SEARCH_ITERATIONS}+ times before presenting, never off one call. \
|
|
@@ -36,8 +35,7 @@ once the carousel renders.
|
|
|
36
35
|
|
|
37
36
|
RENDER: After curating, call render-carousel with the chosen product IDs (aim for ${CAROUSEL_RANGE}). \
|
|
38
37
|
Speak once it renders, then recommend products in carousel order.`,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
);
|
|
38
|
+
handler,
|
|
39
|
+
});
|
|
42
40
|
|
|
43
41
|
export type AppType = typeof app;
|