@vapi-network/cli 0.5.0 → 0.7.0
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/README.md +11 -2
- package/dist/accounts.d.ts +11 -0
- package/dist/cli.d.ts +84 -7
- package/dist/cli.js +16687 -7876
- package/dist/cli.js.map +3 -3
- package/dist/cloud-backup.d.ts +20 -0
- package/dist/index.js +16658 -7871
- package/dist/index.js.map +3 -3
- package/dist/login.d.ts +7 -1
- package/dist/main-module.d.ts +9 -0
- package/dist/mcp-install.d.ts +13 -0
- package/dist/router.d.ts +3 -1
- package/dist/send.d.ts +2 -0
- package/dist/setup.d.ts +6 -0
- package/dist/status.d.ts +10 -0
- package/dist/vault.d.ts +3 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/login.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CliDependencies, type CliIo } from "./cli.js";
|
|
1
|
+
import { targetWallet, type CliDependencies, type CliIo } from "./cli.js";
|
|
2
2
|
export declare function loginCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
3
3
|
/** Shared device-link flow used by `vapi login` and `vapi agent create`. */
|
|
4
4
|
export declare function runLoginFlow(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies, options?: {
|
|
@@ -6,3 +6,9 @@ export declare function runLoginFlow(argv: string[], json: boolean, io: CliIo, d
|
|
|
6
6
|
}): Promise<void>;
|
|
7
7
|
export declare function logoutCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
8
8
|
export declare function whoamiCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
9
|
+
type AgentLinkStatus = {
|
|
10
|
+
value: "active" | "paused" | "revoked" | "unknown";
|
|
11
|
+
line: string;
|
|
12
|
+
};
|
|
13
|
+
export declare function agentLinkStatus(target: Awaited<ReturnType<typeof targetWallet>>, link: NonNullable<Awaited<ReturnType<typeof targetWallet>>["entry"]["link"]>, dependencies: CliDependencies): Promise<AgentLinkStatus>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether the process was started with this module as its entry point.
|
|
3
|
+
*
|
|
4
|
+
* npm installs `vapi` as a symlink into a global bin directory. Node resolves
|
|
5
|
+
* the symlink for `import.meta.url` but leaves `process.argv[1]` as typed, so
|
|
6
|
+
* the entry is compared by its real path, or a global install exits 0 without
|
|
7
|
+
* running anything.
|
|
8
|
+
*/
|
|
9
|
+
export declare function isMainModule(entry: string | undefined, moduleUrl: string, realpath?: (path: string) => string): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type CliDependencies, type CliIo } from "./cli.js";
|
|
2
|
+
type McpInstallApp = "claude" | "cursor" | "codex";
|
|
3
|
+
export declare function mcpInstallTarget(app: McpInstallApp, context: {
|
|
4
|
+
platform: NodeJS.Platform;
|
|
5
|
+
homedir: string;
|
|
6
|
+
cwd: string;
|
|
7
|
+
appData?: string;
|
|
8
|
+
}): {
|
|
9
|
+
path: string;
|
|
10
|
+
format: "json" | "toml";
|
|
11
|
+
};
|
|
12
|
+
export declare function mcpInstallCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
13
|
+
export {};
|
package/dist/router.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RouterClientDeps } from "@vapi-network/core/router-client";
|
|
2
|
+
import { type CliDependencies, type CliIo, type WalletTarget } from "./cli.js";
|
|
2
3
|
export declare function routerCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
4
|
+
export declare function routerDeps(target: WalletTarget, dependencies: CliDependencies): RouterClientDeps;
|
package/dist/send.d.ts
ADDED
package/dist/setup.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type VapiConfig } from "@vapi-network/core";
|
|
2
|
+
import { type CliDependencies, type CliIo } from "./cli.js";
|
|
3
|
+
export declare function setupCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
4
|
+
export declare function restoreVaultFromPhrase(phrase: string, config: VapiConfig, io: CliIo, dependencies: CliDependencies): Promise<{
|
|
5
|
+
names: string[];
|
|
6
|
+
}>;
|
package/dist/status.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type StatusAccount, type StatusReport } from "@vapi-network/core";
|
|
2
|
+
import { type CliDependencies, type CliIo } from "./cli.js";
|
|
3
|
+
export declare function statusCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
4
|
+
export declare function renderStatusScreen(report: StatusReport): string[];
|
|
5
|
+
export declare function formatAccountLine(account: StatusAccount, nameWidth: number): string;
|
|
6
|
+
export declare function accountNameWidth(accounts: StatusAccount[]): number;
|
|
7
|
+
export declare function collectStatus(dependencies: CliDependencies, options?: {
|
|
8
|
+
sweepCeilings?: boolean;
|
|
9
|
+
warn?: (message: string) => void;
|
|
10
|
+
}): Promise<StatusReport>;
|
package/dist/vault.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type CliDependencies, type CliIo } from "./cli.js";
|
|
2
|
+
export declare function vaultCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
|
3
|
+
export declare function restoreCommand(argv: string[], json: boolean, io: CliIo, dependencies: CliDependencies): Promise<void>;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CLI_VERSION = "0.
|
|
1
|
+
export declare const CLI_VERSION = "0.7.0";
|