@t2000/sdk 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/dist/index.d.cts CHANGED
@@ -153,8 +153,20 @@ declare class T2000 extends EventEmitter<T2000Events> {
153
153
  * unregistered SuiNS names (vs. propagating the engine-style
154
154
  * `SuinsNotRegisteredError` — keeps the SDK's error surface
155
155
  * `T2000Error`-only, consistent with every other write helper).
156
+ *
157
+ * [S.279.1 / 2026-05-23 — patch v2.19.1] Promoted from `private` to
158
+ * `public` so MCP's `t2000_send` dryRun preview path can share the
159
+ * same resolution logic as the live execute path. Pre-2.19.1 the
160
+ * MCP dryRun called `agent.contacts.resolve(to)` directly, which
161
+ * rejected SuiNS names — preview-then-execute flows broke for
162
+ * `alex.sui`-style recipients. SSOT: never let preview and execute
163
+ * resolve the same input differently.
156
164
  */
157
- private resolveRecipient;
165
+ resolveRecipient(input: string): Promise<{
166
+ address: string;
167
+ contactName?: string;
168
+ suinsName?: string;
169
+ }>;
158
170
  balance(): Promise<BalanceResponse>;
159
171
  history(params?: {
160
172
  limit?: number;
package/dist/index.d.ts CHANGED
@@ -153,8 +153,20 @@ declare class T2000 extends EventEmitter<T2000Events> {
153
153
  * unregistered SuiNS names (vs. propagating the engine-style
154
154
  * `SuinsNotRegisteredError` — keeps the SDK's error surface
155
155
  * `T2000Error`-only, consistent with every other write helper).
156
+ *
157
+ * [S.279.1 / 2026-05-23 — patch v2.19.1] Promoted from `private` to
158
+ * `public` so MCP's `t2000_send` dryRun preview path can share the
159
+ * same resolution logic as the live execute path. Pre-2.19.1 the
160
+ * MCP dryRun called `agent.contacts.resolve(to)` directly, which
161
+ * rejected SuiNS names — preview-then-execute flows broke for
162
+ * `alex.sui`-style recipients. SSOT: never let preview and execute
163
+ * resolve the same input differently.
156
164
  */
157
- private resolveRecipient;
165
+ resolveRecipient(input: string): Promise<{
166
+ address: string;
167
+ contactName?: string;
168
+ suinsName?: string;
169
+ }>;
158
170
  balance(): Promise<BalanceResponse>;
159
171
  history(params?: {
160
172
  limit?: number;
package/dist/index.js CHANGED
@@ -6429,6 +6429,7 @@ var ContactManager = class {
6429
6429
  const existed = key in this.contacts;
6430
6430
  this.contacts[key] = { name, address: normalized };
6431
6431
  this.save();
6432
+ warnContactsDeprecation();
6432
6433
  return { action: existed ? "updated" : "added" };
6433
6434
  }
6434
6435
  remove(name) {
@@ -6871,6 +6872,14 @@ var T2000 = class _T2000 extends EventEmitter {
6871
6872
  * unregistered SuiNS names (vs. propagating the engine-style
6872
6873
  * `SuinsNotRegisteredError` — keeps the SDK's error surface
6873
6874
  * `T2000Error`-only, consistent with every other write helper).
6875
+ *
6876
+ * [S.279.1 / 2026-05-23 — patch v2.19.1] Promoted from `private` to
6877
+ * `public` so MCP's `t2000_send` dryRun preview path can share the
6878
+ * same resolution logic as the live execute path. Pre-2.19.1 the
6879
+ * MCP dryRun called `agent.contacts.resolve(to)` directly, which
6880
+ * rejected SuiNS names — preview-then-execute flows broke for
6881
+ * `alex.sui`-style recipients. SSOT: never let preview and execute
6882
+ * resolve the same input differently.
6874
6883
  */
6875
6884
  async resolveRecipient(input) {
6876
6885
  const trimmed = input.trim();