@vapi-network/cli 0.11.0 → 0.12.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.
@@ -0,0 +1,7 @@
1
+ import { type CliDependencies, type CliIo } from "./cli.js";
2
+ export type CodeProcessSignals = {
3
+ on(signal: NodeJS.Signals, listener: () => void): unknown;
4
+ removeListener(signal: NodeJS.Signals, listener: () => void): unknown;
5
+ };
6
+ export declare function claudeCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<number>;
7
+ export declare function codexCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<number>;
package/dist/code.d.ts ADDED
@@ -0,0 +1,23 @@
1
+ import type { ChildProcess } from "node:child_process";
2
+ import { type CliDependencies, type CliIo } from "./cli.js";
3
+ export declare const VAPI_CODEX_PROVIDER = "vapi";
4
+ export declare const VAPI_CODEX_PROFILE = "vapi";
5
+ export declare const VAPI_CODEX_DEFAULT_MODEL = "venice/openai-gpt-61-sol";
6
+ export declare const VAPI_ROUTER_KEY_ENV = "VAPI_ROUTER_KEY";
7
+ export type CodeChild = Pick<ChildProcess, "once" | "kill">;
8
+ export type CodeSpawn = (command: string, args: string[], options: {
9
+ env: NodeJS.ProcessEnv;
10
+ stdio: "inherit";
11
+ }) => CodeChild;
12
+ export declare function codexConfigPath(env: NodeJS.ProcessEnv, home: string): string;
13
+ export declare function hasVapiCodexProfile(contents: string): boolean;
14
+ type BinaryOptions = {
15
+ env: NodeJS.ProcessEnv;
16
+ platform?: NodeJS.Platform;
17
+ isExecutable?: (path: string) => Promise<boolean>;
18
+ realpath?: (path: string) => Promise<string>;
19
+ selfPath?: string;
20
+ };
21
+ export declare function resolveBinary(name: string, options: BinaryOptions): Promise<string | undefined>;
22
+ export declare function codeCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<number>;
23
+ export {};