skybridge 0.0.0-dev.d20c84c → 0.0.0-dev.d2586b1
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/commands/dev.js +13 -5
- package/dist/commands/dev.js.map +1 -1
- package/package.json +9 -8
package/dist/commands/dev.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Command, Flags } from "@oclif/core";
|
|
3
3
|
import { Box, render, Text } from "ink";
|
|
4
|
+
import nodemon, {} from "nodemon";
|
|
5
|
+
import { useEffect } from "react";
|
|
4
6
|
import { Header } from "../cli/header.js";
|
|
5
|
-
import { runCommand } from "../cli/run-command.js";
|
|
6
7
|
export default class Dev extends Command {
|
|
7
8
|
static description = "Start development server";
|
|
8
9
|
static examples = ["skybridge"];
|
|
@@ -19,11 +20,18 @@ export default class Dev extends Command {
|
|
|
19
20
|
? { SKYBRIDGE_USE_FORWARDED_HOST: "true" }
|
|
20
21
|
: {}),
|
|
21
22
|
};
|
|
22
|
-
runCommand("nodemon --quiet", {
|
|
23
|
-
stdio: ["ignore", "ignore", "inherit"],
|
|
24
|
-
env,
|
|
25
|
-
});
|
|
26
23
|
const App = () => {
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
nodemon({
|
|
26
|
+
env,
|
|
27
|
+
configFile: "nodemon.json",
|
|
28
|
+
});
|
|
29
|
+
nodemon
|
|
30
|
+
// @ts-expect-error - nodemon types don't include "restart" event
|
|
31
|
+
.on("restart", (files) => {
|
|
32
|
+
console.log("\n\x1b[32m✓\x1b[0m App restarted due to file changes: \x1b[36m%s\x1b[0m", files.join(", "));
|
|
33
|
+
});
|
|
34
|
+
}, []);
|
|
27
35
|
return (_jsxs(Box, { flexDirection: "column", padding: 1, marginLeft: 1, children: [_jsx(Header, { version: this.config.version }), _jsxs(Box, { children: [_jsxs(Text, { color: "green", children: ["\u2192", " "] }), _jsxs(Text, { color: "white", bold: true, children: ["Open DevTools to test your app locally:", " "] }), _jsx(Text, { color: "green", children: "http://localhost:3000/" })] }), _jsxs(Box, { marginBottom: 1, children: [_jsxs(Text, { color: "#20a832", children: ["\u2192", " "] }), _jsxs(Text, { children: ["MCP server running at:", " "] }), _jsx(Text, { color: "white", bold: true, children: "http://localhost:3000/mcp" })] }), _jsx(Text, { color: "white", underline: true, children: "To test on ChatGPT:" }), _jsxs(Box, { children: [_jsxs(Text, { color: "#20a832", children: ["\u2192", " "] }), _jsx(Text, { color: "grey", children: "Make your local server accessible with " }), _jsx(Text, { color: "white", bold: true, children: "ngrok http 3000" })] }), _jsx(Box, { marginBottom: 1, children: _jsxs(Text, { children: [_jsxs(Text, { color: "#20a832", children: ["\u2192", " "] }), _jsx(Text, { color: "grey", children: "Connect to ChatGPT with URL " }), _jsx(Text, { color: "white", bold: true, children: "https://xxxxxx.ngrok-free.app/mcp" })] }) }), _jsx(Box, { children: _jsxs(Text, { children: [_jsxs(Text, { color: "#20a832", children: ["\u2192", " "] }), _jsx(Text, { children: "Documentation: " }), _jsx(Text, { color: "white", bold: true, children: "https://docs.skybridge.tech/" })] }) }), _jsx(Box, { marginTop: 1, children: _jsxs(Text, { children: [_jsxs(Text, { color: "#20a832", children: ["\u2192", " "] }), _jsx(Text, { children: "If you like Skybridge, please " }), _jsxs(Text, { color: "white", bold: true, children: ["give it a star", " "] }), _jsx(Text, { children: "on GitHub: " }), _jsx(Text, { color: "white", underline: true, children: "https://github.com/alpic-ai/skybridge" }), _jsx(Text, { color: "grey", children: " \uD83D\uDE4F" })] }) })] }));
|
|
28
36
|
};
|
|
29
37
|
render(_jsx(App, {}), { exitOnCtrlC: true, patchConsole: false });
|
package/dist/commands/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE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tD,KAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,wDAEjB,IACF,GACH,EACN,KAAC,GAAG,cACF,MAAC,IAAI,eACH,MAAC,IAAI,IAAC,KAAK,EAAC,SAAS,uBAAG,IAAI,IAAQ,EACpC,KAAC,IAAI,kCAAuB,EAC5B,KAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,mDAEjB,IACF,GACH,EACN,KAAC,GAAG,IAAC,SAAS,EAAE,CAAC,YACf,MAAC,IAAI,eACH,MAAC,IAAI,IAAC,KAAK,EAAC,SAAS,uBAAG,IAAI,IAAQ,EACpC,KAAC,IAAI,iDAAsC,EAC3C,MAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,IAAI,qCACP,GAAG,IACb,EACP,KAAC,IAAI,8BAAmB,EACxB,KAAC,IAAI,IAAC,KAAK,EAAC,OAAO,EAAC,SAAS,4DAEtB,EACP,KAAC,IAAI,IAAC,KAAK,EAAC,MAAM,8BAAW,IACxB,GACH,IACF,CACP,CAAC;QACJ,CAAC,CAAC;QAEF,MAAM,CAAC,KAAC,GAAG,KAAG,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;IAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skybridge",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.d2586b1",
|
|
4
4
|
"description": "Skybridge is a framework for building ChatGPT and MCP Apps",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"license": "ISC",
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@modelcontextprotocol/sdk": ">=1.0.0",
|
|
34
|
+
"nodemon": ">=3.0.0",
|
|
34
35
|
"react": ">=18.0.0",
|
|
35
36
|
"react-dom": ">=18.0.0"
|
|
36
37
|
},
|
|
@@ -40,27 +41,27 @@
|
|
|
40
41
|
"ci-info": "^4.3.1",
|
|
41
42
|
"cors": "^2.8.5",
|
|
42
43
|
"dequal": "^2.0.3",
|
|
43
|
-
"es-toolkit": "^1.
|
|
44
|
+
"es-toolkit": "^1.44.0",
|
|
44
45
|
"express": "^5.2.1",
|
|
45
46
|
"handlebars": "^4.7.8",
|
|
46
47
|
"ink": "^6.6.0",
|
|
47
|
-
"posthog-node": "^5.
|
|
48
|
+
"posthog-node": "^5.24.1",
|
|
48
49
|
"superjson": "^2.2.6",
|
|
49
50
|
"vite": "^7.3.1",
|
|
50
51
|
"zustand": "^5.0.10"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
53
|
-
"@modelcontextprotocol/ext-apps": "^0.4.
|
|
54
|
-
"@modelcontextprotocol/sdk": "^1.25.
|
|
54
|
+
"@modelcontextprotocol/ext-apps": "^0.4.1",
|
|
55
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
55
56
|
"@testing-library/dom": "^10.4.1",
|
|
56
|
-
"@testing-library/react": "^16.3.
|
|
57
|
+
"@testing-library/react": "^16.3.2",
|
|
57
58
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
58
59
|
"@types/babel__core": "^7.20.5",
|
|
59
60
|
"@types/cors": "^2.8.19",
|
|
60
61
|
"@types/express": "^5.0.6",
|
|
61
62
|
"@types/jsdom": "^27.0.0",
|
|
62
|
-
"@types/node": "^24.10.
|
|
63
|
-
"@types/react": "^19.2.
|
|
63
|
+
"@types/node": "^24.10.9",
|
|
64
|
+
"@types/react": "^19.2.9",
|
|
64
65
|
"@types/react-dom": "^19.2.3",
|
|
65
66
|
"@vitest/ui": "^4.0.17",
|
|
66
67
|
"jsdom": "^27.4.0",
|