vent-hq 0.5.3 → 0.5.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
@@ -6368,17 +6368,15 @@ async function main() {
6368
6368
  const args = process.argv.slice(2);
6369
6369
  const command = args[0];
6370
6370
  if (!command || command === "--help" || command === "-h") {
6371
- process.stdout.write(USAGE + "\n");
6372
- process.exit(0);
6371
+ console.log(USAGE);
6372
+ return 0;
6373
6373
  }
6374
6374
  if (command === "--version" || command === "-v") {
6375
- const pkg = await import("./package-IANAK7J4.mjs");
6376
- process.stdout.write(`vent-hq ${pkg.default.version}
6377
- `);
6378
- process.exit(0);
6375
+ const pkg = await import("./package-5FVRCQRE.mjs");
6376
+ console.log(`vent-hq ${pkg.default.version}`);
6377
+ return 0;
6379
6378
  }
6380
6379
  const commandArgs = args.slice(1);
6381
- let exitCode;
6382
6380
  switch (command) {
6383
6381
  case "init": {
6384
6382
  const { values } = parseArgs({
@@ -6388,13 +6386,12 @@ async function main() {
6388
6386
  },
6389
6387
  strict: true
6390
6388
  });
6391
- exitCode = await initCommand({ apiKey: values["api-key"] });
6392
- break;
6389
+ return initCommand({ apiKey: values["api-key"] });
6393
6390
  }
6394
6391
  case "run": {
6395
6392
  if (commandArgs.includes("--help")) {
6396
- process.stdout.write(RUN_USAGE + "\n");
6397
- process.exit(0);
6393
+ console.log(RUN_USAGE);
6394
+ return 0;
6398
6395
  }
6399
6396
  const { values } = parseArgs({
6400
6397
  args: commandArgs,
@@ -6421,19 +6418,19 @@ async function main() {
6421
6418
  config = JSON.parse(values.config);
6422
6419
  } else {
6423
6420
  printError("--list requires --config or --file.");
6424
- process.exit(2);
6421
+ return 2;
6425
6422
  }
6426
6423
  } catch (err) {
6427
6424
  printError(`Invalid config JSON: ${err.message}`);
6428
- process.exit(2);
6425
+ return 2;
6429
6426
  }
6430
6427
  const tests = config.conversation_tests ?? [];
6431
6428
  for (let i = 0; i < tests.length; i++) {
6432
- process.stdout.write((tests[i].name ?? `test-${i}`) + "\n");
6429
+ console.log(tests[i].name ?? `test-${i}`);
6433
6430
  }
6434
- process.exit(0);
6431
+ return 0;
6435
6432
  }
6436
- exitCode = await runCommand({
6433
+ return runCommand({
6437
6434
  config: values.config,
6438
6435
  file: values.file,
6439
6436
  test: values.test,
@@ -6441,12 +6438,11 @@ async function main() {
6441
6438
  json: values.json,
6442
6439
  submit: values.submit || values["no-stream"]
6443
6440
  });
6444
- break;
6445
6441
  }
6446
6442
  case "status": {
6447
6443
  if (commandArgs.includes("--help") || commandArgs.length === 0) {
6448
- process.stdout.write(STATUS_USAGE + "\n");
6449
- process.exit(0);
6444
+ console.log(STATUS_USAGE);
6445
+ return 0;
6450
6446
  }
6451
6447
  const runId = commandArgs[0];
6452
6448
  const { values } = parseArgs({
@@ -6458,13 +6454,12 @@ async function main() {
6458
6454
  },
6459
6455
  strict: true
6460
6456
  });
6461
- exitCode = await statusCommand({
6457
+ return statusCommand({
6462
6458
  runId,
6463
6459
  apiKey: values["api-key"],
6464
6460
  json: values.json,
6465
6461
  stream: values.stream
6466
6462
  });
6467
- break;
6468
6463
  }
6469
6464
  case "login": {
6470
6465
  const { values } = parseArgs({
@@ -6475,21 +6470,20 @@ async function main() {
6475
6470
  },
6476
6471
  strict: true
6477
6472
  });
6478
- exitCode = await loginCommand({ apiKey: values["api-key"], status: values.status });
6479
- break;
6473
+ return loginCommand({ apiKey: values["api-key"], status: values.status });
6480
6474
  }
6481
6475
  case "logout": {
6482
- exitCode = await logoutCommand();
6483
- break;
6476
+ return logoutCommand();
6484
6477
  }
6485
6478
  default:
6486
6479
  printError(`Unknown command: ${command}`);
6487
- process.stdout.write(USAGE + "\n");
6488
- exitCode = 2;
6480
+ console.log(USAGE);
6481
+ return 2;
6489
6482
  }
6490
- process.exit(exitCode);
6491
6483
  }
6492
- main().catch((err) => {
6484
+ main().then((code) => {
6485
+ process.exitCode = code;
6486
+ }).catch((err) => {
6493
6487
  printError(err.message);
6494
- process.exit(2);
6488
+ process.exitCode = 2;
6495
6489
  });
@@ -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.5.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.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "description": "Vent CLI — CI/CD for voice AI agents",
6
6
  "bin": {