vent-hq 0.3.0 → 0.3.1
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 +20 -21
- package/dist/package-ZOYF7B4B.mjs +51 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5326,10 +5326,6 @@ async function loginCommand(args) {
|
|
|
5326
5326
|
printSuccess("API key saved to ~/.vent/credentials");
|
|
5327
5327
|
return 0;
|
|
5328
5328
|
}
|
|
5329
|
-
if (!process.stdin.isTTY) {
|
|
5330
|
-
printError("No TTY detected. Pass --api-key or set VENT_API_KEY.");
|
|
5331
|
-
return 2;
|
|
5332
|
-
}
|
|
5333
5329
|
const result = await deviceAuthFlow();
|
|
5334
5330
|
if (result.ok) {
|
|
5335
5331
|
printSuccess("Logged in! API key saved to ~/.vent/credentials");
|
|
@@ -6136,10 +6132,6 @@ async function initCommand(args) {
|
|
|
6136
6132
|
} else if (key) {
|
|
6137
6133
|
printSuccess("Authenticated.");
|
|
6138
6134
|
} 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
6135
|
const result = await deviceAuthFlow();
|
|
6144
6136
|
if (!result.ok) {
|
|
6145
6137
|
printError("Authentication failed. Run `npx vent-hq init` to try again.");
|
|
@@ -6148,18 +6140,25 @@ async function initCommand(args) {
|
|
|
6148
6140
|
printSuccess("Logged in! API key saved to ~/.vent/credentials");
|
|
6149
6141
|
}
|
|
6150
6142
|
const detectedIds = allEditors.filter((e) => e.detect()).map((e) => e.id);
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6143
|
+
let selected;
|
|
6144
|
+
if (process.stdin.isTTY) {
|
|
6145
|
+
const result = await Lt2({
|
|
6146
|
+
message: "Which coding agent do you use?",
|
|
6147
|
+
options: allEditors.map((e) => ({
|
|
6148
|
+
value: e.id,
|
|
6149
|
+
label: e.name,
|
|
6150
|
+
hint: detectedIds.includes(e.id) ? void 0 : "not detected"
|
|
6151
|
+
})),
|
|
6152
|
+
initialValues: detectedIds
|
|
6153
|
+
});
|
|
6154
|
+
if (Ct(result)) {
|
|
6155
|
+
printInfo("Cancelled.");
|
|
6156
|
+
return 0;
|
|
6157
|
+
}
|
|
6158
|
+
selected = result;
|
|
6159
|
+
} else {
|
|
6160
|
+
selected = detectedIds.length > 0 ? detectedIds : allEditors.map((e) => e.id);
|
|
6161
|
+
printInfo(`Auto-selecting ${selected.length} coding agent(s).`);
|
|
6163
6162
|
}
|
|
6164
6163
|
for (const id of selected) {
|
|
6165
6164
|
const editor = allEditors.find((e) => e.id === id);
|
|
@@ -6577,7 +6576,7 @@ async function main() {
|
|
|
6577
6576
|
process.exit(0);
|
|
6578
6577
|
}
|
|
6579
6578
|
if (command === "--version" || command === "-v") {
|
|
6580
|
-
const pkg = await import("./package-
|
|
6579
|
+
const pkg = await import("./package-ZOYF7B4B.mjs");
|
|
6581
6580
|
process.stdout.write(`vent-hq ${pkg.default.version}
|
|
6582
6581
|
`);
|
|
6583
6582
|
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.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
|
+
};
|