@t2000/cli 0.20.29 → 0.20.31
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.
|
@@ -21501,7 +21501,7 @@ function registerWriteTools(server, agent) {
|
|
|
21501
21501
|
const investAssets = Object.keys(INVESTMENT_ASSETS);
|
|
21502
21502
|
server.tool(
|
|
21503
21503
|
"t2000_invest",
|
|
21504
|
-
"Buy, sell, earn yield, or stop earning on investment assets. Actions: buy (invest USD), sell (convert to USDC), earn (deposit into best-rate lending for yield), unearn (withdraw from lending, keep in portfolio). Amount required for buy/sell only.",
|
|
21504
|
+
"Buy, sell, earn yield, or stop earning on investment assets. Actions: buy (invest USD), sell (convert to USDC), earn (deposit into best-rate lending for yield), unearn (withdraw from lending, keep in portfolio). Amount required for buy/sell only. If checking balance is insufficient for a buy, the SDK will auto-withdraw from savings \u2014 no manual withdraw needed.",
|
|
21505
21505
|
{
|
|
21506
21506
|
action: external_exports.enum(["buy", "sell", "earn", "unearn"]).describe("'buy' to invest, 'sell' to liquidate, 'earn' to deposit into lending for yield, 'unearn' to withdraw from lending"),
|
|
21507
21507
|
asset: external_exports.enum(investAssets).describe("Asset to invest in"),
|
|
@@ -21577,7 +21577,7 @@ function registerWriteTools(server, agent) {
|
|
|
21577
21577
|
);
|
|
21578
21578
|
server.tool(
|
|
21579
21579
|
"t2000_strategy",
|
|
21580
|
-
|
|
21580
|
+
'Manage investment strategies \u2014 buy into predefined or custom allocations, sell entire strategies, check status, rebalance, or create/delete custom strategies. IMPORTANT: Before buying, ALWAYS call with action "list" first to show the user the strategy allocations (e.g. All-Weather = 30% BTC, 20% ETH, 20% SUI, 30% GOLD), then use dryRun: true to preview estimated amounts and prices. Only execute after the user confirms. If checking balance is insufficient, the SDK will auto-withdraw from savings \u2014 no manual withdraw needed.',
|
|
21581
21581
|
{
|
|
21582
21582
|
action: external_exports.enum(["list", "buy", "sell", "status", "rebalance", "create", "delete"]).describe("Strategy action to perform"),
|
|
21583
21583
|
name: external_exports.string().optional().describe("Strategy name (required for all actions except 'list')"),
|
|
@@ -22034,7 +22034,14 @@ ${context}
|
|
|
22034
22034
|
" - Whether invested assets should earn yield (t2000_invest earn)",
|
|
22035
22035
|
" - Risk: concentration, unrealized losses, strategy drift",
|
|
22036
22036
|
"",
|
|
22037
|
-
"
|
|
22037
|
+
"STRATEGY PRESENTATION: Always show the strategy allocations before buying.",
|
|
22038
|
+
' e.g. "All-Weather: 30% BTC, 20% ETH, 20% SUI, 30% GOLD \u2014 diversified crypto + commodities"',
|
|
22039
|
+
" Then use dryRun: true to preview estimated prices and amounts.",
|
|
22040
|
+
"",
|
|
22041
|
+
"AUTO-FUNDING: If checking balance is insufficient but savings exist,",
|
|
22042
|
+
" the SDK auto-withdraws from savings to fund the investment.",
|
|
22043
|
+
" Do NOT manually withdraw first \u2014 just call t2000_strategy buy or t2000_invest buy directly.",
|
|
22044
|
+
"",
|
|
22038
22045
|
'For DCA: use t2000_auto_invest action: "setup" to create recurring buys.'
|
|
22039
22046
|
].join("\n")
|
|
22040
22047
|
}
|
|
@@ -22107,8 +22114,9 @@ ${context}
|
|
|
22107
22114
|
"",
|
|
22108
22115
|
'For INVESTMENT scenarios ("invest $X in Y" or "buy $X of strategy"):',
|
|
22109
22116
|
` - Call t2000_strategy (action: "list") to get allocations if it's a strategy`,
|
|
22117
|
+
' - ALWAYS show strategy allocations (e.g. "30% BTC, 20% ETH, 20% SUI, 30% GOLD")',
|
|
22110
22118
|
" - Call t2000_invest or t2000_strategy with dryRun: true to preview",
|
|
22111
|
-
" - If
|
|
22119
|
+
" - If checking is insufficient but savings exist, note that the SDK auto-withdraws \u2014 no manual step needed",
|
|
22112
22120
|
"",
|
|
22113
22121
|
'For SAVINGS scenarios ("save $X" or "withdraw $X"):',
|
|
22114
22122
|
" - Show impact on yield and health factor",
|
|
@@ -22130,8 +22138,8 @@ ${context}
|
|
|
22130
22138
|
" Investment $XX.XX $XX.XX",
|
|
22131
22139
|
"",
|
|
22132
22140
|
"Then add a smart recommendation:",
|
|
22133
|
-
" - If amount exceeds checking,
|
|
22134
|
-
" - If it would drain checking below $5, warn about gas needs",
|
|
22141
|
+
" - If amount exceeds checking, note that savings will be auto-withdrawn to fund it",
|
|
22142
|
+
" - If it would drain total funds (checking + savings) below $5, warn about gas needs",
|
|
22135
22143
|
" - If the asset can earn yield after buying, mention it",
|
|
22136
22144
|
"",
|
|
22137
22145
|
'End with: "Want me to go ahead?" \u2014 ready to execute on confirmation.'
|
|
@@ -22700,4 +22708,4 @@ async function startMcpServer(opts) {
|
|
|
22700
22708
|
export {
|
|
22701
22709
|
startMcpServer
|
|
22702
22710
|
};
|
|
22703
|
-
//# sourceMappingURL=dist-
|
|
22711
|
+
//# sourceMappingURL=dist-B43ZP5VT.js.map
|