@vultisig/cli 0.8.0 → 0.10.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/CHANGELOG.md +24 -0
- package/README.md +146 -1
- package/dist/index.js +901 -190
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @vultisig/cli
|
|
2
2
|
|
|
3
|
+
## 0.10.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`67dc6ce`](https://github.com/vultisig/vultisig-sdk/commit/67dc6ceaa1b318144cfbe3812ddecb14b108eba4)]:
|
|
8
|
+
- @vultisig/sdk@0.10.0
|
|
9
|
+
- @vultisig/rujira@6.0.0
|
|
10
|
+
|
|
11
|
+
## 0.9.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [#140](https://github.com/vultisig/vultisig-sdk/pull/140) [`813b160`](https://github.com/vultisig/vultisig-sdk/commit/813b16058c816853ed18a82dcc8b967047c46b50) Thanks [@RaghavSood](https://github.com/RaghavSood)! - Add local SDK build path for Solana cross-chain swaps via tx_ready events in the agent executor
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#131](https://github.com/vultisig/vultisig-sdk/pull/131) [`a5228ab`](https://github.com/vultisig/vultisig-sdk/commit/a5228ab417c815fd43030d881b710bfd745d2863) Thanks [@bornslippynuxx](https://github.com/bornslippynuxx)! - Improve CLI for AI agent one-shot usage: auto-detect non-TTY environments and enable --two-step mode automatically, add JSON output for create fast --two-step and verify --code commands, update skill docs with non-interactive workflows, vault shares explanation, Rujira reference, and expanded JSON examples
|
|
20
|
+
|
|
21
|
+
- [#143](https://github.com/vultisig/vultisig-sdk/pull/143) [`fd73b67`](https://github.com/vultisig/vultisig-sdk/commit/fd73b67a2dce58cce9bc2757deb0bad64950ff38) Thanks [@neavra](https://github.com/neavra)! - Add --password flag to import command for non-interactive usage, support vault name and ID prefix matching in switch command
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`75cf69f`](https://github.com/vultisig/vultisig-sdk/commit/75cf69f24cee843f9b508cc370c105e6339f01a8), [`60c1be9`](https://github.com/vultisig/vultisig-sdk/commit/60c1be943599c1d41dd2b6110dae05a40d50f74e), [`813b160`](https://github.com/vultisig/vultisig-sdk/commit/813b16058c816853ed18a82dcc8b967047c46b50), [`813b160`](https://github.com/vultisig/vultisig-sdk/commit/813b16058c816853ed18a82dcc8b967047c46b50), [`813b160`](https://github.com/vultisig/vultisig-sdk/commit/813b16058c816853ed18a82dcc8b967047c46b50), [`813b160`](https://github.com/vultisig/vultisig-sdk/commit/813b16058c816853ed18a82dcc8b967047c46b50), [`b8770b3`](https://github.com/vultisig/vultisig-sdk/commit/b8770b33b3c38f3bd676e16e7c26f1464bb28548), [`8f2c9c6`](https://github.com/vultisig/vultisig-sdk/commit/8f2c9c6823d9e5ab0d882a5e8ba47715edaa54c8)]:
|
|
24
|
+
- @vultisig/sdk@0.9.0
|
|
25
|
+
- @vultisig/rujira@5.0.0
|
|
26
|
+
|
|
3
27
|
## 0.8.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Vultisig CLI
|
|
2
2
|
|
|
3
|
-
Command-line wallet for Vultisig - secure multi-party computation (MPC) wallet management across 40+ blockchains.
|
|
3
|
+
Command-line wallet for Vultisig - secure multi-party computation (MPC) wallet management across 40+ blockchains. Designed for both human and AI agent use.
|
|
4
4
|
|
|
5
5
|
> **Tip:** Use `vsig` as a shorthand alias for `vultisig` - all commands work with both!
|
|
6
6
|
|
|
@@ -584,6 +584,151 @@ vultisig sign --chain sui --bytes "<base64-tx-bytes>" -o json > sig.json
|
|
|
584
584
|
vultisig broadcast --chain sui --raw-tx '{"unsignedTx":"<base64-tx-bytes>","signature":"<base64-signature-from-sig.json>"}'
|
|
585
585
|
```
|
|
586
586
|
|
|
587
|
+
### AI Agent Integration
|
|
588
|
+
|
|
589
|
+
The CLI has first-class support for AI coding agents (Claude Code, Cursor, Opencode, etc.).
|
|
590
|
+
|
|
591
|
+
#### Non-Interactive Vault Creation
|
|
592
|
+
|
|
593
|
+
When running in a non-TTY environment (pipes, scripts, AI agents), the CLI **automatically** uses two-step mode — no interactive OTP prompt that would hang your agent:
|
|
594
|
+
|
|
595
|
+
```bash
|
|
596
|
+
# Agent runs this — auto-detects non-TTY, skips interactive prompt
|
|
597
|
+
vultisig create fast --name "Agent Wallet" --password "$VAULT_PASSWORD" --email agent@example.com
|
|
598
|
+
|
|
599
|
+
# Returns immediately with vault ID (pending verification)
|
|
600
|
+
# Vault ID: 023118...
|
|
601
|
+
|
|
602
|
+
# Verify later when you have the email code
|
|
603
|
+
vultisig verify 023118... --code 123456
|
|
604
|
+
```
|
|
605
|
+
|
|
606
|
+
You can also force two-step mode explicitly:
|
|
607
|
+
|
|
608
|
+
```bash
|
|
609
|
+
# Force two-step even in a TTY
|
|
610
|
+
vultisig create fast --name "Agent Wallet" --password "$VAULT_PASSWORD" --email agent@example.com --two-step
|
|
611
|
+
|
|
612
|
+
# JSON output for machine parsing
|
|
613
|
+
vultisig create fast --name "Agent Wallet" --password "$VAULT_PASSWORD" --email agent@example.com --two-step -o json
|
|
614
|
+
```
|
|
615
|
+
|
|
616
|
+
JSON output for two-step create:
|
|
617
|
+
```json
|
|
618
|
+
{
|
|
619
|
+
"vaultId": "023118...",
|
|
620
|
+
"status": "pending_verification",
|
|
621
|
+
"message": "Vault created. Verify with email OTP to activate.",
|
|
622
|
+
"verifyCommand": "vultisig verify 023118... --code <OTP>",
|
|
623
|
+
"resendCommand": "vultisig verify 023118... --resend --email agent@example.com --password ..."
|
|
624
|
+
}
|
|
625
|
+
```
|
|
626
|
+
|
|
627
|
+
#### Agent Ask (One-Shot Mode)
|
|
628
|
+
|
|
629
|
+
Send a single natural-language message and get a structured response. Designed for AI-to-AI communication:
|
|
630
|
+
|
|
631
|
+
```bash
|
|
632
|
+
# Simple query
|
|
633
|
+
vultisig agent ask "What is my ETH balance?" --password "$VAULT_PASSWORD"
|
|
634
|
+
|
|
635
|
+
# Execute a transaction
|
|
636
|
+
vultisig agent ask "Send 0.01 ETH to 0x742d..." --password "$VAULT_PASSWORD"
|
|
637
|
+
|
|
638
|
+
# Continue a conversation (multi-turn)
|
|
639
|
+
vultisig agent ask "Now swap it to USDC" --session abc123 --password "$VAULT_PASSWORD"
|
|
640
|
+
|
|
641
|
+
# JSON output (for parsing)
|
|
642
|
+
vultisig agent ask "Check my portfolio" --password "$VAULT_PASSWORD" --json
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
**Text output (default):**
|
|
646
|
+
```
|
|
647
|
+
session:abc123-def456
|
|
648
|
+
|
|
649
|
+
Your ETH balance is 1.5 ETH ($3,750.00 USD).
|
|
650
|
+
|
|
651
|
+
tx:ethereum:0x9f8e7d6c...
|
|
652
|
+
explorer:https://etherscan.io/tx/0x9f8e7d6c...
|
|
653
|
+
```
|
|
654
|
+
|
|
655
|
+
**JSON output (`--json`):**
|
|
656
|
+
```json
|
|
657
|
+
{
|
|
658
|
+
"session_id": "abc123-def456",
|
|
659
|
+
"response": "Your ETH balance is 1.5 ETH ($3,750.00 USD).",
|
|
660
|
+
"tool_calls": [
|
|
661
|
+
{ "action": "getBalance", "success": true, "data": { "chain": "ethereum", "balance": "1.5" } }
|
|
662
|
+
],
|
|
663
|
+
"transactions": [
|
|
664
|
+
{ "hash": "0x9f8e7d6c...", "chain": "ethereum", "explorerUrl": "https://etherscan.io/tx/0x9f8e7d6c..." }
|
|
665
|
+
]
|
|
666
|
+
}
|
|
667
|
+
```
|
|
668
|
+
|
|
669
|
+
**Agent ask options:**
|
|
670
|
+
- `--session <id>` - Continue an existing conversation
|
|
671
|
+
- `--backend-url <url>` - Agent backend URL (default: http://localhost:9998)
|
|
672
|
+
- `--password <password>` - Vault password for signing
|
|
673
|
+
- `--verbose` - Show tool calls and debug info on stderr
|
|
674
|
+
- `--json` - Output structured JSON
|
|
675
|
+
|
|
676
|
+
#### Agent Chat (Interactive/Pipe Mode)
|
|
677
|
+
|
|
678
|
+
For interactive TUI or piped agent-to-agent communication:
|
|
679
|
+
|
|
680
|
+
```bash
|
|
681
|
+
# Interactive TUI with chat interface
|
|
682
|
+
vultisig agent
|
|
683
|
+
|
|
684
|
+
# Pipe mode for agent-to-agent (NDJSON)
|
|
685
|
+
vultisig agent --via-agent --password "$VAULT_PASSWORD"
|
|
686
|
+
```
|
|
687
|
+
|
|
688
|
+
**Agent chat options:**
|
|
689
|
+
- `--via-agent` - NDJSON pipe mode for agent-to-agent communication (24h password cache)
|
|
690
|
+
- `--verbose` - Show detailed tool call parameters
|
|
691
|
+
- `--backend-url <url>` - Agent backend URL
|
|
692
|
+
- `--password <password>` - Vault password
|
|
693
|
+
- `--password-ttl <ms>` - Password cache TTL (default: 5min, 24h for `--via-agent`)
|
|
694
|
+
- `--session-id <id>` - Resume an existing session
|
|
695
|
+
|
|
696
|
+
#### Session Management
|
|
697
|
+
|
|
698
|
+
```bash
|
|
699
|
+
# List chat sessions for current vault
|
|
700
|
+
vultisig agent sessions list
|
|
701
|
+
|
|
702
|
+
# Delete a session
|
|
703
|
+
vultisig agent sessions delete abc123
|
|
704
|
+
```
|
|
705
|
+
|
|
706
|
+
#### Agent Command Summary
|
|
707
|
+
|
|
708
|
+
| Command | Description |
|
|
709
|
+
|---------|-------------|
|
|
710
|
+
| `agent ask <message>` | One-shot: send message, get response, exit |
|
|
711
|
+
| `agent` | Interactive TUI chat interface |
|
|
712
|
+
| `agent --via-agent` | NDJSON pipe mode for agent-to-agent |
|
|
713
|
+
| `agent sessions list` | List chat sessions |
|
|
714
|
+
| `agent sessions delete <id>` | Delete a session |
|
|
715
|
+
|
|
716
|
+
#### Environment Variables for Automation
|
|
717
|
+
|
|
718
|
+
```bash
|
|
719
|
+
# Pre-select vault (no --vault flag needed)
|
|
720
|
+
VULTISIG_VAULT=MyWallet
|
|
721
|
+
|
|
722
|
+
# Vault password (avoids --password flag)
|
|
723
|
+
VAULT_PASSWORD=mypassword
|
|
724
|
+
|
|
725
|
+
# Multiple vault passwords
|
|
726
|
+
VAULT_PASSWORDS="Vault1:pass1 Vault2:pass2"
|
|
727
|
+
|
|
728
|
+
# Suppress spinners and info messages
|
|
729
|
+
VULTISIG_SILENT=1
|
|
730
|
+
```
|
|
731
|
+
|
|
587
732
|
### Settings
|
|
588
733
|
|
|
589
734
|
| Command | Description |
|