@vapi-network/cli 0.9.0 → 0.9.4

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/setup.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { type VapiConfig } from "@vapi-network/core";
2
2
  import { type CliDependencies, type CliIo } from "./cli.js";
3
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<{
4
+ export declare function restoreVaultFromPhrase(phrase: string, config: VapiConfig, io: CliIo, dependencies: CliDependencies, accountCount?: number): Promise<{
5
5
  names: string[];
6
+ scannedAddresses: number;
6
7
  }>;
package/dist/task.d.ts CHANGED
@@ -6,13 +6,14 @@ export type TasksCommandDependencies = {
6
6
  sleep?: (milliseconds: number) => Promise<void>;
7
7
  randomUUID?: () => string;
8
8
  };
9
- export declare const TASK_HELP = "Usage:\n vapi task search [--open] [--min <usd>] [--tab trending|new|closing|paid] [--limit <n>] [--json]\n vapi task show <id> [--account <name>] [--json]\n vapi task post --title <text> --brief <file|-> --amount <usd> --deadline <duration|ISO> [--intake proposals|submissions] [--max-awards <k>] [--webhook <https-url>] [--account <name>] [--json]\n vapi task propose <id> --price <usd> --duration <duration> --note <text> [--account <name>] [--json]\n vapi task submit <id> --proof <https-url> [--proof <https-url>...] [--file <path>...] [--account <name>] [--json]\n vapi task award <id> <proposalId> [--account <name>] [--json]\n vapi task sign <id> [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task fund <id> [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task deliver <id> --files <path...> --note <text> [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task release <id> [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task refund <id> [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task dispute <id> --evidence-hash <0x + 64 hex> [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task counter-evidence <id> --evidence-hash <0x + 64 hex> [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task resolve-unmatched <id> [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task message <id> <text> [--account <name>] [--json]\n vapi task thread <id> [--after <cursor>] [--account <name>] [--json]\n vapi task watch <id> [--until <state>] [--auto-release] [--timeout 7d] [--interval 5s] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task status <id> [--account <name>] [--json]\n\nDurations: 5s, 10m, 48h, 7d, or an ISO-8601 timestamp. Posting and proposal terms require at least 10 minutes.\nDispute accepts a precomputed evidence hash only; evidence-file hashing is still undecided upstream.\nWatch requires an interval of at least 1s and a positive timeout. Auto-release uses the acting wallet's agent profile, or defaults, and releases only amounts strictly below the threshold.\nPosting a task moves no money. Task reads require tasks:read and writes require tasks:write; write access includes reads.\nThe thread cursor is the previous page's nextBeforeSeq; --after reads older messages using beforeSeq.\nEvery command accepts --json. Watch and a partially completed sign may write more than one JSON value. Human diagnostics go to stderr.\n\nExit codes:\n 0 ok\n 1 error, including invalid usage, unavailable routes and chain failures\n 2 policy refusal only (JSON ok:false with reason policy.perTask or policy.perDay)\n 3 approval needed in non-interactive mode\n\nFund, deliver, release, refund, dispute, counter-evidence, resolve-unmatched and watch auto-release sign with the local vault wallet. The CLI waits for two confirmations and records pending transactions for recovery. It never retries a chain mutation automatically.";
9
+ export declare const TASK_HELP = "Usage:\n vapi task search [--open] [--min <usd>] [--tab trending|new|closing|paid] [--limit <n>] [--json]\n vapi task show <id> [--account <name>] [--json]\n vapi task post --title <text> --brief <file|-> --amount <usd> --deadline <duration|ISO> [--intake proposals|submissions] [--max-awards <k>] [--webhook <https-url>] [--account <name>] [--json]\n vapi task propose <id> --price <usd> --duration <duration> --note <text> [--account <name>] [--json]\n vapi task submit <id> --proof <https-url> [--proof <https-url>...] [--file <path>...] [--account <name>] [--json]\n vapi task award <id> <proposalId> [--account <name>] [--json]\n vapi task sign <id> [--yes] [--no-wait] [--timeout 120s] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task fund <id> [--yes] [--no-wait] [--timeout 120s] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task deliver <id> --files <path...> --note <text> [--no-wait] [--timeout 120s] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task release <id> [--no-wait] [--timeout 120s] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task refund <id> [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task dispute <id> --evidence-hash <0x + 64 hex> [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task counter-evidence <id> --evidence-hash <0x + 64 hex> [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task resolve-unmatched <id> [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task message <id> <text> [--account <name>] [--json]\n vapi task thread <id> [--after <cursor>] [--account <name>] [--json]\n vapi task watch <id> [--until <state>] [--auto-release] [--timeout 7d] [--interval 5s] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task status <id> [--account <name>] [--json]\n\nDurations: 5s, 10m, 48h, 7d, or an ISO-8601 timestamp. Posting and proposal terms require at least 10 minutes.\nDispute accepts a precomputed evidence hash only; evidence-file hashing is still undecided upstream.\nWatch requires an interval of at least 1s and a positive timeout. Auto-release uses the acting wallet's agent profile, or defaults, and releases only amounts strictly below the threshold.\nPosting a task moves no money. Task reads require tasks:read and writes require tasks:write; write access includes reads.\nThe thread cursor is the previous page's nextBeforeSeq; --after reads older messages using beforeSeq.\nEvery command accepts --json. Watch and a partially completed sign may write more than one JSON value. Human diagnostics go to stderr.\n\nExit codes:\n 0 ok\n 1 error, including invalid usage, unavailable routes and chain failures\n 2 policy refusal only (JSON ok:false with reason policy.perTask or policy.perDay)\n 3 approval needed in non-interactive mode\n\nFund, deliver, release, refund, dispute, counter-evidence, resolve-unmatched and watch auto-release sign with the local vault wallet. The CLI waits for two confirmations and records pending transactions for recovery. It never retries a chain mutation automatically. Sign, fund, deliver and release wait up to 120s for vAPI to index a confirmed transaction unless --no-wait is set; an indexing timeout keeps exit code 0.";
10
10
  type Parsed = ReturnType<typeof parseArguments>;
11
11
  type TaskRoute = keyof TasksClient;
12
12
  export declare class TaskCommandError extends Error {
13
13
  readonly code: string;
14
14
  readonly manifestHash?: `0x${string}` | undefined;
15
- constructor(code: string, message: string, manifestHash?: `0x${string}` | undefined);
15
+ readonly prefixCode: boolean;
16
+ constructor(code: string, message: string, manifestHash?: `0x${string}` | undefined, prefixCode?: boolean);
16
17
  }
17
18
  /** Relative milliseconds; timestamps are measured from the supplied clock. */
18
19
  export declare function parseTaskDuration(text: string, now: Date): number;
@@ -0,0 +1,13 @@
1
+ import { type CliDependencies, type CliIo } from "./cli.js";
2
+ type UpdateCheckOptions = {
3
+ argv?: string[];
4
+ env?: NodeJS.ProcessEnv;
5
+ stderrIsTTY?: boolean;
6
+ home?: string;
7
+ fetchImpl?: typeof fetch;
8
+ nowMs?: () => number;
9
+ };
10
+ /** Only the executable entry points check for updates, never SDK or MCP calls. */
11
+ export declare function runCliWithUpdateCheck(argv?: string[], io?: CliIo, dependencies?: CliDependencies, options?: UpdateCheckOptions): Promise<number>;
12
+ export declare function checkForUpdate(options?: UpdateCheckOptions): Promise<string | undefined>;
13
+ export {};
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "0.9.0";
1
+ export declare const CLI_VERSION = "0.9.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-network/cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.4",
4
4
  "description": "Command-line interface for the non-custodial vAPI Network wallet",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {