@emesoft/tokenhub 0.8.12 → 0.8.13

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/bin/tokenhub.js CHANGED
@@ -6,7 +6,7 @@ import { parseDashboardArgs, runDashboard } from "../lib/dashboard.js";
6
6
  import { runDesktop } from "../lib/desktop-connect.js";
7
7
  import { modelPickerDir, uninstallModelPicker } from "../lib/model-picker.js";
8
8
  import { runOverlayInstall } from "../lib/overlay.js";
9
- import { promptTenant, runConnect, TENANT_DOMAIN } from "../lib/pair.js";
9
+ import { openBrowser, promptTenant, runConnect, TENANT_DOMAIN } from "../lib/pair.js";
10
10
  import { disconnectSettings, readSettings, settingsPath } from "../lib/settings.js";
11
11
  import { fetchUsage, formatUsage, resolveCredentials } from "../lib/usage.js";
12
12
 
@@ -99,7 +99,7 @@ async function main(argv) {
99
99
  return 1;
100
100
  }
101
101
  }
102
- return runDesktop({ poolUrl, signal: controller.signal });
102
+ return runDesktop({ poolUrl, open: openBrowser, signal: controller.signal });
103
103
  }
104
104
  if (command === "overlay") {
105
105
  return runOverlayInstall({ poolUrl: arg });
@@ -1,6 +1,6 @@
1
1
  import { hostname } from "node:os";
2
2
  import { appDataDir, fetchModels, isInstalled, writeDesktopConfig } from "./desktop.js";
3
- import { pairDevice, resolvePoolUrl } from "./pair.js";
3
+ import { openBrowser, pairDevice, resolvePoolUrl } from "./pair.js";
4
4
 
5
5
  /**
6
6
  * Pair this machine and configure Claude Desktop's third-party inference so the app points at the pool: the models
@@ -22,7 +22,7 @@ import { pairDevice, resolvePoolUrl } from "./pair.js";
22
22
  export async function runDesktop({
23
23
  poolUrl,
24
24
  log = console.log,
25
- open,
25
+ open = openBrowser,
26
26
  signal,
27
27
  deviceName = hostname(),
28
28
  intervalOverrideMs,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emesoft/tokenhub",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "description": "Connect Claude Code to a TokenHub pool in one command, and track your spend from the terminal",
5
5
  "keywords": [
6
6
  "claude",