@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.
package/dist/index.js
CHANGED
|
@@ -34992,7 +34992,15 @@ async function fetchAllCoins(client, owner, coinType) {
|
|
|
34992
34992
|
}
|
|
34993
34993
|
async function selectAndSplitCoin(tx, client, owner, coinType, amount, options = {}) {
|
|
34994
34994
|
if (options.sponsoredContext) {
|
|
34995
|
-
return selectCoinObjectsOnly(
|
|
34995
|
+
return selectCoinObjectsOnly(
|
|
34996
|
+
tx,
|
|
34997
|
+
client,
|
|
34998
|
+
owner,
|
|
34999
|
+
coinType,
|
|
35000
|
+
amount,
|
|
35001
|
+
options.allowSwapAll ?? true,
|
|
35002
|
+
options.mergeCache
|
|
35003
|
+
);
|
|
34996
35004
|
}
|
|
34997
35005
|
const balanceResp = await client.getBalance({ owner, coinType });
|
|
34998
35006
|
const totalBalance = BigInt(balanceResp.totalBalance);
|
|
@@ -35298,14 +35306,15 @@ async function addSwapToTx(tx, client, address, input) {
|
|
|
35298
35306
|
address,
|
|
35299
35307
|
requestedRaw,
|
|
35300
35308
|
input.sponsoredContext ?? false,
|
|
35301
|
-
input.
|
|
35309
|
+
input.coinMergeCache
|
|
35302
35310
|
);
|
|
35303
35311
|
inputCoin = result.coin;
|
|
35304
35312
|
effectiveRaw = result.effectiveAmount;
|
|
35305
35313
|
} else {
|
|
35306
35314
|
const { selectAndSplitCoin: selectAndSplitCoin2 } = await Promise.resolve().then(() => (init_coinSelection(), coinSelection_exports));
|
|
35307
35315
|
const result = await selectAndSplitCoin2(tx, client, address, fromType, requestedRaw, {
|
|
35308
|
-
sponsoredContext: input.sponsoredContext ?? false
|
|
35316
|
+
sponsoredContext: input.sponsoredContext ?? false,
|
|
35317
|
+
mergeCache: input.coinMergeCache
|
|
35309
35318
|
});
|
|
35310
35319
|
inputCoin = result.coin;
|
|
35311
35320
|
effectiveRaw = result.effectiveAmount;
|
|
@@ -45326,7 +45335,7 @@ function registerMcpStart(parent) {
|
|
|
45326
45335
|
parent.command("start", { isDefault: true }).description("Start MCP server (stdio transport \u2014 for AI client integration)").option("--key <path>", "Custom wallet path (default ~/.t2000/wallet.key)").action(async (opts) => {
|
|
45327
45336
|
let mod2;
|
|
45328
45337
|
try {
|
|
45329
|
-
mod2 = await import("./dist-
|
|
45338
|
+
mod2 = await import("./dist-FS73FEVZ.js");
|
|
45330
45339
|
} catch {
|
|
45331
45340
|
console.error("MCP server not installed. Run:\n npm install -g @t2000/mcp");
|
|
45332
45341
|
process.exit(1);
|