vent-hq 0.7.6 → 0.7.7
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 +34 -17
- package/dist/package-PU7T6XCQ.mjs +51 -0
- package/package.json +9 -9
- package/LICENSE +0 -21
package/dist/index.mjs
CHANGED
|
@@ -66,6 +66,7 @@ import { parseArgs } from "node:util";
|
|
|
66
66
|
|
|
67
67
|
// src/commands/run.ts
|
|
68
68
|
import * as fs2 from "node:fs/promises";
|
|
69
|
+
import { writeFileSync as writeFileSync2 } from "node:fs";
|
|
69
70
|
import * as net from "node:net";
|
|
70
71
|
|
|
71
72
|
// src/lib/config.ts
|
|
@@ -441,7 +442,19 @@ async function waitForHealth(port, endpoint, timeoutMs = 3e4) {
|
|
|
441
442
|
}
|
|
442
443
|
|
|
443
444
|
// src/lib/output.ts
|
|
445
|
+
import { writeFileSync } from "node:fs";
|
|
444
446
|
var isTTY = process.stdout.isTTY;
|
|
447
|
+
function stdoutSync(data) {
|
|
448
|
+
if (isTTY) {
|
|
449
|
+
process.stdout.write(data);
|
|
450
|
+
} else {
|
|
451
|
+
try {
|
|
452
|
+
writeFileSync("/dev/stdout", data);
|
|
453
|
+
} catch {
|
|
454
|
+
process.stdout.write(data);
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
445
458
|
var bold = (s) => isTTY ? `\x1B[1m${s}\x1B[0m` : s;
|
|
446
459
|
var dim = (s) => isTTY ? `\x1B[2m${s}\x1B[0m` : s;
|
|
447
460
|
var green = (s) => isTTY ? `\x1B[32m${s}\x1B[0m` : s;
|
|
@@ -449,7 +462,7 @@ var red = (s) => isTTY ? `\x1B[31m${s}\x1B[0m` : s;
|
|
|
449
462
|
var blue = (s) => isTTY ? `\x1B[34m${s}\x1B[0m` : s;
|
|
450
463
|
function printEvent(event, jsonMode) {
|
|
451
464
|
if (jsonMode) {
|
|
452
|
-
|
|
465
|
+
stdoutSync(JSON.stringify(event) + "\n");
|
|
453
466
|
return;
|
|
454
467
|
}
|
|
455
468
|
if (!isTTY) {
|
|
@@ -495,7 +508,7 @@ function printTestResult(meta) {
|
|
|
495
508
|
if (result?.latency?.p50_ttfw_ms != null) {
|
|
496
509
|
parts.push(`p50: ${result.latency.p50_ttfw_ms}ms`);
|
|
497
510
|
}
|
|
498
|
-
|
|
511
|
+
stdoutSync(parts.join(" ") + "\n");
|
|
499
512
|
}
|
|
500
513
|
function printRunComplete(meta) {
|
|
501
514
|
const status = meta.status;
|
|
@@ -505,18 +518,18 @@ function printRunComplete(meta) {
|
|
|
505
518
|
const total = meta.total_tests ?? counts?.total;
|
|
506
519
|
const passed = meta.passed_tests ?? counts?.passed;
|
|
507
520
|
const failed = meta.failed_tests ?? counts?.failed;
|
|
508
|
-
|
|
521
|
+
stdoutSync("\n");
|
|
509
522
|
if (status === "pass") {
|
|
510
|
-
|
|
523
|
+
stdoutSync(green(bold("Run passed")) + "\n");
|
|
511
524
|
} else {
|
|
512
|
-
|
|
525
|
+
stdoutSync(red(bold("Run failed")) + "\n");
|
|
513
526
|
}
|
|
514
527
|
if (total != null) {
|
|
515
528
|
const parts = [];
|
|
516
529
|
if (passed) parts.push(green(`${passed} passed`));
|
|
517
530
|
if (failed) parts.push(red(`${failed} failed`));
|
|
518
531
|
parts.push(`${total} total`);
|
|
519
|
-
|
|
532
|
+
stdoutSync(parts.join(dim(" \xB7 ")) + "\n");
|
|
520
533
|
}
|
|
521
534
|
}
|
|
522
535
|
function printSummary(testResults, runComplete, runId, jsonMode) {
|
|
@@ -544,19 +557,19 @@ function printSummary(testResults, runComplete, runId, jsonMode) {
|
|
|
544
557
|
check: `npx vent-hq status ${runId} --json`
|
|
545
558
|
};
|
|
546
559
|
if (jsonMode || !isTTY) {
|
|
547
|
-
|
|
560
|
+
stdoutSync(JSON.stringify(summaryData) + "\n");
|
|
548
561
|
return;
|
|
549
562
|
}
|
|
550
563
|
const failures = allTests.filter((t2) => t2.status && t2.status !== "completed" && t2.status !== "pass");
|
|
551
564
|
if (failures.length > 0) {
|
|
552
|
-
|
|
565
|
+
stdoutSync("\n" + bold("Failed tests:") + "\n");
|
|
553
566
|
for (const t2 of failures) {
|
|
554
567
|
const duration = t2.duration_ms != null ? (t2.duration_ms / 1e3).toFixed(1) + "s" : "\u2014";
|
|
555
568
|
const parts = [red("\u2718"), bold(t2.name), dim(duration)];
|
|
556
569
|
if (t2.intent_accuracy != null) {
|
|
557
570
|
parts.push(`intent: ${t2.intent_accuracy}`);
|
|
558
571
|
}
|
|
559
|
-
|
|
572
|
+
stdoutSync(" " + parts.join(" ") + "\n");
|
|
560
573
|
}
|
|
561
574
|
}
|
|
562
575
|
process.stderr.write(dim(`Full details: vent status ${runId} --json`) + "\n");
|
|
@@ -566,7 +579,7 @@ function printError(message) {
|
|
|
566
579
|
`;
|
|
567
580
|
process.stderr.write(line);
|
|
568
581
|
if (!isTTY) {
|
|
569
|
-
|
|
582
|
+
stdoutSync(line);
|
|
570
583
|
}
|
|
571
584
|
}
|
|
572
585
|
function printInfo(message) {
|
|
@@ -755,12 +768,16 @@ async function runCommand(args) {
|
|
|
755
768
|
if (runCompleteData) {
|
|
756
769
|
printSummary(testResults, runCompleteData, run_id, args.json);
|
|
757
770
|
} else if (!isTTY2) {
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
771
|
+
try {
|
|
772
|
+
writeFileSync2("/dev/stdout", JSON.stringify({
|
|
773
|
+
run_id,
|
|
774
|
+
status: exitCode === 0 ? "pass" : "error",
|
|
775
|
+
error: "Stream ended without run_complete event",
|
|
776
|
+
check: `npx vent-hq status ${run_id} --json`
|
|
777
|
+
}) + "\n");
|
|
778
|
+
} catch {
|
|
779
|
+
process.stdout.write(JSON.stringify({ run_id, status: "error" }) + "\n");
|
|
780
|
+
}
|
|
764
781
|
}
|
|
765
782
|
log2(`exiting with code ${exitCode}`);
|
|
766
783
|
return exitCode;
|
|
@@ -6813,7 +6830,7 @@ async function main() {
|
|
|
6813
6830
|
return 0;
|
|
6814
6831
|
}
|
|
6815
6832
|
if (command === "--version" || command === "-v") {
|
|
6816
|
-
const pkg = await import("./package-
|
|
6833
|
+
const pkg = await import("./package-PU7T6XCQ.mjs");
|
|
6817
6834
|
console.log(`vent-hq ${pkg.default.version}`);
|
|
6818
6835
|
return 0;
|
|
6819
6836
|
}
|
|
@@ -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.7",
|
|
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
|
+
"version": "0.7.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Vent CLI — CI/CD for voice AI agents",
|
|
6
6
|
"bin": {
|
|
@@ -9,6 +9,10 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "node scripts/bundle.mjs",
|
|
14
|
+
"clean": "rm -rf dist"
|
|
15
|
+
},
|
|
12
16
|
"keywords": [
|
|
13
17
|
"vent",
|
|
14
18
|
"cli",
|
|
@@ -33,12 +37,8 @@
|
|
|
33
37
|
},
|
|
34
38
|
"devDependencies": {
|
|
35
39
|
"@types/ws": "^8.5.0",
|
|
36
|
-
"
|
|
37
|
-
"@vent/
|
|
38
|
-
"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "node scripts/bundle.mjs",
|
|
42
|
-
"clean": "rm -rf dist"
|
|
40
|
+
"@vent/relay-client": "workspace:*",
|
|
41
|
+
"@vent/shared": "workspace:*",
|
|
42
|
+
"esbuild": "^0.24.0"
|
|
43
43
|
}
|
|
44
|
-
}
|
|
44
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Stephan Gazarov
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|