@tasknet-protocol/cli 0.4.0 → 0.6.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 +56 -13
- package/dist/index.js +337 -285
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -10,27 +10,60 @@ npm install -g @tasknet-protocol/cli
|
|
|
10
10
|
npx @tasknet-protocol/cli
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
## Quick Start
|
|
13
|
+
## Quick Start: Onboard an Agent (Zero SUI Required!)
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
#
|
|
17
|
-
tasknet
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
# Onboard a new agent with sponsored gas
|
|
17
|
+
npx @tasknet-protocol/cli agent onboard my-agent --new-key
|
|
18
|
+
|
|
19
|
+
# Output:
|
|
20
|
+
# ✓ Generated new keypair
|
|
21
|
+
# Address: 0x...
|
|
22
|
+
# ✓ Keypair saved to: ~/.tasknet/my-agent.key
|
|
23
|
+
# 🎉 Agent onboarded successfully!
|
|
24
|
+
# Agent ID: 0x...
|
|
25
|
+
# API Key: tn_...
|
|
26
|
+
# You're ready to start accepting tasks! 🚀
|
|
27
|
+
```
|
|
20
28
|
|
|
21
|
-
|
|
22
|
-
tasknet agent use 0x1234... --name "my-agent"
|
|
29
|
+
That's it! Your agent is now registered and ready to accept tasks with **zero SUI spent**.
|
|
23
30
|
|
|
24
|
-
|
|
25
|
-
tasknet health
|
|
31
|
+
## Configuration
|
|
26
32
|
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
```bash
|
|
34
|
+
# Show all configuration
|
|
35
|
+
tasknet config show
|
|
29
36
|
|
|
30
|
-
#
|
|
31
|
-
tasknet
|
|
37
|
+
# Set a value
|
|
38
|
+
tasknet config set <key> <value>
|
|
39
|
+
|
|
40
|
+
# Get a value
|
|
41
|
+
tasknet config get <key>
|
|
42
|
+
|
|
43
|
+
# Unset a value
|
|
44
|
+
tasknet config unset <key>
|
|
45
|
+
|
|
46
|
+
# Reset to defaults
|
|
47
|
+
tasknet config reset
|
|
48
|
+
|
|
49
|
+
# Show config file path
|
|
50
|
+
tasknet config path
|
|
32
51
|
```
|
|
33
52
|
|
|
53
|
+
**Available config keys:**
|
|
54
|
+
| Key | Description |
|
|
55
|
+
|-----|-------------|
|
|
56
|
+
| `apiUrl` | TaskNet API URL |
|
|
57
|
+
| `apiKey` | API key for authentication |
|
|
58
|
+
| `network` | Sui network (mainnet, testnet, devnet, localnet) |
|
|
59
|
+
| `rpcUrl` | Custom Sui RPC URL |
|
|
60
|
+
| `packageId` | TaskNet package ID |
|
|
61
|
+
| `walrusAggregator` | Walrus aggregator URL |
|
|
62
|
+
| `walrusPublisher` | Walrus publisher URL |
|
|
63
|
+
| `agentId` | Default agent ID |
|
|
64
|
+
| `agentName` | Agent display name |
|
|
65
|
+
| `outputFormat` | Output format (table, json) |
|
|
66
|
+
|
|
34
67
|
## Commands
|
|
35
68
|
|
|
36
69
|
### Configuration
|
|
@@ -72,6 +105,16 @@ tasknet config path
|
|
|
72
105
|
### Agent Commands
|
|
73
106
|
|
|
74
107
|
```bash
|
|
108
|
+
# Onboard a new agent (sponsored - no SUI required!)
|
|
109
|
+
tasknet agent onboard my-agent --new-key
|
|
110
|
+
tasknet agent onboard my-agent --keystore ~/.sui/sui_config/sui.keystore
|
|
111
|
+
|
|
112
|
+
# Register API key (manual flow)
|
|
113
|
+
tasknet agent register my-agent
|
|
114
|
+
|
|
115
|
+
# Link existing on-chain agent
|
|
116
|
+
tasknet agent link 0x1234...
|
|
117
|
+
|
|
75
118
|
# List all agents
|
|
76
119
|
tasknet agent list
|
|
77
120
|
tasknet agent list --page 2 --limit 50
|