@vapi-network/cli 0.16.0 → 0.16.2

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/task.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type TasksChain, type TasksClient, type TasksClientOptions, type PendingTransactions, type UploadFileInput } from "@vapi-network/core/tasks";
1
+ import { type TaskV2LimitsReader, type TasksChain, type TasksClient, type TasksClientOptions, type PendingTransactions, type UploadFileInput } from "@vapi-network/core/tasks";
2
2
  import { parseArguments, type CliDependencies, type CliIo, type WalletTarget } from "./cli.js";
3
3
  export type TasksCommandDependencies = {
4
4
  client?: TasksClient | ((options: TasksClientOptions) => TasksClient);
@@ -8,7 +8,7 @@ export type TasksCommandDependencies = {
8
8
  /** Read-only RPC for reviewer-status; defaults to the configured Tasks RPC. */
9
9
  rpcFor?: (chainId: number) => import("viem").PublicClient;
10
10
  };
11
- 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 pending [--account <name>] [--json]\n vapi task checkin <id> --status on-track|blocked|need-input [--note <text>] [--link <url>] [--account <name>] [--json]\n vapi task post --title <text> --brief <file|-> --deadline <duration|ISO> [--shape task|bounty|pool] [--amount <usd>] [--milestone \"amount|acceptance|deadline\"...] [--proof <preset>[:mustContain]...] [--checkin none|6h|24h|72h|7d] [--winners <n> --reward-per-winner <usd> --choice-window <sec>] [--reward-per-claim <usd> --budget <usd> --gate open|proven --verifier poster|vapi --open-check allowlist|invite] [--fund] [--yes] [--no-wait] [--timeout 120s] [--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>...] [--file <path>...] [--withdraw] [--proposal-id <id>] [--account <name>] [--json]\n vapi task milestone <id> --index N submit|approve|reject|finalize|close-rejected [--proof <https-url>...] [--file <path>...] [--proof-json <file>] [--note <text>] [--reason <text>] [--json]\n vapi task cancel <id> offer|remainder|expire [--json]\n vapi task claim <id> --claimant <addr> [--json]\n vapi task award <id> [<proposalId>|--worker <addr>|--winners a,b,c] [--account <name>] [--json]\n vapi task sign <id> [--action award-consent|split-consent|bump-consent-nonce --index N --to-worker <base-units> --new-nonce N] [--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>|--index N --evidence <text>] [--action raise|resolve-unmatched|split --to-worker <base-units>] [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task counter-evidence <id> [--evidence-hash <0x + 64 hex>|--index N --evidence <text>] [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task resolve-unmatched <id> [--index N] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task close-rejected <id> --index N [--account <name>] [--json]\n vapi task bump-consent-nonce <id> --new-nonce N [--account <name>] [--json]\n vapi task prune-reviewer <id> --reviewer <address> [--account <name>] [--json]\n vapi task prune-reviewers <id> --reviewers a,b,c [--account <name>] [--json]\n vapi task jury <id> --index N --step open|draw|rearm|resolve [--account <name>] [--json]\n vapi task vote <id> --index N (--commit worker|poster|split [--to-worker <base-units>] | --reveal) [--account <name>] [--json]\n vapi task approve-bond <id> [--yes] [--account <name>] [--json]\n vapi task claim-owed <id> [--to <0x\u2026>] [--account <name>] [--json]\n vapi task reviewer-status [--address <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> [--operation <uuid> --step <v2-step> --recover|--abandon] [--account <name>] [--json]\n\nDurations: 5s, 10m, 48h, 7d, or an ISO-8601 timestamp. Task milestone deadlines require at least one hour; bounty and pool posting and proposal terms require at least 10 minutes.\nV1 dispute accepts a precomputed evidence hash. V2 dispute accepts --index with --evidence text. Milestone action indices are zero-based; declared milestone indices remain one-based.\nJury: Fewer than 3 eligible reviewers ends the round immediately. With 3 to 20 eligible reviewers everyone eligible is in the jury; above 20, 5 are drawn. A verdict needs at least 3 reveals and a strict majority. Round 1 without a verdict restores the pre-dispute state. Round 2 without a verdict makes the status quo final: disputed, with no dispute winner. Draw strictly after the seed block through HISTORY_WINDOW (8,191 blocks); rearm only after that window, at most 3 times. The next expired attempt ends the round. No mediation or appeal. mayVote reports jury membership only. Do not touch your stake until you have revealed; even a cancelled unstake can cost the vote. Jury open repeats while the case is Snapshotting.\nVote --commit seals the salt in a local ballot under VAPI_HOME before vAPI sees the commitment; --reveal reads that ballot back by the onchain commitment, so reveal from the machine that committed. --to-worker is USDC base units and only for split.\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 without --fund moves no money. --fund applies task and daily caps before signing. 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.";
11
+ 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 pending [--account <name>] [--json]\n vapi task checkin <id> --status on-track|blocked|need-input [--note <text>] [--link <url>] [--account <name>] [--json]\n vapi task post --title <text> --brief <file|-> --deadline <duration|ISO> [--shape task|bounty|pool] [--amount <usd>] [--milestone \"amount|acceptance|deadline\"...] [--proof <preset>[:mustContain]...] [--checkin none|6h|24h|72h|7d] [--winners <n> --reward-per-winner <usd> --choice-window <sec>] [--reward-per-claim <usd> --budget <usd> --gate open|proven --verifier poster|vapi --open-check allowlist|invite] [--fund] [--yes] [--no-wait] [--timeout 120s] [--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>...] [--file <path>...] [--withdraw] [--proposal-id <id>] [--account <name>] [--json]\n vapi task milestone <id> --index N submit|approve|reject|finalize|close-rejected [--proof <https-url>...] [--file <path>...] [--proof-json <file>] [--note <text>] [--reason <text>] [--json]\n vapi task cancel <id> offer|remainder|expire [--json]\n vapi task claim <id> --claimant <addr> [--json]\n vapi task award <id> [<proposalId>|--worker <addr>|--winners a,b,c] [--account <name>] [--json]\n vapi task sign <id> [--action award-consent|split-consent|bump-consent-nonce --index N --to-worker <base-units> --new-nonce N] [--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>|--index N --evidence <text>] [--action raise|resolve-unmatched|split --to-worker <base-units>] [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task counter-evidence <id> [--evidence-hash <0x + 64 hex>|--index N --evidence <text>] [--yes] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task resolve-unmatched <id> [--index N] [--counterparty <0x\u2026>] [--account <name>] [--json]\n vapi task close-rejected <id> --index N [--account <name>] [--json]\n vapi task bump-consent-nonce <id> --new-nonce N [--account <name>] [--json]\n vapi task prune-reviewer <id> --reviewer <address> [--account <name>] [--json]\n vapi task prune-reviewers <id> --reviewers a,b,c [--account <name>] [--json]\n vapi task jury <id> --index N --step open|draw|rearm|resolve [--account <name>] [--json]\n vapi task vote <id> --index N (--commit worker|poster|split [--to-worker <base-units>] | --reveal) [--account <name>] [--json]\n vapi task approve-bond <id> [--yes] [--account <name>] [--json]\n vapi task claim-owed <id> [--to <0x\u2026>] [--account <name>] [--json]\n vapi task reviewer-status [--address <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> [--operation <uuid> --step <v2-step> --recover|--abandon] [--account <name>] [--json]\n\nDurations: 5s, 10m, 48h, 7d, or an ISO-8601 timestamp. A task deadline and every task milestone deadline must be at least 3 hours ahead when vAPI receives the post (one hour of work time, one to award, one to fund); use 181m or more. Bounty and pool posting and proposal terms require at least 10 minutes.\nV1 dispute accepts a precomputed evidence hash. V2 dispute accepts --index with --evidence text. Milestone action indices are zero-based; declared milestone indices remain one-based.\nJury: Fewer than 3 eligible reviewers ends the round immediately. With 3 to 20 eligible reviewers everyone eligible is in the jury; above 20, 5 are drawn. A verdict needs at least 3 reveals and a strict majority. Round 1 without a verdict restores the pre-dispute state. Round 2 without a verdict makes the status quo final: disputed, with no dispute winner. Draw strictly after the seed block through HISTORY_WINDOW (8,191 blocks); rearm only after that window, at most 3 times. The next expired attempt ends the round. No mediation or appeal. mayVote reports jury membership only. Do not touch your stake until you have revealed; even a cancelled unstake can cost the vote. Jury open repeats while the case is Snapshotting.\nVote --commit seals the salt in a local ballot under VAPI_HOME before vAPI sees the commitment; --reveal reads that ballot back by the onchain commitment, so reveal from the machine that committed. --to-worker is USDC base units and only for split.\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 without --fund moves no money. --fund applies task and daily caps before signing. Fund, post --fund, approve-bond, sign --action award-consent and award --worker need vAPI to report Tasks as available and stop before signing when it does not; a rerun of an operation that already signed something is resumed instead. Show or raise task limits with vapi accounts caps <name> [--max-per-task <usd>] [--approve-above <usd>].\nBase mainnet runs V2 only: the worker runs sign --action award-consent, then the poster runs award --worker <addr>. propose sends an offer the poster can read. award <proposalId> and sign without --action are V1 only. 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.";
12
12
  type Parsed = ReturnType<typeof parseArguments>;
13
13
  type TaskRoute = keyof TasksClient;
14
14
  export declare class TaskCommandError extends Error {
@@ -22,6 +22,7 @@ export declare class TaskCommandError extends Error {
22
22
  export declare function parseTaskDuration(text: string, now: Date): number;
23
23
  export type TaskContext = {
24
24
  client: TasksClient;
25
+ limitsV2?: TaskV2LimitsReader;
25
26
  chain: TasksChain;
26
27
  pending?: PendingTransactions;
27
28
  baseUrl: string;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "0.16.0";
1
+ export declare const CLI_VERSION = "0.16.2";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vapi-network/cli",
3
- "version": "0.16.0",
3
+ "version": "0.16.2",
4
4
  "description": "Command-line interface for the non-custodial vAPI Network wallet",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {