vent-hq 0.7.3 → 0.7.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.
package/dist/index.mjs CHANGED
@@ -352,10 +352,12 @@ var RelayClient = class {
352
352
  }
353
353
  handleNewConnection(connId) {
354
354
  const agentUrl = `ws://localhost:${this.config.agentPort}`;
355
+ this.emit("log", `[relay] new_connection ${connId} \u2192 connecting to ${agentUrl}`);
355
356
  try {
356
357
  const localWs = new WebSocket(agentUrl);
357
358
  localWs.binaryType = "arraybuffer";
358
359
  localWs.addEventListener("open", () => {
360
+ this.emit("log", `[relay] local WS open for ${connId}`);
359
361
  this.sendControlMessage({ type: "open_ack", conn_id: connId });
360
362
  this.localConnections.set(connId, { local: localWs, connId });
361
363
  });
@@ -364,17 +366,22 @@ var RelayClient = class {
364
366
  this.sendBinaryFrame(connId, payload);
365
367
  });
366
368
  let cleaned = false;
367
- const cleanup = () => {
369
+ const cleanup = (reason) => {
368
370
  if (cleaned) return;
369
371
  cleaned = true;
372
+ this.emit("log", `[relay] local WS cleanup for ${connId}: ${reason ?? "unknown"}`);
370
373
  if (localWs.readyState !== WebSocket.CLOSED) localWs.close();
371
374
  this.localConnections.delete(connId);
372
375
  this.sendControlMessage({ type: "close", conn_id: connId });
373
376
  };
374
- localWs.addEventListener("close", cleanup);
375
- localWs.addEventListener("error", cleanup);
377
+ localWs.addEventListener("close", () => cleanup("close"));
378
+ localWs.addEventListener("error", (ev) => {
379
+ const msg = ev.message ?? "unknown error";
380
+ this.emit("log", `[relay] local WS error for ${connId}: ${msg}`);
381
+ cleanup(`error: ${msg}`);
382
+ });
376
383
  } catch (err) {
377
- console.error(`[relay] Failed to connect local agent for ${connId}:`, err);
384
+ this.emit("log", `[relay] Failed to connect local agent for ${connId}: ${err}`);
378
385
  }
379
386
  }
380
387
  };
@@ -389,6 +396,10 @@ async function startRelay(relayConfig) {
389
396
  healthEndpoint: relayConfig.health_endpoint
390
397
  };
391
398
  const client = new RelayClient(clientConfig);
399
+ client.on("log", (msg) => {
400
+ process.stderr.write(`${msg}
401
+ `);
402
+ });
392
403
  await client.activate();
393
404
  await client.connect();
394
405
  let agentProcess = null;
@@ -6803,7 +6814,7 @@ async function main() {
6803
6814
  return 0;
6804
6815
  }
6805
6816
  if (command === "--version" || command === "-v") {
6806
- const pkg = await import("./package-ILIQGITC.mjs");
6817
+ const pkg = await import("./package-PLKYMAN6.mjs");
6807
6818
  console.log(`vent-hq ${pkg.default.version}`);
6808
6819
  return 0;
6809
6820
  }
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+ import "./chunk-U4M3XDTH.mjs";
3
+
4
+ // package.json
5
+ var package_default = {
6
+ name: "vent-hq",
7
+ version: "0.7.4",
8
+ type: "module",
9
+ description: "Vent CLI \u2014 CI/CD for voice AI agents",
10
+ bin: {
11
+ "vent-hq": "dist/index.mjs"
12
+ },
13
+ files: [
14
+ "dist"
15
+ ],
16
+ scripts: {
17
+ build: "node scripts/bundle.mjs",
18
+ clean: "rm -rf dist"
19
+ },
20
+ keywords: [
21
+ "vent",
22
+ "cli",
23
+ "voice",
24
+ "agent",
25
+ "testing",
26
+ "ci-cd"
27
+ ],
28
+ license: "MIT",
29
+ publishConfig: {
30
+ access: "public"
31
+ },
32
+ repository: {
33
+ type: "git",
34
+ url: "https://github.com/vent-hq/vent",
35
+ directory: "packages/cli"
36
+ },
37
+ homepage: "https://ventmcp.dev",
38
+ dependencies: {
39
+ "@clack/prompts": "^1.1.0",
40
+ ws: "^8.18.0"
41
+ },
42
+ devDependencies: {
43
+ "@types/ws": "^8.5.0",
44
+ "@vent/relay-client": "workspace:*",
45
+ "@vent/shared": "workspace:*",
46
+ esbuild: "^0.24.0"
47
+ }
48
+ };
49
+ export {
50
+ package_default as default
51
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vent-hq",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "type": "module",
5
5
  "description": "Vent CLI — CI/CD for voice AI agents",
6
6
  "bin": {