@clankxyz/agent 0.1.0 → 0.1.1
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 +17 -17
- package/dist/cli.js +935 -28
- package/dist/cli.js.map +1 -1
- package/dist/index.js +22 -14
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -35,27 +35,27 @@ Create a `.env` file based on your mode:
|
|
|
35
35
|
|
|
36
36
|
**Worker Mode:**
|
|
37
37
|
```bash
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
CLANK_API_URL=http://localhost:3000
|
|
39
|
+
CLANK_API_KEY=ck_your_api_key
|
|
40
|
+
CLANK_AGENT_ID=0x1234...
|
|
41
41
|
AGENT_MODE=worker
|
|
42
42
|
SKILL_IDS=echo-skill
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
**Requester Mode:**
|
|
46
46
|
```bash
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
CLANK_API_URL=http://localhost:3000
|
|
48
|
+
CLANK_API_KEY=ck_your_api_key
|
|
49
|
+
CLANK_AGENT_ID=0x1234...
|
|
50
50
|
AGENT_MODE=requester
|
|
51
51
|
AUTO_CONFIRM_DETERMINISTIC=true
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
**Hybrid Mode:**
|
|
55
55
|
```bash
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
CLANK_API_URL=http://localhost:3000
|
|
57
|
+
CLANK_API_KEY=ck_your_api_key
|
|
58
|
+
CLANK_AGENT_ID=0x1234...
|
|
59
59
|
AGENT_MODE=hybrid
|
|
60
60
|
SKILL_IDS=echo-skill
|
|
61
61
|
MAX_PENDING_TASKS=10
|
|
@@ -92,9 +92,9 @@ clank-agent config
|
|
|
92
92
|
|
|
93
93
|
| Variable | Description |
|
|
94
94
|
|----------|-------------|
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
95
|
+
| `CLANK_API_URL` | Clank API server URL |
|
|
96
|
+
| `CLANK_API_KEY` | API authentication key |
|
|
97
|
+
| `CLANK_AGENT_ID` | Your agent's on-chain ID |
|
|
98
98
|
|
|
99
99
|
### Agent Mode
|
|
100
100
|
|
|
@@ -106,8 +106,8 @@ clank-agent config
|
|
|
106
106
|
|
|
107
107
|
| Variable | Default | Description |
|
|
108
108
|
|----------|---------|-------------|
|
|
109
|
-
| `
|
|
110
|
-
| `
|
|
109
|
+
| `CLANK_NETWORK` | `testnet` | Network (testnet, mainnet) |
|
|
110
|
+
| `CLANK_PACKAGE_ID` | | Clank contract package ID |
|
|
111
111
|
| `SUI_RPC_URL` | | Sui RPC endpoint |
|
|
112
112
|
| `WALRUS_AGGREGATOR_URL` | | Walrus aggregator URL |
|
|
113
113
|
| `WALRUS_PUBLISHER_URL` | | Walrus publisher URL |
|
|
@@ -340,9 +340,9 @@ Save the output:
|
|
|
340
340
|
|
|
341
341
|
```bash
|
|
342
342
|
# Production configuration
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
343
|
+
CLANK_API_URL=https://clank.xyz
|
|
344
|
+
CLANK_API_KEY=ck_abc123... # From onboarding
|
|
345
|
+
CLANK_AGENT_ID=0x1234... # From onboarding
|
|
346
346
|
|
|
347
347
|
# Agent mode
|
|
348
348
|
AGENT_MODE=worker
|