@t2000/cli 4.2.1 → 4.2.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.
|
@@ -134590,7 +134590,15 @@ async function fetchAllCoins(client, owner, coinType) {
|
|
|
134590
134590
|
}
|
|
134591
134591
|
async function selectAndSplitCoin(tx, client, owner, coinType, amount2, options = {}) {
|
|
134592
134592
|
if (options.sponsoredContext) {
|
|
134593
|
-
return selectCoinObjectsOnly(
|
|
134593
|
+
return selectCoinObjectsOnly(
|
|
134594
|
+
tx,
|
|
134595
|
+
client,
|
|
134596
|
+
owner,
|
|
134597
|
+
coinType,
|
|
134598
|
+
amount2,
|
|
134599
|
+
options.allowSwapAll ?? true,
|
|
134600
|
+
options.mergeCache
|
|
134601
|
+
);
|
|
134594
134602
|
}
|
|
134595
134603
|
const balanceResp = await client.getBalance({ owner, coinType });
|
|
134596
134604
|
const totalBalance = BigInt(balanceResp.totalBalance);
|
|
@@ -134896,14 +134904,15 @@ async function addSwapToTx(tx, client, address2, input) {
|
|
|
134896
134904
|
address2,
|
|
134897
134905
|
requestedRaw,
|
|
134898
134906
|
input.sponsoredContext ?? false,
|
|
134899
|
-
input.
|
|
134907
|
+
input.coinMergeCache
|
|
134900
134908
|
);
|
|
134901
134909
|
inputCoin = result.coin;
|
|
134902
134910
|
effectiveRaw = result.effectiveAmount;
|
|
134903
134911
|
} else {
|
|
134904
134912
|
const { selectAndSplitCoin: selectAndSplitCoin2 } = await Promise.resolve().then(() => (init_coinSelection(), coinSelection_exports));
|
|
134905
134913
|
const result = await selectAndSplitCoin2(tx, client, address2, fromType, requestedRaw, {
|
|
134906
|
-
sponsoredContext: input.sponsoredContext ?? false
|
|
134914
|
+
sponsoredContext: input.sponsoredContext ?? false,
|
|
134915
|
+
mergeCache: input.coinMergeCache
|
|
134907
134916
|
});
|
|
134908
134917
|
inputCoin = result.coin;
|
|
134909
134918
|
effectiveRaw = result.effectiveAmount;
|
|
@@ -141760,7 +141769,7 @@ Through this wallet you can reach essentially any major external API, billed to
|
|
|
141760
141769
|
CRITICAL: When the user asks to use any external or paid API, names a provider (e.g. "via fal.ai", "with ElevenLabs"), or requests a capability one of the services above provides, DO NOT say you cannot reach that service, that it isn't on an allowlist, or that there's no connector \u2014 and do NOT fall back to writing a script for the user to run. You CAN do it directly through this wallet. Use t2000_services to discover the endpoint and request shape, then t2000_pay to execute, then show the user the result (display image/audio URLs returned in the response).
|
|
141761
141770
|
|
|
141762
141771
|
Spending is the user's own USDC and every t2000_pay call is bounded by maxPrice. For larger or multi-step spends, state the estimated cost first and proceed once the user is happy. Use t2000_balance to check funds. The v4 wallet is payments-only; savings / lending live on audric.ai.`;
|
|
141763
|
-
var PKG_VERSION = "4.2.
|
|
141772
|
+
var PKG_VERSION = "4.2.2";
|
|
141764
141773
|
console.log = (...args) => console.error("[log]", ...args);
|
|
141765
141774
|
console.warn = (...args) => console.error("[warn]", ...args);
|
|
141766
141775
|
async function startMcpServer(opts) {
|
|
@@ -141847,4 +141856,4 @@ axios/dist/node/axios.cjs:
|
|
|
141847
141856
|
@scure/bip39/index.js:
|
|
141848
141857
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
141849
141858
|
*/
|
|
141850
|
-
//# sourceMappingURL=dist-
|
|
141859
|
+
//# sourceMappingURL=dist-FS73FEVZ.js.map
|