vent-hq 0.3.0 → 0.3.2

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
@@ -5317,6 +5317,15 @@ async function deviceAuthFlow() {
5317
5317
 
5318
5318
  // src/commands/login.ts
5319
5319
  async function loginCommand(args) {
5320
+ if (args.status) {
5321
+ const key = await loadApiKey();
5322
+ if (key) {
5323
+ printSuccess(`Logged in (${key.slice(0, 12)}...)`);
5324
+ return 0;
5325
+ }
5326
+ printInfo("Not logged in. Run `npx vent-hq login`.");
5327
+ return 1;
5328
+ }
5320
5329
  if (args.apiKey) {
5321
5330
  if (!validateApiKeyFormat(args.apiKey)) {
5322
5331
  printError("Invalid API key. Keys start with 'vent_'.");
@@ -5326,10 +5335,6 @@ async function loginCommand(args) {
5326
5335
  printSuccess("API key saved to ~/.vent/credentials");
5327
5336
  return 0;
5328
5337
  }
5329
- if (!process.stdin.isTTY) {
5330
- printError("No TTY detected. Pass --api-key or set VENT_API_KEY.");
5331
- return 2;
5332
- }
5333
5338
  const result = await deviceAuthFlow();
5334
5339
  if (result.ok) {
5335
5340
  printSuccess("Logged in! API key saved to ~/.vent/credentials");
@@ -6136,10 +6141,6 @@ async function initCommand(args) {
6136
6141
  } else if (key) {
6137
6142
  printSuccess("Authenticated.");
6138
6143
  } else {
6139
- if (!process.stdin.isTTY) {
6140
- printError("No API key found. Pass --api-key or set VENT_API_KEY.");
6141
- return 2;
6142
- }
6143
6144
  const result = await deviceAuthFlow();
6144
6145
  if (!result.ok) {
6145
6146
  printError("Authentication failed. Run `npx vent-hq init` to try again.");
@@ -6148,18 +6149,25 @@ async function initCommand(args) {
6148
6149
  printSuccess("Logged in! API key saved to ~/.vent/credentials");
6149
6150
  }
6150
6151
  const detectedIds = allEditors.filter((e) => e.detect()).map((e) => e.id);
6151
- const selected = await Lt2({
6152
- message: "Which coding agent do you use?",
6153
- options: allEditors.map((e) => ({
6154
- value: e.id,
6155
- label: e.name,
6156
- hint: detectedIds.includes(e.id) ? void 0 : "not detected"
6157
- })),
6158
- initialValues: detectedIds
6159
- });
6160
- if (Ct(selected)) {
6161
- printInfo("Cancelled.");
6162
- return 0;
6152
+ let selected;
6153
+ if (process.stdin.isTTY) {
6154
+ const result = await Lt2({
6155
+ message: "Which coding agent do you use?",
6156
+ options: allEditors.map((e) => ({
6157
+ value: e.id,
6158
+ label: e.name,
6159
+ hint: detectedIds.includes(e.id) ? void 0 : "not detected"
6160
+ })),
6161
+ initialValues: detectedIds
6162
+ });
6163
+ if (Ct(result)) {
6164
+ printInfo("Cancelled.");
6165
+ return 0;
6166
+ }
6167
+ selected = result;
6168
+ } else {
6169
+ selected = detectedIds.length > 0 ? detectedIds : allEditors.map((e) => e.id);
6170
+ printInfo(`Auto-selecting ${selected.length} coding agent(s).`);
6163
6171
  }
6164
6172
  for (const id of selected) {
6165
6173
  const editor = allEditors.find((e) => e.id === id);
@@ -6577,7 +6585,7 @@ async function main() {
6577
6585
  process.exit(0);
6578
6586
  }
6579
6587
  if (command === "--version" || command === "-v") {
6580
- const pkg = await import("./package-AAJKQ4O3.mjs");
6588
+ const pkg = await import("./package-EJBYITGH.mjs");
6581
6589
  process.stdout.write(`vent-hq ${pkg.default.version}
6582
6590
  `);
6583
6591
  process.exit(0);
@@ -6675,11 +6683,12 @@ async function main() {
6675
6683
  const { values } = parseArgs({
6676
6684
  args: commandArgs,
6677
6685
  options: {
6678
- "api-key": { type: "string" }
6686
+ "api-key": { type: "string" },
6687
+ status: { type: "boolean", default: false }
6679
6688
  },
6680
6689
  strict: true
6681
6690
  });
6682
- exitCode = await loginCommand({ apiKey: values["api-key"] });
6691
+ exitCode = await loginCommand({ apiKey: values["api-key"], status: values.status });
6683
6692
  break;
6684
6693
  }
6685
6694
  case "logout": {
@@ -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.3.2",
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.3.1",
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.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "Vent CLI — CI/CD for voice AI agents",
6
6
  "bin": {