@t2000/cli 0.10.4 → 0.12.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 CHANGED
@@ -5,7 +5,7 @@ Terminal bank account for AI agents on Sui. One command to create a bank account
5
5
  [![npm](https://img.shields.io/npm/v/@t2000/cli)](https://www.npmjs.com/package/@t2000/cli)
6
6
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
7
7
 
8
- **[Website](https://t2000.ai)** · **[GitHub](https://github.com/mission69b/t2000)** · **[SDK](https://www.npmjs.com/package/@t2000/sdk)** · **[x402](https://www.npmjs.com/package/@t2000/x402)**
8
+ **[Website](https://t2000.ai)** · **[GitHub](https://github.com/mission69b/t2000)** · **[SDK](https://www.npmjs.com/package/@t2000/sdk)** · **[x402](https://www.npmjs.com/package/@t2000/x402)** · **[MCP](https://www.npmjs.com/package/@t2000/mcp)**
9
9
 
10
10
  ## Installation
11
11
 
@@ -95,7 +95,8 @@ t2000 init
95
95
  | Command | Description |
96
96
  |---------|-------------|
97
97
  | `t2000 init` | Create a new agent bank account (Ed25519 keypair, AES-256-GCM encrypted) |
98
- | `t2000 lock` | Clear saved session (require PIN on next command) |
98
+ | `t2000 lock` | Lock agent freeze all operations |
99
+ | `t2000 unlock` | Unlock agent — resume operations (requires PIN) |
99
100
  | `t2000 balance` | Show available USDC + savings + gas reserve |
100
101
  | `t2000 balance --show-limits` | Include maxWithdraw, maxBorrow, and health factor |
101
102
  | `t2000 address` | Show wallet address |
@@ -153,6 +154,16 @@ t2000 init
153
154
  | `t2000 sentinel attack <id> [prompt]` | Attack a sentinel with an adversarial prompt (costs SUI) |
154
155
  | `t2000 sentinel attack <id> [prompt] --fee 0.5` | Override attack fee (default: sentinel's min fee) |
155
156
 
157
+ ### Safeguards
158
+
159
+ | Command | Description |
160
+ |---------|-------------|
161
+ | `t2000 config show` | View safeguard settings |
162
+ | `t2000 config set maxPerTx 500` | Set per-transaction limit |
163
+ | `t2000 config set maxDailySend 1000` | Set daily send limit |
164
+ | `t2000 lock` | Lock agent (freeze all operations) |
165
+ | `t2000 unlock` | Unlock agent (requires PIN) |
166
+
156
167
  ### Configuration
157
168
 
158
169
  | Command | Description |
@@ -160,6 +171,15 @@ t2000 init
160
171
  | `t2000 config get [key]` | Show a config value (omit key for all) |
161
172
  | `t2000 config set <key> <value>` | Set a config value |
162
173
 
174
+ ### MCP Server
175
+
176
+ ```bash
177
+ # Start MCP server (stdio transport) for Claude Desktop, Cursor, etc.
178
+ t2000 mcp
179
+ ```
180
+
181
+ 16 tools, 3 prompts, safeguard enforced. See [MCP setup guide](../../docs/mcp-setup.md) for platform configs.
182
+
163
183
  ### HTTP API Server
164
184
 
165
185
  ```bash
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env node
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __export = (target, all) => {
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+
32
+ export {
33
+ __commonJS,
34
+ __export,
35
+ __toESM
36
+ };
37
+ //# sourceMappingURL=chunk-D4HDZEJT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}