vent-hq 0.4.4 → 0.4.5
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 +13 -1
- package/dist/package-7YSGSSFT.mjs +51 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -512,6 +512,9 @@ function printSuccess(message) {
|
|
|
512
512
|
|
|
513
513
|
// src/commands/run.ts
|
|
514
514
|
async function runCommand(args) {
|
|
515
|
+
const dbg = (label) => process.stdout.write(`[vent:debug] ${label}
|
|
516
|
+
`);
|
|
517
|
+
dbg("runCommand:start");
|
|
515
518
|
const apiKey = args.apiKey ?? await loadApiKey();
|
|
516
519
|
if (!apiKey) {
|
|
517
520
|
printError("No API key found. Set VENT_API_KEY, run `npx vent-hq login`, or pass --api-key.");
|
|
@@ -558,6 +561,7 @@ async function runCommand(args) {
|
|
|
558
561
|
const freePort = await findFreePort();
|
|
559
562
|
cfg.connection.agent_port = freePort;
|
|
560
563
|
}
|
|
564
|
+
dbg("submit:start");
|
|
561
565
|
printInfo("Submitting run\u2026");
|
|
562
566
|
let submitResult;
|
|
563
567
|
try {
|
|
@@ -575,6 +579,7 @@ async function runCommand(args) {
|
|
|
575
579
|
printError("Server returned no run_id. Response: " + JSON.stringify(submitResult));
|
|
576
580
|
return 2;
|
|
577
581
|
}
|
|
582
|
+
dbg(`submit:done run_id=${run_id} has_relay=${!!submitResult.relay_config}`);
|
|
578
583
|
printInfo(`Run ${run_id} created.`);
|
|
579
584
|
if (args.submit) {
|
|
580
585
|
if (submitResult.relay_config) {
|
|
@@ -594,15 +599,19 @@ async function runCommand(args) {
|
|
|
594
599
|
}
|
|
595
600
|
let relay = null;
|
|
596
601
|
if (submitResult.relay_config) {
|
|
602
|
+
dbg("relay:start");
|
|
597
603
|
printInfo("Starting relay for local agent\u2026");
|
|
598
604
|
try {
|
|
599
605
|
relay = await startRelay(submitResult.relay_config);
|
|
606
|
+
dbg("relay:connected");
|
|
600
607
|
printInfo("Relay connected, agent started.");
|
|
601
608
|
} catch (err) {
|
|
609
|
+
dbg(`relay:error ${err.message}`);
|
|
602
610
|
printError(`Relay failed: ${err.message}`);
|
|
603
611
|
return 2;
|
|
604
612
|
}
|
|
605
613
|
}
|
|
614
|
+
dbg("stream:start");
|
|
606
615
|
printInfo(`Streaming results for run ${run_id}\u2026`);
|
|
607
616
|
const abortController = new AbortController();
|
|
608
617
|
let exitCode = 0;
|
|
@@ -615,6 +624,7 @@ async function runCommand(args) {
|
|
|
615
624
|
process.on("SIGTERM", onSignal);
|
|
616
625
|
try {
|
|
617
626
|
for await (const event of streamRunEvents(run_id, apiKey, abortController.signal)) {
|
|
627
|
+
dbg(`event:${event.event_type} meta_keys=${Object.keys(event.metadata_json ?? {}).join(",")}`);
|
|
618
628
|
printEvent(event, args.json);
|
|
619
629
|
if (event.event_type === "test_completed") {
|
|
620
630
|
testResults.push(event);
|
|
@@ -638,12 +648,14 @@ async function runCommand(args) {
|
|
|
638
648
|
await relay.cleanup();
|
|
639
649
|
}
|
|
640
650
|
}
|
|
651
|
+
dbg(`summary: testResults=${testResults.length} runComplete=${!!runCompleteData} exitCode=${exitCode}`);
|
|
641
652
|
if (runCompleteData && testResults.length > 0) {
|
|
642
653
|
printSummary(testResults, runCompleteData, run_id, args.json);
|
|
643
654
|
} else if (testResults.length === 0 && exitCode !== 2) {
|
|
644
655
|
process.stdout.write(`run_id: ${run_id} \u2014 no test results received
|
|
645
656
|
`);
|
|
646
657
|
}
|
|
658
|
+
dbg(`exit:${exitCode}`);
|
|
647
659
|
return exitCode;
|
|
648
660
|
}
|
|
649
661
|
function findFreePort() {
|
|
@@ -6273,7 +6285,7 @@ async function main() {
|
|
|
6273
6285
|
process.exit(0);
|
|
6274
6286
|
}
|
|
6275
6287
|
if (command === "--version" || command === "-v") {
|
|
6276
|
-
const pkg = await import("./package-
|
|
6288
|
+
const pkg = await import("./package-7YSGSSFT.mjs");
|
|
6277
6289
|
process.stdout.write(`vent-hq ${pkg.default.version}
|
|
6278
6290
|
`);
|
|
6279
6291
|
process.exit(0);
|
|
@@ -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.4.5",
|
|
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
|
+
};
|