skybridge 0.0.0-dev.556271 → 0.0.0-dev.5c621d3
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/LICENSE +21 -674
- package/dist/src/server/devtoolsStaticServer.d.ts +15 -0
- package/dist/src/server/devtoolsStaticServer.js +43 -0
- package/dist/src/server/devtoolsStaticServer.js.map +1 -0
- package/dist/src/server/index.d.ts +2 -2
- package/dist/src/server/index.js +1 -1
- package/dist/src/server/index.js.map +1 -1
- package/dist/src/server/inferUtilityTypes.d.ts +10 -0
- package/dist/src/server/server.d.ts +13 -7
- package/dist/src/server/server.js.map +1 -1
- package/dist/src/server/templateHelper.js +3 -2
- package/dist/src/server/templateHelper.js.map +1 -1
- package/dist/src/server/templates/development.hbs +1 -1
- package/dist/src/test/utils.d.ts +43 -8
- package/dist/src/test/utils.js +58 -0
- package/dist/src/test/utils.js.map +1 -1
- package/dist/src/test/widget.test.js +11 -5
- package/dist/src/test/widget.test.js.map +1 -1
- package/dist/src/web/data-llm.test.js.map +1 -1
- package/dist/src/web/generate-helpers.d.ts +7 -5
- package/dist/src/web/generate-helpers.js +4 -2
- package/dist/src/web/generate-helpers.js.map +1 -1
- package/dist/src/web/generate-helpers.test-d.js +26 -0
- package/dist/src/web/generate-helpers.test-d.js.map +1 -1
- package/dist/src/web/hooks/use-call-tool.d.ts +1 -1
- package/dist/src/web/hooks/use-call-tool.test.js +8 -14
- package/dist/src/web/hooks/use-call-tool.test.js.map +1 -1
- package/dist/src/web/hooks/use-display-mode.js.map +1 -1
- package/dist/src/web/hooks/use-locale.js.map +1 -1
- package/dist/src/web/hooks/use-openai-global.d.ts +1 -1
- package/dist/src/web/hooks/use-openai-global.js +6 -4
- package/dist/src/web/hooks/use-openai-global.js.map +1 -1
- package/dist/src/web/hooks/use-theme.js.map +1 -1
- package/dist/src/web/hooks/use-tool-info.d.ts +1 -1
- package/dist/src/web/hooks/use-tool-info.js +3 -5
- package/dist/src/web/hooks/use-tool-info.js.map +1 -1
- package/dist/src/web/hooks/use-user-agent.js.map +1 -1
- package/dist/src/web/mount-widget.d.ts +1 -1
- package/dist/src/web/mount-widget.js +1 -30
- package/dist/src/web/mount-widget.js.map +1 -1
- package/dist/src/web/types.d.ts +3 -3
- package/package.json +11 -16
- package/README.md +0 -123
- package/dist/src/emulator/assets/index-BlZAHQDQ.css +0 -1
- package/dist/src/emulator/assets/index-CfRgzQam.js +0 -133
- package/dist/src/emulator/favicon.ico +0 -0
- package/dist/src/emulator/index.html +0 -14
- package/dist/src/server/emulatorStaticServer.d.ts +0 -15
- package/dist/src/server/emulatorStaticServer.js +0 -38
- package/dist/src/server/emulatorStaticServer.js.map +0 -1
|
Binary file
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
|
|
6
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
-
<title>Skybridge MCP Emulator</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-CfRgzQam.js"></script>
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/index-BlZAHQDQ.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div id="root"></div>
|
|
13
|
-
</body>
|
|
14
|
-
</html>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type RequestHandler } from "express";
|
|
2
|
-
/**
|
|
3
|
-
* Serve the built emulator React app
|
|
4
|
-
* This router serves static files from the emulator's dist directory.
|
|
5
|
-
* It should be installed at the application root, like so:
|
|
6
|
-
*
|
|
7
|
-
* const app = express();
|
|
8
|
-
*
|
|
9
|
-
* if (env.NODE_ENV !== "production") {
|
|
10
|
-
* app.use(await emulatorStaticServer(server));
|
|
11
|
-
* app.use(await widgetsDevServer());
|
|
12
|
-
* ^^^^^^^^ Make sure to install the emulatorStaticServer before the widgetsDevServer
|
|
13
|
-
* }
|
|
14
|
-
*/
|
|
15
|
-
export declare const emulatorStaticServer: () => Promise<RequestHandler>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
import cors from "cors";
|
|
5
|
-
import express, {} from "express";
|
|
6
|
-
/**
|
|
7
|
-
* Serve the built emulator React app
|
|
8
|
-
* This router serves static files from the emulator's dist directory.
|
|
9
|
-
* It should be installed at the application root, like so:
|
|
10
|
-
*
|
|
11
|
-
* const app = express();
|
|
12
|
-
*
|
|
13
|
-
* if (env.NODE_ENV !== "production") {
|
|
14
|
-
* app.use(await emulatorStaticServer(server));
|
|
15
|
-
* app.use(await widgetsDevServer());
|
|
16
|
-
* ^^^^^^^^ Make sure to install the emulatorStaticServer before the widgetsDevServer
|
|
17
|
-
* }
|
|
18
|
-
*/
|
|
19
|
-
export const emulatorStaticServer = async () => {
|
|
20
|
-
const router = express.Router();
|
|
21
|
-
const currentDir = path.dirname(fileURLToPath(import.meta.url));
|
|
22
|
-
const emulatorPath = path.join(currentDir, "..", "emulator");
|
|
23
|
-
router.use(cors());
|
|
24
|
-
router.use(express.static(emulatorPath));
|
|
25
|
-
router.get("/", (_req, res, next) => {
|
|
26
|
-
const indexHtmlPath = path.join(emulatorPath, "index.html");
|
|
27
|
-
try {
|
|
28
|
-
const indexHtml = readFileSync(indexHtmlPath, "utf-8");
|
|
29
|
-
res.setHeader("Content-Type", "text/html");
|
|
30
|
-
res.send(indexHtml);
|
|
31
|
-
}
|
|
32
|
-
catch (error) {
|
|
33
|
-
next(error);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
return router;
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=emulatorStaticServer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emulatorStaticServ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