@t2000/cli 2.19.0 → 2.19.2
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 +7 -3
- package/dist/{chunk-2TOYZOH3.js → chunk-R7KXQRHQ.js} +10 -1
- package/dist/{chunk-2TOYZOH3.js.map → chunk-R7KXQRHQ.js.map} +1 -1
- package/dist/{dist-LIH33AY2.js → dist-A7D5R6SM.js} +2 -2
- package/dist/{dist-EJKUXGU5.js → dist-PGQB2FNL.js} +18 -8
- package/dist/{dist-EJKUXGU5.js.map → dist-PGQB2FNL.js.map} +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- /package/dist/{dist-LIH33AY2.js.map → dist-A7D5R6SM.js.map} +0 -0
package/README.md
CHANGED
|
@@ -180,14 +180,18 @@ t2000 init
|
|
|
180
180
|
|---------|-------------|
|
|
181
181
|
| `t2000 earn` | Show all earning opportunities — savings yield |
|
|
182
182
|
|
|
183
|
-
### Contacts
|
|
183
|
+
### Contacts (DEPRECATED — sunset in next major)
|
|
184
|
+
|
|
185
|
+
The local `~/.t2000/contacts.json` alias map is being retired. **Use SuiNS instead**: register `your-name.sui` once at https://suins.io and every Sui app — including `t2000 send` — resolves it automatically. The first time a process resolves or writes a legacy contact alias, the CLI prints a one-shot deprecation warning to stderr.
|
|
184
186
|
|
|
185
187
|
| Command | Description |
|
|
186
188
|
|---------|-------------|
|
|
187
|
-
| `t2000 contacts` | List saved contacts |
|
|
188
|
-
| `t2000 contacts add <name> <address>` | Save a named contact |
|
|
189
|
+
| `t2000 contacts` | List saved contacts (deprecated) |
|
|
190
|
+
| `t2000 contacts add <name> <address>` | Save a named contact (deprecated; warns once) |
|
|
189
191
|
| `t2000 contacts remove <name>` | Remove a contact |
|
|
190
192
|
|
|
193
|
+
`t2000 send` accepts SuiNS names natively — `t2000 send 10 USDC to alex.sui` works with no setup. Priority order for the recipient argument: `0x` address > SuiNS name > saved contact alias.
|
|
194
|
+
|
|
191
195
|
### Safeguards
|
|
192
196
|
|
|
193
197
|
| Command | Description |
|
|
@@ -22160,6 +22160,7 @@ var ContactManager = class {
|
|
|
22160
22160
|
const existed = key in this.contacts;
|
|
22161
22161
|
this.contacts[key] = { name, address: normalized };
|
|
22162
22162
|
this.save();
|
|
22163
|
+
warnContactsDeprecation();
|
|
22163
22164
|
return { action: existed ? "updated" : "added" };
|
|
22164
22165
|
}
|
|
22165
22166
|
remove(name) {
|
|
@@ -22602,6 +22603,14 @@ var T2000 = class _T2000 extends import_index.default {
|
|
|
22602
22603
|
* unregistered SuiNS names (vs. propagating the engine-style
|
|
22603
22604
|
* `SuinsNotRegisteredError` — keeps the SDK's error surface
|
|
22604
22605
|
* `T2000Error`-only, consistent with every other write helper).
|
|
22606
|
+
*
|
|
22607
|
+
* [S.279.1 / 2026-05-23 — patch v2.19.1] Promoted from `private` to
|
|
22608
|
+
* `public` so MCP's `t2000_send` dryRun preview path can share the
|
|
22609
|
+
* same resolution logic as the live execute path. Pre-2.19.1 the
|
|
22610
|
+
* MCP dryRun called `agent.contacts.resolve(to)` directly, which
|
|
22611
|
+
* rejected SuiNS names — preview-then-execute flows broke for
|
|
22612
|
+
* `alex.sui`-style recipients. SSOT: never let preview and execute
|
|
22613
|
+
* resolve the same input differently.
|
|
22605
22614
|
*/
|
|
22606
22615
|
async resolveRecipient(input) {
|
|
22607
22616
|
const trimmed = input.trim();
|
|
@@ -24446,4 +24455,4 @@ axios/dist/node/axios.cjs:
|
|
|
24446
24455
|
@scure/bip39/index.js:
|
|
24447
24456
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
24448
24457
|
*/
|
|
24449
|
-
//# sourceMappingURL=chunk-
|
|
24458
|
+
//# sourceMappingURL=chunk-R7KXQRHQ.js.map
|