@jamiexiongr/panda-hub 0.1.0

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @jamiexiongr/panda-hub
2
+
3
+ Published hub runtime for Panda, including the built web UI.
@@ -0,0 +1,55 @@
1
+ import {
2
+ startPandaSessionService
3
+ } from "./chunk-NPUEJ7HU.mjs";
4
+
5
+ // release/panda-hub/src/index.ts
6
+ import path from "path";
7
+ import { fileURLToPath } from "url";
8
+
9
+ // release/panda-hub/package.json
10
+ var package_default = {
11
+ name: "@jamiexiongr/panda-hub",
12
+ version: "0.1.0",
13
+ type: "module",
14
+ private: false,
15
+ description: "Panda hub runtime",
16
+ dependencies: {
17
+ "@fastify/cors": "^10.0.2",
18
+ "@fastify/websocket": "^11.0.2",
19
+ fastify: "^5.2.1"
20
+ },
21
+ bin: {
22
+ "panda-hub": "./dist/cli.mjs"
23
+ },
24
+ exports: {
25
+ ".": "./dist/index.mjs"
26
+ },
27
+ files: [
28
+ "dist"
29
+ ],
30
+ publishConfig: {
31
+ access: "public",
32
+ registry: "https://registry.npmjs.org/"
33
+ },
34
+ engines: {
35
+ node: ">=20.19.0"
36
+ }
37
+ };
38
+
39
+ // release/panda-hub/src/index.ts
40
+ var currentDirectory = path.dirname(fileURLToPath(import.meta.url));
41
+ var startJamiexiongrHub = async () => {
42
+ const webUiDir = path.resolve(currentDirectory, "../web");
43
+ return startPandaSessionService({
44
+ serviceName: "panda-hub",
45
+ mode: "hub",
46
+ port: Number(process.env.PANDA_HUB_PORT ?? 4343),
47
+ transport: "hub-routed",
48
+ version: package_default.version,
49
+ webUiDir
50
+ });
51
+ };
52
+
53
+ export {
54
+ startJamiexiongrHub
55
+ };