@t2000/cli 0.16.5 → 0.16.6

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 t2000
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -114,6 +114,23 @@ t2000 init
114
114
  Unrealized P&L: +$7.80 (+1.0%)
115
115
  ```
116
116
 
117
+ ```
118
+ ❯ t2000 invest strategy buy layer1 5
119
+ ✓ Invested $5.00 in layer1 strategy (1 atomic transaction)
120
+ ──────────────────────────────────────
121
+ ETH: 0.001222 @ $2,045.24
122
+ SUI: 2.5678 @ $0.97
123
+ ──────────────────────────────────────
124
+ Total invested: $5.00
125
+ Tx: https://suiscan.xyz/mainnet/tx/BKYu8s...
126
+
127
+ ❯ t2000 invest auto setup 50 weekly bluechip
128
+ ✓ Auto-invest created
129
+ Strategy: bluechip (Large-cap crypto index)
130
+ Amount: $50.00 per week
131
+ Next run: Feb 24, 2026
132
+ ```
133
+
117
134
  30 seconds. Send → save → borrow → pay → repay → withdraw.
118
135
 
119
136
  ## Commands
@@ -194,11 +211,34 @@ t2000 init
194
211
 
195
212
  | Command | Description |
196
213
  |---------|-------------|
197
- | `t2000 invest buy <amount> <asset>` | Buy crypto with USDC (e.g. `t2000 invest buy 500 BTC`, `t2000 invest buy 200 ETH`) |
214
+ | `t2000 invest buy <amount> <asset>` | Buy crypto with USDC (e.g. `t2000 invest buy 500 BTC`) |
198
215
  | `t2000 invest sell <amount\|all> <asset>` | Sell crypto back to USDC (auto-withdraws if earning) |
199
216
  | `t2000 invest earn <asset>` | Deposit invested asset into best-rate lending for yield |
200
217
  | `t2000 invest unearn <asset>` | Withdraw from lending, keep in portfolio |
201
- | `t2000 portfolio` | View investment portfolio with cost-basis P&L (shows APY when earning) |
218
+ | `t2000 portfolio` | View investment portfolio with cost-basis P&L (strategy grouping) |
219
+
220
+ ### Strategies (PTB Atomic)
221
+
222
+ | Command | Description |
223
+ |---------|-------------|
224
+ | `t2000 invest strategy list` | List available strategies with allocations |
225
+ | `t2000 invest strategy buy <name> <amount>` | Buy into a strategy — single atomic transaction. Options: `--dry-run` |
226
+ | `t2000 invest strategy sell <name>` | Sell all positions in a strategy |
227
+ | `t2000 invest strategy status <name>` | Show positions, current weights, and drift |
228
+ | `t2000 invest strategy rebalance <name>` | Rebalance to target weights |
229
+ | `t2000 invest strategy create <name> --alloc "BTC:40,ETH:60"` | Create a custom strategy |
230
+ | `t2000 invest strategy delete <name>` | Delete a custom strategy (must have no positions) |
231
+
232
+ Built-in strategies: `bluechip` (BTC 50%, ETH 30%, SUI 20%), `layer1` (ETH 50%, SUI 50%), `sui-heavy` (BTC 20%, ETH 20%, SUI 60%).
233
+
234
+ ### Auto-Invest (DCA)
235
+
236
+ | Command | Description |
237
+ |---------|-------------|
238
+ | `t2000 invest auto setup <amount> <frequency> [strategy]` | Set up DCA (daily/weekly/monthly) |
239
+ | `t2000 invest auto status` | Show auto-invest schedules |
240
+ | `t2000 invest auto run` | Execute pending DCA purchases |
241
+ | `t2000 invest auto stop [id]` | Stop one or all schedules |
202
242
 
203
243
  Supported assets: SUI, BTC, ETH. Dollar-denominated — `amount` is in USD.
204
244
 
@@ -232,7 +272,7 @@ t2000 mcp uninstall
232
272
  t2000 mcp
233
273
  ```
234
274
 
235
- 19 tools, 6 prompts, safeguard enforced. See [MCP setup guide](../../docs/mcp-setup.md) for details.
275
+ 21 tools, 6 prompts, safeguard enforced. See [MCP setup guide](../../docs/mcp-setup.md) for details.
236
276
 
237
277
  ### HTTP API Server
238
278
 
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t2000/cli",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "CLI bank account for AI agents on Sui — send, save, borrow, rebalance from your terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -30,25 +30,18 @@
30
30
  "directory": "packages/cli"
31
31
  },
32
32
  "homepage": "https://t2000.ai",
33
- "scripts": {
34
- "build": "tsup",
35
- "dev": "tsup --watch",
36
- "typecheck": "tsc --noEmit",
37
- "lint": "eslint src/",
38
- "clean": "rm -rf dist"
39
- },
40
33
  "dependencies": {
41
34
  "@hono/node-server": "^1",
42
35
  "@inquirer/prompts": "^7",
43
36
  "@mysten/sui": "^2.6.0",
44
- "@t2000/sdk": "^0.16.0",
45
- "@t2000/x402": "^0.3.0",
46
37
  "commander": "^13",
47
38
  "hono": "^4",
48
- "picocolors": "^1"
39
+ "picocolors": "^1",
40
+ "@t2000/sdk": "0.16.6",
41
+ "@t2000/x402": "0.3.0"
49
42
  },
50
43
  "optionalDependencies": {
51
- "@t2000/mcp": "^0.16.0"
44
+ "@t2000/mcp": "0.16.6"
52
45
  },
53
46
  "devDependencies": {
54
47
  "@types/node": "^20",
@@ -56,5 +49,12 @@
56
49
  "tsup": "^8",
57
50
  "typescript": "^5"
58
51
  },
59
- "license": "MIT"
60
- }
52
+ "license": "MIT",
53
+ "scripts": {
54
+ "build": "tsup",
55
+ "dev": "tsup --watch",
56
+ "typecheck": "tsc --noEmit",
57
+ "lint": "eslint src/",
58
+ "clean": "rm -rf dist"
59
+ }
60
+ }