vent-hq 0.8.30 → 0.8.32
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
|
@@ -759,41 +759,44 @@ async function runCommand(args) {
|
|
|
759
759
|
}
|
|
760
760
|
debug(`filtered to test: ${args.test}`);
|
|
761
761
|
}
|
|
762
|
-
const connAdapter = config.connection?.adapter;
|
|
763
762
|
const cfgPlatform = config;
|
|
764
|
-
const
|
|
763
|
+
const connAdapter = config.connection?.adapter;
|
|
764
|
+
const adapterEnvDefaults = {
|
|
765
765
|
vapi: { apiKeyEnv: "VAPI_API_KEY", agentIdEnv: "VAPI_ASSISTANT_ID" },
|
|
766
766
|
retell: { apiKeyEnv: "RETELL_API_KEY", agentIdEnv: "RETELL_AGENT_ID" },
|
|
767
767
|
elevenlabs: { apiKeyEnv: "ELEVENLABS_API_KEY", agentIdEnv: "ELEVENLABS_AGENT_ID" },
|
|
768
|
-
bland: { apiKeyEnv: "BLAND_API_KEY", agentIdEnv: "BLAND_PATHWAY_ID" }
|
|
769
|
-
livekit: { apiKeyEnv: "LIVEKIT_API_KEY" },
|
|
770
|
-
webrtc: { apiKeyEnv: "LIVEKIT_API_KEY" }
|
|
768
|
+
bland: { apiKeyEnv: "BLAND_API_KEY", agentIdEnv: "BLAND_PATHWAY_ID" }
|
|
771
769
|
};
|
|
772
|
-
const
|
|
773
|
-
if (
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
770
|
+
const envDefaults = connAdapter ? adapterEnvDefaults[connAdapter] : void 0;
|
|
771
|
+
if (envDefaults) {
|
|
772
|
+
if (!cfgPlatform.connection.platform) {
|
|
773
|
+
cfgPlatform.connection.platform = { provider: connAdapter };
|
|
774
|
+
}
|
|
775
|
+
const plat = cfgPlatform.connection.platform;
|
|
776
|
+
if (!plat.api_key) {
|
|
777
|
+
const envName = plat.api_key_env ?? envDefaults.apiKeyEnv;
|
|
778
|
+
const resolved = process.env[envName];
|
|
779
|
+
if (!resolved) {
|
|
780
|
+
printError(`${connAdapter} requires ${envName} environment variable. Set it locally \u2014 the CLI forwards it to the remote worker.`);
|
|
781
|
+
return 2;
|
|
779
782
|
}
|
|
780
|
-
|
|
781
|
-
debug(`resolved
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
cfgPlatform.connection.platform = {};
|
|
783
|
+
plat.api_key = resolved;
|
|
784
|
+
debug(`resolved api_key from ${envName}`);
|
|
785
|
+
}
|
|
786
|
+
if (!plat.agent_id) {
|
|
787
|
+
const envName = plat.agent_id_env ?? envDefaults.agentIdEnv;
|
|
788
|
+
const resolved = process.env[envName];
|
|
789
|
+
if (resolved) {
|
|
790
|
+
plat.agent_id = resolved;
|
|
791
|
+
debug(`resolved agent_id from ${envName}`);
|
|
790
792
|
}
|
|
791
|
-
cfgPlatform.connection.platform.agent_id = resolved;
|
|
792
|
-
debug(`resolved platform agent ID from ${envName}`);
|
|
793
793
|
}
|
|
794
794
|
}
|
|
795
795
|
if (connAdapter === "webrtc" || connAdapter === "livekit") {
|
|
796
|
-
|
|
796
|
+
if (!cfgPlatform.connection.platform) {
|
|
797
|
+
cfgPlatform.connection.platform = { provider: "livekit" };
|
|
798
|
+
}
|
|
799
|
+
const plat = cfgPlatform.connection.platform;
|
|
797
800
|
if (!plat.livekit_url) {
|
|
798
801
|
const url = process.env["LIVEKIT_URL"];
|
|
799
802
|
if (!url) {
|
|
@@ -802,6 +805,14 @@ async function runCommand(args) {
|
|
|
802
805
|
}
|
|
803
806
|
plat.livekit_url = url;
|
|
804
807
|
}
|
|
808
|
+
if (!plat.api_key) {
|
|
809
|
+
const key = process.env[plat.api_key_env ?? "LIVEKIT_API_KEY"];
|
|
810
|
+
if (!key) {
|
|
811
|
+
printError("LiveKit adapter requires LIVEKIT_API_KEY environment variable.");
|
|
812
|
+
return 2;
|
|
813
|
+
}
|
|
814
|
+
plat.api_key = key;
|
|
815
|
+
}
|
|
805
816
|
if (!plat.api_secret) {
|
|
806
817
|
const secret = process.env["LIVEKIT_API_SECRET"];
|
|
807
818
|
if (!secret) {
|
|
@@ -810,9 +821,6 @@ async function runCommand(args) {
|
|
|
810
821
|
}
|
|
811
822
|
plat.api_secret = secret;
|
|
812
823
|
}
|
|
813
|
-
if (!cfgPlatform.connection.platform) {
|
|
814
|
-
cfgPlatform.connection.platform = { provider: "livekit", ...plat };
|
|
815
|
-
}
|
|
816
824
|
debug("resolved LiveKit credentials from local env");
|
|
817
825
|
}
|
|
818
826
|
const adapterForLimit = config.connection?.adapter;
|
|
@@ -6769,7 +6777,7 @@ async function main() {
|
|
|
6769
6777
|
return 0;
|
|
6770
6778
|
}
|
|
6771
6779
|
if (command === "--version" || command === "-v") {
|
|
6772
|
-
const pkg = await import("./package-
|
|
6780
|
+
const pkg = await import("./package-6XGQTGZP.mjs");
|
|
6773
6781
|
console.log(`vent-hq ${pkg.default.version}`);
|
|
6774
6782
|
return 0;
|
|
6775
6783
|
}
|
|
@@ -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.8.31",
|
|
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
|
+
};
|