clodds 1.5.4 → 1.6.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 +2 -2
- package/dist/agents/index.js +8 -6
- package/dist/agents/index.js.map +1 -1
- package/dist/cli/commands/index.js +1 -1
- package/dist/credentials/index.js +16 -9
- package/dist/credentials/index.js.map +1 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/skills/bundled/dca/index.js +2 -2
- package/dist/skills/bundled/dca/index.js.map +1 -1
- package/dist/skills/bundled/pumpfun/SKILL.md +2 -2
- package/dist/skills/bundled/pumpfun/index.d.ts +1 -1
- package/dist/skills/bundled/pumpfun/index.js +11 -11
- package/dist/skills/bundled/pumpfun/index.js.map +1 -1
- package/dist/skills/bundled/trading-solana/SKILL.md +2 -2
- package/dist/skills/bundled/x-research/SKILL.md +97 -0
- package/dist/skills/bundled/x-research/index.d.ts +24 -0
- package/dist/skills/bundled/x-research/index.js +618 -0
- package/dist/skills/bundled/x-research/index.js.map +1 -0
- package/dist/skills/executor.d.ts +1 -1
- package/dist/skills/executor.js +15 -1
- package/dist/skills/executor.js.map +1 -1
- package/dist/skills/help.d.ts +1 -1
- package/dist/skills/help.js +1 -1
- package/dist/solana/pumpapi.d.ts +7 -7
- package/dist/solana/pumpapi.js +5 -5
- package/dist/solana/pumpapi.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -116,7 +116,7 @@ See [docs/USER_GUIDE.md](./docs/USER_GUIDE.md) for all commands.
|
|
|
116
116
|
| **Token Security** | GoPlus-powered audits — honeypot detection, rug-pull analysis, holder concentration, risk scoring |
|
|
117
117
|
| **Security Shield** | Code scanning (75 rules), scam DB (70+ addresses), multi-chain address checking, pre-trade tx validation |
|
|
118
118
|
| **Trading** | Order execution on 16+ platforms (prediction markets, futures, Solana DEXs, EVM DEXs), portfolio tracking, P&L, DCA |
|
|
119
|
-
| **MCP Server** | Expose all
|
|
119
|
+
| **MCP Server** | Expose all 119 skills as MCP tools for Claude Desktop and Claude Code |
|
|
120
120
|
| **Arbitrage** | Cross-platform detection, combinatorial analysis, semantic matching, real-time scanning |
|
|
121
121
|
| **AI** | 8 LLM providers, 4 specialized agents, semantic memory, 18 tools |
|
|
122
122
|
| **i18n** | 10 languages (EN, ZH, ES, JA, KO, DE, FR, PT, RU, AR) |
|
|
@@ -521,7 +521,7 @@ docker compose up --build
|
|
|
521
521
|
| Prediction Markets | **10** |
|
|
522
522
|
| Futures Exchanges | **7** |
|
|
523
523
|
| AI Tools | **18** |
|
|
524
|
-
| Skills | **
|
|
524
|
+
| Skills | **119** |
|
|
525
525
|
| LLM Providers | **8** |
|
|
526
526
|
| Solana DeFi Protocols | **9** |
|
|
527
527
|
| Trading Strategies | **4** |
|
package/dist/agents/index.js
CHANGED
|
@@ -4637,7 +4637,7 @@ function buildTools() {
|
|
|
4637
4637
|
},
|
|
4638
4638
|
{
|
|
4639
4639
|
name: 'pumpfun_graduated',
|
|
4640
|
-
description: 'Get tokens that graduated to
|
|
4640
|
+
description: 'Get tokens that graduated to PumpSwap from Pump.fun.',
|
|
4641
4641
|
input_schema: {
|
|
4642
4642
|
type: 'object',
|
|
4643
4643
|
properties: {
|
|
@@ -4898,7 +4898,7 @@ function buildTools() {
|
|
|
4898
4898
|
},
|
|
4899
4899
|
{
|
|
4900
4900
|
name: 'pumpfun_graduation_check',
|
|
4901
|
-
description: 'Check if a Pump.fun token has graduated to
|
|
4901
|
+
description: 'Check if a Pump.fun token has graduated to PumpSwap.',
|
|
4902
4902
|
input_schema: {
|
|
4903
4903
|
type: 'object',
|
|
4904
4904
|
properties: {
|
|
@@ -4945,7 +4945,7 @@ function buildTools() {
|
|
|
4945
4945
|
},
|
|
4946
4946
|
{
|
|
4947
4947
|
name: 'pumpfun_best_pool',
|
|
4948
|
-
description: 'Determine best execution venue for a token (pump bonding curve or
|
|
4948
|
+
description: 'Determine best execution venue for a token (pump bonding curve or PumpSwap after graduation).',
|
|
4949
4949
|
input_schema: {
|
|
4950
4950
|
type: 'object',
|
|
4951
4951
|
properties: {
|
|
@@ -13126,7 +13126,7 @@ async function executeTool(toolName, toolInput, context) {
|
|
|
13126
13126
|
return JSON.stringify({ error: 'Bonding curve not found' });
|
|
13127
13127
|
}
|
|
13128
13128
|
if (state.complete) {
|
|
13129
|
-
return JSON.stringify({ error: 'Token has graduated to
|
|
13129
|
+
return JSON.stringify({ error: 'Token has graduated to PumpSwap - use Jupiter for swaps' });
|
|
13130
13130
|
}
|
|
13131
13131
|
const BN = (await Promise.resolve().then(() => __importStar(require('bn.js')))).default;
|
|
13132
13132
|
const solAmount = new BN(Math.floor(toolInput.sol_amount * 1e9));
|
|
@@ -13153,7 +13153,7 @@ async function executeTool(toolName, toolInput, context) {
|
|
|
13153
13153
|
return JSON.stringify({ error: 'Bonding curve not found' });
|
|
13154
13154
|
}
|
|
13155
13155
|
if (state.complete) {
|
|
13156
|
-
return JSON.stringify({ error: 'Token has graduated to
|
|
13156
|
+
return JSON.stringify({ error: 'Token has graduated to PumpSwap - use Jupiter for swaps' });
|
|
13157
13157
|
}
|
|
13158
13158
|
const BN = (await Promise.resolve().then(() => __importStar(require('bn.js')))).default;
|
|
13159
13159
|
const tokenAmount = new BN(Math.floor(toolInput.token_amount * 1e6));
|
|
@@ -16350,13 +16350,15 @@ async function createAgentManager(config, feeds, db, sessionManager, sendMessage
|
|
|
16350
16350
|
};
|
|
16351
16351
|
const contextManager = (0, context_1.createContextManager)(contextConfig, memory);
|
|
16352
16352
|
const effectiveMaxTokens = (contextConfig.maxTokens ?? 128000) - (contextConfig.reserveTokens ?? 4096);
|
|
16353
|
+
// Estimate tool definitions once (they don't change during the conversation)
|
|
16354
|
+
const toolsTokenEstimate = (0, context_1.estimateTokens)(JSON.stringify(tools), modelId);
|
|
16353
16355
|
const estimateSubmitTokens = () => {
|
|
16354
16356
|
const system = (0, context_1.estimateTokens)(finalSystemPrompt, modelId);
|
|
16355
16357
|
const msgs = messages.reduce((sum, m) => {
|
|
16356
16358
|
const content = typeof m.content === 'string' ? m.content : JSON.stringify(m.content);
|
|
16357
16359
|
return sum + (0, context_1.estimateTokens)(content, modelId) + 4;
|
|
16358
16360
|
}, 0);
|
|
16359
|
-
return system + msgs;
|
|
16361
|
+
return system + msgs + toolsTokenEstimate;
|
|
16360
16362
|
};
|
|
16361
16363
|
// Add all messages to context manager for tracking
|
|
16362
16364
|
for (const msg of messages) {
|