@sleep2agi/commhub-server 0.5.0-preview.23 → 0.5.0-preview.24

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +8 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleep2agi/commhub-server",
3
- "version": "0.5.0-preview.23",
3
+ "version": "0.5.0-preview.24",
4
4
  "description": "CommHub MCP Server — AI Agent communication hub with SSE push, MCP protocol, and REST API",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/index.ts CHANGED
@@ -432,15 +432,20 @@ Bun.serve({
432
432
  if (url.pathname === "/health") {
433
433
  const count = db.query<{ cnt: number }, []>("SELECT COUNT(*) as cnt FROM sessions").get();
434
434
  const sse = getSSEStats();
435
+ const license = db.query<any, []>("SELECT type, expires_at FROM licenses LIMIT 1").get();
435
436
  return withCors(req, Response.json({
436
437
  ok: true,
437
- version: "0.4.1",
438
+ version: "1.0.0-preview",
439
+ api_version: "v3",
438
440
  transport: "streamable-http",
439
- sessions: count?.cnt ?? 0,
441
+ sessions_count: count?.cnt ?? 0,
440
442
  sse_connections: sse.total,
441
443
  sse_sessions: sse.sessions,
442
444
  auth: AUTH_TOKEN ? "enabled" : "disabled",
443
- uptime: process.uptime(),
445
+ v3_auth: true,
446
+ multi_network: true,
447
+ license: license?.type || "none",
448
+ uptime: Math.floor(process.uptime()),
444
449
  }));
445
450
  }
446
451