pubblue 0.5.0 → 0.6.4

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.
@@ -0,0 +1,7 @@
1
+ import {
2
+ startDaemon
3
+ } from "./chunk-QFJDLFK5.js";
4
+ import "./chunk-JXEXE632.js";
5
+ export {
6
+ startDaemon
7
+ };
@@ -0,0 +1,27 @@
1
+ import {
2
+ startDaemon
3
+ } from "./chunk-QFJDLFK5.js";
4
+ import {
5
+ PubApiClient,
6
+ errorMessage
7
+ } from "./chunk-JXEXE632.js";
8
+
9
+ // src/live-daemon-entry.ts
10
+ var baseUrl = process.env.PUBBLUE_DAEMON_BASE_URL;
11
+ var apiKey = process.env.PUBBLUE_DAEMON_API_KEY;
12
+ var socketPath = process.env.PUBBLUE_DAEMON_SOCKET;
13
+ var infoPath = process.env.PUBBLUE_DAEMON_INFO;
14
+ var cliVersion = process.env.PUBBLUE_CLI_VERSION;
15
+ var agentName = process.env.PUBBLUE_DAEMON_AGENT_NAME;
16
+ var bridgeMode = process.env.PUBBLUE_DAEMON_BRIDGE_MODE || "openclaw";
17
+ if (!baseUrl || !apiKey || !socketPath || !infoPath) {
18
+ console.error("Missing required env vars for daemon.");
19
+ process.exit(1);
20
+ }
21
+ var apiClient = new PubApiClient(baseUrl, apiKey);
22
+ void startDaemon({ apiClient, socketPath, infoPath, cliVersion, bridgeMode, agentName }).catch(
23
+ (error) => {
24
+ console.error(`Daemon failed to start: ${errorMessage(error)}`);
25
+ process.exit(1);
26
+ }
27
+ );
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "pubblue",
3
- "version": "0.5.0",
3
+ "version": "0.6.4",
4
4
  "description": "CLI tool for publishing content and running interactive sessions via pub.blue",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "pubblue": "./dist/index.js"
8
8
  },
9
9
  "scripts": {
10
- "build": "tsup src/index.ts src/tunnel-daemon-entry.ts src/tunnel-bridge-entry.ts --format esm --dts --clean",
11
- "dev": "tsup src/index.ts src/tunnel-daemon-entry.ts src/tunnel-bridge-entry.ts --format esm --watch",
10
+ "build": "tsup src/index.ts src/live-daemon-entry.ts --format esm --dts --clean",
11
+ "dev": "tsup src/index.ts src/live-daemon-entry.ts --format esm --watch",
12
12
  "test": "vitest run",
13
13
  "test:watch": "vitest",
14
14
  "lint": "tsc --noEmit"