vent-hq 0.7.2 → 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 +19 -5
- package/dist/package-ILIQGITC.mjs +51 -0
- package/dist/package-PLKYMAN6.mjs +51 -0
- package/package.json +1 -1
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
|
});
|
|
@@ -363,15 +365,23 @@ var RelayClient = class {
|
|
|
363
365
|
const payload = event.data instanceof ArrayBuffer ? new Uint8Array(event.data) : new TextEncoder().encode(event.data);
|
|
364
366
|
this.sendBinaryFrame(connId, payload);
|
|
365
367
|
});
|
|
366
|
-
|
|
368
|
+
let cleaned = false;
|
|
369
|
+
const cleanup = (reason) => {
|
|
370
|
+
if (cleaned) return;
|
|
371
|
+
cleaned = true;
|
|
372
|
+
this.emit("log", `[relay] local WS cleanup for ${connId}: ${reason ?? "unknown"}`);
|
|
367
373
|
if (localWs.readyState !== WebSocket.CLOSED) localWs.close();
|
|
368
374
|
this.localConnections.delete(connId);
|
|
369
375
|
this.sendControlMessage({ type: "close", conn_id: connId });
|
|
370
376
|
};
|
|
371
|
-
localWs.addEventListener("close", cleanup);
|
|
372
|
-
localWs.addEventListener("error",
|
|
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
|
+
});
|
|
373
383
|
} catch (err) {
|
|
374
|
-
|
|
384
|
+
this.emit("log", `[relay] Failed to connect local agent for ${connId}: ${err}`);
|
|
375
385
|
}
|
|
376
386
|
}
|
|
377
387
|
};
|
|
@@ -386,6 +396,10 @@ async function startRelay(relayConfig) {
|
|
|
386
396
|
healthEndpoint: relayConfig.health_endpoint
|
|
387
397
|
};
|
|
388
398
|
const client = new RelayClient(clientConfig);
|
|
399
|
+
client.on("log", (msg) => {
|
|
400
|
+
process.stderr.write(`${msg}
|
|
401
|
+
`);
|
|
402
|
+
});
|
|
389
403
|
await client.activate();
|
|
390
404
|
await client.connect();
|
|
391
405
|
let agentProcess = null;
|
|
@@ -6800,7 +6814,7 @@ async function main() {
|
|
|
6800
6814
|
return 0;
|
|
6801
6815
|
}
|
|
6802
6816
|
if (command === "--version" || command === "-v") {
|
|
6803
|
-
const pkg = await import("./package-
|
|
6817
|
+
const pkg = await import("./package-PLKYMAN6.mjs");
|
|
6804
6818
|
console.log(`vent-hq ${pkg.default.version}`);
|
|
6805
6819
|
return 0;
|
|
6806
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.3",
|
|
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
|
+
};
|
|
@@ -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
|
+
};
|