vent-hq 0.3.1 → 0.3.3

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_'.");
@@ -6085,6 +6094,13 @@ function findBinary(name) {
6085
6094
  return false;
6086
6095
  }
6087
6096
  }
6097
+ function detectActiveEditor() {
6098
+ if (process.env.CLAUDECODE) return "claude-code";
6099
+ if (process.env.CURSOR_TRACE_ID) return "cursor";
6100
+ if (process.env.CODEX) return "codex";
6101
+ if (process.env.TERM_PROGRAM === "vscode") return "cursor";
6102
+ return null;
6103
+ }
6088
6104
  var home = homedir2();
6089
6105
  var allEditors = [
6090
6106
  {
@@ -6157,8 +6173,12 @@ async function initCommand(args) {
6157
6173
  }
6158
6174
  selected = result;
6159
6175
  } else {
6160
- selected = detectedIds.length > 0 ? detectedIds : allEditors.map((e) => e.id);
6161
- printInfo(`Auto-selecting ${selected.length} coding agent(s).`);
6176
+ const activeId = detectActiveEditor();
6177
+ if (activeId) {
6178
+ selected = [activeId];
6179
+ } else {
6180
+ selected = detectedIds.length > 0 ? detectedIds : allEditors.map((e) => e.id);
6181
+ }
6162
6182
  }
6163
6183
  for (const id of selected) {
6164
6184
  const editor = allEditors.find((e) => e.id === id);
@@ -6576,7 +6596,7 @@ async function main() {
6576
6596
  process.exit(0);
6577
6597
  }
6578
6598
  if (command === "--version" || command === "-v") {
6579
- const pkg = await import("./package-ZOYF7B4B.mjs");
6599
+ const pkg = await import("./package-D5HVLPN5.mjs");
6580
6600
  process.stdout.write(`vent-hq ${pkg.default.version}
6581
6601
  `);
6582
6602
  process.exit(0);
@@ -6674,11 +6694,12 @@ async function main() {
6674
6694
  const { values } = parseArgs({
6675
6695
  args: commandArgs,
6676
6696
  options: {
6677
- "api-key": { type: "string" }
6697
+ "api-key": { type: "string" },
6698
+ status: { type: "boolean", default: false }
6678
6699
  },
6679
6700
  strict: true
6680
6701
  });
6681
- exitCode = await loginCommand({ apiKey: values["api-key"] });
6702
+ exitCode = await loginCommand({ apiKey: values["api-key"], status: values.status });
6682
6703
  break;
6683
6704
  }
6684
6705
  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.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.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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vent-hq",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Vent CLI — CI/CD for voice AI agents",
6
6
  "bin": {